feat: add pwd handling to session and update related components

This commit is contained in:
Justin Lin committed 2025-04-25 11:33:16 +08:00
1 parent fba92dad46
commit 26e79690f8
7 files changed
+16 -4

No files matched your search

+7
View File
@@ -32,6 +32,13 @@ async function readOrNone(file) {
const commandListeners = {
ls: [discoverFiles],
cd: [changeDirectory],
}
function changeDirectory() {
return {
pwd: process.cwd(),
}
}
async function handleCommand(command) {