@mastra/upstash 0.10.2-alpha.1 → 0.10.2-alpha.2
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/.turbo/turbo-build.log +23 -7
- package/CHANGELOG.md +9 -0
- package/dist/_tsup-dts-rollup.d.cts +16 -5
- package/dist/_tsup-dts-rollup.d.ts +16 -5
- package/dist/chunk-HSTZWXH7.js +1666 -0
- package/dist/chunk-IGKEDEDE.js +12 -0
- package/dist/chunk-N2CPQVE3.cjs +35 -0
- package/dist/chunk-U74OJRHU.cjs +1678 -0
- package/dist/getMachineId-bsd-HDZ73WR7.cjs +30 -0
- package/dist/getMachineId-bsd-KKIDU47O.js +28 -0
- package/dist/getMachineId-darwin-3PL23DL6.cjs +31 -0
- package/dist/getMachineId-darwin-UTKBTJ2U.js +29 -0
- package/dist/getMachineId-linux-K3QXQYAB.js +23 -0
- package/dist/getMachineId-linux-KYLPK3HC.cjs +25 -0
- package/dist/getMachineId-unsupported-DEDJN4ZS.cjs +17 -0
- package/dist/getMachineId-unsupported-VPWBQCK7.js +15 -0
- package/dist/getMachineId-win-L2EYIM5A.js +30 -0
- package/dist/getMachineId-win-ZTI2LRDJ.cjs +52 -0
- package/dist/index.cjs +42499 -4
- package/dist/index.js +42499 -4
- package/package.json +2 -2
- package/src/storage/index.ts +27 -9
- package/src/storage/upstash.test.ts +10 -9
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,23 +1,39 @@
|
|
|
1
1
|
|
|
2
|
-
> @mastra/upstash@0.10.2-alpha.
|
|
2
|
+
> @mastra/upstash@0.10.2-alpha.2 build /home/runner/work/mastra/mastra/stores/upstash
|
|
3
3
|
> tsup src/index.ts --format esm,cjs --experimental-dts --clean --treeshake=smallest --splitting
|
|
4
4
|
|
|
5
5
|
[34mCLI[39m Building entry: src/index.ts
|
|
6
6
|
[34mCLI[39m Using tsconfig: tsconfig.json
|
|
7
7
|
[34mCLI[39m tsup v8.4.0
|
|
8
8
|
[34mTSC[39m Build start
|
|
9
|
-
[32mTSC[39m ⚡️ Build success in
|
|
9
|
+
[32mTSC[39m ⚡️ Build success in 9127ms
|
|
10
10
|
[34mDTS[39m Build start
|
|
11
11
|
[34mCLI[39m Target: es2022
|
|
12
12
|
Analysis will use the bundled TypeScript version 5.8.3
|
|
13
13
|
[36mWriting package typings: /home/runner/work/mastra/mastra/stores/upstash/dist/_tsup-dts-rollup.d.ts[39m
|
|
14
14
|
Analysis will use the bundled TypeScript version 5.8.3
|
|
15
15
|
[36mWriting package typings: /home/runner/work/mastra/mastra/stores/upstash/dist/_tsup-dts-rollup.d.cts[39m
|
|
16
|
-
[32mDTS[39m ⚡️ Build success in
|
|
16
|
+
[32mDTS[39m ⚡️ Build success in 11663ms
|
|
17
17
|
[34mCLI[39m Cleaning output folder
|
|
18
18
|
[34mESM[39m Build start
|
|
19
19
|
[34mCJS[39m Build start
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
[
|
|
23
|
-
[
|
|
20
|
+
dist/index.js (1651:18): Use of eval in "dist/index.js" is strongly discouraged as it poses security risks and may cause issues with minification.
|
|
21
|
+
dist/index.cjs (1651:18): Use of eval in "dist/index.cjs" is strongly discouraged as it poses security risks and may cause issues with minification.
|
|
22
|
+
[32mESM[39m [1mdist/getMachineId-darwin-UTKBTJ2U.js [22m[32m1.08 KB[39m
|
|
23
|
+
[32mESM[39m [1mdist/getMachineId-linux-K3QXQYAB.js [22m[32m740.00 B[39m
|
|
24
|
+
[32mESM[39m [1mdist/getMachineId-bsd-KKIDU47O.js [22m[32m896.00 B[39m
|
|
25
|
+
[32mESM[39m [1mdist/getMachineId-win-L2EYIM5A.js [22m[32m1.04 KB[39m
|
|
26
|
+
[32mESM[39m [1mdist/chunk-IGKEDEDE.js [22m[32m452.00 B[39m
|
|
27
|
+
[32mESM[39m [1mdist/getMachineId-unsupported-VPWBQCK7.js [22m[32m700.00 B[39m
|
|
28
|
+
[32mESM[39m [1mdist/chunk-HSTZWXH7.js [22m[32m61.52 KB[39m
|
|
29
|
+
[32mESM[39m [1mdist/index.js [22m[32m1.62 MB[39m
|
|
30
|
+
[32mESM[39m ⚡️ Build success in 22560ms
|
|
31
|
+
[32mCJS[39m [1mdist/getMachineId-darwin-3PL23DL6.cjs [22m[32m1.19 KB[39m
|
|
32
|
+
[32mCJS[39m [1mdist/getMachineId-linux-KYLPK3HC.cjs [22m[32m813.00 B[39m
|
|
33
|
+
[32mCJS[39m [1mdist/getMachineId-bsd-HDZ73WR7.cjs [22m[32m1015.00 B[39m
|
|
34
|
+
[32mCJS[39m [1mdist/getMachineId-win-ZTI2LRDJ.cjs [22m[32m1.66 KB[39m
|
|
35
|
+
[32mCJS[39m [1mdist/chunk-N2CPQVE3.cjs [22m[32m1.09 KB[39m
|
|
36
|
+
[32mCJS[39m [1mdist/getMachineId-unsupported-DEDJN4ZS.cjs [22m[32m777.00 B[39m
|
|
37
|
+
[32mCJS[39m [1mdist/chunk-U74OJRHU.cjs [22m[32m62.08 KB[39m
|
|
38
|
+
[32mCJS[39m [1mdist/index.cjs [22m[32m1.63 MB[39m
|
|
39
|
+
[32mCJS[39m ⚡️ Build success in 22554ms
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @mastra/upstash
|
|
2
2
|
|
|
3
|
+
## 0.10.2-alpha.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- c5bf1ce: Add backwards compat code for new MessageList in storage
|
|
8
|
+
- Updated dependencies [c5bf1ce]
|
|
9
|
+
- Updated dependencies [12b7002]
|
|
10
|
+
- @mastra/core@0.10.2-alpha.4
|
|
11
|
+
|
|
3
12
|
## 0.10.2-alpha.1
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
|
@@ -5,9 +5,10 @@ import type { DeleteVectorParams } from '@mastra/core/vector';
|
|
|
5
5
|
import type { DescribeIndexParams } from '@mastra/core/vector';
|
|
6
6
|
import type { EvalRow } from '@mastra/core/storage';
|
|
7
7
|
import type { IndexStats } from '@mastra/core/vector';
|
|
8
|
+
import type { MastraMessageV1 } from '@mastra/core/memory';
|
|
9
|
+
import type { MastraMessageV2 } from '@mastra/core/memory';
|
|
8
10
|
import { MastraStorage } from '@mastra/core/storage';
|
|
9
11
|
import { MastraVector } from '@mastra/core/vector';
|
|
10
|
-
import type { MessageType } from '@mastra/core/memory';
|
|
11
12
|
import type { OperatorSupport } from '@mastra/core/vector/filter';
|
|
12
13
|
import type { QueryResult } from '@mastra/core/vector';
|
|
13
14
|
import type { QueryVectorParams } from '@mastra/core/vector';
|
|
@@ -122,10 +123,20 @@ declare class UpstashStore extends MastraStorage {
|
|
|
122
123
|
deleteThread({ threadId }: {
|
|
123
124
|
threadId: string;
|
|
124
125
|
}): Promise<void>;
|
|
125
|
-
saveMessages(
|
|
126
|
-
messages:
|
|
127
|
-
|
|
128
|
-
|
|
126
|
+
saveMessages(args: {
|
|
127
|
+
messages: MastraMessageV1[];
|
|
128
|
+
format?: undefined | 'v1';
|
|
129
|
+
}): Promise<MastraMessageV1[]>;
|
|
130
|
+
saveMessages(args: {
|
|
131
|
+
messages: MastraMessageV2[];
|
|
132
|
+
format: 'v2';
|
|
133
|
+
}): Promise<MastraMessageV2[]>;
|
|
134
|
+
getMessages(args: StorageGetMessagesArg & {
|
|
135
|
+
format?: 'v1';
|
|
136
|
+
}): Promise<MastraMessageV1[]>;
|
|
137
|
+
getMessages(args: StorageGetMessagesArg & {
|
|
138
|
+
format: 'v2';
|
|
139
|
+
}): Promise<MastraMessageV2[]>;
|
|
129
140
|
persistWorkflowSnapshot(params: {
|
|
130
141
|
namespace: string;
|
|
131
142
|
workflowName: string;
|
|
@@ -5,9 +5,10 @@ import type { DeleteVectorParams } from '@mastra/core/vector';
|
|
|
5
5
|
import type { DescribeIndexParams } from '@mastra/core/vector';
|
|
6
6
|
import type { EvalRow } from '@mastra/core/storage';
|
|
7
7
|
import type { IndexStats } from '@mastra/core/vector';
|
|
8
|
+
import type { MastraMessageV1 } from '@mastra/core/memory';
|
|
9
|
+
import type { MastraMessageV2 } from '@mastra/core/memory';
|
|
8
10
|
import { MastraStorage } from '@mastra/core/storage';
|
|
9
11
|
import { MastraVector } from '@mastra/core/vector';
|
|
10
|
-
import type { MessageType } from '@mastra/core/memory';
|
|
11
12
|
import type { OperatorSupport } from '@mastra/core/vector/filter';
|
|
12
13
|
import type { QueryResult } from '@mastra/core/vector';
|
|
13
14
|
import type { QueryVectorParams } from '@mastra/core/vector';
|
|
@@ -122,10 +123,20 @@ declare class UpstashStore extends MastraStorage {
|
|
|
122
123
|
deleteThread({ threadId }: {
|
|
123
124
|
threadId: string;
|
|
124
125
|
}): Promise<void>;
|
|
125
|
-
saveMessages(
|
|
126
|
-
messages:
|
|
127
|
-
|
|
128
|
-
|
|
126
|
+
saveMessages(args: {
|
|
127
|
+
messages: MastraMessageV1[];
|
|
128
|
+
format?: undefined | 'v1';
|
|
129
|
+
}): Promise<MastraMessageV1[]>;
|
|
130
|
+
saveMessages(args: {
|
|
131
|
+
messages: MastraMessageV2[];
|
|
132
|
+
format: 'v2';
|
|
133
|
+
}): Promise<MastraMessageV2[]>;
|
|
134
|
+
getMessages(args: StorageGetMessagesArg & {
|
|
135
|
+
format?: 'v1';
|
|
136
|
+
}): Promise<MastraMessageV1[]>;
|
|
137
|
+
getMessages(args: StorageGetMessagesArg & {
|
|
138
|
+
format: 'v2';
|
|
139
|
+
}): Promise<MastraMessageV2[]>;
|
|
129
140
|
persistWorkflowSnapshot(params: {
|
|
130
141
|
namespace: string;
|
|
131
142
|
workflowName: string;
|