@promptbook/javascript 0.112.0-31 → 0.112.0-32
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 +1 -1
- package/esm/src/_packages/components.index.d.ts +6 -0
- package/esm/src/_packages/types.index.d.ts +6 -0
- package/esm/src/book-2.0/agent-source/AgentReferenceResolver.d.ts +11 -0
- package/esm/src/book-2.0/agent-source/CreateAgentModelRequirementsOptions.d.ts +8 -0
- package/esm/src/book-2.0/agent-source/TeammateProfileResolver.d.ts +33 -0
- package/esm/src/book-2.0/agent-source/createTeamToolName.d.ts +7 -7
- package/esm/src/book-components/Chat/Chat/ChatActionsBar.d.ts +5 -0
- package/esm/src/book-components/Chat/Chat/ChatMessageItem.d.ts +17 -1
- package/esm/src/book-components/Chat/Chat/ChatMessageItem.test.d.ts +1 -1
- package/esm/src/book-components/Chat/Chat/ChatMessageList.d.ts +14 -0
- package/esm/src/book-components/Chat/Chat/ChatProps.d.ts +290 -0
- package/esm/src/book-components/Chat/Chat/ChatToolCallModal.d.ts +16 -0
- package/esm/src/book-components/Chat/Chat/renderAdvancedToolCallDetails.d.ts +4 -0
- package/esm/src/book-components/Chat/Chat/renderToolCallDetails.d.ts +9 -0
- package/esm/src/book-components/Chat/MarkdownContent/MarkdownContent.d.ts +2 -1
- package/esm/src/book-components/Chat/MarkdownContent/MarkdownContent.test.d.ts +2 -0
- package/esm/src/book-components/Chat/hooks/useChatCompleteNotification.d.ts +18 -0
- package/esm/src/book-components/Chat/hooks/useChatCompleteNotification.test.d.ts +2 -0
- package/esm/src/book-components/Chat/types/ChatMessage.d.ts +77 -1
- package/esm/src/book-components/Chat/utils/formatToolCallDateTime.d.ts +37 -0
- package/esm/src/book-components/Chat/utils/formatToolCallLocalTime.d.ts +11 -0
- package/esm/src/book-components/Chat/utils/formatToolCallTranslationTemplate.d.ts +10 -0
- package/esm/src/book-components/Chat/utils/getChatMessageTimingDisplay.d.ts +5 -1
- package/esm/src/book-components/Chat/utils/getToolCallChipletInfo.d.ts +26 -1
- package/esm/src/book-components/Chat/utils/timeoutToolCallPresentation.d.ts +26 -3
- package/esm/src/utils/toolCalls/mergeToolCalls.d.ts +1 -1
- package/esm/src/version.d.ts +1 -1
- package/package.json +2 -2
- package/umd/index.umd.js +1 -1
- package/umd/src/_packages/components.index.d.ts +6 -0
- package/umd/src/_packages/types.index.d.ts +6 -0
- package/umd/src/book-2.0/agent-source/AgentReferenceResolver.d.ts +11 -0
- package/umd/src/book-2.0/agent-source/CreateAgentModelRequirementsOptions.d.ts +8 -0
- package/umd/src/book-2.0/agent-source/TeammateProfileResolver.d.ts +33 -0
- package/umd/src/book-2.0/agent-source/createTeamToolName.d.ts +7 -7
- package/umd/src/book-components/Chat/Chat/ChatActionsBar.d.ts +5 -0
- package/umd/src/book-components/Chat/Chat/ChatMessageItem.d.ts +17 -1
- package/umd/src/book-components/Chat/Chat/ChatMessageItem.test.d.ts +1 -1
- package/umd/src/book-components/Chat/Chat/ChatMessageList.d.ts +14 -0
- package/umd/src/book-components/Chat/Chat/ChatProps.d.ts +290 -0
- package/umd/src/book-components/Chat/Chat/ChatToolCallModal.d.ts +16 -0
- package/umd/src/book-components/Chat/Chat/renderAdvancedToolCallDetails.d.ts +4 -0
- package/umd/src/book-components/Chat/Chat/renderToolCallDetails.d.ts +9 -0
- package/umd/src/book-components/Chat/MarkdownContent/MarkdownContent.d.ts +2 -1
- package/umd/src/book-components/Chat/MarkdownContent/MarkdownContent.test.d.ts +2 -0
- package/umd/src/book-components/Chat/hooks/useChatCompleteNotification.d.ts +18 -0
- package/umd/src/book-components/Chat/hooks/useChatCompleteNotification.test.d.ts +2 -0
- package/umd/src/book-components/Chat/types/ChatMessage.d.ts +77 -1
- package/umd/src/book-components/Chat/utils/formatToolCallDateTime.d.ts +37 -0
- package/umd/src/book-components/Chat/utils/formatToolCallLocalTime.d.ts +11 -0
- package/umd/src/book-components/Chat/utils/formatToolCallTranslationTemplate.d.ts +10 -0
- package/umd/src/book-components/Chat/utils/getChatMessageTimingDisplay.d.ts +5 -1
- package/umd/src/book-components/Chat/utils/getToolCallChipletInfo.d.ts +26 -1
- package/umd/src/book-components/Chat/utils/timeoutToolCallPresentation.d.ts +26 -3
- package/umd/src/utils/toolCalls/mergeToolCalls.d.ts +1 -1
- package/umd/src/version.d.ts +1 -1
|
@@ -64,6 +64,24 @@ export type TimeoutToolCallPresentation = {
|
|
|
64
64
|
*/
|
|
65
65
|
readonly localDueDateLabel: string | null;
|
|
66
66
|
};
|
|
67
|
+
/**
|
|
68
|
+
* Optional localized labels used by timeout chips and friendly modal copy.
|
|
69
|
+
*
|
|
70
|
+
* @private internal utility of `<Chat/>`
|
|
71
|
+
*/
|
|
72
|
+
type TimeoutToolCallTranslations = {
|
|
73
|
+
readonly toolCallTimeoutChipLabel?: string;
|
|
74
|
+
readonly toolCallTimeoutChipCancelledLabel?: string;
|
|
75
|
+
readonly toolCallTimeoutChipInactiveLabel?: string;
|
|
76
|
+
readonly toolCallTimeoutChipUpdatedLabel?: string;
|
|
77
|
+
readonly toolCallTimeoutChipFallbackLabel?: string;
|
|
78
|
+
readonly toolCallTimeoutPrimaryScheduledLabel?: string;
|
|
79
|
+
readonly toolCallTimeoutSecondaryDurationLabel?: string;
|
|
80
|
+
readonly toolCallTimeoutPrimaryCancelledLabel?: string;
|
|
81
|
+
readonly toolCallTimeoutPrimaryInactiveLabel?: string;
|
|
82
|
+
readonly toolCallTimeoutPrimaryUpdatedLabel?: string;
|
|
83
|
+
readonly toolCallTimeoutPrimaryFallbackLabel?: string;
|
|
84
|
+
};
|
|
67
85
|
/**
|
|
68
86
|
* Inputs required to derive timeout presentation metadata.
|
|
69
87
|
*
|
|
@@ -86,6 +104,11 @@ type ResolveTimeoutToolCallPresentationOptions = {
|
|
|
86
104
|
* Current date used to calculate relative labels.
|
|
87
105
|
*/
|
|
88
106
|
readonly currentDate?: Date;
|
|
107
|
+
/**
|
|
108
|
+
* Optional BCP-47 locale string used to format local-time labels.
|
|
109
|
+
* When omitted the browser/OS default locale is used.
|
|
110
|
+
*/
|
|
111
|
+
readonly locale?: string;
|
|
89
112
|
};
|
|
90
113
|
/**
|
|
91
114
|
* Determines whether a tool name belongs to the timeout commitment.
|
|
@@ -104,19 +127,19 @@ export declare function resolveTimeoutToolCallPresentation(options: ResolveTimeo
|
|
|
104
127
|
*
|
|
105
128
|
* @private internal utility of `<Chat/>`
|
|
106
129
|
*/
|
|
107
|
-
export declare function buildTimeoutToolCallChipLabel(presentation: TimeoutToolCallPresentation): string;
|
|
130
|
+
export declare function buildTimeoutToolCallChipLabel(presentation: TimeoutToolCallPresentation, translations?: TimeoutToolCallTranslations): string;
|
|
108
131
|
/**
|
|
109
132
|
* Builds the primary timeout sentence shown in default modal view.
|
|
110
133
|
*
|
|
111
134
|
* @private internal utility of `<Chat/>`
|
|
112
135
|
*/
|
|
113
|
-
export declare function buildTimeoutToolPrimarySentence(presentation: TimeoutToolCallPresentation): string;
|
|
136
|
+
export declare function buildTimeoutToolPrimarySentence(presentation: TimeoutToolCallPresentation, translations?: TimeoutToolCallTranslations): string;
|
|
114
137
|
/**
|
|
115
138
|
* Builds one default-view scheduling sentence with local-time and relative context.
|
|
116
139
|
*
|
|
117
140
|
* @private internal utility of `<Chat/>`
|
|
118
141
|
*/
|
|
119
|
-
export declare function buildTimeoutToolScheduleSentence(presentation: TimeoutToolCallPresentation): string | null;
|
|
142
|
+
export declare function buildTimeoutToolScheduleSentence(presentation: TimeoutToolCallPresentation, translations?: TimeoutToolCallTranslations): string | null;
|
|
120
143
|
export {};
|
|
121
144
|
/**
|
|
122
145
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
package/umd/src/version.d.ts
CHANGED
|
@@ -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.112.0-
|
|
18
|
+
* It follows semantic versioning (e.g., `0.112.0-31`).
|
|
19
19
|
*
|
|
20
20
|
* @generated
|
|
21
21
|
*/
|