thepopebot 1.2.15 → 1.2.16

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/lib/chat/api.js CHANGED
@@ -2,7 +2,7 @@ import { auth } from '../auth/index.js';
2
2
  import { chatStream } from '../ai/index.js';
3
3
 
4
4
  /**
5
- * POST handler for /api/chat — streaming chat with session auth.
5
+ * POST handler for /stream/chat — streaming chat with session auth.
6
6
  * Dedicated route handler separate from the catch-all api/index.js.
7
7
  */
8
8
  export async function POST(request) {
@@ -12,7 +12,7 @@ function Chat({ chatId, initialMessages = [] }) {
12
12
  const hasNavigated = useRef(false);
13
13
  const transport = useMemo(
14
14
  () => new DefaultChatTransport({
15
- api: "/api/chat",
15
+ api: "/stream/chat",
16
16
  body: { chatId }
17
17
  }),
18
18
  [chatId]
@@ -15,7 +15,7 @@ export function Chat({ chatId, initialMessages = [] }) {
15
15
  const transport = useMemo(
16
16
  () =>
17
17
  new DefaultChatTransport({
18
- api: '/api/chat',
18
+ api: '/stream/chat',
19
19
  body: { chatId },
20
20
  }),
21
21
  [chatId]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "thepopebot",
3
- "version": "1.2.15",
3
+ "version": "1.2.16",
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": {
File without changes