@north-light/crouter 0.3.225 → 0.3.226

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.
@@ -44,6 +44,7 @@ export interface PageTicketSummaryDTO {
44
44
  emitted_at: IsoTime;
45
45
  source: TicketSourceDTO;
46
46
  slot_kinds: string[];
47
+ /** The ticket is waiting on the person: it asks something, or an agent bridge is parked on its reply. Not a writability gate — any pending, non-passive ticket accepts a response. */
47
48
  awaits_response: boolean;
48
49
  /** Omitted when no question recommends an option. */
49
50
  recommended_options?: RecommendedOptionDTO[];
@@ -12,6 +12,7 @@
12
12
  // land on the already-placed block when `refresh()` is driven by the viewer's
13
13
  // inbox-activity watcher.
14
14
  import { readFileSync, statSync } from 'node:fs';
15
+ import { pageAwaitsResponse } from '../../../core/human/page-schema.js';
15
16
  import { projectPageDisplayMarkdown } from '../../../core/human/page-markdown.js';
16
17
  import { parsePage } from '../../../core/human/page.js';
17
18
  import { pageManifestPath, pagePath, responsePath } from '../../../core/human/convention.js';
@@ -210,7 +211,7 @@ export class PageBlockComponent {
210
211
  footerLine(snapshot, maxW) {
211
212
  switch (snapshot.state) {
212
213
  case 'pending':
213
- return snapshot.manifest.delivery.reply
214
+ return pageAwaitsResponse(snapshot.manifest)
214
215
  ? `${YELLOW}▸ awaiting your answer${RESET} ${DIM}— ${sanitize(this.openHint())}${RESET}`
215
216
  : `${DIM}◦ queued in your inbox — ${sanitize(this.openHint())}${RESET}`;
216
217
  case 'resolved':