thepopebot 1.2.30 → 1.2.31

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.
@@ -60,6 +60,7 @@ function Chat({ chatId, initialMessages = [] }) {
60
60
  /* @__PURE__ */ jsx(ChatHeader, { chatId }),
61
61
  messages.length === 0 ? /* @__PURE__ */ jsx("div", { className: "flex flex-1 flex-col items-center justify-center px-2 md:px-4", children: /* @__PURE__ */ jsxs("div", { className: "w-full max-w-4xl", children: [
62
62
  /* @__PURE__ */ jsx(Greeting, {}),
63
+ error && /* @__PURE__ */ jsx("div", { className: "mt-4 rounded-lg border border-destructive/50 bg-destructive/10 px-4 py-2 text-sm text-destructive", children: error.message || "Something went wrong. Please try again." }),
63
64
  /* @__PURE__ */ jsx("div", { className: "mt-4", children: /* @__PURE__ */ jsx(
64
65
  ChatInput,
65
66
  {
@@ -74,6 +74,11 @@ export function Chat({ chatId, initialMessages = [] }) {
74
74
  <div className="flex flex-1 flex-col items-center justify-center px-2 md:px-4">
75
75
  <div className="w-full max-w-4xl">
76
76
  <Greeting />
77
+ {error && (
78
+ <div className="mt-4 rounded-lg border border-destructive/50 bg-destructive/10 px-4 py-2 text-sm text-destructive">
79
+ {error.message || 'Something went wrong. Please try again.'}
80
+ </div>
81
+ )}
77
82
  <div className="mt-4">
78
83
  <ChatInput
79
84
  input={input}
@@ -47,7 +47,10 @@ function PreviewMessage({ message, isLoading }) {
47
47
  },
48
48
  i
49
49
  )) }),
50
- text ? isUser ? /* @__PURE__ */ jsx("div", { className: "whitespace-pre-wrap break-words", children: text }) : /* @__PURE__ */ jsx(Streamdown, { mode: isLoading ? "streaming" : "static", children: text }) : null
50
+ text ? isUser ? /* @__PURE__ */ jsx("div", { className: "whitespace-pre-wrap break-words", children: text }) : /* @__PURE__ */ jsx(Streamdown, { mode: isLoading ? "streaming" : "static", children: text }) : isLoading ? /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 text-muted-foreground", children: [
51
+ /* @__PURE__ */ jsx(SpinnerIcon, { size: 14 }),
52
+ /* @__PURE__ */ jsx("span", { children: "Working..." })
53
+ ] }) : null
51
54
  ]
52
55
  }
53
56
  )
@@ -74,6 +74,11 @@ export function PreviewMessage({ message, isLoading }) {
74
74
  ) : (
75
75
  <Streamdown mode={isLoading ? 'streaming' : 'static'}>{text}</Streamdown>
76
76
  )
77
+ ) : isLoading ? (
78
+ <div className="flex items-center gap-2 text-muted-foreground">
79
+ <SpinnerIcon size={14} />
80
+ <span>Working...</span>
81
+ </div>
77
82
  ) : null}
78
83
  </div>
79
84
  </div>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "thepopebot",
3
- "version": "1.2.30",
3
+ "version": "1.2.31",
4
4
  "type": "module",
5
5
  "description": "Create autonomous AI agents with a two-layer architecture: Next.js Event Handler + Docker Agent.",
6
6
  "bin": {