sam-coder-cli 2.0.1 → 2.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/agi-cli.js +8 -3
- package/package.json +1 -1
package/bin/agi-cli.js
CHANGED
|
@@ -1670,9 +1670,14 @@ async function chat(rl, mode, initialModel) {
|
|
|
1670
1670
|
}
|
|
1671
1671
|
|
|
1672
1672
|
rl.prompt();
|
|
1673
|
-
})
|
|
1674
|
-
|
|
1675
|
-
|
|
1673
|
+
});
|
|
1674
|
+
|
|
1675
|
+
// Return a Promise that resolves when readline closes
|
|
1676
|
+
return new Promise((resolve) => {
|
|
1677
|
+
rl.on('close', () => {
|
|
1678
|
+
ui.showResponse('Goodbye!');
|
|
1679
|
+
resolve();
|
|
1680
|
+
});
|
|
1676
1681
|
});
|
|
1677
1682
|
}
|
|
1678
1683
|
|
package/package.json
CHANGED