@itechchoice/prime-chatkit 0.1.0-alpha.6 → 0.1.0-alpha.8

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.
@@ -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[];
@@ -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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itechchoice/prime-chatkit",
3
- "version": "0.1.0-alpha.6",
3
+ "version": "0.1.0-alpha.8",
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": {