modelpact-providers 0.0.0 → 1.1.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.
package/package.json CHANGED
@@ -1,11 +1,17 @@
1
1
  {
2
2
  "name": "modelpact-providers",
3
- "version": "0.0.0",
4
- "description": "Backends for modelpact",
3
+ "version": "1.1.0",
4
+ "description": "Language-model backends written against the modelpact contract — one transport per runtime, each green on the contract suite",
5
5
  "keywords": [
6
6
  "llm",
7
7
  "modelpact",
8
- "typescript"
8
+ "typescript",
9
+ "ollama",
10
+ "prompt-api",
11
+ "webgpu",
12
+ "on-device",
13
+ "adapter",
14
+ "contract-testing"
9
15
  ],
10
16
  "license": "MIT",
11
17
  "author": "Sergey Avdienko",
@@ -22,6 +28,10 @@
22
28
  ".": {
23
29
  "types": "./dist/index.d.ts",
24
30
  "import": "./dist/index.js"
31
+ },
32
+ "./webgpu": {
33
+ "types": "./dist/webgpu.d.ts",
34
+ "import": "./dist/webgpu.js"
25
35
  }
26
36
  },
27
37
  "files": [
@@ -32,6 +42,7 @@
32
42
  "node": ">=22"
33
43
  },
34
44
  "scripts": {
45
+ "prepare": "patch-package",
35
46
  "build": "tsc -p tsconfig.build.json",
36
47
  "test": "vitest run",
37
48
  "test:watch": "vitest",
@@ -39,21 +50,31 @@
39
50
  "lint:fix": "eslint . --fix",
40
51
  "format": "prettier --write .",
41
52
  "format:check": "prettier --check .",
42
- "typecheck": "tsc --noEmit",
53
+ "typecheck": "tsc --noEmit && tsc -p tsconfig.patched.json",
54
+ "check:surface": "npm run build && tsc -p tsconfig.surface.json",
43
55
  "prepublishOnly": "npm run build"
44
56
  },
45
57
  "peerDependencies": {
46
- "modelpact": ">=2"
58
+ "modelpact": ">=2.2",
59
+ "@mlc-ai/web-llm": ">=0.2"
47
60
  },
48
61
  "devDependencies": {
49
62
  "@eslint/js": "^10.0.1",
63
+ "@mlc-ai/web-llm": "^0.2.84",
64
+ "@types/dom-chromium-ai": "^0.0.17",
50
65
  "@types/node": "^26.4.1",
51
66
  "eslint": "^10.9.1",
52
67
  "eslint-config-prettier": "^10.1.8",
53
68
  "modelpact": "^2.2.0",
69
+ "patch-package": "^8.0.1",
54
70
  "prettier": "^3.9.6",
55
71
  "typescript": "~6.0.3",
56
72
  "typescript-eslint": "^8.69.0",
57
73
  "vitest": "^4.1.11"
74
+ },
75
+ "peerDependenciesMeta": {
76
+ "@mlc-ai/web-llm": {
77
+ "optional": true
78
+ }
58
79
  }
59
80
  }