@anvia/core 1.16.0 → 1.17.1
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/README.md +23 -0
- package/dist/agent/agent.js +12 -11
- package/dist/agent/index.d.ts +4 -4
- package/dist/agent/index.js +16 -15
- package/dist/agent/resolve-options.js +6 -5
- package/dist/agent/resolved-agent.js +13 -12
- package/dist/agent/team/agent-team.js +16 -15
- package/dist/agent/team/index.js +16 -15
- package/dist/agent/tool-catalog.js +6 -5
- package/dist/{agent-CIM7noas.d.ts → agent-DopgSEYL.d.ts} +1 -1
- package/dist/{chunk-BJ4LJGSI.js → chunk-3L4O5NXG.js} +14 -14
- package/dist/chunk-6VVHLRUD.js +34 -0
- package/dist/chunk-6VVHLRUD.js.map +1 -0
- package/dist/{chunk-ONFVTMN3.js → chunk-CQRNEDWZ.js} +4 -4
- package/dist/{chunk-QNNDKCZG.js → chunk-HM2WCCEC.js} +2 -2
- package/dist/{chunk-L2UPWQQZ.js → chunk-HPN3GZ2E.js} +5 -2
- package/dist/chunk-HPN3GZ2E.js.map +1 -0
- package/dist/{chunk-ZXSAPGWJ.js → chunk-J4ZDNCTW.js} +3 -3
- package/dist/{chunk-I4AOH75W.js → chunk-KB5LDOAS.js} +2 -2
- package/dist/{chunk-NSG2CIGM.js → chunk-KXY6CD2P.js} +7 -7
- package/dist/{chunk-ZQC5V2AM.js → chunk-NVCMX4KM.js} +2 -2
- package/dist/{chunk-OSS2VGRW.js → chunk-WFC3C7VG.js} +3 -3
- package/dist/decision/index.js +5 -5
- package/dist/embeddings/index.js +1 -1
- package/dist/evals/index.d.ts +1 -1
- package/dist/evals/index.js +1 -1
- package/dist/evals/metrics.js +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +21 -20
- package/dist/internal/agent-runtime/agent-run.js +9 -8
- package/dist/internal/agent-runtime/retrieval.js +4 -3
- package/dist/internal/agent-runtime/tool-execution.js +5 -4
- package/dist/internal/agent.d.ts +2 -2
- package/dist/internal/agent.js +13 -12
- package/dist/internal/team-runtime/run.js +15 -14
- package/dist/{middleware-CDQQr_PM.d.ts → middleware-DOCIUIl2.d.ts} +12 -2
- package/dist/model-listing/index.d.ts +6 -0
- package/dist/observability/index.d.ts +1 -1
- package/dist/pipeline/index.d.ts +2 -2
- package/dist/skills/index.js +5 -4
- package/dist/skills/load.js +5 -4
- package/dist/skills/tools.js +5 -4
- package/dist/tool/dynamic-tools.js +5 -4
- package/dist/tool/index.d.ts +1 -1
- package/dist/tool/index.js +5 -4
- package/dist/vector-store/index.d.ts +20 -1
- package/dist/vector-store/index.js +9 -3
- package/dist/vector-store/ingest.js +2 -2
- package/dist/vector-store/inspect-cursor.js +9 -0
- package/dist/vector-store/inspect-cursor.js.map +1 -0
- package/dist/vector-store/retrieve.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-L2UPWQQZ.js.map +0 -1
- /package/dist/{chunk-BJ4LJGSI.js.map → chunk-3L4O5NXG.js.map} +0 -0
- /package/dist/{chunk-ONFVTMN3.js.map → chunk-CQRNEDWZ.js.map} +0 -0
- /package/dist/{chunk-QNNDKCZG.js.map → chunk-HM2WCCEC.js.map} +0 -0
- /package/dist/{chunk-ZXSAPGWJ.js.map → chunk-J4ZDNCTW.js.map} +0 -0
- /package/dist/{chunk-I4AOH75W.js.map → chunk-KB5LDOAS.js.map} +0 -0
- /package/dist/{chunk-NSG2CIGM.js.map → chunk-KXY6CD2P.js.map} +0 -0
- /package/dist/{chunk-ZQC5V2AM.js.map → chunk-NVCMX4KM.js.map} +0 -0
- /package/dist/{chunk-OSS2VGRW.js.map → chunk-WFC3C7VG.js.map} +0 -0
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import {
|
|
2
2
|
TeamRun
|
|
3
|
-
} from "../../chunk-
|
|
3
|
+
} from "../../chunk-KXY6CD2P.js";
|
|
4
|
+
import "../../chunk-C6YE3JXV.js";
|
|
4
5
|
import "../../chunk-PIMD4DYG.js";
|
|
5
6
|
import "../../chunk-FSBDE6RF.js";
|
|
6
|
-
import "../../chunk-C6YE3JXV.js";
|
|
7
7
|
import "../../chunk-ENZ2XX27.js";
|
|
8
|
-
import "../../chunk-
|
|
9
|
-
import "../../chunk-
|
|
10
|
-
import "../../chunk-
|
|
8
|
+
import "../../chunk-WFC3C7VG.js";
|
|
9
|
+
import "../../chunk-CQRNEDWZ.js";
|
|
10
|
+
import "../../chunk-3L4O5NXG.js";
|
|
11
|
+
import "../../chunk-YWRXOPHC.js";
|
|
11
12
|
import "../../chunk-SXE4J43E.js";
|
|
12
13
|
import "../../chunk-4BGJBGJU.js";
|
|
14
|
+
import "../../chunk-5IURMWFN.js";
|
|
13
15
|
import "../../chunk-LAIATEUB.js";
|
|
14
16
|
import "../../chunk-54WSIN4Q.js";
|
|
15
17
|
import "../../chunk-I3O362NF.js";
|
|
16
18
|
import "../../chunk-PFJN5OIQ.js";
|
|
17
19
|
import "../../chunk-7FBSGD6E.js";
|
|
18
20
|
import "../../chunk-NPJ2T3L5.js";
|
|
19
|
-
import "../../chunk-YWRXOPHC.js";
|
|
20
21
|
import "../../chunk-5ZM5DB3O.js";
|
|
21
|
-
import "../../chunk-5IURMWFN.js";
|
|
22
22
|
import "../../chunk-2NLINXRF.js";
|
|
23
23
|
import "../../chunk-JMJFK3A4.js";
|
|
24
24
|
import "../../chunk-BX52ILPM.js";
|
|
@@ -26,14 +26,14 @@ import "../../chunk-WACXVXGU.js";
|
|
|
26
26
|
import "../../chunk-4AW2633B.js";
|
|
27
27
|
import "../../chunk-J5UQ5I76.js";
|
|
28
28
|
import "../../chunk-H3H74RWJ.js";
|
|
29
|
+
import "../../chunk-MJCMKZFP.js";
|
|
29
30
|
import "../../chunk-6NQXLSCZ.js";
|
|
30
31
|
import "../../chunk-LQJ4KHMY.js";
|
|
31
32
|
import "../../chunk-EZR5AV3J.js";
|
|
32
|
-
import "../../chunk-MJCMKZFP.js";
|
|
33
33
|
import "../../chunk-OJF67RNM.js";
|
|
34
34
|
import "../../chunk-FAPIZJS2.js";
|
|
35
35
|
import "../../chunk-7LBPRXZP.js";
|
|
36
|
-
import "../../chunk-
|
|
36
|
+
import "../../chunk-HM2WCCEC.js";
|
|
37
37
|
import "../../chunk-A7BXVZXZ.js";
|
|
38
38
|
import "../../chunk-TP3MCUXS.js";
|
|
39
39
|
import "../../chunk-6RQYWZI3.js";
|
|
@@ -41,7 +41,7 @@ import "../../chunk-NF6WBPFG.js";
|
|
|
41
41
|
import "../../chunk-LBYJPMHC.js";
|
|
42
42
|
import "../../chunk-KFAVEL5F.js";
|
|
43
43
|
import "../../chunk-GLMYZ6OA.js";
|
|
44
|
-
import "../../chunk-
|
|
44
|
+
import "../../chunk-KB5LDOAS.js";
|
|
45
45
|
import "../../chunk-SVFEG2TI.js";
|
|
46
46
|
import "../../chunk-ZPJFXRQZ.js";
|
|
47
47
|
import "../../chunk-MEN4AFDZ.js";
|
|
@@ -50,9 +50,10 @@ import "../../chunk-WRYBALCQ.js";
|
|
|
50
50
|
import "../../chunk-MT3BLVYN.js";
|
|
51
51
|
import "../../chunk-ZXLCTQUX.js";
|
|
52
52
|
import "../../chunk-6BTJC3ES.js";
|
|
53
|
-
import "../../chunk-
|
|
54
|
-
import "../../chunk-
|
|
53
|
+
import "../../chunk-NVCMX4KM.js";
|
|
54
|
+
import "../../chunk-HPN3GZ2E.js";
|
|
55
55
|
import "../../chunk-3FIX7GLM.js";
|
|
56
|
+
import "../../chunk-6VVHLRUD.js";
|
|
56
57
|
import "../../chunk-ESOFEAYK.js";
|
|
57
58
|
import "../../chunk-CB2L2NIQ.js";
|
|
58
59
|
import "../../chunk-2O3MLES7.js";
|
|
@@ -62,11 +63,11 @@ import "../../chunk-3J2CSVPR.js";
|
|
|
62
63
|
import "../../chunk-ERN7P6Q4.js";
|
|
63
64
|
import "../../chunk-YCTXTOOQ.js";
|
|
64
65
|
import "../../chunk-DU4WA6LQ.js";
|
|
66
|
+
import "../../chunk-4FIVU53H.js";
|
|
67
|
+
import "../../chunk-7F53DOML.js";
|
|
65
68
|
import "../../chunk-KO5NMTAM.js";
|
|
66
69
|
import "../../chunk-TFIOU6UR.js";
|
|
67
70
|
import "../../chunk-GPVXCY5I.js";
|
|
68
|
-
import "../../chunk-7F53DOML.js";
|
|
69
|
-
import "../../chunk-4FIVU53H.js";
|
|
70
71
|
import "../../chunk-4PV56T23.js";
|
|
71
72
|
import "../../chunk-ZHC5CD6J.js";
|
|
72
73
|
import "../../chunk-5V533R7F.js";
|
|
@@ -317,14 +317,24 @@ type AgentStreamEvent<Output = string, RawResponse = unknown> = AgentChildStream
|
|
|
317
317
|
* Async stream of run events. The run is driven by consuming the stream —
|
|
318
318
|
* iterating events or awaiting `text`/`result`. The stream can be consumed
|
|
319
319
|
* once; abandoning it before completion cancels the run.
|
|
320
|
+
* Reading `text` or `result` schedules automatic draining on the next microtask
|
|
321
|
+
* if iteration has not started. To consume events as well, start iteration before
|
|
322
|
+
* reading these promises, or read them after the event loop finishes. Merely
|
|
323
|
+
* obtaining an iterator without calling `next()` does not start consumption.
|
|
320
324
|
*/
|
|
321
325
|
interface AgentStream<Output = string, RawResponse = unknown> extends AsyncIterable<AgentStreamEvent<Output, RawResponse>> {
|
|
322
326
|
readonly events: AsyncIterable<AgentStreamEvent<Output, RawResponse>>;
|
|
323
327
|
/** Incremental text deltas only, with turn metadata stripped. */
|
|
324
328
|
readonly textStream: AsyncIterable<string>;
|
|
325
|
-
/**
|
|
329
|
+
/**
|
|
330
|
+
* Resolves with the run's final assistant text; rejects if the run errors.
|
|
331
|
+
* Reading this property auto-drains unconsumed events; see AgentStream.
|
|
332
|
+
*/
|
|
326
333
|
readonly text: Promise<string>;
|
|
327
|
-
/**
|
|
334
|
+
/**
|
|
335
|
+
* Resolves with the run's terminal outcome; rejects if the run errors.
|
|
336
|
+
* Reading this property auto-drains unconsumed events; see AgentStream.
|
|
337
|
+
*/
|
|
328
338
|
readonly result: Promise<AgentOutcome<Output>>;
|
|
329
339
|
/** Queues input to inject at the next turn boundary. Throws if the run already ended. */
|
|
330
340
|
steer(input: AgentSteerInput): AgentSteerReceipt;
|
|
@@ -19,6 +19,12 @@ type ListedModel = {
|
|
|
19
19
|
createdAt?: number;
|
|
20
20
|
ownedBy?: string;
|
|
21
21
|
contextLength?: number;
|
|
22
|
+
/** Parameter names advertised by the provider. */
|
|
23
|
+
supportedParameters?: string[];
|
|
24
|
+
/** Provider-specific reasoning metadata; validate fields before using them. */
|
|
25
|
+
reasoning?: Record<string, unknown>;
|
|
26
|
+
/** Provider-specific pricing metadata; validate fields before using them. */
|
|
27
|
+
pricing?: Record<string, unknown>;
|
|
22
28
|
};
|
|
23
29
|
type ModelList = {
|
|
24
30
|
data: ListedModel[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { J as AgentGenerationEndArgs, K as AgentGenerationErrorArgs, L as AgentGenerationModelInfo, M as AgentGenerationObserver, N as AgentGenerationStartArgs, O as AgentGenerationUpdateArgs, P as AgentObservabilityOptions, Q as AgentObserver, R as AgentObserverErrorHandler, S as AgentObserverErrorPolicy, U as AgentObserverFailureReport, V as AgentObserverMap, W as AgentObserverTraceInfo, X as AgentRunEndArgs, Y as AgentRunErrorArgs, Z as AgentRunEventArgs, _ as AgentRunObserver, $ as AgentRunPromptRef, a0 as AgentRunStartArgs, a1 as AgentToolEndArgs, a2 as AgentToolErrorArgs, a3 as AgentToolObserver, a4 as AgentToolStartArgs, a5 as AgentToolStreamEventArgs, a6 as AgentToolSuspendedArgs, a7 as AgentTraceInfo, a8 as AgentTraceOptions } from '../middleware-
|
|
1
|
+
export { J as AgentGenerationEndArgs, K as AgentGenerationErrorArgs, L as AgentGenerationModelInfo, M as AgentGenerationObserver, N as AgentGenerationStartArgs, O as AgentGenerationUpdateArgs, P as AgentObservabilityOptions, Q as AgentObserver, R as AgentObserverErrorHandler, S as AgentObserverErrorPolicy, U as AgentObserverFailureReport, V as AgentObserverMap, W as AgentObserverTraceInfo, X as AgentRunEndArgs, Y as AgentRunErrorArgs, Z as AgentRunEventArgs, _ as AgentRunObserver, $ as AgentRunPromptRef, a0 as AgentRunStartArgs, a1 as AgentToolEndArgs, a2 as AgentToolErrorArgs, a3 as AgentToolObserver, a4 as AgentToolStartArgs, a5 as AgentToolStreamEventArgs, a6 as AgentToolSuspendedArgs, a7 as AgentTraceInfo, a8 as AgentTraceOptions } from '../middleware-DOCIUIl2.js';
|
|
2
2
|
import '../types-DYqZKDA8.js';
|
|
3
3
|
import '../model-call-options-CZkSw_xN.js';
|
|
4
4
|
import '../types-CqiX-4_C.js';
|
package/dist/pipeline/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { g as AgentInteractionOutcome, a8 as AgentTraceOptions, W as AgentObserverTraceInfo, S as AgentObserverErrorPolicy, a7 as AgentTraceInfo, f as AgentInput, p as AgentRunSettings } from '../middleware-
|
|
2
|
-
import { A as Agent } from '../agent-
|
|
1
|
+
import { g as AgentInteractionOutcome, a8 as AgentTraceOptions, W as AgentObserverTraceInfo, S as AgentObserverErrorPolicy, a7 as AgentTraceInfo, f as AgentInput, p as AgentRunSettings } from '../middleware-DOCIUIl2.js';
|
|
2
|
+
import { A as Agent } from '../agent-DopgSEYL.js';
|
|
3
3
|
import { b as RetrySetting } from '../retry-CjvSlKGW.js';
|
|
4
4
|
import { J as JsonObject, U as Usage, d as CompletionModel, f as CompletionModelControlsOf, t as JsonValue } from '../types-DYqZKDA8.js';
|
|
5
5
|
import { b as ChoiceAnswer, n as DecisionQuestions, j as DecisionModel, d as DecideOptions, q as DecisionResult, o as DecisionRawResponseOf, k as DecisionOptions, c as ChoiceQuestion } from '../types-Bt19cjEr.js';
|
package/dist/skills/index.js
CHANGED
|
@@ -16,20 +16,21 @@ import "../chunk-JMJFK3A4.js";
|
|
|
16
16
|
import "../chunk-BX52ILPM.js";
|
|
17
17
|
import "../chunk-WACXVXGU.js";
|
|
18
18
|
import "../chunk-4AW2633B.js";
|
|
19
|
-
import "../chunk-
|
|
20
|
-
import "../chunk-
|
|
19
|
+
import "../chunk-NVCMX4KM.js";
|
|
20
|
+
import "../chunk-HPN3GZ2E.js";
|
|
21
21
|
import "../chunk-3FIX7GLM.js";
|
|
22
|
+
import "../chunk-6VVHLRUD.js";
|
|
22
23
|
import "../chunk-ESOFEAYK.js";
|
|
23
24
|
import "../chunk-CB2L2NIQ.js";
|
|
24
25
|
import "../chunk-2O3MLES7.js";
|
|
25
26
|
import "../chunk-ERN7P6Q4.js";
|
|
26
27
|
import "../chunk-YCTXTOOQ.js";
|
|
27
28
|
import "../chunk-DU4WA6LQ.js";
|
|
29
|
+
import "../chunk-4FIVU53H.js";
|
|
30
|
+
import "../chunk-7F53DOML.js";
|
|
28
31
|
import "../chunk-KO5NMTAM.js";
|
|
29
32
|
import "../chunk-TFIOU6UR.js";
|
|
30
33
|
import "../chunk-GPVXCY5I.js";
|
|
31
|
-
import "../chunk-7F53DOML.js";
|
|
32
|
-
import "../chunk-4FIVU53H.js";
|
|
33
34
|
import "../chunk-5V533R7F.js";
|
|
34
35
|
import "../chunk-Z5WMW4NP.js";
|
|
35
36
|
import "../chunk-6YYZ7VJQ.js";
|
package/dist/skills/load.js
CHANGED
|
@@ -8,20 +8,21 @@ import "../chunk-JMJFK3A4.js";
|
|
|
8
8
|
import "../chunk-BX52ILPM.js";
|
|
9
9
|
import "../chunk-WACXVXGU.js";
|
|
10
10
|
import "../chunk-4AW2633B.js";
|
|
11
|
-
import "../chunk-
|
|
12
|
-
import "../chunk-
|
|
11
|
+
import "../chunk-NVCMX4KM.js";
|
|
12
|
+
import "../chunk-HPN3GZ2E.js";
|
|
13
13
|
import "../chunk-3FIX7GLM.js";
|
|
14
|
+
import "../chunk-6VVHLRUD.js";
|
|
14
15
|
import "../chunk-ESOFEAYK.js";
|
|
15
16
|
import "../chunk-CB2L2NIQ.js";
|
|
16
17
|
import "../chunk-2O3MLES7.js";
|
|
17
18
|
import "../chunk-ERN7P6Q4.js";
|
|
18
19
|
import "../chunk-YCTXTOOQ.js";
|
|
19
20
|
import "../chunk-DU4WA6LQ.js";
|
|
21
|
+
import "../chunk-4FIVU53H.js";
|
|
22
|
+
import "../chunk-7F53DOML.js";
|
|
20
23
|
import "../chunk-KO5NMTAM.js";
|
|
21
24
|
import "../chunk-TFIOU6UR.js";
|
|
22
25
|
import "../chunk-GPVXCY5I.js";
|
|
23
|
-
import "../chunk-7F53DOML.js";
|
|
24
|
-
import "../chunk-4FIVU53H.js";
|
|
25
26
|
import "../chunk-5V533R7F.js";
|
|
26
27
|
import "../chunk-Z5WMW4NP.js";
|
|
27
28
|
import "../chunk-6YYZ7VJQ.js";
|
package/dist/skills/tools.js
CHANGED
|
@@ -6,20 +6,21 @@ import "../chunk-JMJFK3A4.js";
|
|
|
6
6
|
import "../chunk-BX52ILPM.js";
|
|
7
7
|
import "../chunk-WACXVXGU.js";
|
|
8
8
|
import "../chunk-4AW2633B.js";
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
9
|
+
import "../chunk-NVCMX4KM.js";
|
|
10
|
+
import "../chunk-HPN3GZ2E.js";
|
|
11
11
|
import "../chunk-3FIX7GLM.js";
|
|
12
|
+
import "../chunk-6VVHLRUD.js";
|
|
12
13
|
import "../chunk-ESOFEAYK.js";
|
|
13
14
|
import "../chunk-CB2L2NIQ.js";
|
|
14
15
|
import "../chunk-2O3MLES7.js";
|
|
15
16
|
import "../chunk-ERN7P6Q4.js";
|
|
16
17
|
import "../chunk-YCTXTOOQ.js";
|
|
17
18
|
import "../chunk-DU4WA6LQ.js";
|
|
19
|
+
import "../chunk-4FIVU53H.js";
|
|
20
|
+
import "../chunk-7F53DOML.js";
|
|
18
21
|
import "../chunk-KO5NMTAM.js";
|
|
19
22
|
import "../chunk-TFIOU6UR.js";
|
|
20
23
|
import "../chunk-GPVXCY5I.js";
|
|
21
|
-
import "../chunk-7F53DOML.js";
|
|
22
|
-
import "../chunk-4FIVU53H.js";
|
|
23
24
|
import "../chunk-5V533R7F.js";
|
|
24
25
|
import "../chunk-Z5WMW4NP.js";
|
|
25
26
|
import "../chunk-6YYZ7VJQ.js";
|
|
@@ -2,20 +2,21 @@ import {
|
|
|
2
2
|
createToolIndex,
|
|
3
3
|
embedTools,
|
|
4
4
|
isToolIndex
|
|
5
|
-
} from "../chunk-
|
|
6
|
-
import "../chunk-
|
|
5
|
+
} from "../chunk-NVCMX4KM.js";
|
|
6
|
+
import "../chunk-HPN3GZ2E.js";
|
|
7
7
|
import "../chunk-3FIX7GLM.js";
|
|
8
|
+
import "../chunk-6VVHLRUD.js";
|
|
8
9
|
import "../chunk-ESOFEAYK.js";
|
|
9
10
|
import "../chunk-CB2L2NIQ.js";
|
|
10
11
|
import "../chunk-2O3MLES7.js";
|
|
11
12
|
import "../chunk-ERN7P6Q4.js";
|
|
12
13
|
import "../chunk-YCTXTOOQ.js";
|
|
13
14
|
import "../chunk-DU4WA6LQ.js";
|
|
15
|
+
import "../chunk-4FIVU53H.js";
|
|
16
|
+
import "../chunk-7F53DOML.js";
|
|
14
17
|
import "../chunk-KO5NMTAM.js";
|
|
15
18
|
import "../chunk-TFIOU6UR.js";
|
|
16
19
|
import "../chunk-GPVXCY5I.js";
|
|
17
|
-
import "../chunk-7F53DOML.js";
|
|
18
|
-
import "../chunk-4FIVU53H.js";
|
|
19
20
|
import "../chunk-5V533R7F.js";
|
|
20
21
|
import "../chunk-Z5WMW4NP.js";
|
|
21
22
|
import "../chunk-6YYZ7VJQ.js";
|
package/dist/tool/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { e as CreateQuestionToolOptions, f as CreateThinkToolOptions, C as CreateToolOptions, D as DEFAULT_QUESTION_TOOL_DESCRIPTION, a as DEFAULT_QUESTION_TOOL_NAME, Q as QuestionToolInput, g as QuestionToolOutput, c as createQuestionTool, b as createThinkTool, d as createTool, i as isQuestionTool } from '../think-tool-vmLIfQik.js';
|
|
2
2
|
export { C as CreateToolIndexOptions, E as EmbedToolsOptions, T as ToolIndex, a as ToolSearchDocument, c as createToolIndex, e as embedTools, i as isToolIndex } from '../dynamic-tools-BtvhcGIC.js';
|
|
3
|
-
export { k as AgentMiddleware, C as CompletionRequestMiddlewareArgs, z as CompletionRequestMiddlewareResult, B as CompletionResponseMiddlewareArgs, D as CompletionResponseMiddlewareResult, T as ToolInputMiddlewareArgs, E as ToolInputMiddlewareResult, F as ToolOutputMiddlewareArgs, G as ToolOutputMiddlewareResult, H as ToolResultMiddlewareArgs, I as createMiddleware } from '../middleware-
|
|
3
|
+
export { k as AgentMiddleware, C as CompletionRequestMiddlewareArgs, z as CompletionRequestMiddlewareResult, B as CompletionResponseMiddlewareArgs, D as CompletionResponseMiddlewareResult, T as ToolInputMiddlewareArgs, E as ToolInputMiddlewareResult, F as ToolOutputMiddlewareArgs, G as ToolOutputMiddlewareResult, H as ToolResultMiddlewareArgs, I as createMiddleware } from '../middleware-DOCIUIl2.js';
|
|
4
4
|
export { A as AnyTool, N as NormalizedToolOutput, R as RichToolOutput, T as Tool, a as ToolApprovalContext, b as ToolApprovalRequirement, f as ToolApprovalRunContext, c as ToolCallContext, d as ToolCallStreamEvent, g as ToolOutput, e as ToolRequiresApproval, h as ToolResultSerializationError, n as normalizeToolResultOutput, p as parseToolArgs, t as toolResultContentToText } from '../tool-B6meo2AE.js';
|
|
5
5
|
import 'zod';
|
|
6
6
|
import '../zod-schema-C7F4clpm.js';
|
package/dist/tool/index.js
CHANGED
|
@@ -15,20 +15,21 @@ import {
|
|
|
15
15
|
createToolIndex,
|
|
16
16
|
embedTools,
|
|
17
17
|
isToolIndex
|
|
18
|
-
} from "../chunk-
|
|
19
|
-
import "../chunk-
|
|
18
|
+
} from "../chunk-NVCMX4KM.js";
|
|
19
|
+
import "../chunk-HPN3GZ2E.js";
|
|
20
20
|
import "../chunk-3FIX7GLM.js";
|
|
21
|
+
import "../chunk-6VVHLRUD.js";
|
|
21
22
|
import "../chunk-ESOFEAYK.js";
|
|
22
23
|
import "../chunk-CB2L2NIQ.js";
|
|
23
24
|
import "../chunk-2O3MLES7.js";
|
|
24
25
|
import "../chunk-ERN7P6Q4.js";
|
|
25
26
|
import "../chunk-YCTXTOOQ.js";
|
|
26
27
|
import "../chunk-DU4WA6LQ.js";
|
|
28
|
+
import "../chunk-4FIVU53H.js";
|
|
29
|
+
import "../chunk-7F53DOML.js";
|
|
27
30
|
import "../chunk-KO5NMTAM.js";
|
|
28
31
|
import "../chunk-TFIOU6UR.js";
|
|
29
32
|
import "../chunk-GPVXCY5I.js";
|
|
30
|
-
import "../chunk-7F53DOML.js";
|
|
31
|
-
import "../chunk-4FIVU53H.js";
|
|
32
33
|
import "../chunk-5V533R7F.js";
|
|
33
34
|
import {
|
|
34
35
|
createTool
|
|
@@ -39,6 +39,25 @@ type IngestVectorDocumentsResult<Metadata extends VectorMetadata = VectorMetadat
|
|
|
39
39
|
declare function ingestVectorText<Metadata extends VectorMetadata = VectorMetadata>(options: IngestVectorTextOptions<Metadata>): Promise<IngestVectorDocumentsResult<Metadata>>;
|
|
40
40
|
declare function ingestVectorDocuments<Metadata extends VectorMetadata = VectorMetadata>(options: IngestVectorDocumentsOptions<Metadata>): Promise<IngestVectorDocumentsResult<Metadata>>;
|
|
41
41
|
|
|
42
|
+
/**
|
|
43
|
+
* Error thrown when a vector-store inspect cursor cannot be parsed.
|
|
44
|
+
*
|
|
45
|
+
* Extends `RangeError` (so existing `RangeError` handling keeps working) with
|
|
46
|
+
* a stable `name` hosts can use to map invalid cursors to a client error
|
|
47
|
+
* without matching on the message or catching unrelated `RangeError`s.
|
|
48
|
+
*/
|
|
49
|
+
declare class VectorInspectCursorError extends RangeError {
|
|
50
|
+
constructor(cursor: string);
|
|
51
|
+
/**
|
|
52
|
+
* Identify an invalid-cursor failure without matching on the message, so
|
|
53
|
+
* unrelated `RangeError`s are never mistaken for one. Uses a structural
|
|
54
|
+
* check (rather than `instanceof`) so it also works across duplicated
|
|
55
|
+
* module instances.
|
|
56
|
+
*/
|
|
57
|
+
static isCursorError(error: unknown): error is VectorInspectCursorError;
|
|
58
|
+
}
|
|
59
|
+
declare function parseVectorInspectCursor(cursor: string | undefined): number;
|
|
60
|
+
|
|
42
61
|
declare function retrieveDocuments<T, Metadata extends VectorMetadata = VectorMetadata>(options: RetrieveDocumentsOptions<T, Metadata>): Promise<Array<VectorSearchResult<T, Metadata>>>;
|
|
43
62
|
declare function retrieveDocuments<T, Metadata extends VectorMetadata = VectorMetadata>(options: RetrieveHybridDocumentsOptions<T, Metadata>): Promise<Array<VectorSearchResult<T, Metadata>>>;
|
|
44
63
|
|
|
@@ -93,4 +112,4 @@ declare function createVectorSearchTool<T, Metadata extends VectorMetadata>(opti
|
|
|
93
112
|
topK?: number;
|
|
94
113
|
}, Array<VectorSearchResult<T, Metadata>>>;
|
|
95
114
|
|
|
96
|
-
export { InMemoryVectorStore, type InMemoryVectorStoreFromDocumentsOptions, type InMemoryVectorStoreOptions, IndexStrategy, type IngestVectorDocumentsOptions, type IngestVectorDocumentsResult, type IngestVectorTextOptions, RetrieveDocumentsOptions, RetrieveHybridDocumentsOptions, VectorFilter, VectorInspectPage, VectorInspectRequest, VectorMetric, VectorSearchRequest, VectorSearchResult, VectorSearchToolOptions, VectorStore, VectorStoreUpsertOptions, createVectorSearchTool, ingestVectorDocuments, ingestVectorText, matchesVectorFilter, retrieveDocuments, vectorFilter };
|
|
115
|
+
export { InMemoryVectorStore, type InMemoryVectorStoreFromDocumentsOptions, type InMemoryVectorStoreOptions, IndexStrategy, type IngestVectorDocumentsOptions, type IngestVectorDocumentsResult, type IngestVectorTextOptions, RetrieveDocumentsOptions, RetrieveHybridDocumentsOptions, VectorFilter, VectorInspectCursorError, VectorInspectPage, VectorInspectRequest, VectorMetric, VectorSearchRequest, VectorSearchResult, VectorSearchToolOptions, VectorStore, VectorStoreUpsertOptions, createVectorSearchTool, ingestVectorDocuments, ingestVectorText, matchesVectorFilter, parseVectorInspectCursor, retrieveDocuments, vectorFilter };
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
InMemoryVectorStore,
|
|
3
3
|
createVectorSearchTool
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-HPN3GZ2E.js";
|
|
5
5
|
import {
|
|
6
6
|
ingestVectorDocuments,
|
|
7
7
|
ingestVectorText
|
|
8
8
|
} from "../chunk-3FIX7GLM.js";
|
|
9
|
+
import {
|
|
10
|
+
VectorInspectCursorError,
|
|
11
|
+
parseVectorInspectCursor
|
|
12
|
+
} from "../chunk-6VVHLRUD.js";
|
|
9
13
|
import "../chunk-ESOFEAYK.js";
|
|
10
14
|
import {
|
|
11
15
|
retrieveDocuments
|
|
@@ -17,11 +21,11 @@ import {
|
|
|
17
21
|
import "../chunk-ERN7P6Q4.js";
|
|
18
22
|
import "../chunk-YCTXTOOQ.js";
|
|
19
23
|
import "../chunk-DU4WA6LQ.js";
|
|
24
|
+
import "../chunk-4FIVU53H.js";
|
|
25
|
+
import "../chunk-7F53DOML.js";
|
|
20
26
|
import "../chunk-KO5NMTAM.js";
|
|
21
27
|
import "../chunk-TFIOU6UR.js";
|
|
22
28
|
import "../chunk-GPVXCY5I.js";
|
|
23
|
-
import "../chunk-7F53DOML.js";
|
|
24
|
-
import "../chunk-4FIVU53H.js";
|
|
25
29
|
import "../chunk-5V533R7F.js";
|
|
26
30
|
import "../chunk-Z5WMW4NP.js";
|
|
27
31
|
import "../chunk-6YYZ7VJQ.js";
|
|
@@ -35,10 +39,12 @@ import "../chunk-POXHJF3H.js";
|
|
|
35
39
|
import "../chunk-USRKPEQN.js";
|
|
36
40
|
export {
|
|
37
41
|
InMemoryVectorStore,
|
|
42
|
+
VectorInspectCursorError,
|
|
38
43
|
createVectorSearchTool,
|
|
39
44
|
ingestVectorDocuments,
|
|
40
45
|
ingestVectorText,
|
|
41
46
|
matchesVectorFilter,
|
|
47
|
+
parseVectorInspectCursor,
|
|
42
48
|
retrieveDocuments,
|
|
43
49
|
vectorFilter
|
|
44
50
|
};
|
|
@@ -5,11 +5,11 @@ import {
|
|
|
5
5
|
import "../chunk-ERN7P6Q4.js";
|
|
6
6
|
import "../chunk-YCTXTOOQ.js";
|
|
7
7
|
import "../chunk-DU4WA6LQ.js";
|
|
8
|
+
import "../chunk-4FIVU53H.js";
|
|
9
|
+
import "../chunk-7F53DOML.js";
|
|
8
10
|
import "../chunk-KO5NMTAM.js";
|
|
9
11
|
import "../chunk-TFIOU6UR.js";
|
|
10
12
|
import "../chunk-GPVXCY5I.js";
|
|
11
|
-
import "../chunk-7F53DOML.js";
|
|
12
|
-
import "../chunk-4FIVU53H.js";
|
|
13
13
|
import "../chunk-POXHJF3H.js";
|
|
14
14
|
import "../chunk-USRKPEQN.js";
|
|
15
15
|
export {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
import "../chunk-ERN7P6Q4.js";
|
|
5
5
|
import "../chunk-YCTXTOOQ.js";
|
|
6
6
|
import "../chunk-DU4WA6LQ.js";
|
|
7
|
-
import "../chunk-7F53DOML.js";
|
|
8
7
|
import "../chunk-4FIVU53H.js";
|
|
8
|
+
import "../chunk-7F53DOML.js";
|
|
9
9
|
import "../chunk-5V533R7F.js";
|
|
10
10
|
import "../chunk-POXHJF3H.js";
|
|
11
11
|
import "../chunk-USRKPEQN.js";
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/vector-store/index.ts"],"sourcesContent":["import { z } from \"zod\";\nimport {\n cosineSimilarity,\n dotProduct,\n type EmbeddedDocument,\n type Embedding,\n euclideanDistance,\n type VectorMetadata,\n} from \"../embeddings\";\nimport { assertFiniteMinScore, assertPositiveSearchLimit } from \"../internal/vector-search-options\";\nimport { createTool } from \"../tool/create-tool\";\nimport type { Tool } from \"../tool/tool\";\nimport { matchesVectorFilter } from \"./filter\";\nimport { LshIndex } from \"./lsh\";\nimport { retrieveDocuments } from \"./retrieve\";\nimport type {\n IndexStrategy,\n VectorInspectItem,\n VectorInspectPage,\n VectorInspectRequest,\n VectorMetric,\n VectorSearchRequest,\n VectorSearchResult,\n VectorSearchToolOptions,\n VectorStore,\n VectorStoreUpsertOptions,\n} from \"./types\";\n\nexport { matchesVectorFilter, vectorFilter } from \"./filter\";\nexport * from \"./ingest\";\nexport { retrieveDocuments } from \"./retrieve\";\nexport type * from \"./types\";\n\nconst VECTOR_METRICS: ReadonlySet<VectorMetric> = new Set([\"cosine\", \"euclidean\", \"dotProduct\"]);\n\ntype StoredDocument<T, Metadata extends VectorMetadata> = EmbeddedDocument<T, Metadata>;\n\nexport type InMemoryVectorStoreOptions = {\n dimensions?: number | undefined;\n index?: IndexStrategy | undefined;\n /**\n * Similarity metric used to score documents. Defaults to `\"cosine\"`.\n *\n * Scores are always \"higher is better\": `\"cosine\"` returns cosine similarity,\n * `\"dotProduct\"` returns the raw inner product, and `\"euclidean\"` returns the\n * negated Euclidean distance (matching the pgvector, Chroma, LanceDB, and Milvus\n * adapters), so the nearest document ranks first and `minScore` is a negative\n * distance threshold.\n *\n * With an `{ type: \"lsh\" }` index, non-cosine metrics are approximate because LSH\n * buckets are angle-based; `{ type: \"bruteForce\" }` (the default) is exact.\n */\n metric?: VectorMetric | undefined;\n};\n\nexport type InMemoryVectorStoreFromDocumentsOptions<\n T,\n Metadata extends VectorMetadata = VectorMetadata,\n> = InMemoryVectorStoreOptions & {\n documents: Array<EmbeddedDocument<T, Metadata>>;\n};\n\nexport class InMemoryVectorStore<\n T,\n Metadata extends VectorMetadata = VectorMetadata,\n> implements VectorStore<T, Metadata> {\n private readonly documents = new Map<string, StoredDocument<T, Metadata>>();\n private readonly indexStrategy: IndexStrategy;\n private readonly metric: VectorMetric;\n private lshIndex: LshIndex | undefined;\n private embeddingDimension: number | undefined;\n\n constructor(options: InMemoryVectorStoreOptions = {}) {\n this.indexStrategy = options.index ?? { type: \"bruteForce\" };\n this.metric = options.metric ?? \"cosine\";\n if (!VECTOR_METRICS.has(this.metric)) {\n throw new TypeError(`Unsupported vector metric: ${String(this.metric)}`);\n }\n if (\n options.dimensions !== undefined &&\n (!Number.isSafeInteger(options.dimensions) || options.dimensions < 1)\n ) {\n throw new RangeError(\"Vector dimensions must be a positive safe integer.\");\n }\n this.embeddingDimension = options.dimensions;\n }\n\n static fromDocuments<T, Metadata extends VectorMetadata = VectorMetadata>(\n options: InMemoryVectorStoreFromDocumentsOptions<T, Metadata>,\n ): InMemoryVectorStore<T, Metadata> {\n const store = new InMemoryVectorStore<T, Metadata>(options);\n store.replaceDocuments(options.documents);\n return store;\n }\n\n async ensure(): Promise<void> {}\n async validate(): Promise<void> {}\n\n async upsert(options: VectorStoreUpsertOptions<T, Metadata>): Promise<void> {\n this.replaceDocuments(options.documents);\n }\n\n get(options: { id: string }): StoredDocument<T, Metadata> | undefined {\n return this.documents.get(options.id);\n }\n\n values(): Array<StoredDocument<T, Metadata>> {\n return [...this.documents.values()];\n }\n\n len(): number {\n return this.documents.size;\n }\n\n isEmpty(): boolean {\n return this.documents.size === 0;\n }\n\n async search(request: VectorSearchRequest): Promise<Array<VectorSearchResult<T, Metadata>>> {\n throwIfAborted(request.abortSignal);\n assertPositiveSearchLimit(request.topK);\n assertFiniteMinScore(request.minScore);\n const queryEmbedding: Embedding = { document: \"\", vector: request.vector };\n const results = this.candidates(queryEmbedding)\n .filter((document) => matchesVectorFilter(document.metadata, request.filter))\n .flatMap((document) => {\n const score = bestScore(queryEmbedding, document.embeddings, this.metric);\n if (score === undefined || (request.minScore !== undefined && score < request.minScore)) {\n return [];\n }\n let result: VectorSearchResult<T, Metadata> = {\n score,\n id: document.id,\n document: document.document,\n };\n if (document.metadata !== undefined) {\n result = { ...result, metadata: document.metadata };\n }\n return [result];\n })\n .sort((left, right) => right.score - left.score)\n .slice(0, request.topK);\n throwIfAborted(request.abortSignal);\n return results;\n }\n\n async inspect(request: VectorInspectRequest): Promise<VectorInspectPage<T, Metadata>> {\n throwIfAborted(request.abortSignal);\n const limit = assertPositiveSearchLimit(request.limit);\n const start = Math.max(0, Math.trunc(Number(request.cursor ?? \"0\")));\n const documents = this.values().filter((document) =>\n matchesVectorFilter(document.metadata, request.filter),\n );\n const page = documents.slice(start, start + limit);\n const nextOffset = start + page.length;\n const result: VectorInspectPage<T, Metadata> = {\n items: page.map((document): VectorInspectItem<T, Metadata> => {\n let item: VectorInspectItem<T, Metadata> = {\n id: document.id,\n document: document.document,\n };\n if (document.metadata !== undefined) {\n item = { ...item, metadata: document.metadata };\n }\n return item;\n }),\n totalCount: documents.length,\n };\n if (nextOffset < documents.length) result.nextCursor = String(nextOffset);\n throwIfAborted(request.abortSignal);\n return result;\n }\n\n private replaceDocuments(documents: Array<EmbeddedDocument<T, Metadata>>): void {\n const ids = new Set<string>();\n for (const document of documents) {\n if (ids.has(document.id)) throw new TypeError(`Duplicate vector document id: ${document.id}`);\n ids.add(document.id);\n if (document.embeddings.length === 0) {\n throw new TypeError(`Vector document ${document.id} must contain at least one embedding.`);\n }\n for (const embedding of document.embeddings)\n assertFiniteVector(embedding.vector, document.id);\n }\n this.validateDocumentDimensions(documents);\n for (const document of documents) this.documents.set(document.id, document);\n this.rebuildLshIndex();\n }\n\n private candidates(queryEmbedding: Embedding): Array<StoredDocument<T, Metadata>> {\n this.validateQueryDimension(queryEmbedding);\n if (this.indexStrategy.type !== \"lsh\" || this.lshIndex === undefined) return this.values();\n const candidateIds = this.lshIndex.query(queryEmbedding.vector);\n if (candidateIds.size === 0) return this.values();\n return [...candidateIds].flatMap((id) => {\n const document = this.documents.get(id);\n return document === undefined ? [] : [document];\n });\n }\n\n private rebuildLshIndex(): void {\n if (this.indexStrategy.type !== \"lsh\") {\n this.lshIndex = undefined;\n return;\n }\n const firstEmbedding = this.values().flatMap((document) => document.embeddings)[0];\n if (firstEmbedding === undefined) {\n this.lshIndex = undefined;\n return;\n }\n const index = new LshIndex(firstEmbedding.vector.length, this.indexStrategy);\n for (const document of this.documents.values()) {\n for (const embedding of document.embeddings) index.insert(document.id, embedding.vector);\n }\n this.lshIndex = index;\n }\n\n private validateDocumentDimensions(documents: Array<EmbeddedDocument<T, Metadata>>): void {\n let dimension = this.embeddingDimension;\n for (const document of documents) {\n for (const embedding of document.embeddings) {\n dimension = validateEmbeddingDimension(dimension, embedding, document.id);\n }\n }\n this.embeddingDimension = dimension;\n }\n\n private validateQueryDimension(queryEmbedding: Embedding): void {\n if (this.embeddingDimension !== undefined) {\n validateEmbeddingDimension(this.embeddingDimension, queryEmbedding, \"query\");\n }\n }\n}\n\nfunction throwIfAborted(signal: AbortSignal | undefined): void {\n if (signal?.aborted) {\n const error = new Error(\"The operation was aborted.\");\n error.name = \"AbortError\";\n throw error;\n }\n}\n\nexport function createVectorSearchTool<T, Metadata extends VectorMetadata>(\n options: VectorSearchToolOptions<T, Metadata>,\n): Tool<{ query: string; topK?: number }, Array<VectorSearchResult<T, Metadata>>> {\n const configuredTopK = assertPositiveSearchLimit(options.topK ?? 5);\n assertFiniteMinScore(options.minScore);\n return createTool({\n name: options.name,\n description:\n options.description ?? \"Search a vector store for documents relevant to the provided query.\",\n inputSchema: z.object({\n query: z.string().min(1).describe(\"The query string to search for relevant documents.\"),\n topK: z.number().int().positive().optional().describe(\"The maximum number of results.\"),\n }),\n outputSchema: z.array(\n z.object({\n score: z.number(),\n id: z.string(),\n document: z.any(),\n metadata: z\n .record(z.string(), z.union([z.string(), z.number(), z.boolean(), z.null()]))\n .optional(),\n }),\n ),\n execute: ({ query, topK }, context) => {\n const request = {\n query,\n topK: topK ?? configuredTopK,\n minScore: options.minScore,\n filter: options.filter,\n retries: options.retries,\n abortSignal: context.abortSignal,\n };\n return \"models\" in options && options.models !== undefined\n ? retrieveDocuments({\n ...request,\n store: options.store,\n models: options.models,\n fusion: options.fusion,\n })\n : retrieveDocuments({ ...request, store: options.store, model: options.model });\n },\n }) as Tool<{ query: string; topK?: number }, Array<VectorSearchResult<T, Metadata>>>;\n}\n\nfunction bestScore(\n queryEmbedding: Embedding,\n embeddings: Embedding[],\n metric: VectorMetric,\n): number | undefined {\n let best: number | undefined;\n for (const embedding of embeddings) {\n const score = metricScore(queryEmbedding.vector, embedding.vector, metric);\n best = best === undefined ? score : Math.max(best, score);\n }\n return best;\n}\n\nfunction metricScore(left: number[], right: number[], metric: VectorMetric): number {\n switch (metric) {\n case \"euclidean\": {\n const distance = euclideanDistance(left, right);\n return distance === 0 ? 0 : -distance;\n }\n case \"dotProduct\":\n return dotProduct(left, right);\n default:\n return cosineSimilarity(left, right);\n }\n}\n\nfunction validateEmbeddingDimension(\n expectedDimension: number | undefined,\n embedding: Embedding,\n id: string,\n): number {\n assertFiniteVector(embedding.vector, id);\n if (expectedDimension === undefined) return embedding.vector.length;\n if (embedding.vector.length !== expectedDimension) {\n throw new Error(\n `Vector dimension mismatch: expected ${expectedDimension} dimensions but received ${embedding.vector.length} for ${id}`,\n );\n }\n return expectedDimension;\n}\n\nfunction assertFiniteVector(vector: number[], id: string): void {\n if (vector.length === 0) throw new TypeError(`Vector for ${id} must not be empty.`);\n if (!vector.every(Number.isFinite)) {\n throw new TypeError(`Vector for ${id} must contain only finite numbers.`);\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA,SAAS,SAAS;AAiClB,IAAM,iBAA4C,oBAAI,IAAI,CAAC,UAAU,aAAa,YAAY,CAAC;AA6BxF,IAAM,sBAAN,MAAM,qBAGyB;AAAA,EACnB,YAAY,oBAAI,IAAyC;AAAA,EACzD;AAAA,EACA;AAAA,EACT;AAAA,EACA;AAAA,EAER,YAAY,UAAsC,CAAC,GAAG;AACpD,SAAK,gBAAgB,QAAQ,SAAS,EAAE,MAAM,aAAa;AAC3D,SAAK,SAAS,QAAQ,UAAU;AAChC,QAAI,CAAC,eAAe,IAAI,KAAK,MAAM,GAAG;AACpC,YAAM,IAAI,UAAU,8BAA8B,OAAO,KAAK,MAAM,CAAC,EAAE;AAAA,IACzE;AACA,QACE,QAAQ,eAAe,WACtB,CAAC,OAAO,cAA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BAAqB;AAClF,MAAI,CAAC,OAAO,MAAM,OAAO,QAAQ,GAAG;AAClC,UAAM,IAAI,UAAU,cAAc,EAAE,oCAAoC;AAAA,EAC1E;AACF;","names":[]}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|