fix: update hardcoded version references to use dynamic version
- Update DEFAULT_VERSION in version.ts from 3.5.1 to 3.14.0 - Replace hardcoded version in sharedConfigManager with getBrainyVersion() - Replace hardcoded CLI version display with dynamic version - Ensures all user-facing version displays stay current automatically 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
ab4c8d82f5
commit
29ecf8c271
3 changed files with 5 additions and 3 deletions
|
|
@ -10,6 +10,7 @@ import inquirer from 'inquirer'
|
|||
import fuzzy from 'fuzzy'
|
||||
import ora from 'ora'
|
||||
import { Brainy } from '../brainy.js'
|
||||
import { getBrainyVersion } from '../utils/version.js'
|
||||
|
||||
// Professional color scheme
|
||||
export const colors = {
|
||||
|
|
@ -576,7 +577,7 @@ export function showWelcome(): void {
|
|||
║ ║
|
||||
╚══════════════════════════════════════════════╝
|
||||
`))
|
||||
console.log(colors.dim('Version 1.5.0 • Type "help" for commands'))
|
||||
console.log(colors.dim(`Version ${getBrainyVersion()} • Type "help" for commands`))
|
||||
console.log()
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@
|
|||
|
||||
import { ModelPrecision } from './modelAutoConfig.js'
|
||||
import { StorageType } from './storageAutoConfig.js'
|
||||
import { getBrainyVersion } from '../utils/version.js'
|
||||
|
||||
export interface SharedConfig {
|
||||
// Critical parameters that MUST match across instances
|
||||
|
|
@ -128,7 +129,7 @@ export class SharedConfigManager {
|
|||
*/
|
||||
private static createSharedConfig(localConfig: any): SharedConfig {
|
||||
return {
|
||||
version: '2.10.0', // Brainy version
|
||||
version: getBrainyVersion(), // Brainy version
|
||||
precision: localConfig.embeddingOptions?.precision || 'fp32',
|
||||
dimensions: 384, // Fixed for all-MiniLM-L6-v2
|
||||
hnswM: localConfig.hnsw?.M || 16,
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
import { isNode } from './environment.js'
|
||||
|
||||
// Default version - this should be replaced at build time
|
||||
const DEFAULT_VERSION = '3.5.1'
|
||||
const DEFAULT_VERSION = '3.14.0'
|
||||
|
||||
let cachedVersion: string | null = null
|
||||
let versionPromise: Promise<string> | null = null
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue