chompyy 0.1.0 → 0.3.0

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 (166) hide show
  1. package/README.md +79 -6
  2. package/THIRD_PARTY_NOTICES.md +28 -0
  3. package/dist/appstate.js +43 -2
  4. package/dist/away.js +104 -15
  5. package/dist/board.js +33 -3
  6. package/dist/claudesettings.js +23 -0
  7. package/dist/cli.js +409 -27
  8. package/dist/coldstart.js +207 -0
  9. package/dist/config.js +36 -1
  10. package/dist/costs.js +162 -0
  11. package/dist/gate.js +29 -0
  12. package/dist/history.js +308 -0
  13. package/dist/livequota.js +15 -1
  14. package/dist/pacing.js +189 -0
  15. package/dist/picture.js +117 -0
  16. package/dist/projects.js +2 -2
  17. package/dist/quota.js +31 -5
  18. package/dist/report.js +38 -21
  19. package/dist/review.js +47 -4
  20. package/dist/runner.js +268 -8
  21. package/dist/taste.js +507 -0
  22. package/dist/triggers.js +182 -0
  23. package/dist/verify.js +131 -0
  24. package/package.json +2 -1
  25. package/skills/taste/SKILL.md +4 -1
  26. package/vendor/diagram-design/LICENSE +21 -0
  27. package/vendor/diagram-design/SKILL.md +399 -0
  28. package/vendor/diagram-design/UPSTREAM.md +18 -0
  29. package/vendor/diagram-design/assets/example-arc-diagram.html +111 -0
  30. package/vendor/diagram-design/assets/example-architecture-containment.html +205 -0
  31. package/vendor/diagram-design/assets/example-architecture-delta.html +193 -0
  32. package/vendor/diagram-design/assets/example-architecture.html +183 -0
  33. package/vendor/diagram-design/assets/example-axonometric-plan-campus.html +108 -0
  34. package/vendor/diagram-design/assets/example-axonometric-plan-coffee-shop.html +121 -0
  35. package/vendor/diagram-design/assets/example-axonometric-plan-warehouse.html +127 -0
  36. package/vendor/diagram-design/assets/example-axonometric-plan.html +114 -0
  37. package/vendor/diagram-design/assets/example-bar.html +129 -0
  38. package/vendor/diagram-design/assets/example-beeswarm.html +384 -0
  39. package/vendor/diagram-design/assets/example-box-plot.html +127 -0
  40. package/vendor/diagram-design/assets/example-bubble.html +147 -0
  41. package/vendor/diagram-design/assets/example-bump.html +142 -0
  42. package/vendor/diagram-design/assets/example-data-flow.html +143 -0
  43. package/vendor/diagram-design/assets/example-datalake.html +269 -0
  44. package/vendor/diagram-design/assets/example-db-schema.html +302 -0
  45. package/vendor/diagram-design/assets/example-dependency.html +224 -0
  46. package/vendor/diagram-design/assets/example-deployment.html +190 -0
  47. package/vendor/diagram-design/assets/example-dp-integration.html +81 -0
  48. package/vendor/diagram-design/assets/example-dp-security-matrix.html +88 -0
  49. package/vendor/diagram-design/assets/example-er.html +202 -0
  50. package/vendor/diagram-design/assets/example-event-modeling.html +64 -0
  51. package/vendor/diagram-design/assets/example-exploded-ai-stack.html +85 -0
  52. package/vendor/diagram-design/assets/example-exploded-keyboard.html +84 -0
  53. package/vendor/diagram-design/assets/example-exploded-phone.html +83 -0
  54. package/vendor/diagram-design/assets/example-exploded-unboxing.html +84 -0
  55. package/vendor/diagram-design/assets/example-exploded.html +83 -0
  56. package/vendor/diagram-design/assets/example-fishbone.html +152 -0
  57. package/vendor/diagram-design/assets/example-flowchart.html +163 -0
  58. package/vendor/diagram-design/assets/example-gantt.html +137 -0
  59. package/vendor/diagram-design/assets/example-heatmap.html +224 -0
  60. package/vendor/diagram-design/assets/example-high-level-vertical.html +325 -0
  61. package/vendor/diagram-design/assets/example-high-level.html +301 -0
  62. package/vendor/diagram-design/assets/example-import-drawio.html +185 -0
  63. package/vendor/diagram-design/assets/example-import-excalidraw.html +70 -0
  64. package/vendor/diagram-design/assets/example-import-mermaid.html +70 -0
  65. package/vendor/diagram-design/assets/example-import-plantuml.html +107 -0
  66. package/vendor/diagram-design/assets/example-it-state.html +128 -0
  67. package/vendor/diagram-design/assets/example-journey.html +148 -0
  68. package/vendor/diagram-design/assets/example-kanban.html +174 -0
  69. package/vendor/diagram-design/assets/example-layers.html +123 -0
  70. package/vendor/diagram-design/assets/example-line.html +111 -0
  71. package/vendor/diagram-design/assets/example-loop.html +100 -0
  72. package/vendor/diagram-design/assets/example-marimekko.html +148 -0
  73. package/vendor/diagram-design/assets/example-medallion.html +159 -0
  74. package/vendor/diagram-design/assets/example-nested.html +136 -0
  75. package/vendor/diagram-design/assets/example-org-chart.html +45 -0
  76. package/vendor/diagram-design/assets/example-polar.html +116 -0
  77. package/vendor/diagram-design/assets/example-process.html +64 -0
  78. package/vendor/diagram-design/assets/example-pyramid.html +119 -0
  79. package/vendor/diagram-design/assets/example-quadrant-consultant.html +166 -0
  80. package/vendor/diagram-design/assets/example-quadrant.html +135 -0
  81. package/vendor/diagram-design/assets/example-radar.html +139 -0
  82. package/vendor/diagram-design/assets/example-requirement-traceability.html +122 -0
  83. package/vendor/diagram-design/assets/example-ridgeline.html +104 -0
  84. package/vendor/diagram-design/assets/example-sankey.html +150 -0
  85. package/vendor/diagram-design/assets/example-sbgn.html +213 -0
  86. package/vendor/diagram-design/assets/example-scatter.html +141 -0
  87. package/vendor/diagram-design/assets/example-sequence-oauth.html +227 -0
  88. package/vendor/diagram-design/assets/example-sequence.html +222 -0
  89. package/vendor/diagram-design/assets/example-service-blueprint.html +185 -0
  90. package/vendor/diagram-design/assets/example-slopegraph.html +119 -0
  91. package/vendor/diagram-design/assets/example-state-lifecycle.html +92 -0
  92. package/vendor/diagram-design/assets/example-state.html +147 -0
  93. package/vendor/diagram-design/assets/example-steps.html +78 -0
  94. package/vendor/diagram-design/assets/example-story-map.html +184 -0
  95. package/vendor/diagram-design/assets/example-streamgraph.html +99 -0
  96. package/vendor/diagram-design/assets/example-swimlane.html +172 -0
  97. package/vendor/diagram-design/assets/example-timeline.html +135 -0
  98. package/vendor/diagram-design/assets/example-tree-block-decomposition.html +151 -0
  99. package/vendor/diagram-design/assets/example-tree.html +173 -0
  100. package/vendor/diagram-design/assets/example-treemap.html +107 -0
  101. package/vendor/diagram-design/assets/example-uml-class.html +188 -0
  102. package/vendor/diagram-design/assets/example-unit-grid.html +141 -0
  103. package/vendor/diagram-design/assets/example-venn.html +110 -0
  104. package/vendor/diagram-design/assets/example-wardley.html +153 -0
  105. package/vendor/diagram-design/assets/example-waterfall.html +129 -0
  106. package/vendor/diagram-design/assets/template-dark.html +99 -0
  107. package/vendor/diagram-design/assets/template.html +100 -0
  108. package/vendor/diagram-design/references/layout-budget.md +103 -0
  109. package/vendor/diagram-design/references/output-spec.md +277 -0
  110. package/vendor/diagram-design/references/primitive-annotation.md +36 -0
  111. package/vendor/diagram-design/references/primitive-sketchy.md +43 -0
  112. package/vendor/diagram-design/references/primitives-core.md +146 -0
  113. package/vendor/diagram-design/references/semantic-patterns.md +154 -0
  114. package/vendor/diagram-design/references/style-guide.md +234 -0
  115. package/vendor/diagram-design/references/type-architecture-delta.md +143 -0
  116. package/vendor/diagram-design/references/type-architecture.md +117 -0
  117. package/vendor/diagram-design/references/type-axonometric-plan.md +83 -0
  118. package/vendor/diagram-design/references/type-bar.md +108 -0
  119. package/vendor/diagram-design/references/type-data-flow.md +371 -0
  120. package/vendor/diagram-design/references/type-db-schema.md +48 -0
  121. package/vendor/diagram-design/references/type-dependency.md +113 -0
  122. package/vendor/diagram-design/references/type-deployment.md +45 -0
  123. package/vendor/diagram-design/references/type-dp-integration.md +407 -0
  124. package/vendor/diagram-design/references/type-dp-security-matrix.md +379 -0
  125. package/vendor/diagram-design/references/type-er.md +25 -0
  126. package/vendor/diagram-design/references/type-event-modeling.md +36 -0
  127. package/vendor/diagram-design/references/type-exploded.md +115 -0
  128. package/vendor/diagram-design/references/type-fishbone.md +75 -0
  129. package/vendor/diagram-design/references/type-flowchart.md +23 -0
  130. package/vendor/diagram-design/references/type-gantt.md +45 -0
  131. package/vendor/diagram-design/references/type-heatmap.md +80 -0
  132. package/vendor/diagram-design/references/type-high-level.md +470 -0
  133. package/vendor/diagram-design/references/type-it-state.md +468 -0
  134. package/vendor/diagram-design/references/type-journey.md +55 -0
  135. package/vendor/diagram-design/references/type-kanban.md +49 -0
  136. package/vendor/diagram-design/references/type-layers.md +26 -0
  137. package/vendor/diagram-design/references/type-line.md +337 -0
  138. package/vendor/diagram-design/references/type-loop.md +223 -0
  139. package/vendor/diagram-design/references/type-medallion.md +356 -0
  140. package/vendor/diagram-design/references/type-nested.md +22 -0
  141. package/vendor/diagram-design/references/type-org-chart.md +44 -0
  142. package/vendor/diagram-design/references/type-polar.md +136 -0
  143. package/vendor/diagram-design/references/type-process.md +490 -0
  144. package/vendor/diagram-design/references/type-pyramid.md +33 -0
  145. package/vendor/diagram-design/references/type-quadrant.md +81 -0
  146. package/vendor/diagram-design/references/type-radar.md +82 -0
  147. package/vendor/diagram-design/references/type-requirement-traceability.md +45 -0
  148. package/vendor/diagram-design/references/type-sankey.md +75 -0
  149. package/vendor/diagram-design/references/type-sbgn.md +80 -0
  150. package/vendor/diagram-design/references/type-scatter.md +276 -0
  151. package/vendor/diagram-design/references/type-sequence.md +130 -0
  152. package/vendor/diagram-design/references/type-service-blueprint.md +103 -0
  153. package/vendor/diagram-design/references/type-state.md +30 -0
  154. package/vendor/diagram-design/references/type-steps.md +180 -0
  155. package/vendor/diagram-design/references/type-story-map.md +46 -0
  156. package/vendor/diagram-design/references/type-swimlane.md +22 -0
  157. package/vendor/diagram-design/references/type-timeline.md +20 -0
  158. package/vendor/diagram-design/references/type-tree.md +24 -0
  159. package/vendor/diagram-design/references/type-treemap.md +137 -0
  160. package/vendor/diagram-design/references/type-uml-class.md +65 -0
  161. package/vendor/diagram-design/references/type-unit-grid.md +63 -0
  162. package/vendor/diagram-design/references/type-venn.md +26 -0
  163. package/vendor/diagram-design/references/type-wardley.md +39 -0
  164. package/vendor/diagram-design/references/type-waterfall.md +75 -0
  165. package/vendor/diagram-design/scripts/self_check.py +1177 -0
  166. package/vendor/diagram-design/scripts/verify_geometry.py +696 -0
@@ -0,0 +1,227 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>Bearer call with refresh · Sequence</title>
7
+ <link href="https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Geist:wght@400;500;600&family=Geist+Mono:wght@400;500;600&display=swap" rel="stylesheet">
8
+ <style>
9
+ *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
10
+ :root {
11
+ --color-paper: #f5f5f5;
12
+ --color-ink: #2d3142;
13
+ --color-muted: #4f5d75;
14
+ --color-accent: #bf4520;
15
+ --font-sans: 'Geist', system-ui, sans-serif;
16
+ --font-serif: 'Instrument Serif', serif;
17
+ --font-mono: 'Geist Mono', ui-monospace, monospace;
18
+ }
19
+
20
+ body {
21
+ font-family: var(--font-sans);
22
+ background: var(--color-paper);
23
+ color: var(--color-ink);
24
+ min-height: 100vh;
25
+ display: flex;
26
+ align-items: center;
27
+ justify-content: center;
28
+ padding: 3rem 2rem;
29
+ }
30
+
31
+ .frame { max-width: 1100px; width: 100%; }
32
+
33
+ .eyebrow {
34
+ font-family: var(--font-mono);
35
+ font-size: 0.66rem;
36
+ font-weight: 500;
37
+ letter-spacing: 0.18em;
38
+ text-transform: uppercase;
39
+ color: var(--color-muted);
40
+ margin-bottom: 0.5rem;
41
+ }
42
+
43
+ h1 {
44
+ font-family: var(--font-serif);
45
+ font-size: clamp(1.5rem, 2.4vw + 0.75rem, 2rem);
46
+ font-weight: 400;
47
+ letter-spacing: -0.02em;
48
+ line-height: 1.15;
49
+ color: var(--color-ink);
50
+ margin-bottom: 1.5rem;
51
+ }
52
+
53
+ svg { width: 100%; min-width: 840px; display: block; }
54
+ </style>
55
+ </head>
56
+ <body>
57
+ <div class="frame">
58
+ <p class="eyebrow">Sequence · Diagram Design · Special</p>
59
+ <h1>Bearer call with refresh</h1>
60
+
61
+ <svg viewBox="0 0 960 720" xmlns="http://www.w3.org/2000/svg" role="img" aria-labelledby="sequence-oauth-title sequence-oauth-desc">
62
+ <title id="sequence-oauth-title">Bearer call with refresh</title>
63
+ <desc id="sequence-oauth-desc">Client calls API with a bearer token. An ALT fragment shows either a valid 200 response or a 401 path that refreshes via Auth and retries.</desc>
64
+ <defs>
65
+ <pattern id="dots" width="22" height="22" patternUnits="userSpaceOnUse">
66
+ <circle cx="1" cy="1" r="0.9" fill="rgba(45,49,66,0.10)"/>
67
+ </pattern>
68
+
69
+ <marker id="arrow" markerWidth="8" markerHeight="6" refX="7" refY="3" orient="auto">
70
+ <polygon points="0 0, 8 3, 0 6" fill="#4f5d75"/>
71
+ </marker>
72
+ <marker id="arrow-accent" markerWidth="8" markerHeight="6" refX="7" refY="3" orient="auto">
73
+ <polygon points="0 0, 8 3, 0 6" fill="#bf4520"/>
74
+ </marker>
75
+ <marker id="arrow-link" markerWidth="8" markerHeight="6" refX="7" refY="3" orient="auto">
76
+ <polygon points="0 0, 8 3, 0 6" fill="#2e5aa8"/>
77
+ </marker>
78
+ <!-- Open arrowhead for async / fire-and-forget -->
79
+ <marker id="arrow-open" markerWidth="8" markerHeight="6" refX="7" refY="3" orient="auto">
80
+ <polyline points="0 0, 8 3, 0 6" fill="none" stroke="#4f5d75" stroke-width="1.2"/>
81
+ </marker>
82
+ </defs>
83
+
84
+ <!-- Background: paper + optional dots -->
85
+ <rect width="100%" height="100%" fill="#f5f5f5"/>
86
+ <rect width="100%" height="100%" fill="url(#dots)" opacity="0.55"/>
87
+
88
+ <!-- =================================================================
89
+ LIFELINES — Client 160 · API 480 · Auth 800
90
+ ================================================================= -->
91
+ <line x1="160" y1="128" x2="160" y2="624" stroke="rgba(45,49,66,0.22)" stroke-width="1" stroke-dasharray="3,3"/>
92
+ <line x1="480" y1="128" x2="480" y2="624" stroke="rgba(45,49,66,0.22)" stroke-width="1" stroke-dasharray="3,3"/>
93
+ <line x1="800" y1="128" x2="800" y2="624" stroke="rgba(45,49,66,0.22)" stroke-width="1" stroke-dasharray="3,3"/>
94
+
95
+ <!-- =================================================================
96
+ ACTIVATION BARS
97
+ ================================================================= -->
98
+ <!-- API holds control for the initial call -->
99
+ <!-- First API activation brackets M1 call through M2 success return -->
100
+ <rect x="476" y="180" width="8" height="104" fill="rgba(45,49,66,0.06)" stroke="#4f5d75" stroke-width="0.8"/>
101
+ <!-- Client activation during refresh region -->
102
+ <rect x="156" y="360" width="8" height="200" fill="rgba(45,49,66,0.06)" stroke="#4f5d75" stroke-width="0.8"/>
103
+ <!-- Auth activation for refresh -->
104
+ <rect x="796" y="400" width="8" height="64" fill="rgba(45,49,66,0.06)" stroke="#4f5d75" stroke-width="0.8"/>
105
+ <!-- API activation for retry -->
106
+ <rect x="476" y="496" width="8" height="64" fill="rgba(45,49,66,0.06)" stroke="#4f5d75" stroke-width="0.8"/>
107
+
108
+ <!-- =================================================================
109
+ M1: Client → API GET /resource (before ALT frame)
110
+ ================================================================= -->
111
+ <line x1="160" y1="176" x2="476" y2="176" stroke="#2e5aa8" stroke-width="1.2" marker-end="url(#arrow-link)"/>
112
+ <rect x="248" y="160" width="128" height="12" rx="2" fill="#f5f5f5"/>
113
+ <text x="312" y="170" fill="#2e5aa8" font-size="8" font-family="'Geist Mono', monospace" text-anchor="middle" letter-spacing="0.08em">GET /RESOURCE + BEARER</text>
114
+
115
+ <!-- =================================================================
116
+ ALT COMBINED FRAGMENT — spans Client · API · Auth
117
+ Frame: x=88 y=208 w=752 h=360
118
+ ================================================================= -->
119
+ <rect x="88" y="208" width="752" height="360" rx="4"
120
+ fill="rgba(45,49,66,0.02)" stroke="rgba(45,49,66,0.22)" stroke-width="1"/>
121
+ <!-- Operator tab: ALT -->
122
+ <rect x="88" y="208" width="40" height="16" rx="2"
123
+ fill="#f5f5f5" stroke="rgba(45,49,66,0.22)" stroke-width="1"/>
124
+ <text x="108" y="220" fill="#4f5d75" font-size="8" font-family="'Geist Mono', monospace" text-anchor="middle" letter-spacing="0.12em">ALT</text>
125
+
126
+ <!-- Region 1 guard -->
127
+ <text x="100" y="244" fill="#4f5d75" font-size="8" font-family="'Geist Mono', monospace" letter-spacing="0.04em">[token valid]</text>
128
+
129
+ <!-- M2: API → Client 200 (coral headline success) -->
130
+ <line x1="476" y1="272" x2="168" y2="272" stroke="#bf4520" stroke-width="1.4" marker-end="url(#arrow-accent)"/>
131
+ <rect x="256" y="256" width="88" height="12" rx="2" fill="#f5f5f5"/>
132
+ <text x="300" y="266" fill="#bf4520" font-size="8" font-family="'Geist Mono', monospace" text-anchor="middle" letter-spacing="0.08em">200 · BODY</text>
133
+
134
+ <!-- alt region divider -->
135
+ <line x1="96" y1="312" x2="832" y2="312"
136
+ stroke="rgba(45,49,66,0.20)" stroke-width="1" stroke-dasharray="4,3"/>
137
+
138
+ <!-- Region 2 guard -->
139
+ <text x="100" y="336" fill="#4f5d75" font-size="8" font-family="'Geist Mono', monospace" letter-spacing="0.04em">[else · 401]</text>
140
+
141
+ <!-- M3: API → Client 401 (return: dashed + filled) -->
142
+ <line x1="476" y1="368" x2="168" y2="368" stroke="#4f5d75" stroke-width="1.2" stroke-dasharray="5,4" marker-end="url(#arrow)"/>
143
+ <rect x="272" y="352" width="56" height="12" rx="2" fill="#f5f5f5"/>
144
+ <text x="300" y="362" fill="#4f5d75" font-size="8" font-family="'Geist Mono', monospace" text-anchor="middle" letter-spacing="0.08em">401</text>
145
+
146
+ <!-- M4: Client → Auth refresh (link-blue) -->
147
+ <line x1="164" y1="416" x2="796" y2="416" stroke="#2e5aa8" stroke-width="1.2" marker-end="url(#arrow-link)"/>
148
+ <rect x="408" y="400" width="128" height="12" rx="2" fill="#f5f5f5"/>
149
+ <text x="472" y="410" fill="#2e5aa8" font-size="8" font-family="'Geist Mono', monospace" text-anchor="middle" letter-spacing="0.08em">POST /TOKEN · REFRESH</text>
150
+
151
+ <!-- M5: Auth → Client access (return dashed, filled marker) -->
152
+ <line x1="796" y1="456" x2="168" y2="456" stroke="#4f5d75" stroke-width="1.2" stroke-dasharray="5,4" marker-end="url(#arrow)"/>
153
+ <rect x="424" y="440" width="96" height="12" rx="2" fill="#f5f5f5"/>
154
+ <text x="472" y="450" fill="#4f5d75" font-size="8" font-family="'Geist Mono', monospace" text-anchor="middle" letter-spacing="0.08em">200 · NEW ACCESS</text>
155
+
156
+ <!-- M6: Client → API retry -->
157
+ <line x1="164" y1="504" x2="476" y2="504" stroke="#2e5aa8" stroke-width="1.2" marker-end="url(#arrow-link)"/>
158
+ <rect x="248" y="488" width="112" height="12" rx="2" fill="#f5f5f5"/>
159
+ <text x="304" y="498" fill="#2e5aa8" font-size="8" font-family="'Geist Mono', monospace" text-anchor="middle" letter-spacing="0.08em">GET /RESOURCE · RETRY</text>
160
+
161
+ <!-- M7: API → Client 200 retry success (return dashed; coral already used on M2) -->
162
+ <line x1="476" y1="544" x2="168" y2="544" stroke="#4f5d75" stroke-width="1.2" stroke-dasharray="5,4" marker-end="url(#arrow)"/>
163
+ <rect x="256" y="528" width="88" height="12" rx="2" fill="#f5f5f5"/>
164
+ <text x="300" y="538" fill="#4f5d75" font-size="8" font-family="'Geist Mono', monospace" text-anchor="middle" letter-spacing="0.08em">200 · BODY</text>
165
+
166
+ <!-- =================================================================
167
+ M8: Client → Auth async audit (open arrow, outside fragment)
168
+ ================================================================= -->
169
+ <line x1="164" y1="600" x2="796" y2="600" stroke="#4f5d75" stroke-width="1.2" stroke-dasharray="5,4" marker-end="url(#arrow-open)"/>
170
+ <rect x="424" y="584" width="96" height="12" rx="2" fill="#f5f5f5"/>
171
+ <text x="472" y="594" fill="#4f5d75" font-size="8" font-family="'Geist Mono', monospace" text-anchor="middle" letter-spacing="0.08em">AUDIT · ASYNC</text>
172
+
173
+ <!-- =================================================================
174
+ ACTOR BOXES — drawn after arrows
175
+ ================================================================= -->
176
+ <!-- Client (input / soft) -->
177
+ <rect x="88" y="72" width="144" height="56" rx="6" fill="#f5f5f5"/>
178
+ <rect x="88" y="72" width="144" height="56" rx="6" fill="rgba(79,93,117,0.10)" stroke="#5a6580" stroke-width="1"/>
179
+ <rect x="96" y="80" width="32" height="12" rx="2" fill="transparent" stroke="rgba(90,101,128,0.40)" stroke-width="0.8"/>
180
+ <text x="112" y="89" fill="#5a6580" font-size="7" font-family="'Geist Mono', monospace" text-anchor="middle" letter-spacing="0.08em">APP</text>
181
+ <text x="160" y="104" fill="#2d3142" font-size="12" font-weight="600" font-family="'Geist', sans-serif" text-anchor="middle">Client</text>
182
+ <text x="160" y="119" fill="#4f5d75" font-size="9" font-family="'Geist Mono', monospace" text-anchor="middle">SPA · SDK</text>
183
+
184
+ <!-- API (focal) -->
185
+ <rect x="408" y="72" width="144" height="56" rx="6" fill="#f5f5f5"/>
186
+ <rect x="408" y="72" width="144" height="56" rx="6" fill="rgba(191,69,32,0.08)" stroke="#bf4520" stroke-width="1"/>
187
+ <rect x="416" y="80" width="32" height="12" rx="2" fill="transparent" stroke="rgba(191,69,32,0.50)" stroke-width="0.8"/>
188
+ <text x="432" y="89" fill="#bf4520" font-size="7" font-family="'Geist Mono', monospace" text-anchor="middle" letter-spacing="0.08em">API</text>
189
+ <text x="480" y="104" fill="#2d3142" font-size="12" font-weight="600" font-family="'Geist', sans-serif" text-anchor="middle">Resource API</text>
190
+ <text x="480" y="119" fill="#4f5d75" font-size="9" font-family="'Geist Mono', monospace" text-anchor="middle">Bearer gate</text>
191
+
192
+ <!-- Auth (backend) -->
193
+ <rect x="728" y="72" width="144" height="56" rx="6" fill="#f5f5f5"/>
194
+ <rect x="728" y="72" width="144" height="56" rx="6" fill="#ffffff" stroke="#2d3142" stroke-width="1"/>
195
+ <rect x="736" y="80" width="36" height="12" rx="2" fill="transparent" stroke="rgba(45,49,66,0.30)" stroke-width="0.8"/>
196
+ <text x="754" y="89" fill="#4f5d75" font-size="7" font-family="'Geist Mono', monospace" text-anchor="middle" letter-spacing="0.08em">AUTH</text>
197
+ <text x="800" y="104" fill="#2d3142" font-size="12" font-weight="600" font-family="'Geist', sans-serif" text-anchor="middle">Auth</text>
198
+ <text x="800" y="119" fill="#4f5d75" font-size="9" font-family="'Geist Mono', monospace" text-anchor="middle">token · refresh</text>
199
+
200
+ <!-- =================================================================
201
+ LEGEND
202
+ ================================================================= -->
203
+ <line x1="56" y1="648" x2="904" y2="648" stroke="rgba(45,49,66,0.10)" stroke-width="0.8"/>
204
+ <text x="56" y="664" fill="#4f5d75" font-size="8" font-family="'Geist Mono', monospace" letter-spacing="0.18em">LEGEND</text>
205
+
206
+ <rect x="56" y="680" width="14" height="10" rx="2" fill="rgba(191,69,32,0.08)" stroke="#bf4520" stroke-width="1"/>
207
+ <text x="76" y="688" fill="#4f5d75" font-size="8.5" font-family="'Geist', sans-serif">Focal / success</text>
208
+
209
+ <rect x="200" y="676" width="28" height="18" rx="2" fill="rgba(45,49,66,0.02)" stroke="rgba(45,49,66,0.22)" stroke-width="1"/>
210
+ <text x="208" y="688" fill="#4f5d75" font-size="7" font-family="'Geist Mono', monospace">ALT</text>
211
+ <text x="236" y="688" fill="#4f5d75" font-size="8.5" font-family="'Geist', sans-serif">Fragment</text>
212
+
213
+ <line x1="320" y1="684" x2="348" y2="684" stroke="#2e5aa8" stroke-width="1.2" marker-end="url(#arrow-link)"/>
214
+ <text x="356" y="688" fill="#4f5d75" font-size="8.5" font-family="'Geist', sans-serif">HTTP call</text>
215
+
216
+ <line x1="448" y1="684" x2="476" y2="684" stroke="#4f5d75" stroke-width="1.2" stroke-dasharray="5,4" marker-end="url(#arrow)"/>
217
+ <text x="484" y="688" fill="#4f5d75" font-size="8.5" font-family="'Geist', sans-serif">Return</text>
218
+
219
+ <line x1="560" y1="684" x2="588" y2="684" stroke="#4f5d75" stroke-width="1.2" stroke-dasharray="5,4" marker-end="url(#arrow-open)"/>
220
+ <text x="596" y="688" fill="#4f5d75" font-size="8.5" font-family="'Geist', sans-serif">Async open</text>
221
+
222
+ <line x1="696" y1="684" x2="724" y2="684" stroke="#bf4520" stroke-width="1.4" marker-end="url(#arrow-accent)"/>
223
+ <text x="732" y="688" fill="#4f5d75" font-size="8.5" font-family="'Geist', sans-serif">Headline</text>
224
+ </svg>
225
+ </div>
226
+ </body>
227
+ </html>
@@ -0,0 +1,222 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>Article request · Sequence</title>
7
+ <link href="https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Geist:wght@400;500;600&family=Geist+Mono:wght@400;500;600&display=swap" rel="stylesheet">
8
+ <style>
9
+ *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
10
+ :root {
11
+ --color-paper: #f5f5f5;
12
+ --color-ink: #2d3142;
13
+ --color-muted: #4f5d75;
14
+ --color-accent: #bf4520;
15
+ --font-sans: 'Geist', system-ui, sans-serif;
16
+ --font-serif: 'Instrument Serif', serif;
17
+ --font-mono: 'Geist Mono', ui-monospace, monospace;
18
+ }
19
+
20
+ body {
21
+ font-family: var(--font-sans);
22
+ background: var(--color-paper);
23
+ color: var(--color-ink);
24
+ min-height: 100vh;
25
+ display: flex;
26
+ align-items: center;
27
+ justify-content: center;
28
+ padding: 3rem 2rem;
29
+ }
30
+
31
+ .frame { max-width: 1200px; width: 100%; }
32
+
33
+ .eyebrow {
34
+ font-family: var(--font-mono);
35
+ font-size: 0.66rem;
36
+ font-weight: 500;
37
+ letter-spacing: 0.18em;
38
+ text-transform: uppercase;
39
+ color: var(--color-muted);
40
+ margin-bottom: 0.5rem;
41
+ }
42
+
43
+ h1 {
44
+ font-family: var(--font-serif);
45
+ font-size: clamp(1.5rem, 2.4vw + 0.75rem, 2rem);
46
+ font-weight: 400;
47
+ letter-spacing: -0.02em;
48
+ line-height: 1.15;
49
+ color: var(--color-ink);
50
+ margin-bottom: 1.5rem;
51
+ }
52
+
53
+ svg { width: 100%; min-width: 900px; display: block; }
54
+ </style>
55
+ </head>
56
+ <body>
57
+ <div class="frame">
58
+ <p class="eyebrow">Sequence · Diagram Design</p>
59
+ <h1>Article request, cold cache</h1>
60
+
61
+ <svg viewBox="0 0 1000 584" xmlns="http://www.w3.org/2000/svg" role="img" aria-labelledby="sequence-title sequence-desc">
62
+ <title id="sequence-title">Article request, cold cache</title>
63
+ <desc id="sequence-desc">Sequence diagram showing a cold-cache article request moving from reader and browser through Cloudflare to an Astro origin and analytics beacon.</desc>
64
+ <defs>
65
+ <!-- Dot grid background -->
66
+ <pattern id="dots" width="22" height="22" patternUnits="userSpaceOnUse">
67
+ <circle cx="1" cy="1" r="0.9" fill="rgba(45,49,66,0.10)"/>
68
+ </pattern>
69
+
70
+ <!-- Arrow markers -->
71
+ <marker id="arrow" markerWidth="8" markerHeight="6" refX="7" refY="3" orient="auto">
72
+ <polygon points="0 0, 8 3, 0 6" fill="#4f5d75"/>
73
+ </marker>
74
+ <marker id="arrow-accent" markerWidth="8" markerHeight="6" refX="7" refY="3" orient="auto">
75
+ <polygon points="0 0, 8 3, 0 6" fill="#bf4520"/>
76
+ </marker>
77
+ <marker id="arrow-link" markerWidth="8" markerHeight="6" refX="7" refY="3" orient="auto">
78
+ <polygon points="0 0, 8 3, 0 6" fill="#2e5aa8"/>
79
+ </marker>
80
+ </defs>
81
+
82
+ <!-- Background: paper + dot grid -->
83
+ <rect width="100%" height="100%" fill="#f5f5f5"/>
84
+ <rect width="100%" height="100%" fill="url(#dots)" opacity="0.55"/>
85
+
86
+ <!-- =================================================================
87
+ LIFELINES — dashed vertical lines from each actor, behind everything.
88
+ Actor lifeline x-coords: 128, 352, 584, 800
89
+ ================================================================= -->
90
+ <line x1="128" y1="128" x2="128" y2="488" stroke="rgba(45,49,66,0.22)" stroke-width="1" stroke-dasharray="3,3"/>
91
+ <line x1="352" y1="128" x2="352" y2="488" stroke="rgba(45,49,66,0.22)" stroke-width="1" stroke-dasharray="3,3"/>
92
+ <line x1="584" y1="128" x2="584" y2="488" stroke="rgba(45,49,66,0.22)" stroke-width="1" stroke-dasharray="3,3"/>
93
+ <line x1="800" y1="128" x2="800" y2="488" stroke="rgba(45,49,66,0.22)" stroke-width="1" stroke-dasharray="3,3"/>
94
+
95
+ <!-- =================================================================
96
+ ACTIVATION BARS — w=8 rects on lifelines showing control duration.
97
+ Drawn before message arrows so arrows land on their edges.
98
+ ================================================================= -->
99
+ <!-- Cloudflare activation: receives at y=176, responds at y=408 -->
100
+ <rect x="348" y="180" width="8" height="232" fill="rgba(45,49,66,0.06)" stroke="#4f5d75" stroke-width="0.8"/>
101
+ <!-- Astro activation: called at y=232, returns at y=352 -->
102
+ <rect x="580" y="236" width="8" height="120" fill="rgba(45,49,66,0.06)" stroke="#4f5d75" stroke-width="0.8"/>
103
+
104
+ <!-- =================================================================
105
+ MESSAGE ARROWS — time flows top→down.
106
+ Draw before labels so label masks cover the line.
107
+ ================================================================= -->
108
+
109
+ <!-- M1: Reader → Cloudflare (HTTPS request · link-blue) -->
110
+ <line x1="128" y1="176" x2="352" y2="176" stroke="#2e5aa8" stroke-width="1.2" marker-end="url(#arrow-link)"/>
111
+
112
+ <!-- M2: Cloudflare → Astro (cache miss · muted) -->
113
+ <line x1="352" y1="232" x2="580" y2="232" stroke="#4f5d75" stroke-width="1.2" marker-end="url(#arrow)"/>
114
+
115
+ <!-- M3: Astro self-message (render MDX · muted U-loop) -->
116
+ <path d="M 588 284 L 624 284 L 624 316 L 588 316" fill="none" stroke="#4f5d75" stroke-width="1.2" marker-end="url(#arrow)"/>
117
+
118
+ <!-- M4: Astro → Cloudflare (return HTML · muted dashed) -->
119
+ <line x1="580" y1="352" x2="356" y2="352" stroke="#4f5d75" stroke-width="1.2" stroke-dasharray="5,4" marker-end="url(#arrow)"/>
120
+
121
+ <!-- M5: Cloudflare → Reader (primary success · coral) -->
122
+ <line x1="348" y1="408" x2="128" y2="408" stroke="#bf4520" stroke-width="1.4" marker-end="url(#arrow-accent)"/>
123
+
124
+ <!-- M6: Reader → Analytics (async beacon · muted dashed) -->
125
+ <line x1="128" y1="464" x2="800" y2="464" stroke="#4f5d75" stroke-width="1.2" stroke-dasharray="5,4" marker-end="url(#arrow)"/>
126
+
127
+ <!-- =================================================================
128
+ MESSAGE LABELS — each with an opaque paper-colored mask.
129
+ ================================================================= -->
130
+
131
+ <!-- M1 label -->
132
+ <rect x="188" y="160" width="104" height="12" rx="2" fill="#f5f5f5"/>
133
+ <text x="240" y="170" fill="#2e5aa8" font-size="8" font-family="'Geist Mono', monospace" text-anchor="middle" letter-spacing="0.08em">GET /ARTICLES/SLUG</text>
134
+
135
+ <!-- M2 label -->
136
+ <rect x="416" y="216" width="100" height="12" rx="2" fill="#f5f5f5"/>
137
+ <text x="466" y="226" fill="#4f5d75" font-size="8" font-family="'Geist Mono', monospace" text-anchor="middle" letter-spacing="0.08em">CACHE MISS · ORIGIN</text>
138
+
139
+ <!-- M3 label (to the right of the self-loop) -->
140
+ <rect x="632" y="292" width="72" height="12" rx="2" fill="#f5f5f5"/>
141
+ <text x="668" y="302" fill="#4f5d75" font-size="8" font-family="'Geist Mono', monospace" text-anchor="middle" letter-spacing="0.08em">RENDER MDX</text>
142
+
143
+ <!-- M4 label -->
144
+ <rect x="420" y="336" width="96" height="12" rx="2" fill="#f5f5f5"/>
145
+ <text x="468" y="346" fill="#4f5d75" font-size="8" font-family="'Geist Mono', monospace" text-anchor="middle" letter-spacing="0.08em">200 · HTML + MAX-AGE</text>
146
+
147
+ <!-- M5 label (coral · primary response) -->
148
+ <rect x="192" y="392" width="96" height="12" rx="2" fill="#f5f5f5"/>
149
+ <text x="240" y="402" fill="#bf4520" font-size="8" font-family="'Geist Mono', monospace" text-anchor="middle" letter-spacing="0.08em">200 · EDGE-CACHED</text>
150
+
151
+ <!-- M6 label (placed between Astro and Analytics lifelines, a clear gap) -->
152
+ <rect x="648" y="448" width="96" height="12" rx="2" fill="#f5f5f5"/>
153
+ <text x="696" y="458" fill="#4f5d75" font-size="8" font-family="'Geist Mono', monospace" text-anchor="middle" letter-spacing="0.08em">PAGEVIEW BEACON</text>
154
+
155
+ <!-- =================================================================
156
+ ACTOR BOXES — drawn after arrows/labels.
157
+ Each actor: 144–160 wide × 56 tall. Centers: 128, 352, 584, 800.
158
+ ================================================================= -->
159
+
160
+ <!-- Actor 1: Reader (external / soft) -->
161
+ <rect x="56" y="72" width="144" height="56" rx="6" fill="#f5f5f5"/>
162
+ <rect x="56" y="72" width="144" height="56" rx="6" fill="rgba(79,93,117,0.10)" stroke="#5a6580" stroke-width="1"/>
163
+ <rect x="64" y="80" width="28" height="12" rx="2" fill="transparent" stroke="rgba(90,101,128,0.40)" stroke-width="0.8"/>
164
+ <text x="78" y="89" fill="#5a6580" font-size="7" font-family="'Geist Mono', monospace" text-anchor="middle" letter-spacing="0.08em">EXT</text>
165
+ <text x="128" y="104" fill="#2d3142" font-size="12" font-weight="600" font-family="'Geist', sans-serif" text-anchor="middle">Reader</text>
166
+ <text x="128" y="119" fill="#4f5d75" font-size="9" font-family="'Geist Mono', monospace" text-anchor="middle">Browser</text>
167
+
168
+ <!-- Actor 2: Cloudflare (cloud / muted) -->
169
+ <rect x="280" y="72" width="144" height="56" rx="6" fill="#f5f5f5"/>
170
+ <rect x="280" y="72" width="144" height="56" rx="6" fill="rgba(45,49,66,0.03)" stroke="rgba(45,49,66,0.30)" stroke-width="1"/>
171
+ <rect x="288" y="80" width="32" height="12" rx="2" fill="transparent" stroke="rgba(45,49,66,0.22)" stroke-width="0.8"/>
172
+ <text x="304" y="89" fill="#5a6580" font-size="7" font-family="'Geist Mono', monospace" text-anchor="middle" letter-spacing="0.08em">EDGE</text>
173
+ <text x="352" y="104" fill="#2d3142" font-size="12" font-weight="600" font-family="'Geist', sans-serif" text-anchor="middle">Cloudflare</text>
174
+ <text x="352" y="119" fill="#4f5d75" font-size="9" font-family="'Geist Mono', monospace" text-anchor="middle">Pages · cache</text>
175
+
176
+ <!-- Actor 3: Astro Origin (focal / coral) -->
177
+ <rect x="504" y="72" width="160" height="56" rx="6" fill="#f5f5f5"/>
178
+ <rect x="504" y="72" width="160" height="56" rx="6" fill="rgba(191,69,32,0.08)" stroke="#bf4520" stroke-width="1"/>
179
+ <rect x="512" y="80" width="32" height="12" rx="2" fill="transparent" stroke="rgba(191,69,32,0.50)" stroke-width="0.8"/>
180
+ <text x="528" y="89" fill="#bf4520" font-size="7" font-family="'Geist Mono', monospace" text-anchor="middle" letter-spacing="0.08em">ORIG</text>
181
+ <text x="584" y="104" fill="#2d3142" font-size="12" font-weight="600" font-family="'Geist', sans-serif" text-anchor="middle">Astro Origin</text>
182
+ <text x="584" y="119" fill="#4f5d75" font-size="9" font-family="'Geist Mono', monospace" text-anchor="middle">SSR + MDX</text>
183
+
184
+ <!-- Actor 4: Analytics (optional / dashed) -->
185
+ <rect x="728" y="72" width="144" height="56" rx="6" fill="#f5f5f5"/>
186
+ <rect x="728" y="72" width="144" height="56" rx="6" fill="rgba(45,49,66,0.02)" stroke="rgba(45,49,66,0.22)" stroke-width="1" stroke-dasharray="4,3"/>
187
+ <rect x="736" y="80" width="28" height="12" rx="2" fill="transparent" stroke="rgba(45,49,66,0.22)" stroke-width="0.8"/>
188
+ <text x="750" y="89" fill="#5a6580" font-size="7" font-family="'Geist Mono', monospace" text-anchor="middle" letter-spacing="0.08em">ASY</text>
189
+ <text x="800" y="104" fill="#2d3142" font-size="12" font-weight="600" font-family="'Geist', sans-serif" text-anchor="middle">Analytics</text>
190
+ <text x="800" y="119" fill="#4f5d75" font-size="9" font-family="'Geist Mono', monospace" text-anchor="middle">Beacon · async</text>
191
+
192
+ <!-- =================================================================
193
+ LEGEND — horizontal strip at the bottom.
194
+ Separator at y=504, eyebrow at y=520, items at y=540–548.
195
+ ================================================================= -->
196
+ <line x1="56" y1="504" x2="944" y2="504" stroke="rgba(45,49,66,0.10)" stroke-width="0.8"/>
197
+ <text x="56" y="520" fill="#4f5d75" font-size="8" font-family="'Geist Mono', monospace" letter-spacing="0.18em">LEGEND</text>
198
+
199
+ <!-- Item 1: Actor swatch (coral focal) -->
200
+ <rect x="56" y="540" width="14" height="10" rx="2" fill="rgba(191,69,32,0.08)" stroke="#bf4520" stroke-width="1"/>
201
+ <text x="76" y="548" fill="#4f5d75" font-size="8.5" font-family="'Geist', sans-serif">Focal actor</text>
202
+
203
+ <!-- Item 2: Activation bar swatch -->
204
+ <rect x="188" y="536" width="4" height="18" fill="rgba(45,49,66,0.06)" stroke="#4f5d75" stroke-width="0.8"/>
205
+ <text x="200" y="548" fill="#4f5d75" font-size="8.5" font-family="'Geist', sans-serif">Activation</text>
206
+
207
+ <!-- Item 3: Request arrow (link-blue) -->
208
+ <line x1="308" y1="546" x2="336" y2="546" stroke="#2e5aa8" stroke-width="1.2" marker-end="url(#arrow-link)"/>
209
+ <text x="344" y="548" fill="#4f5d75" font-size="8.5" font-family="'Geist', sans-serif">HTTP request</text>
210
+
211
+ <!-- Item 4: Return / async (muted dashed) -->
212
+ <line x1="476" y1="546" x2="504" y2="546" stroke="#4f5d75" stroke-width="1.2" stroke-dasharray="5,4" marker-end="url(#arrow)"/>
213
+ <text x="512" y="548" fill="#4f5d75" font-size="8.5" font-family="'Geist', sans-serif">Return / async</text>
214
+
215
+ <!-- Item 5: Primary response (coral) -->
216
+ <line x1="652" y1="546" x2="680" y2="546" stroke="#bf4520" stroke-width="1.4" marker-end="url(#arrow-accent)"/>
217
+ <text x="688" y="548" fill="#4f5d75" font-size="8.5" font-family="'Geist', sans-serif">Primary response</text>
218
+
219
+ </svg>
220
+ </div>
221
+ </body>
222
+ </html>