Compare commits

...

4 Commits

Author SHA1 Message Date
github-actions[bot] 76b925e62a Release 0.7.3 (#1357)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: himself65 <himself65@users.noreply.github.com>
2024-10-20 20:15:51 -07:00
Alex Yang 0493f679a4 fix(core): inline python-format-js (#1356) 2024-10-20 20:07:48 -07:00
github-actions[bot] 0e0a627c9a Release 0.7.2 (#1355)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: himself65 <himself65@users.noreply.github.com>
2024-10-20 19:22:59 -07:00
Alex Yang 4ba2cfe7ab fix(env): align export APIs (#1354) 2024-10-20 17:11:09 -07:00
61 changed files with 917 additions and 99 deletions
+12
View File
@@ -1,5 +1,17 @@
# docs
## 0.0.95
### Patch Changes
- llamaindex@0.7.3
## 0.0.94
### Patch Changes
- llamaindex@0.7.2
## 0.0.93
### Patch Changes
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "docs",
"version": "0.0.93",
"version": "0.0.95",
"private": true,
"scripts": {
"docusaurus": "docusaurus",
-3
View File
@@ -39,9 +39,6 @@
"overrides": {
"trim": "1.0.1",
"protobufjs": "7.2.6"
},
"patchedDependencies": {
"python-format-js@1.4.3": "patches/python-format-js@1.4.3.patch"
}
},
"lint-staged": {
+12
View File
@@ -1,5 +1,17 @@
# @llamaindex/autotool
## 4.0.3
### Patch Changes
- llamaindex@0.7.3
## 4.0.2
### Patch Changes
- llamaindex@0.7.2
## 4.0.1
### Patch Changes
@@ -1,5 +1,19 @@
# @llamaindex/autotool-01-node-example
## 0.0.35
### Patch Changes
- llamaindex@0.7.3
- @llamaindex/autotool@4.0.3
## 0.0.34
### Patch Changes
- llamaindex@0.7.2
- @llamaindex/autotool@4.0.2
## 0.0.33
### Patch Changes
@@ -13,5 +13,5 @@
"scripts": {
"start": "node --import tsx --import @llamaindex/autotool/node ./src/index.ts"
},
"version": "0.0.33"
"version": "0.0.35"
}
@@ -1,5 +1,19 @@
# @llamaindex/autotool-02-next-example
## 0.1.79
### Patch Changes
- llamaindex@0.7.3
- @llamaindex/autotool@4.0.3
## 0.1.78
### Patch Changes
- llamaindex@0.7.2
- @llamaindex/autotool@4.0.2
## 0.1.77
### Patch Changes
@@ -1,7 +1,7 @@
{
"name": "@llamaindex/autotool-02-next-example",
"private": true,
"version": "0.1.77",
"version": "0.1.79",
"scripts": {
"dev": "next dev",
"build": "next build",
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@llamaindex/autotool",
"type": "module",
"version": "4.0.1",
"version": "4.0.3",
"description": "auto transpile your JS function to LLM Agent compatible",
"files": [
"dist",
+15
View File
@@ -1,5 +1,20 @@
# @llamaindex/cloud
## 1.0.3
### Patch Changes
- Updated dependencies [0493f67]
- @llamaindex/core@0.3.3
## 1.0.2
### Patch Changes
- Updated dependencies [4ba2cfe]
- @llamaindex/env@0.1.15
- @llamaindex/core@0.3.2
## 1.0.1
### Patch Changes
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@llamaindex/cloud",
"version": "1.0.1",
"version": "1.0.3",
"type": "module",
"license": "MIT",
"scripts": {
+15
View File
@@ -1,5 +1,20 @@
# @llamaindex/community
## 0.0.51
### Patch Changes
- Updated dependencies [0493f67]
- @llamaindex/core@0.3.3
## 0.0.50
### Patch Changes
- Updated dependencies [4ba2cfe]
- @llamaindex/env@0.1.15
- @llamaindex/core@0.3.2
## 0.0.49
### Patch Changes
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@llamaindex/community",
"description": "Community package for LlamaIndexTS",
"version": "0.0.49",
"version": "0.0.51",
"type": "module",
"types": "dist/type/index.d.ts",
"main": "dist/cjs/index.js",
+13
View File
@@ -1,5 +1,18 @@
# @llamaindex/core
## 0.3.3
### Patch Changes
- 0493f67: fix(core): inline `python-format-js`
## 0.3.2
### Patch Changes
- Updated dependencies [4ba2cfe]
- @llamaindex/env@0.1.15
## 0.3.1
### Patch Changes
+2 -3
View File
@@ -1,7 +1,7 @@
{
"name": "@llamaindex/core",
"type": "module",
"version": "0.3.1",
"version": "0.3.3",
"description": "LlamaIndex Core Module",
"exports": {
"./agent": {
@@ -336,8 +336,7 @@
"ajv": "^8.17.1",
"bunchee": "5.5.1",
"happy-dom": "^15.7.4",
"natural": "^8.0.1",
"python-format-js": "^1.4.3"
"natural": "^8.0.1"
},
"dependencies": {
"@llamaindex/env": "workspace:*",
+1 -1
View File
@@ -1,7 +1,7 @@
import format from "python-format-js";
import type { ChatMessage } from "../llms";
import type { BaseOutputParser, Metadata } from "../schema";
import { objectEntries } from "../utils";
import { format } from "./format";
import { PromptType } from "./prompt-type";
type MappingFn<TemplatesVar extends string[] = string[]> = (
+207
View File
@@ -0,0 +1,207 @@
/**
* MIT License
*
* Copyright (c) 2019 jhonararipe
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
"use strict";
function formatImpl(this: string, ...args_: any[]) {
// Create variables
let self = this;
const __patterns__ = self.match(/({.*?})/g);
const {
REF,
FILL_CHAR,
MASK_NUMBER,
ALIGN_OP,
CROP_SIZE,
DOT,
FRACTION,
TYPE_VAR,
} = {
REF: 1,
FILL_CHAR: 2,
MASK_NUMBER: 3,
ALIGN_OP: 4,
CROP_SIZE: 5,
DOT: 6,
FRACTION: 7,
TYPE_VAR: 8,
};
const DEFAULT_PLACE = 6;
const ALL_REGEXP =
/{(\w+)?:([^>\^<\d#]|0)?([#%,])?([>^<\.])?(\d+)?(\.)?(\d+)?([eEfFgGdxXobn#%])?}/g;
const regExpBasic = /{\[?(\w+)\]?}/; // it's not best solution
const isObject = typeof args_[0] === "object";
// types/use logic
__patterns__?.map((pattern, patt_index) => {
const kargs = ALL_REGEXP.exec(pattern) || ALL_REGEXP.exec(pattern);
const wargs = regExpBasic.exec(pattern);
// Insert values (one 2 one / array / object)
const INDEX_VAR =
(wargs ? wargs[REF] : kargs ? kargs[REF] : patt_index) || patt_index;
// @ts-expect-error
const NATUAL_VALUE = isObject ? args_[0][INDEX_VAR] : args_[INDEX_VAR];
// @ts-expect-error
let ACTUAL_VALUE = isObject ? args_[0][INDEX_VAR] : args_[INDEX_VAR];
// Verify sintax/semantic
if (ACTUAL_VALUE === null || ACTUAL_VALUE === undefined)
throw new Error(
`Replacement index ${INDEX_VAR} out of range for positional args tuple`,
);
if (kargs) {
// If TYPE_VAR is not defined and the first argument is a number, pad a string should from left, so set TYPE_VAR to "d"
if (kargs[TYPE_VAR] === undefined && typeof ACTUAL_VALUE === "number") {
kargs[TYPE_VAR] = "d";
}
const LETTER =
(!kargs[FILL_CHAR]
? false
: !kargs[ALIGN_OP] &&
[..."FfbefoxXn"].includes(kargs[FILL_CHAR].toLowerCase())
? kargs[FILL_CHAR]
: kargs[TYPE_VAR]) || kargs[TYPE_VAR];
// padronaze
if (LETTER) {
const floatSize = pattern.includes(".")
? Number(kargs[FRACTION] || kargs[CROP_SIZE])
: DEFAULT_PLACE;
switch (LETTER) {
case "E":
ACTUAL_VALUE =
ACTUAL_VALUE.toExponential(DEFAULT_PLACE).toUpperCase();
break;
case "e":
ACTUAL_VALUE = ACTUAL_VALUE.toExponential(DEFAULT_PLACE);
break;
case "X":
ACTUAL_VALUE = ACTUAL_VALUE.toString(16).toUpperCase();
break;
case "x":
ACTUAL_VALUE = ACTUAL_VALUE.toString(16); // Hexadecimal
break;
case "b":
ACTUAL_VALUE = ACTUAL_VALUE.toString(2); // Binary
break;
case "f":
case "F":
ACTUAL_VALUE = ACTUAL_VALUE.toFixed(floatSize);
break;
case "o":
ACTUAL_VALUE = ACTUAL_VALUE.toString(8); // Octal
break;
default:
break;
}
// mask
switch (kargs[MASK_NUMBER]) {
case "#":
const MASK = {
x: "0x",
X: "0X",
o: "0o",
b: "0b",
}[LETTER];
ACTUAL_VALUE = MASK + ACTUAL_VALUE;
break;
}
}
// signal
if (
// @ts-expect-error
[..." +-,%"].includes(kargs[FILL_CHAR]) &&
typeof NATUAL_VALUE === "number"
) {
ACTUAL_VALUE = ACTUAL_VALUE.toString().replace("-", "");
if (NATUAL_VALUE >= 0)
switch (kargs[FILL_CHAR]) {
case "+":
ACTUAL_VALUE = "+" + ACTUAL_VALUE;
break;
case " ":
ACTUAL_VALUE = " " + ACTUAL_VALUE;
break;
case ",":
ACTUAL_VALUE = NATUAL_VALUE.toString()
.split(/(?=(?:...)*$)/)
.join(kargs[FILL_CHAR]);
break;
case "%":
ACTUAL_VALUE =
(NATUAL_VALUE * 100).toFixed(
// @ts-expect-error
kargs[FRACTION] || DEFAULT_PLACE,
) + "%";
break;
}
else ACTUAL_VALUE = "-" + ACTUAL_VALUE;
}
// space / order / trim
if (kargs[CROP_SIZE]) {
ACTUAL_VALUE = ACTUAL_VALUE.toString();
const FILL_ELEMENT = kargs[FILL_CHAR] || " ";
const SIZE_STRING = ACTUAL_VALUE.length;
const SIZE_ARG = kargs[CROP_SIZE];
const FILL_LENGTH = SIZE_STRING > SIZE_ARG ? SIZE_STRING : SIZE_ARG;
const FILL = FILL_ELEMENT.repeat(FILL_LENGTH);
switch (kargs[ALIGN_OP] || kargs[FILL_CHAR]) {
case "<":
ACTUAL_VALUE = ACTUAL_VALUE.padEnd(FILL_LENGTH, FILL_ELEMENT);
break;
case ".":
if (!(LETTER && /[fF]/.test(LETTER)))
ACTUAL_VALUE = ACTUAL_VALUE.slice(0, SIZE_ARG);
break;
case ">":
ACTUAL_VALUE = ACTUAL_VALUE.padStart(FILL_LENGTH, FILL_ELEMENT);
break;
case "^":
const length_start = Math.floor((FILL_LENGTH - SIZE_STRING) / 2);
const string_start =
length_start > 0
? FILL_ELEMENT.repeat(length_start) + ACTUAL_VALUE
: ACTUAL_VALUE;
ACTUAL_VALUE = FILL.replace(
RegExp(`.{${string_start.length}}`),
string_start,
);
break;
default:
ACTUAL_VALUE = LETTER
? ACTUAL_VALUE.padStart(FILL_LENGTH, FILL_ELEMENT)
: ACTUAL_VALUE.padEnd(FILL_LENGTH, FILL_ELEMENT);
break;
}
}
}
// SET Definitive value
self = self.replace(pattern, ACTUAL_VALUE);
});
return self;
}
export const format = (inputString: string, ...param: any[]) =>
formatImpl.apply(inputString, param);
+6
View File
@@ -1,5 +1,11 @@
# @llamaindex/env
## 0.1.15
### Patch Changes
- 4ba2cfe: fix(env): align export APIs
## 0.1.14
### Patch Changes
+18 -24
View File
@@ -1,10 +1,11 @@
{
"name": "@llamaindex/env",
"description": "environment wrapper, supports all JS environment including node, deno, bun, edge runtime, and cloudflare worker",
"version": "0.1.14",
"version": "0.1.15",
"type": "module",
"types": "dist/type/index.d.ts",
"main": "dist/cjs/index.js",
"types": "dist/index.d.ts",
"module": "dist/index.js",
"main": "dist/index.cjs",
"keywords": [
"llm",
"llama",
@@ -24,29 +25,30 @@
"exports": {
".": {
"node": {
"types": "./dist/type/index.d.ts",
"types": "./dist/index.d.ts",
"import": "./dist/index.js",
"default": "./dist/cjs/index.js"
"require": "./dist/index.cjs",
"default": "./dist/index.cjs"
},
"workerd": {
"types": "./dist/type/index.workerd.d.ts",
"types": "./dist/index.workerd.d.ts",
"default": "./dist/index.workerd.js"
},
"edge-light": {
"types": "./dist/type/index.edge-light.d.ts",
"types": "./dist/index.edge-light.d.ts",
"default": "./dist/index.edge-light.js"
},
"browser": {
"types": "./dist/type/index.browser.d.ts",
"types": "./dist/index.browser.d.ts",
"default": "./dist/index.browser.js"
},
"import": {
"types": "./dist/type/index.d.ts",
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
},
"require": {
"types": "./dist/type/index.d.ts",
"default": "./dist/cjs/index.js"
"types": "./dist/index.d.cts",
"default": "./dist/index.cjs"
}
}
},
@@ -61,27 +63,19 @@
"directory": "packages/env"
},
"scripts": {
"build": "rm -rf ./dist && pnpm run build:esm && pnpm run build:cjs && pnpm run build:type",
"build:esm": "swc src -d dist --strip-leading-paths --config-file ../../.swcrc",
"build:cjs": "swc src -d dist/cjs --strip-leading-paths --config-file ../../.cjs.swcrc",
"build:type": "tsc -p tsconfig.json",
"postbuild": "node -e \"require('fs').writeFileSync('./dist/cjs/package.json', JSON.stringify({ type: 'commonjs' }))\"",
"dev": "concurrently \"pnpm run build:esm --watch\" \"pnpm run build:cjs --watch\" \"pnpm run build:type --watch\"",
"dev": "bunchee --watch",
"build": "bunchee",
"test": "vitest"
},
"devDependencies": {
"@aws-crypto/sha256-js": "^5.2.0",
"@swc/cli": "^0.4.0",
"@swc/core": "^1.7.22",
"@types/node": "^22.5.1",
"@types/readable-stream": "^4.0.15",
"@xenova/transformers": "^2.17.2",
"concurrently": "^8.2.2",
"bunchee": "5.5.1",
"gpt-tokenizer": "^2.5.0",
"pathe": "^1.1.2",
"vitest": "^2.0.5"
},
"dependencies": {
"@types/node": "^22.5.1"
},
"peerDependencies": {
"@aws-crypto/sha256-js": "^5.2.0",
"@xenova/transformers": "^2.17.2",
+3
View File
@@ -5,4 +5,7 @@
*/
import memFS from "./memfs/index.js";
export function createWriteStream() {
throw new Error("Not supported in this environment.");
}
export const fs = memFS.promises;
+1 -1
View File
@@ -4,7 +4,6 @@
* @module
*/
import "./global-check.js";
export * from "./web-polyfill.js";
export { consoleLogger, emptyLogger, type Logger } from "./logger/index.js";
export {
@@ -15,6 +14,7 @@ export {
} from "./multi-model/index.browser.js";
export { Tokenizers, tokenizers, type Tokenizer } from "./tokenizers/js.js";
export { NotSupportCurrentRuntimeClass } from "./utils/shared.js";
export * from "./web-polyfill.js";
// @ts-expect-error
if (typeof window === "undefined") {
console.warn(
+1 -2
View File
@@ -4,8 +4,6 @@
* @module
*/
import "./global-check.js";
export * from "./node-polyfill.js";
export { consoleLogger, emptyLogger, type Logger } from "./logger/index.js";
export {
loadTransformers,
@@ -13,5 +11,6 @@ export {
type LoadTransformerEvent,
type OnLoad,
} from "./multi-model/index.non-nodejs.js";
export * from "./node-polyfill.js";
export { Tokenizers, tokenizers, type Tokenizer } from "./tokenizers/js.js";
export { NotSupportCurrentRuntimeClass } from "./utils/shared.js";
+5 -2
View File
@@ -9,9 +9,12 @@
*/
import { Sha256 } from "@aws-crypto/sha256-js";
import pathe from "pathe";
import { fs } from "./fs/memory.js";
import { NotSupportCurrentRuntimeClass } from "./utils/shared.js";
export { fs, pathe as path };
export { createWriteStream, fs } from "./fs/memory.js";
export { fileURLToPath } from "./url/index.js";
export { pathe as path };
export const Readable = NotSupportCurrentRuntimeClass.bind("non-Node.js");
export interface SHA256 {
update(data: string | Uint8Array): void;
+172
View File
@@ -0,0 +1,172 @@
// Copyright (c) 2000-2006, The Perl Foundation.
//
// Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.
//
// Preamble
//
// This license establishes the terms under which a given free software Package may be copied, modified, distributed, and/or redistributed. The intent is that the Copyright Holder maintains some artistic control over the development of that Package while still keeping the Package available as open source and free software.
//
// You are always permitted to make arrangements wholly outside of this license directly with the Copyright Holder of a given Package. If the terms of this license do not permit the full use that you propose to make of the Package, you should contact the Copyright Holder and seek a different licensing arrangement.
//
// Definitions
//
// "Copyright Holder" means the individual(s) or organization(s) named in the copyright notice for the entire Package.
//
// "Contributor" means any party that has contributed code or other material to the Package, in accordance with the Copyright Holder's procedures.
//
// "You" and "your" means any person who would like to copy, distribute, or modify the Package.
//
// "Package" means the collection of files distributed by the Copyright Holder, and derivatives of that collection and/or of those files. A given Package may consist of either the Standard Version, or a Modified Version.
//
// "Distribute" means providing a copy of the Package or making it accessible to anyone else, or in the case of a company or organization, to others outside of your company or organization.
//
// "Distributor Fee" means any fee that you charge for Distributing this Package or providing support for this Package to another party. It does not mean licensing fees.
//
// "Standard Version" refers to the Package if it has not been modified, or has been modified only in ways explicitly requested by the Copyright Holder.
//
// "Modified Version" means the Package, if it has been changed, and such changes were not explicitly requested by the Copyright Holder.
//
// "Original License" means this Artistic License as Distributed with the Standard Version of the Package, in its current version or as it may be modified by The Perl Foundation in the future.
//
// "Source" form means the source code, documentation source, and configuration files for the Package.
//
// "Compiled" form means the compiled bytecode, object code, binary, or any other form resulting from mechanical transformation or translation of the Source form.
//
// Permission for Use and Modification Without Distribution
//
// (1) You are permitted to use the Standard Version and create and use Modified Versions for any purpose without restriction, provided that you do not Distribute the Modified Version.
//
// Permissions for Redistribution of the Standard Version
//
// (2) You may Distribute verbatim copies of the Source form of the Standard Version of this Package in any medium without restriction, either gratis or for a Distributor Fee, provided that you duplicate all of the original copyright notices and associated disclaimers. At your discretion, such verbatim copies may or may not include a Compiled form of the Package.
//
// (3) You may apply any bug fixes, portability changes, and other modifications made available from the Copyright Holder. The resulting Package will still be considered the Standard Version, and as such will be subject to the Original License.
//
// Distribution of Modified Versions of the Package as Source
//
// (4) You may Distribute your Modified Version as Source (either gratis or for a Distributor Fee, and with or without a Compiled form of the Modified Version) provided that you clearly document how it differs from the Standard Version, including, but not limited to, documenting any non-standard features, executables, or modules, and provided that you do at least ONE of the following:
//
// (a) make the Modified Version available to the Copyright Holder of the Standard Version, under the Original License, so that the Copyright Holder may include your modifications in the Standard Version.
// (b) ensure that installation of your Modified Version does not prevent the user installing or running the Standard Version. In addition, the Modified Version must bear a name that is different from the name of the Standard Version.
// (c) allow anyone who receives a copy of the Modified Version to make the Source form of the Modified Version available to others under
//
// (i) the Original License or
// (ii) a license that permits the licensee to freely copy, modify and redistribute the Modified Version using the same licensing terms that apply to the copy that the licensee received, and requires that the Source form of the Modified Version, and of any works derived from it, be made freely available in that license fees are prohibited but Distributor Fees are allowed.
//
// Distribution of Compiled Forms of the Standard Version or Modified Versions without the Source
//
// (5) You may Distribute Compiled forms of the Standard Version without the Source, provided that you include complete instructions on how to get the Source of the Standard Version. Such instructions must be valid at the time of your distribution. If these instructions, at any time while you are carrying out such distribution, become invalid, you must provide new instructions on demand or cease further distribution. If you provide valid instructions or cease distribution within thirty days after you become aware that the instructions are invalid, then you do not forfeit any of your rights under this license.
//
// (6) You may Distribute a Modified Version in Compiled form without the Source, provided that you comply with Section 4 with respect to the Source of the Modified Version.
//
// Aggregating or Linking the Package
//
// (7) You may aggregate the Package (either the Standard Version or Modified Version) with other packages and Distribute the resulting aggregation provided that you do not charge a licensing fee for the Package. Distributor Fees are permitted, and licensing fees for other components in the aggregation are permitted. The terms of this license apply to the use and Distribution of the Standard or Modified Versions as included in the aggregation.
//
// (8) You are permitted to link Modified and Standard Versions with other works, to embed the Package in a larger work of your own, or to build stand-alone binary or bytecode versions of applications that include the Package, and Distribute the result without restriction, provided the result does not expose a direct interface to the Package.
//
// Items That are Not Considered Part of a Modified Version
//
// (9) Works (including, but not limited to, modules and scripts) that merely extend or make use of the Package, do not, by themselves, cause the Package to be a Modified Version. In addition, such works are not considered parts of the Package itself, and are not subject to the terms of this license.
//
// General Provisions
//
// (10) Any use, modification, and distribution of the Standard or Modified Versions is governed by this Artistic License. By using, modifying or distributing the Package, you accept this license. Do not use, modify, or distribute the Package, if you do not accept this license.
//
// (11) If your Modified Version has been derived from a Modified Version made by someone other than you, you are nevertheless required to ensure that your Modified Version complies with the requirements of this license.
//
// (12) This license does not grant you the right to use any trademark, service mark, tradename, or logo of the Copyright Holder.
//
// (13) This license includes the non-exclusive, worldwide, free-of-charge patent license to make, have made, use, offer to sell, sell, import and otherwise transfer the Package with respect to any patent claims licensable by the Copyright Holder that are necessarily infringed by the Package. If you institute patent litigation (including a cross-claim or counterclaim) against any party alleging that the Package constitutes direct or contributory patent infringement, then this Artistic License to you shall terminate on the date that such litigation is filed.
//
// (14) Disclaimer of Warranty:
// THE PACKAGE IS PROVIDED BY THE COPYRIGHT HOLDER AND CONTRIBUTORS "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES. THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT ARE DISCLAIMED TO THE EXTENT PERMITTED BY YOUR LOCAL LAW. UNLESS REQUIRED BY LAW, NO COPYRIGHT HOLDER OR CONTRIBUTOR WILL BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING IN ANY WAY OUT OF THE USE OF THE PACKAGE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
/**
* This function ensures the correct decodings of percent-encoded characters as
* well as ensuring a cross-platform valid absolute path string.
*/
export function fileURLToPath(href: string, separator: string): string {
// conform with Node.js fileURLToPath
if (!href.includes(":/")) {
const error = new Error("Invalid URL") as any;
error.code = "ERR_INVALID_URL";
throw error;
}
if (!href.startsWith("file:")) {
const error = new Error("The URL must be of scheme file") as any;
error.code = "ERR_INVALID_URL_SCHEME";
throw error;
}
// https://en.wikipedia.org/wiki/File_URI_scheme#Examples
// https://nodejs.org/api/url.html#urlfileurltopathurl
// file:/path (no hostname)
// file://hostname/path
// file:///path (empty hostname)
let file;
if (separator === "\\") {
// is windows
if (href.startsWith("file:///")) {
// is full path, e.g. file:///foo
file = href.substring(8);
if (file[1] !== ":") {
const error = new Error("File URL path must be absolute") as any;
error.code = "ERR_INVALID_FILE_URL_PATH";
throw error;
}
} else if (href.startsWith("file://localhost/")) {
// is localhost path, e.g. file://localhost/foo
// conform with Node.js fileURLToPath
file = href.substring(17); // trim leading slash
if (file[1] !== ":") {
const error = new Error("File URL path must be absolute") as any;
error.code = "ERR_INVALID_FILE_URL_PATH";
throw error;
}
} else if (href.startsWith("file://")) {
// is host path, e.g. file://hostname/foo
// conform with Node.js fileURLToPath, which does not error
file = href.substring(7);
file = separator + separator + file;
} else if (href.startsWith("file:/")) {
// is full path with unknown drive letter
// conform with Node.js fileURLToPath
file = href.substring(6);
if (file[1] !== ":") {
const error = new Error("File URL path must be absolute") as any;
error.code = "ERR_INVALID_FILE_URL_PATH";
throw error;
}
} else {
file = href;
}
// replace slashes with backslashes
file = file.replace(/[/]/g, separator);
} else if (separator === "/") {
// is posix
if (href.startsWith("file:///")) {
// is full path, e.g. file:///foo
file = href.substring(7); // keep leading slash
} else if (href.startsWith("file://")) {
// is host path, e.g. file://localhost/foo
if (!href.startsWith("file://localhost/")) {
const error = new Error(
'File URL host must be "localhost" or empty',
) as any;
error.code = "ERR_INVALID_FILE_URL_HOST";
throw error;
}
file = href.substring(16); // keep leading slash
} else if (href.startsWith("file:/")) {
// is full path, e.g. file:/foo
file = href.substring(5); // keep leading slash
} else {
file = href;
}
} else {
file = href;
}
return file;
}
+5 -2
View File
@@ -9,9 +9,12 @@
*/
import { Sha256 } from "@aws-crypto/sha256-js";
import pathe from "pathe";
import { fs } from "./fs/memory.js";
import { NotSupportCurrentRuntimeClass } from "./utils/shared.js";
export { fs, pathe as path };
export { createWriteStream, fs } from "./fs/memory.js";
export { fileURLToPath } from "./url/index.js";
export { pathe as path };
export const Readable = NotSupportCurrentRuntimeClass.bind("browser");
export interface SHA256 {
update(data: string | Uint8Array): void;
+12
View File
@@ -1,5 +1,17 @@
# @llamaindex/experimental
## 0.0.104
### Patch Changes
- llamaindex@0.7.3
## 0.0.103
### Patch Changes
- llamaindex@0.7.2
## 0.0.102
### Patch Changes
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@llamaindex/experimental",
"description": "Experimental package for LlamaIndexTS",
"version": "0.0.102",
"version": "0.0.104",
"type": "module",
"types": "dist/type/index.d.ts",
"main": "dist/cjs/index.js",
+35
View File
@@ -1,5 +1,40 @@
# llamaindex
## 0.7.3
### Patch Changes
- Updated dependencies [0493f67]
- @llamaindex/core@0.3.3
- @llamaindex/cloud@1.0.3
- @llamaindex/anthropic@0.0.4
- @llamaindex/clip@0.0.4
- @llamaindex/deepinfra@0.0.4
- @llamaindex/huggingface@0.0.4
- @llamaindex/ollama@0.0.11
- @llamaindex/openai@0.1.20
- @llamaindex/portkey-ai@0.0.4
- @llamaindex/replicate@0.0.4
- @llamaindex/groq@0.0.19
## 0.7.2
### Patch Changes
- Updated dependencies [4ba2cfe]
- @llamaindex/env@0.1.15
- @llamaindex/cloud@1.0.2
- @llamaindex/core@0.3.2
- @llamaindex/anthropic@0.0.3
- @llamaindex/clip@0.0.3
- @llamaindex/deepinfra@0.0.3
- @llamaindex/groq@0.0.18
- @llamaindex/huggingface@0.0.3
- @llamaindex/ollama@0.0.10
- @llamaindex/openai@0.1.19
- @llamaindex/portkey-ai@0.0.3
- @llamaindex/replicate@0.0.3
## 0.7.1
### Patch Changes
@@ -1,5 +1,17 @@
# @llamaindex/cloudflare-worker-agent-test
## 0.0.88
### Patch Changes
- llamaindex@0.7.3
## 0.0.87
### Patch Changes
- llamaindex@0.7.2
## 0.0.86
### Patch Changes
@@ -1,6 +1,6 @@
{
"name": "@llamaindex/cloudflare-worker-agent-test",
"version": "0.0.86",
"version": "0.0.88",
"type": "module",
"private": true,
"scripts": {
@@ -1,5 +1,17 @@
# @llamaindex/llama-parse-browser-test
## 0.0.14
### Patch Changes
- @llamaindex/cloud@1.0.3
## 0.0.13
### Patch Changes
- @llamaindex/cloud@1.0.2
## 0.0.12
### Patch Changes
@@ -1,7 +1,7 @@
{
"name": "@llamaindex/llama-parse-browser-test",
"private": true,
"version": "0.0.12",
"version": "0.0.14",
"type": "module",
"scripts": {
"dev": "vite",
@@ -1,5 +1,17 @@
# @llamaindex/next-agent-test
## 0.1.88
### Patch Changes
- llamaindex@0.7.3
## 0.1.87
### Patch Changes
- llamaindex@0.7.2
## 0.1.86
### Patch Changes
@@ -1,6 +1,6 @@
{
"name": "@llamaindex/next-agent-test",
"version": "0.1.86",
"version": "0.1.88",
"private": true,
"scripts": {
"dev": "next dev",
@@ -1,5 +1,17 @@
# test-edge-runtime
## 0.1.87
### Patch Changes
- llamaindex@0.7.3
## 0.1.86
### Patch Changes
- llamaindex@0.7.2
## 0.1.85
### Patch Changes
@@ -1,6 +1,6 @@
{
"name": "@llamaindex/nextjs-edge-runtime-test",
"version": "0.1.85",
"version": "0.1.87",
"private": true,
"scripts": {
"dev": "next dev",
@@ -1,5 +1,17 @@
# @llamaindex/next-node-runtime
## 0.0.69
### Patch Changes
- llamaindex@0.7.3
## 0.0.68
### Patch Changes
- llamaindex@0.7.2
## 0.0.67
### Patch Changes
@@ -1,6 +1,6 @@
{
"name": "@llamaindex/next-node-runtime-test",
"version": "0.0.67",
"version": "0.0.69",
"private": true,
"scripts": {
"dev": "next dev",
@@ -1,5 +1,17 @@
# @llamaindex/waku-query-engine-test
## 0.0.88
### Patch Changes
- llamaindex@0.7.3
## 0.0.87
### Patch Changes
- llamaindex@0.7.2
## 0.0.86
### Patch Changes
@@ -1,6 +1,6 @@
{
"name": "@llamaindex/waku-query-engine-test",
"version": "0.0.86",
"version": "0.0.88",
"type": "module",
"private": true,
"scripts": {
+3 -2
View File
@@ -1,6 +1,6 @@
{
"name": "llamaindex",
"version": "0.7.1",
"version": "0.7.3",
"license": "MIT",
"type": "module",
"keywords": [
@@ -40,7 +40,7 @@
"@llamaindex/ollama": "workspace:*",
"@llamaindex/openai": "workspace:*",
"@llamaindex/portkey-ai": "workspace:*",
"@llamaindex/replicate": "workspace:^0.0.2",
"@llamaindex/replicate": "workspace:^0.0.4",
"@mistralai/mistralai": "^1.0.4",
"@mixedbread-ai/sdk": "^2.2.11",
"@pinecone-database/pinecone": "^3.0.2",
@@ -54,6 +54,7 @@
"ajv": "^8.17.1",
"assemblyai": "^4.7.0",
"chromadb": "1.9.2",
"chromadb-default-embed": "^2.13.2",
"cohere-ai": "7.13.0",
"discord-api-types": "^0.37.98",
"gpt-tokenizer": "^2.5.0",
+15
View File
@@ -1,5 +1,20 @@
# @llamaindex/anthropic
## 0.0.4
### Patch Changes
- Updated dependencies [0493f67]
- @llamaindex/core@0.3.3
## 0.0.3
### Patch Changes
- Updated dependencies [4ba2cfe]
- @llamaindex/env@0.1.15
- @llamaindex/core@0.3.2
## 0.0.2
### Patch Changes
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@llamaindex/anthropic",
"description": "Anthropic Adapter for LlamaIndex",
"version": "0.0.2",
"version": "0.0.4",
"type": "module",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
+17
View File
@@ -1,5 +1,22 @@
# @llamaindex/clip
## 0.0.4
### Patch Changes
- Updated dependencies [0493f67]
- @llamaindex/core@0.3.3
- @llamaindex/openai@0.1.20
## 0.0.3
### Patch Changes
- Updated dependencies [4ba2cfe]
- @llamaindex/env@0.1.15
- @llamaindex/core@0.3.2
- @llamaindex/openai@0.1.19
## 0.0.2
### Patch Changes
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@llamaindex/clip",
"description": "Clip Embedding Adapter for LlamaIndex",
"version": "0.0.2",
"version": "0.0.4",
"type": "module",
"types": "dist/index.d.ts",
"main": "dist/index.cjs",
+17
View File
@@ -1,5 +1,22 @@
# @llamaindex/deepinfra
## 0.0.4
### Patch Changes
- Updated dependencies [0493f67]
- @llamaindex/core@0.3.3
- @llamaindex/openai@0.1.20
## 0.0.3
### Patch Changes
- Updated dependencies [4ba2cfe]
- @llamaindex/env@0.1.15
- @llamaindex/core@0.3.2
- @llamaindex/openai@0.1.19
## 0.0.2
### Patch Changes
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@llamaindex/deepinfra",
"description": "Deepinfra Adapter for LlamaIndex",
"version": "0.0.2",
"version": "0.0.4",
"type": "module",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
+14
View File
@@ -1,5 +1,19 @@
# @llamaindex/groq
## 0.0.19
### Patch Changes
- @llamaindex/openai@0.1.20
## 0.0.18
### Patch Changes
- Updated dependencies [4ba2cfe]
- @llamaindex/env@0.1.15
- @llamaindex/openai@0.1.19
## 0.0.17
### Patch Changes
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@llamaindex/groq",
"description": "Groq Adapter for LlamaIndex",
"version": "0.0.17",
"version": "0.0.19",
"type": "module",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
@@ -1,5 +1,22 @@
# @llamaindex/huggingface
## 0.0.4
### Patch Changes
- Updated dependencies [0493f67]
- @llamaindex/core@0.3.3
- @llamaindex/openai@0.1.20
## 0.0.3
### Patch Changes
- Updated dependencies [4ba2cfe]
- @llamaindex/env@0.1.15
- @llamaindex/core@0.3.2
- @llamaindex/openai@0.1.19
## 0.0.2
### Patch Changes
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@llamaindex/huggingface",
"description": "Huggingface Adapter for LlamaIndex",
"version": "0.0.2",
"version": "0.0.4",
"type": "module",
"types": "dist/index.d.ts",
"main": "dist/index.cjs",
+15
View File
@@ -1,5 +1,20 @@
# @llamaindex/ollama
## 0.0.11
### Patch Changes
- Updated dependencies [0493f67]
- @llamaindex/core@0.3.3
## 0.0.10
### Patch Changes
- Updated dependencies [4ba2cfe]
- @llamaindex/env@0.1.15
- @llamaindex/core@0.3.2
## 0.0.9
### Patch Changes
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@llamaindex/ollama",
"description": "Ollama Adapter for LlamaIndex",
"version": "0.0.9",
"version": "0.0.11",
"type": "module",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
+15
View File
@@ -1,5 +1,20 @@
# @llamaindex/openai
## 0.1.20
### Patch Changes
- Updated dependencies [0493f67]
- @llamaindex/core@0.3.3
## 0.1.19
### Patch Changes
- Updated dependencies [4ba2cfe]
- @llamaindex/env@0.1.15
- @llamaindex/core@0.3.2
## 0.1.18
### Patch Changes
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@llamaindex/openai",
"description": "OpenAI Adapter for LlamaIndex",
"version": "0.1.18",
"version": "0.1.20",
"type": "module",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
@@ -1,5 +1,20 @@
# @llamaindex/portkey-ai
## 0.0.4
### Patch Changes
- Updated dependencies [0493f67]
- @llamaindex/core@0.3.3
## 0.0.3
### Patch Changes
- Updated dependencies [4ba2cfe]
- @llamaindex/env@0.1.15
- @llamaindex/core@0.3.2
## 0.0.2
### Patch Changes
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@llamaindex/portkey-ai",
"description": "Portkey Adapter for LlamaIndex",
"version": "0.0.2",
"version": "0.0.4",
"type": "module",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
+15
View File
@@ -1,5 +1,20 @@
# @llamaindex/replicate
## 0.0.4
### Patch Changes
- Updated dependencies [0493f67]
- @llamaindex/core@0.3.3
## 0.0.3
### Patch Changes
- Updated dependencies [4ba2cfe]
- @llamaindex/env@0.1.15
- @llamaindex/core@0.3.2
## 0.0.2
### Patch Changes
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@llamaindex/replicate",
"description": "Replicate Adapter for LlamaIndex",
"version": "0.0.2",
"version": "0.0.4",
"type": "module",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
+117 -37
View File
@@ -8,11 +8,6 @@ overrides:
trim: 1.0.1
protobufjs: 7.2.6
patchedDependencies:
python-format-js@1.4.3:
hash: 2qoyzwmpaczaj2mabgmoz6ccpy
path: patches/python-format-js@1.4.3.patch
importers:
.:
@@ -420,9 +415,6 @@ importers:
natural:
specifier: ^8.0.1
version: 8.0.1(@aws-sdk/credential-providers@3.675.0)
python-format-js:
specifier: ^1.4.3
version: 1.4.3(patch_hash=2qoyzwmpaczaj2mabgmoz6ccpy)
packages/core/tests:
devDependencies:
@@ -435,28 +427,25 @@ importers:
packages/env:
dependencies:
'@types/node':
specifier: ^22.5.1
version: 22.5.4
'@aws-crypto/sha256-js':
specifier: ^5.2.0
version: 5.2.0
js-tiktoken:
specifier: ^1.0.12
version: 1.0.14
devDependencies:
'@aws-crypto/sha256-js':
specifier: ^5.2.0
version: 5.2.0
'@swc/cli':
specifier: ^0.4.0
version: 0.4.0(@swc/core@1.7.22(@swc/helpers@0.5.13))(chokidar@3.6.0)
'@swc/core':
specifier: ^1.7.22
version: 1.7.22(@swc/helpers@0.5.13)
'@types/node':
specifier: ^22.5.1
version: 22.5.4
'@types/readable-stream':
specifier: ^4.0.15
version: 4.0.15
'@xenova/transformers':
specifier: ^2.17.2
version: 2.17.2
concurrently:
specifier: ^8.2.2
version: 8.2.2
bunchee:
specifier: 5.5.1
version: 5.5.1(typescript@5.6.3)
gpt-tokenizer:
specifier: ^2.5.0
version: 2.5.0
@@ -465,7 +454,7 @@ importers:
version: 1.1.2
vitest:
specifier: ^2.0.5
version: 2.1.1(@edge-runtime/vm@4.0.3)(@types/node@22.5.4)(happy-dom@15.7.4)(msw@2.4.11(typescript@5.6.2))(terser@5.36.0)
version: 2.1.1(@edge-runtime/vm@4.0.3)(@types/node@22.5.4)(happy-dom@15.7.4)(msw@2.4.11(typescript@5.6.3))(terser@5.36.0)
packages/experimental:
dependencies:
@@ -567,7 +556,7 @@ importers:
specifier: workspace:*
version: link:../providers/portkey-ai
'@llamaindex/replicate':
specifier: workspace:^0.0.2
specifier: workspace:^0.0.4
version: link:../providers/replicate
'@mistralai/mistralai':
specifier: ^1.0.4
@@ -608,6 +597,9 @@ importers:
chromadb:
specifier: 1.9.2
version: 1.9.2(@google/generative-ai@0.12.0)(cohere-ai@7.13.0(@aws-sdk/client-sso-oidc@3.675.0(@aws-sdk/client-sts@3.650.0))(encoding@0.1.13))(encoding@0.1.13)(openai@4.60.1(encoding@0.1.13)(zod@3.23.8))
chromadb-default-embed:
specifier: ^2.13.2
version: 2.13.2
cohere-ai:
specifier: 7.13.0
version: 7.13.0(@aws-sdk/client-sso-oidc@3.675.0(@aws-sdk/client-sts@3.650.0))(encoding@0.1.13)
@@ -3346,6 +3338,10 @@ packages:
resolution: {integrity: sha512-EfsNtY9OR6JCNaUa5bZu2mrs48iqeTz0Gutwf+fU0Kypx33xFQB4DKMhp8u4Ee6qVbLbNWvTHuWwlppLQl4p4Q==}
engines: {node: '>=18'}
'@huggingface/jinja@0.1.3':
resolution: {integrity: sha512-9KsiorsdIK8+7VmlamAT7Uh90zxAhC/SeKaKc80v58JhtPYuwaJpmR/ST7XAUxrHAFqHTCoTH5aJnJDwSL6xIQ==}
engines: {node: '>=18'}
'@huggingface/jinja@0.2.2':
resolution: {integrity: sha512-/KPde26khDUIPkTGU82jdtTW9UAuvUTumCAbFs/7giR0SxsvZC4hru51PBvpijH6BVkHcROcvZM/lpy5h1jRRA==}
engines: {node: '>=18'}
@@ -5073,6 +5069,9 @@ packages:
'@types/react@18.3.5':
resolution: {integrity: sha512-WeqMfGJLGuLCqHGYRGHxnKrXcTitc6L/nBUWfWPcTarG3t9PsquqUMuVeXZeca+mglY4Vo5GZjCi0A3Or2lnxA==}
'@types/readable-stream@4.0.15':
resolution: {integrity: sha512-oAZ3kw+kJFkEqyh7xORZOku1YAKvsFTogRY8kVl4vHpEKiDkfnSA/My8haRE7fvmix5Zyy+1pwzOi7yycGLBJw==}
'@types/resolve@1.20.2':
resolution: {integrity: sha512-60BCwRFOZCQhDncwQdxxeOEEkbc5dIMccYLwbxsS4TUNeVECQ/pBJ0j09mrHOl/JJvpRPGwO9SvE4nR2Nb/a4Q==}
@@ -6085,6 +6084,9 @@ packages:
resolution: {integrity: sha512-bIomtDF5KGpdogkLd9VspvFzk9KfpyyGlS8YFVZl7TGPBHL5snIOnxeshwVgPteQ9b4Eydl+pVbIyE1DcvCWgQ==}
engines: {node: '>=10'}
chromadb-default-embed@2.13.2:
resolution: {integrity: sha512-mhqo5rLjkF2KkxAV0WS82vNIXWpVMzvz5y5ayIB2FxcebUbEBNlcRh6XSSqYChWMfJ9us1ZzLQU8RXqsy3sKaA==}
chromadb@1.8.1:
resolution: {integrity: sha512-NpbYydbg4Uqt/9BXKgkZXn0fqpsh2Z1yjhkhKH+rcHMoq0pwI18BFSU2QU7Fk/ZypwGefW2AvqyE/3ZJIgy4QA==}
engines: {node: '>=14.17.0'}
@@ -10316,9 +10318,6 @@ packages:
resolution: {integrity: sha512-FLpr4flz5xZTSJxSeaheeMKN/EDzMdK7b8PTOC6a5PYFKTucWbdqjgqaEyH0shFiSJrVB1+Qqi4Tk19ccU6Aug==}
engines: {node: '>=12.20'}
python-format-js@1.4.3:
resolution: {integrity: sha512-0iK5zP5HMf4F3Xc3Uo6hggPu4ylEQCKNoLXUYe3S1YfYkFG6DxGDO3KozCrySntAZTPmP9yRI+eMq0MXweHqIw==}
qs@6.11.0:
resolution: {integrity: sha512-MvjoMCJwEarSbUYk5O+nmoSzSutSsTwF85zcHPQ9OrlFoZOYIjaqBAJIqIXjptyD5vThxGq52Xu/MaJzRkIk4Q==}
engines: {node: '>=0.6'}
@@ -16717,6 +16716,8 @@ snapshots:
dependencies:
'@huggingface/tasks': 0.12.22
'@huggingface/jinja@0.1.3': {}
'@huggingface/jinja@0.2.2': {}
'@huggingface/tasks@0.12.22':
@@ -18710,6 +18711,11 @@ snapshots:
'@types/prop-types': 15.7.12
csstype: 3.1.3
'@types/readable-stream@4.0.15':
dependencies:
'@types/node': 22.7.7
safe-buffer: 5.1.2
'@types/resolve@1.20.2': {}
'@types/responselike@1.0.3':
@@ -19038,6 +19044,15 @@ snapshots:
msw: 2.4.11(typescript@5.6.2)
vite: 5.4.2(@types/node@22.7.7)(terser@5.36.0)
'@vitest/mocker@2.1.1(@vitest/spy@2.1.1)(msw@2.4.11(typescript@5.6.3))(vite@5.4.2(@types/node@22.5.4)(terser@5.36.0))':
dependencies:
'@vitest/spy': 2.1.1
estree-walker: 3.0.3
magic-string: 0.30.11
optionalDependencies:
msw: 2.4.11(typescript@5.6.3)
vite: 5.4.2(@types/node@22.5.4)(terser@5.36.0)
'@vitest/mocker@2.1.1(@vitest/spy@2.1.1)(msw@2.4.8(typescript@5.6.3))(vite@5.4.2(@types/node@22.7.7)(terser@5.36.0))':
dependencies:
'@vitest/spy': 2.1.1
@@ -19825,7 +19840,7 @@ snapshots:
'@rollup/plugin-replace': 6.0.1(rollup@4.24.0)
'@rollup/plugin-wasm': 6.2.2(rollup@4.24.0)
'@rollup/pluginutils': 5.1.2(rollup@4.24.0)
'@swc/core': 1.7.22(@swc/helpers@0.5.13)
'@swc/core': 1.7.36(@swc/helpers@0.5.13)
'@swc/helpers': 0.5.13
arg: 5.0.2
clean-css: 5.3.3
@@ -19834,7 +19849,7 @@ snapshots:
pretty-bytes: 5.6.0
rollup: 4.24.0
rollup-plugin-dts: 6.1.1(rollup@4.24.0)(typescript@5.6.2)
rollup-plugin-swc3: 0.11.2(@swc/core@1.7.22(@swc/helpers@0.5.13))(rollup@4.24.0)
rollup-plugin-swc3: 0.11.2(@swc/core@1.7.36(@swc/helpers@0.5.13))(rollup@4.24.0)
rollup-preserve-directives: 1.1.2(rollup@4.24.0)
tslib: 2.8.0
optionalDependencies:
@@ -19848,7 +19863,7 @@ snapshots:
'@rollup/plugin-replace': 6.0.1(rollup@4.24.0)
'@rollup/plugin-wasm': 6.2.2(rollup@4.24.0)
'@rollup/pluginutils': 5.1.2(rollup@4.24.0)
'@swc/core': 1.7.22(@swc/helpers@0.5.13)
'@swc/core': 1.7.36(@swc/helpers@0.5.13)
'@swc/helpers': 0.5.13
arg: 5.0.2
clean-css: 5.3.3
@@ -19857,7 +19872,7 @@ snapshots:
pretty-bytes: 5.6.0
rollup: 4.24.0
rollup-plugin-dts: 6.1.1(rollup@4.24.0)(typescript@5.6.3)
rollup-plugin-swc3: 0.11.2(@swc/core@1.7.22(@swc/helpers@0.5.13))(rollup@4.24.0)
rollup-plugin-swc3: 0.11.2(@swc/core@1.7.36(@swc/helpers@0.5.13))(rollup@4.24.0)
rollup-preserve-directives: 1.1.2(rollup@4.24.0)
tslib: 2.8.0
optionalDependencies:
@@ -20043,6 +20058,14 @@ snapshots:
chownr@2.0.0: {}
chromadb-default-embed@2.13.2:
dependencies:
'@huggingface/jinja': 0.1.3
onnxruntime-web: 1.14.0
sharp: 0.32.6
optionalDependencies:
onnxruntime-node: 1.14.0
chromadb@1.8.1(cohere-ai@7.14.0(encoding@0.1.13))(encoding@0.1.13)(openai@4.68.1(encoding@0.1.13)):
dependencies:
cliui: 8.0.1
@@ -21496,7 +21519,7 @@ snapshots:
eval@0.1.8:
dependencies:
'@types/node': 22.5.4
'@types/node': 22.7.7
require-like: 0.1.2
event-target-shim@5.0.1: {}
@@ -24037,6 +24060,29 @@ snapshots:
typescript: 5.6.2
optional: true
msw@2.4.11(typescript@5.6.3):
dependencies:
'@bundled-es-modules/cookie': 2.0.0
'@bundled-es-modules/statuses': 1.0.1
'@bundled-es-modules/tough-cookie': 0.1.6
'@inquirer/confirm': 3.2.0
'@mswjs/interceptors': 0.35.9
'@open-draft/until': 2.1.0
'@types/cookie': 0.6.0
'@types/statuses': 2.0.5
chalk: 4.1.2
graphql: 16.9.0
headers-polyfill: 4.0.3
is-node-process: 1.2.0
outvariant: 1.4.3
path-to-regexp: 6.3.0
strict-event-emitter: 0.5.1
type-fest: 4.26.1
yargs: 17.7.2
optionalDependencies:
typescript: 5.6.3
optional: true
msw@2.4.8(typescript@5.6.3):
dependencies:
'@bundled-es-modules/cookie': 2.0.0
@@ -25229,8 +25275,6 @@ snapshots:
dependencies:
escape-goat: 4.0.0
python-format-js@1.4.3(patch_hash=2qoyzwmpaczaj2mabgmoz6ccpy): {}
qs@6.11.0:
dependencies:
side-channel: 1.0.6
@@ -25769,11 +25813,11 @@ snapshots:
dependencies:
rollup-plugin-inject: 3.0.2
rollup-plugin-swc3@0.11.2(@swc/core@1.7.22(@swc/helpers@0.5.13))(rollup@4.24.0):
rollup-plugin-swc3@0.11.2(@swc/core@1.7.36(@swc/helpers@0.5.13))(rollup@4.24.0):
dependencies:
'@fastify/deepmerge': 1.3.0
'@rollup/pluginutils': 5.1.2(rollup@4.24.0)
'@swc/core': 1.7.22(@swc/helpers@0.5.13)
'@swc/core': 1.7.36(@swc/helpers@0.5.13)
get-tsconfig: 4.8.1
rollup: 4.24.0
rollup-preserve-directives: 1.1.2(rollup@4.24.0)
@@ -27195,6 +27239,42 @@ snapshots:
- supports-color
- terser
vitest@2.1.1(@edge-runtime/vm@4.0.3)(@types/node@22.5.4)(happy-dom@15.7.4)(msw@2.4.11(typescript@5.6.3))(terser@5.36.0):
dependencies:
'@vitest/expect': 2.1.1
'@vitest/mocker': 2.1.1(@vitest/spy@2.1.1)(msw@2.4.11(typescript@5.6.3))(vite@5.4.2(@types/node@22.5.4)(terser@5.36.0))
'@vitest/pretty-format': 2.1.1
'@vitest/runner': 2.1.1
'@vitest/snapshot': 2.1.1
'@vitest/spy': 2.1.1
'@vitest/utils': 2.1.1
chai: 5.1.1
debug: 4.3.7
magic-string: 0.30.11
pathe: 1.1.2
std-env: 3.7.0
tinybench: 2.9.0
tinyexec: 0.3.0
tinypool: 1.0.1
tinyrainbow: 1.2.0
vite: 5.4.2(@types/node@22.5.4)(terser@5.36.0)
vite-node: 2.1.1(@types/node@22.5.4)(terser@5.36.0)
why-is-node-running: 2.3.0
optionalDependencies:
'@edge-runtime/vm': 4.0.3
'@types/node': 22.5.4
happy-dom: 15.7.4
transitivePeerDependencies:
- less
- lightningcss
- msw
- sass
- sass-embedded
- stylus
- sugarss
- supports-color
- terser
vitest@2.1.1(@edge-runtime/vm@4.0.3)(@types/node@22.7.7)(happy-dom@15.7.4)(msw@2.4.11(typescript@5.6.2))(terser@5.36.0):
dependencies:
'@vitest/expect': 2.1.1