@remit/search-service 0.0.12 → 0.0.13

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remit/search-service",
3
- "version": "0.0.12",
3
+ "version": "0.0.13",
4
4
  "type": "module",
5
5
  "main": "src/index.ts",
6
6
  "types": "src/index.ts",
@@ -33,7 +33,9 @@
33
33
  "scripts": {
34
34
  "test:typecheck": "tsgo --noEmit",
35
35
  "test:run": "node --env-file=../../localhost-test-unit.env --import tsx --experimental-test-coverage --test-coverage-include='src/**' --test-coverage-exclude='src/**/*.test.ts' --test-coverage-exclude='src/**/*.test.tsx' --test-coverage-lines=82 --test 'src/**/*.test.ts'",
36
- "test:integ": "RUN_INTEG_TESTS=1 node --env-file=../../localhost-test-unit.env --import tsx --test 'src/**/*.integ.test.ts'",
36
+ "test:integ:local": "RUN_INTEG_TESTS=1 node --env-file=../../localhost-test-unit.env --import tsx --test 'src/backends/sqlite-vec.integ.test.ts'",
37
+ "test:integ:pg": "RUN_INTEG_TESTS=1 node --env-file=../../localhost-test-unit.env --import tsx --test 'src/backends/pgvector.integ.test.ts'",
38
+ "test:integ:model": "RUN_INTEG_TESTS=1 node --env-file=../../localhost-test-unit.env --import tsx --test 'src/semantic-search.integ.test.ts'",
37
39
  "test": "npm run test:typecheck && npm run test:run"
38
40
  },
39
41
  "dependencies": {
@@ -8,7 +8,7 @@
8
8
  * Gated behind RUN_INTEG_TESTS. Point PG_CONNECTION_URL at a database whose
9
9
  * `vector` extension is enabled (default: local remit_test).
10
10
  *
11
- * npm run test:integ -w packages/search-service
11
+ * npm run test:integ:pg -w packages/search-service
12
12
  */
13
13
  import assert from "node:assert";
14
14
  import { randomUUID } from "node:crypto";
@@ -7,7 +7,7 @@
7
7
  * Gated behind RUN_INTEG_TESTS because it loads the native better-sqlite3 and
8
8
  * sqlite-vec binaries, matching the pgvector integration suite.
9
9
  *
10
- * npm run test:integ -w packages/search-service
10
+ * npm run test:integ:local -w packages/search-service
11
11
  */
12
12
  import assert from "node:assert";
13
13
  import { after, before, describe, test } from "node:test";
@@ -8,7 +8,7 @@
8
8
  * Downloads the MiniLM model on first run, so it is gated behind RUN_INTEG_TESTS
9
9
  * and excluded from the default unit-test path.
10
10
  *
11
- * npm run test:integ -w packages/search-service
11
+ * npm run test:integ:model -w packages/search-service
12
12
  */
13
13
  import assert from "node:assert";
14
14
  import { mkdtempSync, rmSync } from "node:fs";