@devness/useai 0.4.16 → 0.4.17
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/dist/index.js +54 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -112,7 +112,7 @@ var VERSION;
|
|
|
112
112
|
var init_version = __esm({
|
|
113
113
|
"../shared/dist/constants/version.js"() {
|
|
114
114
|
"use strict";
|
|
115
|
-
VERSION = "0.4.
|
|
115
|
+
VERSION = "0.4.17";
|
|
116
116
|
}
|
|
117
117
|
});
|
|
118
118
|
|
|
@@ -1295,6 +1295,7 @@ function registerTools(server2, session2) {
|
|
|
1295
1295
|
session_id: session2.sessionId,
|
|
1296
1296
|
title: m.title,
|
|
1297
1297
|
private_title: m.private_title,
|
|
1298
|
+
project: session2.project ?? void 0,
|
|
1298
1299
|
category: m.category,
|
|
1299
1300
|
complexity: m.complexity ?? "medium",
|
|
1300
1301
|
duration_minutes: durationMinutes,
|
|
@@ -2349,10 +2350,47 @@ function getDashboardHtml() {
|
|
|
2349
2350
|
border-bottom: 1px solid var(--border);
|
|
2350
2351
|
}
|
|
2351
2352
|
.milestone-item:last-child { border-bottom: none; }
|
|
2352
|
-
.milestone-title {
|
|
2353
|
+
.milestone-title-block {
|
|
2353
2354
|
flex: 1;
|
|
2355
|
+
min-width: 0;
|
|
2356
|
+
}
|
|
2357
|
+
.milestone-title {
|
|
2354
2358
|
font-size: 0.88rem;
|
|
2355
2359
|
color: var(--text);
|
|
2360
|
+
display: flex;
|
|
2361
|
+
align-items: center;
|
|
2362
|
+
gap: 6px;
|
|
2363
|
+
}
|
|
2364
|
+
.milestone-title .title-text {
|
|
2365
|
+
overflow: hidden;
|
|
2366
|
+
text-overflow: ellipsis;
|
|
2367
|
+
}
|
|
2368
|
+
.milestone-public-title {
|
|
2369
|
+
font-size: 0.75rem;
|
|
2370
|
+
color: var(--muted);
|
|
2371
|
+
margin-top: 2px;
|
|
2372
|
+
display: flex;
|
|
2373
|
+
align-items: center;
|
|
2374
|
+
gap: 4px;
|
|
2375
|
+
}
|
|
2376
|
+
.milestone-public-title .globe-icon {
|
|
2377
|
+
opacity: 0.5;
|
|
2378
|
+
flex-shrink: 0;
|
|
2379
|
+
}
|
|
2380
|
+
.private-icon {
|
|
2381
|
+
flex-shrink: 0;
|
|
2382
|
+
color: var(--amber-dim);
|
|
2383
|
+
opacity: 0.7;
|
|
2384
|
+
}
|
|
2385
|
+
.project-tag {
|
|
2386
|
+
font-size: 0.68rem;
|
|
2387
|
+
padding: 1px 6px;
|
|
2388
|
+
border-radius: 3px;
|
|
2389
|
+
background: #252520;
|
|
2390
|
+
color: var(--amber-dim);
|
|
2391
|
+
font-family: 'SF Mono', 'Fira Code', monospace;
|
|
2392
|
+
flex-shrink: 0;
|
|
2393
|
+
white-space: nowrap;
|
|
2356
2394
|
}
|
|
2357
2395
|
.milestone-meta {
|
|
2358
2396
|
display: flex;
|
|
@@ -2625,6 +2663,8 @@ function getDashboardHtml() {
|
|
|
2625
2663
|
}
|
|
2626
2664
|
section.style.display = 'block';
|
|
2627
2665
|
var recent = milestones.slice(-20).reverse();
|
|
2666
|
+
var lockSvg = '<svg class="private-icon" width="12" height="12" viewBox="0 0 16 16" fill="currentColor"><path d="M4 7V5a4 4 0 118 0v2h1a1 1 0 011 1v6a1 1 0 01-1 1H3a1 1 0 01-1-1V8a1 1 0 011-1h1zm2-2v2h4V5a2 2 0 10-4 0z"/></svg>';
|
|
2667
|
+
var globeSvg = '<svg class="globe-icon" width="10" height="10" viewBox="0 0 16 16" fill="currentColor"><path d="M8 0a8 8 0 100 16A8 8 0 008 0zm5.3 5H11a13 13 0 00-1-3.2A6 6 0 0113.3 5zM8 1.5c.7.9 1.2 2.1 1.5 3.5h-3C6.8 3.6 7.3 2.4 8 1.5zM1.5 9a6 6 0 010-2h2.6a14 14 0 000 2H1.5zM2.7 11H5a13 13 0 001 3.2A6 6 0 012.7 11zM5 11h6a11 11 0 01-1.5 3.5c-.3.4-.7.7-1.1.9a6 6 0 01-1.9-1c-.4-.5-.7-1-.9-1.5-.2-.5-.4-1.2-.6-1.9zm6.9 0h2.4a6 6 0 01-3.3 3.2c.5-.9.8-2 1-3.2zm2.6-2h-2.6a14 14 0 000-2h2.6a6 6 0 010 2zM5.1 7a12 12 0 000 2H11a12 12 0 000-2H5.1zM6 1.8A6 6 0 012.7 5H5a13 13 0 011-3.2z"/></svg>';
|
|
2628
2668
|
list.innerHTML = recent.map(function(m) {
|
|
2629
2669
|
var date = '';
|
|
2630
2670
|
if (m.created_at) {
|
|
@@ -2636,8 +2676,19 @@ function getDashboardHtml() {
|
|
|
2636
2676
|
}
|
|
2637
2677
|
}
|
|
2638
2678
|
var dur = fmtDuration(m.duration_minutes);
|
|
2679
|
+
var hasPrivate = !!m.private_title;
|
|
2680
|
+
var displayTitle = hasPrivate ? m.private_title : m.title;
|
|
2681
|
+
var projectTag = m.project ? '<span class="project-tag">' + escapeHtml(m.project) + '</span>' : '';
|
|
2682
|
+
var titleLine = '<div class="milestone-title">' +
|
|
2683
|
+
(hasPrivate ? lockSvg : '') +
|
|
2684
|
+
'<span class="title-text">' + escapeHtml(displayTitle) + '</span>' +
|
|
2685
|
+
projectTag +
|
|
2686
|
+
'</div>';
|
|
2687
|
+
var publicLine = hasPrivate
|
|
2688
|
+
? '<div class="milestone-public-title">' + globeSvg + escapeHtml(m.title) + '</div>'
|
|
2689
|
+
: '';
|
|
2639
2690
|
return '<div class="milestone-item">' +
|
|
2640
|
-
'<div class="milestone-title">' +
|
|
2691
|
+
'<div class="milestone-title-block">' + titleLine + publicLine + '</div>' +
|
|
2641
2692
|
'<div class="milestone-meta">' +
|
|
2642
2693
|
'<span class="' + badgeClass(m.category) + '">' + escapeHtml(m.category) + '</span>' +
|
|
2643
2694
|
(m.complexity ? '<span class="complexity">' + escapeHtml(m.complexity) + '</span>' : '') +
|