@agy-daddy/plugin-context 0.0.0-stage → 1.0.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.
@@ -0,0 +1,274 @@
1
+ 'use strict';
2
+
3
+ const CONTEXT_PANEL_CSS = `
4
+ /* Context Panel — Flat hairline-divided layout with @container responsiveness */
5
+
6
+ #agy-context-panel {
7
+ container-type: inline-size;
8
+ display: flex;
9
+ flex-direction: column;
10
+ gap: 0;
11
+ }
12
+
13
+ .ag-ctx-header {
14
+ display: flex;
15
+ align-items: center;
16
+ justify-content: space-between;
17
+ gap: 8px;
18
+ padding-bottom: 10px;
19
+ }
20
+
21
+ .ag-ctx-model-wrap {
22
+ display: flex;
23
+ align-items: center;
24
+ gap: 6px;
25
+ min-width: 0;
26
+ flex: 1;
27
+ }
28
+
29
+ .ag-ctx-model {
30
+ font-size: 12.5px;
31
+ font-weight: 600;
32
+ color: var(--ag-text-primary);
33
+ overflow: hidden;
34
+ text-overflow: ellipsis;
35
+ white-space: nowrap;
36
+ }
37
+
38
+ .ag-ctx-refresh {
39
+ display: inline-flex;
40
+ align-items: center;
41
+ justify-content: center;
42
+ gap: 4px;
43
+ height: 24px;
44
+ padding: 0 9px;
45
+ border-radius: 999px;
46
+ border: 1px solid var(--ag-border-card);
47
+ background: var(--ag-bg-subcard);
48
+ color: var(--ag-text-secondary);
49
+ font-family: inherit;
50
+ font-size: 11px;
51
+ font-weight: 500;
52
+ cursor: pointer;
53
+ white-space: nowrap;
54
+ flex-shrink: 0;
55
+ transition: background-color 140ms var(--ag-ease-out), border-color 140ms var(--ag-ease-out), color 140ms var(--ag-ease-out);
56
+ }
57
+
58
+ .ag-ctx-refresh:hover {
59
+ background: var(--ag-bg-control-hover);
60
+ border-color: var(--ag-accent-border);
61
+ color: var(--ag-text-primary);
62
+ }
63
+
64
+ .ag-ctx-refresh:focus-visible {
65
+ outline: 2px solid var(--ag-focus-ring);
66
+ outline-offset: 2px;
67
+ }
68
+
69
+ .ag-ctx-section {
70
+ padding: 10px 0;
71
+ border-top: 1px solid var(--ag-border-subcard);
72
+ display: flex;
73
+ flex-direction: column;
74
+ gap: 7px;
75
+ }
76
+
77
+ .ag-ctx-sec-head {
78
+ display: flex;
79
+ align-items: baseline;
80
+ justify-content: space-between;
81
+ gap: 8px;
82
+ }
83
+
84
+ .ag-ctx-sec-title {
85
+ font-size: 11.5px;
86
+ font-weight: 600;
87
+ letter-spacing: 0.01em;
88
+ color: var(--ag-text-secondary);
89
+ }
90
+
91
+ .ag-ctx-sec-meta {
92
+ font-size: 11px;
93
+ color: var(--ag-text-muted);
94
+ white-space: nowrap;
95
+ }
96
+
97
+ .ag-ctx-hero-row {
98
+ display: flex;
99
+ align-items: baseline;
100
+ justify-content: space-between;
101
+ gap: 8px;
102
+ }
103
+
104
+ .ag-ctx-hero-val {
105
+ display: inline-flex;
106
+ align-items: baseline;
107
+ gap: 4px;
108
+ font-size: 18px;
109
+ font-weight: 600;
110
+ letter-spacing: -0.02em;
111
+ color: var(--ag-text-primary);
112
+ }
113
+
114
+ .ag-ctx-hero-budget {
115
+ font-size: 12.5px;
116
+ font-weight: 500;
117
+ color: var(--ag-text-muted);
118
+ letter-spacing: 0;
119
+ }
120
+
121
+ .ag-ctx-hero-pct {
122
+ font-size: 12.5px;
123
+ font-weight: 600;
124
+ color: var(--ag-text-secondary);
125
+ }
126
+
127
+ .ag-ctx-hero-pct[data-tone="warn"] {
128
+ color: var(--ag-ring-warn, #f59e0b);
129
+ }
130
+
131
+ .ag-ctx-hero-pct[data-tone="danger"] {
132
+ color: var(--ag-ring-danger, #ef4444);
133
+ }
134
+
135
+ .ag-ctx-track {
136
+ position: relative;
137
+ width: 100%;
138
+ height: 6px;
139
+ border-radius: 999px;
140
+ background: var(--ag-bg-control);
141
+ overflow: visible;
142
+ }
143
+
144
+ .ag-ctx-fill {
145
+ height: 100%;
146
+ border-radius: 999px;
147
+ background: var(--ag-text-primary);
148
+ transition: width 240ms var(--ag-ease-out);
149
+ }
150
+
151
+ .ag-ctx-fill[data-tone="warn"] {
152
+ background: var(--ag-ring-warn, #f59e0b);
153
+ }
154
+
155
+ .ag-ctx-fill[data-tone="danger"] {
156
+ background: var(--ag-ring-danger, #ef4444);
157
+ }
158
+
159
+ .ag-ctx-tick {
160
+ position: absolute;
161
+ top: -2px;
162
+ bottom: -2px;
163
+ width: 1.5px;
164
+ border-radius: 1px;
165
+ background: var(--ag-text-muted);
166
+ opacity: 0.45;
167
+ pointer-events: none;
168
+ }
169
+
170
+ .ag-ctx-tick[data-kind="cliff"] {
171
+ opacity: 0.65;
172
+ }
173
+
174
+ .ag-ctx-metrics {
175
+ display: grid;
176
+ grid-template-columns: repeat(4, minmax(0, 1fr));
177
+ gap: 6px 10px;
178
+ }
179
+
180
+ @container (max-width: 339px) {
181
+ .ag-ctx-metrics {
182
+ grid-template-columns: repeat(2, minmax(0, 1fr));
183
+ gap: 8px 12px;
184
+ }
185
+ }
186
+
187
+ .ag-ctx-metric {
188
+ display: flex;
189
+ flex-direction: column;
190
+ gap: 2px;
191
+ min-width: 0;
192
+ }
193
+
194
+ .ag-ctx-metric-label {
195
+ font-size: 10.5px;
196
+ color: var(--ag-text-muted);
197
+ white-space: nowrap;
198
+ overflow: hidden;
199
+ text-overflow: ellipsis;
200
+ }
201
+
202
+ .ag-ctx-metric-val {
203
+ font-size: 13.5px;
204
+ font-weight: 600;
205
+ letter-spacing: -0.01em;
206
+ color: var(--ag-text-primary);
207
+ white-space: nowrap;
208
+ overflow: hidden;
209
+ text-overflow: ellipsis;
210
+ }
211
+
212
+ .ag-ctx-subline {
213
+ display: flex;
214
+ flex-wrap: wrap;
215
+ align-items: center;
216
+ justify-content: space-between;
217
+ gap: 4px 10px;
218
+ font-size: 11px;
219
+ color: var(--ag-text-muted);
220
+ }
221
+
222
+ .ag-ctx-alerts {
223
+ display: flex;
224
+ flex-wrap: wrap;
225
+ gap: 5px;
226
+ }
227
+
228
+ .ag-ctx-empty {
229
+ padding: 14px 4px 6px;
230
+ border-top: 1px solid var(--ag-border-subcard);
231
+ font-size: 12px;
232
+ color: var(--ag-text-muted);
233
+ }
234
+
235
+ .ag-ctx-help {
236
+ margin-top: 2px;
237
+ padding-top: 8px;
238
+ border-top: 1px solid var(--ag-border-subcard);
239
+ font-size: 11px;
240
+ color: var(--ag-text-muted);
241
+ }
242
+
243
+ .ag-ctx-help summary {
244
+ cursor: pointer;
245
+ list-style: none;
246
+ display: inline-flex;
247
+ align-items: center;
248
+ gap: 4px;
249
+ color: var(--ag-text-muted);
250
+ user-select: none;
251
+ transition: color 140ms var(--ag-ease-out);
252
+ }
253
+
254
+ .ag-ctx-help summary::-webkit-details-marker {
255
+ display: none;
256
+ }
257
+
258
+ .ag-ctx-help summary:hover {
259
+ color: var(--ag-text-secondary);
260
+ }
261
+
262
+ .ag-ctx-help-list {
263
+ margin: 6px 0 0;
264
+ padding-left: 14px;
265
+ display: flex;
266
+ flex-direction: column;
267
+ gap: 3px;
268
+ line-height: 1.45;
269
+ }
270
+ `.trim();
271
+
272
+ module.exports = {
273
+ CONTEXT_PANEL_CSS
274
+ };