@hydra-acp/cli 0.1.16 → 0.1.18
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 +7 -8
- 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 = {
|
|
@@ -8034,14 +8035,7 @@ function formatEvent(event) {
|
|
|
8034
8035
|
}
|
|
8035
8036
|
];
|
|
8036
8037
|
case "model-changed":
|
|
8037
|
-
return [
|
|
8038
|
-
{
|
|
8039
|
-
prefix: "\xBB ",
|
|
8040
|
-
prefixStyle: "info",
|
|
8041
|
-
body: `model: ${event.model}`,
|
|
8042
|
-
bodyStyle: "info"
|
|
8043
|
-
}
|
|
8044
|
-
];
|
|
8038
|
+
return [];
|
|
8045
8039
|
case "turn-complete":
|
|
8046
8040
|
return [];
|
|
8047
8041
|
case "usage-update":
|
|
@@ -8356,6 +8350,11 @@ async function runTuiApp(opts) {
|
|
|
8356
8350
|
while (nextOpts !== null) {
|
|
8357
8351
|
nextOpts = await runSession(term, config, nextOpts, exitHint);
|
|
8358
8352
|
}
|
|
8353
|
+
const pendingUpdate = await getPendingUpdate();
|
|
8354
|
+
if (pendingUpdate) {
|
|
8355
|
+
process.stderr.write(`\u2728 ${formatUpdateNoticeLine(pendingUpdate)}
|
|
8356
|
+
`);
|
|
8357
|
+
}
|
|
8359
8358
|
if (exitHint.sessionId) {
|
|
8360
8359
|
const short = stripHydraSessionPrefix(exitHint.sessionId);
|
|
8361
8360
|
process.stdout.write(`To resume: hydra-acp tui --resume ${short}
|