@langchain/core 1.1.3 → 1.1.4

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.
Files changed (190) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/agents.d.cts +2 -0
  3. package/dist/agents.d.ts +2 -0
  4. package/dist/callbacks/base.d.cts +60 -22
  5. package/dist/callbacks/base.d.ts +60 -22
  6. package/dist/callbacks/dispatch/index.d.cts +3 -1
  7. package/dist/callbacks/dispatch/index.d.ts +3 -1
  8. package/dist/callbacks/dispatch/web.d.cts +3 -1
  9. package/dist/callbacks/dispatch/web.d.ts +3 -1
  10. package/dist/callbacks/manager.d.cts +12 -2
  11. package/dist/callbacks/manager.d.ts +12 -2
  12. package/dist/chat_history.d.cts +1 -0
  13. package/dist/chat_history.d.ts +1 -0
  14. package/dist/document_loaders/langsmith.d.cts +3 -0
  15. package/dist/document_loaders/langsmith.d.ts +3 -0
  16. package/dist/documents/document.d.cts +12 -3
  17. package/dist/documents/document.d.ts +12 -3
  18. package/dist/example_selectors/length_based.d.cts +1 -1
  19. package/dist/example_selectors/length_based.d.ts +1 -1
  20. package/dist/indexing/base.d.cts +1 -0
  21. package/dist/indexing/base.d.ts +1 -0
  22. package/dist/indexing/record_manager.d.cts +1 -0
  23. package/dist/indexing/record_manager.d.ts +1 -0
  24. package/dist/language_models/base.d.cts +38 -8
  25. package/dist/language_models/base.d.ts +38 -8
  26. package/dist/language_models/chat_models.d.cts +33 -6
  27. package/dist/language_models/chat_models.d.ts +33 -6
  28. package/dist/language_models/llms.d.cts +6 -0
  29. package/dist/language_models/llms.d.ts +6 -0
  30. package/dist/load/import_type.d.cts +1 -0
  31. package/dist/load/import_type.d.ts +1 -0
  32. package/dist/load/map_keys.cjs +5 -4
  33. package/dist/load/map_keys.cjs.map +1 -1
  34. package/dist/load/map_keys.d.cts +1 -0
  35. package/dist/load/map_keys.d.ts +1 -0
  36. package/dist/load/map_keys.js +3 -3
  37. package/dist/load/map_keys.js.map +1 -1
  38. package/dist/load/serializable.d.cts +1 -0
  39. package/dist/load/serializable.d.ts +1 -0
  40. package/dist/memory.d.cts +3 -0
  41. package/dist/memory.d.ts +3 -0
  42. package/dist/messages/base.d.cts +13 -1
  43. package/dist/messages/base.d.ts +13 -1
  44. package/dist/messages/content/data.d.cts +7 -2
  45. package/dist/messages/content/data.d.ts +7 -2
  46. package/dist/messages/content/index.d.cts +4 -1
  47. package/dist/messages/content/index.d.ts +4 -1
  48. package/dist/messages/content/multimodal.d.cts +1 -0
  49. package/dist/messages/content/multimodal.d.ts +1 -0
  50. package/dist/messages/content/tools.d.cts +1 -0
  51. package/dist/messages/content/tools.d.ts +1 -0
  52. package/dist/messages/tool.d.cts +9 -2
  53. package/dist/messages/tool.d.ts +9 -2
  54. package/dist/messages/transformers.d.cts +3 -0
  55. package/dist/messages/transformers.d.ts +3 -0
  56. package/dist/messages/utils.d.cts +5 -2
  57. package/dist/messages/utils.d.ts +5 -2
  58. package/dist/output_parsers/json.d.cts +5 -1
  59. package/dist/output_parsers/json.d.ts +5 -1
  60. package/dist/output_parsers/openai_functions/json_output_functions_parsers.d.cts +6 -2
  61. package/dist/output_parsers/openai_functions/json_output_functions_parsers.d.ts +6 -2
  62. package/dist/output_parsers/openai_tools/json_output_tools_parsers.d.cts +34 -10
  63. package/dist/output_parsers/openai_tools/json_output_tools_parsers.d.ts +34 -10
  64. package/dist/output_parsers/transform.d.cts +1 -0
  65. package/dist/output_parsers/transform.d.ts +1 -0
  66. package/dist/outputs.d.cts +6 -0
  67. package/dist/outputs.d.ts +6 -0
  68. package/dist/prompts/base.d.cts +10 -2
  69. package/dist/prompts/base.d.ts +10 -2
  70. package/dist/prompts/chat.d.cts +51 -13
  71. package/dist/prompts/chat.d.ts +51 -13
  72. package/dist/prompts/few_shot.d.cts +5 -1
  73. package/dist/prompts/few_shot.d.ts +5 -1
  74. package/dist/prompts/image.d.cts +10 -2
  75. package/dist/prompts/image.d.ts +10 -2
  76. package/dist/prompts/prompt.d.cts +15 -4
  77. package/dist/prompts/prompt.d.ts +16 -4
  78. package/dist/prompts/serde.d.cts +1 -0
  79. package/dist/prompts/serde.d.ts +1 -0
  80. package/dist/prompts/string.d.cts +5 -1
  81. package/dist/prompts/string.d.ts +5 -1
  82. package/dist/prompts/structured.d.cts +16 -3
  83. package/dist/prompts/structured.d.ts +16 -3
  84. package/dist/retrievers/document_compressors/index.d.cts +1 -0
  85. package/dist/retrievers/document_compressors/index.d.ts +1 -0
  86. package/dist/retrievers/index.d.cts +6 -2
  87. package/dist/retrievers/index.d.ts +6 -2
  88. package/dist/runnables/base.cjs +7 -7
  89. package/dist/runnables/base.cjs.map +1 -1
  90. package/dist/runnables/base.d.cts +64 -12
  91. package/dist/runnables/base.d.ts +64 -12
  92. package/dist/runnables/base.js +1 -1
  93. package/dist/runnables/base.js.map +1 -1
  94. package/dist/runnables/branch.d.cts +2 -0
  95. package/dist/runnables/branch.d.ts +2 -0
  96. package/dist/runnables/config.d.cts +1 -0
  97. package/dist/runnables/config.d.ts +1 -0
  98. package/dist/runnables/graph.d.cts +5 -1
  99. package/dist/runnables/graph.d.ts +5 -1
  100. package/dist/runnables/history.d.cts +12 -4
  101. package/dist/runnables/history.d.ts +12 -4
  102. package/dist/runnables/passthrough.d.cts +2 -0
  103. package/dist/runnables/passthrough.d.ts +2 -0
  104. package/dist/runnables/router.d.cts +1 -0
  105. package/dist/runnables/router.d.ts +1 -0
  106. package/dist/runnables/types.d.cts +9 -2
  107. package/dist/runnables/types.d.ts +9 -2
  108. package/dist/singletons/async_local_storage/context.d.cts +2 -0
  109. package/dist/singletons/async_local_storage/context.d.ts +2 -0
  110. package/dist/singletons/async_local_storage/globals.d.cts +1 -0
  111. package/dist/singletons/async_local_storage/globals.d.ts +1 -0
  112. package/dist/singletons/callbacks.cjs.map +1 -1
  113. package/dist/singletons/callbacks.js.map +1 -1
  114. package/dist/stores.d.cts +1 -0
  115. package/dist/stores.d.ts +1 -0
  116. package/dist/structured_query/utils.d.cts +4 -1
  117. package/dist/structured_query/utils.d.ts +4 -1
  118. package/dist/tools/index.d.cts +6 -1
  119. package/dist/tools/index.d.ts +6 -1
  120. package/dist/tools/types.d.cts +13 -3
  121. package/dist/tools/types.d.ts +13 -3
  122. package/dist/tracers/base.d.cts +20 -1
  123. package/dist/tracers/base.d.ts +20 -1
  124. package/dist/tracers/console.cjs +3 -3
  125. package/dist/tracers/console.cjs.map +1 -1
  126. package/dist/tracers/console.d.cts +2 -0
  127. package/dist/tracers/console.d.ts +2 -0
  128. package/dist/tracers/console.js +3 -3
  129. package/dist/tracers/console.js.map +1 -1
  130. package/dist/tracers/event_stream.d.cts +4 -0
  131. package/dist/tracers/event_stream.d.ts +4 -0
  132. package/dist/tracers/log_stream.d.cts +6 -0
  133. package/dist/tracers/log_stream.d.ts +6 -0
  134. package/dist/types/_internal.d.cts +3 -0
  135. package/dist/types/_internal.d.ts +3 -0
  136. package/dist/types/type-utils.d.cts +2 -0
  137. package/dist/types/type-utils.d.ts +2 -0
  138. package/dist/utils/async_caller.cjs +1 -1
  139. package/dist/utils/async_caller.cjs.map +1 -1
  140. package/dist/utils/async_caller.d.cts +3 -0
  141. package/dist/utils/async_caller.d.ts +3 -0
  142. package/dist/utils/async_caller.js +1 -1
  143. package/dist/utils/async_caller.js.map +1 -1
  144. package/dist/utils/env.d.cts +4 -0
  145. package/dist/utils/env.d.ts +4 -0
  146. package/dist/utils/event_source_parse.d.cts +4 -1
  147. package/dist/utils/event_source_parse.d.ts +4 -1
  148. package/dist/utils/function_calling.d.cts +3 -1
  149. package/dist/utils/function_calling.d.ts +3 -1
  150. package/dist/{node_modules/.pnpm/is-network-error@1.3.0/node_modules → utils}/is-network-error/index.cjs +1 -1
  151. package/dist/utils/is-network-error/index.cjs.map +1 -0
  152. package/dist/{node_modules/.pnpm/is-network-error@1.3.0/node_modules → utils}/is-network-error/index.js +1 -1
  153. package/dist/utils/is-network-error/index.js.map +1 -0
  154. package/dist/utils/json.d.cts +1 -0
  155. package/dist/utils/json.d.ts +1 -0
  156. package/dist/{node_modules/.pnpm/p-retry@7.1.0/node_modules → utils}/p-retry/index.cjs +2 -2
  157. package/dist/utils/p-retry/index.cjs.map +1 -0
  158. package/dist/{node_modules/.pnpm/p-retry@7.1.0/node_modules → utils}/p-retry/index.js +2 -2
  159. package/dist/utils/p-retry/index.js.map +1 -0
  160. package/dist/utils/stream.d.cts +13 -1
  161. package/dist/utils/stream.d.ts +13 -1
  162. package/dist/utils/testing/chat_models.d.cts +11 -3
  163. package/dist/utils/testing/chat_models.d.ts +11 -3
  164. package/dist/utils/testing/retrievers.d.cts +3 -1
  165. package/dist/utils/testing/retrievers.d.ts +3 -1
  166. package/dist/utils/testing/vectorstores.d.cts +1 -0
  167. package/dist/utils/testing/vectorstores.d.ts +1 -0
  168. package/dist/utils/types/index.d.cts +2 -0
  169. package/dist/utils/types/index.d.ts +2 -0
  170. package/dist/utils/types/zod.d.cts +3 -0
  171. package/dist/utils/types/zod.d.ts +3 -0
  172. package/dist/vectorstores.d.cts +17 -5
  173. package/dist/vectorstores.d.ts +17 -5
  174. package/package.json +5 -6
  175. package/dist/node_modules/.pnpm/ansi-styles@6.2.3/node_modules/ansi-styles/index.cjs +0 -169
  176. package/dist/node_modules/.pnpm/ansi-styles@6.2.3/node_modules/ansi-styles/index.cjs.map +0 -1
  177. package/dist/node_modules/.pnpm/ansi-styles@6.2.3/node_modules/ansi-styles/index.js +0 -168
  178. package/dist/node_modules/.pnpm/ansi-styles@6.2.3/node_modules/ansi-styles/index.js.map +0 -1
  179. package/dist/node_modules/.pnpm/camelcase@9.0.0/node_modules/camelcase/index.cjs +0 -122
  180. package/dist/node_modules/.pnpm/camelcase@9.0.0/node_modules/camelcase/index.cjs.map +0 -1
  181. package/dist/node_modules/.pnpm/camelcase@9.0.0/node_modules/camelcase/index.js +0 -121
  182. package/dist/node_modules/.pnpm/camelcase@9.0.0/node_modules/camelcase/index.js.map +0 -1
  183. package/dist/node_modules/.pnpm/decamelize@6.0.1/node_modules/decamelize/index.cjs +0 -18
  184. package/dist/node_modules/.pnpm/decamelize@6.0.1/node_modules/decamelize/index.cjs.map +0 -1
  185. package/dist/node_modules/.pnpm/decamelize@6.0.1/node_modules/decamelize/index.js +0 -17
  186. package/dist/node_modules/.pnpm/decamelize@6.0.1/node_modules/decamelize/index.js.map +0 -1
  187. package/dist/node_modules/.pnpm/is-network-error@1.3.0/node_modules/is-network-error/index.cjs.map +0 -1
  188. package/dist/node_modules/.pnpm/is-network-error@1.3.0/node_modules/is-network-error/index.js.map +0 -1
  189. package/dist/node_modules/.pnpm/p-retry@7.1.0/node_modules/p-retry/index.cjs.map +0 -1
  190. package/dist/node_modules/.pnpm/p-retry@7.1.0/node_modules/p-retry/index.js.map +0 -1
@@ -9,6 +9,7 @@ import { BaseRetriever, BaseRetrieverInput, BaseRetrieverInterface } from "./ret
9
9
  /**
10
10
  * Type for options when adding a document to the VectorStore.
11
11
  */
12
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
12
13
  type AddDocumentOptions = Record<string, any>;
13
14
  /**
14
15
  * Options for configuring a maximal marginal relevance (MMR) search.
@@ -339,6 +340,7 @@ interface VectorStoreInterface extends Serializable {
339
340
  * the conditions for selecting documents to delete.
340
341
  * @returns A promise that resolves once the deletion operation is complete.
341
342
  */
343
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
342
344
  delete(_params?: Record<string, any>): Promise<void>;
343
345
  /**
344
346
  * Searches for documents similar to a given vector query and returns them
@@ -430,6 +432,7 @@ declare abstract class VectorStore extends Serializable implements VectorStoreIn
430
432
  *
431
433
  * @internal
432
434
  */
435
+ // Only ever instantiated in main LangChain
433
436
  lc_namespace: string[];
434
437
  /**
435
438
  * Embeddings interface for generating vector embeddings from text queries,
@@ -442,6 +445,7 @@ declare abstract class VectorStore extends Serializable implements VectorStoreIn
442
445
  * @param embeddings - Instance of `EmbeddingsInterface` used to embed queries.
443
446
  * @param dbConfig - Configuration settings for the database or storage system.
444
447
  */
448
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
445
449
  constructor(embeddings: EmbeddingsInterface, dbConfig: Record<string, any>);
446
450
  /**
447
451
  * Returns a string representing the type of vector store, which subclasses
@@ -477,6 +481,7 @@ declare abstract class VectorStore extends Serializable implements VectorStoreIn
477
481
  * @param _params - Flexible key-value pairs defining conditions for document deletion.
478
482
  * @returns A promise that resolves once the deletion is complete.
479
483
  */
484
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
480
485
  delete(_params?: Record<string, any>): Promise<void>;
481
486
  /**
482
487
  * Performs a similarity search using a vector query and returns results
@@ -499,7 +504,8 @@ declare abstract class VectorStore extends Serializable implements VectorStoreIn
499
504
  * @param _callbacks - Optional callbacks for monitoring search progress
500
505
  * @returns A promise resolving to an array of `DocumentInterface` instances representing similar documents.
501
506
  */
502
- similaritySearch(query: string, k?: number, filter?: this["FilterType"] | undefined, _callbacks?: Callbacks | undefined): Promise<DocumentInterface[]>;
507
+ similaritySearch(query: string, k?: number, filter?: this["FilterType"] | undefined, _callbacks?: Callbacks | undefined // implement passing to embedQuery later
508
+ ): Promise<DocumentInterface[]>;
503
509
  /**
504
510
  * Searches for documents similar to a text query by embedding the query,
505
511
  * and returns results with similarity scores.
@@ -511,7 +517,8 @@ declare abstract class VectorStore extends Serializable implements VectorStoreIn
511
517
  * @returns A promise resolving to an array of tuples, each containing a
512
518
  * document and its similarity score.
513
519
  */
514
- similaritySearchWithScore(query: string, k?: number, filter?: this["FilterType"] | undefined, _callbacks?: Callbacks | undefined): Promise<[DocumentInterface, number][]>;
520
+ similaritySearchWithScore(query: string, k?: number, filter?: this["FilterType"] | undefined, _callbacks?: Callbacks | undefined // implement passing to embedQuery later
521
+ ): Promise<[DocumentInterface, number][]>;
515
522
  /**
516
523
  * Return documents selected using the maximal marginal relevance.
517
524
  * Maximal marginal relevance optimizes for similarity to the query AND diversity
@@ -527,7 +534,8 @@ declare abstract class VectorStore extends Serializable implements VectorStoreIn
527
534
  *
528
535
  * @returns {Promise<DocumentInterface[]>} - List of documents selected by maximal marginal relevance.
529
536
  */
530
- maxMarginalRelevanceSearch?(query: string, options: MaxMarginalRelevanceSearchOptions<this["FilterType"]>, _callbacks: Callbacks | undefined): Promise<DocumentInterface[]>;
537
+ maxMarginalRelevanceSearch?(query: string, options: MaxMarginalRelevanceSearchOptions<this["FilterType"]>, _callbacks: Callbacks | undefined // implement passing to embedQuery later
538
+ ): Promise<DocumentInterface[]>;
531
539
  /**
532
540
  * Creates a `VectorStore` instance from an array of text strings and optional
533
541
  * metadata, using the specified embeddings and database configuration.
@@ -543,7 +551,9 @@ declare abstract class VectorStore extends Serializable implements VectorStoreIn
543
551
  * @returns A promise that resolves to a new `VectorStore` instance.
544
552
  * @throws {Error} Throws an error if this method is not overridden by a subclass.
545
553
  */
546
- static fromTexts(_texts: string[], _metadatas: object[] | object, _embeddings: EmbeddingsInterface, _dbConfig: Record<string, any>): Promise<VectorStore>;
554
+ static fromTexts(_texts: string[], _metadatas: object[] | object, _embeddings: EmbeddingsInterface,
555
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
556
+ _dbConfig: Record<string, any>): Promise<VectorStore>;
547
557
  /**
548
558
  * Creates a `VectorStore` instance from an array of documents, using the specified
549
559
  * embeddings and database configuration.
@@ -557,7 +567,9 @@ declare abstract class VectorStore extends Serializable implements VectorStoreIn
557
567
  * @returns A promise that resolves to a new `VectorStore` instance.
558
568
  * @throws {Error} Throws an error if this method is not overridden by a subclass.
559
569
  */
560
- static fromDocuments(_docs: DocumentInterface[], _embeddings: EmbeddingsInterface, _dbConfig: Record<string, any>): Promise<VectorStore>;
570
+ static fromDocuments(_docs: DocumentInterface[], _embeddings: EmbeddingsInterface,
571
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
572
+ _dbConfig: Record<string, any>): Promise<VectorStore>;
561
573
  /**
562
574
  * Creates a `VectorStoreRetriever` instance with flexible configuration options.
563
575
  *
@@ -9,6 +9,7 @@ import { BaseRetriever, BaseRetrieverInput, BaseRetrieverInterface } from "./ret
9
9
  /**
10
10
  * Type for options when adding a document to the VectorStore.
11
11
  */
12
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
12
13
  type AddDocumentOptions = Record<string, any>;
13
14
  /**
14
15
  * Options for configuring a maximal marginal relevance (MMR) search.
@@ -339,6 +340,7 @@ interface VectorStoreInterface extends Serializable {
339
340
  * the conditions for selecting documents to delete.
340
341
  * @returns A promise that resolves once the deletion operation is complete.
341
342
  */
343
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
342
344
  delete(_params?: Record<string, any>): Promise<void>;
343
345
  /**
344
346
  * Searches for documents similar to a given vector query and returns them
@@ -430,6 +432,7 @@ declare abstract class VectorStore extends Serializable implements VectorStoreIn
430
432
  *
431
433
  * @internal
432
434
  */
435
+ // Only ever instantiated in main LangChain
433
436
  lc_namespace: string[];
434
437
  /**
435
438
  * Embeddings interface for generating vector embeddings from text queries,
@@ -442,6 +445,7 @@ declare abstract class VectorStore extends Serializable implements VectorStoreIn
442
445
  * @param embeddings - Instance of `EmbeddingsInterface` used to embed queries.
443
446
  * @param dbConfig - Configuration settings for the database or storage system.
444
447
  */
448
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
445
449
  constructor(embeddings: EmbeddingsInterface, dbConfig: Record<string, any>);
446
450
  /**
447
451
  * Returns a string representing the type of vector store, which subclasses
@@ -477,6 +481,7 @@ declare abstract class VectorStore extends Serializable implements VectorStoreIn
477
481
  * @param _params - Flexible key-value pairs defining conditions for document deletion.
478
482
  * @returns A promise that resolves once the deletion is complete.
479
483
  */
484
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
480
485
  delete(_params?: Record<string, any>): Promise<void>;
481
486
  /**
482
487
  * Performs a similarity search using a vector query and returns results
@@ -499,7 +504,8 @@ declare abstract class VectorStore extends Serializable implements VectorStoreIn
499
504
  * @param _callbacks - Optional callbacks for monitoring search progress
500
505
  * @returns A promise resolving to an array of `DocumentInterface` instances representing similar documents.
501
506
  */
502
- similaritySearch(query: string, k?: number, filter?: this["FilterType"] | undefined, _callbacks?: Callbacks | undefined): Promise<DocumentInterface[]>;
507
+ similaritySearch(query: string, k?: number, filter?: this["FilterType"] | undefined, _callbacks?: Callbacks | undefined // implement passing to embedQuery later
508
+ ): Promise<DocumentInterface[]>;
503
509
  /**
504
510
  * Searches for documents similar to a text query by embedding the query,
505
511
  * and returns results with similarity scores.
@@ -511,7 +517,8 @@ declare abstract class VectorStore extends Serializable implements VectorStoreIn
511
517
  * @returns A promise resolving to an array of tuples, each containing a
512
518
  * document and its similarity score.
513
519
  */
514
- similaritySearchWithScore(query: string, k?: number, filter?: this["FilterType"] | undefined, _callbacks?: Callbacks | undefined): Promise<[DocumentInterface, number][]>;
520
+ similaritySearchWithScore(query: string, k?: number, filter?: this["FilterType"] | undefined, _callbacks?: Callbacks | undefined // implement passing to embedQuery later
521
+ ): Promise<[DocumentInterface, number][]>;
515
522
  /**
516
523
  * Return documents selected using the maximal marginal relevance.
517
524
  * Maximal marginal relevance optimizes for similarity to the query AND diversity
@@ -527,7 +534,8 @@ declare abstract class VectorStore extends Serializable implements VectorStoreIn
527
534
  *
528
535
  * @returns {Promise<DocumentInterface[]>} - List of documents selected by maximal marginal relevance.
529
536
  */
530
- maxMarginalRelevanceSearch?(query: string, options: MaxMarginalRelevanceSearchOptions<this["FilterType"]>, _callbacks: Callbacks | undefined): Promise<DocumentInterface[]>;
537
+ maxMarginalRelevanceSearch?(query: string, options: MaxMarginalRelevanceSearchOptions<this["FilterType"]>, _callbacks: Callbacks | undefined // implement passing to embedQuery later
538
+ ): Promise<DocumentInterface[]>;
531
539
  /**
532
540
  * Creates a `VectorStore` instance from an array of text strings and optional
533
541
  * metadata, using the specified embeddings and database configuration.
@@ -543,7 +551,9 @@ declare abstract class VectorStore extends Serializable implements VectorStoreIn
543
551
  * @returns A promise that resolves to a new `VectorStore` instance.
544
552
  * @throws {Error} Throws an error if this method is not overridden by a subclass.
545
553
  */
546
- static fromTexts(_texts: string[], _metadatas: object[] | object, _embeddings: EmbeddingsInterface, _dbConfig: Record<string, any>): Promise<VectorStore>;
554
+ static fromTexts(_texts: string[], _metadatas: object[] | object, _embeddings: EmbeddingsInterface,
555
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
556
+ _dbConfig: Record<string, any>): Promise<VectorStore>;
547
557
  /**
548
558
  * Creates a `VectorStore` instance from an array of documents, using the specified
549
559
  * embeddings and database configuration.
@@ -557,7 +567,9 @@ declare abstract class VectorStore extends Serializable implements VectorStoreIn
557
567
  * @returns A promise that resolves to a new `VectorStore` instance.
558
568
  * @throws {Error} Throws an error if this method is not overridden by a subclass.
559
569
  */
560
- static fromDocuments(_docs: DocumentInterface[], _embeddings: EmbeddingsInterface, _dbConfig: Record<string, any>): Promise<VectorStore>;
570
+ static fromDocuments(_docs: DocumentInterface[], _embeddings: EmbeddingsInterface,
571
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
572
+ _dbConfig: Record<string, any>): Promise<VectorStore>;
561
573
  /**
562
574
  * Creates a `VectorStoreRetriever` instance with flexible configuration options.
563
575
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@langchain/core",
3
- "version": "1.1.3",
3
+ "version": "1.1.4",
4
4
  "description": "Core LangChain.js abstractions and schemas",
5
5
  "type": "module",
6
6
  "engines": {
@@ -17,10 +17,13 @@
17
17
  "license": "MIT",
18
18
  "dependencies": {
19
19
  "@cfworker/json-schema": "^4.0.2",
20
+ "ansi-styles": "^5.0.0",
21
+ "camelcase": "6",
22
+ "decamelize": "1.2.0",
20
23
  "js-tiktoken": "^1.0.12",
21
24
  "langsmith": "^0.3.64",
22
25
  "mustache": "^4.2.0",
23
- "p-queue": "^9.0.1",
26
+ "p-queue": "^6.6.2",
24
27
  "uuid": "^10.0.0",
25
28
  "zod": "^3.25.76 || ^4"
26
29
  },
@@ -28,14 +31,10 @@
28
31
  "@types/decamelize": "^1.2.0",
29
32
  "@types/mustache": "^4",
30
33
  "@types/uuid": "^10.0.0",
31
- "ansi-styles": "^6.2.3",
32
- "camelcase": "^9.0.0",
33
- "decamelize": "^6.0.1",
34
34
  "dotenv": "^17.2.1",
35
35
  "dpdm": "^3.14.0",
36
36
  "eslint": "^9.34.0",
37
37
  "ml-matrix": "^6.10.4",
38
- "p-retry": "^7.0.0",
39
38
  "prettier": "^2.8.3",
40
39
  "rimraf": "^5.0.1",
41
40
  "typescript": "~5.8.3",
@@ -1,169 +0,0 @@
1
-
2
- //#region ../../node_modules/.pnpm/ansi-styles@6.2.3/node_modules/ansi-styles/index.js
3
- const ANSI_BACKGROUND_OFFSET = 10;
4
- const wrapAnsi16 = (offset = 0) => (code) => `\u001B[${code + offset}m`;
5
- const wrapAnsi256 = (offset = 0) => (code) => `\u001B[${38 + offset};5;${code}m`;
6
- const wrapAnsi16m = (offset = 0) => (red, green, blue) => `\u001B[${38 + offset};2;${red};${green};${blue}m`;
7
- const styles = {
8
- modifier: {
9
- reset: [0, 0],
10
- bold: [1, 22],
11
- dim: [2, 22],
12
- italic: [3, 23],
13
- underline: [4, 24],
14
- overline: [53, 55],
15
- inverse: [7, 27],
16
- hidden: [8, 28],
17
- strikethrough: [9, 29]
18
- },
19
- color: {
20
- black: [30, 39],
21
- red: [31, 39],
22
- green: [32, 39],
23
- yellow: [33, 39],
24
- blue: [34, 39],
25
- magenta: [35, 39],
26
- cyan: [36, 39],
27
- white: [37, 39],
28
- blackBright: [90, 39],
29
- gray: [90, 39],
30
- grey: [90, 39],
31
- redBright: [91, 39],
32
- greenBright: [92, 39],
33
- yellowBright: [93, 39],
34
- blueBright: [94, 39],
35
- magentaBright: [95, 39],
36
- cyanBright: [96, 39],
37
- whiteBright: [97, 39]
38
- },
39
- bgColor: {
40
- bgBlack: [40, 49],
41
- bgRed: [41, 49],
42
- bgGreen: [42, 49],
43
- bgYellow: [43, 49],
44
- bgBlue: [44, 49],
45
- bgMagenta: [45, 49],
46
- bgCyan: [46, 49],
47
- bgWhite: [47, 49],
48
- bgBlackBright: [100, 49],
49
- bgGray: [100, 49],
50
- bgGrey: [100, 49],
51
- bgRedBright: [101, 49],
52
- bgGreenBright: [102, 49],
53
- bgYellowBright: [103, 49],
54
- bgBlueBright: [104, 49],
55
- bgMagentaBright: [105, 49],
56
- bgCyanBright: [106, 49],
57
- bgWhiteBright: [107, 49]
58
- }
59
- };
60
- const modifierNames = Object.keys(styles.modifier);
61
- const foregroundColorNames = Object.keys(styles.color);
62
- const backgroundColorNames = Object.keys(styles.bgColor);
63
- const colorNames = [...foregroundColorNames, ...backgroundColorNames];
64
- function assembleStyles() {
65
- const codes = /* @__PURE__ */ new Map();
66
- for (const [groupName, group] of Object.entries(styles)) {
67
- for (const [styleName, style] of Object.entries(group)) {
68
- styles[styleName] = {
69
- open: `\u001B[${style[0]}m`,
70
- close: `\u001B[${style[1]}m`
71
- };
72
- group[styleName] = styles[styleName];
73
- codes.set(style[0], style[1]);
74
- }
75
- Object.defineProperty(styles, groupName, {
76
- value: group,
77
- enumerable: false
78
- });
79
- }
80
- Object.defineProperty(styles, "codes", {
81
- value: codes,
82
- enumerable: false
83
- });
84
- styles.color.close = "\x1B[39m";
85
- styles.bgColor.close = "\x1B[49m";
86
- styles.color.ansi = wrapAnsi16();
87
- styles.color.ansi256 = wrapAnsi256();
88
- styles.color.ansi16m = wrapAnsi16m();
89
- styles.bgColor.ansi = wrapAnsi16(ANSI_BACKGROUND_OFFSET);
90
- styles.bgColor.ansi256 = wrapAnsi256(ANSI_BACKGROUND_OFFSET);
91
- styles.bgColor.ansi16m = wrapAnsi16m(ANSI_BACKGROUND_OFFSET);
92
- Object.defineProperties(styles, {
93
- rgbToAnsi256: {
94
- value(red, green, blue) {
95
- if (red === green && green === blue) {
96
- if (red < 8) return 16;
97
- if (red > 248) return 231;
98
- return Math.round((red - 8) / 247 * 24) + 232;
99
- }
100
- return 16 + 36 * Math.round(red / 255 * 5) + 6 * Math.round(green / 255 * 5) + Math.round(blue / 255 * 5);
101
- },
102
- enumerable: false
103
- },
104
- hexToRgb: {
105
- value(hex) {
106
- const matches = /[a-f\d]{6}|[a-f\d]{3}/i.exec(hex.toString(16));
107
- if (!matches) return [
108
- 0,
109
- 0,
110
- 0
111
- ];
112
- let [colorString] = matches;
113
- if (colorString.length === 3) colorString = [...colorString].map((character) => character + character).join("");
114
- const integer = Number.parseInt(colorString, 16);
115
- return [
116
- integer >> 16 & 255,
117
- integer >> 8 & 255,
118
- integer & 255
119
- ];
120
- },
121
- enumerable: false
122
- },
123
- hexToAnsi256: {
124
- value: (hex) => styles.rgbToAnsi256(...styles.hexToRgb(hex)),
125
- enumerable: false
126
- },
127
- ansi256ToAnsi: {
128
- value(code) {
129
- if (code < 8) return 30 + code;
130
- if (code < 16) return 90 + (code - 8);
131
- let red;
132
- let green;
133
- let blue;
134
- if (code >= 232) {
135
- red = ((code - 232) * 10 + 8) / 255;
136
- green = red;
137
- blue = red;
138
- } else {
139
- code -= 16;
140
- const remainder = code % 36;
141
- red = Math.floor(code / 36) / 5;
142
- green = Math.floor(remainder / 6) / 5;
143
- blue = remainder % 6 / 5;
144
- }
145
- const value = Math.max(red, green, blue) * 2;
146
- if (value === 0) return 30;
147
- let result = 30 + (Math.round(blue) << 2 | Math.round(green) << 1 | Math.round(red));
148
- if (value === 2) result += 60;
149
- return result;
150
- },
151
- enumerable: false
152
- },
153
- rgbToAnsi: {
154
- value: (red, green, blue) => styles.ansi256ToAnsi(styles.rgbToAnsi256(red, green, blue)),
155
- enumerable: false
156
- },
157
- hexToAnsi: {
158
- value: (hex) => styles.ansi256ToAnsi(styles.hexToAnsi256(hex)),
159
- enumerable: false
160
- }
161
- });
162
- return styles;
163
- }
164
- const ansiStyles = assembleStyles();
165
- var ansi_styles_default = ansiStyles;
166
-
167
- //#endregion
168
- exports.default = ansi_styles_default;
169
- //# sourceMappingURL=index.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.cjs","names":[],"sources":["../../../../../../../../node_modules/.pnpm/ansi-styles@6.2.3/node_modules/ansi-styles/index.js"],"sourcesContent":["const ANSI_BACKGROUND_OFFSET = 10;\n\nconst wrapAnsi16 = (offset = 0) => code => `\\u001B[${code + offset}m`;\n\nconst wrapAnsi256 = (offset = 0) => code => `\\u001B[${38 + offset};5;${code}m`;\n\nconst wrapAnsi16m = (offset = 0) => (red, green, blue) => `\\u001B[${38 + offset};2;${red};${green};${blue}m`;\n\nconst styles = {\n\tmodifier: {\n\t\treset: [0, 0],\n\t\t// 21 isn't widely supported and 22 does the same thing\n\t\tbold: [1, 22],\n\t\tdim: [2, 22],\n\t\titalic: [3, 23],\n\t\tunderline: [4, 24],\n\t\toverline: [53, 55],\n\t\tinverse: [7, 27],\n\t\thidden: [8, 28],\n\t\tstrikethrough: [9, 29],\n\t},\n\tcolor: {\n\t\tblack: [30, 39],\n\t\tred: [31, 39],\n\t\tgreen: [32, 39],\n\t\tyellow: [33, 39],\n\t\tblue: [34, 39],\n\t\tmagenta: [35, 39],\n\t\tcyan: [36, 39],\n\t\twhite: [37, 39],\n\n\t\t// Bright color\n\t\tblackBright: [90, 39],\n\t\tgray: [90, 39], // Alias of `blackBright`\n\t\tgrey: [90, 39], // Alias of `blackBright`\n\t\tredBright: [91, 39],\n\t\tgreenBright: [92, 39],\n\t\tyellowBright: [93, 39],\n\t\tblueBright: [94, 39],\n\t\tmagentaBright: [95, 39],\n\t\tcyanBright: [96, 39],\n\t\twhiteBright: [97, 39],\n\t},\n\tbgColor: {\n\t\tbgBlack: [40, 49],\n\t\tbgRed: [41, 49],\n\t\tbgGreen: [42, 49],\n\t\tbgYellow: [43, 49],\n\t\tbgBlue: [44, 49],\n\t\tbgMagenta: [45, 49],\n\t\tbgCyan: [46, 49],\n\t\tbgWhite: [47, 49],\n\n\t\t// Bright color\n\t\tbgBlackBright: [100, 49],\n\t\tbgGray: [100, 49], // Alias of `bgBlackBright`\n\t\tbgGrey: [100, 49], // Alias of `bgBlackBright`\n\t\tbgRedBright: [101, 49],\n\t\tbgGreenBright: [102, 49],\n\t\tbgYellowBright: [103, 49],\n\t\tbgBlueBright: [104, 49],\n\t\tbgMagentaBright: [105, 49],\n\t\tbgCyanBright: [106, 49],\n\t\tbgWhiteBright: [107, 49],\n\t},\n};\n\nexport const modifierNames = Object.keys(styles.modifier);\nexport const foregroundColorNames = Object.keys(styles.color);\nexport const backgroundColorNames = Object.keys(styles.bgColor);\nexport const colorNames = [...foregroundColorNames, ...backgroundColorNames];\n\nfunction assembleStyles() {\n\tconst codes = new Map();\n\n\tfor (const [groupName, group] of Object.entries(styles)) {\n\t\tfor (const [styleName, style] of Object.entries(group)) {\n\t\t\tstyles[styleName] = {\n\t\t\t\topen: `\\u001B[${style[0]}m`,\n\t\t\t\tclose: `\\u001B[${style[1]}m`,\n\t\t\t};\n\n\t\t\tgroup[styleName] = styles[styleName];\n\n\t\t\tcodes.set(style[0], style[1]);\n\t\t}\n\n\t\tObject.defineProperty(styles, groupName, {\n\t\t\tvalue: group,\n\t\t\tenumerable: false,\n\t\t});\n\t}\n\n\tObject.defineProperty(styles, 'codes', {\n\t\tvalue: codes,\n\t\tenumerable: false,\n\t});\n\n\tstyles.color.close = '\\u001B[39m';\n\tstyles.bgColor.close = '\\u001B[49m';\n\n\tstyles.color.ansi = wrapAnsi16();\n\tstyles.color.ansi256 = wrapAnsi256();\n\tstyles.color.ansi16m = wrapAnsi16m();\n\tstyles.bgColor.ansi = wrapAnsi16(ANSI_BACKGROUND_OFFSET);\n\tstyles.bgColor.ansi256 = wrapAnsi256(ANSI_BACKGROUND_OFFSET);\n\tstyles.bgColor.ansi16m = wrapAnsi16m(ANSI_BACKGROUND_OFFSET);\n\n\t// From https://github.com/Qix-/color-convert/blob/3f0e0d4e92e235796ccb17f6e85c72094a651f49/conversions.js\n\tObject.defineProperties(styles, {\n\t\trgbToAnsi256: {\n\t\t\tvalue(red, green, blue) {\n\t\t\t\t// We use the extended greyscale palette here, with the exception of\n\t\t\t\t// black and white. normal palette only has 4 greyscale shades.\n\t\t\t\tif (red === green && green === blue) {\n\t\t\t\t\tif (red < 8) {\n\t\t\t\t\t\treturn 16;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (red > 248) {\n\t\t\t\t\t\treturn 231;\n\t\t\t\t\t}\n\n\t\t\t\t\treturn Math.round(((red - 8) / 247) * 24) + 232;\n\t\t\t\t}\n\n\t\t\t\treturn 16\n\t\t\t\t\t+ (36 * Math.round(red / 255 * 5))\n\t\t\t\t\t+ (6 * Math.round(green / 255 * 5))\n\t\t\t\t\t+ Math.round(blue / 255 * 5);\n\t\t\t},\n\t\t\tenumerable: false,\n\t\t},\n\t\thexToRgb: {\n\t\t\tvalue(hex) {\n\t\t\t\tconst matches = /[a-f\\d]{6}|[a-f\\d]{3}/i.exec(hex.toString(16));\n\t\t\t\tif (!matches) {\n\t\t\t\t\treturn [0, 0, 0];\n\t\t\t\t}\n\n\t\t\t\tlet [colorString] = matches;\n\n\t\t\t\tif (colorString.length === 3) {\n\t\t\t\t\tcolorString = [...colorString].map(character => character + character).join('');\n\t\t\t\t}\n\n\t\t\t\tconst integer = Number.parseInt(colorString, 16);\n\n\t\t\t\treturn [\n\t\t\t\t\t/* eslint-disable no-bitwise */\n\t\t\t\t\t(integer >> 16) & 0xFF,\n\t\t\t\t\t(integer >> 8) & 0xFF,\n\t\t\t\t\tinteger & 0xFF,\n\t\t\t\t\t/* eslint-enable no-bitwise */\n\t\t\t\t];\n\t\t\t},\n\t\t\tenumerable: false,\n\t\t},\n\t\thexToAnsi256: {\n\t\t\tvalue: hex => styles.rgbToAnsi256(...styles.hexToRgb(hex)),\n\t\t\tenumerable: false,\n\t\t},\n\t\tansi256ToAnsi: {\n\t\t\tvalue(code) {\n\t\t\t\tif (code < 8) {\n\t\t\t\t\treturn 30 + code;\n\t\t\t\t}\n\n\t\t\t\tif (code < 16) {\n\t\t\t\t\treturn 90 + (code - 8);\n\t\t\t\t}\n\n\t\t\t\tlet red;\n\t\t\t\tlet green;\n\t\t\t\tlet blue;\n\n\t\t\t\tif (code >= 232) {\n\t\t\t\t\tred = (((code - 232) * 10) + 8) / 255;\n\t\t\t\t\tgreen = red;\n\t\t\t\t\tblue = red;\n\t\t\t\t} else {\n\t\t\t\t\tcode -= 16;\n\n\t\t\t\t\tconst remainder = code % 36;\n\n\t\t\t\t\tred = Math.floor(code / 36) / 5;\n\t\t\t\t\tgreen = Math.floor(remainder / 6) / 5;\n\t\t\t\t\tblue = (remainder % 6) / 5;\n\t\t\t\t}\n\n\t\t\t\tconst value = Math.max(red, green, blue) * 2;\n\n\t\t\t\tif (value === 0) {\n\t\t\t\t\treturn 30;\n\t\t\t\t}\n\n\t\t\t\t// eslint-disable-next-line no-bitwise\n\t\t\t\tlet result = 30 + ((Math.round(blue) << 2) | (Math.round(green) << 1) | Math.round(red));\n\n\t\t\t\tif (value === 2) {\n\t\t\t\t\tresult += 60;\n\t\t\t\t}\n\n\t\t\t\treturn result;\n\t\t\t},\n\t\t\tenumerable: false,\n\t\t},\n\t\trgbToAnsi: {\n\t\t\tvalue: (red, green, blue) => styles.ansi256ToAnsi(styles.rgbToAnsi256(red, green, blue)),\n\t\t\tenumerable: false,\n\t\t},\n\t\thexToAnsi: {\n\t\t\tvalue: hex => styles.ansi256ToAnsi(styles.hexToAnsi256(hex)),\n\t\t\tenumerable: false,\n\t\t},\n\t});\n\n\treturn styles;\n}\n\nconst ansiStyles = assembleStyles();\n\nexport default ansiStyles;\n"],"x_google_ignoreList":[0],"mappings":";;AAAA,MAAM,yBAAyB;AAE/B,MAAM,aAAa,CAAC,SAAS,MAAM,UAAQ,CAAC,OAAO,EAAE,OAAO,OAAO,CAAC,CAAC;AAErE,MAAM,cAAc,CAAC,SAAS,MAAM,UAAQ,CAAC,OAAO,EAAE,KAAK,OAAO,GAAG,EAAE,KAAK,CAAC,CAAC;AAE9E,MAAM,cAAc,CAAC,SAAS,MAAM,CAAC,KAAK,OAAO,SAAS,CAAC,OAAO,EAAE,KAAK,OAAO,GAAG,EAAE,IAAI,CAAC,EAAE,MA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AY,IAAK;IACzB;IAED,MAAM,QAAQ,KAAK,IAAI,KAAK,OAAO,KAAK,GAAG;AAE3C,QAAI,UAAU,EACb,QAAO;IAIR,IAAI,SAAS,MAAO,KAAK,MAAM,KAAK,IAAI,IAAM,KAAK,MAAM,MAAM,IAAI,IAAK,KAAK,MAAM,IAAI;AAEvF,QAAI,UAAU,GACb,UAAU;AAGX,WAAO;GACP;GACD,YAAY;EACZ;EACD,WAAW;GACV,OAAO,CAAC,KAAK,OAAO,SAAS,OAAO,cAAc,OAAO,aAAa,KAAK,OAAO,KAAK,CAAC;GACxF,YAAY;EACZ;EACD,WAAW;GACV,OAAO,SAAO,OAAO,cAAc,OAAO,aAAa,IAAI,CAAC;GAC5D,YAAY;EACZ;CACD,EAAC;AAEF,QAAO;AACP;AAED,MAAM,aAAa,gBAAgB;AAEnC,0BAAe"}
@@ -1,168 +0,0 @@
1
- //#region ../../node_modules/.pnpm/ansi-styles@6.2.3/node_modules/ansi-styles/index.js
2
- const ANSI_BACKGROUND_OFFSET = 10;
3
- const wrapAnsi16 = (offset = 0) => (code) => `\u001B[${code + offset}m`;
4
- const wrapAnsi256 = (offset = 0) => (code) => `\u001B[${38 + offset};5;${code}m`;
5
- const wrapAnsi16m = (offset = 0) => (red, green, blue) => `\u001B[${38 + offset};2;${red};${green};${blue}m`;
6
- const styles = {
7
- modifier: {
8
- reset: [0, 0],
9
- bold: [1, 22],
10
- dim: [2, 22],
11
- italic: [3, 23],
12
- underline: [4, 24],
13
- overline: [53, 55],
14
- inverse: [7, 27],
15
- hidden: [8, 28],
16
- strikethrough: [9, 29]
17
- },
18
- color: {
19
- black: [30, 39],
20
- red: [31, 39],
21
- green: [32, 39],
22
- yellow: [33, 39],
23
- blue: [34, 39],
24
- magenta: [35, 39],
25
- cyan: [36, 39],
26
- white: [37, 39],
27
- blackBright: [90, 39],
28
- gray: [90, 39],
29
- grey: [90, 39],
30
- redBright: [91, 39],
31
- greenBright: [92, 39],
32
- yellowBright: [93, 39],
33
- blueBright: [94, 39],
34
- magentaBright: [95, 39],
35
- cyanBright: [96, 39],
36
- whiteBright: [97, 39]
37
- },
38
- bgColor: {
39
- bgBlack: [40, 49],
40
- bgRed: [41, 49],
41
- bgGreen: [42, 49],
42
- bgYellow: [43, 49],
43
- bgBlue: [44, 49],
44
- bgMagenta: [45, 49],
45
- bgCyan: [46, 49],
46
- bgWhite: [47, 49],
47
- bgBlackBright: [100, 49],
48
- bgGray: [100, 49],
49
- bgGrey: [100, 49],
50
- bgRedBright: [101, 49],
51
- bgGreenBright: [102, 49],
52
- bgYellowBright: [103, 49],
53
- bgBlueBright: [104, 49],
54
- bgMagentaBright: [105, 49],
55
- bgCyanBright: [106, 49],
56
- bgWhiteBright: [107, 49]
57
- }
58
- };
59
- const modifierNames = Object.keys(styles.modifier);
60
- const foregroundColorNames = Object.keys(styles.color);
61
- const backgroundColorNames = Object.keys(styles.bgColor);
62
- const colorNames = [...foregroundColorNames, ...backgroundColorNames];
63
- function assembleStyles() {
64
- const codes = /* @__PURE__ */ new Map();
65
- for (const [groupName, group] of Object.entries(styles)) {
66
- for (const [styleName, style] of Object.entries(group)) {
67
- styles[styleName] = {
68
- open: `\u001B[${style[0]}m`,
69
- close: `\u001B[${style[1]}m`
70
- };
71
- group[styleName] = styles[styleName];
72
- codes.set(style[0], style[1]);
73
- }
74
- Object.defineProperty(styles, groupName, {
75
- value: group,
76
- enumerable: false
77
- });
78
- }
79
- Object.defineProperty(styles, "codes", {
80
- value: codes,
81
- enumerable: false
82
- });
83
- styles.color.close = "\x1B[39m";
84
- styles.bgColor.close = "\x1B[49m";
85
- styles.color.ansi = wrapAnsi16();
86
- styles.color.ansi256 = wrapAnsi256();
87
- styles.color.ansi16m = wrapAnsi16m();
88
- styles.bgColor.ansi = wrapAnsi16(ANSI_BACKGROUND_OFFSET);
89
- styles.bgColor.ansi256 = wrapAnsi256(ANSI_BACKGROUND_OFFSET);
90
- styles.bgColor.ansi16m = wrapAnsi16m(ANSI_BACKGROUND_OFFSET);
91
- Object.defineProperties(styles, {
92
- rgbToAnsi256: {
93
- value(red, green, blue) {
94
- if (red === green && green === blue) {
95
- if (red < 8) return 16;
96
- if (red > 248) return 231;
97
- return Math.round((red - 8) / 247 * 24) + 232;
98
- }
99
- return 16 + 36 * Math.round(red / 255 * 5) + 6 * Math.round(green / 255 * 5) + Math.round(blue / 255 * 5);
100
- },
101
- enumerable: false
102
- },
103
- hexToRgb: {
104
- value(hex) {
105
- const matches = /[a-f\d]{6}|[a-f\d]{3}/i.exec(hex.toString(16));
106
- if (!matches) return [
107
- 0,
108
- 0,
109
- 0
110
- ];
111
- let [colorString] = matches;
112
- if (colorString.length === 3) colorString = [...colorString].map((character) => character + character).join("");
113
- const integer = Number.parseInt(colorString, 16);
114
- return [
115
- integer >> 16 & 255,
116
- integer >> 8 & 255,
117
- integer & 255
118
- ];
119
- },
120
- enumerable: false
121
- },
122
- hexToAnsi256: {
123
- value: (hex) => styles.rgbToAnsi256(...styles.hexToRgb(hex)),
124
- enumerable: false
125
- },
126
- ansi256ToAnsi: {
127
- value(code) {
128
- if (code < 8) return 30 + code;
129
- if (code < 16) return 90 + (code - 8);
130
- let red;
131
- let green;
132
- let blue;
133
- if (code >= 232) {
134
- red = ((code - 232) * 10 + 8) / 255;
135
- green = red;
136
- blue = red;
137
- } else {
138
- code -= 16;
139
- const remainder = code % 36;
140
- red = Math.floor(code / 36) / 5;
141
- green = Math.floor(remainder / 6) / 5;
142
- blue = remainder % 6 / 5;
143
- }
144
- const value = Math.max(red, green, blue) * 2;
145
- if (value === 0) return 30;
146
- let result = 30 + (Math.round(blue) << 2 | Math.round(green) << 1 | Math.round(red));
147
- if (value === 2) result += 60;
148
- return result;
149
- },
150
- enumerable: false
151
- },
152
- rgbToAnsi: {
153
- value: (red, green, blue) => styles.ansi256ToAnsi(styles.rgbToAnsi256(red, green, blue)),
154
- enumerable: false
155
- },
156
- hexToAnsi: {
157
- value: (hex) => styles.ansi256ToAnsi(styles.hexToAnsi256(hex)),
158
- enumerable: false
159
- }
160
- });
161
- return styles;
162
- }
163
- const ansiStyles = assembleStyles();
164
- var ansi_styles_default = ansiStyles;
165
-
166
- //#endregion
167
- export { ansi_styles_default as default };
168
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../../../../../../../node_modules/.pnpm/ansi-styles@6.2.3/node_modules/ansi-styles/index.js"],"sourcesContent":["const ANSI_BACKGROUND_OFFSET = 10;\n\nconst wrapAnsi16 = (offset = 0) => code => `\\u001B[${code + offset}m`;\n\nconst wrapAnsi256 = (offset = 0) => code => `\\u001B[${38 + offset};5;${code}m`;\n\nconst wrapAnsi16m = (offset = 0) => (red, green, blue) => `\\u001B[${38 + offset};2;${red};${green};${blue}m`;\n\nconst styles = {\n\tmodifier: {\n\t\treset: [0, 0],\n\t\t// 21 isn't widely supported and 22 does the same thing\n\t\tbold: [1, 22],\n\t\tdim: [2, 22],\n\t\titalic: [3, 23],\n\t\tunderline: [4, 24],\n\t\toverline: [53, 55],\n\t\tinverse: [7, 27],\n\t\thidden: [8, 28],\n\t\tstrikethrough: [9, 29],\n\t},\n\tcolor: {\n\t\tblack: [30, 39],\n\t\tred: [31, 39],\n\t\tgreen: [32, 39],\n\t\tyellow: [33, 39],\n\t\tblue: [34, 39],\n\t\tmagenta: [35, 39],\n\t\tcyan: [36, 39],\n\t\twhite: [37, 39],\n\n\t\t// Bright color\n\t\tblackBright: [90, 39],\n\t\tgray: [90, 39], // Alias of `blackBright`\n\t\tgrey: [90, 39], // Alias of `blackBright`\n\t\tredBright: [91, 39],\n\t\tgreenBright: [92, 39],\n\t\tyellowBright: [93, 39],\n\t\tblueBright: [94, 39],\n\t\tmagentaBright: [95, 39],\n\t\tcyanBright: [96, 39],\n\t\twhiteBright: [97, 39],\n\t},\n\tbgColor: {\n\t\tbgBlack: [40, 49],\n\t\tbgRed: [41, 49],\n\t\tbgGreen: [42, 49],\n\t\tbgYellow: [43, 49],\n\t\tbgBlue: [44, 49],\n\t\tbgMagenta: [45, 49],\n\t\tbgCyan: [46, 49],\n\t\tbgWhite: [47, 49],\n\n\t\t// Bright color\n\t\tbgBlackBright: [100, 49],\n\t\tbgGray: [100, 49], // Alias of `bgBlackBright`\n\t\tbgGrey: [100, 49], // Alias of `bgBlackBright`\n\t\tbgRedBright: [101, 49],\n\t\tbgGreenBright: [102, 49],\n\t\tbgYellowBright: [103, 49],\n\t\tbgBlueBright: [104, 49],\n\t\tbgMagentaBright: [105, 49],\n\t\tbgCyanBright: [106, 49],\n\t\tbgWhiteBright: [107, 49],\n\t},\n};\n\nexport const modifierNames = Object.keys(styles.modifier);\nexport const foregroundColorNames = Object.keys(styles.color);\nexport const backgroundColorNames = Object.keys(styles.bgColor);\nexport const colorNames = [...foregroundColorNames, ...backgroundColorNames];\n\nfunction assembleStyles() {\n\tconst codes = new Map();\n\n\tfor (const [groupName, group] of Object.entries(styles)) {\n\t\tfor (const [styleName, style] of Object.entries(group)) {\n\t\t\tstyles[styleName] = {\n\t\t\t\topen: `\\u001B[${style[0]}m`,\n\t\t\t\tclose: `\\u001B[${style[1]}m`,\n\t\t\t};\n\n\t\t\tgroup[styleName] = styles[styleName];\n\n\t\t\tcodes.set(style[0], style[1]);\n\t\t}\n\n\t\tObject.defineProperty(styles, groupName, {\n\t\t\tvalue: group,\n\t\t\tenumerable: false,\n\t\t});\n\t}\n\n\tObject.defineProperty(styles, 'codes', {\n\t\tvalue: codes,\n\t\tenumerable: false,\n\t});\n\n\tstyles.color.close = '\\u001B[39m';\n\tstyles.bgColor.close = '\\u001B[49m';\n\n\tstyles.color.ansi = wrapAnsi16();\n\tstyles.color.ansi256 = wrapAnsi256();\n\tstyles.color.ansi16m = wrapAnsi16m();\n\tstyles.bgColor.ansi = wrapAnsi16(ANSI_BACKGROUND_OFFSET);\n\tstyles.bgColor.ansi256 = wrapAnsi256(ANSI_BACKGROUND_OFFSET);\n\tstyles.bgColor.ansi16m = wrapAnsi16m(ANSI_BACKGROUND_OFFSET);\n\n\t// From https://github.com/Qix-/color-convert/blob/3f0e0d4e92e235796ccb17f6e85c72094a651f49/conversions.js\n\tObject.defineProperties(styles, {\n\t\trgbToAnsi256: {\n\t\t\tvalue(red, green, blue) {\n\t\t\t\t// We use the extended greyscale palette here, with the exception of\n\t\t\t\t// black and white. normal palette only has 4 greyscale shades.\n\t\t\t\tif (red === green && green === blue) {\n\t\t\t\t\tif (red < 8) {\n\t\t\t\t\t\treturn 16;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (red > 248) {\n\t\t\t\t\t\treturn 231;\n\t\t\t\t\t}\n\n\t\t\t\t\treturn Math.round(((red - 8) / 247) * 24) + 232;\n\t\t\t\t}\n\n\t\t\t\treturn 16\n\t\t\t\t\t+ (36 * Math.round(red / 255 * 5))\n\t\t\t\t\t+ (6 * Math.round(green / 255 * 5))\n\t\t\t\t\t+ Math.round(blue / 255 * 5);\n\t\t\t},\n\t\t\tenumerable: false,\n\t\t},\n\t\thexToRgb: {\n\t\t\tvalue(hex) {\n\t\t\t\tconst matches = /[a-f\\d]{6}|[a-f\\d]{3}/i.exec(hex.toString(16));\n\t\t\t\tif (!matches) {\n\t\t\t\t\treturn [0, 0, 0];\n\t\t\t\t}\n\n\t\t\t\tlet [colorString] = matches;\n\n\t\t\t\tif (colorString.length === 3) {\n\t\t\t\t\tcolorString = [...colorString].map(character => character + character).join('');\n\t\t\t\t}\n\n\t\t\t\tconst integer = Number.parseInt(colorString, 16);\n\n\t\t\t\treturn [\n\t\t\t\t\t/* eslint-disable no-bitwise */\n\t\t\t\t\t(integer >> 16) & 0xFF,\n\t\t\t\t\t(integer >> 8) & 0xFF,\n\t\t\t\t\tinteger & 0xFF,\n\t\t\t\t\t/* eslint-enable no-bitwise */\n\t\t\t\t];\n\t\t\t},\n\t\t\tenumerable: false,\n\t\t},\n\t\thexToAnsi256: {\n\t\t\tvalue: hex => styles.rgbToAnsi256(...styles.hexToRgb(hex)),\n\t\t\tenumerable: false,\n\t\t},\n\t\tansi256ToAnsi: {\n\t\t\tvalue(code) {\n\t\t\t\tif (code < 8) {\n\t\t\t\t\treturn 30 + code;\n\t\t\t\t}\n\n\t\t\t\tif (code < 16) {\n\t\t\t\t\treturn 90 + (code - 8);\n\t\t\t\t}\n\n\t\t\t\tlet red;\n\t\t\t\tlet green;\n\t\t\t\tlet blue;\n\n\t\t\t\tif (code >= 232) {\n\t\t\t\t\tred = (((code - 232) * 10) + 8) / 255;\n\t\t\t\t\tgreen = red;\n\t\t\t\t\tblue = red;\n\t\t\t\t} else {\n\t\t\t\t\tcode -= 16;\n\n\t\t\t\t\tconst remainder = code % 36;\n\n\t\t\t\t\tred = Math.floor(code / 36) / 5;\n\t\t\t\t\tgreen = Math.floor(remainder / 6) / 5;\n\t\t\t\t\tblue = (remainder % 6) / 5;\n\t\t\t\t}\n\n\t\t\t\tconst value = Math.max(red, green, blue) * 2;\n\n\t\t\t\tif (value === 0) {\n\t\t\t\t\treturn 30;\n\t\t\t\t}\n\n\t\t\t\t// eslint-disable-next-line no-bitwise\n\t\t\t\tlet result = 30 + ((Math.round(blue) << 2) | (Math.round(green) << 1) | Math.round(red));\n\n\t\t\t\tif (value === 2) {\n\t\t\t\t\tresult += 60;\n\t\t\t\t}\n\n\t\t\t\treturn result;\n\t\t\t},\n\t\t\tenumerable: false,\n\t\t},\n\t\trgbToAnsi: {\n\t\t\tvalue: (red, green, blue) => styles.ansi256ToAnsi(styles.rgbToAnsi256(red, green, blue)),\n\t\t\tenumerable: false,\n\t\t},\n\t\thexToAnsi: {\n\t\t\tvalue: hex => styles.ansi256ToAnsi(styles.hexToAnsi256(hex)),\n\t\t\tenumerable: false,\n\t\t},\n\t});\n\n\treturn styles;\n}\n\nconst ansiStyles = assembleStyles();\n\nexport default ansiStyles;\n"],"x_google_ignoreList":[0],"mappings":";AAAA,MAAM,yBAAyB;AAE/B,MAAM,aAAa,CAAC,SAAS,MAAM,UAAQ,CAAC,OAAO,EAAE,OAAO,OAAO,CAA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