@adhdev/daemon-standalone 0.9.76-rc.7 → 0.9.76-rc.8

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/public/index.html CHANGED
@@ -7,7 +7,7 @@
7
7
  <meta name="description" content="ADHDev self-hosted dashboard for controlling AI agents" />
8
8
  <link rel="icon" href="/otter-logo.png" />
9
9
  <link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap" rel="stylesheet" />
10
- <script type="module" crossorigin src="/assets/index-1CH0J-Eg.js"></script>
10
+ <script type="module" crossorigin src="/assets/index-DEm3mt0C.js"></script>
11
11
  <link rel="modulepreload" crossorigin href="/assets/vendor-CLec0455.js">
12
12
  <link rel="stylesheet" crossorigin href="/assets/index-DHNzD5nE.css">
13
13
  </head>
@@ -27507,6 +27507,14 @@ function getActiveChatOptions(profile) {
27507
27507
  if (profile === "full") return {};
27508
27508
  return LIVE_STATUS_ACTIVE_CHAT_OPTIONS;
27509
27509
  }
27510
+ function resolveSessionStatus(activeChat, providerStatus) {
27511
+ const chatStatus = normalizeManagedStatus(activeChat?.status, { activeModal: activeChat?.activeModal || null });
27512
+ const topLevelStatus = normalizeManagedStatus(providerStatus, { activeModal: activeChat?.activeModal || null });
27513
+ if (chatStatus === "waiting_approval" || topLevelStatus === "waiting_approval") return "waiting_approval";
27514
+ if (chatStatus === "generating" || topLevelStatus === "generating") return "generating";
27515
+ if (topLevelStatus !== "idle") return topLevelStatus;
27516
+ return chatStatus;
27517
+ }
27510
27518
  function shouldIncludeSessionControls(profile) {
27511
27519
  return profile !== "live";
27512
27520
  }
@@ -27562,9 +27570,7 @@ function buildIdeWorkspaceSession(state, cdpManagers, options) {
27562
27570
  providerName: state.name,
27563
27571
  kind: "workspace",
27564
27572
  transport: "cdp-page",
27565
- status: normalizeManagedStatus(activeChat?.status || state.status, {
27566
- activeModal: activeChat?.activeModal || null
27567
- }),
27573
+ status: resolveSessionStatus(activeChat, state.status),
27568
27574
  title,
27569
27575
  workspace,
27570
27576
  ...git && { git },
@@ -27599,9 +27605,7 @@ function buildExtensionAgentSession(parent, ext, options) {
27599
27605
  providerSessionId: ext.providerSessionId,
27600
27606
  kind: "agent",
27601
27607
  transport: "cdp-webview",
27602
- status: normalizeManagedStatus(activeChat?.status || ext.status, {
27603
- activeModal: activeChat?.activeModal || null
27604
- }),
27608
+ status: resolveSessionStatus(activeChat, ext.status),
27605
27609
  title: activeChat?.title || ext.name,
27606
27610
  workspace,
27607
27611
  ...git && { git },
@@ -27651,9 +27655,7 @@ function buildCliSession(state, options) {
27651
27655
  providerSessionId: state.providerSessionId,
27652
27656
  kind: "agent",
27653
27657
  transport: "pty",
27654
- status: normalizeManagedStatus(activeChat?.status || state.status, {
27655
- activeModal: activeChat?.activeModal || null
27656
- }),
27658
+ status: resolveSessionStatus(activeChat, state.status),
27657
27659
  title: activeChat?.title || state.name,
27658
27660
  workspace,
27659
27661
  ...git && { git },
@@ -27701,9 +27703,7 @@ function buildAcpSession(state, options) {
27701
27703
  providerName: state.name,
27702
27704
  kind: "agent",
27703
27705
  transport: "acp",
27704
- status: normalizeManagedStatus(activeChat?.status || state.status, {
27705
- activeModal: activeChat?.activeModal || null
27706
- }),
27706
+ status: resolveSessionStatus(activeChat, state.status),
27707
27707
  title: activeChat?.title || state.name,
27708
27708
  workspace,
27709
27709
  ...git && { git },
@@ -37502,8 +37502,9 @@ var init_dist2 = __esm({
37502
37502
  const currentSnapshot = normalizeScreenSnapshot(screenText);
37503
37503
  const lastSnapshot = this.lastScreenSnapshot;
37504
37504
  if (!lastSnapshot || lastSnapshot === currentSnapshot) return screenText;
37505
- const staleSnapshotLooksActive = /\besc to (?:interrupt|stop)\b|Enter to interrupt, Ctrl\+C to cancel/i.test(lastSnapshot);
37506
- const currentScreenLooksIdle = /(?:^|\n|\r)\s*[❯›>]\s*(?:\n|\r|$)/.test(screenText) && !/\besc to (?:interrupt|stop)\b|Enter to interrupt, Ctrl\+C to cancel/i.test(screenText);
37505
+ const activeScreenPattern = /\besc to (?:interrupt|stop)\b|Enter to interrupt, Ctrl\+C to cancel|Enter to confirm\s*[·•-]\s*Esc to cancel|\b(?:MCP servers?|tool calls?)\b[^\n\r]{0,160}\brequire approval\b/i;
37506
+ const staleSnapshotLooksActive = activeScreenPattern.test(lastSnapshot);
37507
+ const currentScreenLooksIdle = /(?:^|\n|\r)\s*[❯›>]\s*(?:Try\s+["“][^\n\r"”]+["”])?\s*(?:\n|\r|$)/.test(screenText) && !activeScreenPattern.test(screenText);
37507
37508
  if (staleSnapshotLooksActive && currentScreenLooksIdle) return screenText;
37508
37509
  if (currentSnapshot.length >= lastSnapshot.length) return screenText;
37509
37510
  return `${screenText}