clay-server 2.11.0-beta.2 → 2.11.0-beta.3

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/public/app.js CHANGED
@@ -1162,9 +1162,11 @@ import { initAdmin, checkAdminAccess } from './modules/admin.js';
1162
1162
 
1163
1163
  var confirmCallback = null;
1164
1164
 
1165
- function showConfirm(text, onConfirm) {
1165
+ function showConfirm(text, onConfirm, okLabel, destructive) {
1166
1166
  confirmText.textContent = text;
1167
1167
  confirmCallback = onConfirm;
1168
+ confirmOk.textContent = okLabel || "Delete";
1169
+ confirmOk.className = "confirm-btn " + (destructive === false ? "confirm-ok" : "confirm-delete");
1168
1170
  confirmModal.classList.remove("hidden");
1169
1171
  }
1170
1172
 
@@ -2108,10 +2110,12 @@ import { initAdmin, checkAdminAccess } from './modules/admin.js';
2108
2110
  if (!btn) return;
2109
2111
  var msgEl = btn.closest("[data-uuid]");
2110
2112
  if (!msgEl || !msgEl.dataset.uuid) return;
2111
- if (!confirm("Fork session from this message?")) return;
2112
- if (ws && ws.readyState === 1) {
2113
- ws.send(JSON.stringify({ type: "fork_session", uuid: msgEl.dataset.uuid }));
2114
- }
2113
+ var forkUuid = msgEl.dataset.uuid;
2114
+ showConfirm("Fork session from this message?", function() {
2115
+ if (ws && ws.readyState === 1) {
2116
+ ws.send(JSON.stringify({ type: "fork_session", uuid: forkUuid }));
2117
+ }
2118
+ }, "Fork", false);
2115
2119
  });
2116
2120
 
2117
2121
  function scrollToBottom() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clay-server",
3
- "version": "2.11.0-beta.2",
3
+ "version": "2.11.0-beta.3",
4
4
  "description": "Web UI for Claude Code. Any device. Push notifications.",
5
5
  "bin": {
6
6
  "clay-server": "./bin/cli.js",