@mastra/libsql 0.12.0-alpha.2 → 0.13.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/.turbo/turbo-build.log +2 -21
  2. package/CHANGELOG.md +63 -0
  3. package/dist/index.cjs +7 -3
  4. package/dist/index.cjs.map +1 -0
  5. package/dist/index.d.ts +4 -6
  6. package/dist/index.d.ts.map +1 -0
  7. package/dist/index.js +7 -3
  8. package/dist/index.js.map +1 -0
  9. package/dist/storage/domains/legacy-evals/index.d.ts +18 -0
  10. package/dist/storage/domains/legacy-evals/index.d.ts.map +1 -0
  11. package/dist/storage/domains/memory/index.d.ts +87 -0
  12. package/dist/storage/domains/memory/index.d.ts.map +1 -0
  13. package/dist/storage/domains/operations/index.d.ts +61 -0
  14. package/dist/storage/domains/operations/index.d.ts.map +1 -0
  15. package/dist/storage/domains/scores/index.d.ts +45 -0
  16. package/dist/storage/domains/scores/index.d.ts.map +1 -0
  17. package/dist/storage/domains/traces/index.d.ts +21 -0
  18. package/dist/storage/domains/traces/index.d.ts.map +1 -0
  19. package/dist/storage/domains/utils.d.ts +16 -0
  20. package/dist/storage/domains/utils.d.ts.map +1 -0
  21. package/dist/storage/domains/workflows/index.d.ts +34 -0
  22. package/dist/storage/domains/workflows/index.d.ts.map +1 -0
  23. package/dist/storage/index.d.ts +221 -0
  24. package/dist/storage/index.d.ts.map +1 -0
  25. package/dist/vector/filter.d.ts +29 -0
  26. package/dist/vector/filter.d.ts.map +1 -0
  27. package/dist/vector/index.d.ts +72 -0
  28. package/dist/vector/index.d.ts.map +1 -0
  29. package/dist/vector/prompt.d.ts +6 -0
  30. package/dist/vector/prompt.d.ts.map +1 -0
  31. package/dist/vector/sql-builder.d.ts +9 -0
  32. package/dist/vector/sql-builder.d.ts.map +1 -0
  33. package/package.json +6 -6
  34. package/src/storage/domains/scores/index.ts +5 -3
  35. package/tsconfig.build.json +9 -0
  36. package/tsconfig.json +1 -1
  37. package/tsup.config.ts +22 -0
  38. package/dist/_tsup-dts-rollup.d.cts +0 -642
  39. package/dist/_tsup-dts-rollup.d.ts +0 -642
  40. package/dist/index.d.cts +0 -6
@@ -1,23 +1,4 @@
1
1
 
2
- > @mastra/libsql@0.12.0-alpha.2 build /home/runner/work/mastra/mastra/stores/libsql
3
- > tsup src/index.ts --format esm,cjs --experimental-dts --clean --treeshake=smallest --splitting
2
+ > @mastra/libsql@0.13.0-alpha.0 build /home/runner/work/mastra/mastra/stores/libsql
3
+ > tsup --silent --config tsup.config.ts
4
4
 
5
- CLI Building entry: src/index.ts
6
- CLI Using tsconfig: tsconfig.json
7
- CLI tsup v8.5.0
8
- TSC Build start
9
- TSC ⚡️ Build success in 10851ms
10
- DTS Build start
11
- CLI Target: es2022
12
- Analysis will use the bundled TypeScript version 5.8.3
13
- Writing package typings: /home/runner/work/mastra/mastra/stores/libsql/dist/_tsup-dts-rollup.d.ts
14
- Analysis will use the bundled TypeScript version 5.8.3
15
- Writing package typings: /home/runner/work/mastra/mastra/stores/libsql/dist/_tsup-dts-rollup.d.cts
16
- DTS ⚡️ Build success in 13922ms
17
- CLI Cleaning output folder
18
- ESM Build start
19
- CJS Build start
20
- ESM dist/index.js 89.73 KB
21
- ESM ⚡️ Build success in 2396ms
22
- CJS dist/index.cjs 90.83 KB
23
- CJS ⚡️ Build success in 2397ms
package/CHANGELOG.md CHANGED
@@ -1,5 +1,68 @@
1
1
  # @mastra/libsql
2
2
 
3
+ ## 0.13.0-alpha.0
4
+
5
+ ### Minor Changes
6
+
7
+ - ea0c5f2: Add store support to new score api
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [ea0c5f2]
12
+ - Updated dependencies [b0e43c1]
13
+ - Updated dependencies [1fb812e]
14
+ - Updated dependencies [35c5798]
15
+ - @mastra/core@0.13.0-alpha.1
16
+
17
+ ## 0.12.0
18
+
19
+ ### Minor Changes
20
+
21
+ - f42c4c2: update peer deps for packages to latest core range
22
+
23
+ ### Patch Changes
24
+
25
+ - 24ac5ff: dependencies updates:
26
+ - Updated dependency [`@libsql/client@^0.15.10` ↗︎](https://www.npmjs.com/package/@libsql/client/v/0.15.10) (from `^0.15.9`, in `dependencies`)
27
+ - ff9c125: enhance thread retrieval with sorting options in libsql and pg
28
+ - a3ca14c: `LibSQLVector.doUpsert`: check if transaction is open before attempting rollback
29
+ - b8efbb9: feat: add flexible deleteMessages method to memory API
30
+ - Added `memory.deleteMessages(input)` method that accepts multiple input types:
31
+ - Single message ID as string: `deleteMessages('msg-123')`
32
+ - Array of message IDs: `deleteMessages(['msg-1', 'msg-2'])`
33
+ - Message object with id property: `deleteMessages({ id: 'msg-123' })`
34
+ - Array of message objects: `deleteMessages([{ id: 'msg-1' }, { id: 'msg-2' }])`
35
+ - Implemented in all storage adapters (LibSQL, PostgreSQL, Upstash, InMemory)
36
+ - Added REST API endpoint: `POST /api/memory/messages/delete`
37
+ - Updated client SDK: `thread.deleteMessages()` accepts all input types
38
+ - Updates thread timestamps when messages are deleted
39
+ - Added comprehensive test coverage and documentation
40
+
41
+ - Updated dependencies [510e2c8]
42
+ - Updated dependencies [2f72fb2]
43
+ - Updated dependencies [27cc97a]
44
+ - Updated dependencies [3f89307]
45
+ - Updated dependencies [9eda7d4]
46
+ - Updated dependencies [9d49408]
47
+ - Updated dependencies [41daa63]
48
+ - Updated dependencies [ad0a58b]
49
+ - Updated dependencies [254a36b]
50
+ - Updated dependencies [2ecf658]
51
+ - Updated dependencies [7a7754f]
52
+ - Updated dependencies [fc92d80]
53
+ - Updated dependencies [e0f73c6]
54
+ - Updated dependencies [0b89602]
55
+ - Updated dependencies [4d37822]
56
+ - Updated dependencies [23a6a7c]
57
+ - Updated dependencies [cda801d]
58
+ - Updated dependencies [a77c823]
59
+ - Updated dependencies [ff9c125]
60
+ - Updated dependencies [09bca64]
61
+ - Updated dependencies [b8efbb9]
62
+ - Updated dependencies [71466e7]
63
+ - Updated dependencies [0c99fbe]
64
+ - @mastra/core@0.12.0
65
+
3
66
  ## 0.12.0-alpha.2
4
67
 
5
68
  ### Minor Changes
package/dist/index.cjs CHANGED
@@ -2097,7 +2097,7 @@ var ScoresLibSQL = class extends storage.ScoresStorage {
2097
2097
  const runtimeContextValue = row.runtimeContext ? JSON.parse(row.runtimeContext) : null;
2098
2098
  const metadataValue = row.metadata ? JSON.parse(row.metadata) : null;
2099
2099
  const entityValue = row.entity ? JSON.parse(row.entity) : null;
2100
- const extractStepResultValue = row.extractStepResult ? JSON.parse(row.extractStepResult) : null;
2100
+ const preprocessStepResultValue = row.preprocessStepResult ? JSON.parse(row.preprocessStepResult) : null;
2101
2101
  const analyzeStepResultValue = row.analyzeStepResult ? JSON.parse(row.analyzeStepResult) : null;
2102
2102
  return {
2103
2103
  id: row.id,
@@ -2106,10 +2106,12 @@ var ScoresLibSQL = class extends storage.ScoresStorage {
2106
2106
  scorer: scorerValue,
2107
2107
  score: row.score,
2108
2108
  reason: row.reason,
2109
- extractStepResult: extractStepResultValue,
2109
+ preprocessStepResult: preprocessStepResultValue,
2110
2110
  analyzeStepResult: analyzeStepResultValue,
2111
2111
  analyzePrompt: row.analyzePrompt,
2112
- extractPrompt: row.extractPrompt,
2112
+ preprocessPrompt: row.preprocessPrompt,
2113
+ generateScorePrompt: row.generateScorePrompt,
2114
+ generateReasonPrompt: row.generateReasonPrompt,
2113
2115
  metadata: metadataValue,
2114
2116
  input: inputValue,
2115
2117
  output: outputValue,
@@ -2799,3 +2801,5 @@ exports.DefaultStorage = LibSQLStore;
2799
2801
  exports.LIBSQL_PROMPT = LIBSQL_PROMPT;
2800
2802
  exports.LibSQLStore = LibSQLStore;
2801
2803
  exports.LibSQLVector = LibSQLVector;
2804
+ //# sourceMappingURL=index.cjs.map
2805
+ //# sourceMappingURL=index.cjs.map