hermium 0.1.6 → 0.1.7

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 (52) hide show
  1. package/dist/public/assets/{IconAlertCircle-B7TgWpbP.js → IconAlertCircle-C98Iam1j.js} +1 -1
  2. package/dist/public/assets/{IconAlertTriangle-B7IYa46Q.js → IconAlertTriangle-DdD7_dc8.js} +1 -1
  3. package/dist/public/assets/{IconCheck-B-_pWgtP.js → IconCheck-CYZ4_524.js} +1 -1
  4. package/dist/public/assets/{IconLoader2-ClSf33Yd.js → IconLoader2-DkEhzUxZ.js} +1 -1
  5. package/dist/public/assets/{IconRefresh-D4MZeezY.js → IconRefresh-CCXMrUxO.js} +1 -1
  6. package/dist/public/assets/index-BTiEWEax.js +1 -0
  7. package/dist/public/assets/{index-BuznEPrX.js → index-Bfadg8tB.js} +1 -1
  8. package/dist/public/assets/{index-CsJLc3b2.js → index-C0ivmMuU.js} +1 -1
  9. package/dist/public/assets/index-CQCxtJMS.js +14 -0
  10. package/dist/public/assets/{index-BiFHsDt6.js → index-D6B0cdTJ.js} +1 -1
  11. package/dist/public/assets/{index-D04H-m2p.js → index-DCT13_ZI.js} +1 -1
  12. package/dist/public/assets/{index-B-EALIKE.js → index-DhCVawEl.js} +1 -1
  13. package/dist/public/assets/{index-xH6PhxmS.js → index-KT0CxDFc.js} +1 -1
  14. package/dist/public/assets/index-qsvsww7-.js +1 -0
  15. package/dist/public/assets/{index-DKYPj90W.js → index-twHXYGSY.js} +5 -5
  16. package/dist/public/assets/{index-DmUrSr_K.js → index-zFJdOj6P.js} +1 -1
  17. package/dist/public/assets/input-C_TtyOcH.js +1 -0
  18. package/dist/public/assets/queries-DuZAFrOY.js +1 -0
  19. package/dist/public/assets/styles-Bc7sFPhq.css +1 -0
  20. package/dist/public/assets/{switch-CgWk9YD3.js → switch-BKlJnOab.js} +1 -1
  21. package/dist/public/assets/{syntax-highlighter-CR5pD3DZ.js → syntax-highlighter-BuOqgzbp.js} +1 -1
  22. package/dist/public/assets/textarea-a9VUYAmJ.js +1 -0
  23. package/dist/public/assets/{useQuery-BtGwEPDz.js → useQuery-ByTdbkfi.js} +1 -1
  24. package/dist/server/index.mjs +132 -128
  25. package/dist/web-server/_libs/tabler__icons-react.mjs +3 -3
  26. package/dist/web-server/_ssr/{index-DSIu0x-q.mjs → index-BFCBaZTA.mjs} +3 -3
  27. package/dist/web-server/_ssr/{index-JzLhPyir.mjs → index-BT-fOdbN.mjs} +2 -2
  28. package/dist/web-server/_ssr/{index-Bp9a_nTf.mjs → index-BVtbpy73.mjs} +1 -1
  29. package/dist/web-server/_ssr/{index-BLK6uN4p.mjs → index-B_d-ca5z.mjs} +4 -4
  30. package/dist/web-server/_ssr/{index-EKE8NFy_.mjs → index-ClGONv4K.mjs} +1 -1
  31. package/dist/web-server/_ssr/{index-BkkxTg0a.mjs → index-CmwSlgGR.mjs} +12 -19
  32. package/dist/web-server/_ssr/{index-C8t8AZQG.mjs → index-D4rgpZTm.mjs} +4 -4
  33. package/dist/web-server/_ssr/{index-DqFrn6kj.mjs → index-DxgfsEKM.mjs} +67 -25
  34. package/dist/web-server/_ssr/{index-wTy_4MhH.mjs → index-KGEq7IhY.mjs} +2 -2
  35. package/dist/web-server/_ssr/index.mjs +2 -2
  36. package/dist/web-server/_ssr/{input-BQFduUUo.mjs → input-CZtNKDXd.mjs} +1 -1
  37. package/dist/web-server/_ssr/queries-ixVDom0l.mjs +16 -0
  38. package/dist/web-server/_ssr/{router-59cN5lqo.mjs → router-CrULUyXB.mjs} +21 -21
  39. package/dist/web-server/_ssr/{switch-Bim4kX8N.mjs → switch-Bd3Khe3S.mjs} +1 -1
  40. package/dist/web-server/_ssr/{textarea-CK0ROhfF.mjs → textarea-ClM2KXId.mjs} +1 -1
  41. package/dist/web-server/_tanstack-start-manifest_v-cNUQI9I2.mjs +4 -0
  42. package/dist/web-server/index.mjs +148 -155
  43. package/package.json +1 -1
  44. package/dist/public/assets/IconCode-AzDguzgN.js +0 -1
  45. package/dist/public/assets/IconPlus-BcEAWT5L.js +0 -1
  46. package/dist/public/assets/index-BP5217kc.js +0 -1
  47. package/dist/public/assets/index-DEVyhUPW.js +0 -14
  48. package/dist/public/assets/index-D_8SzN4W.js +0 -1
  49. package/dist/public/assets/input-of658hyw.js +0 -1
  50. package/dist/public/assets/styles-C9Ypt703.css +0 -1
  51. package/dist/public/assets/textarea-xdRt6_lX.js +0 -1
  52. package/dist/web-server/_tanstack-start-manifest_v-DLw6M7p4.mjs +0 -4
@@ -85,278 +85,271 @@ const headers = ((m) => function headersRouteRule(event) {
85
85
  }
86
86
  });
87
87
  const assets = {
88
- "/robots.txt": {
89
- "type": "text/plain; charset=utf-8",
90
- "etag": '"43-BEzmj4PuhUNHX+oW9uOnPSihxtU"',
91
- "mtime": "2026-05-15T17:38:01.402Z",
92
- "size": 67,
93
- "path": "../public/robots.txt"
94
- },
95
88
  "/manifest.json": {
96
89
  "type": "application/json",
97
90
  "etag": '"1f2-Oqn/x1R1hBTtEjA8nFhpBeFJJNg"',
98
- "mtime": "2026-05-15T17:38:01.401Z",
91
+ "mtime": "2026-05-15T19:28:45.980Z",
99
92
  "size": 498,
100
93
  "path": "../public/manifest.json"
101
94
  },
102
- "/assets/IconAlertCircle-B7TgWpbP.js": {
95
+ "/robots.txt": {
96
+ "type": "text/plain; charset=utf-8",
97
+ "etag": '"43-BEzmj4PuhUNHX+oW9uOnPSihxtU"',
98
+ "mtime": "2026-05-15T19:28:45.980Z",
99
+ "size": 67,
100
+ "path": "../public/robots.txt"
101
+ },
102
+ "/assets/IconAlertCircle-C98Iam1j.js": {
103
103
  "type": "text/javascript; charset=utf-8",
104
- "etag": '"f9-WiYf6a4vyN+8WZzjLq2VACzulfo"',
105
- "mtime": "2026-05-15T17:38:00.386Z",
104
+ "etag": '"f9-M3nqbqXVed3J/iifzAeUdgM5jUM"',
105
+ "mtime": "2026-05-15T19:28:44.681Z",
106
106
  "size": 249,
107
- "path": "../public/assets/IconAlertCircle-B7TgWpbP.js"
107
+ "path": "../public/assets/IconAlertCircle-C98Iam1j.js"
108
108
  },
109
- "/assets/IconAlertTriangle-B7IYa46Q.js": {
109
+ "/assets/IconAlertTriangle-DdD7_dc8.js": {
110
110
  "type": "text/javascript; charset=utf-8",
111
- "etag": '"161-5jxnwXbjcn/Pu9ErF1eVFq/lMnc"',
112
- "mtime": "2026-05-15T17:38:00.386Z",
111
+ "etag": '"161-2Mu6/oOnYNrE2SwVeCk/Trm/qZE"',
112
+ "mtime": "2026-05-15T19:28:44.681Z",
113
113
  "size": 353,
114
- "path": "../public/assets/IconAlertTriangle-B7IYa46Q.js"
114
+ "path": "../public/assets/IconAlertTriangle-DdD7_dc8.js"
115
115
  },
116
- "/assets/IconCheck-B-_pWgtP.js": {
116
+ "/assets/IconCheck-CYZ4_524.js": {
117
117
  "type": "text/javascript; charset=utf-8",
118
- "etag": '"8a-/yspPIMl+75Cmp9UPAtfMut/l9U"',
119
- "mtime": "2026-05-15T17:38:00.386Z",
118
+ "etag": '"8a-E1kFbE+KUoiH+aNQkhlBLDfBLoM"',
119
+ "mtime": "2026-05-15T19:28:44.681Z",
120
120
  "size": 138,
121
- "path": "../public/assets/IconCheck-B-_pWgtP.js"
122
- },
123
- "/assets/IconCode-AzDguzgN.js": {
124
- "type": "text/javascript; charset=utf-8",
125
- "etag": '"2d7-5o9+iguYKi1/eOMMgv2YvhPyUIo"',
126
- "mtime": "2026-05-15T17:38:00.386Z",
127
- "size": 727,
128
- "path": "../public/assets/IconCode-AzDguzgN.js"
121
+ "path": "../public/assets/IconCheck-CYZ4_524.js"
129
122
  },
130
- "/assets/IconLoader2-ClSf33Yd.js": {
123
+ "/assets/IconLoader2-DkEhzUxZ.js": {
131
124
  "type": "text/javascript; charset=utf-8",
132
- "etag": '"97-F1GIn4F4BUBb6qE6coZUr8JEYeo"',
133
- "mtime": "2026-05-15T17:38:00.386Z",
125
+ "etag": '"97-4RcW+C/6QLhKxmKbiLfuudK4Dio"',
126
+ "mtime": "2026-05-15T19:28:44.681Z",
134
127
  "size": 151,
135
- "path": "../public/assets/IconLoader2-ClSf33Yd.js"
136
- },
137
- "/assets/IconPlus-BcEAWT5L.js": {
138
- "type": "text/javascript; charset=utf-8",
139
- "etag": '"1ab-XzSdHnme1liWz0cvNiUDGmRmp7o"',
140
- "mtime": "2026-05-15T17:38:00.386Z",
141
- "size": 427,
142
- "path": "../public/assets/IconPlus-BcEAWT5L.js"
128
+ "path": "../public/assets/IconLoader2-DkEhzUxZ.js"
143
129
  },
144
- "/assets/IconRefresh-D4MZeezY.js": {
130
+ "/assets/IconRefresh-CCXMrUxO.js": {
145
131
  "type": "text/javascript; charset=utf-8",
146
- "etag": '"ec-aA3TEQxAAzI4U5Zs916tLoNZZ/U"',
147
- "mtime": "2026-05-15T17:38:00.386Z",
132
+ "etag": '"ec-b0t7FFfjNgsbVSmC4KlySp4ztIQ"',
133
+ "mtime": "2026-05-15T19:28:44.681Z",
148
134
  "size": 236,
149
- "path": "../public/assets/IconRefresh-D4MZeezY.js"
135
+ "path": "../public/assets/IconRefresh-CCXMrUxO.js"
150
136
  },
151
137
  "/assets/geist-cyrillic-wght-normal-CHSlOQsW.woff2": {
152
138
  "type": "font/woff2",
153
139
  "etag": '"3964-jfUkxTfHRj1cpO33jEsDk2lkrvM"',
154
- "mtime": "2026-05-15T17:38:00.386Z",
140
+ "mtime": "2026-05-15T19:28:44.680Z",
155
141
  "size": 14692,
156
142
  "path": "../public/assets/geist-cyrillic-wght-normal-CHSlOQsW.woff2"
157
143
  },
158
144
  "/assets/geist-latin-ext-wght-normal-DMtmJ5ZE.woff2": {
159
145
  "type": "font/woff2",
160
146
  "etag": '"3bcc-oSFlPnDlb7fAcQTPv6sqm6NgXXU"',
161
- "mtime": "2026-05-15T17:38:00.386Z",
147
+ "mtime": "2026-05-15T19:28:44.680Z",
162
148
  "size": 15308,
163
149
  "path": "../public/assets/geist-latin-ext-wght-normal-DMtmJ5ZE.woff2"
164
150
  },
165
151
  "/assets/geist-latin-wght-normal-Dm3htQBi.woff2": {
166
152
  "type": "font/woff2",
167
153
  "etag": '"6ef0-pZqr0k2V92t+lxQ/ogxqTIOgDGM"',
168
- "mtime": "2026-05-15T17:38:00.386Z",
154
+ "mtime": "2026-05-15T19:28:44.680Z",
169
155
  "size": 28400,
170
156
  "path": "../public/assets/geist-latin-wght-normal-Dm3htQBi.woff2"
171
157
  },
172
- "/assets/index-B-EALIKE.js": {
158
+ "/assets/index-BTiEWEax.js": {
173
159
  "type": "text/javascript; charset=utf-8",
174
- "etag": '"25b-2XD6o3gO1LpIjKUs+2rqLb/wct8"',
175
- "mtime": "2026-05-15T17:38:00.386Z",
176
- "size": 603,
177
- "path": "../public/assets/index-B-EALIKE.js"
160
+ "etag": '"3e84-38WujmF47lKl/HRlyRXIJSej2TA"',
161
+ "mtime": "2026-05-15T19:28:44.681Z",
162
+ "size": 16004,
163
+ "path": "../public/assets/index-BTiEWEax.js"
178
164
  },
179
- "/assets/index-BP5217kc.js": {
165
+ "/assets/index-Bfadg8tB.js": {
180
166
  "type": "text/javascript; charset=utf-8",
181
- "etag": '"3ea8-Xy2/9yZ2Gb2JH3uT3sTOdRSq930"',
182
- "mtime": "2026-05-15T17:38:00.386Z",
183
- "size": 16040,
184
- "path": "../public/assets/index-BP5217kc.js"
167
+ "etag": '"184e-vwr7iRLngB2pvKR1hnWpYtCeXLY"',
168
+ "mtime": "2026-05-15T19:28:44.681Z",
169
+ "size": 6222,
170
+ "path": "../public/assets/index-Bfadg8tB.js"
185
171
  },
186
- "/assets/index-BiFHsDt6.js": {
172
+ "/assets/index-C0ivmMuU.js": {
187
173
  "type": "text/javascript; charset=utf-8",
188
- "etag": '"244c-/oGmh4AK7etPeYzQSUOoGFMtqZk"',
189
- "mtime": "2026-05-15T17:38:00.386Z",
190
- "size": 9292,
191
- "path": "../public/assets/index-BiFHsDt6.js"
174
+ "etag": '"2d07-i2VAsA+T6OY/Wvx65NzZSGvihdA"',
175
+ "mtime": "2026-05-15T19:28:44.681Z",
176
+ "size": 11527,
177
+ "path": "../public/assets/index-C0ivmMuU.js"
192
178
  },
193
- "/assets/index-BuznEPrX.js": {
179
+ "/assets/index-CQCxtJMS.js": {
194
180
  "type": "text/javascript; charset=utf-8",
195
- "etag": '"184e-DF4K93Zrs9epewDFrkpT/2/cDfQ"',
196
- "mtime": "2026-05-15T17:38:00.386Z",
197
- "size": 6222,
198
- "path": "../public/assets/index-BuznEPrX.js"
181
+ "etag": '"a652-BQEmDxUHWA3g4gdOBqUIkBHAOgc"',
182
+ "mtime": "2026-05-15T19:28:44.681Z",
183
+ "size": 42578,
184
+ "path": "../public/assets/index-CQCxtJMS.js"
199
185
  },
200
- "/assets/index-CsJLc3b2.js": {
186
+ "/assets/index-D6B0cdTJ.js": {
201
187
  "type": "text/javascript; charset=utf-8",
202
- "etag": '"2d07-DxW0Z8KpjzUwK6B3+bV9qiZkGZw"',
203
- "mtime": "2026-05-15T17:38:00.386Z",
204
- "size": 11527,
205
- "path": "../public/assets/index-CsJLc3b2.js"
188
+ "etag": '"244c-nQtFB5Jei+Fe/pWFsjrjtCxf/Pc"',
189
+ "mtime": "2026-05-15T19:28:44.681Z",
190
+ "size": 9292,
191
+ "path": "../public/assets/index-D6B0cdTJ.js"
206
192
  },
207
- "/assets/index-D04H-m2p.js": {
193
+ "/assets/index-DCT13_ZI.js": {
208
194
  "type": "text/javascript; charset=utf-8",
209
- "etag": '"265b4-syDEvwNj8z171QSaZjnOVKx7Jl0"',
210
- "mtime": "2026-05-15T17:38:00.386Z",
195
+ "etag": '"265b4-D4dNw1ApSn6hXezlRgyFc2c4KHc"',
196
+ "mtime": "2026-05-15T19:28:44.681Z",
211
197
  "size": 157108,
212
- "path": "../public/assets/index-D04H-m2p.js"
198
+ "path": "../public/assets/index-DCT13_ZI.js"
213
199
  },
214
- "/assets/index-DEVyhUPW.js": {
200
+ "/assets/index-KT0CxDFc.js": {
215
201
  "type": "text/javascript; charset=utf-8",
216
- "etag": '"a68a-Yjzu52AZ6hj+etRHmVkI3mhkt/Y"',
217
- "mtime": "2026-05-15T17:38:00.386Z",
218
- "size": 42634,
219
- "path": "../public/assets/index-DEVyhUPW.js"
202
+ "etag": '"53ee-i16CbqYqK8EXk0Kn8+O3xYgqAyc"',
203
+ "mtime": "2026-05-15T19:28:44.681Z",
204
+ "size": 21486,
205
+ "path": "../public/assets/index-KT0CxDFc.js"
220
206
  },
221
- "/favicon.png": {
222
- "type": "image/png",
223
- "etag": '"51fc-nI7ucKzqH3tY+82NQSPy6oksg+o"',
224
- "mtime": "2026-05-15T17:38:01.402Z",
225
- "size": 20988,
226
- "path": "../public/favicon.png"
207
+ "/assets/index-qsvsww7-.js": {
208
+ "type": "text/javascript; charset=utf-8",
209
+ "etag": '"2252-JR1OixDSKQo/JvYXNfUZrOKutTE"',
210
+ "mtime": "2026-05-15T19:28:44.681Z",
211
+ "size": 8786,
212
+ "path": "../public/assets/index-qsvsww7-.js"
227
213
  },
228
- "/assets/index-D_8SzN4W.js": {
214
+ "/assets/index-DhCVawEl.js": {
229
215
  "type": "text/javascript; charset=utf-8",
230
- "etag": '"1d25-B0RhJ8i4Xvb0TE6TXFuTHbQchHo"',
231
- "mtime": "2026-05-15T17:38:00.386Z",
232
- "size": 7461,
233
- "path": "../public/assets/index-D_8SzN4W.js"
216
+ "etag": '"25b-5mUyPaDC+N8IatBTuJJ7+xbXHYY"',
217
+ "mtime": "2026-05-15T19:28:44.681Z",
218
+ "size": 603,
219
+ "path": "../public/assets/index-DhCVawEl.js"
234
220
  },
235
- "/assets/index-DmUrSr_K.js": {
221
+ "/assets/index-zFJdOj6P.js": {
236
222
  "type": "text/javascript; charset=utf-8",
237
- "etag": '"191b-5qkIs5DjSiXfKzo4HLfL9KltzSc"',
238
- "mtime": "2026-05-15T17:38:00.386Z",
223
+ "etag": '"191b-Q7UxbS3b72kV5v6xuA6hvc3g91M"',
224
+ "mtime": "2026-05-15T19:28:44.681Z",
239
225
  "size": 6427,
240
- "path": "../public/assets/index-DmUrSr_K.js"
226
+ "path": "../public/assets/index-zFJdOj6P.js"
241
227
  },
242
- "/nous-logo.png": {
243
- "type": "image/png",
244
- "etag": '"51fc-nI7ucKzqH3tY+82NQSPy6oksg+o"',
245
- "mtime": "2026-05-15T17:38:01.403Z",
246
- "size": 20988,
247
- "path": "../public/nous-logo.png"
228
+ "/assets/input-C_TtyOcH.js": {
229
+ "type": "text/javascript; charset=utf-8",
230
+ "etag": '"197d-K+6KpuNMpnul8ja6mabdjk/lWh0"',
231
+ "mtime": "2026-05-15T19:28:44.681Z",
232
+ "size": 6525,
233
+ "path": "../public/assets/input-C_TtyOcH.js"
248
234
  },
249
235
  "/favicon.ico": {
250
236
  "type": "image/vnd.microsoft.icon",
251
237
  "etag": '"16b86-whSNzIq4ettmTwOPeSIamFPNU70"',
252
- "mtime": "2026-05-15T17:38:01.401Z",
238
+ "mtime": "2026-05-15T19:28:45.980Z",
253
239
  "size": 93062,
254
240
  "path": "../public/favicon.ico"
255
241
  },
256
- "/assets/index-DKYPj90W.js": {
257
- "type": "text/javascript; charset=utf-8",
258
- "etag": '"97ee9-e+AJZTby+ilNGvU44c0l2m9dWu0"',
259
- "mtime": "2026-05-15T17:38:00.386Z",
260
- "size": 622313,
261
- "path": "../public/assets/index-DKYPj90W.js"
242
+ "/favicon.png": {
243
+ "type": "image/png",
244
+ "etag": '"51fc-nI7ucKzqH3tY+82NQSPy6oksg+o"',
245
+ "mtime": "2026-05-15T19:28:45.981Z",
246
+ "size": 20988,
247
+ "path": "../public/favicon.png"
262
248
  },
263
- "/assets/index-xH6PhxmS.js": {
264
- "type": "text/javascript; charset=utf-8",
265
- "etag": '"53ee-g/v4CjzGCbexUCYf5XZUviRePbw"',
266
- "mtime": "2026-05-15T17:38:00.386Z",
267
- "size": 21486,
268
- "path": "../public/assets/index-xH6PhxmS.js"
249
+ "/nous-logo.png": {
250
+ "type": "image/png",
251
+ "etag": '"51fc-nI7ucKzqH3tY+82NQSPy6oksg+o"',
252
+ "mtime": "2026-05-15T19:28:45.980Z",
253
+ "size": 20988,
254
+ "path": "../public/nous-logo.png"
269
255
  },
270
- "/assets/input-of658hyw.js": {
256
+ "/assets/index-twHXYGSY.js": {
271
257
  "type": "text/javascript; charset=utf-8",
272
- "etag": '"197a-PRlJ2suIKtw1VzBaHPphznHCLFU"',
273
- "mtime": "2026-05-15T17:38:00.386Z",
274
- "size": 6522,
275
- "path": "../public/assets/input-of658hyw.js"
258
+ "etag": '"97ec5-51Fk2nclUykhyrA3pQxneGJKlOg"',
259
+ "mtime": "2026-05-15T19:28:44.681Z",
260
+ "size": 622277,
261
+ "path": "../public/assets/index-twHXYGSY.js"
276
262
  },
277
263
  "/assets/inter-cyrillic-ext-wght-normal-BOeWTOD4.woff2": {
278
264
  "type": "font/woff2",
279
265
  "etag": '"6568-cF1iUGbboMFZ8TfnP5HiMgl9II0"',
280
- "mtime": "2026-05-15T17:38:00.386Z",
266
+ "mtime": "2026-05-15T19:28:44.680Z",
281
267
  "size": 25960,
282
268
  "path": "../public/assets/inter-cyrillic-ext-wght-normal-BOeWTOD4.woff2"
283
269
  },
284
270
  "/assets/inter-cyrillic-wght-normal-DqGufNeO.woff2": {
285
271
  "type": "font/woff2",
286
272
  "etag": '"493c-n3Oy9D6jvzfMjpClqox+Zo7ERQQ"',
287
- "mtime": "2026-05-15T17:38:00.386Z",
273
+ "mtime": "2026-05-15T19:28:44.679Z",
288
274
  "size": 18748,
289
275
  "path": "../public/assets/inter-cyrillic-wght-normal-DqGufNeO.woff2"
290
276
  },
291
277
  "/assets/inter-greek-ext-wght-normal-DlzME5K_.woff2": {
292
278
  "type": "font/woff2",
293
279
  "etag": '"2be0-BP5iTzJeB8nLqYAgKpWNi5o1Zm8"',
294
- "mtime": "2026-05-15T17:38:00.386Z",
280
+ "mtime": "2026-05-15T19:28:44.680Z",
295
281
  "size": 11232,
296
282
  "path": "../public/assets/inter-greek-ext-wght-normal-DlzME5K_.woff2"
297
283
  },
298
284
  "/assets/inter-greek-wght-normal-CkhJZR-_.woff2": {
299
285
  "type": "font/woff2",
300
286
  "etag": '"4a34-xor/hj4YNqI52zFecXnUbzQ4Xs4"',
301
- "mtime": "2026-05-15T17:38:00.386Z",
287
+ "mtime": "2026-05-15T19:28:44.680Z",
302
288
  "size": 18996,
303
289
  "path": "../public/assets/inter-greek-wght-normal-CkhJZR-_.woff2"
304
290
  },
305
291
  "/assets/inter-latin-ext-wght-normal-DO1Apj_S.woff2": {
306
292
  "type": "font/woff2",
307
293
  "etag": '"14c4c-zz61D7IQFMB9QxHvTAOk/Vh4ibQ"',
308
- "mtime": "2026-05-15T17:38:00.386Z",
294
+ "mtime": "2026-05-15T19:28:44.681Z",
309
295
  "size": 85068,
310
296
  "path": "../public/assets/inter-latin-ext-wght-normal-DO1Apj_S.woff2"
311
297
  },
312
- "/assets/inter-vietnamese-wght-normal-CBcvBZtf.woff2": {
313
- "type": "font/woff2",
314
- "etag": '"280c-nBythjoDQ0+5wVAendJ6wU7Xz2M"',
315
- "mtime": "2026-05-15T17:38:00.386Z",
316
- "size": 10252,
317
- "path": "../public/assets/inter-vietnamese-wght-normal-CBcvBZtf.woff2"
318
- },
319
298
  "/assets/inter-latin-wght-normal-Dx4kXJAl.woff2": {
320
299
  "type": "font/woff2",
321
300
  "etag": '"bc80-8R1ym7Ck2DUNLqPQ/AYs9u8tUpg"',
322
- "mtime": "2026-05-15T17:38:00.386Z",
301
+ "mtime": "2026-05-15T19:28:44.680Z",
323
302
  "size": 48256,
324
303
  "path": "../public/assets/inter-latin-wght-normal-Dx4kXJAl.woff2"
325
304
  },
326
- "/assets/switch-CgWk9YD3.js": {
305
+ "/assets/inter-vietnamese-wght-normal-CBcvBZtf.woff2": {
306
+ "type": "font/woff2",
307
+ "etag": '"280c-nBythjoDQ0+5wVAendJ6wU7Xz2M"',
308
+ "mtime": "2026-05-15T19:28:44.680Z",
309
+ "size": 10252,
310
+ "path": "../public/assets/inter-vietnamese-wght-normal-CBcvBZtf.woff2"
311
+ },
312
+ "/assets/queries-DuZAFrOY.js": {
327
313
  "type": "text/javascript; charset=utf-8",
328
- "etag": '"2c1-qjRGyEj5O7EWgDHnQbdnNLXVR+U"',
329
- "mtime": "2026-05-15T17:38:00.386Z",
330
- "size": 705,
331
- "path": "../public/assets/switch-CgWk9YD3.js"
314
+ "etag": '"379-DvBKmyFcJJv3v2rb6G1LbKPCI94"',
315
+ "mtime": "2026-05-15T19:28:44.681Z",
316
+ "size": 889,
317
+ "path": "../public/assets/queries-DuZAFrOY.js"
332
318
  },
333
- "/assets/styles-C9Ypt703.css": {
319
+ "/assets/styles-Bc7sFPhq.css": {
334
320
  "type": "text/css; charset=utf-8",
335
- "etag": '"1ce82-H5vvbDW58zZYOuMmxTE90HCRYoI"',
336
- "mtime": "2026-05-15T17:38:00.386Z",
337
- "size": 118402,
338
- "path": "../public/assets/styles-C9Ypt703.css"
321
+ "etag": '"1cea0-OnbCNY/n3ITOuDnrLGoOOOqHa0Q"',
322
+ "mtime": "2026-05-15T19:28:44.680Z",
323
+ "size": 118432,
324
+ "path": "../public/assets/styles-Bc7sFPhq.css"
325
+ },
326
+ "/assets/switch-BKlJnOab.js": {
327
+ "type": "text/javascript; charset=utf-8",
328
+ "etag": '"2c1-gbX3nD7xq/UHVHfWg2qZzfGSZgE"',
329
+ "mtime": "2026-05-15T19:28:44.681Z",
330
+ "size": 705,
331
+ "path": "../public/assets/switch-BKlJnOab.js"
339
332
  },
340
- "/assets/textarea-xdRt6_lX.js": {
333
+ "/assets/syntax-highlighter-BuOqgzbp.js": {
341
334
  "type": "text/javascript; charset=utf-8",
342
- "etag": '"2bd-HVVz7FnLWm1kA7Iy5uh+dvfkY+o"',
343
- "mtime": "2026-05-15T17:38:00.386Z",
344
- "size": 701,
345
- "path": "../public/assets/textarea-xdRt6_lX.js"
335
+ "etag": '"13641-cgax6yH9RqVoPil0ptjTGUqt+Ks"',
336
+ "mtime": "2026-05-15T19:28:44.681Z",
337
+ "size": 79425,
338
+ "path": "../public/assets/syntax-highlighter-BuOqgzbp.js"
346
339
  },
347
- "/assets/syntax-highlighter-CR5pD3DZ.js": {
340
+ "/assets/textarea-a9VUYAmJ.js": {
348
341
  "type": "text/javascript; charset=utf-8",
349
- "etag": '"13640-EYccPam/4bpfPEIHstNeRfq/EVw"',
350
- "mtime": "2026-05-15T17:38:00.386Z",
351
- "size": 79424,
352
- "path": "../public/assets/syntax-highlighter-CR5pD3DZ.js"
342
+ "etag": '"443-bOibehCGss0hSf4anht/RAZn/iM"',
343
+ "mtime": "2026-05-15T19:28:44.681Z",
344
+ "size": 1091,
345
+ "path": "../public/assets/textarea-a9VUYAmJ.js"
353
346
  },
354
- "/assets/useQuery-BtGwEPDz.js": {
347
+ "/assets/useQuery-ByTdbkfi.js": {
355
348
  "type": "text/javascript; charset=utf-8",
356
- "etag": '"2278-kpJCK9RRQX01CuDZyDd9Nkuq7n0"',
357
- "mtime": "2026-05-15T17:38:00.386Z",
349
+ "etag": '"2278-iZTJSezUX841dEa+S8dwasBf/0g"',
350
+ "mtime": "2026-05-15T19:28:44.681Z",
358
351
  "size": 8824,
359
- "path": "../public/assets/useQuery-BtGwEPDz.js"
352
+ "path": "../public/assets/useQuery-ByTdbkfi.js"
360
353
  }
361
354
  };
362
355
  function readAsset(id) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hermium",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "description": "Hermium CLI — self-hosted AI chat dashboard for Hermes Agent",
5
5
  "repository": {
6
6
  "type": "git",
@@ -1 +0,0 @@
1
- import{c as o}from"./index-DKYPj90W.js";const c=[["path",{d:"M12 5l0 14",key:"svg-0"}],["path",{d:"M18 11l-6 -6",key:"svg-1"}],["path",{d:"M6 11l6 -6",key:"svg-2"}]],s=o("outline","arrow-up","ArrowUp",c);const e=[["path",{d:"M6.657 18c-2.572 0 -4.657 -2.007 -4.657 -4.483c0 -2.475 2.085 -4.482 4.657 -4.482c.393 -1.762 1.794 -3.2 3.675 -3.773c1.88 -.572 3.956 -.193 5.444 1c1.488 1.19 2.162 3.007 1.77 4.769h.99c1.913 0 3.464 1.56 3.464 3.486c0 1.927 -1.551 3.487 -3.465 3.487h-11.878",key:"svg-0"}]],d=o("outline","cloud","Cloud",e);const t=[["path",{d:"M7 8l-4 4l4 4",key:"svg-0"}],["path",{d:"M17 8l4 4l-4 4",key:"svg-1"}],["path",{d:"M14 4l-4 16",key:"svg-2"}]],a=o("outline","code","Code",t);export{a as I,d as a,s as b};
@@ -1 +0,0 @@
1
- import{c as o}from"./index-DKYPj90W.js";const t=[["path",{d:"M9 6l6 6l-6 6",key:"svg-0"}]],s=o("outline","chevron-right","ChevronRight",t);const c=[["path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0",key:"svg-0"}],["path",{d:"M12 7v5l3 3",key:"svg-1"}]],a=o("outline","clock","Clock",c);const n=[["path",{d:"M12 5l0 14",key:"svg-0"}],["path",{d:"M5 12l14 0",key:"svg-1"}]],l=o("outline","plus","Plus",n);export{l as I,a,s as b};
@@ -1 +0,0 @@
1
- import{c as I,r as l,j as e,b as u,z as q,p as F,A as J,C as L,B as y,I as A,D as K,g as D}from"./index-DKYPj90W.js";import{u as P}from"./useQuery-BtGwEPDz.js";import{u as C,I as _}from"./input-of658hyw.js";import{T as Q}from"./textarea-xdRt6_lX.js";import{I as B,a as E,b as W}from"./IconPlus-BcEAWT5L.js";import{I as H}from"./IconRefresh-D4MZeezY.js";import{I as U}from"./IconLoader2-ClSf33Yd.js";const O=[["path",{d:"M4 7a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2v-12",key:"svg-0"}],["path",{d:"M16 3v4",key:"svg-1"}],["path",{d:"M8 3v4",key:"svg-2"}],["path",{d:"M4 11h16",key:"svg-3"}],["path",{d:"M11 15h1",key:"svg-4"}],["path",{d:"M12 15v3",key:"svg-5"}]],G=I("outline","calendar","Calendar",O);const V=[["path",{d:"M7 4v16l13 -8l-13 -8",key:"svg-0"}]],X=I("outline","player-play","PlayerPlay",V);const Y=[["path",{d:"M7 6a7.75 7.75 0 1 0 10 0",key:"svg-0"}],["path",{d:"M12 4l0 8",key:"svg-1"}]],Z=I("outline","power","Power",Y),T=l.createContext(null);function ee(){const t=l.useContext(T);if(!t)throw new Error("Dialog components must be used within <Dialog>");return t}function te({open:t,onOpenChange:s,children:o}){const a=l.useCallback(r=>s(r),[s]);return l.useEffect(()=>{if(!t)return;const r=d=>{d.key==="Escape"&&a(!1)};return document.addEventListener("keydown",r),()=>document.removeEventListener("keydown",r)},[t,a]),t?e.jsxs(T.Provider,{value:{open:t,setOpen:a},children:[e.jsx("div",{className:"fixed inset-0 z-50 bg-black/40 backdrop-blur-sm",onClick:()=>a(!1)}),e.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4",children:e.jsx("div",{className:"relative w-full max-w-lg rounded-xl border border-border bg-card shadow-xl",onClick:r=>r.stopPropagation(),children:o})})]}):null}function se({children:t,className:s}){return ee(),e.jsx("div",{className:u("p-5",s),children:t})}function re({children:t,className:s}){return e.jsx("div",{className:u("mb-4",s),children:t})}function ne({children:t,className:s}){return e.jsx("h2",{className:u("text-base font-semibold",s),children:t})}function oe({children:t,className:s}){return e.jsx("div",{className:u("flex items-center justify-end gap-2 mt-4",s),children:t})}function v(t){return t.job_id||t.id||""}function ae(t){return t.name||v(t)||"Untitled"}function R(t){const s=t.trim().split(/\s+/);if(s.length<2)return t;const o=parseInt(s[0],10),a=parseInt(s[1],10);if(isNaN(o)||isNaN(a))return t;if(s[1]==="*")return`At minute ${o} past every hour`;const r=new Date(0,0,0,a,o).toLocaleTimeString([],{hour:"numeric",minute:"2-digit",hour12:!0});if(s.length>=5){const d=s.slice(2,5).join(" ");if(d==="* * 1-5")return`${r} weekdays`;if(d==="* * 0,6")return`${r} weekends`}return`${r} daily`}function z(t){if(!t)return"—";if(typeof t=="string")return R(t);const s=t.display||t.expr||JSON.stringify(t);return R(s)}function ie(t){return t<1024?`${t}B`:t<1024*1024?`${(t/1024).toFixed(1)}KB`:`${(t/1024/1024).toFixed(1)}MB`}function le(t){const s=new Date(t),o=Date.now()-s.getTime(),a=Math.floor(o/6e4);if(a<1)return"just now";if(a<60)return`${a}m ago`;const r=Math.floor(a/60);return r<24?`${r}h ago`:`${Math.floor(r/24)}d ago`}function de(t){return new Date(t).toLocaleString(void 0,{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})}function ce(){return P({queryKey:["cron","jobs"],queryFn:()=>D("/api/cron-history/jobs"),refetchInterval:3e4})}function ue(t){return P({queryKey:["cron","runs",t],queryFn:()=>D("/api/cron-history"),refetchInterval:15e3})}function me(t,s,o){if(o==="hourly")return`${s} * * * *`;const a=`${s} ${t}`;return o==="weekdays"?`${a} * * 1-5`:o==="weekends"?`${a} * * 0,6`:`${a} * * *`}function xe(t,s,o){return o==="hourly"?`At minute ${s} past every hour`:`Runs ${new Date(0,0,0,t,s).toLocaleTimeString([],{hour:"numeric",minute:"2-digit",hour12:!0})} ${o==="weekdays"?"on weekdays":o==="weekends"?"on weekends":"daily"}`}const he=[{label:"Every hour",dayMode:"hourly",hour:0,minute:0},{label:"Daily 9AM",dayMode:"daily",hour:9,minute:0},{label:"Daily noon",dayMode:"daily",hour:12,minute:0},{label:"Daily 6PM",dayMode:"daily",hour:18,minute:0},{label:"Weekdays 9AM",dayMode:"weekdays",hour:9,minute:0},{label:"Weekdays noon",dayMode:"weekdays",hour:12,minute:0}];function fe({value:t,onChange:s}){const[o,a]=l.useState("daily"),[r,d]=l.useState(9),[c,h]=l.useState(0),[f,p]=l.useState(!1),[g,b]=l.useState(t||""),x=l.useMemo(()=>{if(!t)return null;const i=t.trim().split(/\s+/);if(i.length<2)return null;const m=parseInt(i[0],10),j=parseInt(i[1],10);return isNaN(m)||isNaN(j)?null:{hour:j,minute:m}},[]),w=l.useRef(!1);l.useEffect(()=>{if(w.current||!x)return;w.current=!0,d(x.hour),h(x.minute);const i=t.trim().split(/\s+/);if(i.length>=5){const m=i.slice(2,5).join(" ");m==="* * 1-5"?a("weekdays"):m==="* * 0,6"?a("weekends"):(m==="* * *"||i[2]==="*")&&a("daily"),i[1]==="*"&&a("hourly")}b(t)},[x,t]);const N=l.useMemo(()=>me(r,c,o),[r,c,o]),S=l.useMemo(()=>xe(r,c,o),[r,c,o]),M=i=>{const[m,j]=i.target.value.split(":").map(Number);isNaN(m)||d(m),isNaN(j)||h(j),o==="hourly"&&a("daily")},$=i=>{d(i.hour),h(i.minute),a(i.dayMode)},n=i=>{b(i.target.value)},k=f?g:N;return l.useEffect(()=>{s(k)},[k]),e.jsxs("div",{className:"space-y-3",children:[e.jsx("label",{className:"text-xs font-medium text-muted-foreground mb-1 block",children:"Schedule"}),f?e.jsxs("div",{className:"space-y-2",children:[e.jsx(_,{value:g,onChange:n,placeholder:"0 9 * * *",className:"h-9 text-sm font-mono"}),e.jsxs("p",{className:"text-[10px] text-muted-foreground flex items-center gap-1.5",children:["minute hour day month weekday",e.jsx("button",{type:"button",onClick:()=>p(!1),className:"underline underline-offset-2 hover:text-foreground ml-auto transition-colors",children:"Use time picker"})]})]}):e.jsxs(e.Fragment,{children:[e.jsx("input",{type:"time",value:`${String(r).padStart(2,"0")}:${String(c).padStart(2,"0")}`,onChange:M,className:"flex h-10 w-full rounded-lg border border-input bg-background px-3 py-2 text-sm shadow-xs focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50"}),e.jsx("div",{className:"flex rounded-lg border border-border overflow-hidden text-xs font-medium",children:[{value:"daily",label:"Every day"},{value:"weekdays",label:"Weekdays"},{value:"weekends",label:"Weekends"}].map((i,m)=>e.jsx("button",{type:"button",onClick:()=>a(i.value),className:u("flex-1 px-3 py-1.5 transition-colors text-center",m>0&&"border-l border-border",o===i.value?"bg-primary text-primary-foreground font-semibold":"bg-background text-muted-foreground hover:bg-muted"),children:i.label},i.value))}),e.jsx("div",{className:"flex flex-wrap gap-1.5",children:he.map(i=>e.jsx("button",{type:"button",onClick:()=>$(i),className:u("px-2.5 py-1 rounded-md text-[11px] font-medium transition-colors",r===i.hour&&c===i.minute&&o===i.dayMode?"bg-emerald-500/10 text-emerald-600 border border-emerald-500/20 shadow-xs":"bg-muted/50 text-muted-foreground border border-border/50 hover:bg-muted hover:text-foreground"),children:i.label},i.label))}),e.jsxs("p",{className:"text-xs text-muted-foreground flex items-center gap-1.5",children:[e.jsx(E,{className:"h-3.5 w-3.5"}),S]}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("code",{className:"text-[11px] text-muted-foreground/60 font-mono",children:N}),e.jsx("button",{type:"button",onClick:()=>{b(N),p(!0)},className:"text-[10px] text-muted-foreground/40 hover:text-muted-foreground underline underline-offset-2 transition-colors",children:"Raw cron"})]})]})]})}function pe({status:t}){if(!t)return e.jsx("div",{className:"h-2 w-2 rounded-full bg-muted-foreground/30"});const s=t==="ok"||t==="success"||t==="completed";return e.jsx("div",{className:u("h-2 w-2 rounded-full",s?"bg-emerald-500":"bg-red-500")})}function ge({job:t,onEdit:s,onDelete:o,onToggle:a}){return e.jsxs("div",{className:u("rounded-xl border bg-card p-5 transition-colors group relative",t.enabled!==!1?"border-border hover:border-emerald-500/30":"border-border opacity-60"),children:[e.jsxs("div",{className:"absolute top-3 right-3 flex items-center gap-0.5 opacity-0 group-hover:opacity-100 transition-opacity",children:[e.jsx(y,{variant:"ghost",size:"icon-sm",className:"h-7 w-7",onClick:r=>{r.stopPropagation(),a()},title:t.enabled!==!1?"Disable":"Enable",children:e.jsx(Z,{className:u("h-3.5 w-3.5",t.enabled!==!1?"text-emerald-500":"text-muted-foreground")})}),e.jsx(y,{variant:"ghost",size:"icon-sm",className:"h-7 w-7",onClick:r=>{r.stopPropagation(),s()},title:"Edit",children:e.jsx(A,{className:"h-3.5 w-3.5 text-muted-foreground"})}),e.jsx(y,{variant:"ghost",size:"icon-sm",className:"h-7 w-7 hover:text-red-500",onClick:r=>{r.stopPropagation(),o()},title:"Delete",children:e.jsx(K,{className:"h-3.5 w-3.5 text-muted-foreground"})})]}),e.jsxs("div",{className:"flex items-start justify-between gap-3 mb-3",children:[e.jsxs("div",{className:"flex items-center gap-2.5 min-w-0",children:[e.jsx("div",{className:u("h-8 w-8 rounded-lg flex items-center justify-center shrink-0",t.enabled!==!1?"bg-emerald-500/10 text-emerald-600":"bg-muted text-muted-foreground"),children:e.jsx(E,{className:"h-4 w-4"})}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("h3",{className:"text-sm font-semibold truncate pr-20",children:ae(t)}),e.jsx("p",{className:"text-[11px] text-muted-foreground font-mono",children:z(t.schedule)})]})]}),e.jsx(pe,{status:t.last_status})]}),t.prompt&&e.jsx("p",{className:"text-xs text-muted-foreground leading-relaxed line-clamp-2 mb-3",children:t.prompt}),e.jsxs("div",{className:"flex items-center gap-4 text-[11px] text-muted-foreground",children:[t.run_count!=null&&e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(X,{className:"h-3 w-3"}),t.run_count," runs"]}),t.next_run_at&&e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(G,{className:"h-3 w-3"}),"Next: ",de(t.next_run_at)]}),t.last_run_at&&e.jsx("span",{children:le(t.last_run_at)})]})]})}function be({run:t}){const[s,o]=l.useState(!1),a=P({queryKey:["cron","run",t.jobId,t.fileName],queryFn:()=>D(`/api/cron-history/${encodeURIComponent(t.jobId)}/${encodeURIComponent(t.fileName)}`),enabled:s});return e.jsxs("div",{className:"border-b border-border/50 last:border-b-0",children:[e.jsxs("button",{onClick:()=>o(!s),className:"flex w-full items-center gap-3 px-4 py-2.5 text-left hover:bg-muted/30 transition-colors group",children:[e.jsx(W,{className:u("h-3.5 w-3.5 shrink-0 text-muted-foreground transition-transform",s&&"rotate-90")}),e.jsx("span",{className:"text-xs font-medium text-foreground/80 min-w-[80px]",children:t.jobId}),e.jsx("span",{className:"text-xs text-muted-foreground flex-1",children:t.runTime}),e.jsx("span",{className:"text-[10px] text-muted-foreground/60 font-mono shrink-0",children:ie(t.size)})]}),s&&e.jsx("div",{className:"px-4 pb-4 pl-10",children:a.isLoading?e.jsxs("div",{className:"flex items-center gap-2 py-3 text-muted-foreground text-xs",children:[e.jsx(U,{className:"h-3.5 w-3.5 animate-spin"}),"Loading..."]}):e.jsx("pre",{className:"text-[12px] font-mono leading-relaxed whitespace-pre-wrap text-foreground/80 bg-muted/30 rounded-lg p-3 border border-border/50 max-h-[400px] overflow-auto",children:a.data?.content||"No output"})})]})}function ye(){const t=q(),s=ce(),o=ue(null),[a,r]=l.useState(!1),[d,c]=l.useState(null),[h,f]=l.useState(""),[p,g]=l.useState(""),[b,x]=l.useState(""),w=l.useCallback(()=>{s.refetch(),o.refetch()},[s,o]),N=C({mutationFn:n=>F("/api/cron-history/jobs",n),onSuccess:()=>{t.invalidateQueries({queryKey:["cron","jobs"]}),r(!1)}}),S=C({mutationFn:({id:n,data:k})=>J(`/api/cron-history/jobs/${n}`,k),onSuccess:()=>{t.invalidateQueries({queryKey:["cron","jobs"]}),c(null),r(!1)}}),M=C({mutationFn:n=>L(`/api/cron-history/jobs/${n}`),onSuccess:()=>t.invalidateQueries({queryKey:["cron","jobs"]})}),$=C({mutationFn:n=>F(`/api/cron-history/jobs/${n}/toggle`,{}),onSuccess:()=>t.invalidateQueries({queryKey:["cron","jobs"]})});return e.jsxs("div",{className:"flex flex-1 flex-col overflow-hidden",children:[e.jsx("div",{className:"shrink-0 border-b px-6 py-4",children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{children:[e.jsx("h1",{className:"text-lg font-semibold",children:"Automations"}),e.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:"Scheduled cron jobs managed by the Hermes agent"})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsxs(y,{size:"sm",variant:"outline",className:"gap-1.5",onClick:()=>{c(null),f(""),g(""),x(""),r(!0)},children:[e.jsx(B,{className:"h-4 w-4"}),"New Job"]}),e.jsx("button",{onClick:w,className:"flex items-center gap-1.5 text-sm text-muted-foreground hover:text-foreground transition-colors",children:e.jsx(H,{className:u("h-4 w-4",(s.isFetching||o.isFetching)&&"animate-spin")})})]})]})}),e.jsxs("div",{className:"flex-1 overflow-y-auto",children:[e.jsx(te,{open:a,onOpenChange:n=>{n||(r(!1),c(null))},children:e.jsxs(se,{children:[e.jsx(re,{children:e.jsx(ne,{children:d?"Edit Cron Job":"New Cron Job"})}),e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{children:[e.jsx("label",{className:"text-xs font-medium text-muted-foreground mb-1 block",children:"Name"}),e.jsx(_,{value:h,onChange:n=>f(n.target.value),placeholder:"e.g. Daily weather report",className:"h-9 text-sm"})]}),e.jsx(fe,{value:p,onChange:g}),e.jsxs("div",{children:[e.jsx("label",{className:"text-xs font-medium text-muted-foreground mb-1 block",children:"Prompt"}),e.jsx(Q,{value:b,onChange:n=>x(n.target.value),placeholder:"What should the agent do when this job runs?",className:"min-h-[80px] text-sm",rows:4})]})]}),e.jsxs(oe,{children:[e.jsx(y,{size:"sm",variant:"ghost",onClick:()=>{r(!1),c(null)},children:"Cancel"}),e.jsx(y,{size:"sm",disabled:!h.trim()||!p.trim(),onClick:()=>{const n={name:h.trim(),schedule:p.trim(),prompt:b.trim()};d?S.mutate({id:v(d),data:n}):N.mutate(n)},children:d?"Save Changes":"Create Job"})]})]})}),e.jsxs("div",{className:"px-6 pt-5 pb-2",children:[e.jsx("h2",{className:"text-xs font-semibold text-muted-foreground uppercase tracking-wider mb-3",children:"Jobs"}),s.isLoading?e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:[1,2,3].map(n=>e.jsx("div",{className:"rounded-xl border border-border bg-card h-36 animate-pulse",children:e.jsxs("div",{className:"p-5 space-y-3",children:[e.jsx("div",{className:"h-4 bg-muted rounded w-1/2"}),e.jsx("div",{className:"h-3 bg-muted rounded w-3/4"}),e.jsx("div",{className:"h-3 bg-muted rounded w-full"})]})},n))}):s.data?.jobs?.length?e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:s.data.jobs.map(n=>e.jsx(ge,{job:n,onEdit:()=>{c(n),f(n.name||""),g(z(n.schedule)),x(n.prompt||""),r(!0)},onDelete:()=>M.mutate(v(n)),onToggle:()=>$.mutate(v(n))},v(n)))}):e.jsxs("div",{className:"rounded-xl border border-dashed border-border bg-muted/20 py-12 text-center",children:[e.jsx(E,{className:"h-8 w-8 text-muted-foreground/40 mx-auto mb-3"}),e.jsx("p",{className:"text-sm font-medium text-foreground",children:"No cron jobs yet"}),e.jsxs("p",{className:"text-xs text-muted-foreground mt-1",children:["Click ",e.jsx("span",{className:"font-medium",children:"New Job"})," to create one"]})]})]}),e.jsxs("div",{className:"px-6 pb-6",children:[e.jsx("h2",{className:"text-xs font-semibold text-muted-foreground uppercase tracking-wider mb-3 mt-6",children:"Run History"}),o.isLoading?e.jsx("div",{className:"space-y-1",children:[1,2,3,4,5].map(n=>e.jsx("div",{className:"h-10 bg-muted/30 rounded animate-pulse"},n))}):o.data?.runs?.length?e.jsx("div",{className:"rounded-xl border border-border bg-card overflow-hidden",children:o.data.runs.slice(0,50).map(n=>e.jsx(be,{run:n},`${n.jobId}/${n.fileName}`))}):e.jsx("div",{className:"rounded-xl border border-dashed border-border bg-muted/20 py-10 text-center",children:e.jsx("p",{className:"text-sm text-muted-foreground",children:"No runs yet"})})]})]})]})}const Me=ye;export{Me as component};