@itechchoice/prime-chatkit 0.1.0-alpha.5 → 0.1.0-alpha.7

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.
@@ -100,6 +100,9 @@ export type ThreadTaskDetail = {
100
100
  export type ThreadPart = {
101
101
  kind: "text";
102
102
  text: string;
103
+ } | {
104
+ kind: "note";
105
+ text: string;
103
106
  } | {
104
107
  kind: "tools";
105
108
  id: string;
@@ -731,10 +734,11 @@ declare const ThreadLinkContext: import("react").Context<((href: string, event:
731
734
  declare const ThreadMarkdown: import("react").NamedExoticComponent<{
732
735
  text: string;
733
736
  }>;
734
- declare function AgentMessage({ message: m, status, phase, clock, orchestratorAvatar, first, now, labels, askState, onTask, onAsk, onRetry, onCopy, onRegenerate, onFeedback, feedbackReasons, }: {
737
+ declare function AgentMessage({ message: m, status, phase, liveOpen, clock, orchestratorAvatar, first, now, labels, askState, onTask, onAsk, onRetry, onCopy, onRegenerate, onFeedback, feedbackReasons, }: {
735
738
  message: ThreadAgentMessage;
736
739
  status?: ReactNode;
737
740
  phase?: "working" | "writing" | "done";
741
+ liveOpen?: boolean;
738
742
  clock: Intl.DateTimeFormat;
739
743
  orchestratorAvatar?: string;
740
744
  first: boolean;
@@ -1,3 +1,5 @@
1
1
  import type { ChatMessage } from "./types";
2
+ /** Only the last assistant segment for each task may remain running or waiting. */
3
+ export declare function settleEarlierSegments(messages: ChatMessage[]): ChatMessage[];
2
4
  /** Map a chronological history page without mutating records or consulting the clock. */
3
5
  export declare function messagesFromHistory(records: unknown[]): ChatMessage[];
@@ -1,9 +1,12 @@
1
1
  import type { Run } from "../../core/types";
2
2
  import type { BlocksCopy, ThreadCopy } from "../i18n";
3
3
  /** The prototype's phase precedence, preferring concise tool names for the live status. */
4
- export declare function phaseLabel(run: Run, live: BlocksCopy["live"], copy: ThreadCopy): string;
5
- export declare function LiveStatus({ run, live, copy }: {
4
+ export declare function phaseLabel(run: Run, live: BlocksCopy["live"], copy: ThreadCopy, options?: {
5
+ hideTools?: boolean;
6
+ }): string;
7
+ export declare function LiveStatus({ run, live, copy, hideTools }: {
6
8
  run: Run;
7
9
  live: BlocksCopy["live"];
8
10
  copy: ThreadCopy;
11
+ hideTools?: boolean;
9
12
  }): import("react").JSX.Element | null;
@@ -30,6 +30,9 @@ export type ThreadDecision = {
30
30
  export type ThreadPart = {
31
31
  kind: "text";
32
32
  text: string;
33
+ } | {
34
+ kind: "note";
35
+ text: string;
33
36
  } | {
34
37
  kind: "tools";
35
38
  id: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itechchoice/prime-chatkit",
3
- "version": "0.1.0-alpha.5",
3
+ "version": "0.1.0-alpha.7",
4
4
  "description": "PrimeChatKit: React chat UI for products built on the prime-chatkit SDK BFF contract. Shows the agent's work: thinking, tool calls, approvals, sources and cost.",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "publishConfig": {