@gotcos/glasses-server 6.53.1 → 6.53.4

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.
@@ -8,7 +8,7 @@
8
8
  // Prints one JSON document. Exit 0 on success, 2 on a refusal (unparseable or symlinked
9
9
  // settings, a missing packaged script), 64 on a bad argument. Never prints the token.
10
10
 
11
- import { hookStatus, installClaudeHooks, uninstallClaudeHooks } from '../lib/claude-hooks-installer.js'
11
+ import { hookStatus, hookStatusAdvice, installClaudeHooks, uninstallClaudeHooks } from '../lib/claude-hooks-installer.js'
12
12
  import { sessionHooksEnabled } from '../lib/session-hooks-runtime.js'
13
13
 
14
14
  const args = process.argv.slice(2)
@@ -30,7 +30,11 @@ const serverApplies = sessionHooksEnabled()
30
30
  const flagsNote = serverApplies ? undefined : 'Rows change only when the server runs with COS_CLAUDE_SESSIONS_ENABLED=1 (or COS_SESSION_HOOKS=1).'
31
31
 
32
32
  if (action === 'status') {
33
- print({ action, serverApplies, ...(flagsNote ? { note: flagsNote } : {}), ...hookStatus() })
33
+ const status = hookStatus()
34
+ // 6.53.3: say in words what the state means and what fixes it (`script_outdated` after an
35
+ // update that changed the script, until Install hooks).
36
+ const advice = hookStatusAdvice(status)
37
+ print({ action, serverApplies, ...(flagsNote ? { note: flagsNote } : {}), ...(advice ? { advice } : {}), ...status })
34
38
  process.exit(0)
35
39
  }
36
40
  if (action === 'install') {