@gotcos/glasses-server 6.27.5 → 6.27.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.
@@ -1,10 +1,11 @@
1
1
  #!/usr/bin/env tsx
2
- // Creates a fresh short-number namespace without touching sessions or archives.
3
- // Restart the server afterward so every new exchange is stamped into the era.
2
+ // Archives live sessions, then creates a fresh short-number namespace.
3
+ // History stays in day archives. Disk mtime is enough no server restart.
4
4
  //
5
5
  // npx tsx server/scripts/reset-message-era.ts --confirm
6
6
 
7
- import { createMessageEra, currentMessageEraState } from '../lib/message-era.js'
7
+ import { currentMessageEraState } from '../lib/message-era.js'
8
+ import { resetLiveMessageEra } from '../lib/message-era-reset.js'
8
9
 
9
10
  if (!process.argv.includes('--confirm')) {
10
11
  const current = currentMessageEraState()
@@ -13,16 +14,15 @@ if (!process.argv.includes('--confirm')) {
13
14
  process.exit(2)
14
15
  }
15
16
 
16
- const next = createMessageEra()
17
+ const next = await resetLiveMessageEra({ confirm: true })
17
18
  console.log(JSON.stringify({
18
19
  status: 'created',
19
20
  ...next,
20
21
  history: 'retained',
21
- restartRequired: true,
22
- verify: 'GET /api/message-counter should return { max: 0 or small, era: "<era above>" } after server restart',
22
+ restartRequired: false,
23
+ verify: 'GET /api/message-counter should return { max: 0, era: "<era above>" }',
23
24
  nextSteps: [
24
- 'Restart LaunchAgent / Control Update Server generation',
25
- 'Phone reconnect so syncMessageEra clears the live list',
26
- 'Send a test message — expect #1 (or low single digits)',
25
+ 'Phone: tap RESET # or reopen the companion so the live list clears',
26
+ 'Send a test message expect #1',
27
27
  ],
28
28
  }, null, 2))
@@ -195,7 +195,7 @@ export function modelLabel(model: ModelPreference): string {
195
195
  case 'haiku': return 'Haiku'
196
196
  case 'codex-frontier': return runtimeCodexLabels[model] ?? 'GPT Frontier'
197
197
  case 'codex-balanced': return runtimeCodexLabels[model] ?? 'GPT Balanced'
198
- case 'cursor-grok': return runtimeCursorLabels[model] ?? 'Grok 4.5 Fast'
198
+ case 'cursor-grok': return runtimeCursorLabels[model] ?? 'Grok Fast'
199
199
  case 'cursor-composer': return runtimeCursorLabels[model] ?? 'Composer 2.5 Fast'
200
200
  case 'opus':
201
201
  default: