auq-mcp-server 2.6.0 → 2.6.1
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/bin/tui-app.js +21 -0
- package/dist/package.json +1 -1
- package/package.json +1 -1
package/dist/bin/tui-app.js
CHANGED
|
@@ -155,6 +155,27 @@ const App = ({ config }) => {
|
|
|
155
155
|
// Fetch changelog for the overlay
|
|
156
156
|
const changelog = await fetchChangelog(result.latestVersion);
|
|
157
157
|
setChangelogContent(changelog.content);
|
|
158
|
+
// Auto-action based on update type
|
|
159
|
+
if (result.updateType === "patch" && !updateDismissed) {
|
|
160
|
+
// Auto-install patch silently
|
|
161
|
+
try {
|
|
162
|
+
const pm = detectPackageManager();
|
|
163
|
+
const success = await installUpdate(pm);
|
|
164
|
+
if (success) {
|
|
165
|
+
setToast({
|
|
166
|
+
message: `Updated to v${result.latestVersion}. Please restart auq.`,
|
|
167
|
+
type: "success",
|
|
168
|
+
});
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
catch {
|
|
172
|
+
// Silent — patch auto-install is best-effort
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
else if (!updateDismissed) {
|
|
176
|
+
// Show overlay for minor/major updates
|
|
177
|
+
setShowUpdateOverlay(true);
|
|
178
|
+
}
|
|
158
179
|
}
|
|
159
180
|
}
|
|
160
181
|
catch {
|
package/dist/package.json
CHANGED