hermium 0.1.5 → 0.1.6

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.
package/bin/hermium.mjs CHANGED
@@ -6,8 +6,11 @@ import { readFileSync, writeFileSync, unlinkSync, mkdirSync, openSync, existsSyn
6
6
  import { homedir } from 'os'
7
7
  import pc from 'picocolors'
8
8
 
9
+ const pkgDir = resolve(dirname(fileURLToPath(import.meta.url)), '..')
10
+ const pkg = JSON.parse(readFileSync(resolve(pkgDir, 'package.json'), 'utf-8'))
11
+ const CURRENT_VERSION = pkg.version
12
+
9
13
  const __dirname = dirname(fileURLToPath(import.meta.url))
10
- const pkgDir = resolve(__dirname, '..')
11
14
  const apiEntry = resolve(pkgDir, 'dist', 'server', 'index.mjs')
12
15
  const webEntry = resolve(pkgDir, 'dist', 'web-server', 'index.mjs')
13
16
  const webServerDir = resolve(pkgDir, 'dist', 'web-server')
@@ -38,6 +41,37 @@ function getRuntimeCmd() {
38
41
  }
39
42
  }
40
43
 
44
+ // ─── Version check ─────────────────────────────────────────────────────────
45
+
46
+ async function checkLatestVersion() {
47
+ const cacheFile = join(WEB_UI_HOME, '.version-check')
48
+ const now = Date.now()
49
+ try {
50
+ const cache = JSON.parse(readFileSync(cacheFile, 'utf-8'))
51
+ if (cache.ts && now - cache.ts < 60 * 60 * 1000) {
52
+ if (cache.latest && cache.latest !== CURRENT_VERSION) {
53
+ console.log(pc.yellow(` ⚠ A new version of Hermium is available: ${cache.latest} (you have ${CURRENT_VERSION})`))
54
+ console.log(` Upgrade: npm install -g hermium@latest`)
55
+ }
56
+ return
57
+ }
58
+ } catch {}
59
+
60
+ try {
61
+ const res = await fetch('https://registry.npmjs.org/hermium/latest', { signal: AbortSignal.timeout(3000) })
62
+ if (!res.ok) return
63
+ const data = await res.json()
64
+ const latest = data.version
65
+ writeFileSync(cacheFile, JSON.stringify({ ts: now, latest }))
66
+ if (latest && latest !== CURRENT_VERSION) {
67
+ console.log(pc.yellow(` ⚠ A new version of Hermium is available: ${latest} (you have ${CURRENT_VERSION})`))
68
+ console.log(` Upgrade: npm install -g hermium@latest`)
69
+ }
70
+ } catch {
71
+ // silent fail — don't block startup for network issues
72
+ }
73
+ }
74
+
41
75
  // ─── Helpers ───────────────────────────────────────────────────────────────
42
76
 
43
77
  function readPid(file) {
@@ -262,6 +296,7 @@ async function cmdStart() {
262
296
  console.log(pc.green(` ✓ Hermium started`))
263
297
  console.log(` ${webUrl}`)
264
298
  console.log(` Logs: ${WEB_UI_HOME}`)
299
+ checkLatestVersion() // non-blocking
265
300
  const openCmd =
266
301
  process.platform === 'win32' ? `start ${webUrl}` :
267
302
  process.platform === 'darwin' ? `open ${webUrl}` :
@@ -85,276 +85,276 @@ const headers = ((m) => function headersRouteRule(event) {
85
85
  }
86
86
  });
87
87
  const assets = {
88
- "/manifest.json": {
89
- "type": "application/json",
90
- "etag": '"1f2-Oqn/x1R1hBTtEjA8nFhpBeFJJNg"',
91
- "mtime": "2026-05-15T17:29:47.319Z",
92
- "size": 498,
93
- "path": "../public/manifest.json"
94
- },
95
88
  "/robots.txt": {
96
89
  "type": "text/plain; charset=utf-8",
97
90
  "etag": '"43-BEzmj4PuhUNHX+oW9uOnPSihxtU"',
98
- "mtime": "2026-05-15T17:29:47.319Z",
91
+ "mtime": "2026-05-15T17:38:01.402Z",
99
92
  "size": 67,
100
93
  "path": "../public/robots.txt"
101
94
  },
95
+ "/manifest.json": {
96
+ "type": "application/json",
97
+ "etag": '"1f2-Oqn/x1R1hBTtEjA8nFhpBeFJJNg"',
98
+ "mtime": "2026-05-15T17:38:01.401Z",
99
+ "size": 498,
100
+ "path": "../public/manifest.json"
101
+ },
102
102
  "/assets/IconAlertCircle-B7TgWpbP.js": {
103
103
  "type": "text/javascript; charset=utf-8",
104
104
  "etag": '"f9-WiYf6a4vyN+8WZzjLq2VACzulfo"',
105
- "mtime": "2026-05-15T17:29:46.057Z",
105
+ "mtime": "2026-05-15T17:38:00.386Z",
106
106
  "size": 249,
107
107
  "path": "../public/assets/IconAlertCircle-B7TgWpbP.js"
108
108
  },
109
109
  "/assets/IconAlertTriangle-B7IYa46Q.js": {
110
110
  "type": "text/javascript; charset=utf-8",
111
111
  "etag": '"161-5jxnwXbjcn/Pu9ErF1eVFq/lMnc"',
112
- "mtime": "2026-05-15T17:29:46.057Z",
112
+ "mtime": "2026-05-15T17:38:00.386Z",
113
113
  "size": 353,
114
114
  "path": "../public/assets/IconAlertTriangle-B7IYa46Q.js"
115
115
  },
116
116
  "/assets/IconCheck-B-_pWgtP.js": {
117
117
  "type": "text/javascript; charset=utf-8",
118
118
  "etag": '"8a-/yspPIMl+75Cmp9UPAtfMut/l9U"',
119
- "mtime": "2026-05-15T17:29:46.057Z",
119
+ "mtime": "2026-05-15T17:38:00.386Z",
120
120
  "size": 138,
121
121
  "path": "../public/assets/IconCheck-B-_pWgtP.js"
122
122
  },
123
123
  "/assets/IconCode-AzDguzgN.js": {
124
124
  "type": "text/javascript; charset=utf-8",
125
125
  "etag": '"2d7-5o9+iguYKi1/eOMMgv2YvhPyUIo"',
126
- "mtime": "2026-05-15T17:29:46.057Z",
126
+ "mtime": "2026-05-15T17:38:00.386Z",
127
127
  "size": 727,
128
128
  "path": "../public/assets/IconCode-AzDguzgN.js"
129
129
  },
130
130
  "/assets/IconLoader2-ClSf33Yd.js": {
131
131
  "type": "text/javascript; charset=utf-8",
132
132
  "etag": '"97-F1GIn4F4BUBb6qE6coZUr8JEYeo"',
133
- "mtime": "2026-05-15T17:29:46.057Z",
133
+ "mtime": "2026-05-15T17:38:00.386Z",
134
134
  "size": 151,
135
135
  "path": "../public/assets/IconLoader2-ClSf33Yd.js"
136
136
  },
137
137
  "/assets/IconPlus-BcEAWT5L.js": {
138
138
  "type": "text/javascript; charset=utf-8",
139
139
  "etag": '"1ab-XzSdHnme1liWz0cvNiUDGmRmp7o"',
140
- "mtime": "2026-05-15T17:29:46.057Z",
140
+ "mtime": "2026-05-15T17:38:00.386Z",
141
141
  "size": 427,
142
142
  "path": "../public/assets/IconPlus-BcEAWT5L.js"
143
143
  },
144
144
  "/assets/IconRefresh-D4MZeezY.js": {
145
145
  "type": "text/javascript; charset=utf-8",
146
146
  "etag": '"ec-aA3TEQxAAzI4U5Zs916tLoNZZ/U"',
147
- "mtime": "2026-05-15T17:29:46.057Z",
147
+ "mtime": "2026-05-15T17:38:00.386Z",
148
148
  "size": 236,
149
149
  "path": "../public/assets/IconRefresh-D4MZeezY.js"
150
150
  },
151
151
  "/assets/geist-cyrillic-wght-normal-CHSlOQsW.woff2": {
152
152
  "type": "font/woff2",
153
153
  "etag": '"3964-jfUkxTfHRj1cpO33jEsDk2lkrvM"',
154
- "mtime": "2026-05-15T17:29:46.057Z",
154
+ "mtime": "2026-05-15T17:38:00.386Z",
155
155
  "size": 14692,
156
156
  "path": "../public/assets/geist-cyrillic-wght-normal-CHSlOQsW.woff2"
157
157
  },
158
158
  "/assets/geist-latin-ext-wght-normal-DMtmJ5ZE.woff2": {
159
159
  "type": "font/woff2",
160
160
  "etag": '"3bcc-oSFlPnDlb7fAcQTPv6sqm6NgXXU"',
161
- "mtime": "2026-05-15T17:29:46.057Z",
161
+ "mtime": "2026-05-15T17:38:00.386Z",
162
162
  "size": 15308,
163
163
  "path": "../public/assets/geist-latin-ext-wght-normal-DMtmJ5ZE.woff2"
164
164
  },
165
165
  "/assets/geist-latin-wght-normal-Dm3htQBi.woff2": {
166
166
  "type": "font/woff2",
167
167
  "etag": '"6ef0-pZqr0k2V92t+lxQ/ogxqTIOgDGM"',
168
- "mtime": "2026-05-15T17:29:46.057Z",
168
+ "mtime": "2026-05-15T17:38:00.386Z",
169
169
  "size": 28400,
170
170
  "path": "../public/assets/geist-latin-wght-normal-Dm3htQBi.woff2"
171
171
  },
172
172
  "/assets/index-B-EALIKE.js": {
173
173
  "type": "text/javascript; charset=utf-8",
174
174
  "etag": '"25b-2XD6o3gO1LpIjKUs+2rqLb/wct8"',
175
- "mtime": "2026-05-15T17:29:46.057Z",
175
+ "mtime": "2026-05-15T17:38:00.386Z",
176
176
  "size": 603,
177
177
  "path": "../public/assets/index-B-EALIKE.js"
178
178
  },
179
179
  "/assets/index-BP5217kc.js": {
180
180
  "type": "text/javascript; charset=utf-8",
181
181
  "etag": '"3ea8-Xy2/9yZ2Gb2JH3uT3sTOdRSq930"',
182
- "mtime": "2026-05-15T17:29:46.057Z",
182
+ "mtime": "2026-05-15T17:38:00.386Z",
183
183
  "size": 16040,
184
184
  "path": "../public/assets/index-BP5217kc.js"
185
185
  },
186
186
  "/assets/index-BiFHsDt6.js": {
187
187
  "type": "text/javascript; charset=utf-8",
188
188
  "etag": '"244c-/oGmh4AK7etPeYzQSUOoGFMtqZk"',
189
- "mtime": "2026-05-15T17:29:46.057Z",
189
+ "mtime": "2026-05-15T17:38:00.386Z",
190
190
  "size": 9292,
191
191
  "path": "../public/assets/index-BiFHsDt6.js"
192
192
  },
193
193
  "/assets/index-BuznEPrX.js": {
194
194
  "type": "text/javascript; charset=utf-8",
195
195
  "etag": '"184e-DF4K93Zrs9epewDFrkpT/2/cDfQ"',
196
- "mtime": "2026-05-15T17:29:46.057Z",
196
+ "mtime": "2026-05-15T17:38:00.386Z",
197
197
  "size": 6222,
198
198
  "path": "../public/assets/index-BuznEPrX.js"
199
199
  },
200
200
  "/assets/index-CsJLc3b2.js": {
201
201
  "type": "text/javascript; charset=utf-8",
202
202
  "etag": '"2d07-DxW0Z8KpjzUwK6B3+bV9qiZkGZw"',
203
- "mtime": "2026-05-15T17:29:46.057Z",
203
+ "mtime": "2026-05-15T17:38:00.386Z",
204
204
  "size": 11527,
205
205
  "path": "../public/assets/index-CsJLc3b2.js"
206
206
  },
207
207
  "/assets/index-D04H-m2p.js": {
208
208
  "type": "text/javascript; charset=utf-8",
209
209
  "etag": '"265b4-syDEvwNj8z171QSaZjnOVKx7Jl0"',
210
- "mtime": "2026-05-15T17:29:46.058Z",
210
+ "mtime": "2026-05-15T17:38:00.386Z",
211
211
  "size": 157108,
212
212
  "path": "../public/assets/index-D04H-m2p.js"
213
213
  },
214
214
  "/assets/index-DEVyhUPW.js": {
215
215
  "type": "text/javascript; charset=utf-8",
216
216
  "etag": '"a68a-Yjzu52AZ6hj+etRHmVkI3mhkt/Y"',
217
- "mtime": "2026-05-15T17:29:46.057Z",
217
+ "mtime": "2026-05-15T17:38:00.386Z",
218
218
  "size": 42634,
219
219
  "path": "../public/assets/index-DEVyhUPW.js"
220
220
  },
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"
227
+ },
221
228
  "/assets/index-D_8SzN4W.js": {
222
229
  "type": "text/javascript; charset=utf-8",
223
230
  "etag": '"1d25-B0RhJ8i4Xvb0TE6TXFuTHbQchHo"',
224
- "mtime": "2026-05-15T17:29:46.057Z",
231
+ "mtime": "2026-05-15T17:38:00.386Z",
225
232
  "size": 7461,
226
233
  "path": "../public/assets/index-D_8SzN4W.js"
227
234
  },
228
235
  "/assets/index-DmUrSr_K.js": {
229
236
  "type": "text/javascript; charset=utf-8",
230
237
  "etag": '"191b-5qkIs5DjSiXfKzo4HLfL9KltzSc"',
231
- "mtime": "2026-05-15T17:29:46.057Z",
238
+ "mtime": "2026-05-15T17:38:00.386Z",
232
239
  "size": 6427,
233
240
  "path": "../public/assets/index-DmUrSr_K.js"
234
241
  },
235
- "/favicon.png": {
236
- "type": "image/png",
237
- "etag": '"51fc-nI7ucKzqH3tY+82NQSPy6oksg+o"',
238
- "mtime": "2026-05-15T17:29:47.320Z",
239
- "size": 20988,
240
- "path": "../public/favicon.png"
241
- },
242
242
  "/nous-logo.png": {
243
243
  "type": "image/png",
244
244
  "etag": '"51fc-nI7ucKzqH3tY+82NQSPy6oksg+o"',
245
- "mtime": "2026-05-15T17:29:47.320Z",
245
+ "mtime": "2026-05-15T17:38:01.403Z",
246
246
  "size": 20988,
247
247
  "path": "../public/nous-logo.png"
248
248
  },
249
249
  "/favicon.ico": {
250
250
  "type": "image/vnd.microsoft.icon",
251
251
  "etag": '"16b86-whSNzIq4ettmTwOPeSIamFPNU70"',
252
- "mtime": "2026-05-15T17:29:47.319Z",
252
+ "mtime": "2026-05-15T17:38:01.401Z",
253
253
  "size": 93062,
254
254
  "path": "../public/favicon.ico"
255
255
  },
256
256
  "/assets/index-DKYPj90W.js": {
257
257
  "type": "text/javascript; charset=utf-8",
258
258
  "etag": '"97ee9-e+AJZTby+ilNGvU44c0l2m9dWu0"',
259
- "mtime": "2026-05-15T17:29:46.058Z",
259
+ "mtime": "2026-05-15T17:38:00.386Z",
260
260
  "size": 622313,
261
261
  "path": "../public/assets/index-DKYPj90W.js"
262
262
  },
263
263
  "/assets/index-xH6PhxmS.js": {
264
264
  "type": "text/javascript; charset=utf-8",
265
265
  "etag": '"53ee-g/v4CjzGCbexUCYf5XZUviRePbw"',
266
- "mtime": "2026-05-15T17:29:46.057Z",
266
+ "mtime": "2026-05-15T17:38:00.386Z",
267
267
  "size": 21486,
268
268
  "path": "../public/assets/index-xH6PhxmS.js"
269
269
  },
270
270
  "/assets/input-of658hyw.js": {
271
271
  "type": "text/javascript; charset=utf-8",
272
272
  "etag": '"197a-PRlJ2suIKtw1VzBaHPphznHCLFU"',
273
- "mtime": "2026-05-15T17:29:46.057Z",
273
+ "mtime": "2026-05-15T17:38:00.386Z",
274
274
  "size": 6522,
275
275
  "path": "../public/assets/input-of658hyw.js"
276
276
  },
277
277
  "/assets/inter-cyrillic-ext-wght-normal-BOeWTOD4.woff2": {
278
278
  "type": "font/woff2",
279
279
  "etag": '"6568-cF1iUGbboMFZ8TfnP5HiMgl9II0"',
280
- "mtime": "2026-05-15T17:29:46.057Z",
280
+ "mtime": "2026-05-15T17:38:00.386Z",
281
281
  "size": 25960,
282
282
  "path": "../public/assets/inter-cyrillic-ext-wght-normal-BOeWTOD4.woff2"
283
283
  },
284
- "/assets/inter-greek-ext-wght-normal-DlzME5K_.woff2": {
285
- "type": "font/woff2",
286
- "etag": '"2be0-BP5iTzJeB8nLqYAgKpWNi5o1Zm8"',
287
- "mtime": "2026-05-15T17:29:46.057Z",
288
- "size": 11232,
289
- "path": "../public/assets/inter-greek-ext-wght-normal-DlzME5K_.woff2"
290
- },
291
284
  "/assets/inter-cyrillic-wght-normal-DqGufNeO.woff2": {
292
285
  "type": "font/woff2",
293
286
  "etag": '"493c-n3Oy9D6jvzfMjpClqox+Zo7ERQQ"',
294
- "mtime": "2026-05-15T17:29:46.057Z",
287
+ "mtime": "2026-05-15T17:38:00.386Z",
295
288
  "size": 18748,
296
289
  "path": "../public/assets/inter-cyrillic-wght-normal-DqGufNeO.woff2"
297
290
  },
291
+ "/assets/inter-greek-ext-wght-normal-DlzME5K_.woff2": {
292
+ "type": "font/woff2",
293
+ "etag": '"2be0-BP5iTzJeB8nLqYAgKpWNi5o1Zm8"',
294
+ "mtime": "2026-05-15T17:38:00.386Z",
295
+ "size": 11232,
296
+ "path": "../public/assets/inter-greek-ext-wght-normal-DlzME5K_.woff2"
297
+ },
298
298
  "/assets/inter-greek-wght-normal-CkhJZR-_.woff2": {
299
299
  "type": "font/woff2",
300
300
  "etag": '"4a34-xor/hj4YNqI52zFecXnUbzQ4Xs4"',
301
- "mtime": "2026-05-15T17:29:46.057Z",
301
+ "mtime": "2026-05-15T17:38:00.386Z",
302
302
  "size": 18996,
303
303
  "path": "../public/assets/inter-greek-wght-normal-CkhJZR-_.woff2"
304
304
  },
305
305
  "/assets/inter-latin-ext-wght-normal-DO1Apj_S.woff2": {
306
306
  "type": "font/woff2",
307
307
  "etag": '"14c4c-zz61D7IQFMB9QxHvTAOk/Vh4ibQ"',
308
- "mtime": "2026-05-15T17:29:46.057Z",
308
+ "mtime": "2026-05-15T17:38:00.386Z",
309
309
  "size": 85068,
310
310
  "path": "../public/assets/inter-latin-ext-wght-normal-DO1Apj_S.woff2"
311
311
  },
312
- "/assets/inter-latin-wght-normal-Dx4kXJAl.woff2": {
313
- "type": "font/woff2",
314
- "etag": '"bc80-8R1ym7Ck2DUNLqPQ/AYs9u8tUpg"',
315
- "mtime": "2026-05-15T17:29:46.057Z",
316
- "size": 48256,
317
- "path": "../public/assets/inter-latin-wght-normal-Dx4kXJAl.woff2"
318
- },
319
312
  "/assets/inter-vietnamese-wght-normal-CBcvBZtf.woff2": {
320
313
  "type": "font/woff2",
321
314
  "etag": '"280c-nBythjoDQ0+5wVAendJ6wU7Xz2M"',
322
- "mtime": "2026-05-15T17:29:46.057Z",
315
+ "mtime": "2026-05-15T17:38:00.386Z",
323
316
  "size": 10252,
324
317
  "path": "../public/assets/inter-vietnamese-wght-normal-CBcvBZtf.woff2"
325
318
  },
319
+ "/assets/inter-latin-wght-normal-Dx4kXJAl.woff2": {
320
+ "type": "font/woff2",
321
+ "etag": '"bc80-8R1ym7Ck2DUNLqPQ/AYs9u8tUpg"',
322
+ "mtime": "2026-05-15T17:38:00.386Z",
323
+ "size": 48256,
324
+ "path": "../public/assets/inter-latin-wght-normal-Dx4kXJAl.woff2"
325
+ },
326
326
  "/assets/switch-CgWk9YD3.js": {
327
327
  "type": "text/javascript; charset=utf-8",
328
328
  "etag": '"2c1-qjRGyEj5O7EWgDHnQbdnNLXVR+U"',
329
- "mtime": "2026-05-15T17:29:46.057Z",
329
+ "mtime": "2026-05-15T17:38:00.386Z",
330
330
  "size": 705,
331
331
  "path": "../public/assets/switch-CgWk9YD3.js"
332
332
  },
333
333
  "/assets/styles-C9Ypt703.css": {
334
334
  "type": "text/css; charset=utf-8",
335
335
  "etag": '"1ce82-H5vvbDW58zZYOuMmxTE90HCRYoI"',
336
- "mtime": "2026-05-15T17:29:46.057Z",
336
+ "mtime": "2026-05-15T17:38:00.386Z",
337
337
  "size": 118402,
338
338
  "path": "../public/assets/styles-C9Ypt703.css"
339
339
  },
340
340
  "/assets/textarea-xdRt6_lX.js": {
341
341
  "type": "text/javascript; charset=utf-8",
342
342
  "etag": '"2bd-HVVz7FnLWm1kA7Iy5uh+dvfkY+o"',
343
- "mtime": "2026-05-15T17:29:46.057Z",
343
+ "mtime": "2026-05-15T17:38:00.386Z",
344
344
  "size": 701,
345
345
  "path": "../public/assets/textarea-xdRt6_lX.js"
346
346
  },
347
347
  "/assets/syntax-highlighter-CR5pD3DZ.js": {
348
348
  "type": "text/javascript; charset=utf-8",
349
349
  "etag": '"13640-EYccPam/4bpfPEIHstNeRfq/EVw"',
350
- "mtime": "2026-05-15T17:29:46.058Z",
350
+ "mtime": "2026-05-15T17:38:00.386Z",
351
351
  "size": 79424,
352
352
  "path": "../public/assets/syntax-highlighter-CR5pD3DZ.js"
353
353
  },
354
354
  "/assets/useQuery-BtGwEPDz.js": {
355
355
  "type": "text/javascript; charset=utf-8",
356
356
  "etag": '"2278-kpJCK9RRQX01CuDZyDd9Nkuq7n0"',
357
- "mtime": "2026-05-15T17:29:46.057Z",
357
+ "mtime": "2026-05-15T17:38:00.386Z",
358
358
  "size": 8824,
359
359
  "path": "../public/assets/useQuery-BtGwEPDz.js"
360
360
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hermium",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
4
4
  "description": "Hermium CLI — self-hosted AI chat dashboard for Hermes Agent",
5
5
  "repository": {
6
6
  "type": "git",