@promptbook/markdown-utils 0.110.0-7 → 0.110.0-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.
package/esm/index.es.js CHANGED
@@ -23,7 +23,7 @@ const BOOK_LANGUAGE_VERSION = '2.0.0';
23
23
  * @generated
24
24
  * @see https://github.com/webgptorg/promptbook
25
25
  */
26
- const PROMPTBOOK_ENGINE_VERSION = '0.110.0-7';
26
+ const PROMPTBOOK_ENGINE_VERSION = '0.110.0-8';
27
27
  /**
28
28
  * TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
29
29
  * Note: [💞] Ignore a discrepancy between file name and entity name
@@ -45,6 +45,10 @@ export type AgentChipProps = {
45
45
  * Additional CSS class name
46
46
  */
47
47
  className?: string;
48
+ /**
49
+ * Optional suffix appended to the agent label (e.g., " (2x)").
50
+ */
51
+ labelSuffix?: string;
48
52
  };
49
53
  /**
50
54
  * AgentChip component - displays a chip with agent avatar and name
@@ -64,4 +68,4 @@ export type AgentChipProps = {
64
68
  *
65
69
  * @private utility of `ChatMessageItem` component
66
70
  */
67
- export declare function AgentChip({ agent, isOngoing, isClickable, onClick, className }: AgentChipProps): import("react/jsx-runtime").JSX.Element;
71
+ export declare function AgentChip({ agent, isOngoing, isClickable, onClick, className, labelSuffix, }: AgentChipProps): import("react/jsx-runtime").JSX.Element;
@@ -69,5 +69,8 @@ export type LlmChatProps = Omit<ChatProps, 'messages' | 'onMessage' | 'onChange'
69
69
  * @param error - The error that occurred
70
70
  * @param retry - Function to retry the last failed message
71
71
  */
72
- onError?(error: unknown, retry: () => void): void;
72
+ onError?(error: unknown, retry: () => void, failedMessage: {
73
+ content: string;
74
+ attachments: ChatMessage['attachments'];
75
+ }): void;
73
76
  };
@@ -0,0 +1,10 @@
1
+ import type { ToolCall } from '../../types/ToolCall';
2
+ /**
3
+ * Builds a stable identity string for tool calls across partial updates.
4
+ *
5
+ * @param toolCall - Tool call entry to identify.
6
+ * @returns Stable identity string for deduplication.
7
+ *
8
+ * @private function of <Chat/>
9
+ */
10
+ export declare function getToolCallIdentity(toolCall: ToolCall): string;
@@ -15,7 +15,7 @@ export declare const BOOK_LANGUAGE_VERSION: string_semantic_version;
15
15
  export declare const PROMPTBOOK_ENGINE_VERSION: string_promptbook_version;
16
16
  /**
17
17
  * Represents the version string of the Promptbook engine.
18
- * It follows semantic versioning (e.g., `0.110.0-6`).
18
+ * It follows semantic versioning (e.g., `0.110.0-7`).
19
19
  *
20
20
  * @generated
21
21
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@promptbook/markdown-utils",
3
- "version": "0.110.0-7",
3
+ "version": "0.110.0-8",
4
4
  "description": "Promptbook: Turn your company's scattered knowledge into AI ready books",
5
5
  "private": false,
6
6
  "sideEffects": false,
package/umd/index.umd.js CHANGED
@@ -24,7 +24,7 @@
24
24
  * @generated
25
25
  * @see https://github.com/webgptorg/promptbook
26
26
  */
27
- const PROMPTBOOK_ENGINE_VERSION = '0.110.0-7';
27
+ const PROMPTBOOK_ENGINE_VERSION = '0.110.0-8';
28
28
  /**
29
29
  * TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
30
30
  * Note: [💞] Ignore a discrepancy between file name and entity name