@askexenow/exe-os 0.8.49 → 0.8.51

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/tui/App.js CHANGED
@@ -5206,8 +5206,18 @@ async function countNewPendingReviewsSince(sinceIso) {
5206
5206
  });
5207
5207
  return Number(result.rows[0]?.cnt) || 0;
5208
5208
  }
5209
- async function listPendingReviews(limit) {
5209
+ async function listPendingReviews(limit, sessionScope) {
5210
5210
  const client = getClient();
5211
+ if (sessionScope) {
5212
+ const result2 = await client.execute({
5213
+ sql: `SELECT title, assigned_to, project_name FROM tasks
5214
+ WHERE status = 'needs_review'
5215
+ AND (session_scope = ? OR session_scope IS NULL)
5216
+ ORDER BY priority ASC, created_at DESC LIMIT ?`,
5217
+ args: [sessionScope, limit]
5218
+ });
5219
+ return result2.rows;
5220
+ }
5211
5221
  const result = await client.execute({
5212
5222
  sql: `SELECT title, assigned_to, project_name FROM tasks
5213
5223
  WHERE status = 'needs_review'
@@ -18766,8 +18776,6 @@ function App2() {
18766
18776
  setSection(SECTIONS[tabIdx].key);
18767
18777
  setFocus("sidebar");
18768
18778
  }
18769
- } else {
18770
- setFocus("content");
18771
18779
  }
18772
18780
  }, []));
18773
18781
  const [focus, setFocus] = useState16("sidebar");
@@ -18870,3 +18878,34 @@ function App2() {
18870
18878
  }
18871
18879
  }
18872
18880
  render_default(/* @__PURE__ */ jsx17(App2, {}));
18881
+ {
18882
+ const CLEANUP_SEQ = "\x1B[?1006l\x1B[?1002l\x1B[?1000l\x1B[?25h\x1B[?1049l";
18883
+ const terminalCleanup = () => {
18884
+ try {
18885
+ process.stdout.write(CLEANUP_SEQ);
18886
+ } catch {
18887
+ }
18888
+ };
18889
+ process.on("exit", terminalCleanup);
18890
+ for (const sig of ["SIGINT", "SIGTERM", "SIGHUP"]) {
18891
+ process.on(sig, () => {
18892
+ terminalCleanup();
18893
+ process.removeAllListeners(sig);
18894
+ process.kill(process.pid, sig);
18895
+ });
18896
+ }
18897
+ process.on("uncaughtException", (err) => {
18898
+ terminalCleanup();
18899
+ process.stderr.write(`
18900
+ ${err.stack || err.message}
18901
+ `);
18902
+ process.exit(1);
18903
+ });
18904
+ process.on("unhandledRejection", (reason) => {
18905
+ terminalCleanup();
18906
+ process.stderr.write(`
18907
+ Unhandled rejection: ${reason}
18908
+ `);
18909
+ process.exit(1);
18910
+ });
18911
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@askexenow/exe-os",
3
- "version": "0.8.49",
3
+ "version": "0.8.51",
4
4
  "description": "AI employee operating system — persistent memory, task management, and multi-agent coordination for Claude Code.",
5
5
  "license": "CC-BY-NC-4.0",
6
6
  "type": "module",