@volter-ai-dev/supercode-ui 0.1.14 → 0.1.15
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/components.mjs +3 -2
- package/core.mjs +1 -0
- package/embed.mjs +3 -2
- package/index.d.ts +2 -0
- package/messenger.mjs +3 -2
- package/package.json +1 -1
- package/sessions.mjs +2 -2
package/components.mjs
CHANGED
|
@@ -342,6 +342,7 @@ function readSessions(value) {
|
|
|
342
342
|
name: string(row.name),
|
|
343
343
|
cwd: string(row.cwd),
|
|
344
344
|
title: string(row.title),
|
|
345
|
+
preview: string(row.preview),
|
|
345
346
|
age: string(row.age),
|
|
346
347
|
updatedAt: nullableNumber(row.updatedAt),
|
|
347
348
|
messages: nullableNumber(row.messages),
|
|
@@ -1409,9 +1410,9 @@ import { jsx as jsx6, jsxs as jsxs5 } from "preact/jsx-runtime";
|
|
|
1409
1410
|
var sessionListMemory = /* @__PURE__ */ new Map();
|
|
1410
1411
|
function SessionRow({ row, state, onOpen }) {
|
|
1411
1412
|
const activity = sessionActivity(state, row);
|
|
1412
|
-
const
|
|
1413
|
+
const attentionPreview = state.attention.find((item) => item.key === row.key)?.preview;
|
|
1413
1414
|
const title = sessionDisplayName(row);
|
|
1414
|
-
const detail = preview || (row.name && row.name !== title ? row.name : row.cwd);
|
|
1415
|
+
const detail = attentionPreview || row.preview || (row.name && row.name !== title ? row.name : row.cwd);
|
|
1415
1416
|
return /* @__PURE__ */ jsxs5("button", { class: "scui-session", "data-active": row.active, "data-activity": activity, "data-session-key": row.key, type: "button", "aria-label": `${title} \xB7 ${harnessDisplayName(row.harness)}${row.age ? ` \xB7 ${row.age}` : ""}`, "aria-current": row.active ? "true" : void 0, onClick: () => onOpen(row), children: [
|
|
1416
1417
|
/* @__PURE__ */ jsx6(HarnessLogo, { id: row.harness, activity, size: 34 }),
|
|
1417
1418
|
/* @__PURE__ */ jsxs5("span", { class: "scui-session-copy", children: [
|
package/core.mjs
CHANGED
|
@@ -379,6 +379,7 @@ function readSessions(value) {
|
|
|
379
379
|
name: string(row.name),
|
|
380
380
|
cwd: string(row.cwd),
|
|
381
381
|
title: string(row.title),
|
|
382
|
+
preview: string(row.preview),
|
|
382
383
|
age: string(row.age),
|
|
383
384
|
updatedAt: nullableNumber(row.updatedAt),
|
|
384
385
|
messages: nullableNumber(row.messages),
|
package/embed.mjs
CHANGED
|
@@ -345,6 +345,7 @@ function readSessions(value) {
|
|
|
345
345
|
name: string(row.name),
|
|
346
346
|
cwd: string(row.cwd),
|
|
347
347
|
title: string(row.title),
|
|
348
|
+
preview: string(row.preview),
|
|
348
349
|
age: string(row.age),
|
|
349
350
|
updatedAt: nullableNumber(row.updatedAt),
|
|
350
351
|
messages: nullableNumber(row.messages),
|
|
@@ -1409,9 +1410,9 @@ import { jsx as jsx6, jsxs as jsxs5 } from "preact/jsx-runtime";
|
|
|
1409
1410
|
var sessionListMemory = /* @__PURE__ */ new Map();
|
|
1410
1411
|
function SessionRow({ row, state, onOpen }) {
|
|
1411
1412
|
const activity = sessionActivity(state, row);
|
|
1412
|
-
const
|
|
1413
|
+
const attentionPreview = state.attention.find((item) => item.key === row.key)?.preview;
|
|
1413
1414
|
const title = sessionDisplayName(row);
|
|
1414
|
-
const detail = preview || (row.name && row.name !== title ? row.name : row.cwd);
|
|
1415
|
+
const detail = attentionPreview || row.preview || (row.name && row.name !== title ? row.name : row.cwd);
|
|
1415
1416
|
return /* @__PURE__ */ jsxs5("button", { class: "scui-session", "data-active": row.active, "data-activity": activity, "data-session-key": row.key, type: "button", "aria-label": `${title} \xB7 ${harnessDisplayName(row.harness)}${row.age ? ` \xB7 ${row.age}` : ""}`, "aria-current": row.active ? "true" : void 0, onClick: () => onOpen(row), children: [
|
|
1416
1417
|
/* @__PURE__ */ jsx6(HarnessLogo, { id: row.harness, activity, size: 34 }),
|
|
1417
1418
|
/* @__PURE__ */ jsxs5("span", { class: "scui-session-copy", children: [
|
package/index.d.ts
CHANGED
|
@@ -21,6 +21,8 @@ export interface SessionRowModel {
|
|
|
21
21
|
name: string;
|
|
22
22
|
cwd: string;
|
|
23
23
|
title: string;
|
|
24
|
+
/** Latest human-visible conversation message, separate from the stable title. */
|
|
25
|
+
preview?: string;
|
|
24
26
|
age: string;
|
|
25
27
|
updatedAt: number | null;
|
|
26
28
|
messages: number | null;
|
package/messenger.mjs
CHANGED
|
@@ -342,6 +342,7 @@ function readSessions(value) {
|
|
|
342
342
|
name: string(row.name),
|
|
343
343
|
cwd: string(row.cwd),
|
|
344
344
|
title: string(row.title),
|
|
345
|
+
preview: string(row.preview),
|
|
345
346
|
age: string(row.age),
|
|
346
347
|
updatedAt: nullableNumber(row.updatedAt),
|
|
347
348
|
messages: nullableNumber(row.messages),
|
|
@@ -1406,9 +1407,9 @@ import { jsx as jsx6, jsxs as jsxs5 } from "preact/jsx-runtime";
|
|
|
1406
1407
|
var sessionListMemory = /* @__PURE__ */ new Map();
|
|
1407
1408
|
function SessionRow({ row, state, onOpen }) {
|
|
1408
1409
|
const activity = sessionActivity(state, row);
|
|
1409
|
-
const
|
|
1410
|
+
const attentionPreview = state.attention.find((item) => item.key === row.key)?.preview;
|
|
1410
1411
|
const title = sessionDisplayName(row);
|
|
1411
|
-
const detail = preview || (row.name && row.name !== title ? row.name : row.cwd);
|
|
1412
|
+
const detail = attentionPreview || row.preview || (row.name && row.name !== title ? row.name : row.cwd);
|
|
1412
1413
|
return /* @__PURE__ */ jsxs5("button", { class: "scui-session", "data-active": row.active, "data-activity": activity, "data-session-key": row.key, type: "button", "aria-label": `${title} \xB7 ${harnessDisplayName(row.harness)}${row.age ? ` \xB7 ${row.age}` : ""}`, "aria-current": row.active ? "true" : void 0, onClick: () => onOpen(row), children: [
|
|
1413
1414
|
/* @__PURE__ */ jsx6(HarnessLogo, { id: row.harness, activity, size: 34 }),
|
|
1414
1415
|
/* @__PURE__ */ jsxs5("span", { class: "scui-session-copy", children: [
|
package/package.json
CHANGED
package/sessions.mjs
CHANGED
|
@@ -269,9 +269,9 @@ import { jsx as jsx5, jsxs as jsxs4 } from "preact/jsx-runtime";
|
|
|
269
269
|
var sessionListMemory = /* @__PURE__ */ new Map();
|
|
270
270
|
function SessionRow({ row, state, onOpen }) {
|
|
271
271
|
const activity = sessionActivity(state, row);
|
|
272
|
-
const
|
|
272
|
+
const attentionPreview = state.attention.find((item) => item.key === row.key)?.preview;
|
|
273
273
|
const title = sessionDisplayName(row);
|
|
274
|
-
const detail = preview || (row.name && row.name !== title ? row.name : row.cwd);
|
|
274
|
+
const detail = attentionPreview || row.preview || (row.name && row.name !== title ? row.name : row.cwd);
|
|
275
275
|
return /* @__PURE__ */ jsxs4("button", { class: "scui-session", "data-active": row.active, "data-activity": activity, "data-session-key": row.key, type: "button", "aria-label": `${title} \xB7 ${harnessDisplayName(row.harness)}${row.age ? ` \xB7 ${row.age}` : ""}`, "aria-current": row.active ? "true" : void 0, onClick: () => onOpen(row), children: [
|
|
276
276
|
/* @__PURE__ */ jsx5(HarnessLogo, { id: row.harness, activity, size: 34 }),
|
|
277
277
|
/* @__PURE__ */ jsxs4("span", { class: "scui-session-copy", children: [
|