auq-mcp-server 0.1.6 → 0.1.7

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/auq.js CHANGED
@@ -168,17 +168,19 @@ const App = () => {
168
168
  }
169
169
  });
170
170
  // Show toast notification
171
- const showToast = (message, type = "success") => {
172
- setToast({ message, type });
171
+ const showToast = (message, type = "success", title) => {
172
+ setToast({ message, type, title });
173
173
  };
174
174
  // Handle session completion
175
175
  const handleSessionComplete = (wasRejected = false, rejectionReason) => {
176
176
  // Show appropriate toast
177
177
  if (wasRejected) {
178
- const message = rejectionReason
179
- ? `**Question set rejected**\nRejection reason: ${rejectionReason}`
180
- : "**Question set rejected**";
181
- showToast(message, "info");
178
+ if (rejectionReason) {
179
+ showToast(`Rejection reason: ${rejectionReason}`, "info", "Question set rejected");
180
+ }
181
+ else {
182
+ showToast("", "info", "Question set rejected");
183
+ }
182
184
  }
183
185
  else {
184
186
  showToast("✓ Answers submitted successfully!", "success");
@@ -211,7 +213,7 @@ const App = () => {
211
213
  return (React.createElement(Box, { flexDirection: "column", paddingX: 1 },
212
214
  React.createElement(Header, { pendingCount: sessionQueue.length }),
213
215
  toast && (React.createElement(Box, { marginBottom: 1, marginTop: 1 },
214
- React.createElement(Toast, { message: toast.message, onDismiss: () => setToast(null), type: toast.type }))),
216
+ React.createElement(Toast, { message: toast.message, onDismiss: () => setToast(null), type: toast.type, title: toast.title }))),
215
217
  mainContent,
216
218
  showSessionLog && (React.createElement(Box, { marginTop: 1 },
217
219
  React.createElement(Text, { dimColor: true },
@@ -21,7 +21,7 @@ const server = new FastMCP({
21
21
  "returning formatted responses for continued reasoning. " +
22
22
  "Each question supports 2-4 multiple-choice options with descriptions, and users can always provide custom text input. " +
23
23
  "Both single-select and multi-select modes are supported.",
24
- version: "0.1.5",
24
+ version: "0.1.7",
25
25
  });
26
26
  // Define the question and option schemas
27
27
  const OptionSchema = z.object({
@@ -4,7 +4,7 @@ import React, { useEffect } from "react";
4
4
  * Toast component for brief non-blocking notifications
5
5
  * Auto-dismisses after specified duration (default 2000ms)
6
6
  */
7
- export const Toast = ({ message, type = "success", onDismiss, duration = 2000, }) => {
7
+ export const Toast = ({ message, type = "success", onDismiss, duration = 2000, title, }) => {
8
8
  // Auto-dismiss after duration
9
9
  useEffect(() => {
10
10
  const timer = setTimeout(() => {
@@ -14,6 +14,7 @@ export const Toast = ({ message, type = "success", onDismiss, duration = 2000, }
14
14
  }, [duration, onDismiss]);
15
15
  // Color based on type
16
16
  const color = type === "success" ? "green" : type === "error" ? "red" : "cyan";
17
- return (React.createElement(Box, { borderColor: color, borderStyle: "round", paddingX: 2, paddingY: 0 },
18
- React.createElement(Text, { bold: true, color: color }, message)));
17
+ return (React.createElement(Box, { borderColor: color, borderStyle: "round", paddingX: 2, paddingY: 0, flexDirection: "column" },
18
+ title && (React.createElement(Text, { bold: true, color: color }, title)),
19
+ React.createElement(Text, { color: color }, message)));
19
20
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "auq-mcp-server",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "main": "dist/index.js",
5
5
  "bin": {
6
6
  "auq": "dist/bin/auq.js"