@langchain/langgraph 0.2.73 → 0.2.74
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/channels/any_value.js.map +1 -1
- package/dist/channels/base.cjs +4 -4
- package/dist/channels/base.js.map +1 -1
- package/dist/channels/binop.js.map +1 -1
- package/dist/channels/dynamic_barrier_value.js.map +1 -1
- package/dist/channels/ephemeral_value.js.map +1 -1
- package/dist/channels/last_value.js.map +1 -1
- package/dist/channels/named_barrier_value.js.map +1 -1
- package/dist/channels/topic.js.map +1 -1
- package/dist/constants.cjs +5 -5
- package/dist/constants.d.ts +2 -2
- package/dist/constants.js.map +1 -1
- package/dist/errors.cjs +4 -4
- package/dist/errors.js.map +1 -1
- package/dist/func/index.cjs +3 -3
- package/dist/func/index.js.map +1 -1
- package/dist/func/types.cjs +1 -2
- package/dist/graph/annotation.cjs +2 -2
- package/dist/graph/annotation.js.map +1 -1
- package/dist/graph/graph.cjs +46 -40
- package/dist/graph/graph.d.ts +10 -2
- package/dist/graph/graph.js +46 -40
- package/dist/graph/graph.js.map +1 -1
- package/dist/graph/index.cjs +2 -1
- package/dist/graph/index.d.ts +1 -1
- package/dist/graph/index.js +1 -1
- package/dist/graph/index.js.map +1 -1
- package/dist/graph/message.cjs +43 -5
- package/dist/graph/message.d.ts +5 -0
- package/dist/graph/message.js +40 -3
- package/dist/graph/message.js.map +1 -1
- package/dist/graph/message.test.cjs +196 -0
- package/dist/graph/message.test.d.ts +1 -0
- package/dist/graph/message.test.js +194 -0
- package/dist/graph/message.test.js.map +1 -0
- package/dist/graph/messages_annotation.cjs +51 -1
- package/dist/graph/messages_annotation.d.ts +47 -0
- package/dist/graph/messages_annotation.js +50 -0
- package/dist/graph/messages_annotation.js.map +1 -1
- package/dist/graph/state.cjs +102 -89
- package/dist/graph/state.d.ts +16 -3
- package/dist/graph/state.js +102 -89
- package/dist/graph/state.js.map +1 -1
- package/dist/graph/zod/plugin.js.map +1 -1
- package/dist/graph/zod/schema.cjs +5 -6
- package/dist/graph/zod/schema.js.map +1 -1
- package/dist/graph/zod/state.cjs +6 -7
- package/dist/graph/zod/state.js.map +1 -1
- package/dist/interrupt.cjs +1 -2
- package/dist/interrupt.js.map +1 -1
- package/dist/managed/base.cjs +3 -3
- package/dist/managed/base.js.map +1 -1
- package/dist/managed/shared_value.js.map +1 -1
- package/dist/prebuilt/agentName.cjs +3 -4
- package/dist/prebuilt/agentName.js.map +1 -1
- package/dist/prebuilt/agent_executor.cjs +1 -2
- package/dist/prebuilt/agent_executor.d.ts +1 -1
- package/dist/prebuilt/agent_executor.js.map +1 -1
- package/dist/prebuilt/chat_agent_executor.cjs +1 -2
- package/dist/prebuilt/chat_agent_executor.js.map +1 -1
- package/dist/prebuilt/react_agent_executor.cjs +4 -4
- package/dist/prebuilt/react_agent_executor.d.ts +2 -2
- package/dist/prebuilt/react_agent_executor.js.map +1 -1
- package/dist/prebuilt/tool_executor.js.map +1 -1
- package/dist/prebuilt/tool_node.cjs +2 -2
- package/dist/prebuilt/tool_node.js.map +1 -1
- package/dist/pregel/algo.cjs +8 -7
- package/dist/pregel/algo.js +1 -0
- package/dist/pregel/algo.js.map +1 -1
- package/dist/pregel/call.cjs +3 -4
- package/dist/pregel/call.js.map +1 -1
- package/dist/pregel/debug.cjs +10 -10
- package/dist/pregel/debug.d.ts +3 -3
- package/dist/pregel/debug.js.map +1 -1
- package/dist/pregel/debug.test.cjs +31 -31
- package/dist/pregel/debug.test.js +12 -12
- package/dist/pregel/debug.test.js.map +1 -1
- package/dist/pregel/index.js.map +1 -1
- package/dist/pregel/io.cjs +8 -9
- package/dist/pregel/io.js +2 -2
- package/dist/pregel/io.js.map +1 -1
- package/dist/pregel/io.mapCommand.test.cjs +29 -29
- package/dist/pregel/io.mapCommand.test.js +5 -5
- package/dist/pregel/io.mapCommand.test.js.map +1 -1
- package/dist/pregel/loop.js.map +1 -1
- package/dist/pregel/messages.cjs +15 -13
- package/dist/pregel/messages.d.ts +1 -1
- package/dist/pregel/messages.js +15 -13
- package/dist/pregel/messages.js.map +1 -1
- package/dist/pregel/messages.test.cjs +105 -105
- package/dist/pregel/messages.test.js +31 -31
- package/dist/pregel/messages.test.js.map +1 -1
- package/dist/pregel/read.js.map +1 -1
- package/dist/pregel/read.test.cjs +35 -35
- package/dist/pregel/read.test.js +4 -4
- package/dist/pregel/read.test.js.map +1 -1
- package/dist/pregel/remote.js.map +1 -1
- package/dist/pregel/retry.cjs +10 -10
- package/dist/pregel/retry.js +8 -8
- package/dist/pregel/retry.js.map +1 -1
- package/dist/pregel/runner.cjs +91 -118
- package/dist/pregel/runner.js +92 -119
- package/dist/pregel/runner.js.map +1 -1
- package/dist/pregel/runner.test.cjs +14 -14
- package/dist/pregel/runner.test.js +4 -4
- package/dist/pregel/runner.test.js.map +1 -1
- package/dist/pregel/stream.js.map +1 -1
- package/dist/pregel/types.cjs +2 -2
- package/dist/pregel/types.js.map +1 -1
- package/dist/pregel/utils/config.cjs +40 -22
- package/dist/pregel/utils/config.d.ts +8 -5
- package/dist/pregel/utils/config.js +33 -14
- package/dist/pregel/utils/config.js.map +1 -1
- package/dist/pregel/utils/config.test.cjs +58 -58
- package/dist/pregel/utils/config.test.js +12 -12
- package/dist/pregel/utils/config.test.js.map +1 -1
- package/dist/pregel/utils/index.cjs +12 -11
- package/dist/pregel/utils/index.js +6 -4
- package/dist/pregel/utils/index.js.map +1 -1
- package/dist/pregel/utils/subgraph.cjs +2 -3
- package/dist/pregel/utils/subgraph.js.map +1 -1
- package/dist/pregel/utils/subgraph.test.cjs +18 -18
- package/dist/pregel/utils/subgraph.test.js +1 -1
- package/dist/pregel/utils/subgraph.test.js.map +1 -1
- package/dist/pregel/validate.cjs +3 -3
- package/dist/pregel/validate.js.map +1 -1
- package/dist/pregel/validate.test.cjs +43 -43
- package/dist/pregel/validate.test.js +3 -3
- package/dist/pregel/validate.test.js.map +1 -1
- package/dist/pregel/write.js.map +1 -1
- package/dist/pregel/write.test.cjs +30 -30
- package/dist/pregel/write.test.js +8 -8
- package/dist/pregel/write.test.js.map +1 -1
- package/dist/setup/async_local_storage.cjs +1 -2
- package/dist/utils.cjs +7 -7
- package/dist/utils.js.map +1 -1
- package/dist/web.cjs +3 -1
- package/dist/web.d.ts +2 -2
- package/dist/web.js +2 -2
- package/dist/web.js.map +1 -1
- package/package.json +11 -11
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.initializeAsyncLocalStorageSingleton =
|
|
3
|
+
exports.initializeAsyncLocalStorageSingleton = initializeAsyncLocalStorageSingleton;
|
|
4
4
|
const singletons_1 = require("@langchain/core/singletons");
|
|
5
5
|
const node_async_hooks_1 = require("node:async_hooks");
|
|
6
6
|
function initializeAsyncLocalStorageSingleton() {
|
|
7
7
|
singletons_1.AsyncLocalStorageProviderSingleton.initializeGlobalInstance(new node_async_hooks_1.AsyncLocalStorage());
|
|
8
8
|
}
|
|
9
|
-
exports.initializeAsyncLocalStorageSingleton = initializeAsyncLocalStorageSingleton;
|
|
10
9
|
//# sourceMappingURL=async_local_storage.js.map
|
package/dist/utils.cjs
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.RunnableCallable = void 0;
|
|
4
|
+
exports.prefixGenerator = prefixGenerator;
|
|
5
|
+
exports.gatherIterator = gatherIterator;
|
|
6
|
+
exports.gatherIteratorSync = gatherIteratorSync;
|
|
7
|
+
exports.patchConfigurable = patchConfigurable;
|
|
8
|
+
exports.isAsyncGeneratorFunction = isAsyncGeneratorFunction;
|
|
9
|
+
exports.isGeneratorFunction = isGeneratorFunction;
|
|
4
10
|
const runnables_1 = require("@langchain/core/runnables");
|
|
5
11
|
const singletons_1 = require("@langchain/core/singletons");
|
|
6
12
|
const config_js_1 = require("./pregel/utils/config.cjs");
|
|
@@ -98,7 +104,6 @@ function* prefixGenerator(generator, prefix) {
|
|
|
98
104
|
}
|
|
99
105
|
}
|
|
100
106
|
}
|
|
101
|
-
exports.prefixGenerator = prefixGenerator;
|
|
102
107
|
// https://github.com/tc39/proposal-array-from-async
|
|
103
108
|
async function gatherIterator(i) {
|
|
104
109
|
const out = [];
|
|
@@ -107,7 +112,6 @@ async function gatherIterator(i) {
|
|
|
107
112
|
}
|
|
108
113
|
return out;
|
|
109
114
|
}
|
|
110
|
-
exports.gatherIterator = gatherIterator;
|
|
111
115
|
function gatherIteratorSync(i) {
|
|
112
116
|
const out = [];
|
|
113
117
|
for (const item of i) {
|
|
@@ -115,7 +119,6 @@ function gatherIteratorSync(i) {
|
|
|
115
119
|
}
|
|
116
120
|
return out;
|
|
117
121
|
}
|
|
118
|
-
exports.gatherIteratorSync = gatherIteratorSync;
|
|
119
122
|
function patchConfigurable(config,
|
|
120
123
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
121
124
|
patch) {
|
|
@@ -140,19 +143,16 @@ patch) {
|
|
|
140
143
|
};
|
|
141
144
|
}
|
|
142
145
|
}
|
|
143
|
-
exports.patchConfigurable = patchConfigurable;
|
|
144
146
|
function isAsyncGeneratorFunction(val) {
|
|
145
147
|
return (val != null &&
|
|
146
148
|
typeof val === "function" &&
|
|
147
149
|
// eslint-disable-next-line no-instanceof/no-instanceof
|
|
148
150
|
val instanceof Object.getPrototypeOf(async function* () { }).constructor);
|
|
149
151
|
}
|
|
150
|
-
exports.isAsyncGeneratorFunction = isAsyncGeneratorFunction;
|
|
151
152
|
function isGeneratorFunction(val) {
|
|
152
153
|
return (val != null &&
|
|
153
154
|
typeof val === "function" &&
|
|
154
155
|
// eslint-disable-next-line no-instanceof/no-instanceof
|
|
155
156
|
val instanceof Object.getPrototypeOf(function* () { }).constructor);
|
|
156
157
|
}
|
|
157
|
-
exports.isGeneratorFunction = isGeneratorFunction;
|
|
158
158
|
//# sourceMappingURL=utils.js.map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KAAK;aACT;SACF,CAAC;IACJ,CAAC;AACH,CAAC;AAED,MAAM,UAAU,wBAAwB,CACtC,GAAY;IAEZ,OAAO,CACL,GAAG,IAAI,IAAI;QACX,OAAO,GAAG,KAAK,UAAU;QACzB,uDAAuD;QACvD,GAAG,YAAY,MAAM,CAAC,cAAc,CAAC,KAAK,SAAS,CAAC,MAAK,CAAC,CAAC,CAAC,WAAW,CACxE,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,mBAAmB,CAAC,GAAY;IAC9C,OAAO,CACL,GAAG,IAAI,IAAI;QACX,OAAO,GAAG,KAAK,UAAU;QACzB,uDAAuD;QACvD,GAAG,YAAY,MAAM,CAAC,cAAc,CAAC,QAAQ,CAAC,MAAK,CAAC,CAAC,CAAC,WAAW,CAClE,CAAC;AACJ,CAAC"}
|
package/dist/web.cjs
CHANGED
|
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.MessagesAnnotation = exports.task = exports.entrypoint = exports.InMemoryStore = exports.AsyncBatchedStore = exports.BaseStore = exports.BaseCheckpointSaver = exports.emptyCheckpoint = exports.copyCheckpoint = exports.MemorySaver = exports.END = exports.START = exports.isCommand = exports.Command = exports.Send = exports.BinaryOperatorAggregate = exports.BaseChannel = exports.Annotation = exports.addMessages = exports.messagesStateReducer = exports.MessageGraph = exports.CompiledStateGraph = exports.StateGraph = exports.Graph = void 0;
|
|
17
|
+
exports.MessagesZodState = exports.MessagesAnnotation = exports.task = exports.entrypoint = exports.InMemoryStore = exports.AsyncBatchedStore = exports.BaseStore = exports.BaseCheckpointSaver = exports.emptyCheckpoint = exports.copyCheckpoint = exports.MemorySaver = exports.END = exports.START = exports.isCommand = exports.Command = exports.Send = exports.BinaryOperatorAggregate = exports.BaseChannel = exports.Annotation = exports.REMOVE_ALL_MESSAGES = exports.addMessages = exports.messagesStateReducer = exports.MessageGraph = exports.CompiledStateGraph = exports.StateGraph = exports.Graph = void 0;
|
|
18
18
|
var index_js_1 = require("./graph/index.cjs");
|
|
19
19
|
Object.defineProperty(exports, "Graph", { enumerable: true, get: function () { return index_js_1.Graph; } });
|
|
20
20
|
Object.defineProperty(exports, "StateGraph", { enumerable: true, get: function () { return index_js_1.StateGraph; } });
|
|
@@ -22,6 +22,7 @@ Object.defineProperty(exports, "CompiledStateGraph", { enumerable: true, get: fu
|
|
|
22
22
|
Object.defineProperty(exports, "MessageGraph", { enumerable: true, get: function () { return index_js_1.MessageGraph; } });
|
|
23
23
|
Object.defineProperty(exports, "messagesStateReducer", { enumerable: true, get: function () { return index_js_1.messagesStateReducer; } });
|
|
24
24
|
Object.defineProperty(exports, "addMessages", { enumerable: true, get: function () { return index_js_1.messagesStateReducer; } });
|
|
25
|
+
Object.defineProperty(exports, "REMOVE_ALL_MESSAGES", { enumerable: true, get: function () { return index_js_1.REMOVE_ALL_MESSAGES; } });
|
|
25
26
|
Object.defineProperty(exports, "Annotation", { enumerable: true, get: function () { return index_js_1.Annotation; } });
|
|
26
27
|
__exportStar(require("./errors.cjs"), exports);
|
|
27
28
|
var index_js_2 = require("./channels/index.cjs");
|
|
@@ -47,4 +48,5 @@ Object.defineProperty(exports, "entrypoint", { enumerable: true, get: function (
|
|
|
47
48
|
Object.defineProperty(exports, "task", { enumerable: true, get: function () { return index_js_3.task; } });
|
|
48
49
|
var messages_annotation_js_1 = require("./graph/messages_annotation.cjs");
|
|
49
50
|
Object.defineProperty(exports, "MessagesAnnotation", { enumerable: true, get: function () { return messages_annotation_js_1.MessagesAnnotation; } });
|
|
51
|
+
Object.defineProperty(exports, "MessagesZodState", { enumerable: true, get: function () { return messages_annotation_js_1.MessagesZodState; } });
|
|
50
52
|
//# sourceMappingURL=web.js.map
|
package/dist/web.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { Graph, type StateGraphArgs, StateGraph, CompiledStateGraph, MessageGraph, messagesStateReducer, messagesStateReducer as addMessages, type Messages, Annotation, type StateType, type UpdateType, type NodeType, type StateDefinition, type SingleReducer, type CompiledGraph, } from "./graph/index.js";
|
|
1
|
+
export { Graph, type StateGraphArgs, StateGraph, CompiledStateGraph, MessageGraph, messagesStateReducer, messagesStateReducer as addMessages, REMOVE_ALL_MESSAGES, type Messages, Annotation, type StateType, type UpdateType, type NodeType, type StateDefinition, type SingleReducer, type CompiledGraph, } from "./graph/index.js";
|
|
2
2
|
export type { StateSnapshot, StreamMode, PregelParams, PregelOptions, SingleChannelSubscriptionOptions, MultipleChannelSubscriptionOptions, GetStateOptions, } from "./pregel/types.js";
|
|
3
3
|
export type { PregelNode } from "./pregel/read.js";
|
|
4
4
|
export type { Pregel } from "./pregel/index.js";
|
|
@@ -11,5 +11,5 @@ export { Send, Command, type CommandParams, isCommand, START, END, type Interrup
|
|
|
11
11
|
export { MemorySaver, type Checkpoint, type CheckpointMetadata, type CheckpointTuple, copyCheckpoint, emptyCheckpoint, BaseCheckpointSaver, type Item, type GetOperation, type SearchOperation, type PutOperation, type Operation, type OperationResults, BaseStore, AsyncBatchedStore, InMemoryStore, type NameSpacePath, type NamespaceMatchType, type MatchCondition, type ListNamespacesOperation, } from "@langchain/langgraph-checkpoint";
|
|
12
12
|
export * from "./managed/index.js";
|
|
13
13
|
export { entrypoint, type EntrypointOptions, task, type TaskOptions, } from "./func/index.js";
|
|
14
|
-
export { MessagesAnnotation } from "./graph/messages_annotation.js";
|
|
14
|
+
export { MessagesAnnotation, MessagesZodState, } from "./graph/messages_annotation.js";
|
|
15
15
|
export { type LangGraphRunnableConfig } from "./pregel/runnable_types.js";
|
package/dist/web.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { Graph, StateGraph, CompiledStateGraph, MessageGraph, messagesStateReducer, messagesStateReducer as addMessages, Annotation, } from "./graph/index.js";
|
|
1
|
+
export { Graph, StateGraph, CompiledStateGraph, MessageGraph, messagesStateReducer, messagesStateReducer as addMessages, REMOVE_ALL_MESSAGES, Annotation, } from "./graph/index.js";
|
|
2
2
|
export * from "./errors.js";
|
|
3
3
|
export { BaseChannel, BinaryOperatorAggregate, } from "./channels/index.js";
|
|
4
4
|
export { Send, Command, isCommand, START, END, } from "./constants.js";
|
|
5
5
|
export { MemorySaver, copyCheckpoint, emptyCheckpoint, BaseCheckpointSaver, BaseStore, AsyncBatchedStore, InMemoryStore, } from "@langchain/langgraph-checkpoint";
|
|
6
6
|
export * from "./managed/index.js";
|
|
7
7
|
export { entrypoint, task, } from "./func/index.js";
|
|
8
|
-
export { MessagesAnnotation } from "./graph/messages_annotation.js";
|
|
8
|
+
export { MessagesAnnotation, MessagesZodState, } from "./graph/messages_annotation.js";
|
|
9
9
|
//# sourceMappingURL=web.js.map
|
package/dist/web.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"web.js","sourceRoot":"","sources":["../src/web.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,EAEL,UAAU,EACV,kBAAkB,EAClB,YAAY,EACZ,oBAAoB,EACpB,oBAAoB,IAAI,WAAW,
|
|
1
|
+
{"version":3,"file":"web.js","sourceRoot":"","sources":["../src/web.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,EAEL,UAAU,EACV,kBAAkB,EAClB,YAAY,EACZ,oBAAoB,EACpB,oBAAoB,IAAI,WAAW,EACnC,mBAAmB,EAEnB,UAAU,GAOX,MAAM,kBAAkB,CAAC;AAY1B,cAAc,aAAa,CAAC;AAC5B,OAAO,EACL,WAAW,EAEX,uBAAuB,GAOxB,MAAM,qBAAqB,CAAC;AAI7B,OAAO,EACL,IAAI,EACJ,OAAO,EAEP,SAAS,EACT,KAAK,EACL,GAAG,GAEJ,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,WAAW,EAIX,cAAc,EACd,eAAe,EACf,mBAAmB,EAOnB,SAAS,EACT,iBAAiB,EACjB,aAAa,GAKd,MAAM,iCAAiC,CAAC;AACzC,cAAc,oBAAoB,CAAC;AAEnC,OAAO,EACL,UAAU,EAEV,IAAI,GAEL,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EACL,kBAAkB,EAClB,gBAAgB,GACjB,MAAM,gCAAgC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@langchain/langgraph",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.74",
|
|
4
4
|
"description": "LangGraph",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -21,10 +21,11 @@
|
|
|
21
21
|
"lint": "yarn lint:eslint && yarn lint:dpdm",
|
|
22
22
|
"lint:fix": "yarn lint:eslint --fix && yarn lint:dpdm",
|
|
23
23
|
"prepack": "yarn build",
|
|
24
|
-
"test": "
|
|
25
|
-
"test:
|
|
26
|
-
"test:
|
|
27
|
-
"test:
|
|
24
|
+
"test": "vitest",
|
|
25
|
+
"test:browser": "vitest run --mode browser",
|
|
26
|
+
"test:watch": "vitest watch",
|
|
27
|
+
"test:single": "vitest run",
|
|
28
|
+
"test:int": "vitest run --mode int",
|
|
28
29
|
"format": "prettier --config .prettierrc --write \"src\"",
|
|
29
30
|
"format:check": "prettier --config .prettierrc --check \"src\""
|
|
30
31
|
},
|
|
@@ -46,7 +47,6 @@
|
|
|
46
47
|
}
|
|
47
48
|
},
|
|
48
49
|
"devDependencies": {
|
|
49
|
-
"@jest/globals": "^29.5.0",
|
|
50
50
|
"@langchain/anthropic": "^0.3.12",
|
|
51
51
|
"@langchain/community": "^0.3.27",
|
|
52
52
|
"@langchain/core": "^0.3.40",
|
|
@@ -55,12 +55,13 @@
|
|
|
55
55
|
"@langchain/openai": "^0.4.0",
|
|
56
56
|
"@langchain/scripts": ">=0.1.3 <0.2.0",
|
|
57
57
|
"@swc/core": "^1.3.90",
|
|
58
|
-
"@
|
|
58
|
+
"@testing-library/dom": "^10.4.0",
|
|
59
59
|
"@tsconfig/recommended": "^1.0.3",
|
|
60
60
|
"@types/pg": "^8",
|
|
61
61
|
"@types/uuid": "^10",
|
|
62
62
|
"@typescript-eslint/eslint-plugin": "^6.12.0",
|
|
63
63
|
"@typescript-eslint/parser": "^6.12.0",
|
|
64
|
+
"@vitest/browser": "^3.0.8",
|
|
64
65
|
"@xenova/transformers": "^2.17.2",
|
|
65
66
|
"cheerio": "1.0.0-rc.12",
|
|
66
67
|
"dotenv": "^16.3.1",
|
|
@@ -69,19 +70,18 @@
|
|
|
69
70
|
"eslint-config-airbnb-base": "^15.0.0",
|
|
70
71
|
"eslint-config-prettier": "^8.6.0",
|
|
71
72
|
"eslint-plugin-import": "^2.29.1",
|
|
72
|
-
"eslint-plugin-jest": "^28.8.0",
|
|
73
73
|
"eslint-plugin-no-instanceof": "^1.0.1",
|
|
74
74
|
"eslint-plugin-prettier": "^4.2.1",
|
|
75
|
-
"jest": "^29.5.0",
|
|
76
|
-
"jest-environment-node": "^29.6.4",
|
|
77
75
|
"langchain": "^0.3.13",
|
|
78
76
|
"pg": "^8.13.0",
|
|
77
|
+
"playwright": "^1.51.0",
|
|
79
78
|
"prettier": "^2.8.3",
|
|
80
79
|
"release-it": "^19.0.2",
|
|
81
80
|
"rollup": "^4.37.0",
|
|
82
|
-
"ts-jest": "^29.1.0",
|
|
83
81
|
"tsx": "^4.19.3",
|
|
84
82
|
"typescript": "^4.9.5 || ^5.4.5",
|
|
83
|
+
"vite-plugin-node-polyfills": "^0.23.0",
|
|
84
|
+
"vitest": "^3.1.2",
|
|
85
85
|
"zod-to-json-schema": "^3.22.4"
|
|
86
86
|
},
|
|
87
87
|
"publishConfig": {
|