@lmctl-ai/lmctl 0.1.141 → 0.1.142

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.
Files changed (2) hide show
  1. package/dist/cli/index.js +22 -2
  2. package/package.json +1 -1
package/dist/cli/index.js CHANGED
@@ -2584,7 +2584,17 @@ delete requires --confirm; deleting default or active workspaces also requires -
2584
2584
  AND sender_alias = ?
2585
2585
  AND (
2586
2586
  delivered_at IS NULL
2587
- OR (delivered_at IS NOT NULL AND (receipt IS NULL OR receipt = ''))
2587
+ OR (
2588
+ delivered_at IS NOT NULL
2589
+ AND message_type = 'request'
2590
+ AND (receipt IS NULL OR receipt = '')
2591
+ AND NOT EXISTS (
2592
+ SELECT 1
2593
+ FROM agent_mailbox AS response
2594
+ WHERE response.message_type = 'response'
2595
+ AND response.request_mailbox_id = agent_mailbox.id
2596
+ )
2597
+ )
2588
2598
  )
2589
2599
  ORDER BY
2590
2600
  CASE
@@ -2595,7 +2605,17 @@ delete requires --confirm; deleting default or active workspaces also requires -
2595
2605
  `).all(t,r)}function Kq(e){return e.db.prepare(`
2596
2606
  SELECT * FROM agent_mailbox
2597
2607
  WHERE delivered_at IS NULL
2598
- OR (delivered_at IS NOT NULL AND (receipt IS NULL OR receipt = ''))
2608
+ OR (
2609
+ delivered_at IS NOT NULL
2610
+ AND message_type = 'request'
2611
+ AND (receipt IS NULL OR receipt = '')
2612
+ AND NOT EXISTS (
2613
+ SELECT 1
2614
+ FROM agent_mailbox AS response
2615
+ WHERE response.message_type = 'response'
2616
+ AND response.request_mailbox_id = agent_mailbox.id
2617
+ )
2618
+ )
2599
2619
  ORDER BY
2600
2620
  CASE
2601
2621
  WHEN delivered_at IS NULL THEN created_at
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lmctl-ai/lmctl",
3
- "version": "0.1.141",
3
+ "version": "0.1.142",
4
4
  "description": "A provider-agnostic control plane for teams of AI coding agents — across providers, with independent review and durable memory.",
5
5
  "type": "module",
6
6
  "homepage": "https://lmctl.com",