feat: update WebSocket connection and add system version sending functionality

- Changed WebSocket connection URL to localhost for testing.
- Added a function to send system version to the server upon connection and after a delay.
- Improved logging for received messages.

chore: update package dependencies

- Bump versions for several dependencies including @kevisual/query, lucide-react, vue, and others.
- Update package manager version to pnpm@10.26.1.

fix: adjust app initialization to use sessionStorage

- Modified the app initialization to use a custom sessionStorage implementation backed by an LRU cache.

feat: implement sessionStorage with LRU cache

- Added a new module for sessionStorage that utilizes LRUCache for efficient caching.
This commit is contained in:
2025-12-21 04:20:25 +08:00
parent b3c5e7d68d
commit 36628c8279
16 changed files with 323 additions and 112 deletions

View File

@@ -38,8 +38,12 @@ export const runServer = async (port: number = 51015, listenPath = '127.0.0.1')
console.log(`Server is running on ${protocol}://${listenPath}:${_port}`);
});
}
app.server.on(proxyRoute);
proxyWs();
app.server.on([{
id: 'all',
func: proxyRoute as any
},
...proxyWs()
]);
const manager = new AssistantApp(assistantConfig, app);
setTimeout(() => {
manager.load({ runtime: 'client' }).then(() => {