@promptlycms/prompts 0.1.2 → 0.2.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/README.md +2 -2
- package/dist/index.cjs +1 -0
- package/dist/index.js +1 -0
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -146,7 +146,7 @@ The SDK automatically resolves models configured in the CMS to the correct AI SD
|
|
|
146
146
|
| `gemini-*` | Google | `@ai-sdk/google` |
|
|
147
147
|
| `mistral-*`, `mixtral-*`, `codestral-*` | Mistral | `@ai-sdk/mistral` |
|
|
148
148
|
|
|
149
|
-
CMS model display names (e.g. `claude-sonnet-4.
|
|
149
|
+
CMS model display names (e.g. `claude-sonnet-4.6`) are mapped to their full API model IDs automatically.
|
|
150
150
|
|
|
151
151
|
### Custom model resolver
|
|
152
152
|
|
|
@@ -157,7 +157,7 @@ import { anthropic } from '@ai-sdk/anthropic';
|
|
|
157
157
|
|
|
158
158
|
const promptly = createPromptlyClient({
|
|
159
159
|
apiKey: process.env.PROMPTLY_API_KEY,
|
|
160
|
-
model: (modelId) => anthropic('claude-sonnet-4-
|
|
160
|
+
model: (modelId) => anthropic('claude-sonnet-4-6'),
|
|
161
161
|
});
|
|
162
162
|
```
|
|
163
163
|
|
package/dist/index.cjs
CHANGED
|
@@ -76,6 +76,7 @@ var DEFAULT_BASE_URL = "https://api.promptlycms.com";
|
|
|
76
76
|
var MODEL_ID_MAP = {
|
|
77
77
|
// Anthropic: CMS display IDs → API model IDs
|
|
78
78
|
"claude-opus-4.6": "claude-opus-4-6-20250917",
|
|
79
|
+
"claude-sonnet-4.6": "claude-sonnet-4-6",
|
|
79
80
|
"claude-sonnet-4.5": "claude-sonnet-4-5-20250929",
|
|
80
81
|
"claude-haiku-4.5": "claude-haiku-4-5-20251001",
|
|
81
82
|
"claude-opus-4": "claude-opus-4-20250514",
|
package/dist/index.js
CHANGED
|
@@ -37,6 +37,7 @@ var DEFAULT_BASE_URL = "https://api.promptlycms.com";
|
|
|
37
37
|
var MODEL_ID_MAP = {
|
|
38
38
|
// Anthropic: CMS display IDs → API model IDs
|
|
39
39
|
"claude-opus-4.6": "claude-opus-4-6-20250917",
|
|
40
|
+
"claude-sonnet-4.6": "claude-sonnet-4-6",
|
|
40
41
|
"claude-sonnet-4.5": "claude-sonnet-4-5-20250929",
|
|
41
42
|
"claude-haiku-4.5": "claude-haiku-4-5-20251001",
|
|
42
43
|
"claude-opus-4": "claude-opus-4-20250514",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@promptlycms/prompts",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "TypeScript SDK for Promptly CMS — fetch prompts, build Zod schemas, generate typed code",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -36,23 +36,23 @@
|
|
|
36
36
|
"citty": "^0.2.1"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@ai-sdk/anthropic": "^3.0.
|
|
39
|
+
"@ai-sdk/anthropic": "^3.0.45",
|
|
40
40
|
"@ai-sdk/google": "^3.0.29",
|
|
41
41
|
"@ai-sdk/mistral": "^3.0.20",
|
|
42
42
|
"@ai-sdk/openai": "^3.0.29",
|
|
43
|
-
"@biomejs/biome": "^2.
|
|
43
|
+
"@biomejs/biome": "^2.4.2",
|
|
44
44
|
"@changesets/changelog-github": "^0.5.2",
|
|
45
45
|
"@changesets/cli": "^2.29.8",
|
|
46
46
|
"@types/bun": "latest",
|
|
47
|
-
"@typescript/native-preview": "^7.0.0-dev.
|
|
48
|
-
"ai": "^6.0",
|
|
47
|
+
"@typescript/native-preview": "^7.0.0-dev.20260217.1",
|
|
48
|
+
"ai": "^6.0.89",
|
|
49
49
|
"tsup": "^8.5.1",
|
|
50
50
|
"zod": "^4.3.6"
|
|
51
51
|
},
|
|
52
52
|
"peerDependencies": {
|
|
53
53
|
"typescript": "^5",
|
|
54
54
|
"zod": "^4.0.0",
|
|
55
|
-
"ai": "^
|
|
55
|
+
"ai": "^6.0.89"
|
|
56
56
|
},
|
|
57
57
|
"peerDependenciesMeta": {
|
|
58
58
|
"@ai-sdk/anthropic": {
|