@gotcos/glasses-server 6.36.21 → 6.36.22
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/CHANGELOG.md +17 -0
- package/package.json +1 -1
- package/server/routes/health.ts +12 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,20 @@
|
|
|
1
|
+
## 6.36.22
|
|
2
|
+
|
|
3
|
+
**`features.claudeSessions` in health**, so a client toggle can read its own state.
|
|
4
|
+
|
|
5
|
+
COS Control's "Show Claude sessions" checkbox sourced its state from
|
|
6
|
+
`GET /api/claude-sessions` -- the call that also lists every session -- and the
|
|
7
|
+
panel never made that call. The box rendered false while the setting was true, and
|
|
8
|
+
Miles enabled it four times against a control that could only ever show him one
|
|
9
|
+
value. Health is what every other toggle on that panel already reads, and this is
|
|
10
|
+
a pure env read, so it costs nothing on a poll.
|
|
11
|
+
|
|
12
|
+
Present even when off: a client must distinguish `false` from absent, because
|
|
13
|
+
absent means a server too old to report it and the toggle should then be left
|
|
14
|
+
alone rather than forced off.
|
|
15
|
+
|
|
16
|
+
Pairs with COS Control 0.5.64.
|
|
17
|
+
|
|
1
18
|
## 6.36.21
|
|
2
19
|
|
|
3
20
|
**Fence liveness: the one thing about a fence a machine can actually establish.**
|
package/package.json
CHANGED
package/server/routes/health.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Router } from 'express'
|
|
2
2
|
import { isWorthRecovering } from '../lib/quarantine-auto-recover.js'
|
|
3
|
+
import { claudeSessionsEnabled } from './claude-sessions.js'
|
|
3
4
|
import { statSync } from 'node:fs'
|
|
4
5
|
import { resolve } from 'node:path'
|
|
5
6
|
import { COS_SCRIPTS_DIR, COS_MODE } from '../lib/python-bridge.js'
|
|
@@ -207,6 +208,17 @@ healthRouter.get('/health', async (_req, res) => {
|
|
|
207
208
|
localFirstMeetings: localFirstMeetings !== null,
|
|
208
209
|
transcriptionPolicy: transcription.mode,
|
|
209
210
|
liveCues: liveCues.available,
|
|
211
|
+
// Published so a CLIENT toggle can read its own state cheaply.
|
|
212
|
+
//
|
|
213
|
+
// COS Control's "Show Claude sessions" checkbox sourced its state from
|
|
214
|
+
// GET /api/claude-sessions -- the call that also lists every session -- and the
|
|
215
|
+
// panel never made that call. The box therefore rendered OFF whatever the
|
|
216
|
+
// setting was, and the setting was ON: Miles enabled it four times against a
|
|
217
|
+
// control that could only ever show him false.
|
|
218
|
+
//
|
|
219
|
+
// This is a pure env read, so it costs nothing on a health poll, and health is
|
|
220
|
+
// what every other toggle on that screen already reads.
|
|
221
|
+
claudeSessions: claudeSessionsEnabled(),
|
|
210
222
|
}
|
|
211
223
|
const voice = {
|
|
212
224
|
available: keyStatus.hasKey || tts_local.ready,
|