agent-afk 5.203.0 → 5.204.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,118 @@
1
+ /*
2
+ * Model selector widget and model badge styles.
3
+ *
4
+ * All values use the CSS custom properties defined in styles.css (:root).
5
+ * No hardcoded colours; no inline styles; no id selectors.
6
+ *
7
+ * Two concerns:
8
+ * .model-selector / .model-selector__* — the <select> widget used in forms.
9
+ * .model-badge / .model-badge--* — the small pill used in sidebar rows.
10
+ */
11
+
12
+ /* ── model selector widget ────────────────────────────────────────────────── */
13
+
14
+ .model-selector {
15
+ display: flex;
16
+ flex-direction: column;
17
+ gap: 3px;
18
+ }
19
+
20
+ .model-selector__label {
21
+ display: flex;
22
+ flex-direction: column;
23
+ gap: 3px;
24
+ font-size: 11px;
25
+ text-transform: uppercase;
26
+ letter-spacing: 0.06em;
27
+ color: var(--text-dim);
28
+ }
29
+
30
+ /*
31
+ * Contract: .model-selector__select appearance intentionally resets the
32
+ * native <select> chrome so it matches the dark-theme inputs already defined
33
+ * as .nsf-select in styles.css. The two rulesets are kept separate so the
34
+ * selector can be used outside the new-session form without pulling in
35
+ * form-specific layout.
36
+ */
37
+ .model-selector__select {
38
+ width: 100%;
39
+ padding: 5px 8px;
40
+ background: var(--bg-sunken);
41
+ border: 1px solid var(--border);
42
+ border-radius: 6px;
43
+ color: var(--text);
44
+ font: inherit;
45
+ font-size: 12px;
46
+ /* Remove native arrow on WebKit/Blink; we rely on the default UA arrow
47
+ which is acceptable in this minimal dark surface. */
48
+ appearance: auto;
49
+ cursor: pointer;
50
+ }
51
+
52
+ .model-selector__select:focus {
53
+ outline: none;
54
+ border-color: var(--accent);
55
+ }
56
+
57
+ .model-selector__select:disabled {
58
+ opacity: 0.5;
59
+ cursor: default;
60
+ }
61
+
62
+ /* Drop-down options inherit the page background on systems that respect it. */
63
+ .model-selector__select option {
64
+ background: var(--bg-raised);
65
+ color: var(--text);
66
+ }
67
+
68
+ /* ── model badge pill ─────────────────────────────────────────────────────── */
69
+
70
+ /*
71
+ * Base pill: matches the existing .badge sizing and shape in styles.css so
72
+ * the model badge fits naturally alongside .badge-live / .badge-readonly in
73
+ * the .session-meta row without additional adjustment.
74
+ */
75
+ .model-badge {
76
+ font-size: 10px;
77
+ padding: 1px 6px;
78
+ border-radius: 999px;
79
+ font-family: var(--mono);
80
+ letter-spacing: 0.03em;
81
+ /* Default: text-dim, for unknown tiers. */
82
+ color: var(--text-faint);
83
+ background: color-mix(in srgb, var(--text-faint) 14%, transparent);
84
+ flex-shrink: 0;
85
+ }
86
+
87
+ /*
88
+ * Tier-specific colour modifiers.
89
+ *
90
+ * Invariant: modifier classes are always applied IN ADDITION to .model-badge,
91
+ * never as standalone classes. The base class carries display/sizing; the
92
+ * modifier only supplies colour.
93
+ *
94
+ * Colour semantics:
95
+ * opus — accent (orange) — the premium tier, visually prominent.
96
+ * sonnet — success (green) — the recommended default.
97
+ * haiku — text-dim (grey) — the fast/light tier, visually quiet.
98
+ */
99
+ .model-badge--opus {
100
+ color: var(--accent);
101
+ background: color-mix(in srgb, var(--accent) 14%, transparent);
102
+ }
103
+
104
+ .model-badge--sonnet {
105
+ color: var(--success);
106
+ background: color-mix(in srgb, var(--success) 14%, transparent);
107
+ }
108
+
109
+ .model-badge--haiku {
110
+ color: var(--text-dim);
111
+ background: color-mix(in srgb, var(--text-dim) 14%, transparent);
112
+ }
113
+
114
+ /* Fallback: same as base, explicit for documentation clarity. */
115
+ .model-badge--default {
116
+ color: var(--text-faint);
117
+ background: color-mix(in srgb, var(--text-faint) 14%, transparent);
118
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-afk",
3
- "version": "5.203.0",
3
+ "version": "5.204.0",
4
4
  "description": "Open-source coding-agent harness you can actually change — own the loop (prompts, gates, routing, skills, terminal states), use any model, run long tasks while you're away.",
5
5
  "main": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",