@lumerahq/ui 0.19.6-dev.1 → 0.20.0-dev.0

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 (62) hide show
  1. package/CHANGELOG.md +38 -0
  2. package/README.md +29 -15
  3. package/dist/{RecordSheet-vH48DkJ9.js → RecordSheet-CzJyCMVB.js} +1343 -759
  4. package/dist/{audit-log-BFPtNHQh.js → audit-log-Dmzbqtc0.js} +5 -5
  5. package/dist/{automations-TTSbZaKC.js → automations-DD15itWa.js} +53 -53
  6. package/dist/components/agent-chat/ActivityStrip.d.ts +6 -1
  7. package/dist/components/agent-chat/ActivityStrip.d.ts.map +1 -1
  8. package/dist/components/agent-chat/AgentChat.d.ts +1 -1
  9. package/dist/components/agent-chat/AgentChat.d.ts.map +1 -1
  10. package/dist/components/agent-chat/AgentChatComposer.d.ts +8 -0
  11. package/dist/components/agent-chat/AgentChatComposer.d.ts.map +1 -0
  12. package/dist/components/agent-chat/AgentChatEmptyState.d.ts +9 -0
  13. package/dist/components/agent-chat/AgentChatEmptyState.d.ts.map +1 -0
  14. package/dist/components/agent-chat/AgentChatHeader.d.ts +4 -0
  15. package/dist/components/agent-chat/AgentChatHeader.d.ts.map +1 -0
  16. package/dist/components/agent-chat/AgentChatToast.d.ts +5 -0
  17. package/dist/components/agent-chat/AgentChatToast.d.ts.map +1 -0
  18. package/dist/components/agent-chat/AgentChatTranscript.d.ts +24 -0
  19. package/dist/components/agent-chat/AgentChatTranscript.d.ts.map +1 -0
  20. package/dist/components/agent-chat/AssistantTurn.d.ts +40 -0
  21. package/dist/components/agent-chat/AssistantTurn.d.ts.map +1 -0
  22. package/dist/components/agent-chat/DefaultContentBlock.d.ts +4 -0
  23. package/dist/components/agent-chat/DefaultContentBlock.d.ts.map +1 -0
  24. package/dist/components/agent-chat/Markdown.d.ts +2 -2
  25. package/dist/components/agent-chat/ReasoningLine.d.ts +10 -0
  26. package/dist/components/agent-chat/ReasoningLine.d.ts.map +1 -0
  27. package/dist/components/agent-chat/SystemMarker.d.ts +7 -0
  28. package/dist/components/agent-chat/SystemMarker.d.ts.map +1 -0
  29. package/dist/components/agent-chat/ToolStepsCard.d.ts +17 -0
  30. package/dist/components/agent-chat/ToolStepsCard.d.ts.map +1 -0
  31. package/dist/components/agent-chat/TurnStatus.d.ts +11 -0
  32. package/dist/components/agent-chat/TurnStatus.d.ts.map +1 -0
  33. package/dist/components/agent-chat/UserMessage.d.ts +4 -0
  34. package/dist/components/agent-chat/UserMessage.d.ts.map +1 -0
  35. package/dist/components/agent-chat/activity-utils.d.ts +35 -8
  36. package/dist/components/agent-chat/activity-utils.d.ts.map +1 -1
  37. package/dist/components/agent-chat/hooks/use-autosize-textarea.d.ts +4 -0
  38. package/dist/components/agent-chat/hooks/use-autosize-textarea.d.ts.map +1 -0
  39. package/dist/components/agent-chat/hooks/use-stick-to-bottom.d.ts +7 -0
  40. package/dist/components/agent-chat/hooks/use-stick-to-bottom.d.ts.map +1 -0
  41. package/dist/components/agent-chat/hooks/use-transient-toast.d.ts +7 -0
  42. package/dist/components/agent-chat/hooks/use-transient-toast.d.ts.map +1 -0
  43. package/dist/components/agent-chat/index.d.ts +2 -1
  44. package/dist/components/agent-chat/index.d.ts.map +1 -1
  45. package/dist/components/agent-chat/tool-renderers/ToolCallCard.d.ts +4 -1
  46. package/dist/components/agent-chat/tool-renderers/ToolCallCard.d.ts.map +1 -1
  47. package/dist/components/agent-chat/types.d.ts +87 -19
  48. package/dist/components/agent-chat/types.d.ts.map +1 -1
  49. package/dist/components/index.d.ts +2 -2
  50. package/dist/components/index.d.ts.map +1 -1
  51. package/dist/components/index.js +28 -27
  52. package/dist/{formatters-D4T821Dv.js → formatters-BuHr2I8Z.js} +12 -12
  53. package/dist/{highlighted-body-OFNGDK62-CRKUSFzd.js → highlighted-body-OFNGDK62-DuBXfvG-.js} +1 -1
  54. package/dist/hooks/index.js +2 -2
  55. package/dist/index.js +102 -101
  56. package/dist/lib/index.js +72 -72
  57. package/dist/mermaid-GHXKKRXX-ByaXZtzi.js +4 -0
  58. package/dist/ui.css +517 -63
  59. package/dist/{use-automation-run-DEqPHNJJ.js → use-automation-run-1Fd0EFiJ.js} +2 -2
  60. package/dist/{use-sql-table-DpHd0VWk.js → use-sql-table-_aMNbZ6w.js} +2 -2
  61. package/package.json +3 -2
  62. package/dist/mermaid-GHXKKRXX-Dl-OSxG-.js +0 -4
@@ -1,4 +1,4 @@
1
- import { a2 as requestApi } from "./automations-TTSbZaKC.js";
1
+ import { a2 as requestApi } from "./automations-DD15itWa.js";
2
2
  const RECORD_AUDIT_EXPORT_LIMIT = 1e4;
3
3
  const RECORD_AUDIT_MAX_COLLECTIONS = 20;
4
4
  const normalizeRecordAuditPageSize = (value = 50) => Math.min(200, Math.max(1, Math.trunc(value) || 50));
@@ -135,11 +135,11 @@ async function fetchRecordAuditLogCsv(params, maxRows = RECORD_AUDIT_EXPORT_LIMI
135
135
  }
136
136
  export {
137
137
  RECORD_AUDIT_EXPORT_LIMIT as R,
138
- buildRecordAuditLogPath as a,
138
+ RECORD_AUDIT_MAX_COLLECTIONS as a,
139
139
  buildRecordAuditCsv as b,
140
- normalizeRecordAuditExportLimit as c,
141
- normalizeRecordAuditPageSize as d,
142
- RECORD_AUDIT_MAX_COLLECTIONS as e,
140
+ buildRecordAuditLogPath as c,
141
+ normalizeRecordAuditExportLimit as d,
142
+ normalizeRecordAuditPageSize as e,
143
143
  fetchRecordAuditLogCsv as f,
144
144
  getRecordAuditLogSnapshot as g,
145
145
  listRecordAuditLog as l,
@@ -1569,62 +1569,62 @@ async function listRunsByExternalId(params) {
1569
1569
  });
1570
1570
  }
1571
1571
  export {
1572
- listRunsByExternalId as $,
1573
- pbSql as A,
1572
+ sendEmail as $,
1573
+ isOrganizationMember as A,
1574
1574
  BridgeError as B,
1575
- pbUpdate as C,
1576
- pbUpdateRecord as D,
1575
+ isTerminalStatus as C,
1576
+ listAutomationRunFiles as D,
1577
1577
  EXPECTED_PARENT_ORIGIN as E,
1578
- pbUpsert as F,
1579
- sendEmail as G,
1580
- uploadFile as H,
1581
- automationStatuses as I,
1582
- cancelAutomationRun as J,
1583
- cancelRun as K,
1584
- clearAutomationCache as L,
1585
- createAutomationRun as M,
1586
- createRun as N,
1587
- ensureAutomationRun as O,
1588
- ensureRun as P,
1589
- getAutomationByExternalId as Q,
1590
- getAutomationRun as R,
1591
- getAutomationRunFileDownloadUrl as S,
1592
- getRun as T,
1593
- getRunFiles as U,
1594
- getRunFileUrl as V,
1595
- isActiveStatus as W,
1596
- isTerminalStatus as X,
1597
- listAutomationRunFiles as Y,
1598
- listRuns as Z,
1599
- listRunsByAgent as _,
1600
- getShareableAppUrl as a,
1601
- pollAutomationRun as a0,
1602
- pollRun as a1,
1578
+ listRuns as F,
1579
+ listRunsByAgent as G,
1580
+ listRunsByExternalId as H,
1581
+ logout as I,
1582
+ onInitMessage as J,
1583
+ parentApiRequest as K,
1584
+ parentApiStream as L,
1585
+ pbBulkDelete as M,
1586
+ pbBulkUpdate as N,
1587
+ pbCreate as O,
1588
+ pbDelete as P,
1589
+ pbGet as Q,
1590
+ pbList as R,
1591
+ pbSearch as S,
1592
+ pbSql as T,
1593
+ pbUpdate as U,
1594
+ pbUpdateRecord as V,
1595
+ pbUpsert as W,
1596
+ pollAutomationRun as X,
1597
+ pollRun as Y,
1598
+ postReadyMessage as Z,
1599
+ redirectToLogin as _,
1600
+ automationStatuses as a,
1601
+ serializeBridgeRuntimeConfig as a0,
1602
+ uploadFile as a1,
1603
1603
  requestApi as a2,
1604
1604
  resolveProjectResourceId as a3,
1605
1605
  buildShareableAppUrl as b,
1606
- configureBridge as c,
1607
- getViewerContext as d,
1608
- isDepartment as e,
1609
- isEmbedded as f,
1610
- getAppProjectExternalId as g,
1611
- hasMemberTag as h,
1612
- isCompanyAdmin as i,
1613
- isOrganizationMember as j,
1614
- parentApiStream as k,
1615
- logout as l,
1616
- postReadyMessage as m,
1617
- getDownloadUrl as n,
1618
- onInitMessage as o,
1619
- parentApiRequest as p,
1620
- getUploadUrl as q,
1621
- redirectToLogin as r,
1622
- serializeBridgeRuntimeConfig as s,
1623
- pbBulkDelete as t,
1624
- pbBulkUpdate as u,
1625
- pbCreate as v,
1626
- pbDelete as w,
1627
- pbGet as x,
1628
- pbList as y,
1629
- pbSearch as z
1606
+ cancelAutomationRun as c,
1607
+ cancelRun as d,
1608
+ clearAutomationCache as e,
1609
+ configureBridge as f,
1610
+ createAutomationRun as g,
1611
+ createRun as h,
1612
+ ensureAutomationRun as i,
1613
+ ensureRun as j,
1614
+ getAppProjectExternalId as k,
1615
+ getAutomationByExternalId as l,
1616
+ getAutomationRun as m,
1617
+ getAutomationRunFileDownloadUrl as n,
1618
+ getDownloadUrl as o,
1619
+ getRun as p,
1620
+ getRunFileUrl as q,
1621
+ getRunFiles as r,
1622
+ getShareableAppUrl as s,
1623
+ getUploadUrl as t,
1624
+ getViewerContext as u,
1625
+ hasMemberTag as v,
1626
+ isActiveStatus as w,
1627
+ isCompanyAdmin as x,
1628
+ isDepartment as y,
1629
+ isEmbedded as z
1630
1630
  };
@@ -1,18 +1,23 @@
1
1
  import { AgentChatContentBlock } from './types';
2
+ /** @deprecated Since 0.20; see {@link ActivityStrip}. */
2
3
  export interface ActivityStripItem {
3
4
  /** A thinking, tool_call, or tool_call_args_progress block. */
4
5
  block: AgentChatContentBlock;
5
6
  /** Stable render key for the step. */
6
7
  key: string;
7
8
  }
9
+ /** @deprecated Since 0.20; see {@link ActivityStrip}. */
8
10
  export interface ActivityStripProps {
9
11
  items: ActivityStripItem[];
10
12
  /** The strip belongs to the live tail of a streaming turn. */
11
13
  isStreaming?: boolean;
12
14
  className?: string;
13
15
  }
16
+ /** @deprecated Since 0.20; AgentChat renders reasoning and tool steps itself. */
14
17
  export declare function ActivityStrip({ items, isStreaming, className }: ActivityStripProps): import("react/jsx-runtime").JSX.Element;
15
18
  /**
19
+ * @deprecated Since 0.20; see {@link ActivityStrip}.
20
+ *
16
21
  * Collapsible reasoning block; auto-open and animated while streaming.
17
22
  * Collapsed it is a single quiet text line — the dashed inset appears only
18
23
  * when opened, so reasoning never reads as furniture in the transcript.
@@ -21,7 +26,7 @@ export declare function ThinkingBlock({ content, isStreaming }: {
21
26
  content: string;
22
27
  isStreaming?: boolean;
23
28
  }): import("react/jsx-runtime").JSX.Element;
24
- /** Transient "Preparing tool…" marker shown while streamed args assemble. */
29
+ /** @deprecated Since 0.20; see {@link ActivityStrip}. Transient "Preparing tool…" marker shown while streamed args assemble. */
25
30
  export declare function ToolArgsProgress({ payload }: {
26
31
  payload: unknown;
27
32
  }): import("react/jsx-runtime").JSX.Element;
@@ -1 +1 @@
1
- {"version":3,"file":"ActivityStrip.d.ts","sourceRoot":"","sources":["../../../src/components/agent-chat/ActivityStrip.tsx"],"names":[],"mappings":"AAuBA,OAAO,KAAK,EAAE,qBAAqB,EAAqB,MAAM,SAAS,CAAC;AAExE,MAAM,WAAW,iBAAiB;IAChC,+DAA+D;IAC/D,KAAK,EAAE,qBAAqB,CAAC;IAC7B,sCAAsC;IACtC,GAAG,EAAE,MAAM,CAAC;CACb;AAED,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,iBAAiB,EAAE,CAAC;IAC3B,8DAA8D;IAC9D,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,aAAa,CAAC,EAAE,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,EAAE,kBAAkB,2CA+ElF;AAeD;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,EAAE,OAAO,EAAE,WAAW,EAAE,EAAE;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,WAAW,CAAC,EAAE,OAAO,CAAA;CAAE,2CAoBjG;AAED,6EAA6E;AAC7E,wBAAgB,gBAAgB,CAAC,EAAE,OAAO,EAAE,EAAE;IAAE,OAAO,EAAE,OAAO,CAAA;CAAE,2CAQjE"}
1
+ {"version":3,"file":"ActivityStrip.d.ts","sourceRoot":"","sources":["../../../src/components/agent-chat/ActivityStrip.tsx"],"names":[],"mappings":"AA2BA,OAAO,KAAK,EAAE,qBAAqB,EAAqB,MAAM,SAAS,CAAC;AAExE,yDAAyD;AACzD,MAAM,WAAW,iBAAiB;IAChC,+DAA+D;IAC/D,KAAK,EAAE,qBAAqB,CAAC;IAC7B,sCAAsC;IACtC,GAAG,EAAE,MAAM,CAAC;CACb;AAED,yDAAyD;AACzD,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,iBAAiB,EAAE,CAAC;IAC3B,8DAA8D;IAC9D,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,iFAAiF;AACjF,wBAAgB,aAAa,CAAC,EAAE,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,EAAE,kBAAkB,2CA+ElF;AAeD;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,EAAE,OAAO,EAAE,WAAW,EAAE,EAAE;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,WAAW,CAAC,EAAE,OAAO,CAAA;CAAE,2CAoBjG;AAED,gIAAgI;AAChI,wBAAgB,gBAAgB,CAAC,EAAE,OAAO,EAAE,EAAE;IAAE,OAAO,EAAE,OAAO,CAAA;CAAE,2CAQjE"}
@@ -1,3 +1,3 @@
1
1
  import { AgentChatMetadata, AgentChatProps } from './types';
2
- export declare function AgentChat<TMeta extends AgentChatMetadata = AgentChatMetadata, TToolInput = unknown, TActionData = unknown>({ agentId, sessionId, agent, name, description, transport, initialMessages, initialPage, historyLimit, maxBufferedMessages, maxQueuedMessages, disabled, readOnly, watchdog, watchdogTimeoutMs, watchdogPollMs, discoveryPoll, className, labels: labelOverrides, features, renderers, onMessagesChange, onTurnComplete, onError, children, }: AgentChatProps<TMeta, TToolInput, TActionData>): import("react/jsx-runtime").JSX.Element;
2
+ export declare function AgentChat<TMeta extends AgentChatMetadata = AgentChatMetadata, TToolInput = unknown, TActionData = unknown>({ agentId, sessionId, agent, name, description, transport, initialMessages, initialPage, historyLimit, maxBufferedMessages, maxQueuedMessages, disabled, readOnly, watchdog, watchdogTimeoutMs, watchdogPollMs, discoveryPoll, suggestions, composerChips, onNewChat, headerLeft, headerRight, className, labels: labelOverrides, features, renderers, onMessagesChange, onTurnComplete, onError, children, }: AgentChatProps<TMeta, TToolInput, TActionData>): import("react/jsx-runtime").JSX.Element;
3
3
  //# sourceMappingURL=AgentChat.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AgentChat.d.ts","sourceRoot":"","sources":["../../../src/components/agent-chat/AgentChat.tsx"],"names":[],"mappings":"AA+BA,OAAO,KAAK,EASV,iBAAiB,EAEjB,cAAc,EAGf,MAAM,SAAS,CAAC;AAajB,wBAAgB,SAAS,CACvB,KAAK,SAAS,iBAAiB,GAAG,iBAAiB,EACnD,UAAU,GAAG,OAAO,EACpB,WAAW,GAAG,OAAO,EACrB,EACA,OAAO,EACP,SAAS,EACT,KAAK,EACL,IAAI,EACJ,WAAW,EACX,SAAS,EACT,eAAe,EACf,WAAW,EACX,YAAY,EACZ,mBAAmB,EACnB,iBAAiB,EACjB,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,iBAAiB,EACjB,cAAc,EACd,aAAa,EACb,SAAS,EACT,MAAM,EAAE,cAAc,EACtB,QAAQ,EACR,SAAS,EACT,gBAAgB,EAChB,cAAc,EACd,OAAO,EACP,QAAQ,GACT,EAAE,cAAc,CAAC,KAAK,EAAE,UAAU,EAAE,WAAW,CAAC,2CAsQhD"}
1
+ {"version":3,"file":"AgentChat.d.ts","sourceRoot":"","sources":["../../../src/components/agent-chat/AgentChat.tsx"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EAGV,iBAAiB,EACjB,cAAc,EAEf,MAAM,SAAS,CAAC;AAsBjB,wBAAgB,SAAS,CACvB,KAAK,SAAS,iBAAiB,GAAG,iBAAiB,EACnD,UAAU,GAAG,OAAO,EACpB,WAAW,GAAG,OAAO,EACrB,EACA,OAAO,EACP,SAAS,EACT,KAAK,EACL,IAAI,EACJ,WAAW,EACX,SAAS,EACT,eAAe,EACf,WAAW,EACX,YAAY,EACZ,mBAAmB,EACnB,iBAAiB,EACjB,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,iBAAiB,EACjB,cAAc,EACd,aAAa,EACb,WAAW,EACX,aAAa,EACb,SAAS,EACT,UAAU,EACV,WAAW,EACX,SAAS,EACT,MAAM,EAAE,cAAc,EACtB,QAAQ,EACR,SAAS,EACT,gBAAgB,EAChB,cAAc,EACd,OAAO,EACP,QAAQ,GACT,EAAE,cAAc,CAAC,KAAK,EAAE,UAAU,EAAE,WAAW,CAAC,2CAsKhD"}
@@ -0,0 +1,8 @@
1
+ import { AgentChatComposerRendererProps } from './types';
2
+ /**
3
+ * Default composer: one bordered box with pending-file chips, the textarea,
4
+ * and a toolbar (attach, Web chip, hint, send/stop). The border stays the same
5
+ * in every state; an in-flight turn adds a travelling accent trace along it.
6
+ */
7
+ export declare function AgentChatComposer({ state, actions }: AgentChatComposerRendererProps): import("react/jsx-runtime").JSX.Element;
8
+ //# sourceMappingURL=AgentChatComposer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AgentChatComposer.d.ts","sourceRoot":"","sources":["../../../src/components/agent-chat/AgentChatComposer.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,8BAA8B,EAAwB,MAAM,SAAS,CAAC;AAIpF;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,8BAA8B,2CA4GnF"}
@@ -0,0 +1,9 @@
1
+ export interface AgentChatEmptyStateProps {
2
+ name: string;
3
+ description?: string;
4
+ suggestions?: string[];
5
+ onPick?: (prompt: string) => void;
6
+ }
7
+ /** First-run view: accent glow, agent identity, and suggested prompts. */
8
+ export declare function AgentChatEmptyState({ name, description, suggestions, onPick }: AgentChatEmptyStateProps): import("react/jsx-runtime").JSX.Element;
9
+ //# sourceMappingURL=AgentChatEmptyState.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AgentChatEmptyState.d.ts","sourceRoot":"","sources":["../../../src/components/agent-chat/AgentChatEmptyState.tsx"],"names":[],"mappings":"AAEA,MAAM,WAAW,wBAAwB;IACvC,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;CACnC;AAED,0EAA0E;AAC1E,wBAAgB,mBAAmB,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,EAAE,EAAE,wBAAwB,2CAyCvG"}
@@ -0,0 +1,4 @@
1
+ import { AgentChatHeaderRendererProps } from './types';
2
+ /** Default header: avatar with activity dot, name, subtitle, and session actions. */
3
+ export declare function AgentChatHeader({ name, description, avatarUrl, isWorking, onNewChat, isCompacting, labels, headerLeft, headerRight, }: AgentChatHeaderRendererProps): import("react/jsx-runtime").JSX.Element;
4
+ //# sourceMappingURL=AgentChatHeader.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AgentChatHeader.d.ts","sourceRoot":"","sources":["../../../src/components/agent-chat/AgentChatHeader.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,SAAS,CAAC;AAE5D,qFAAqF;AACrF,wBAAgB,eAAe,CAAC,EAC9B,IAAI,EACJ,WAAW,EACX,SAAS,EACT,SAAS,EACT,SAAS,EACT,YAAY,EACZ,MAAM,EACN,UAAU,EACV,WAAW,GACZ,EAAE,4BAA4B,2CAuC9B"}
@@ -0,0 +1,5 @@
1
+ /** Short confirmation pill under the header ("Stopped", "New chat started"). */
2
+ export declare function AgentChatToast({ text }: {
3
+ text: string | null;
4
+ }): import("react/jsx-runtime").JSX.Element | null;
5
+ //# sourceMappingURL=AgentChatToast.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AgentChatToast.d.ts","sourceRoot":"","sources":["../../../src/components/agent-chat/AgentChatToast.tsx"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,wBAAgB,cAAc,CAAC,EAAE,IAAI,EAAE,EAAE;IAAE,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,kDAU/D"}
@@ -0,0 +1,24 @@
1
+ import { ReactNode } from 'react';
2
+ import { AgentChatLabels, AgentChatRenderers, AgentChatTurn } from './types';
3
+ export interface AgentChatTranscriptProps {
4
+ turns: AgentChatTurn[];
5
+ isStreaming: boolean;
6
+ /** The runtime is compacting context inside the newest turn. */
7
+ isCompacting?: boolean;
8
+ isLoadingHistory: boolean;
9
+ canLoadEarlier: boolean;
10
+ isLoadingEarlier: boolean;
11
+ onLoadEarlier: () => void;
12
+ error: unknown;
13
+ onRetryHistory: () => void;
14
+ onRetryTurn?: (requestId: string) => void;
15
+ toolDetails?: boolean;
16
+ labels: Required<AgentChatLabels>;
17
+ renderers?: AgentChatRenderers;
18
+ /** Rendered when there are no turns yet (and history is not loading). */
19
+ emptyState: ReactNode;
20
+ children?: ReactNode;
21
+ }
22
+ /** Scrolling message list: turns in order, pinned to the newest while it streams. */
23
+ export declare function AgentChatTranscript({ turns, isStreaming, isCompacting, isLoadingHistory, canLoadEarlier, isLoadingEarlier, onLoadEarlier, error, onRetryHistory, onRetryTurn, toolDetails, labels, renderers, emptyState, children, }: AgentChatTranscriptProps): import("react/jsx-runtime").JSX.Element;
24
+ //# sourceMappingURL=AgentChatTranscript.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AgentChatTranscript.d.ts","sourceRoot":"","sources":["../../../src/components/agent-chat/AgentChatTranscript.tsx"],"names":[],"mappings":"AACA,OAAO,EAAsB,KAAK,SAAS,EAAU,MAAM,OAAO,CAAC;AAInE,OAAO,KAAK,EAEV,eAAe,EAEf,kBAAkB,EAClB,aAAa,EACd,MAAM,SAAS,CAAC;AAGjB,MAAM,WAAW,wBAAwB;IACvC,KAAK,EAAE,aAAa,EAAE,CAAC;IACvB,WAAW,EAAE,OAAO,CAAC;IACrB,gEAAgE;IAChE,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,cAAc,EAAE,OAAO,CAAC;IACxB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,aAAa,EAAE,MAAM,IAAI,CAAC;IAC1B,KAAK,EAAE,OAAO,CAAC;IACf,cAAc,EAAE,MAAM,IAAI,CAAC;IAC3B,WAAW,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,MAAM,EAAE,QAAQ,CAAC,eAAe,CAAC,CAAC;IAClC,SAAS,CAAC,EAAE,kBAAkB,CAAC;IAC/B,yEAAyE;IACzE,UAAU,EAAE,SAAS,CAAC;IACtB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED,qFAAqF;AACrF,wBAAgB,mBAAmB,CAAC,EAClC,KAAK,EACL,WAAW,EACX,YAAY,EACZ,gBAAgB,EAChB,cAAc,EACd,gBAAgB,EAChB,aAAa,EACb,KAAK,EACL,cAAc,EACd,WAAW,EACX,WAAW,EACX,MAAM,EACN,SAAS,EACT,UAAU,EACV,QAAQ,GACT,EAAE,wBAAwB,2CA2D1B"}
@@ -0,0 +1,40 @@
1
+ import { ComponentType } from 'react';
2
+ import { AgentChatBlockRendererProps, AgentChatContentBlock, AgentChatLabels, AgentChatMessage, AgentChatTurn } from './types';
3
+ export interface AssistantTurnProps {
4
+ turn: AgentChatTurn;
5
+ isStreaming: boolean;
6
+ /** `false` hides reasoning and tool steps, leaving only content. */
7
+ toolDetails?: boolean;
8
+ ContentBlock?: ComponentType<AgentChatBlockRendererProps>;
9
+ }
10
+ /**
11
+ * Everything the agent produced for one request, in order: runs of activity
12
+ * collapse into a reasoning line plus a tool card, content renders as is.
13
+ * The turn's outcome is {@link TurnOutcome}, rendered by the transcript so
14
+ * custom message renderers get it too.
15
+ */
16
+ export declare function AssistantTurn({ turn, isStreaming, toolDetails, ContentBlock }: AssistantTurnProps): import("react/jsx-runtime").JSX.Element | null;
17
+ export type TurnOutcomeKind = 'compacting' | 'working' | 'failed';
18
+ /**
19
+ * What closes the assistant column, if anything: a compacting or working line
20
+ * while the turn is active and nothing is on screen yet, or the error block
21
+ * once it failed or was interrupted. Stopped turns show under the user bubble.
22
+ */
23
+ export declare function turnOutcome(status: AgentChatTurn['status'], hasOutput: boolean, isCompacting: boolean): TurnOutcomeKind | null;
24
+ /** Whether the agent has put anything visible on screen for this turn. */
25
+ export declare function turnHasOutput(turn: AgentChatTurn, toolDetails?: boolean, perMessage?: boolean): boolean;
26
+ export declare function TurnOutcome({ kind, turn, labels, onRetry, }: {
27
+ kind: TurnOutcomeKind;
28
+ turn: AgentChatTurn;
29
+ labels: Required<AgentChatLabels>;
30
+ onRetry?: (requestId: string) => void;
31
+ }): import("react/jsx-runtime").JSX.Element;
32
+ export declare function normalizedBlocks(message: Pick<AgentChatMessage, 'blocks' | 'content'>): AgentChatContentBlock[];
33
+ export declare function blockKey(block: AgentChatContentBlock, index: number): string;
34
+ /** Per-message assistant rendering for hosts that override `AssistantMessage`/`ContentBlock`. */
35
+ export declare function AssistantMessage({ message, isStreaming, ContentBlock, }: {
36
+ message: AgentChatMessage;
37
+ isStreaming?: boolean;
38
+ ContentBlock?: ComponentType<AgentChatBlockRendererProps>;
39
+ }): import("react/jsx-runtime").JSX.Element;
40
+ //# sourceMappingURL=AssistantTurn.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AssistantTurn.d.ts","sourceRoot":"","sources":["../../../src/components/agent-chat/AssistantTurn.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,aAAa,EAAW,MAAM,OAAO,CAAC;AAOpD,OAAO,KAAK,EACV,2BAA2B,EAC3B,qBAAqB,EACrB,eAAe,EACf,gBAAgB,EAGhB,aAAa,EACd,MAAM,SAAS,CAAC;AAEjB,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,aAAa,CAAC;IACpB,WAAW,EAAE,OAAO,CAAC;IACrB,oEAAoE;IACpE,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,YAAY,CAAC,EAAE,aAAa,CAAC,2BAA2B,CAAC,CAAC;CAC3D;AAwBD;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,WAAW,EAAE,YAAY,EAAE,EAAE,kBAAkB,kDA8CjG;AAED,MAAM,MAAM,eAAe,GAAG,YAAY,GAAG,SAAS,GAAG,QAAQ,CAAC;AAElE;;;;GAIG;AACH,wBAAgB,WAAW,CACzB,MAAM,EAAE,aAAa,CAAC,QAAQ,CAAC,EAC/B,SAAS,EAAE,OAAO,EAClB,YAAY,EAAE,OAAO,GACpB,eAAe,GAAG,IAAI,CAGxB;AAED,0EAA0E;AAC1E,wBAAgB,aAAa,CAAC,IAAI,EAAE,aAAa,EAAE,WAAW,CAAC,EAAE,OAAO,EAAE,UAAU,UAAQ,GAAG,OAAO,CAIrG;AAED,wBAAgB,WAAW,CAAC,EAC1B,IAAI,EACJ,IAAI,EACJ,MAAM,EACN,OAAO,GACR,EAAE;IACD,IAAI,EAAE,eAAe,CAAC;IACtB,IAAI,EAAE,aAAa,CAAC;IACpB,MAAM,EAAE,QAAQ,CAAC,eAAe,CAAC,CAAC;IAClC,OAAO,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;CACvC,2CAYA;AAgED,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,IAAI,CAAC,gBAAgB,EAAE,QAAQ,GAAG,SAAS,CAAC,GAAG,qBAAqB,EAAE,CAG/G;AAED,wBAAgB,QAAQ,CAAC,KAAK,EAAE,qBAAqB,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAM5E;AAED,iGAAiG;AACjG,wBAAgB,gBAAgB,CAAC,EAC/B,OAAO,EACP,WAAW,EACX,YAAY,GACb,EAAE;IACD,OAAO,EAAE,gBAAgB,CAAC;IAC1B,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,YAAY,CAAC,EAAE,aAAa,CAAC,2BAA2B,CAAC,CAAC;CAC3D,2CAeA"}
@@ -0,0 +1,4 @@
1
+ import { AgentChatBlockRendererProps } from './types';
2
+ /** Default rendering for one content block. Activity blocks fall back to their single-step look. */
3
+ export declare function DefaultContentBlock({ block, isStreaming }: AgentChatBlockRendererProps): import("react/jsx-runtime").JSX.Element | null;
4
+ //# sourceMappingURL=DefaultContentBlock.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DefaultContentBlock.d.ts","sourceRoot":"","sources":["../../../src/components/agent-chat/DefaultContentBlock.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAmB,2BAA2B,EAA4B,MAAM,SAAS,CAAC;AAEtG,oGAAoG;AACpG,wBAAgB,mBAAmB,CAAC,EAAE,KAAK,EAAE,WAAW,EAAE,EAAE,2BAA2B,kDA4BtF"}
@@ -4,8 +4,8 @@ export interface AgentChatMarkdownProps {
4
4
  isStreaming?: boolean;
5
5
  /**
6
6
  * 'prose' (default) renders document-scale typography via Tailwind prose;
7
- * 'chat' renders the compact 13px conversation scale used by the flat
8
- * appearance (see {@link chatMarkdownComponents}).
7
+ * 'chat' renders the conversation scale the default transcript uses
8
+ * (see {@link chatMarkdownComponents}).
9
9
  */
10
10
  variant?: 'prose' | 'chat';
11
11
  className?: string;
@@ -0,0 +1,10 @@
1
+ import { AgentChatThinkingBlock } from './types';
2
+ export interface ReasoningLineProps {
3
+ blocks: AgentChatThinkingBlock[];
4
+ isStreaming?: boolean;
5
+ /** Optional label override; by default the label follows the reasoning state. */
6
+ label?: string;
7
+ }
8
+ /** One quiet line per run of reasoning; opens to the full thought text. */
9
+ export declare function ReasoningLine({ blocks, isStreaming, label }: ReasoningLineProps): import("react/jsx-runtime").JSX.Element;
10
+ //# sourceMappingURL=ReasoningLine.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ReasoningLine.d.ts","sourceRoot":"","sources":["../../../src/components/agent-chat/ReasoningLine.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAEtD,MAAM,WAAW,kBAAkB;IACjC,MAAM,EAAE,sBAAsB,EAAE,CAAC;IACjC,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,iFAAiF;IACjF,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,2EAA2E;AAC3E,wBAAgB,aAAa,CAAC,EAAE,MAAM,EAAE,WAAmB,EAAE,KAAK,EAAE,EAAE,kBAAkB,2CAoCvF"}
@@ -0,0 +1,7 @@
1
+ import { AgentChatMessageRendererProps } from './types';
2
+ /**
3
+ * Hairline row for system events. Compaction gets the designed
4
+ * "Compacted · …" marker plus a collapsible recap; other rows show their text.
5
+ */
6
+ export declare function SystemMarker({ message }: AgentChatMessageRendererProps): import("react/jsx-runtime").JSX.Element;
7
+ //# sourceMappingURL=SystemMarker.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SystemMarker.d.ts","sourceRoot":"","sources":["../../../src/components/agent-chat/SystemMarker.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,SAAS,CAAC;AAI7D;;;GAGG;AACH,wBAAgB,YAAY,CAAC,EAAE,OAAO,EAAE,EAAE,6BAA6B,2CAyBtE"}
@@ -0,0 +1,17 @@
1
+ import { AgentChatToolCall } from './types';
2
+ export interface ToolStepsCardProps {
3
+ toolCalls: AgentChatToolCall[];
4
+ /** Name of a tool whose arguments are still streaming in, shown as a pending step. */
5
+ preparingTool?: string | null;
6
+ /** The card belongs to the live tail of a streaming turn. */
7
+ isStreaming?: boolean;
8
+ /** The turn is over (completed, failed, interrupted, or stopped): a step still marked running reads as done, no spinner. */
9
+ settled?: boolean;
10
+ }
11
+ /**
12
+ * One card per run of tool steps: a status header ("Working…" then the last
13
+ * step's label), the step count, and rows that expand into each step's detail.
14
+ * Open while running, collapsed once done, unless the user toggled it.
15
+ */
16
+ export declare function ToolStepsCard({ toolCalls, preparingTool, isStreaming, settled }: ToolStepsCardProps): import("react/jsx-runtime").JSX.Element;
17
+ //# sourceMappingURL=ToolStepsCard.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ToolStepsCard.d.ts","sourceRoot":"","sources":["../../../src/components/agent-chat/ToolStepsCard.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAEjD,MAAM,WAAW,kBAAkB;IACjC,SAAS,EAAE,iBAAiB,EAAE,CAAC;IAC/B,sFAAsF;IACtF,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,6DAA6D;IAC7D,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,4HAA4H;IAC5H,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,EAAE,SAAS,EAAE,aAAa,EAAE,WAAmB,EAAE,OAAe,EAAE,EAAE,kBAAkB,2CAyDnH"}
@@ -0,0 +1,11 @@
1
+ /** Failed turn: accent-tinted block with the error and an in-place Retry. */
2
+ export declare function ErrorBlock({ message, retryLabel, onRetry, }: {
3
+ message: string;
4
+ retryLabel: string;
5
+ onRetry?: () => void;
6
+ }): import("react/jsx-runtime").JSX.Element;
7
+ /** Active turn before anything streamed in. */
8
+ export declare function WorkingLine({ label }: {
9
+ label: string;
10
+ }): import("react/jsx-runtime").JSX.Element;
11
+ //# sourceMappingURL=TurnStatus.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TurnStatus.d.ts","sourceRoot":"","sources":["../../../src/components/agent-chat/TurnStatus.tsx"],"names":[],"mappings":"AAEA,6EAA6E;AAC7E,wBAAgB,UAAU,CAAC,EACzB,OAAO,EACP,UAAU,EACV,OAAO,GACR,EAAE;IACD,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB,2CAQA;AAED,+CAA+C;AAC/C,wBAAgB,WAAW,CAAC,EAAE,KAAK,EAAE,EAAE;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,2CAOvD"}
@@ -0,0 +1,4 @@
1
+ import { AgentChatMessageRendererProps } from './types';
2
+ /** Right-aligned accent bubble with attached files above it and the turn's durable status (Queued, Stopped) below, as in Studio. */
3
+ export declare function UserMessage({ message, labels }: AgentChatMessageRendererProps): import("react/jsx-runtime").JSX.Element;
4
+ //# sourceMappingURL=UserMessage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UserMessage.d.ts","sourceRoot":"","sources":["../../../src/components/agent-chat/UserMessage.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAiB,6BAA6B,EAAE,MAAM,SAAS,CAAC;AAE5E,oIAAoI;AACpI,wBAAgB,WAAW,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,6BAA6B,2CAkB7E"}
@@ -1,24 +1,51 @@
1
- import { AgentChatContentBlock, AgentChatToolCall } from './types.js';
1
+ import { AgentChatContentBlock, AgentChatThinkingBlock, AgentChatToolCall } from './types.js';
2
2
  /**
3
3
  * Blocks that represent agent work-in-progress rather than content for the
4
4
  * reader: reasoning, tool calls, and the streaming "preparing tool" marker.
5
5
  */
6
6
  export declare function isActivityBlock(block: AgentChatContentBlock): boolean;
7
+ /** One tool step as the card renders it: a label and an optional mono detail. */
8
+ export interface ToolStepLabel {
9
+ label: string;
10
+ detail?: string;
11
+ }
7
12
  /**
8
- * Run-length encode consecutive duplicate labels: ["Read a.md", "Read a.md",
9
- * "Read a.md", "Queried records"] → ["Read a.md ×3", "Queried records"].
13
+ * Split a renderer summary into the row's label and right-aligned detail:
14
+ * "📊 Queried Customers · 3 rows" → { label: "Queried Customers", detail: "3 rows" }.
15
+ * Only the last " · " separates the detail so labels may contain the glyph.
10
16
  */
11
- export declare function encodeActivityLabels(labels: string[]): string[];
12
- /** Clip a label for the one-line summary without breaking mid-word badly. */
17
+ export declare function splitStepLabel(summary: string): ToolStepLabel;
18
+ /** Clip a label for the one-line card header without breaking mid-word badly. */
13
19
  export declare function clipLabel(label: string, max?: number): string;
14
20
  /**
15
- * Compose the collapsed summary line from per-step labels: dedupe with ×N,
16
- * show the first `shown` entries, count the rest.
21
+ * The card header once every step settled: the last step's label, since the
22
+ * final action ("Created record in Tickets") is what the turn accomplished.
17
23
  */
18
- export declare function summarizeActivityLabels(labels: string[], shown?: number): string;
24
+ export declare function toolCardTitle(labels: ToolStepLabel[]): string;
25
+ /** "3 steps" / "1 step". */
26
+ export declare function stepCountLabel(count: number): string;
19
27
  /**
20
28
  * Wall-clock duration of a run of tool calls, in whole seconds, when every
21
29
  * call carries timestamps and the run is finished. Null when unknowable.
22
30
  */
23
31
  export declare function activityDurationSeconds(toolCalls: AgentChatToolCall[]): number | null;
32
+ /**
33
+ * Seconds spent reasoning across a run of thinking blocks, from the live
34
+ * stream's stamps. Null for history rows, which carry no timing.
35
+ */
36
+ export declare function thinkingDurationSeconds(blocks: AgentChatThinkingBlock[]): number | null;
37
+ /** "Thinking…" while live, "Thought for 3s" when timed, "Reasoning" otherwise. */
38
+ export declare function reasoningLabel(seconds: number | null, isStreaming: boolean): string;
39
+ /**
40
+ * @deprecated Since 0.20; only the deprecated ActivityStrip uses it. Run-length
41
+ * encode consecutive duplicate labels: ["Read a.md", "Read a.md", "Queried"]
42
+ * → ["Read a.md ×2", "Queried"].
43
+ */
44
+ export declare function encodeActivityLabels(labels: string[]): string[];
45
+ /**
46
+ * @deprecated Since 0.20; only the deprecated ActivityStrip uses it. Compose
47
+ * the collapsed summary line from per-step labels: dedupe with ×N, show the
48
+ * first `shown` entries, count the rest.
49
+ */
50
+ export declare function summarizeActivityLabels(labels: string[], shown?: number): string;
24
51
  //# sourceMappingURL=activity-utils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"activity-utils.d.ts","sourceRoot":"","sources":["../../../src/components/agent-chat/activity-utils.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,KAAK,EAAE,qBAAqB,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAE3E;;;GAGG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,qBAAqB,GAAG,OAAO,CAMrE;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,MAAM,EAAE,GAAG,MAAM,EAAE,CAQ/D;AAED,6EAA6E;AAC7E,wBAAgB,SAAS,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,SAAK,GAAG,MAAM,CAGzD;AAED;;;GAGG;AACH,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,MAAM,EAAE,EAAE,KAAK,SAAI,GAAG,MAAM,CAM3E;AAED;;;GAGG;AACH,wBAAgB,uBAAuB,CAAC,SAAS,EAAE,iBAAiB,EAAE,GAAG,MAAM,GAAG,IAAI,CAerF"}
1
+ {"version":3,"file":"activity-utils.d.ts","sourceRoot":"","sources":["../../../src/components/agent-chat/activity-utils.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,KAAK,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAEnG;;;GAGG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,qBAAqB,GAAG,OAAO,CAMrE;AAOD,iFAAiF;AACjF,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,OAAO,EAAE,MAAM,GAAG,aAAa,CAO7D;AAED,iFAAiF;AACjF,wBAAgB,SAAS,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,SAAK,GAAG,MAAM,CAGzD;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAAC,MAAM,EAAE,aAAa,EAAE,GAAG,MAAM,CAG7D;AAED,4BAA4B;AAC5B,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAEpD;AAED;;;GAGG;AACH,wBAAgB,uBAAuB,CAAC,SAAS,EAAE,iBAAiB,EAAE,GAAG,MAAM,GAAG,IAAI,CAerF;AAED;;;GAGG;AACH,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,sBAAsB,EAAE,GAAG,MAAM,GAAG,IAAI,CAYvF;AAED,kFAAkF;AAClF,wBAAgB,cAAc,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,EAAE,WAAW,EAAE,OAAO,GAAG,MAAM,CAInF;AAID;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,MAAM,EAAE,GAAG,MAAM,EAAE,CAQ/D;AAED;;;;GAIG;AACH,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,MAAM,EAAE,EAAE,KAAK,SAAI,GAAG,MAAM,CAM3E"}
@@ -0,0 +1,4 @@
1
+ import { RefObject } from 'react';
2
+ /** Grow a textarea with its content, scrolling once it passes `maxHeight`. */
3
+ export declare function useAutosizeTextarea(ref: RefObject<HTMLTextAreaElement | null>, value: string, maxHeight: number): void;
4
+ //# sourceMappingURL=use-autosize-textarea.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-autosize-textarea.d.ts","sourceRoot":"","sources":["../../../../src/components/agent-chat/hooks/use-autosize-textarea.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAmB,MAAM,OAAO,CAAC;AAExD,8EAA8E;AAC9E,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,SAAS,CAAC,mBAAmB,GAAG,IAAI,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,QAS/G"}
@@ -0,0 +1,7 @@
1
+ import { RefObject } from 'react';
2
+ /**
3
+ * Keep a scroll viewport pinned to its end while `signal` changes, unless the
4
+ * user scrolled up to read. Attach the returned handler to `onScroll`.
5
+ */
6
+ export declare function useStickToBottom(ref: RefObject<HTMLElement | null>, signal: unknown): () => void;
7
+ //# sourceMappingURL=use-stick-to-bottom.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-stick-to-bottom.d.ts","sourceRoot":"","sources":["../../../../src/components/agent-chat/hooks/use-stick-to-bottom.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAkC,MAAM,OAAO,CAAC;AAIvE;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,EAAE,MAAM,EAAE,OAAO,GAAG,MAAM,IAAI,CAqBhG"}
@@ -0,0 +1,7 @@
1
+ export declare const TOAST_MS = 1800;
2
+ /** One auto-dismissing toast at a time; showing a new one restarts the timer. */
3
+ export declare function useTransientToast(durationMs?: number): {
4
+ toast: string | null;
5
+ show: (text: string) => void;
6
+ };
7
+ //# sourceMappingURL=use-transient-toast.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-transient-toast.d.ts","sourceRoot":"","sources":["../../../../src/components/agent-chat/hooks/use-transient-toast.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,QAAQ,OAAQ,CAAC;AAE9B,iFAAiF;AACjF,wBAAgB,iBAAiB,CAAC,UAAU,SAAW,GAAG;IAAE,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,IAAI,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAA;CAAE,CAwB/G"}
@@ -3,6 +3,7 @@ export { AgentChat } from './AgentChat';
3
3
  export { ArtifactCard } from './ArtifactCard';
4
4
  export { activityDurationSeconds, clipLabel, encodeActivityLabels, isActivityBlock, summarizeActivityLabels, } from './activity-utils';
5
5
  export { chatMarkdownComponents } from './chat-markdown';
6
+ export { DefaultContentBlock } from './DefaultContentBlock';
6
7
  export type { LumeraAgentChatTransportOptions } from './lumera-agent-transport';
7
8
  export { createLumeraAgentChatTransport } from './lumera-agent-transport';
8
9
  export { AgentChatMarkdown, type AgentChatMarkdownProps } from './Markdown';
@@ -10,5 +11,5 @@ export { isSessionActive, parseSessionActivity, type SessionActivity, } from './
10
11
  export { defaultToolRenderers, findRenderer, getCollectionMap, humanizeCollectionName, isExploratoryToolCallError, warmCollectionCache, } from './tool-renderers';
11
12
  export { ToolCallCard, type ToolCallCardProps, ToolRenderersProvider, useToolRenderers, } from './tool-renderers/ToolCallCard';
12
13
  export type { CollectionMap as AgentChatCollectionMap, ToolCallLike as AgentChatToolCallLike, ToolRenderer as AgentChatToolRenderer, } from './tool-renderers/types';
13
- export type { AgentChatAbortRequest, AgentChatAction, AgentChatActionBlock, AgentChatActiveStatus, AgentChatAgentProfile, AgentChatAgentRequest, AgentChatAppearance, AgentChatBlockRendererProps, AgentChatCompactionBlock, AgentChatComposerActions, AgentChatComposerRendererProps, AgentChatComposerState, AgentChatContentBlock, AgentChatCustomBlock, AgentChatFeatureFlags, AgentChatFile, AgentChatFileBlock, AgentChatHeaderRendererProps, AgentChatHistoryPage, AgentChatHistoryRequest, AgentChatHistoryResult, AgentChatID, AgentChatInfoBlock, AgentChatLabels, AgentChatLoadEarlierRequest, AgentChatMessage, AgentChatMessageRendererProps, AgentChatMessageRole, AgentChatMetadata, AgentChatOperationStatus, AgentChatPendingFile, AgentChatPhase, AgentChatProps, AgentChatRenameSessionRequest, AgentChatRenderers, AgentChatResizableWidthOptions, AgentChatRetryRequest, AgentChatSession, AgentChatSessionListRequest, AgentChatSessionListResult, AgentChatStreamEvent, AgentChatStreamHandlers, AgentChatSubmitInput, AgentChatSubmitResult, AgentChatSubscription, AgentChatTerminalStatus, AgentChatTextBlock, AgentChatThinkingBlock, AgentChatTokenUsage, AgentChatToolCall, AgentChatToolCallBlock, AgentChatTransport, AgentChatTurn, AgentChatTurnStatus, } from './types';
14
+ export type { AgentChatAbortRequest, AgentChatAction, AgentChatActionBlock, AgentChatActiveStatus, AgentChatAgentProfile, AgentChatAgentRequest, AgentChatAppearance, AgentChatBlockRendererProps, AgentChatCompactionBlock, AgentChatComposerActions, AgentChatComposerChip, AgentChatComposerRendererProps, AgentChatComposerState, AgentChatContentBlock, AgentChatCustomBlock, AgentChatFeatureFlags, AgentChatFile, AgentChatFileBlock, AgentChatHeaderRendererProps, AgentChatHistoryPage, AgentChatHistoryRequest, AgentChatHistoryResult, AgentChatID, AgentChatInfoBlock, AgentChatLabels, AgentChatLoadEarlierRequest, AgentChatMessage, AgentChatMessageRendererProps, AgentChatMessageRole, AgentChatMetadata, AgentChatOperationStatus, AgentChatPendingFile, AgentChatPhase, AgentChatProps, AgentChatRenameSessionRequest, AgentChatRenderers, AgentChatResizableWidthOptions, AgentChatRetryRequest, AgentChatSession, AgentChatSessionListRequest, AgentChatSessionListResult, AgentChatStreamEvent, AgentChatStreamHandlers, AgentChatSubmitInput, AgentChatSubmitResult, AgentChatSubscription, AgentChatTerminalStatus, AgentChatTextBlock, AgentChatThinkingBlock, AgentChatTokenUsage, AgentChatToolCall, AgentChatToolCallBlock, AgentChatTransport, AgentChatTurn, AgentChatTurnStatus, } from './types';
14
15
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/agent-chat/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,KAAK,iBAAiB,EAAE,KAAK,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACjG,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EACL,uBAAuB,EACvB,SAAS,EACT,oBAAoB,EACpB,eAAe,EACf,uBAAuB,GACxB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,YAAY,EAAE,+BAA+B,EAAE,MAAM,0BAA0B,CAAC;AAChF,OAAO,EAAE,8BAA8B,EAAE,MAAM,0BAA0B,CAAC;AAC1E,OAAO,EAAE,iBAAiB,EAAE,KAAK,sBAAsB,EAAE,MAAM,YAAY,CAAC;AAC5E,OAAO,EACL,eAAe,EACf,oBAAoB,EACpB,KAAK,eAAe,GACrB,MAAM,oBAAoB,CAAC;AAG5B,OAAO,EACL,oBAAoB,EACpB,YAAY,EACZ,gBAAgB,EAChB,sBAAsB,EACtB,0BAA0B,EAC1B,mBAAmB,GACpB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,YAAY,EACZ,KAAK,iBAAiB,EACtB,qBAAqB,EACrB,gBAAgB,GACjB,MAAM,+BAA+B,CAAC;AACvC,YAAY,EACV,aAAa,IAAI,sBAAsB,EACvC,YAAY,IAAI,qBAAqB,EACrC,YAAY,IAAI,qBAAqB,GACtC,MAAM,wBAAwB,CAAC;AAEhC,YAAY,EACV,qBAAqB,EACrB,eAAe,EACf,oBAAoB,EACpB,qBAAqB,EACrB,qBAAqB,EACrB,qBAAqB,EACrB,mBAAmB,EACnB,2BAA2B,EAC3B,wBAAwB,EACxB,wBAAwB,EACxB,8BAA8B,EAC9B,sBAAsB,EACtB,qBAAqB,EACrB,oBAAoB,EACpB,qBAAqB,EACrB,aAAa,EACb,kBAAkB,EAClB,4BAA4B,EAC5B,oBAAoB,EACpB,uBAAuB,EACvB,sBAAsB,EACtB,WAAW,EACX,kBAAkB,EAClB,eAAe,EACf,2BAA2B,EAC3B,gBAAgB,EAChB,6BAA6B,EAC7B,oBAAoB,EACpB,iBAAiB,EACjB,wBAAwB,EACxB,oBAAoB,EACpB,cAAc,EACd,cAAc,EACd,6BAA6B,EAC7B,kBAAkB,EAClB,8BAA8B,EAC9B,qBAAqB,EACrB,gBAAgB,EAChB,2BAA2B,EAC3B,0BAA0B,EAC1B,oBAAoB,EACpB,uBAAuB,EACvB,oBAAoB,EACpB,qBAAqB,EACrB,qBAAqB,EACrB,uBAAuB,EACvB,kBAAkB,EAClB,sBAAsB,EACtB,mBAAmB,EACnB,iBAAiB,EACjB,sBAAsB,EACtB,kBAAkB,EAClB,aAAa,EACb,mBAAmB,GACpB,MAAM,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/agent-chat/index.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,aAAa,EAAE,KAAK,iBAAiB,EAAE,KAAK,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACjG,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EACL,uBAAuB,EACvB,SAAS,EACT,oBAAoB,EACpB,eAAe,EACf,uBAAuB,GACxB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,YAAY,EAAE,+BAA+B,EAAE,MAAM,0BAA0B,CAAC;AAChF,OAAO,EAAE,8BAA8B,EAAE,MAAM,0BAA0B,CAAC;AAC1E,OAAO,EAAE,iBAAiB,EAAE,KAAK,sBAAsB,EAAE,MAAM,YAAY,CAAC;AAC5E,OAAO,EACL,eAAe,EACf,oBAAoB,EACpB,KAAK,eAAe,GACrB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EACL,oBAAoB,EACpB,YAAY,EACZ,gBAAgB,EAChB,sBAAsB,EACtB,0BAA0B,EAC1B,mBAAmB,GACpB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,YAAY,EACZ,KAAK,iBAAiB,EACtB,qBAAqB,EACrB,gBAAgB,GACjB,MAAM,+BAA+B,CAAC;AACvC,YAAY,EACV,aAAa,IAAI,sBAAsB,EACvC,YAAY,IAAI,qBAAqB,EACrC,YAAY,IAAI,qBAAqB,GACtC,MAAM,wBAAwB,CAAC;AAChC,YAAY,EACV,qBAAqB,EACrB,eAAe,EACf,oBAAoB,EACpB,qBAAqB,EACrB,qBAAqB,EACrB,qBAAqB,EACrB,mBAAmB,EACnB,2BAA2B,EAC3B,wBAAwB,EACxB,wBAAwB,EACxB,qBAAqB,EACrB,8BAA8B,EAC9B,sBAAsB,EACtB,qBAAqB,EACrB,oBAAoB,EACpB,qBAAqB,EACrB,aAAa,EACb,kBAAkB,EAClB,4BAA4B,EAC5B,oBAAoB,EACpB,uBAAuB,EACvB,sBAAsB,EACtB,WAAW,EACX,kBAAkB,EAClB,eAAe,EACf,2BAA2B,EAC3B,gBAAgB,EAChB,6BAA6B,EAC7B,oBAAoB,EACpB,iBAAiB,EACjB,wBAAwB,EACxB,oBAAoB,EACpB,cAAc,EACd,cAAc,EACd,6BAA6B,EAC7B,kBAAkB,EAClB,8BAA8B,EAC9B,qBAAqB,EACrB,gBAAgB,EAChB,2BAA2B,EAC3B,0BAA0B,EAC1B,oBAAoB,EACpB,uBAAuB,EACvB,oBAAoB,EACpB,qBAAqB,EACrB,qBAAqB,EACrB,uBAAuB,EACvB,kBAAkB,EAClB,sBAAsB,EACtB,mBAAmB,EACnB,iBAAiB,EACjB,sBAAsB,EACtB,kBAAkB,EAClB,aAAa,EACb,mBAAmB,GACpB,MAAM,SAAS,CAAC"}
@@ -1,4 +1,5 @@
1
1
  import { HTMLAttributes, ReactNode } from 'react';
2
+ import { ToolStepLabel } from '../activity-utils';
2
3
  import { AgentChatToolCall } from '../types';
3
4
  import { ToolRenderer } from './types';
4
5
  /** Provides consumer-supplied tool renderers to nested ToolCallCards. */
@@ -12,6 +13,8 @@ export interface ToolCallCardProps extends HTMLAttributes<HTMLDivElement> {
12
13
  toolCall: AgentChatToolCall;
13
14
  /** Explicit overrides; defaults to the nearest ToolRenderersProvider value. */
14
15
  renderers?: ToolRenderer[];
16
+ /** Pre-computed label; the card derives one from the renderer when omitted. */
17
+ label?: ToolStepLabel;
15
18
  }
16
- export declare function ToolCallCard({ toolCall, renderers, className, ...props }: ToolCallCardProps): import("react/jsx-runtime").JSX.Element;
19
+ export declare function ToolCallCard({ toolCall, renderers, label, className, ...props }: ToolCallCardProps): import("react/jsx-runtime").JSX.Element;
17
20
  //# sourceMappingURL=ToolCallCard.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ToolCallCard.d.ts","sourceRoot":"","sources":["../../../../src/components/agent-chat/tool-renderers/ToolCallCard.tsx"],"names":[],"mappings":"AAYA,OAAO,EAAiB,KAAK,cAAc,EAAE,KAAK,SAAS,EAA4C,MAAM,OAAO,CAAC;AAErH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAElD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAO5C,yEAAyE;AACzE,wBAAgB,qBAAqB,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE;IAAE,SAAS,CAAC,EAAE,YAAY,EAAE,CAAC;IAAC,QAAQ,EAAE,SAAS,CAAA;CAAE,2CAEjH;AAED,8EAA8E;AAC9E,wBAAgB,gBAAgB,IAAI,YAAY,EAAE,GAAG,SAAS,CAE7D;AAED,MAAM,WAAW,iBAAkB,SAAQ,cAAc,CAAC,cAAc,CAAC;IACvE,QAAQ,EAAE,iBAAiB,CAAC;IAC5B,+EAA+E;IAC/E,SAAS,CAAC,EAAE,YAAY,EAAE,CAAC;CAC5B;AAED,wBAAgB,YAAY,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,iBAAiB,2CAuG3F"}
1
+ {"version":3,"file":"ToolCallCard.d.ts","sourceRoot":"","sources":["../../../../src/components/agent-chat/tool-renderers/ToolCallCard.tsx"],"names":[],"mappings":"AAUA,OAAO,EAAiB,KAAK,cAAc,EAAE,KAAK,SAAS,EAA4C,MAAM,OAAO,CAAC;AAErH,OAAO,EAAkB,KAAK,aAAa,EAAE,MAAM,mBAAmB,CAAC;AACvE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAElD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAO5C,yEAAyE;AACzE,wBAAgB,qBAAqB,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE;IAAE,SAAS,CAAC,EAAE,YAAY,EAAE,CAAC;IAAC,QAAQ,EAAE,SAAS,CAAA;CAAE,2CAEjH;AAED,8EAA8E;AAC9E,wBAAgB,gBAAgB,IAAI,YAAY,EAAE,GAAG,SAAS,CAE7D;AAED,MAAM,WAAW,iBAAkB,SAAQ,cAAc,CAAC,cAAc,CAAC;IACvE,QAAQ,EAAE,iBAAiB,CAAC;IAC5B,+EAA+E;IAC/E,SAAS,CAAC,EAAE,YAAY,EAAE,CAAC;IAC3B,+EAA+E;IAC/E,KAAK,CAAC,EAAE,aAAa,CAAC;CACvB;AAED,wBAAgB,YAAY,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,iBAAiB,2CA0FlG"}