@adhdev/daemon-core 0.8.97 → 0.8.99

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,4 +1,5 @@
1
1
  const HERMES_SESSION_ID_RE = /^\d{8}_\d{6}_[a-z0-9]+$/i
2
+ const CLAUDE_SESSION_ID_RE = /^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i
2
3
 
3
4
  export function normalizeProviderSessionId(providerType: string | undefined, providerSessionId: string | null | undefined): string {
4
5
  const normalizedProviderType = typeof providerType === 'string' ? providerType.trim() : ''
@@ -11,6 +12,9 @@ export function normalizeProviderSessionId(providerType: string | undefined, pro
11
12
  if (normalizedProviderType === 'hermes-cli' && !HERMES_SESSION_ID_RE.test(normalizedId)) {
12
13
  return ''
13
14
  }
15
+ if (normalizedProviderType === 'claude-cli' && !CLAUDE_SESSION_ID_RE.test(normalizedId)) {
16
+ return ''
17
+ }
14
18
 
15
19
  return normalizedId
16
20
  }