mirror of
https://github.com/wu736139669/hapi.git
synced 2026-08-05 06:24:37 +00:00
feat: add CLI-server protocol version mismatch detection
- Define PROTOCOL_VERSION constant in shared/src/version.ts - Server sets X-Hapi-Protocol-Version header on /cli/* responses - Server includes protocolVersion in /health endpoint - CLI extracts serverProtocolVersion from API responses - CLI shows version mismatch hints in both directions - Add tests for error utilities and version extraction close #104
This commit is contained in:
@@ -3,4 +3,5 @@ export * from './modes'
|
||||
export * from './socket'
|
||||
export * from './sessionSummary'
|
||||
export * from './utils'
|
||||
export * from './version'
|
||||
export type * from './types'
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
/** Bump when CLI↔Server REST/Socket API changes in a breaking way. */
|
||||
export const PROTOCOL_VERSION = 1
|
||||
Reference in New Issue
Block a user