@mastra/lance 0.0.0-new-scorer-api-20250801075530 → 0.0.0-playground-studio-cloud-20251031080052

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 (42) hide show
  1. package/CHANGELOG.md +430 -3
  2. package/README.md +3 -3
  3. package/dist/index.cjs +182 -224
  4. package/dist/index.cjs.map +1 -1
  5. package/dist/index.d.ts +2 -2
  6. package/dist/index.js +183 -225
  7. package/dist/index.js.map +1 -1
  8. package/dist/storage/domains/memory/index.d.ts +10 -1
  9. package/dist/storage/domains/memory/index.d.ts.map +1 -1
  10. package/dist/storage/domains/operations/index.d.ts.map +1 -1
  11. package/dist/storage/domains/scores/index.d.ts +13 -2
  12. package/dist/storage/domains/scores/index.d.ts.map +1 -1
  13. package/dist/storage/domains/utils.d.ts.map +1 -1
  14. package/dist/storage/domains/workflows/index.d.ts +21 -2
  15. package/dist/storage/domains/workflows/index.d.ts.map +1 -1
  16. package/dist/storage/index.d.ts +45 -20
  17. package/dist/storage/index.d.ts.map +1 -1
  18. package/dist/vector/index.d.ts +3 -3
  19. package/dist/vector/index.d.ts.map +1 -1
  20. package/package.json +22 -8
  21. package/dist/storage/domains/traces/index.d.ts +0 -34
  22. package/dist/storage/domains/traces/index.d.ts.map +0 -1
  23. package/eslint.config.js +0 -6
  24. package/src/index.ts +0 -2
  25. package/src/storage/domains/legacy-evals/index.ts +0 -156
  26. package/src/storage/domains/memory/index.ts +0 -947
  27. package/src/storage/domains/operations/index.ts +0 -489
  28. package/src/storage/domains/scores/index.ts +0 -221
  29. package/src/storage/domains/traces/index.ts +0 -212
  30. package/src/storage/domains/utils.ts +0 -158
  31. package/src/storage/domains/workflows/index.ts +0 -207
  32. package/src/storage/index.test.ts +0 -10
  33. package/src/storage/index.ts +0 -442
  34. package/src/vector/filter.test.ts +0 -295
  35. package/src/vector/filter.ts +0 -443
  36. package/src/vector/index.test.ts +0 -1493
  37. package/src/vector/index.ts +0 -941
  38. package/src/vector/types.ts +0 -16
  39. package/tsconfig.build.json +0 -9
  40. package/tsconfig.json +0 -5
  41. package/tsup.config.ts +0 -22
  42. package/vitest.config.ts +0 -11
@@ -1,16 +0,0 @@
1
- export type IndexType = 'ivfflat' | 'hnsw';
2
-
3
- interface IVFConfig {
4
- lists?: number;
5
- }
6
-
7
- interface HNSWConfig {
8
- m?: number; // Max number of connections (default: 16)
9
- efConstruction?: number; // Build-time complexity (default: 64)
10
- }
11
-
12
- export interface IndexConfig {
13
- type?: IndexType;
14
- ivf?: IVFConfig;
15
- hnsw?: HNSWConfig;
16
- }
@@ -1,9 +0,0 @@
1
- {
2
- "extends": ["./tsconfig.json", "../../tsconfig.build.json"],
3
- "compilerOptions": {
4
- "outDir": "./dist",
5
- "rootDir": "./src"
6
- },
7
- "include": ["src/**/*"],
8
- "exclude": ["node_modules", "**/*.test.ts", "src/**/*.mock.ts"]
9
- }
package/tsconfig.json DELETED
@@ -1,5 +0,0 @@
1
- {
2
- "extends": "../../tsconfig.node.json",
3
- "include": ["src/**/*", "tsup.config.ts"],
4
- "exclude": ["node_modules", "**/*.test.ts"]
5
- }
package/tsup.config.ts DELETED
@@ -1,22 +0,0 @@
1
- import { spawn } from 'child_process';
2
- import { promisify } from 'util';
3
- import { defineConfig } from 'tsup';
4
-
5
- const exec = promisify(spawn);
6
-
7
- export default defineConfig({
8
- entry: ['src/index.ts'],
9
- format: ['esm', 'cjs'],
10
- clean: true,
11
- dts: false,
12
- splitting: true,
13
- treeshake: {
14
- preset: 'smallest',
15
- },
16
- sourcemap: true,
17
- onSuccess: async () => {
18
- await exec('pnpm', ['tsc', '-p', 'tsconfig.build.json'], {
19
- stdio: 'inherit',
20
- });
21
- },
22
- });
package/vitest.config.ts DELETED
@@ -1,11 +0,0 @@
1
- import { defineConfig } from 'vitest/config';
2
-
3
- export default defineConfig({
4
- test: {
5
- environment: 'node',
6
- include: ['src/**/*.test.ts'],
7
- coverage: {
8
- reporter: ['text', 'json', 'html'],
9
- },
10
- },
11
- });