@hydra-acp/cli 0.1.16 → 0.1.17
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/dist/cli.js +6 -0
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -4079,6 +4079,7 @@ async function getPendingUpdate() {
|
|
|
4079
4079
|
pkg: { name: PKG_NAME, version: HYDRA_VERSION },
|
|
4080
4080
|
updateCheckInterval: 1e3 * 60 * 60 * 24
|
|
4081
4081
|
});
|
|
4082
|
+
notifier.check();
|
|
4082
4083
|
const u = notifier.update;
|
|
4083
4084
|
if (u && typeof u.latest === "string" && typeof u.current === "string" && u.latest !== u.current) {
|
|
4084
4085
|
cached = {
|
|
@@ -8356,6 +8357,11 @@ async function runTuiApp(opts) {
|
|
|
8356
8357
|
while (nextOpts !== null) {
|
|
8357
8358
|
nextOpts = await runSession(term, config, nextOpts, exitHint);
|
|
8358
8359
|
}
|
|
8360
|
+
const pendingUpdate = await getPendingUpdate();
|
|
8361
|
+
if (pendingUpdate) {
|
|
8362
|
+
process.stderr.write(`\u2728 ${formatUpdateNoticeLine(pendingUpdate)}
|
|
8363
|
+
`);
|
|
8364
|
+
}
|
|
8359
8365
|
if (exitHint.sessionId) {
|
|
8360
8366
|
const short = stripHydraSessionPrefix(exitHint.sessionId);
|
|
8361
8367
|
process.stdout.write(`To resume: hydra-acp tui --resume ${short}
|