auq-mcp-server 2.6.3 → 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.
- package/dist/bin/tui-app.js +3 -9
- package/dist/package.json +1 -1
- package/package.json +1 -1
package/dist/bin/tui-app.js
CHANGED
|
@@ -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