kaizen-agent 1.80.0 → 1.81.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/cli/task-service.ts +6 -7
- package/cli/web.ts +2 -2
- package/package.json +1 -1
- package/web/board/cards.ts +8 -2
- package/web/board/task-page.ts +87 -169
- package/web/board/task-results.ts +18 -21
- package/web/board/tasks.ts +8 -6
- package/web/board/workspace.ts +3 -2
- package/web/board/zoom.ts +90 -0
- package/web/board.html +84 -7
- package/web/board.js +169 -216
- package/web/notebook.js +167 -188
- package/web/term.js +1 -1
- package/web/video.js +206 -227
package/web/board/tasks.ts
CHANGED
|
@@ -4,6 +4,7 @@ import { store } from "./store.ts";
|
|
|
4
4
|
import { $, html, ico, pageOf, pager, pagerHtml, wirePager } from "./dom.ts";
|
|
5
5
|
import { age } from "./labels.ts";
|
|
6
6
|
import { setTaskAttention } from "./badge.ts";
|
|
7
|
+
import { newTask } from "./cards.ts";
|
|
7
8
|
import { openTaskRecord, taskStatus, type TaskView } from "./task-page.ts";
|
|
8
9
|
|
|
9
10
|
export const TASK_FILTERS = [
|
|
@@ -50,7 +51,6 @@ function dock() {
|
|
|
50
51
|
if (!$("tk-bar"))
|
|
51
52
|
$("tasksv").innerHTML = String(
|
|
52
53
|
html`<div class="tk-bar" id="tk-bar">
|
|
53
|
-
<div class="tk-row" id="tk-chips" role="group" aria-label="Task filters"></div>
|
|
54
54
|
<div class="tk-row"><label class="tk-q" id="tk-q">${ico("search")}</label><span id="tk-tools"></span></div>
|
|
55
55
|
</div>
|
|
56
56
|
<div class="tk-list" id="tk-list"></div>`,
|
|
@@ -71,7 +71,7 @@ function dock() {
|
|
|
71
71
|
$("hx").innerHTML = String(
|
|
72
72
|
html`<button class="ib" id="tasks-refresh" title="Refresh tasks" aria-label="Refresh tasks">
|
|
73
73
|
${ico("refresh")}
|
|
74
|
-
</button>`,
|
|
74
|
+
</button><details class="ice-filt" id="tk-filt"><summary class="ib" id="tk-filt-sum" aria-label="Filter tasks" title="Filter tasks">${ico("filter")}</summary><div class="ice-fpop"><div class="ice-chips" id="tk-chips" role="group" aria-label="Task filters"></div></div></details>`,
|
|
75
75
|
);
|
|
76
76
|
$("tasks-refresh").onclick = () => void refreshTasks();
|
|
77
77
|
}
|
|
@@ -119,8 +119,9 @@ function draw() {
|
|
|
119
119
|
const matched = filteredTasks(scoped, filter, q);
|
|
120
120
|
const rows = pageOf(pg, matched);
|
|
121
121
|
$("tk-chips").innerHTML = String(
|
|
122
|
-
html`${TASK_FILTERS.map(([id, label]) => html`<button type="button" class="
|
|
122
|
+
html`${TASK_FILTERS.map(([id, label]) => html`<button type="button" class="ice-chip${filter === id ? " on" : ""}" data-task-filter="${id}" aria-pressed="${String(filter === id)}">${label}<i>${id === "all" ? scoped.length : scoped.filter((t) => t.attention.category === id).length}</i></button>`)}`,
|
|
123
123
|
);
|
|
124
|
+
$("tk-filt-sum").classList.toggle("on", filter !== "all");
|
|
124
125
|
const empty = error
|
|
125
126
|
? html`<p>${error}</p>
|
|
126
127
|
<button class="btn" type="button" id="tasks-retry">Try again</button>`
|
|
@@ -138,7 +139,7 @@ function draw() {
|
|
|
138
139
|
${rows.map(
|
|
139
140
|
(t, i) =>
|
|
140
141
|
html`<button type="button" class="tp-task-row${sel === i ? " kb" : ""}" data-task-row="${String(i)}">
|
|
141
|
-
<span class="tp-task-main"
|
|
142
|
+
<span class="si ${t.attention.category === "needs-you" ? "wait" : t.attention.category === "completed" ? "done" : "idle"}"></span><span class="tp-task-main"
|
|
142
143
|
><strong>${t.title}</strong
|
|
143
144
|
><small
|
|
144
145
|
>${
|
|
@@ -155,7 +156,7 @@ function draw() {
|
|
|
155
156
|
><span>${taskStatus(t)}</span><small>${t.attention.action}</small></span
|
|
156
157
|
><span class="tp-task-age"
|
|
157
158
|
>${t.updatedAt ? age(Number(new Date(t.updatedAt)), Date.now()) + " ago" : ""}</span
|
|
158
|
-
|
|
159
|
+
>
|
|
159
160
|
</button>`,
|
|
160
161
|
)}
|
|
161
162
|
</div>`
|
|
@@ -173,6 +174,7 @@ function draw() {
|
|
|
173
174
|
(b) =>
|
|
174
175
|
(b.onclick = () => {
|
|
175
176
|
filter = b.dataset.taskFilter!;
|
|
177
|
+
$("tk-filt").removeAttribute("open");
|
|
176
178
|
sel = 0;
|
|
177
179
|
pg.at = 0;
|
|
178
180
|
draw();
|
|
@@ -182,7 +184,7 @@ function draw() {
|
|
|
182
184
|
.querySelectorAll<HTMLElement>("[data-task-row]")
|
|
183
185
|
.forEach((b) => (b.onclick = () => void openTaskRecord(rows[Number(b.dataset.taskRow)])));
|
|
184
186
|
$("tasks-first") &&
|
|
185
|
-
($("tasks-first").onclick = () =>
|
|
187
|
+
($("tasks-first").onclick = () => newTask());
|
|
186
188
|
$("tasks-reset") &&
|
|
187
189
|
($("tasks-reset").onclick = () => {
|
|
188
190
|
filter = "all";
|
package/web/board/workspace.ts
CHANGED
|
@@ -16,7 +16,8 @@ const STAGE = ["idea", "planning", "building", "reviewing", "done"];
|
|
|
16
16
|
// A card's state icon (.si) and the word under its title.
|
|
17
17
|
export function stateOf(c) {
|
|
18
18
|
const task = taskForCard(c);
|
|
19
|
-
|
|
19
|
+
// Only a task that is really working spins; a saved goal is idle, a finished run keeps its own state.
|
|
20
|
+
if (task && !(c.kind === "run" && (c.status === "done" || c.status === "abandoned") && task.attention.category !== "needs-you")) return task.attention.category === "needs-you" ? "wait" : task.attention.category === "completed" ? "done" : ["interrupted", "failed"].includes(task.status ?? "") ? "stalled" : task.status === "draft" ? "idle" : "build";
|
|
20
21
|
// A task whose agent is working is a run being born: show it as planning.
|
|
21
22
|
if (c.kind === "idea") return !c.pty?.alive ? "idle" : c.pty.asking ? "wait" : c.pty.busy ? "plan" : "idle";
|
|
22
23
|
if (c.status === "waiting" || (c.pty?.alive && c.pty.asking)) return "wait";
|
|
@@ -210,7 +211,7 @@ async function readTaskAttention() {
|
|
|
210
211
|
try { const r = await fetch("/tasks?all=1"); if (r.ok) { const body = await r.json(); setTaskAttention(body.tasks ?? []); } } catch { /* retain the latest persisted projection */ }
|
|
211
212
|
finally { tasksReading = false; }
|
|
212
213
|
}
|
|
213
|
-
const taskLinks = (dir: string, w: any, cards: any[]) => (attentionTasks ?? []).filter((t) => t.dir === dir && !t.legacy && (cards.some((c) => taskForCard(c)?.id === t.id) || (w.main && !(t.runs ?? t.runIds ?? []).length))).map((t) => html`<a class="rtask" href="/?view=task&task=${encodeURIComponent(t.id)}&dir=${encodeURIComponent(t.dir)}" data-task-id="${t.id}" data-task-dir="${t.dir}" title="${t.attention.reason} · ${t.attention.action}"><span class="si ${t.attention.category === "needs-you" ? "wait" : t.attention.category === "completed" ? "done" : "build"}"></span><span><b>${t.title}</b><small>${t.attention.reason}</small></span></a>`);
|
|
214
|
+
const taskLinks = (dir: string, w: any, cards: any[]) => (attentionTasks ?? []).filter((t) => t.dir === dir && !t.legacy && t.attention.category !== "completed" && (cards.some((c) => taskForCard(c)?.id === t.id) || (w.main && !(t.runs ?? t.runIds ?? []).length))).sort((a: any, b: any) => (a.created ?? 0) - (b.created ?? 0)).map((t) => html`<a class="rtask" href="/?view=task&task=${encodeURIComponent(t.id)}&dir=${encodeURIComponent(t.dir)}" data-task-id="${t.id}" data-task-dir="${t.dir}" title="${t.attention.reason} · ${t.attention.action}"><span class="si ${t.attention.category === "needs-you" ? "wait" : t.attention.category === "completed" ? "done" : ["interrupted", "failed"].includes(t.status ?? "") ? "stalled" : t.status === "draft" ? "idle" : "build"}"></span><span><b>${t.title}</b><small>${t.attention.reason}</small></span></a>`);
|
|
214
215
|
|
|
215
216
|
export const wsLabel = (w) => w.branch || (w.main ? "workspace" : w.path.split(/[\\/]/).pop());
|
|
216
217
|
function drawList() {
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
// Pinch, wheel, drag and double-click zoom for a task result image. One box, one image:
|
|
2
|
+
// the image fills the box (object-fit: contain) and a transform moves it.
|
|
3
|
+
const MIN = 1, MAX = 8;
|
|
4
|
+
|
|
5
|
+
export function wireZoom(root: ParentNode) {
|
|
6
|
+
root.querySelectorAll<HTMLElement>(".tp-zoom:not([data-zoom])").forEach((box) => {
|
|
7
|
+
const img = box.querySelector<HTMLElement>("img");
|
|
8
|
+
if (!img) return;
|
|
9
|
+
box.dataset.zoom = "1";
|
|
10
|
+
let s = 1, x = 0, y = 0;
|
|
11
|
+
const pts = new Map<number, { x: number; y: number }>();
|
|
12
|
+
let pinch = 0, moved = false;
|
|
13
|
+
const label = box.querySelector<HTMLElement>("[data-zoom-reset]");
|
|
14
|
+
const apply = () => {
|
|
15
|
+
const w = box.clientWidth, h = box.clientHeight;
|
|
16
|
+
x = Math.min(0, Math.max(w - w * s, x));
|
|
17
|
+
y = Math.min(0, Math.max(h - h * s, y));
|
|
18
|
+
img.style.transform = `translate(${x}px,${y}px) scale(${s})`;
|
|
19
|
+
box.classList.toggle("zoomed", s > 1.001);
|
|
20
|
+
if (label) label.textContent = Math.round(s * 100) + "%";
|
|
21
|
+
};
|
|
22
|
+
// Scale about a point in box coordinates, so what is under the fingers stays there.
|
|
23
|
+
const zoomAt = (px: number, py: number, next: number) => {
|
|
24
|
+
next = Math.min(MAX, Math.max(MIN, next));
|
|
25
|
+
x = px - ((px - x) * next) / s;
|
|
26
|
+
y = py - ((py - y) * next) / s;
|
|
27
|
+
s = next;
|
|
28
|
+
apply();
|
|
29
|
+
};
|
|
30
|
+
const local = (e: { clientX: number; clientY: number }) => {
|
|
31
|
+
const r = box.getBoundingClientRect();
|
|
32
|
+
return { x: e.clientX - r.left, y: e.clientY - r.top };
|
|
33
|
+
};
|
|
34
|
+
const centre = () => {
|
|
35
|
+
const [a, b] = [...pts.values()];
|
|
36
|
+
return { x: (a.x + b.x) / 2, y: (a.y + b.y) / 2, d: Math.hypot(a.x - b.x, a.y - b.y) };
|
|
37
|
+
};
|
|
38
|
+
box.addEventListener("wheel", (e) => {
|
|
39
|
+
e.preventDefault();
|
|
40
|
+
const p = local(e);
|
|
41
|
+
// A trackpad pinch arrives as a wheel with ctrlKey and small deltas.
|
|
42
|
+
zoomAt(p.x, p.y, s * Math.exp(-e.deltaY * (e.ctrlKey ? 0.01 : 0.0015)));
|
|
43
|
+
}, { passive: false });
|
|
44
|
+
box.addEventListener("pointerdown", (e) => {
|
|
45
|
+
if ((e.target as HTMLElement).closest("button")) return;
|
|
46
|
+
box.setPointerCapture(e.pointerId);
|
|
47
|
+
pts.set(e.pointerId, local(e));
|
|
48
|
+
moved = false;
|
|
49
|
+
if (pts.size === 2) pinch = centre().d;
|
|
50
|
+
});
|
|
51
|
+
box.addEventListener("pointermove", (e) => {
|
|
52
|
+
const prev = pts.get(e.pointerId);
|
|
53
|
+
if (!prev) return;
|
|
54
|
+
const now = local(e);
|
|
55
|
+
if (pts.size === 2) {
|
|
56
|
+
const before = centre();
|
|
57
|
+
pts.set(e.pointerId, now);
|
|
58
|
+
const after = centre();
|
|
59
|
+
x += after.x - before.x;
|
|
60
|
+
y += after.y - before.y;
|
|
61
|
+
if (pinch > 0) zoomAt(after.x, after.y, s * (after.d / pinch));
|
|
62
|
+
pinch = after.d;
|
|
63
|
+
moved = true;
|
|
64
|
+
} else if (s > 1) {
|
|
65
|
+
x += now.x - prev.x;
|
|
66
|
+
y += now.y - prev.y;
|
|
67
|
+
pts.set(e.pointerId, now);
|
|
68
|
+
moved = true;
|
|
69
|
+
apply();
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
const up = (e: PointerEvent) => {
|
|
73
|
+
pts.delete(e.pointerId);
|
|
74
|
+
pinch = 0;
|
|
75
|
+
};
|
|
76
|
+
box.addEventListener("pointerup", up);
|
|
77
|
+
box.addEventListener("pointercancel", up);
|
|
78
|
+
box.addEventListener("dblclick", (e) => {
|
|
79
|
+
if ((e.target as HTMLElement).closest("button") || moved) return;
|
|
80
|
+
const p = local(e);
|
|
81
|
+
if (s > 1) zoomAt(p.x, p.y, 1);
|
|
82
|
+
else zoomAt(p.x, p.y, 2.5);
|
|
83
|
+
});
|
|
84
|
+
box.querySelector("[data-zoom-in]")?.addEventListener("click", () => zoomAt(box.clientWidth / 2, box.clientHeight / 2, s * 1.5));
|
|
85
|
+
box.querySelector("[data-zoom-out]")?.addEventListener("click", () => zoomAt(box.clientWidth / 2, box.clientHeight / 2, s / 1.5));
|
|
86
|
+
label?.addEventListener("click", () => zoomAt(box.clientWidth / 2, box.clientHeight / 2, 1));
|
|
87
|
+
new ResizeObserver(apply).observe(box);
|
|
88
|
+
apply();
|
|
89
|
+
});
|
|
90
|
+
}
|
package/web/board.html
CHANGED
|
@@ -540,7 +540,7 @@ aside.wide{width:100%;border-left:0}@media(min-width:901px){aside.wide{width:62%
|
|
|
540
540
|
|
|
541
541
|
/* the Tasks page: source chips and project, then Open/Running/Done, search and the table */
|
|
542
542
|
#tasksv{display:none}
|
|
543
|
-
body.taskv #tasksv{flex:1;min-height:0;display:flex;flex-direction:column;gap:0;padding:
|
|
543
|
+
body.taskv #tasksv{flex:1;min-height:0;display:flex;flex-direction:column;gap:0;padding:28px 28px 24px}body #tasksv .hdr.ihdr{display:flex}#hx .iseg{display:flex;gap:4px}#hx .pill{display:flex;gap:6px;align-items:center;padding:4px 10px;font-size:12px;border-radius:var(--r-s);border:1px solid var(--line);color:var(--dim);background:none;cursor:pointer;white-space:nowrap}#hx .pill:hover{color:var(--ink)}#hx .pill.on{background:color-mix(in srgb,var(--accent) 14%,transparent);color:var(--accent);border-color:color-mix(in srgb,var(--accent) 55%,transparent)}#hx .ipop>summary{list-style:none;display:flex;align-items:center;gap:8px;cursor:pointer}#hx .ipop>summary::-webkit-details-marker{display:none}#hx .ipop>summary::after{content:"";width:0;height:0;border:4px solid transparent;border-top:5px solid currentColor;margin:4px 0 0 2px}#hx .ipop>summary svg,#hx .ipop>summary img{width:15px;height:15px}#hx .ipop .menu-pop{position:absolute;padding:6px;display:flex;flex-direction:column;gap:1px;max-height:360px;overflow:auto;width:280px}#hx .ipop button{padding:6px 8px;border-radius:var(--r);background:none;border:0;color:var(--dim);text-align:left;cursor:pointer;font:inherit}#hx .ipop button:hover{background:var(--hover);color:var(--ink)}#hx .ipop button svg:not(.ck),#hx .ipop button img{width:15px;height:15px}#hx .ipop .ck{width:14px;height:14px;color:var(--accent);visibility:hidden;margin-left:auto}#hx .ipop [aria-checked=true]{color:var(--ink);font-weight:500}#hx .ipop [aria-checked=true] .ck{visibility:visible}#hx .ipop .pop-ft{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--line);margin-top:4px;padding:6px 4px 0;font-size:12px;color:var(--dim)}#hx .ipop .pop-ft button{color:var(--accent);padding:2px 6px}#tasksv .ihdr .pill{padding:4px 10px;font-size:12px}#tasksv .ibox{padding:0}#tasksv .itable{border-left:0;margin-left:0}#tasksv .itable th:first-child,#tasksv .itable td:first-child{padding-left:28px}#tasksv .itable th:last-child,#tasksv .itable td:last-child{padding-right:16px}
|
|
544
544
|
#tasksv .ibar{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
|
|
545
545
|
#tasksv .pill{display:flex;gap:6px;align-items:center;padding:5px 11px;border-radius:var(--r-s);border:1px solid var(--line);color:var(--dim);white-space:nowrap}#tasksv .pill:hover{color:var(--ink)}#tasksv .pill.on{background:color-mix(in srgb,var(--accent) 14%,transparent);color:var(--accent);border-color:color-mix(in srgb,var(--accent) 55%,transparent)}
|
|
546
546
|
#tasksv .pill svg,#tasksv .pill img{width:15px;height:15px}#tasksv .pill .fav{display:contents}
|
|
@@ -574,8 +574,85 @@ body.taskv #tasksv{flex:1;min-height:0;display:flex;flex-direction:column;gap:0;
|
|
|
574
574
|
#tp-composer{border-top:1px solid var(--line);padding-top:12px}#tp-composer>label{display:block;margin-bottom:6px}#tp-composer textarea,#task-goal{display:block;width:100%;box-sizing:border-box;resize:vertical;padding:10px 12px;font:inherit;line-height:1.5;border:1px solid var(--line);border-radius:var(--r-s);background:var(--bg);color:var(--ink);min-height:100px}#tp-composer-help,#tp-receipt{font-size:12px}.tp-compose-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.tp-compose-row label{font-size:12px;color:var(--dim)}.tp-compose-row select{width:auto}.tp-compose-row .pri{margin-left:auto}.tp-loading{padding:28px;color:var(--dim)}#tp-accepted{color:var(--ok);margin-top:10px}
|
|
575
575
|
.rail .rtask{display:flex;gap:8px;align-items:center;padding:6px 8px 6px 18px;border-radius:var(--r-s);color:var(--ink);text-decoration:none}.rail .rtask:hover{background:var(--hover)}.rail .rtask>span:last-child{min-width:0}.rail .rtask b,.rail .rtask small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rail .rtask b{font-size:12px;font-weight:500}.rail .rtask small{font-size:11px;color:var(--dim)}[data-rail=min] .rail .rtask{display:none}
|
|
576
576
|
.tp-task-list{display:flex;flex-direction:column}.tp-task-row{display:flex;align-items:center;gap:16px;width:100%;padding:14px 16px;border:0;border-bottom:1px solid var(--line);background:none;text-align:left;color:var(--ink);font:inherit;cursor:pointer}.tp-task-row:last-child{border-bottom:0}.tp-task-row:hover,.tp-task-row.kb{background:var(--hover)}.tp-task-main{flex:1;min-width:0}.tp-task-main strong{display:block;font-weight:500;overflow-wrap:anywhere}.tp-task-row small{display:block;font-size:12px;color:var(--dim);margin-top:3px;overflow-wrap:anywhere}.tp-task-attention{flex:0 1 35%;min-width:0}.tp-task-age{color:var(--dim);font-size:12px;white-space:nowrap}.tp-task-row>svg{width:14px;height:14px;flex:none;color:var(--dim)}.tp-filter-count{opacity:.7;margin-left:6px}.tp-task-list .tp-task-row:focus-visible,#taskpagev :focus-visible{outline:2px solid var(--accent);outline-offset:3px}#task-new-error{color:var(--warn)}
|
|
577
|
-
|
|
578
|
-
|
|
577
|
+
dialog.kz .nt-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 10px}dialog.kz .nt-head h2{margin:0;font-size:16px;font-weight:600}dialog.kz .nt-head .combo{margin:0;flex:none}dialog.kz .nt-head .combo>.sel{height:30px;max-width:220px}
|
|
578
|
+
dialog.kz form.inl:has(#newidea){gap:8px}dialog.kz #newnotes{min-height:84px;height:84px;margin:0}dialog.kz form.inl:has(#newidea) label[for=newnotes]{margin:2px 0 -2px;font-size:12px;color:var(--dim)}
|
|
579
|
+
/* Tasks and the task page share the Icebox look: plain bar, pill chips, soft rows, no boxed panels. */
|
|
580
|
+
#tasksv .tk-bar{padding:0;margin:0 0 10px;border:0;background:none}
|
|
581
|
+
#tasksv .tk-q #bq{height:30px;border-radius:var(--r-s);padding-left:32px}#tasksv .tk-q svg{top:8px}
|
|
582
|
+
#tasksv .tk-list{border:1px solid color-mix(in srgb,var(--line) 50%,transparent);border-radius:var(--r)}
|
|
583
|
+
.tp-task-row{display:grid;grid-template-columns:12px minmax(0,1fr) minmax(0,34%) auto;align-items:center;gap:12px;min-height:48px;box-sizing:border-box;padding:8px 12px;border-bottom:1px solid color-mix(in srgb,var(--line) 30%,transparent)}
|
|
584
|
+
.tp-task-main strong{font-size:13px;font-weight:400}.tp-task-row small{font-size:11px;margin-top:2px}
|
|
585
|
+
.tp-task-attention{flex:none;font-size:12px}.tp-task-attention>span{color:var(--dim)}.tp-task-attention.needs-you>span{color:var(--warn)}.tp-task-attention small{display:none}
|
|
586
|
+
.tp-task-age{min-width:64px;text-align:right;font-size:11px;font-variant-numeric:tabular-nums}
|
|
587
|
+
.tp-task-row:focus-visible,.tp-task-row.kb{box-shadow:inset 0 0 0 1px var(--line)}
|
|
588
|
+
body.taskpagev #taskpagev{padding:28px;gap:16px;box-sizing:border-box}
|
|
589
|
+
.tp-head{align-items:center;flex-wrap:nowrap;gap:10px}.tp-head h1{flex:0 1 auto;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tp-head #tp-project-label{flex:none;font-size:12px;white-space:nowrap;margin:0}.tp-head>.btn{flex:none}.tp-head #tp-project-label{margin-right:auto!important}.tp-head #tp-title{margin:0}#tp-back svg{transform:rotate(180deg)}.tp-head>a#tp-back{flex:none}
|
|
590
|
+
.tp-head h1{font-size:18px;font-weight:600}.tp-head p{font-size:12px;margin:2px 0 0}
|
|
591
|
+
.tp-head .btn{border-radius:var(--r-s)}
|
|
592
|
+
.tp-status{padding:0;border:0;background:none;font-size:13px;gap:2px 10px;align-items:baseline}.tp-status #tp-saved{margin-left:auto;font-size:11px}
|
|
593
|
+
.tp-layout{gap:28px}
|
|
594
|
+
.tp-results,.tp-conversation{padding:0;border:0;background:none;border-radius:0}
|
|
595
|
+
|
|
596
|
+
.tp-layout section h2{position:static;display:block;height:auto;padding:0;background:none;box-shadow:none;font-size:11px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--dim);margin:0 0 8px}
|
|
597
|
+
.tp-layout section .tp-result-heading h2{font-size:16px;letter-spacing:0;text-transform:none;color:var(--ink);font-weight:600;margin:0 0 4px}
|
|
598
|
+
.tp-result-heading{margin:0 0 14px}.tp-result-heading p{margin:0 0 4px;color:var(--dim)}.tp-result-heading small{font-size:11px}
|
|
599
|
+
#tp-history{margin:0 0 14px}#tp-history:empty{display:none}#tp-history .sel{height:28px;font-size:12px;max-width:100%}
|
|
600
|
+
.tp-output-tabs+.tp-artifact .tp-artifact-head>span{display:none}.tp-output-tabs+.tp-artifact .tp-artifact-head{justify-content:flex-end;padding:0 0 6px}
|
|
601
|
+
.tp-checks{margin:0 0 10px}.tp-technical>summary{font-size:11px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--dim)}.tp-checks summary{cursor:pointer;font-size:11px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--dim)}.tp-checks ul{margin:6px 0 0}.tp-checks p,.tp-checks li{font-size:12px;color:var(--dim);margin:3px 0}
|
|
602
|
+
.tp-info-pop{width:340px;max-width:80vw;font-size:12px}.tp-info-pop .tp-technical{margin:0;padding:0;border:0}.tp-info-pop p{margin:0 0 8px}.tp-info-pop .tp-checks{border:0;padding:0;margin:0 0 10px}.tp-info-pop summary{margin-bottom:6px}
|
|
603
|
+
.tp-message{padding:10px 0;border-top:1px solid color-mix(in srgb,var(--line) 30%,transparent)}.tp-message:first-child{border-top:0}
|
|
604
|
+
.tp-message.from-user{padding:10px 0;border:0;border-radius:0;background:none;margin:0;border-top:1px solid color-mix(in srgb,var(--line) 30%,transparent)}.tp-message.from-user:first-child{border-top:0}.tp-conversation>h2{margin-bottom:0}#tp-thread{margin-top:-6px}
|
|
605
|
+
.tp-artifact{border-color:color-mix(in srgb,var(--line) 50%,transparent);border-radius:var(--r)}.tp-artifact-head{border-bottom-color:color-mix(in srgb,var(--line) 50%,transparent)}
|
|
606
|
+
.tp-checks,#tp-composer{border-top-color:color-mix(in srgb,var(--line) 50%,transparent)}
|
|
607
|
+
#tp-composer textarea,#task-goal{border-radius:var(--r);background:var(--bg-2);min-height:84px}
|
|
608
|
+
.tp-output-tabs{gap:2px 16px;margin:0 0 8px}.tp-output-tabs .tk-chip{padding:2px 0;min-height:0;border:0;border-bottom:1.5px solid transparent;border-radius:0;background:none;color:var(--dim);font-size:12px;font-weight:400;text-align:left}.tp-output-tabs .tk-chip:hover{color:var(--ink)}.tp-output-tabs .tk-chip.on{color:var(--ink);border-bottom-color:var(--ink);background:none}
|
|
609
|
+
.tp-artifact{border:0;border-radius:var(--r);margin:8px 0}.tp-artifact-head{padding:6px 0;border-bottom:0}.tp-artifact>*:not(.tp-artifact-head){border-radius:var(--r);border:1px solid color-mix(in srgb,var(--line) 40%,transparent)}.tp-artifact>p{border:0;padding:0}
|
|
610
|
+
.tp-results>.btn,#tp-accept,#tp-submit{border-radius:var(--r-s)}
|
|
611
|
+
/* Conversation as bubbles. */
|
|
612
|
+
.tp-messages{display:flex;flex-direction:column;gap:12px;padding:4px 0 8px}
|
|
613
|
+
.tp-messages .tp-message{display:flex;flex-direction:column;gap:3px;max-width:88%;padding:0;margin:0;border:0;background:none}
|
|
614
|
+
.tp-messages .tp-message>div{display:flex;gap:6px;align-items:baseline;font-size:11px;color:var(--dim);padding:0 4px}.tp-messages .tp-message strong{font-weight:500}
|
|
615
|
+
.tp-messages .tp-message p{margin:0;padding:8px 12px;border-radius:14px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.45}
|
|
616
|
+
.tp-messages .from-user{align-self:flex-end;align-items:flex-end}.tp-messages .from-user>div{flex-direction:row-reverse}
|
|
617
|
+
.tp-messages .from-user p{background:var(--ink);color:var(--on-accent);border-bottom-right-radius:4px}
|
|
618
|
+
.tp-messages .from-agent{align-self:flex-start;align-items:flex-start}
|
|
619
|
+
.tp-messages .from-agent p{background:var(--hover);border-bottom-left-radius:4px}
|
|
620
|
+
.tp-long summary{cursor:pointer;list-style:none}.tp-long summary::-webkit-details-marker{display:none}.tp-long summary span{opacity:.65;font-size:12px;white-space:nowrap}.tp-long[open] summary{display:none}
|
|
621
|
+
.tp-queue{display:flex;justify-content:flex-end;gap:6px;border:0;padding:0 4px;margin:-6px 0 6px}.tp-queue .tp-receipt{font-size:11px;color:var(--warn)}
|
|
622
|
+
/* Task page, result first: file strip, large stage, conversation drawer, one message bar. */
|
|
623
|
+
body.taskpagev #taskpagev{overflow:hidden;position:relative;gap:12px}
|
|
624
|
+
.tp-layout{display:flex;align-items:stretch;flex:1;min-height:0;gap:0}.tp-results{flex:1;min-height:0;display:flex;flex-direction:column;min-width:0}
|
|
625
|
+
#tp-result{flex:1;min-height:0;display:flex;flex-direction:column}#tp-result>.tp-split{flex:1;min-height:0}
|
|
626
|
+
.tp-split{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr);gap:16px;min-height:0}.tp-split.has-rail{grid-template-columns:200px minmax(0,1fr)}
|
|
627
|
+
.tp-rail{display:flex;flex-direction:column;gap:2px;overflow:auto;min-height:0;padding-right:4px}
|
|
628
|
+
.tp-file{display:grid;grid-template-columns:44px minmax(0,1fr);gap:10px;align-items:center;text-align:left;padding:6px;border:0;border-radius:var(--r-s);background:none;color:var(--dim);font-size:12px;line-height:1.35;cursor:pointer}
|
|
629
|
+
.tp-file:hover{background:var(--hover);color:var(--ink)}.tp-file[aria-pressed=true]{background:var(--hover);color:var(--ink)}
|
|
630
|
+
.tp-file img,.tp-file i{width:44px;height:44px;border-radius:var(--r-xs);border:1px solid var(--line);object-fit:cover;object-position:top;display:grid;place-items:center;font-style:normal;font-size:10px;text-transform:uppercase;background:var(--bg-2)}
|
|
631
|
+
.tp-file span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
|
|
632
|
+
.tp-stage{display:flex;flex-direction:column;gap:8px;min-width:0;min-height:0;overflow:auto}
|
|
633
|
+
.tp-stage>.tp-artifact{flex:1;min-height:0;display:flex;flex-direction:column;margin:0;border:0;overflow:visible}
|
|
634
|
+
.tp-stage .tp-artifact-head{padding:0 0 8px;border:0}.tp-split.has-rail .tp-artifact-head>span{font-size:12px;color:var(--dim)}
|
|
635
|
+
.tp-stage .tp-artifact>:not(.tp-artifact-head){flex:1;min-height:0}
|
|
636
|
+
.tp-stage .tp-web,.tp-stage .tp-document,.tp-stage .tp-text{height:auto;max-height:none;min-height:360px}
|
|
637
|
+
.tp-zoom{position:relative;overflow:hidden;min-height:320px;border:0!important;border-radius:var(--r);background:color-mix(in srgb,var(--dim) 7%,var(--bg));touch-action:none;cursor:zoom-in;-webkit-user-select:none;user-select:none}
|
|
638
|
+
.tp-zoom.zoomed{cursor:grab}.tp-zoom.zoomed:active{cursor:grabbing}
|
|
639
|
+
.tp-zoom img.tp-image{position:absolute;inset:0;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:16px;box-sizing:border-box;object-fit:contain;transform-origin:0 0;will-change:transform}
|
|
640
|
+
.tp-zoom-ctl{position:absolute;right:10px;bottom:10px;display:flex;gap:2px;padding:2px;border-radius:var(--r-s);background:var(--bg-2);border:1px solid var(--line);box-shadow:var(--shadow-1);z-index:2}
|
|
641
|
+
.tp-zoom-ctl .ib{width:28px;height:28px;font-size:14px}.tp-zoom-ctl [data-zoom-reset]{width:auto;min-width:46px;padding:0 6px;font-size:11px;font-variant-numeric:tabular-nums}
|
|
642
|
+
.tp-bar{flex:none}.tp-compose{display:flex;align-items:flex-end;gap:8px;padding:8px 8px 8px 14px;background:var(--bg-2);border:1px solid var(--line);border-radius:var(--r-l);box-shadow:var(--shadow-1)}
|
|
643
|
+
.tp-compose:focus-within{border-color:var(--dim)}
|
|
644
|
+
.tp-compose textarea{flex:1;min-width:0;min-height:30px;max-height:140px;field-sizing:content;resize:none;border:0;outline:0;background:none;padding:4px 0;font:inherit;line-height:1.5;color:var(--ink)}
|
|
645
|
+
.tp-compose select{width:auto;height:30px;font-size:12px}
|
|
646
|
+
#tp-composer .tp-compose textarea,#tp-composer .tp-compose textarea:focus,#tp-composer .tp-compose textarea:focus-visible{border:0;outline:0;box-shadow:none;background:none;border-radius:0}
|
|
647
|
+
#tp-receipt{margin:6px 2px 0;font-size:12px;color:var(--dim)}#tp-receipt:empty{display:none}
|
|
648
|
+
#tp-composer textarea{min-height:30px;border:0;padding:4px 0;background:none;resize:none}#tp-composer{border-top:0;padding-top:0}
|
|
649
|
+
.tp-conversation{flex:none;width:0;min-height:0;margin:0;padding:0;overflow:hidden;display:flex;flex-direction:column;gap:6px;border:0;background:none;box-shadow:none;position:static;height:auto;transform:none;opacity:0;visibility:hidden;transition:width .28s cubic-bezier(.2,.7,.2,1),margin .28s,opacity .2s}
|
|
650
|
+
.tp-conversation.on{width:380px;margin-left:24px;opacity:1;visibility:visible;border-left:1px solid color-mix(in srgb,var(--line) 50%,transparent);padding-left:20px}
|
|
651
|
+
.tp-conversation>*{min-width:340px}
|
|
652
|
+
.tp-conversation>header{display:flex;align-items:center}.tp-conversation>header h2{margin:0 auto 0 0;font-size:11px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--dim)}.tp-conversation #tp-thread{flex:1;min-height:0;overflow:auto}
|
|
653
|
+
#tp-chat{position:relative}.tp-dot{position:absolute;top:5px;right:5px;width:8px;height:8px;border-radius:50%;background:var(--warn);box-shadow:0 0 0 2px var(--bg)}
|
|
654
|
+
@media(max-width:700px){.tp-split.has-rail{grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr)}.tp-rail{flex-direction:row;overflow-x:auto;padding:0 0 4px}.tp-file{grid-template-columns:44px;min-width:56px}.tp-file span{display:none}.tp-layout:has(.tp-conversation.on) .tp-results{display:none}.tp-conversation.on{width:100%;margin-left:0;padding-left:0;border-left:0}.tp-conversation>*{min-width:0}}
|
|
655
|
+
@media(max-width:640px){body.taskpagev #taskpagev{padding:12px;gap:12px}.tp-conversation{padding-left:0;border-left:0}.tp-task-row{grid-template-columns:12px minmax(0,1fr) auto}.tp-task-attention{display:none}.tp-head{flex-wrap:wrap}.tp-head>a{flex-basis:auto}.tp-head>div{flex-basis:calc(100% - 110px)}.tp-layout{gap:12px}.tp-results,.tp-conversation{padding:12px}.tp-web,.tp-document{height:360px}.tp-task-row{gap:10px;padding:12px;flex-wrap:wrap}.tp-task-main{flex-basis:calc(100% - 30px)}.tp-task-attention{flex:1 1 65%;order:2}.tp-task-age{order:3}.tp-task-row>svg{order:1}.tk-row{gap:8px}.tk-chip{min-height:34px}.tp-inline{flex-wrap:wrap}.tp-inline input{flex-basis:100%}.tp-head h1{font-size:18px}}
|
|
579
656
|
|
|
580
657
|
/* the mockup has no right-hand project pane: the Files/Notes/Terminal pane (#context, context.ts) is not shown on desktop widths; the run workspace has its own strip */
|
|
581
658
|
@media(min-width:641px){#context,#ctx-open{display:none!important}}
|
|
@@ -988,13 +1065,13 @@ aside .foot .more .menu-pop{left:0;right:auto;top:auto;bottom:calc(100% + 4px)}.
|
|
|
988
1065
|
.ice-cap-t{width:100%;box-sizing:border-box;min-height:48px;max-height:240px;field-sizing:content;resize:none;border:0;outline:0;padding:2px 0;background:none;color:var(--ink);font:inherit;font-size:14px;line-height:1.55}
|
|
989
1066
|
.ice-cap-t::placeholder{color:var(--dim)}.ice-cap-t:read-only{opacity:.6}
|
|
990
1067
|
.ice-cap-row{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.ice-cap-row .end{flex:1}.ice-cap-row .btn{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
|
|
991
|
-
.ice-cap-row>.ib{border:1px solid var(--line)}.ice-cap-row .ice-combo>.sel{height:28px;border-radius:var(--r-
|
|
1068
|
+
.ice-cap-row>.ib{border:1px solid var(--line)}.ice-cap-row .ice-combo>.sel{height:28px;border-radius:var(--r-s);padding:0 28px 0 10px}.ice-cap-row .ice-combo>.sel svg{width:12px;height:12px}
|
|
992
1069
|
/* One size for the capture row: attach, mic and the two pickers are all 30 px pills. */
|
|
993
|
-
.ice-cap-row>.ib,.ice-cap-row>.ib.sm{width:30px;height:30px;border:1px solid var(--line);border-radius:var(--r-
|
|
994
|
-
.ice-att{display:flex;flex-wrap:wrap;gap:6px}.ice-file{display:inline-flex;align-items:center;gap:5px;max-width:260px;padding:0 2px 0 8px;border:1px solid var(--line);border-radius:var(--r-
|
|
1070
|
+
.ice-cap-row>.ib,.ice-cap-row>.ib.sm{width:30px;height:30px;border:1px solid var(--line);border-radius:var(--r-s)}.ice-cap-row>.ib svg{width:15px;height:15px}.ice-cap-row .ice-combo>.sel{height:30px}#ice-save{height:30px;min-height:30px;border-radius:var(--r-s);padding:0 14px}
|
|
1071
|
+
.ice-att{display:flex;flex-wrap:wrap;gap:6px}.ice-file{display:inline-flex;align-items:center;gap:5px;max-width:260px;padding:0 2px 0 8px;border:1px solid var(--line);border-radius:var(--r-s);font-size:12px;color:var(--dim)}.ice-file>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ice-file>svg{width:12px;height:12px;flex:none}
|
|
995
1072
|
.ice-boards{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin:0 0 10px}
|
|
996
1073
|
.ice-chips{display:flex;flex-wrap:wrap;gap:6px;min-width:0}
|
|
997
|
-
.ice-chip{display:inline-flex;align-items:center;gap:5px;height:26px;padding:0 10px;border:1px solid var(--line);border-radius:var(--r-
|
|
1074
|
+
.ice-chip{display:inline-flex;align-items:center;gap:5px;height:26px;padding:0 10px;border:1px solid var(--line);border-radius:var(--r-s);background:var(--bg-2);color:var(--ink);font:inherit;font-size:12px;cursor:pointer;white-space:nowrap}
|
|
998
1075
|
.ice-chip:hover{background:var(--hover)}.ice-chip i{font-style:normal;color:var(--dim);font-size:11px;font-variant-numeric:tabular-nums}.ice-chip svg{width:13px;height:13px;flex:none}
|
|
999
1076
|
.ice-chip.on{background:var(--accent);border-color:var(--accent);color:var(--on-accent)}.ice-chip.on i{color:inherit;opacity:.75}
|
|
1000
1077
|
.ice-chip[class*=k-]{color:var(--k)}.ice-chip[class*=k-].on{background:var(--k);border-color:var(--k);color:var(--bg-2)}
|