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

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.
@@ -12,6 +12,8 @@ export declare function idGreater(a: string, b: string): boolean;
12
12
  export declare function createRun(taskId: string, now?: number): Run;
13
13
  /** Text the user should read as the answer right now: the confirmed final text, else the newest turn still writing */
14
14
  export declare function answerText(run: Run): string;
15
+ /** The backend joins reasoning sections without separators; restore blank lines before their headings. */
16
+ export declare function reasoningText(text: string): string;
15
17
  export type AnswerSource = {
16
18
  label: string;
17
19
  href?: string;
@@ -3,10 +3,11 @@ export type OlderMessages = {
3
3
  loading: boolean;
4
4
  onLoad: () => void;
5
5
  };
6
- /** Layout glue: only follow while the reader remains at the bottom. */
6
+ /** Layout glue: follow at the bottom and resume when the reader sends or explicitly jumps. */
7
7
  export declare function useFollowLatest({ messages, older, active }: {
8
8
  messages: readonly {
9
9
  id: string;
10
+ role: "user" | "assistant";
10
11
  }[];
11
12
  older?: OlderMessages;
12
13
  active?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itechchoice/prime-chatkit",
3
- "version": "0.1.0-alpha.7",
3
+ "version": "0.1.0-alpha.9",
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": {