auq-mcp-server 2.5.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.
@@ -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 {
@@ -546,6 +567,7 @@ const App = ({ config }) => {
546
567
  export const runTui = (config) => {
547
568
  // Clear terminal before showing app
548
569
  console.clear();
570
+ console.error("If you're an AI agent, run headless mode. Use `auq --help` for available commands.");
549
571
  const { waitUntilExit } = render(React.createElement(App, { config: config }));
550
572
  // Handle Ctrl+C gracefully
551
573
  process.on("SIGINT", () => {
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "auq-mcp-server",
3
- "version": "2.5.0",
3
+ "version": "2.6.1",
4
4
  "main": "dist/index.js",
5
5
  "bin": {
6
6
  "auq": "dist/bin/auq.js"
@@ -166,7 +166,13 @@ async function sessionsShow(args) {
166
166
  // ── Fetch session data ──────────────────────────────────────────
167
167
  const status = await sessionManager.getSessionStatus(sessionId);
168
168
  const request = await sessionManager.getSessionRequest(sessionId);
169
- const answersData = await sessionManager.getSessionAnswers(sessionId);
169
+ let answersData = null;
170
+ try {
171
+ answersData = await sessionManager.getSessionAnswers(sessionId);
172
+ }
173
+ catch {
174
+ // answers.json may not exist for pending/in-progress sessions — that's expected
175
+ }
170
176
  if (!status || !request) {
171
177
  outputResult({ success: false, error: `Could not read session data for: ${sessionId}` }, jsonMode);
172
178
  process.exitCode = 1;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "auq-mcp-server",
3
- "version": "2.5.0",
3
+ "version": "2.6.1",
4
4
  "main": "dist/index.js",
5
5
  "bin": {
6
6
  "auq": "dist/bin/auq.js"