@jxtools/promptline 1.3.3 → 1.3.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jxtools/promptline",
3
- "version": "1.3.3",
3
+ "version": "1.3.4",
4
4
  "type": "module",
5
5
  "license": "ISC",
6
6
  "bin": {
@@ -52,7 +52,6 @@ export function withComputedStatus(session: SessionQueue): SessionQueue & { stat
52
52
  export function isSessionVisible(session: SessionQueue, now: number = Date.now()): boolean {
53
53
  if (hasPendingWork(session)) return true;
54
54
  if (session.closedAt != null) return false;
55
- if (!session.sessionName) return false;
56
55
  const msSinceStart = now - new Date(session.startedAt).getTime();
57
56
  return msSinceStart <= SESSION_ABANDONED_TIMEOUT_MS;
58
57
  }
@@ -151,8 +150,7 @@ export function deletePrompt(session: SessionQueue, promptId: string): Prompt |
151
150
  }
152
151
 
153
152
  export function clearPrompts(session: SessionQueue): Prompt[] {
154
- const removed = session.prompts.splice(0);
155
- return removed;
153
+ return session.prompts.splice(0);
156
154
  }
157
155
 
158
156
  export function reorderPrompts(session: SessionQueue, order: string[]): string | null {