@jz92/ai-provider 0.2.0 → 0.2.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/package.json CHANGED
@@ -1,20 +1,19 @@
1
1
  {
2
2
  "name": "@jz92/ai-provider",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "description": "Environment-aware AI provider for portfolio projects. Local dev → Ollama, deployed → any cloud provider.",
5
- "author": "Jithin Zachariah",
5
+ "author": "jz92",
6
6
  "license": "MIT",
7
7
  "private": false,
8
8
  "type": "module",
9
-
10
- "main": "./dist/index.js",
11
- "module": "./dist/index.mjs",
9
+ "main": "./dist/index.cjs",
10
+ "module": "./dist/index.js",
12
11
  "types": "./dist/index.d.ts",
13
12
  "exports": {
14
13
  ".": {
15
14
  "types": "./dist/index.d.ts",
16
- "import": "./dist/index.mjs",
17
- "require": "./dist/index.js"
15
+ "import": "./dist/index.js",
16
+ "require": "./dist/index.cjs"
18
17
  }
19
18
  },
20
19
  "files": [
@@ -23,17 +22,14 @@
23
22
  "scripts",
24
23
  "README.md"
25
24
  ],
26
-
27
25
  "scripts": {
28
26
  "build": "tsup src/index.ts --format esm,cjs --dts --clean",
29
27
  "dev": "tsup src/index.ts --format esm,cjs --dts --watch",
30
28
  "type-check": "tsc --noEmit",
31
29
  "test": "NODE_ENV=development npx tsx --tsconfig tsconfig.test.json test/smoke.ts",
32
- "postinstall": "node scripts/postinstall.js",
33
30
  "setup:local": "bash scripts/setup-local.sh",
34
31
  "prepublishOnly": "npm run build && npm run type-check"
35
32
  },
36
-
37
33
  "peerDependencies": {
38
34
  "ai": ">=4.0.0",
39
35
  "zod": ">=3.0.0",
@@ -45,12 +41,24 @@
45
41
  "ollama-ai-provider": ">=0.16.0"
46
42
  },
47
43
  "peerDependenciesMeta": {
48
- "@ai-sdk/anthropic": { "optional": true },
49
- "@ai-sdk/openai": { "optional": true },
50
- "@ai-sdk/google": { "optional": true },
51
- "@ai-sdk/groq": { "optional": true },
52
- "@ai-sdk/mistral": { "optional": true },
53
- "ollama-ai-provider": { "optional": true }
44
+ "@ai-sdk/anthropic": {
45
+ "optional": true
46
+ },
47
+ "@ai-sdk/openai": {
48
+ "optional": true
49
+ },
50
+ "@ai-sdk/google": {
51
+ "optional": true
52
+ },
53
+ "@ai-sdk/groq": {
54
+ "optional": true
55
+ },
56
+ "@ai-sdk/mistral": {
57
+ "optional": true
58
+ },
59
+ "ollama-ai-provider": {
60
+ "optional": true
61
+ }
54
62
  },
55
63
  "devDependencies": {
56
64
  "typescript": "^5.4.0",
@@ -66,7 +74,19 @@
66
74
  "@ai-sdk/mistral": "^1.0.0",
67
75
  "ollama-ai-provider": "^0.16.0"
68
76
  },
69
-
70
- "engines": { "node": ">=18.0.0" },
71
- "keywords": ["ai", "ollama", "anthropic", "openai", "google", "groq", "mistral", "vercel-ai-sdk", "llm", "provider"]
77
+ "engines": {
78
+ "node": ">=18.0.0"
79
+ },
80
+ "keywords": [
81
+ "ai",
82
+ "ollama",
83
+ "anthropic",
84
+ "openai",
85
+ "google",
86
+ "groq",
87
+ "mistral",
88
+ "vercel-ai-sdk",
89
+ "llm",
90
+ "provider"
91
+ ]
72
92
  }
@@ -11,7 +11,7 @@ const green = '\x1b[32m'
11
11
  const dim = '\x1b[2m'
12
12
 
13
13
  console.log(`
14
- ${bold}@jithin/ai-provider${reset} installed successfully.
14
+ ${bold}@jz92/ai-provider${reset} installed successfully.
15
15
 
16
16
  ${yellow}Next: install the provider adapters you need.${reset}
17
17