@promptbook/color 0.105.0-31 → 0.105.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 CHANGED
@@ -14,7 +14,7 @@ const BOOK_LANGUAGE_VERSION = '2.0.0';
14
14
  * @generated
15
15
  * @see https://github.com/webgptorg/promptbook
16
16
  */
17
- const PROMPTBOOK_ENGINE_VERSION = '0.105.0-31';
17
+ const PROMPTBOOK_ENGINE_VERSION = '0.105.0-32';
18
18
  /**
19
19
  * TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
20
20
  * Note: [💞] Ignore a discrepancy between file name and entity name
@@ -47,6 +47,7 @@ import { PENDING_VALUE_PLACEHOLDER } from '../config';
47
47
  import { MAX_FILENAME_LENGTH } from '../config';
48
48
  import { DEFAULT_INTERMEDIATE_FILES_STRATEGY } from '../config';
49
49
  import { DEFAULT_MAX_PARALLEL_COUNT } from '../config';
50
+ import { DEFAULT_MAX_CONCURRENT_UPLOADS } from '../config';
50
51
  import { DEFAULT_MAX_RECURSION } from '../config';
51
52
  import { DEFAULT_MAX_EXECUTION_ATTEMPTS } from '../config';
52
53
  import { DEFAULT_MAX_KNOWLEDGE_SOURCES_SCRAPING_DEPTH } from '../config';
@@ -250,6 +251,7 @@ export { PENDING_VALUE_PLACEHOLDER };
250
251
  export { MAX_FILENAME_LENGTH };
251
252
  export { DEFAULT_INTERMEDIATE_FILES_STRATEGY };
252
253
  export { DEFAULT_MAX_PARALLEL_COUNT };
254
+ export { DEFAULT_MAX_CONCURRENT_UPLOADS };
253
255
  export { DEFAULT_MAX_RECURSION };
254
256
  export { DEFAULT_MAX_EXECUTION_ATTEMPTS };
255
257
  export { DEFAULT_MAX_KNOWLEDGE_SOURCES_SCRAPING_DEPTH };
@@ -108,6 +108,15 @@ export type AgentBasicInformation = {
108
108
  question: string | null;
109
109
  answer: string;
110
110
  }>;
111
+ /**
112
+ * Knowledge sources (documents, URLs) used by the agent
113
+ * This is parsed from KNOWLEDGE commitments
114
+ * Used for resolving document citations when the agent references sources
115
+ */
116
+ knowledgeSources: Array<{
117
+ url: string;
118
+ filename: string;
119
+ }>;
111
120
  };
112
121
  /**
113
122
  * TODO: [🐱‍🚀] Make all properties of `AgentBasicInformation` readonly
@@ -55,7 +55,7 @@ export type BookEditorProps = {
55
55
  /**
56
56
  * returns the URL of the uploaded file on CDN or storage
57
57
  */
58
- onFileUpload?(file: File): Promisable<string_knowledge_source_content>;
58
+ onFileUpload?(file: File, onProgress?: (progress: number_percent) => void): Promisable<string_knowledge_source_content>;
59
59
  /**
60
60
  * If true, logs verbose debug info to the console and shows additional visual cues
61
61
  */
@@ -31,6 +31,14 @@ export type ChatParticipant = {
31
31
  * Agent source for avatar profile
32
32
  */
33
33
  agentSource?: string_book;
34
+ /**
35
+ * Knowledge sources (documents, URLs) used by the agent
36
+ * Used for resolving document citations when the agent references sources
37
+ */
38
+ knowledgeSources?: Array<{
39
+ url: string;
40
+ filename: string;
41
+ }>;
34
42
  };
35
43
  /**
36
44
  * TODO: [🕛] Unite `AgentBasicInformation`, `ChatParticipant`, `LlmExecutionTools` + `LlmToolsMetadata`
@@ -214,6 +214,12 @@ export declare const DEFAULT_INTERMEDIATE_FILES_STRATEGY: IntermediateFilesStrat
214
214
  * @public exported from `@promptbook/core`
215
215
  */
216
216
  export declare const DEFAULT_MAX_PARALLEL_COUNT = 5;
217
+ /**
218
+ * The maximum number of concurrent uploads
219
+ *
220
+ * @public exported from `@promptbook/core`
221
+ */
222
+ export declare const DEFAULT_MAX_CONCURRENT_UPLOADS = 5;
217
223
  /**
218
224
  * The maximum depth to which recursion can occur
219
225
  *
@@ -117,8 +117,8 @@ export declare const LIMITS: {
117
117
  */
118
118
  export declare const TIME_INTERVALS: {
119
119
  /**
120
- * Hundred milliseconds
121
- */
120
+ * Hundred milliseconds
121
+ */
122
122
  readonly HUNDRED_MILLISECONDS: 100;
123
123
  /**
124
124
  * One second in milliseconds
@@ -1,8 +1,8 @@
1
1
  import type { PartialDeep, Promisable, ReadonlyDeep } from 'type-fest';
2
2
  import type { PipelineJson } from '../../pipeline/PipelineJson/PipelineJson';
3
+ import type { LlmCall } from '../../types/LlmCall';
3
4
  import type { InputParameters } from '../../types/typeAliases';
4
5
  import type { PipelineExecutorResult } from '../PipelineExecutorResult';
5
- import type { LlmCall } from '../../types/LlmCall';
6
6
  import type { CreatePipelineExecutorOptions } from './00-CreatePipelineExecutorOptions';
7
7
  /**
8
8
  * Options for executing an entire pipeline, including input parameters, pipeline context, and progress callbacks.
@@ -51,6 +51,15 @@ export declare class Agent extends AgentLlmExecutionTools implements LlmExecutio
51
51
  question: string | null;
52
52
  answer: string;
53
53
  }>;
54
+ /**
55
+ * Knowledge sources (documents, URLs) used by the agent
56
+ * This is parsed from KNOWLEDGE commitments
57
+ * Used for resolving document citations when the agent references sources
58
+ */
59
+ knowledgeSources: Array<{
60
+ url: string;
61
+ filename: string;
62
+ }>;
54
63
  /**
55
64
  * Computed hash of the agent source for integrity verification
56
65
  */
@@ -25,6 +25,10 @@ export declare class RemoteAgent extends Agent {
25
25
  private _remoteAgentHash;
26
26
  toolTitles: Record<string, string>;
27
27
  private _isVoiceCallingEnabled;
28
+ knowledgeSources: Array<{
29
+ url: string;
30
+ filename: string;
31
+ }>;
28
32
  private constructor();
29
33
  get agentName(): string_agent_name;
30
34
  get agentHash(): string_agent_hash;
@@ -1,5 +1,4 @@
1
- import type { string_markdown } from '../../types/typeAliases';
2
- import type { string_markdown_text } from '../../types/typeAliases';
1
+ import type { string_markdown, string_markdown_text } from '../../types/typeAliases';
3
2
  /**
4
3
  * Utility function to extract all list items from markdown
5
4
  *
@@ -1,6 +1,4 @@
1
- import type { string_markdown_section } from '../../types/typeAliases';
2
- import type { string_markdown_section_content } from '../../types/typeAliases';
3
- import type { string_markdown_text } from '../../types/typeAliases';
1
+ import type { string_markdown_section, string_markdown_section_content, string_markdown_text } from '../../types/typeAliases';
4
2
  /**
5
3
  * Parsed markdown section
6
4
  *
@@ -1,5 +1,4 @@
1
- import type { string_markdown } from '../../types/typeAliases';
2
- import type { string_markdown_section } from '../../types/typeAliases';
1
+ import type { string_markdown, string_markdown_section } from '../../types/typeAliases';
3
2
  /**
4
3
  * Splits the markdown into sections by headings
5
4
  *
@@ -1,5 +1,4 @@
1
- import type { string_parameter_name } from '../../types/typeAliases';
2
- import type { string_template } from '../../types/typeAliases';
1
+ import type { string_parameter_name, string_template } from '../../types/typeAliases';
3
2
  import type { really_unknown } from '../organization/really_unknown';
4
3
  /**
5
4
  * Replaces parameters in template with values from parameters object
@@ -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.105.0-30`).
18
+ * It follows semantic versioning (e.g., `0.105.0-31`).
19
19
  *
20
20
  * @generated
21
21
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@promptbook/color",
3
- "version": "0.105.0-31",
3
+ "version": "0.105.0-32",
4
4
  "description": "Promptbook: Turn your company's scattered knowledge into AI ready books",
5
5
  "private": false,
6
6
  "sideEffects": false,
@@ -91,7 +91,7 @@
91
91
  "module": "./esm/index.es.js",
92
92
  "typings": "./esm/typings/src/_packages/color.index.d.ts",
93
93
  "peerDependencies": {
94
- "@promptbook/core": "0.105.0-31"
94
+ "@promptbook/core": "0.105.0-32"
95
95
  },
96
96
  "dependencies": {
97
97
  "spacetrim": "0.11.60"
package/umd/index.umd.js CHANGED
@@ -18,7 +18,7 @@
18
18
  * @generated
19
19
  * @see https://github.com/webgptorg/promptbook
20
20
  */
21
- const PROMPTBOOK_ENGINE_VERSION = '0.105.0-31';
21
+ const PROMPTBOOK_ENGINE_VERSION = '0.105.0-32';
22
22
  /**
23
23
  * TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
24
24
  * Note: [💞] Ignore a discrepancy between file name and entity name