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:
Mega Mind
2026-03-20 20:26:18 -07:00
committed by GitHub
parent d51f67445c
commit 2955fd4eec
12 changed files with 248 additions and 134 deletions
+9 -2
View File
@@ -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) {