clay-server 2.14.0-beta.8 → 2.14.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.
- package/lib/crisis-safety.js +60 -0
- package/lib/mates.js +3 -0
- package/lib/project.js +27 -4
- package/lib/public/app.js +80 -7
- package/lib/public/css/input.css +1 -1
- package/lib/public/css/mates.css +528 -219
- package/lib/public/css/messages.css +1 -1
- package/lib/public/index.html +43 -28
- package/lib/public/modules/input.js +1 -1
- package/lib/public/modules/mate-knowledge.js +390 -75
- package/lib/public/modules/mate-sidebar.js +100 -2
- package/lib/public/modules/sidebar.js +6 -0
- package/lib/public/modules/tools.js +169 -29
- package/lib/sdk-bridge.js +4 -7
- package/package.json +1 -1
|
@@ -325,7 +325,7 @@ pre:hover .code-copy-btn { opacity: 1; }
|
|
|
325
325
|
}
|
|
326
326
|
|
|
327
327
|
.md-content strong { font-weight: 600; }
|
|
328
|
-
.md-content em { font-style: italic; }
|
|
328
|
+
.md-content em { font-style: italic; font-synthesis: style; }
|
|
329
329
|
|
|
330
330
|
.md-content a {
|
|
331
331
|
color: var(--accent);
|
package/lib/public/index.html
CHANGED
|
@@ -205,28 +205,57 @@
|
|
|
205
205
|
<button id="mate-skills-btn"><i data-lucide="puzzle"></i> <span>Skills</span></button>
|
|
206
206
|
<button id="mate-scheduler-btn"><i data-lucide="calendar-clock"></i> <span>Scheduled Tasks</span></button>
|
|
207
207
|
</div>
|
|
208
|
-
<div
|
|
209
|
-
<
|
|
210
|
-
|
|
211
|
-
<
|
|
208
|
+
<div id="mate-sidebar-conversations">
|
|
209
|
+
<div class="mate-sidebar-sessions-header">
|
|
210
|
+
<span>Conversations</span>
|
|
211
|
+
<div class="mate-sidebar-actions">
|
|
212
|
+
<button id="mate-search-session-btn" type="button" title="Search sessions"><i data-lucide="search"></i></button>
|
|
213
|
+
<button id="mate-new-session-btn" type="button" title="New session"><i data-lucide="plus"></i></button>
|
|
214
|
+
</div>
|
|
215
|
+
</div>
|
|
216
|
+
<div id="mate-session-search" class="mate-session-search hidden">
|
|
217
|
+
<input id="mate-session-search-input" type="text" placeholder="Search sessions..." autocomplete="off" spellcheck="false" />
|
|
218
|
+
<button id="mate-session-search-clear" type="button" aria-label="Clear search"><i data-lucide="x"></i></button>
|
|
219
|
+
</div>
|
|
220
|
+
<div id="mate-session-list" class="mate-session-list"></div>
|
|
221
|
+
</div>
|
|
222
|
+
<div id="mate-sidebar-knowledge" class="hidden">
|
|
223
|
+
<div class="mate-sidebar-sessions-header">
|
|
224
|
+
<span>Knowledge</span>
|
|
225
|
+
<div class="mate-sidebar-actions">
|
|
226
|
+
<button id="mate-knowledge-add-sidebar-btn" type="button" title="New file"><i data-lucide="plus"></i></button>
|
|
227
|
+
<button id="mate-knowledge-back-btn" type="button" title="Back to conversations"><i data-lucide="x"></i></button>
|
|
228
|
+
</div>
|
|
212
229
|
</div>
|
|
230
|
+
<div id="mate-knowledge-files" class="mate-knowledge-file-list"></div>
|
|
213
231
|
</div>
|
|
214
|
-
<div id="mate-session-list" class="mate-session-list"></div>
|
|
215
232
|
</div>
|
|
216
233
|
|
|
217
234
|
<div id="main-column">
|
|
218
235
|
<div id="mate-knowledge-container" class="hidden">
|
|
219
|
-
<div class="mate-knowledge-header">
|
|
220
|
-
<
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
<
|
|
236
|
+
<div class="mate-knowledge-header-bar">
|
|
237
|
+
<i data-lucide="file-text" class="mate-knowledge-header-icon"></i>
|
|
238
|
+
<span id="mate-knowledge-active-name" class="mate-knowledge-active-name">No file selected</span>
|
|
239
|
+
<div id="mate-knowledge-name-group" class="mate-knowledge-name-group hidden">
|
|
240
|
+
<input type="text" id="mate-knowledge-editor-name" placeholder="Knowledge name..." maxlength="80" spellcheck="false">
|
|
241
|
+
<span id="mate-knowledge-editor-ext" class="mate-knowledge-editor-ext">.md</span>
|
|
242
|
+
</div>
|
|
243
|
+
<div class="mate-knowledge-toolbar-spacer"></div>
|
|
244
|
+
<button id="mate-knowledge-editor-delete" class="mate-knowledge-header-btn" style="display:none" title="Delete"><i data-lucide="trash-2"></i></button>
|
|
245
|
+
<button id="mate-knowledge-editor-save" class="mate-knowledge-header-btn" disabled title="Save"><i data-lucide="save"></i></button>
|
|
246
|
+
<button id="mate-knowledge-close-btn" class="mate-knowledge-header-btn" title="Close"><i data-lucide="x"></i></button>
|
|
247
|
+
</div>
|
|
248
|
+
<div class="mate-knowledge-body">
|
|
249
|
+
<div class="mate-knowledge-editor-pane">
|
|
250
|
+
<div class="mate-editor-highlight-wrap">
|
|
251
|
+
<pre class="mate-editor-highlight-pre" aria-hidden="true"><code id="mate-knowledge-editor-highlight" class="language-markdown"></code></pre>
|
|
252
|
+
<textarea id="mate-knowledge-editor-content" placeholder="Select a file from the sidebar..." spellcheck="false"></textarea>
|
|
253
|
+
</div>
|
|
224
254
|
</div>
|
|
225
|
-
<div class="mate-knowledge-
|
|
226
|
-
<
|
|
255
|
+
<div class="mate-knowledge-preview-pane">
|
|
256
|
+
<div id="mate-knowledge-editor-preview" class="mate-knowledge-preview-content md-content"></div>
|
|
227
257
|
</div>
|
|
228
258
|
</div>
|
|
229
|
-
<div id="mate-knowledge-grid" class="mate-knowledge-grid"></div>
|
|
230
259
|
</div>
|
|
231
260
|
<div class="dm-header-bar" id="dm-header-bar">
|
|
232
261
|
<img id="dm-header-avatar" class="dm-header-avatar" alt="">
|
|
@@ -1494,21 +1523,7 @@
|
|
|
1494
1523
|
</div>
|
|
1495
1524
|
</div>
|
|
1496
1525
|
|
|
1497
|
-
<!-- Knowledge Editor Modal -->
|
|
1498
|
-
<div id="mate-knowledge-editor" class="hidden">
|
|
1499
|
-
<div class="mate-knowledge-editor-backdrop"></div>
|
|
1500
|
-
<div class="mate-knowledge-editor-card">
|
|
1501
|
-
<div class="mate-knowledge-editor-header">
|
|
1502
|
-
<input type="text" id="mate-knowledge-editor-name" placeholder="File name..." maxlength="80" spellcheck="false">
|
|
1503
|
-
<button id="mate-knowledge-editor-close">×</button>
|
|
1504
|
-
</div>
|
|
1505
|
-
<textarea id="mate-knowledge-editor-content" placeholder="Write anything your mate should know..."></textarea>
|
|
1506
|
-
<div class="mate-knowledge-editor-footer">
|
|
1507
|
-
<button id="mate-knowledge-editor-delete" class="mate-btn secondary" style="margin-right:auto">Delete</button>
|
|
1508
|
-
<button id="mate-knowledge-editor-save" class="mate-btn primary">Save</button>
|
|
1509
|
-
</div>
|
|
1510
|
-
</div>
|
|
1511
|
-
</div>
|
|
1526
|
+
<!-- Knowledge Editor Modal removed: now inline 3-panel layout -->
|
|
1512
1527
|
|
|
1513
1528
|
<!-- Scheduler panel is dynamically created in #app by scheduler.js -->
|
|
1514
1529
|
|
|
@@ -105,7 +105,7 @@ export function sendMessage() {
|
|
|
105
105
|
}
|
|
106
106
|
ctx.ws.send(JSON.stringify(payload));
|
|
107
107
|
|
|
108
|
-
// Mate DM: show pre-thinking dots
|
|
108
|
+
// Mate DM: show pre-thinking dots after a short delay (before server responds)
|
|
109
109
|
if (ctx.isMateDm && ctx.isMateDm()) {
|
|
110
110
|
ctx.showMatePreThinking();
|
|
111
111
|
}
|