@makinbakin/sdk 0.0.1-rc.37 → 0.0.1-rc.39

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.
@@ -47,10 +47,10 @@ export declare function attentionForDone(payload: ConversationDonePayload, ctx:
47
47
  export declare function visibleIdFromLocation(pathname: string, base: string, opts?: {
48
48
  exclude?: readonly string[];
49
49
  }): string;
50
- /** Nav badge from unread totals + in-flight turns: count wins, dot while working. */
51
- export declare function badgeFor(totalUnread: number, inflightCount: number): {
50
+ /** Unread replies are informational; work in progress stays inside the conversation. */
51
+ export declare function badgeFor(totalUnread: number): {
52
52
  count?: number;
53
- tone: 'attention' | 'info';
53
+ tone: 'success';
54
54
  } | null;
55
55
  /** `(N) ` tab-title prefix management (idempotent). */
56
56
  export declare function withUnreadPrefix(title: string, totalUnread: number): string;
@@ -3,7 +3,7 @@
3
3
  * conversational surface's `nav-badge-providers` slot component (#703).
4
4
  * Mount the consumer's provider outside the router (the host renders the
5
5
  * slot on every page) and call this hook with the surface's wiring; it
6
- * keeps the nav badge (unread count / working dot), the optional `(N)`
6
+ * keeps the nav indicator (unread replies only), the optional `(N)`
7
7
  * tab-title prefix, and fires toast + chime + OS notification when a
8
8
  * reply lands while the user is elsewhere — rules in ./attention.ts,
9
9
  * mechanics generalized from chat's ChatBadgeProvider (which now
@@ -14,8 +14,6 @@ import { type PluginEventPayload } from '../../hooks/use-plugin-event';
14
14
  import { type ConversationDonePayload } from './attention';
15
15
  export interface ConversationAttentionTotals {
16
16
  unreadTotal: number;
17
- /** Threads with a server-seeded in-flight turn (kept live by chunk/done events). */
18
- inflightKeys: string[];
19
17
  }
20
18
  export interface ConversationAttentionConfig {
21
19
  pluginId: string;
@@ -26,7 +24,6 @@ export interface ConversationAttentionConfig {
26
24
  * silently dropped, so the type forbids them).
27
25
  */
28
26
  events: {
29
- chunk: string;
30
27
  done: string;
31
28
  error: string;
32
29
  started?: string;
@@ -35,7 +32,7 @@ export interface ConversationAttentionConfig {
35
32
  keyOf: (payload: PluginEventPayload) => string;
36
33
  /** The thread key currently on screen ('' = none) — read at event time. */
37
34
  visibleKey: () => string;
38
- /** Fetch unread + in-flight totals; null keeps the previous totals. */
35
+ /** Fetch unread totals; null keeps the previous totals. */
39
36
  refreshTotals: () => Promise<ConversationAttentionTotals | null>;
40
37
  /** Attention settings at event time. Default: sound + toasts on. */
41
38
  settings?: () => {