@promptbook/node 0.110.0-1 → 0.110.0-10
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 +1785 -510
- package/esm/index.es.js.map +1 -1
- package/esm/typings/src/_packages/components.index.d.ts +4 -0
- package/esm/typings/src/_packages/core.index.d.ts +2 -2
- package/esm/typings/src/_packages/openai.index.d.ts +8 -4
- package/esm/typings/src/_packages/types.index.d.ts +12 -4
- package/esm/typings/src/book-2.0/agent-source/AgentModelRequirements.d.ts +22 -21
- package/esm/typings/src/book-2.0/agent-source/AgentReferenceResolver.d.ts +18 -0
- package/esm/typings/src/book-2.0/agent-source/CreateAgentModelRequirementsOptions.d.ts +12 -0
- package/esm/typings/src/book-2.0/agent-source/createAgentModelRequirements.d.ts +8 -2
- package/esm/typings/src/book-2.0/agent-source/createAgentModelRequirementsWithCommitments.agentReferenceResolver.test.d.ts +1 -0
- package/esm/typings/src/book-2.0/agent-source/createAgentModelRequirementsWithCommitments.d.ts +4 -5
- package/esm/typings/src/book-components/Chat/AgentChip/AgentChip.d.ts +5 -1
- package/esm/typings/src/book-components/Chat/Chat/ChatActionsBar.d.ts +4 -2
- package/esm/typings/src/book-components/Chat/Chat/ChatInputArea.d.ts +1 -0
- package/esm/typings/src/book-components/Chat/Chat/ChatMessageItem.d.ts +4 -0
- package/esm/typings/src/book-components/Chat/Chat/ChatMessageList.d.ts +1 -0
- package/esm/typings/src/book-components/Chat/Chat/ChatProps.d.ts +15 -0
- package/esm/typings/src/book-components/Chat/Chat/ChatSoundToggle.d.ts +31 -0
- package/esm/typings/src/book-components/Chat/LlmChat/LlmChatProps.d.ts +10 -1
- package/esm/typings/src/book-components/Chat/SourceChip/SourceChip.d.ts +5 -1
- package/esm/typings/src/book-components/Chat/utils/collectTeamToolCallSummary.d.ts +69 -0
- package/esm/typings/src/book-components/Chat/utils/getToolCallChipletInfo.d.ts +13 -13
- package/esm/typings/src/book-components/Chat/utils/parseCitationsFromContent.d.ts +9 -0
- package/esm/typings/src/book-components/Chat/utils/toolCallParsing.d.ts +4 -0
- package/esm/typings/src/collection/agent-collection/constructors/agent-collection-in-supabase/AgentsDatabaseSchema.d.ts +0 -3
- package/esm/typings/src/commitments/_base/BaseCommitmentDefinition.d.ts +9 -0
- package/esm/typings/src/execution/LlmExecutionTools.d.ts +2 -1
- package/esm/typings/src/llm-providers/agent/Agent.d.ts +1 -1
- package/esm/typings/src/llm-providers/agent/AgentLlmExecutionTools.d.ts +5 -1
- package/esm/typings/src/llm-providers/agent/AgentLlmExecutionTools.test.d.ts +1 -0
- package/esm/typings/src/llm-providers/agent/AgentOptions.d.ts +10 -0
- package/esm/typings/src/llm-providers/agent/CreateAgentLlmExecutionToolsOptions.d.ts +13 -2
- package/esm/typings/src/llm-providers/agent/RemoteAgent.d.ts +2 -1
- package/esm/typings/src/llm-providers/openai/OpenAiAgentKitExecutionTools.d.ts +150 -0
- package/esm/typings/src/llm-providers/openai/OpenAiAgentKitExecutionToolsOptions.d.ts +15 -0
- package/esm/typings/src/llm-providers/openai/OpenAiAssistantExecutionTools.d.ts +3 -3
- package/esm/typings/src/llm-providers/openai/OpenAiAssistantExecutionToolsOptions.d.ts +3 -4
- package/esm/typings/src/llm-providers/openai/OpenAiVectorStoreHandler.d.ts +135 -0
- package/esm/typings/src/llm-providers/openai/utils/mapToolsToOpenAi.d.ts +1 -1
- package/esm/typings/src/types/LlmToolDefinition.d.ts +1 -0
- package/esm/typings/src/types/ModelRequirements.d.ts +9 -0
- package/esm/typings/src/utils/DEFAULT_THINKING_MESSAGES.d.ts +8 -0
- package/esm/typings/src/utils/agents/resolveAgentAvatarImageUrl.d.ts +29 -0
- package/esm/typings/src/utils/knowledge/inlineKnowledgeSource.d.ts +38 -0
- package/esm/typings/src/utils/knowledge/inlineKnowledgeSource.test.d.ts +1 -0
- package/esm/typings/src/utils/language/getBrowserPreferredSpeechRecognitionLanguage.d.ts +35 -0
- package/esm/typings/src/utils/toolCalls/getToolCallIdentity.d.ts +10 -0
- package/esm/typings/src/version.d.ts +1 -1
- package/package.json +7 -3
- package/umd/index.umd.js +1788 -514
- package/umd/index.umd.js.map +1 -1
- package/esm/typings/src/llm-providers/openai/OpenAiAgentExecutionTools.d.ts +0 -43
- package/esm/typings/src/llm-providers/openai/createOpenAiAgentExecutionTools.d.ts +0 -11
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @@@
|
|
3
|
+
*
|
|
4
|
+
* @private function of Agents Server speech recognition language resolution, not a general-purpose utility
|
|
5
|
+
*/
|
|
6
|
+
type ResolveSpeechRecognitionLanguageOptions = {
|
|
7
|
+
/**
|
|
8
|
+
* Overrides the default language resolution when provided.
|
|
9
|
+
*/
|
|
10
|
+
readonly overrideLanguage?: string | null;
|
|
11
|
+
/**
|
|
12
|
+
* Optional Accept-Language header string to derive the speaker language from server-side requests.
|
|
13
|
+
*/
|
|
14
|
+
readonly acceptLanguageHeader?: string | null;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* Parses the primary language out of an Accept-Language header value.
|
|
18
|
+
*
|
|
19
|
+
* @private function of Agents Server speech recognition language resolution, not a general-purpose utility
|
|
20
|
+
*/
|
|
21
|
+
export declare function parseSpeechRecognitionLanguageFromAcceptLanguageHeader(header?: string | null): string | undefined;
|
|
22
|
+
/**
|
|
23
|
+
* Reads the browser-reported preferred language list and returns the first valid tag.
|
|
24
|
+
*
|
|
25
|
+
* @private function of Agents Server speech recognition language resolution, not a general-purpose utility
|
|
26
|
+
*/
|
|
27
|
+
export declare function getBrowserPreferredSpeechRecognitionLanguage(): string | undefined;
|
|
28
|
+
/**
|
|
29
|
+
* Resolves a speech recognition language tag by checking an optional override, then the Accept-Language header,
|
|
30
|
+
* then the browser preferences, and finally falling back to a default of `en-US`.
|
|
31
|
+
*
|
|
32
|
+
* @private function of Agents Server speech recognition language resolution, not a general-purpose utility
|
|
33
|
+
*/
|
|
34
|
+
export declare function resolveSpeechRecognitionLanguage(options?: ResolveSpeechRecognitionLanguageOptions): string;
|
|
35
|
+
export {};
|
|
@@ -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-
|
|
18
|
+
* It follows semantic versioning (e.g., `0.110.0-9`).
|
|
19
19
|
*
|
|
20
20
|
* @generated
|
|
21
21
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@promptbook/node",
|
|
3
|
-
"version": "0.110.0-
|
|
3
|
+
"version": "0.110.0-10",
|
|
4
4
|
"description": "Promptbook: Turn your company's scattered knowledge into AI ready books",
|
|
5
5
|
"private": false,
|
|
6
6
|
"sideEffects": false,
|
|
@@ -89,14 +89,18 @@
|
|
|
89
89
|
"node": ">=18.18.0",
|
|
90
90
|
"npm": ">=8.0.0"
|
|
91
91
|
},
|
|
92
|
+
"overrides": {
|
|
93
|
+
"zod": "$zod"
|
|
94
|
+
},
|
|
92
95
|
"main": "./umd/index.umd.js",
|
|
93
96
|
"module": "./esm/index.es.js",
|
|
94
97
|
"typings": "./esm/typings/src/_packages/node.index.d.ts",
|
|
95
98
|
"peerDependencies": {
|
|
96
|
-
"@promptbook/core": "0.110.0-
|
|
99
|
+
"@promptbook/core": "0.110.0-10"
|
|
97
100
|
},
|
|
98
101
|
"dependencies": {
|
|
99
102
|
"@mozilla/readability": "0.6.0",
|
|
103
|
+
"@openai/agents": "0.4.5",
|
|
100
104
|
"bottleneck": "2.19.5",
|
|
101
105
|
"colors": "1.4.0",
|
|
102
106
|
"crypto": "1.0.1",
|
|
@@ -105,7 +109,7 @@
|
|
|
105
109
|
"jsdom": "25.0.1",
|
|
106
110
|
"jszip": "3.10.1",
|
|
107
111
|
"moment": "2.30.1",
|
|
108
|
-
"openai": "
|
|
112
|
+
"openai": "6.18.0",
|
|
109
113
|
"papaparse": "5.4.1",
|
|
110
114
|
"rxjs": "7.8.2",
|
|
111
115
|
"showdown": "2.1.0",
|