mirror of
https://github.com/tinyhumansai/openhuman.git
synced 2026-07-30 15:03:57 +00:00
Refactor testing scripts in package.json and update dependencies (#4)
- Simplified test scripts in package.json by removing specific config references for vitest. - Updated @tauri-apps/api dependency version to 2.10.1. - Removed unused dependencies from yarn.lock and updated Cargo.toml and Cargo.lock for tinyhumansai to version 0.1.4. - Enhanced memory management in Conversations and Login components by ensuring async token synchronization. - Introduced recall_memory command in Tauri for improved context retrieval from memory.
This commit is contained in:
@@ -169,13 +169,20 @@ export async function setWindowTitle(title: string): Promise<void> {
|
||||
* Redux Persist rehydration.
|
||||
*/
|
||||
export async function syncMemoryClientToken(token: string): Promise<void> {
|
||||
console.debug('[memory] syncMemoryClientToken: entry (token_present=%s, is_tauri=%s)', !!token, isTauri());
|
||||
console.debug(
|
||||
'[memory] syncMemoryClientToken: entry (token_present=%s, is_tauri=%s)',
|
||||
!!token,
|
||||
isTauri()
|
||||
);
|
||||
if (!isTauri() || !token) {
|
||||
console.debug('[memory] syncMemoryClientToken: exit — skipped (not Tauri or empty token)');
|
||||
return;
|
||||
}
|
||||
try {
|
||||
console.debug('[memory] syncMemoryClientToken: payload → init_memory_client { jwtToken: <redacted, len=%d> }', token.length);
|
||||
console.debug(
|
||||
'[memory] syncMemoryClientToken: payload → init_memory_client { jwtToken: <redacted, len=%d> }',
|
||||
token.length
|
||||
);
|
||||
await invoke('init_memory_client', { jwtToken: token });
|
||||
console.info('[memory] syncMemoryClientToken: exit — ok');
|
||||
} catch (err) {
|
||||
|
||||
Reference in New Issue
Block a user