feat: add user info command and package management for assistant app
- Implemented a new command 'me' to view current user information in the assistant application. - Created a common configuration file for the assistant app with package details and scripts. - Added functionality to check and update package.json dependencies and devDependencies in the assistant app. - Refactored storage initialization in query module to use StorageNode.
This commit is contained in:
@@ -30,20 +30,14 @@ export const runServer = async (port: number = 51515, listenPath = '127.0.0.1')
|
||||
}
|
||||
_port = isPortAvailable;
|
||||
}
|
||||
const hasSocket = listenPath.includes('.sock');
|
||||
if (hasSocket) {
|
||||
app.listen(listenPath, () => {
|
||||
console.log(`Server is running on ${listenPath}`);
|
||||
});
|
||||
} else {
|
||||
app.listen(_port, listenPath, () => {
|
||||
let showListenPath = listenPath;
|
||||
if (listenPath === '::') {
|
||||
showListenPath = 'localhost';
|
||||
}
|
||||
console.log(`Server is running on ${'http'}://${showListenPath}:${_port}`);
|
||||
});
|
||||
}
|
||||
|
||||
app.listen(_port, listenPath, () => {
|
||||
let showListenPath = listenPath;
|
||||
if (listenPath === '::') {
|
||||
showListenPath = 'localhost';
|
||||
}
|
||||
console.log(`Server is running on ${'http'}://${showListenPath}:${_port}`);
|
||||
});
|
||||
app.server.on([{
|
||||
id: 'handle-all',
|
||||
func: proxyRoute as any,
|
||||
|
||||
Reference in New Issue
Block a user