agent-afk 5.201.1 → 5.202.1

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,202 @@
1
+ /* ── schedules view ─────────────────────────────────────────────────────── */
2
+
3
+ .sched-view { display: none; flex: 1; flex-direction: column; overflow-y: auto; padding: 24px; }
4
+ .sched-view.is-active { display: flex; }
5
+
6
+ .sched-header { max-width: 900px; width: 100%; margin: 0 auto 20px; }
7
+ .sched-title-row {
8
+ display: flex; align-items: center; justify-content: space-between; gap: 12px;
9
+ margin-bottom: 10px;
10
+ }
11
+ .sched-title { margin: 0; font-size: 18px; font-weight: 600; color: var(--text); }
12
+ .sched-add-btn {
13
+ font: inherit; font-size: 12px; font-weight: 600;
14
+ color: var(--accent); background: transparent;
15
+ border: 1px solid var(--border); border-radius: 6px;
16
+ padding: 6px 14px; cursor: pointer; white-space: nowrap;
17
+ transition: border-color 0.15s ease, background 0.15s ease;
18
+ }
19
+ .sched-add-btn:hover { border-color: var(--accent); background: var(--bg-raised); }
20
+
21
+ .sched-daemon-status {
22
+ display: flex; align-items: center; gap: 8px;
23
+ font-size: 12px; color: var(--text-dim);
24
+ }
25
+ .sched-dot-ok, .sched-dot-off {
26
+ width: 8px; height: 8px; border-radius: 50%; flex: 0 0 8px;
27
+ }
28
+ .sched-dot-ok { background: var(--success); }
29
+ .sched-dot-off { background: var(--text-faint); }
30
+
31
+ /* ── empty state ────────────────────────────────────────────────────────── */
32
+ .sched-empty {
33
+ text-align: center; padding: 48px 20px; color: var(--text-dim);
34
+ max-width: 900px; width: 100%; margin: 0 auto;
35
+ }
36
+ .sched-empty-icon { font-size: 36px; margin-bottom: 12px; }
37
+ .sched-empty-title { font-size: 16px; font-weight: 600; margin-bottom: 6px; color: var(--text); }
38
+ .sched-empty-sub { font-size: 13px; }
39
+
40
+ /* ── schedule cards ─────────────────────────────────────────────────────── */
41
+ .sched-list { max-width: 900px; width: 100%; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
42
+ .sched-card {
43
+ background: var(--bg-raised); border: 1px solid var(--border);
44
+ border-radius: var(--radius); padding: 14px 16px;
45
+ transition: border-color 0.15s ease;
46
+ }
47
+ .sched-card:hover { border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
48
+ .sched-card-disabled { opacity: 0.6; }
49
+ .sched-card-disabled:hover { border-color: var(--border); }
50
+
51
+ .sched-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
52
+ .sched-card-name { font-size: 14px; font-weight: 600; color: var(--text); }
53
+
54
+ /* ── toggle switch ──────────────────────────────────────────────────────── */
55
+ .sched-toggle {
56
+ position: relative; width: 36px; height: 20px;
57
+ background: var(--border); border: none; border-radius: 10px;
58
+ cursor: pointer; padding: 0;
59
+ transition: background 0.2s ease;
60
+ }
61
+ .sched-toggle.is-on { background: var(--success); }
62
+ .sched-toggle-dot {
63
+ position: absolute; top: 2px; left: 2px;
64
+ width: 16px; height: 16px; border-radius: 50%;
65
+ background: var(--text); transition: transform 0.2s ease;
66
+ }
67
+ .sched-toggle.is-on .sched-toggle-dot { transform: translateX(16px); }
68
+
69
+ /* ── card details ───────────────────────────────────────────────────────── */
70
+ .sched-card-details { display: flex; flex-direction: column; gap: 5px; margin-bottom: 10px; }
71
+ .sched-detail-row { display: flex; align-items: baseline; gap: 10px; font-size: 12px; }
72
+ .sched-detail-label {
73
+ color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.06em;
74
+ font-size: 10px; min-width: 68px; flex: 0 0 auto;
75
+ }
76
+ .sched-detail-value { color: var(--text-dim); display: flex; align-items: baseline; gap: 8px; }
77
+ .sched-detail-code {
78
+ font-family: var(--mono); font-size: 12px; color: var(--accent);
79
+ background: var(--bg-sunken); border: 1px solid var(--border);
80
+ border-radius: 4px; padding: 1px 6px;
81
+ }
82
+ .sched-cron-raw {
83
+ font-family: var(--mono); font-size: 10px; color: var(--text-faint);
84
+ background: var(--bg-sunken); border: 1px solid var(--border);
85
+ border-radius: 3px; padding: 0 4px;
86
+ }
87
+
88
+ .sched-card-meta {
89
+ display: flex; align-items: center; gap: 10px;
90
+ font-size: 10px; color: var(--text-faint); margin-top: 4px;
91
+ }
92
+ .sched-card-id { font-family: var(--mono); }
93
+ .sched-card-time { margin-left: auto; }
94
+
95
+ /* ── card actions ───────────────────────────────────────────────────────── */
96
+ .sched-card-actions {
97
+ display: flex; gap: 8px; padding-top: 10px;
98
+ border-top: 1px solid var(--border);
99
+ }
100
+ .sched-action-btn {
101
+ font: inherit; font-size: 11px; color: var(--text-dim);
102
+ background: transparent; border: 1px solid var(--border);
103
+ border-radius: 5px; padding: 3px 10px; cursor: pointer;
104
+ transition: color 0.15s ease, border-color 0.15s ease;
105
+ }
106
+ .sched-action-btn:hover { color: var(--text); border-color: var(--accent); }
107
+ .sched-action-danger { color: var(--error); }
108
+ .sched-action-danger:hover { color: var(--error); border-color: var(--error); }
109
+
110
+ /* ── modal overlay ──────────────────────────────────────────────────────── */
111
+ .sched-overlay {
112
+ position: fixed; inset: 0; z-index: 50;
113
+ display: flex; align-items: center; justify-content: center;
114
+ background: rgba(0, 0, 0, 0.65);
115
+ }
116
+ .sched-modal {
117
+ background: var(--bg-raised); border: 1px solid var(--border);
118
+ border-radius: var(--radius); padding: 24px;
119
+ width: 480px; max-width: 92vw; max-height: 85vh; overflow-y: auto;
120
+ }
121
+ .sched-modal-wide { width: 600px; }
122
+ .sched-modal-title { margin: 0 0 18px; font-size: 16px; font-weight: 600; color: var(--text); }
123
+
124
+ /* ── form fields ────────────────────────────────────────────────────────── */
125
+ .sched-field { margin-bottom: 14px; }
126
+ .sched-label {
127
+ display: block; font-size: 11px; text-transform: uppercase;
128
+ letter-spacing: 0.06em; color: var(--text-dim); margin-bottom: 5px;
129
+ }
130
+ .sched-input, .sched-select {
131
+ width: 100%; padding: 8px 10px;
132
+ background: var(--bg-sunken); border: 1px solid var(--border);
133
+ border-radius: 6px; color: var(--text); font: inherit; font-size: 13px;
134
+ }
135
+ .sched-input:focus, .sched-select:focus { outline: none; border-color: var(--accent); }
136
+ .sched-input-mono { font-family: var(--mono); font-size: 12px; }
137
+ .sched-cron-preview {
138
+ font-size: 11px; color: var(--text-dim); margin-top: 5px;
139
+ font-style: italic; min-height: 16px;
140
+ }
141
+
142
+ .sched-btn-row { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }
143
+ .sched-cancel-btn {
144
+ font: inherit; font-size: 13px; color: var(--text-dim);
145
+ background: transparent; border: 1px solid var(--border);
146
+ border-radius: 6px; padding: 8px 18px; cursor: pointer;
147
+ }
148
+ .sched-cancel-btn:hover { border-color: var(--text-dim); }
149
+ .sched-save-btn {
150
+ font: inherit; font-size: 13px; font-weight: 600;
151
+ color: #1a0d05; background: var(--accent);
152
+ border: none; border-radius: 6px; padding: 8px 22px; cursor: pointer;
153
+ transition: opacity 0.15s ease;
154
+ }
155
+ .sched-save-btn:hover:not(:disabled) { opacity: 0.88; }
156
+ .sched-save-btn:disabled { opacity: 0.5; cursor: default; }
157
+
158
+ /* ── history records ────────────────────────────────────────────────────── */
159
+ .sched-history-body { max-height: 50vh; overflow-y: auto; margin-bottom: 16px; }
160
+ .sched-history-loading { padding: 20px; color: var(--text-dim); text-align: center; }
161
+ .sched-hist-row {
162
+ padding: 10px 12px; border-radius: 6px; margin-bottom: 6px;
163
+ background: var(--bg-sunken); border: 1px solid var(--border);
164
+ }
165
+ .sched-hist-header { display: flex; align-items: center; gap: 8px; font-size: 12px; }
166
+ .sched-hist-dot { width: 7px; height: 7px; border-radius: 50%; flex: 0 0 7px; }
167
+ .sched-hist-dot-success { background: var(--success); }
168
+ .sched-hist-dot-error { background: var(--error); }
169
+ .sched-hist-dot-skipped { background: var(--warning); }
170
+ .sched-hist-status { color: var(--text-dim); text-transform: uppercase; font-size: 10px; letter-spacing: 0.06em; font-family: var(--mono); }
171
+ .sched-hist-time { color: var(--text-faint); font-size: 11px; }
172
+ .sched-hist-duration { color: var(--text-dim); font-family: var(--mono); font-size: 11px; margin-left: auto; }
173
+ .sched-hist-trigger {
174
+ font-size: 10px; color: var(--text-faint); border: 1px solid var(--border);
175
+ border-radius: 3px; padding: 0 4px;
176
+ }
177
+ .sched-hist-error {
178
+ margin-top: 6px; font-size: 12px; color: var(--error);
179
+ font-family: var(--mono); white-space: pre-wrap; word-break: break-word;
180
+ }
181
+ .sched-hist-skip { margin-top: 6px; font-size: 12px; color: var(--warning); }
182
+ .sched-hist-excerpt {
183
+ margin-top: 6px; font-size: 11px; color: var(--text-faint);
184
+ font-family: var(--mono); white-space: pre-wrap; word-break: break-word;
185
+ max-height: 80px; overflow: hidden;
186
+ }
187
+
188
+ /* ── nav tabs ───────────────────────────────────────────────────────────── */
189
+ .sidebar-nav {
190
+ display: flex; border-bottom: 1px solid var(--border);
191
+ }
192
+ .sidebar-nav-btn {
193
+ flex: 1; padding: 8px 0; background: none; border: none;
194
+ border-bottom: 2px solid transparent;
195
+ color: var(--text-dim); font: inherit; font-size: 11px;
196
+ text-transform: uppercase; letter-spacing: 0.06em;
197
+ cursor: pointer; transition: color 0.15s ease, border-color 0.15s ease;
198
+ }
199
+ .sidebar-nav-btn:hover { color: var(--text); }
200
+ .sidebar-nav-btn.is-active {
201
+ color: var(--accent); border-bottom-color: var(--accent);
202
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-afk",
3
- "version": "5.201.1",
3
+ "version": "5.202.1",
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",