arp-tui 0.0.3 → 0.0.5
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 +17 -4
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1669,10 +1669,18 @@ function createStore(opts) {
|
|
|
1669
1669
|
let rawActivityByTurn = /* @__PURE__ */ new Map();
|
|
1670
1670
|
let activitySettleTimer = null;
|
|
1671
1671
|
function activityIsLive() {
|
|
1672
|
-
|
|
1672
|
+
const aKeys = Object.keys(state.activityByTurn);
|
|
1673
|
+
const lastA = aKeys[aKeys.length - 1];
|
|
1674
|
+
const rows = lastA !== void 0 ? state.activityByTurn[lastA] : void 0;
|
|
1675
|
+
if (rows) {
|
|
1673
1676
|
for (const r of rows) if (r.status === "pending" || r.status === "in_progress") return true;
|
|
1674
|
-
|
|
1677
|
+
}
|
|
1678
|
+
const pKeys = Object.keys(state.plansByTurn);
|
|
1679
|
+
const lastP = pKeys[pKeys.length - 1];
|
|
1680
|
+
const entries = lastP !== void 0 ? state.plansByTurn[lastP] : void 0;
|
|
1681
|
+
if (entries) {
|
|
1675
1682
|
for (const e of entries) if (e.status !== "completed") return true;
|
|
1683
|
+
}
|
|
1676
1684
|
return false;
|
|
1677
1685
|
}
|
|
1678
1686
|
function evictOldestTurns(rec) {
|
|
@@ -2183,8 +2191,12 @@ function fallbackTitle(call) {
|
|
|
2183
2191
|
function ActivitySurface(props) {
|
|
2184
2192
|
const { toolCalls, plan, visible, pinned } = props;
|
|
2185
2193
|
if (!visible) return null;
|
|
2194
|
+
const pinHint = pinned ? "pinned \xB7 press v to unpin" : "press v to keep open";
|
|
2186
2195
|
if (toolCalls.length === 0 && plan.length === 0) {
|
|
2187
|
-
return /* @__PURE__ */
|
|
2196
|
+
return /* @__PURE__ */ jsxs2(Box, { flexDirection: "column", paddingLeft: 1, children: [
|
|
2197
|
+
/* @__PURE__ */ jsx2(Text2, { dimColor: true, children: "no activity yet" }),
|
|
2198
|
+
/* @__PURE__ */ jsx2(Text2, { dimColor: true, children: pinHint })
|
|
2199
|
+
] });
|
|
2188
2200
|
}
|
|
2189
2201
|
return /* @__PURE__ */ jsxs2(Box, { flexDirection: "column", paddingLeft: 1, children: [
|
|
2190
2202
|
toolCalls.length > 0 && /* @__PURE__ */ jsxs2(Box, { flexDirection: "column", children: [
|
|
@@ -2210,7 +2222,8 @@ function ActivitySurface(props) {
|
|
|
2210
2222
|
" ",
|
|
2211
2223
|
sanitizeForTty(entry.content)
|
|
2212
2224
|
] }, i))
|
|
2213
|
-
] })
|
|
2225
|
+
] }),
|
|
2226
|
+
/* @__PURE__ */ jsx2(Text2, { dimColor: true, children: pinHint })
|
|
2214
2227
|
] });
|
|
2215
2228
|
}
|
|
2216
2229
|
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "arp-tui",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.5",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "arp-tui",
|
|
9
|
-
"version": "0.0.
|
|
9
|
+
"version": "0.0.5",
|
|
10
10
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"ink": "^5.2.0",
|
package/package.json
CHANGED