vzcode 1.33.0 → 1.34.0

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.
@@ -14,6 +14,7 @@ import { json1Presence } from '../ot.js';
14
14
  import { computeInitialDocument } from './computeInitialDocument.js';
15
15
  import { handleAIAssist } from './handleAIAssist.js';
16
16
  import { handleAICopilot } from './handleAICopilot.js';
17
+ import { handleAIChatMessage } from './handleAIChatMessage.js';
17
18
  import { isDirectory } from './isDirectory.js';
18
19
  import { createToken } from './livekit.js';
19
20
  import './setupEnv.js';
@@ -112,6 +113,13 @@ app.post(
112
113
  handleAICopilot(),
113
114
  );
114
115
 
116
+ // Handle AI Chat Message requests.
117
+ app.post(
118
+ '/ai-chat-message',
119
+ bodyParser.json(),
120
+ handleAIChatMessage(shareDBDoc),
121
+ );
122
+
115
123
  // Livekit Token Generator
116
124
  app.get('/livekit-token', async (req, res) => {
117
125
  const { room, username } = req.query;