opencode-subagent-magazine 1.4.1 → 1.4.2
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/_version.d.ts +1 -1
- package/dist/_version.js +1 -1
- package/dist/index.js +4 -1
- package/dist/tui.js +86 -81
- package/package.json +1 -1
- package/src/_version.ts +1 -1
- package/src/index.tsx +11 -6
package/dist/_version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const PLUGIN_VERSION = "1.4.
|
|
1
|
+
export declare const PLUGIN_VERSION = "1.4.2";
|
package/dist/_version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// auto-generated
|
|
2
|
-
export const PLUGIN_VERSION = "1.4.
|
|
2
|
+
export const PLUGIN_VERSION = "1.4.2";
|
package/dist/index.js
CHANGED
|
@@ -1382,7 +1382,10 @@ function SubAgentPanel(props) {
|
|
|
1382
1382
|
const pad = Math.max(0, max - visualWidth(truncated));
|
|
1383
1383
|
return truncated + " ".repeat(pad);
|
|
1384
1384
|
};
|
|
1385
|
-
return (_jsxs(_Fragment, { children: [_jsxs("text", { onMouseUp: () => toggleExpand(entry.id), children: [_jsx("span", { style: { fg: pal().muted }, children: isExpanded() ? "\u25bc" : "\u25b6" }), " ", _jsx("span", { style: { fg: statusColor() }, children: statusDot() }), " ", _jsx("span", { style: { fg: pal().text }, children: labelText() }), timeText() ? (_jsxs(_Fragment, { children: [" ", _jsx("span", { style: { fg: timeColor() }, children: timeText() })] })) : null, tokenText() ? (_jsx("span", { style: { fg: pal().muted }, children: tokenText() })) : null] }), _jsxs(Show, { when: isExpanded(), children: [_jsxs("text", { children: [" ", _jsxs("span", { style: { fg: pal().primary }, children: [t("agent.label"), ": "] }), _jsx("span", { style: { fg: pal().muted }, children: " ".repeat(expandedPad(t("agent.label"))) }), _jsx("span", { style: { fg: pal().muted }, children: entry.agent })] }), _jsxs("text", { children: [" ", _jsxs("span", { style: { fg: pal().primary }, children: [t("status.label"), ": "] }), _jsx("span", { style: { fg: pal().muted }, children: " ".repeat(expandedPad(t("status.label"))) }), _jsx("span", { style: { fg: isRunning ? pal().warning : isError ? pal().error : pal().success }, children: isRunning ? t("status.running") : isError ? t("status.error") : t("status.done") })] }), _jsx(Show, { when: elapsed() >= 2000 || entry.endedAt !== undefined, children: _jsxs("text", { children: [" ", _jsxs("span", { style: { fg: pal().primary }, children: [t("time.label"), ": "] }), _jsx("span", { style: { fg: pal().muted }, children: " ".repeat(expandedPad(t("time.label"))) }), _jsx("span", { style: { fg: pal().muted }, children: fmtDurationShort(elapsed(), isRunning) })] }) }), _jsx(Show, { when: entry.tokens !== undefined, children: _jsxs("text", { children: [" ", _jsxs("span", { style: { fg: pal().primary }, children: [t("tokens.label"), ": "] }), _jsx("span", { style: { fg: pal().muted }, children: " ".repeat(expandedPad(t("tokens.label"))) }), _jsx("span", { style: { fg: pal().muted }, children: fmtTokens(entry.tokens) })] }) }), _jsx(Show, { when: entry.error, children: _jsxs("text", { children: [" ", _jsxs("span", { style: { fg: pal().error }, children: [t("error.label"), ": "] }), _jsx("span", { style: { fg: pal().muted }, children: " ".repeat(expandedPad(t("error.label"))) }), _jsx("span", { style: { fg: pal().error }, children: truncate(String(entry.error), expandedValAvail()) })] }) }), _jsx(Show, { when: entry.cost !== undefined, children:
|
|
1385
|
+
return (_jsxs(_Fragment, { children: [_jsxs("text", { onMouseUp: () => toggleExpand(entry.id), children: [_jsx("span", { style: { fg: pal().muted }, children: isExpanded() ? "\u25bc" : "\u25b6" }), " ", _jsx("span", { style: { fg: statusColor() }, children: statusDot() }), " ", _jsx("span", { style: { fg: pal().text }, children: labelText() }), timeText() ? (_jsxs(_Fragment, { children: [" ", _jsx("span", { style: { fg: timeColor() }, children: timeText() })] })) : null, tokenText() ? (_jsx("span", { style: { fg: pal().muted }, children: tokenText() })) : null] }), _jsxs(Show, { when: isExpanded(), children: [_jsxs("text", { children: [" ", _jsxs("span", { style: { fg: pal().primary }, children: [t("agent.label"), ": "] }), _jsx("span", { style: { fg: pal().muted }, children: " ".repeat(expandedPad(t("agent.label"))) }), _jsx("span", { style: { fg: pal().muted }, children: entry.agent })] }), _jsxs("text", { children: [" ", _jsxs("span", { style: { fg: pal().primary }, children: [t("status.label"), ": "] }), _jsx("span", { style: { fg: pal().muted }, children: " ".repeat(expandedPad(t("status.label"))) }), _jsx("span", { style: { fg: isRunning ? pal().warning : isError ? pal().error : pal().success }, children: isRunning ? t("status.running") : isError ? t("status.error") : t("status.done") })] }), _jsx(Show, { when: elapsed() >= 2000 || entry.endedAt !== undefined, children: _jsxs("text", { children: [" ", _jsxs("span", { style: { fg: pal().primary }, children: [t("time.label"), ": "] }), _jsx("span", { style: { fg: pal().muted }, children: " ".repeat(expandedPad(t("time.label"))) }), _jsx("span", { style: { fg: pal().muted }, children: fmtDurationShort(elapsed(), isRunning) })] }) }), _jsx(Show, { when: entry.tokens !== undefined, children: _jsxs("text", { children: [" ", _jsxs("span", { style: { fg: pal().primary }, children: [t("tokens.label"), ": "] }), _jsx("span", { style: { fg: pal().muted }, children: " ".repeat(expandedPad(t("tokens.label"))) }), _jsx("span", { style: { fg: pal().muted }, children: fmtTokens(entry.tokens) })] }) }), _jsx(Show, { when: entry.error, children: _jsxs("text", { children: [" ", _jsxs("span", { style: { fg: pal().error }, children: [t("error.label"), ": "] }), _jsx("span", { style: { fg: pal().muted }, children: " ".repeat(expandedPad(t("error.label"))) }), _jsx("span", { style: { fg: pal().error }, children: truncate(String(entry.error), expandedValAvail()) })] }) }), _jsx(Show, { when: entry.cost !== undefined, children: (() => {
|
|
1386
|
+
const cost = entry.cost;
|
|
1387
|
+
return (_jsxs("text", { children: [" ", _jsxs("span", { style: { fg: pal().primary }, children: [t("cost.label"), ": "] }), _jsx("span", { style: { fg: pal().muted }, children: " ".repeat(expandedPad(t("cost.label"))) }), _jsxs("span", { style: { fg: pal().muted }, children: ["$", cost.toFixed(4)] })] }));
|
|
1388
|
+
})() }), _jsx(Show, { when: entry.model, children: _jsxs("text", { children: [" ", _jsxs("span", { style: { fg: pal().primary }, children: [t("model.label"), ": "] }), _jsx("span", { style: { fg: pal().muted }, children: " ".repeat(expandedPad(t("model.label"))) }), _jsx("span", { style: { fg: pal().muted }, children: truncate(entry.model, expandedValAvail()) })] }) }), _jsx(Show, { when: entry.todoTotal !== undefined, children: _jsxs("text", { children: [" ", _jsxs("span", { style: { fg: pal().primary }, children: [t("todo.label"), ": "] }), _jsx("span", { style: { fg: pal().muted }, children: " ".repeat(expandedPad(t("todo.label"))) }), _jsxs("span", { style: { fg: pal().muted }, children: [entry.todoDone, "/", entry.todoTotal] })] }) }), _jsx(Show, { when: entry.sessionId, children: _jsxs("text", { onMouseUp: () => {
|
|
1386
1389
|
if (entry.sessionId) {
|
|
1387
1390
|
props.api.ui.toast({
|
|
1388
1391
|
title: entry.title || entry.agent,
|
package/dist/tui.js
CHANGED
|
@@ -11,7 +11,7 @@ import { createElement as _$createElement } from "@opentui/solid";
|
|
|
11
11
|
import { createMemo, createSignal, createEffect, onMount, onCleanup, untrack, Show, For } from "solid-js";
|
|
12
12
|
|
|
13
13
|
// src/_version.ts
|
|
14
|
-
var PLUGIN_VERSION = "1.4.
|
|
14
|
+
var PLUGIN_VERSION = "1.4.2";
|
|
15
15
|
|
|
16
16
|
// src/index.tsx
|
|
17
17
|
var SUBAGENT_TOOLS = /* @__PURE__ */ new Set(["task", "delegate", "call_omo_agent"]);
|
|
@@ -1479,23 +1479,23 @@ function SubAgentPanel(props) {
|
|
|
1479
1479
|
_$insert(_el$25, (() => {
|
|
1480
1480
|
var _c$2 = _$memo(() => !!timeText());
|
|
1481
1481
|
return () => _c$2() ? [" ", (() => {
|
|
1482
|
-
var _el$
|
|
1483
|
-
_$insert(_el$
|
|
1484
|
-
_$effect((_$p) => _$setProp(_el$
|
|
1482
|
+
var _el$82 = _$createElement("span");
|
|
1483
|
+
_$insert(_el$82, timeText);
|
|
1484
|
+
_$effect((_$p) => _$setProp(_el$82, "style", {
|
|
1485
1485
|
fg: timeColor()
|
|
1486
1486
|
}, _$p));
|
|
1487
|
-
return _el$
|
|
1487
|
+
return _el$82;
|
|
1488
1488
|
})()] : null;
|
|
1489
1489
|
})(), null);
|
|
1490
1490
|
_$insert(_el$25, (() => {
|
|
1491
1491
|
var _c$3 = _$memo(() => !!tokenText());
|
|
1492
1492
|
return () => _c$3() ? (() => {
|
|
1493
|
-
var _el$
|
|
1494
|
-
_$insert(_el$
|
|
1495
|
-
_$effect((_$p) => _$setProp(_el$
|
|
1493
|
+
var _el$83 = _$createElement("span");
|
|
1494
|
+
_$insert(_el$83, tokenText);
|
|
1495
|
+
_$effect((_$p) => _$setProp(_el$83, "style", {
|
|
1496
1496
|
fg: pal().muted
|
|
1497
1497
|
}, _$p));
|
|
1498
|
-
return _el$
|
|
1498
|
+
return _el$83;
|
|
1499
1499
|
})() : null;
|
|
1500
1500
|
})(), null);
|
|
1501
1501
|
_$effect((_p$) => {
|
|
@@ -1681,16 +1681,54 @@ function SubAgentPanel(props) {
|
|
|
1681
1681
|
return entry.cost !== void 0;
|
|
1682
1682
|
},
|
|
1683
1683
|
get children() {
|
|
1684
|
-
|
|
1684
|
+
return (() => {
|
|
1685
|
+
const cost = entry.cost;
|
|
1686
|
+
return (() => {
|
|
1687
|
+
var _el$84 = _$createElement("text"), _el$85 = _$createTextNode(` `), _el$86 = _$createElement("span"), _el$87 = _$createTextNode(`: `), _el$88 = _$createElement("span"), _el$89 = _$createElement("span"), _el$90 = _$createTextNode(`$`);
|
|
1688
|
+
_$insertNode(_el$84, _el$85);
|
|
1689
|
+
_$insertNode(_el$84, _el$86);
|
|
1690
|
+
_$insertNode(_el$84, _el$88);
|
|
1691
|
+
_$insertNode(_el$84, _el$89);
|
|
1692
|
+
_$insertNode(_el$86, _el$87);
|
|
1693
|
+
_$insert(_el$86, () => t("cost.label"), _el$87);
|
|
1694
|
+
_$insert(_el$88, () => " ".repeat(expandedPad(t("cost.label"))));
|
|
1695
|
+
_$insertNode(_el$89, _el$90);
|
|
1696
|
+
_$insert(_el$89, () => cost.toFixed(4), null);
|
|
1697
|
+
_$effect((_p$) => {
|
|
1698
|
+
var _v$29 = {
|
|
1699
|
+
fg: pal().primary
|
|
1700
|
+
}, _v$30 = {
|
|
1701
|
+
fg: pal().muted
|
|
1702
|
+
}, _v$31 = {
|
|
1703
|
+
fg: pal().muted
|
|
1704
|
+
};
|
|
1705
|
+
_v$29 !== _p$.e && (_p$.e = _$setProp(_el$86, "style", _v$29, _p$.e));
|
|
1706
|
+
_v$30 !== _p$.t && (_p$.t = _$setProp(_el$88, "style", _v$30, _p$.t));
|
|
1707
|
+
_v$31 !== _p$.a && (_p$.a = _$setProp(_el$89, "style", _v$31, _p$.a));
|
|
1708
|
+
return _p$;
|
|
1709
|
+
}, {
|
|
1710
|
+
e: void 0,
|
|
1711
|
+
t: void 0,
|
|
1712
|
+
a: void 0
|
|
1713
|
+
});
|
|
1714
|
+
return _el$84;
|
|
1715
|
+
})();
|
|
1716
|
+
})();
|
|
1717
|
+
}
|
|
1718
|
+
}), _$createComponent(Show, {
|
|
1719
|
+
get when() {
|
|
1720
|
+
return entry.model;
|
|
1721
|
+
},
|
|
1722
|
+
get children() {
|
|
1723
|
+
var _el$61 = _$createElement("text"), _el$62 = _$createTextNode(` `), _el$63 = _$createElement("span"), _el$64 = _$createTextNode(`: `), _el$65 = _$createElement("span"), _el$66 = _$createElement("span");
|
|
1685
1724
|
_$insertNode(_el$61, _el$62);
|
|
1686
1725
|
_$insertNode(_el$61, _el$63);
|
|
1687
1726
|
_$insertNode(_el$61, _el$65);
|
|
1688
1727
|
_$insertNode(_el$61, _el$66);
|
|
1689
1728
|
_$insertNode(_el$63, _el$64);
|
|
1690
|
-
_$insert(_el$63, () => t("
|
|
1691
|
-
_$insert(_el$65, () => " ".repeat(expandedPad(t("
|
|
1692
|
-
_$
|
|
1693
|
-
_$insert(_el$66, () => entry.cost.toFixed(4), null);
|
|
1729
|
+
_$insert(_el$63, () => t("model.label"), _el$64);
|
|
1730
|
+
_$insert(_el$65, () => " ".repeat(expandedPad(t("model.label"))));
|
|
1731
|
+
_$insert(_el$66, () => truncate(entry.model, expandedValAvail()));
|
|
1694
1732
|
_$effect((_p$) => {
|
|
1695
1733
|
var _v$19 = {
|
|
1696
1734
|
fg: pal().primary
|
|
@@ -1712,18 +1750,20 @@ function SubAgentPanel(props) {
|
|
|
1712
1750
|
}
|
|
1713
1751
|
}), _$createComponent(Show, {
|
|
1714
1752
|
get when() {
|
|
1715
|
-
return entry.
|
|
1753
|
+
return entry.todoTotal !== void 0;
|
|
1716
1754
|
},
|
|
1717
1755
|
get children() {
|
|
1718
|
-
var _el$
|
|
1719
|
-
_$insertNode(_el$
|
|
1720
|
-
_$insertNode(_el$
|
|
1721
|
-
_$insertNode(_el$
|
|
1722
|
-
_$insertNode(_el$
|
|
1723
|
-
_$insertNode(_el$
|
|
1724
|
-
_$insert(_el$
|
|
1725
|
-
_$insert(_el$
|
|
1726
|
-
_$
|
|
1756
|
+
var _el$67 = _$createElement("text"), _el$68 = _$createTextNode(` `), _el$69 = _$createElement("span"), _el$70 = _$createTextNode(`: `), _el$71 = _$createElement("span"), _el$72 = _$createElement("span"), _el$73 = _$createTextNode(`/`);
|
|
1757
|
+
_$insertNode(_el$67, _el$68);
|
|
1758
|
+
_$insertNode(_el$67, _el$69);
|
|
1759
|
+
_$insertNode(_el$67, _el$71);
|
|
1760
|
+
_$insertNode(_el$67, _el$72);
|
|
1761
|
+
_$insertNode(_el$69, _el$70);
|
|
1762
|
+
_$insert(_el$69, () => t("todo.label"), _el$70);
|
|
1763
|
+
_$insert(_el$71, () => " ".repeat(expandedPad(t("todo.label"))));
|
|
1764
|
+
_$insertNode(_el$72, _el$73);
|
|
1765
|
+
_$insert(_el$72, () => entry.todoDone, _el$73);
|
|
1766
|
+
_$insert(_el$72, () => entry.todoTotal, null);
|
|
1727
1767
|
_$effect((_p$) => {
|
|
1728
1768
|
var _v$22 = {
|
|
1729
1769
|
fg: pal().primary
|
|
@@ -1732,64 +1772,29 @@ function SubAgentPanel(props) {
|
|
|
1732
1772
|
}, _v$24 = {
|
|
1733
1773
|
fg: pal().muted
|
|
1734
1774
|
};
|
|
1735
|
-
_v$22 !== _p$.e && (_p$.e = _$setProp(_el$
|
|
1736
|
-
_v$23 !== _p$.t && (_p$.t = _$setProp(_el$
|
|
1737
|
-
_v$24 !== _p$.a && (_p$.a = _$setProp(_el$
|
|
1775
|
+
_v$22 !== _p$.e && (_p$.e = _$setProp(_el$69, "style", _v$22, _p$.e));
|
|
1776
|
+
_v$23 !== _p$.t && (_p$.t = _$setProp(_el$71, "style", _v$23, _p$.t));
|
|
1777
|
+
_v$24 !== _p$.a && (_p$.a = _$setProp(_el$72, "style", _v$24, _p$.a));
|
|
1738
1778
|
return _p$;
|
|
1739
1779
|
}, {
|
|
1740
1780
|
e: void 0,
|
|
1741
1781
|
t: void 0,
|
|
1742
1782
|
a: void 0
|
|
1743
1783
|
});
|
|
1744
|
-
return _el$
|
|
1784
|
+
return _el$67;
|
|
1745
1785
|
}
|
|
1746
1786
|
}), _$createComponent(Show, {
|
|
1747
1787
|
get when() {
|
|
1748
|
-
return entry.
|
|
1788
|
+
return entry.sessionId;
|
|
1749
1789
|
},
|
|
1750
1790
|
get children() {
|
|
1751
|
-
var _el$74 = _$createElement("text"), _el$75 = _$createTextNode(` `), _el$76 = _$createElement("span"), _el$77 = _$createTextNode(`: `), _el$78 = _$createElement("span"), _el$79 = _$createElement("span"), _el$80 = _$
|
|
1791
|
+
var _el$74 = _$createElement("text"), _el$75 = _$createTextNode(` `), _el$76 = _$createElement("span"), _el$77 = _$createTextNode(`: `), _el$78 = _$createElement("span"), _el$79 = _$createElement("span"), _el$80 = _$createElement("span");
|
|
1752
1792
|
_$insertNode(_el$74, _el$75);
|
|
1753
1793
|
_$insertNode(_el$74, _el$76);
|
|
1754
1794
|
_$insertNode(_el$74, _el$78);
|
|
1755
1795
|
_$insertNode(_el$74, _el$79);
|
|
1756
|
-
_$insertNode(_el$
|
|
1757
|
-
_$
|
|
1758
|
-
_$insert(_el$78, () => " ".repeat(expandedPad(t("todo.label"))));
|
|
1759
|
-
_$insertNode(_el$79, _el$80);
|
|
1760
|
-
_$insert(_el$79, () => entry.todoDone, _el$80);
|
|
1761
|
-
_$insert(_el$79, () => entry.todoTotal, null);
|
|
1762
|
-
_$effect((_p$) => {
|
|
1763
|
-
var _v$25 = {
|
|
1764
|
-
fg: pal().primary
|
|
1765
|
-
}, _v$26 = {
|
|
1766
|
-
fg: pal().muted
|
|
1767
|
-
}, _v$27 = {
|
|
1768
|
-
fg: pal().muted
|
|
1769
|
-
};
|
|
1770
|
-
_v$25 !== _p$.e && (_p$.e = _$setProp(_el$76, "style", _v$25, _p$.e));
|
|
1771
|
-
_v$26 !== _p$.t && (_p$.t = _$setProp(_el$78, "style", _v$26, _p$.t));
|
|
1772
|
-
_v$27 !== _p$.a && (_p$.a = _$setProp(_el$79, "style", _v$27, _p$.a));
|
|
1773
|
-
return _p$;
|
|
1774
|
-
}, {
|
|
1775
|
-
e: void 0,
|
|
1776
|
-
t: void 0,
|
|
1777
|
-
a: void 0
|
|
1778
|
-
});
|
|
1779
|
-
return _el$74;
|
|
1780
|
-
}
|
|
1781
|
-
}), _$createComponent(Show, {
|
|
1782
|
-
get when() {
|
|
1783
|
-
return entry.sessionId;
|
|
1784
|
-
},
|
|
1785
|
-
get children() {
|
|
1786
|
-
var _el$81 = _$createElement("text"), _el$82 = _$createTextNode(` `), _el$83 = _$createElement("span"), _el$84 = _$createTextNode(`: `), _el$85 = _$createElement("span"), _el$86 = _$createElement("span"), _el$87 = _$createElement("span");
|
|
1787
|
-
_$insertNode(_el$81, _el$82);
|
|
1788
|
-
_$insertNode(_el$81, _el$83);
|
|
1789
|
-
_$insertNode(_el$81, _el$85);
|
|
1790
|
-
_$insertNode(_el$81, _el$86);
|
|
1791
|
-
_$insertNode(_el$81, _el$87);
|
|
1792
|
-
_$setProp(_el$81, "onMouseUp", () => {
|
|
1796
|
+
_$insertNode(_el$74, _el$80);
|
|
1797
|
+
_$setProp(_el$74, "onMouseUp", () => {
|
|
1793
1798
|
if (entry.sessionId) {
|
|
1794
1799
|
props.api.ui.toast({
|
|
1795
1800
|
title: entry.title || entry.agent,
|
|
@@ -1800,25 +1805,25 @@ ${t("session.toast.copy")}`,
|
|
|
1800
1805
|
});
|
|
1801
1806
|
}
|
|
1802
1807
|
});
|
|
1803
|
-
_$insertNode(_el$
|
|
1804
|
-
_$insert(_el$
|
|
1805
|
-
_$insert(_el$
|
|
1806
|
-
_$insert(_el$
|
|
1807
|
-
_$insertNode(_el$
|
|
1808
|
+
_$insertNode(_el$76, _el$77);
|
|
1809
|
+
_$insert(_el$76, () => t("session.label"), _el$77);
|
|
1810
|
+
_$insert(_el$78, () => " ".repeat(expandedPad(t("session.label"))));
|
|
1811
|
+
_$insert(_el$79, () => truncate(entry.sessionId, expandedValAvail() - visualWidth(" \u2398")));
|
|
1812
|
+
_$insertNode(_el$80, _$createTextNode(` \u2398`));
|
|
1808
1813
|
_$effect((_p$) => {
|
|
1809
|
-
var _v$
|
|
1814
|
+
var _v$25 = {
|
|
1810
1815
|
fg: pal().primary
|
|
1811
|
-
}, _v$
|
|
1816
|
+
}, _v$26 = {
|
|
1812
1817
|
fg: pal().muted
|
|
1813
|
-
}, _v$
|
|
1818
|
+
}, _v$27 = {
|
|
1814
1819
|
fg: pal().muted
|
|
1815
|
-
}, _v$
|
|
1820
|
+
}, _v$28 = {
|
|
1816
1821
|
fg: pal().warning
|
|
1817
1822
|
};
|
|
1818
|
-
_v$
|
|
1819
|
-
_v$
|
|
1820
|
-
_v$
|
|
1821
|
-
_v$
|
|
1823
|
+
_v$25 !== _p$.e && (_p$.e = _$setProp(_el$76, "style", _v$25, _p$.e));
|
|
1824
|
+
_v$26 !== _p$.t && (_p$.t = _$setProp(_el$78, "style", _v$26, _p$.t));
|
|
1825
|
+
_v$27 !== _p$.a && (_p$.a = _$setProp(_el$79, "style", _v$27, _p$.a));
|
|
1826
|
+
_v$28 !== _p$.o && (_p$.o = _$setProp(_el$80, "style", _v$28, _p$.o));
|
|
1822
1827
|
return _p$;
|
|
1823
1828
|
}, {
|
|
1824
1829
|
e: void 0,
|
|
@@ -1826,7 +1831,7 @@ ${t("session.toast.copy")}`,
|
|
|
1826
1831
|
a: void 0,
|
|
1827
1832
|
o: void 0
|
|
1828
1833
|
});
|
|
1829
|
-
return _el$
|
|
1834
|
+
return _el$74;
|
|
1830
1835
|
}
|
|
1831
1836
|
}), _$createComponent(Show, {
|
|
1832
1837
|
get when() {
|
package/package.json
CHANGED
package/src/_version.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// auto-generated
|
|
2
|
-
export const PLUGIN_VERSION="1.4.
|
|
2
|
+
export const PLUGIN_VERSION="1.4.2";
|
package/src/index.tsx
CHANGED
|
@@ -1530,12 +1530,17 @@ function SubAgentPanel(props: {
|
|
|
1530
1530
|
</text>
|
|
1531
1531
|
</Show>
|
|
1532
1532
|
<Show when={entry.cost !== undefined}>
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1533
|
+
{(() => {
|
|
1534
|
+
const cost = entry.cost!
|
|
1535
|
+
return (
|
|
1536
|
+
<text>
|
|
1537
|
+
{" "}
|
|
1538
|
+
<span style={{ fg: pal().primary }}>{t("cost.label")}: </span>
|
|
1539
|
+
<span style={{ fg: pal().muted }}>{" ".repeat(expandedPad(t("cost.label")))}</span>
|
|
1540
|
+
<span style={{ fg: pal().muted }}>${cost.toFixed(4)}</span>
|
|
1541
|
+
</text>
|
|
1542
|
+
)
|
|
1543
|
+
})()}
|
|
1539
1544
|
</Show>
|
|
1540
1545
|
<Show when={entry.model}>
|
|
1541
1546
|
<text>
|