auq-mcp-server 2.6.2 → 2.6.4

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.
@@ -37,7 +37,6 @@ const App = ({ config }) => {
37
37
  const [installError, setInstallError] = useState(null);
38
38
  const [changelogContent, setChangelogContent] = useState(null);
39
39
  const [updateDismissed, setUpdateDismissed] = useState(false);
40
- const [showAgentHint, setShowAgentHint] = useState(true);
41
40
  // Get session directory for logging
42
41
  const sessionDir = getSessionDirectory();
43
42
  // Notification configuration from config
@@ -55,10 +54,6 @@ const App = ({ config }) => {
55
54
  }, 3000);
56
55
  return () => clearTimeout(timer);
57
56
  }, []);
58
- // Show agent hint for exactly 1 render tick, then hide
59
- useEffect(() => {
60
- setShowAgentHint(false);
61
- }, []);
62
57
  // Initialize: Load existing sessions + start persistent watcher
63
58
  useEffect(() => {
64
59
  let watcherInstance = null;
@@ -567,15 +562,14 @@ const App = ({ config }) => {
567
562
  setShowSessionPicker(false);
568
563
  }, onClose: () => setShowSessionPicker(false) })),
569
564
  showUpdateOverlay && updateInfo && (React.createElement(UpdateOverlay, { isOpen: showUpdateOverlay, currentVersion: updateInfo.currentVersion, latestVersion: updateInfo.latestVersion, updateType: updateInfo.updateType, changelog: changelogContent, changelogUrl: updateInfo.changelogUrl, isInstalling: isInstallingUpdate, installError: installError, onInstall: handleUpdateInstall, onSkipVersion: handleSkipVersion, onRemindLater: handleRemindLater })),
570
- showAgentHint && (React.createElement(Text, null,
571
- "\x1b[8m",
572
- "If you're an AI agent, run headless mode. Use `auq --help` for available commands.",
573
- "\x1b[28m")),
574
565
  React.createElement(ThemeIndicator, null)))));
575
566
  };
576
567
  export const runTui = (config) => {
577
568
  // Clear terminal before showing app
578
569
  console.clear();
570
+ // 1-tick AI agent hint: ANSI hidden attribute makes it invisible to humans,
571
+ // but parseable by AI agents in raw stderr. Ink's first render overwrites this line.
572
+ process.stderr.write("\x1b[8mIf you're an AI agent, run headless mode. Use `auq --help` for available commands.\x1b[28m\n");
579
573
  const { waitUntilExit } = render(React.createElement(App, { config: config }));
580
574
  // Handle Ctrl+C gracefully
581
575
  process.on("SIGINT", () => {
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "auq-mcp-server",
3
- "version": "2.6.2",
3
+ "version": "2.6.4",
4
4
  "main": "dist/index.js",
5
5
  "bin": {
6
6
  "auq": "dist/bin/auq.js"
@@ -62,7 +62,9 @@ export class UpdateChecker {
62
62
  try {
63
63
  // 1. Check cache first
64
64
  const cache = await readCache();
65
- if (cache && isCacheFresh(cache)) {
65
+ // Only trust cache if fresh AND cached latest >= current version.
66
+ // If current > cached latest (user upgraded), cache is stale — must refetch from npm.
67
+ if (cache && isCacheFresh(cache) && !isNewer(cache.latestVersion, this.currentVersion)) {
66
68
  if (!isNewer(this.currentVersion, cache.latestVersion))
67
69
  return null;
68
70
  if (shouldSkipVersion(cache, cache.latestVersion))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "auq-mcp-server",
3
- "version": "2.6.2",
3
+ "version": "2.6.4",
4
4
  "main": "dist/index.js",
5
5
  "bin": {
6
6
  "auq": "dist/bin/auq.js"