@brainjar/cli 0.5.0 → 0.5.1

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/daemon.ts +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brainjar/cli",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "description": "Shape how your AI thinks — composable soul, persona, and rules for AI agents",
5
5
  "type": "module",
6
6
  "license": "MIT",
package/src/daemon.ts CHANGED
@@ -14,7 +14,7 @@ export const DIST_BASE = 'https://get.brainjar.sh/brainjar-server'
14
14
  * Strips leading 'v' prefix. Only compares major.minor.patch.
15
15
  */
16
16
  export function compareSemver(a: string, b: string): number {
17
- const parse = (v: string) => v.replace(/^v/, '').split('.').map(Number)
17
+ const parse = (v: string) => v.replace(/^v/, '').replace(/-.*$/, '').split('.').map(Number)
18
18
  const pa = parse(a)
19
19
  const pb = parse(b)
20
20
  for (let i = 0; i < 3; i++) {
@@ -30,7 +30,7 @@ const { IncurError } = Errors
30
30
  * Minimum server version this CLI is compatible with.
31
31
  * Bump when the CLI depends on server features/API changes.
32
32
  */
33
- export const MIN_SERVER_VERSION = '0.2.1'
33
+ export const MIN_SERVER_VERSION = '0.2.2'
34
34
 
35
35
  export interface HealthStatus {
36
36
  healthy: boolean