@volter-ai-dev/supercode-ui 0.1.27 → 0.1.28
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 +4 -2
- package/embed.mjs +4 -2
- package/messenger.mjs +4 -2
- package/package.json +1 -1
- package/sessions.mjs +4 -2
- package/styles.css +1 -1
package/components.mjs
CHANGED
|
@@ -1995,11 +1995,12 @@ var sessionListMemory = /* @__PURE__ */ new Map();
|
|
|
1995
1995
|
function sessionPathParts(value) {
|
|
1996
1996
|
const complete = String(value ?? "").replaceAll("\\", "/");
|
|
1997
1997
|
const boundary = complete.lastIndexOf("/");
|
|
1998
|
-
if (boundary
|
|
1998
|
+
if (boundary < 0) return { complete, leading: complete, separator: "", trailing: "" };
|
|
1999
1999
|
return {
|
|
2000
2000
|
complete,
|
|
2001
2001
|
leading: complete.slice(0, boundary),
|
|
2002
|
-
|
|
2002
|
+
separator: "/",
|
|
2003
|
+
trailing: complete.slice(boundary + 1)
|
|
2003
2004
|
};
|
|
2004
2005
|
}
|
|
2005
2006
|
function SessionRow({ row, state, onOpen }) {
|
|
@@ -2019,6 +2020,7 @@ function SessionRow({ row, state, onOpen }) {
|
|
|
2019
2020
|
] }),
|
|
2020
2021
|
path.complete ? /* @__PURE__ */ jsxs6("small", { class: "scui-session-path", title: row.cwd, children: [
|
|
2021
2022
|
/* @__PURE__ */ jsx7("span", { class: "scui-session-path-leading", children: path.leading }),
|
|
2023
|
+
path.separator ? /* @__PURE__ */ jsx7("span", { class: "scui-session-path-separator", children: path.separator }) : null,
|
|
2022
2024
|
path.trailing ? /* @__PURE__ */ jsx7("span", { class: "scui-session-path-trailing", children: path.trailing }) : null
|
|
2023
2025
|
] }) : null,
|
|
2024
2026
|
preview || unreadCount ? /* @__PURE__ */ jsxs6("span", { class: "scui-session-preview", children: [
|
package/embed.mjs
CHANGED
|
@@ -1974,11 +1974,12 @@ var sessionListMemory = /* @__PURE__ */ new Map();
|
|
|
1974
1974
|
function sessionPathParts(value) {
|
|
1975
1975
|
const complete = String(value ?? "").replaceAll("\\", "/");
|
|
1976
1976
|
const boundary = complete.lastIndexOf("/");
|
|
1977
|
-
if (boundary
|
|
1977
|
+
if (boundary < 0) return { complete, leading: complete, separator: "", trailing: "" };
|
|
1978
1978
|
return {
|
|
1979
1979
|
complete,
|
|
1980
1980
|
leading: complete.slice(0, boundary),
|
|
1981
|
-
|
|
1981
|
+
separator: "/",
|
|
1982
|
+
trailing: complete.slice(boundary + 1)
|
|
1982
1983
|
};
|
|
1983
1984
|
}
|
|
1984
1985
|
function SessionRow({ row, state, onOpen }) {
|
|
@@ -1998,6 +1999,7 @@ function SessionRow({ row, state, onOpen }) {
|
|
|
1998
1999
|
] }),
|
|
1999
2000
|
path.complete ? /* @__PURE__ */ jsxs6("small", { class: "scui-session-path", title: row.cwd, children: [
|
|
2000
2001
|
/* @__PURE__ */ jsx7("span", { class: "scui-session-path-leading", children: path.leading }),
|
|
2002
|
+
path.separator ? /* @__PURE__ */ jsx7("span", { class: "scui-session-path-separator", children: path.separator }) : null,
|
|
2001
2003
|
path.trailing ? /* @__PURE__ */ jsx7("span", { class: "scui-session-path-trailing", children: path.trailing }) : null
|
|
2002
2004
|
] }) : null,
|
|
2003
2005
|
preview || unreadCount ? /* @__PURE__ */ jsxs6("span", { class: "scui-session-preview", children: [
|
package/messenger.mjs
CHANGED
|
@@ -1971,11 +1971,12 @@ var sessionListMemory = /* @__PURE__ */ new Map();
|
|
|
1971
1971
|
function sessionPathParts(value) {
|
|
1972
1972
|
const complete = String(value ?? "").replaceAll("\\", "/");
|
|
1973
1973
|
const boundary = complete.lastIndexOf("/");
|
|
1974
|
-
if (boundary
|
|
1974
|
+
if (boundary < 0) return { complete, leading: complete, separator: "", trailing: "" };
|
|
1975
1975
|
return {
|
|
1976
1976
|
complete,
|
|
1977
1977
|
leading: complete.slice(0, boundary),
|
|
1978
|
-
|
|
1978
|
+
separator: "/",
|
|
1979
|
+
trailing: complete.slice(boundary + 1)
|
|
1979
1980
|
};
|
|
1980
1981
|
}
|
|
1981
1982
|
function SessionRow({ row, state, onOpen }) {
|
|
@@ -1995,6 +1996,7 @@ function SessionRow({ row, state, onOpen }) {
|
|
|
1995
1996
|
] }),
|
|
1996
1997
|
path.complete ? /* @__PURE__ */ jsxs6("small", { class: "scui-session-path", title: row.cwd, children: [
|
|
1997
1998
|
/* @__PURE__ */ jsx7("span", { class: "scui-session-path-leading", children: path.leading }),
|
|
1999
|
+
path.separator ? /* @__PURE__ */ jsx7("span", { class: "scui-session-path-separator", children: path.separator }) : null,
|
|
1998
2000
|
path.trailing ? /* @__PURE__ */ jsx7("span", { class: "scui-session-path-trailing", children: path.trailing }) : null
|
|
1999
2001
|
] }) : null,
|
|
2000
2002
|
preview || unreadCount ? /* @__PURE__ */ jsxs6("span", { class: "scui-session-preview", children: [
|
package/package.json
CHANGED
package/sessions.mjs
CHANGED
|
@@ -282,11 +282,12 @@ var sessionListMemory = /* @__PURE__ */ new Map();
|
|
|
282
282
|
function sessionPathParts(value) {
|
|
283
283
|
const complete = String(value ?? "").replaceAll("\\", "/");
|
|
284
284
|
const boundary = complete.lastIndexOf("/");
|
|
285
|
-
if (boundary
|
|
285
|
+
if (boundary < 0) return { complete, leading: complete, separator: "", trailing: "" };
|
|
286
286
|
return {
|
|
287
287
|
complete,
|
|
288
288
|
leading: complete.slice(0, boundary),
|
|
289
|
-
|
|
289
|
+
separator: "/",
|
|
290
|
+
trailing: complete.slice(boundary + 1)
|
|
290
291
|
};
|
|
291
292
|
}
|
|
292
293
|
function SessionRow({ row, state, onOpen }) {
|
|
@@ -306,6 +307,7 @@ function SessionRow({ row, state, onOpen }) {
|
|
|
306
307
|
] }),
|
|
307
308
|
path.complete ? /* @__PURE__ */ jsxs5("small", { class: "scui-session-path", title: row.cwd, children: [
|
|
308
309
|
/* @__PURE__ */ jsx6("span", { class: "scui-session-path-leading", children: path.leading }),
|
|
310
|
+
path.separator ? /* @__PURE__ */ jsx6("span", { class: "scui-session-path-separator", children: path.separator }) : null,
|
|
309
311
|
path.trailing ? /* @__PURE__ */ jsx6("span", { class: "scui-session-path-trailing", children: path.trailing }) : null
|
|
310
312
|
] }) : null,
|
|
311
313
|
preview || unreadCount ? /* @__PURE__ */ jsxs5("span", { class: "scui-session-preview", children: [
|
package/styles.css
CHANGED
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
.scui-session-copy strong,.scui-session-copy span > small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap }
|
|
100
100
|
.scui-session-copy strong { flex:1; font-size:12.5px }.scui-session-title time { flex:none; color:var(--scui-muted); font-size:10px }
|
|
101
101
|
.scui-session-path { display:flex; min-width:0; overflow:hidden; color:var(--scui-muted); font-size:9.5px; white-space:nowrap }
|
|
102
|
-
.scui-session-path-leading { flex:0 1 auto; overflow:hidden; text-overflow:ellipsis }.scui-session-path-trailing { flex:none; max-width:58%; overflow:hidden; direction:rtl; text-align:left; text-overflow:ellipsis; unicode-bidi:plaintext }
|
|
102
|
+
.scui-session-path-leading { flex:0 1 auto; overflow:hidden; text-overflow:ellipsis }.scui-session-path-separator { flex:none }.scui-session-path-trailing { flex:none; max-width:58%; overflow:hidden; direction:rtl; text-align:left; text-overflow:ellipsis; unicode-bidi:plaintext }
|
|
103
103
|
.scui-session-preview small { flex:1; min-width:0; color:var(--scui-muted); font-size:10.5px }.scui-session-preview b { display:grid; flex:none; min-width:16px; height:16px; padding:0 4px; place-items:center; border-radius:8px; background:var(--scui-accent); color:var(--scui-bg); font-size:9px; line-height:16px }
|
|
104
104
|
.scui-session-copy em { overflow:hidden; color:var(--scui-danger); font-size:10px; font-style:normal; text-overflow:ellipsis; white-space:nowrap }
|
|
105
105
|
.scui-load { display:block; margin:7px auto; padding:5px 10px; border:1px solid var(--scui-border); border-radius:8px; background:var(--scui-bg-raised); color:var(--scui-muted); cursor:pointer }.scui-load:disabled { opacity:.65; cursor:default }
|