tandem-editor 0.2.3 → 0.2.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.
@@ -9,7 +9,7 @@
9
9
  html, body, #root { height: 100%; }
10
10
  body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; }
11
11
  </style>
12
- <script type="module" crossorigin src="/assets/index-NqrmyYcr.js"></script>
12
+ <script type="module" crossorigin src="/assets/index-zjgl0IkV.js"></script>
13
13
  </head>
14
14
  <body>
15
15
  <div id="root"></div>
@@ -5301,6 +5301,18 @@ function registerChannelRoutes(app, apiMiddleware2) {
5301
5301
  console.error(`[Channel] Permission verdict: ${requestId} \u2192 ${approved ? "allow" : "deny"}`);
5302
5302
  res.json({ ok: true, requestId, behavior: approved ? "allow" : "deny" });
5303
5303
  });
5304
+ app.options("/api/chat", apiMiddleware2);
5305
+ app.delete("/api/chat", apiMiddleware2, (_req, res) => {
5306
+ const ctrlDoc = getOrCreateDocument(CTRL_ROOM);
5307
+ const chatMap = ctrlDoc.getMap(Y_MAP_CHAT);
5308
+ const count = chatMap.size;
5309
+ ctrlDoc.transact(() => {
5310
+ for (const key of Array.from(chatMap.keys())) {
5311
+ chatMap.delete(key);
5312
+ }
5313
+ }, MCP_ORIGIN);
5314
+ res.json({ ok: true, cleared: count });
5315
+ });
5304
5316
  app.options("/api/launch-claude", apiMiddleware2);
5305
5317
  app.post("/api/launch-claude", apiMiddleware2, async (_req, res) => {
5306
5318
  try {