@valbuild/shared 0.153.1 → 0.153.5
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/CHANGELOG.md +8 -0
- package/dist/declarations/src/internal/ApiRoutes.d.ts +4 -0
- package/internal/dist/valbuild-shared-internal.cjs.dev.js +14 -1
- package/internal/dist/valbuild-shared-internal.cjs.prod.js +14 -1
- package/internal/dist/valbuild-shared-internal.esm.js +14 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @valbuild/shared
|
|
2
2
|
|
|
3
|
+
## 0.153.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#1037](https://github.com/valbuild/val/pull/1037) [`0176db3`](https://github.com/valbuild/val/commit/0176db30d8d621002cf72025b063b6f62b79b00d) Thanks [@freekh](https://github.com/freekh)! - The assistant's default model is now chosen by Val Build, not built into the Studio, so it can change for every project without a Val upgrade. It starts on the newest Claude Sonnet the project's Anthropic key can reach, or, with only an OpenAI key, the newest GPT of OpenAI's balanced tier (such as `gpt-6.1-sol`). A model an editor has picked themselves is still remembered and still wins. The built-in fallback catalog, used only when the models cannot be listed, now offers the Claude 5.5 models.
|
|
8
|
+
- Updated dependencies [[`6b3f4c5`](https://github.com/valbuild/val/commit/6b3f4c53ad51a86027654f64da5fb332f40df37f)]:
|
|
9
|
+
- @valbuild/core@0.153.5
|
|
10
|
+
|
|
3
11
|
## 0.153.1
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -2605,6 +2605,10 @@ export declare const Api: {
|
|
|
2605
2605
|
label: z.ZodString;
|
|
2606
2606
|
contextWindow: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2607
2607
|
}, z.core.$strip>>>;
|
|
2608
|
+
defaultModel: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2609
|
+
provider: z.ZodString;
|
|
2610
|
+
model: z.ZodString;
|
|
2611
|
+
}, z.core.$strip>>>;
|
|
2608
2612
|
}, z.core.$strip>;
|
|
2609
2613
|
}, z.core.$strip>, z.ZodObject<{
|
|
2610
2614
|
status: z.ZodLiteral<500>;
|
|
@@ -4133,7 +4133,20 @@ var Api = {
|
|
|
4133
4133
|
model: zod.z.string(),
|
|
4134
4134
|
label: zod.z.string(),
|
|
4135
4135
|
contextWindow: zod.z.number().nullable().optional()
|
|
4136
|
-
})).optional()
|
|
4136
|
+
})).optional(),
|
|
4137
|
+
/**
|
|
4138
|
+
* The model a chat starts on until the editor picks one.
|
|
4139
|
+
*
|
|
4140
|
+
* Chosen by the content server, from `models`, so the default can
|
|
4141
|
+
* change for every project at once rather than at each project's
|
|
4142
|
+
* next Val upgrade. Null or absent (an older content server, or
|
|
4143
|
+
* nothing it recognised) means the Studio picks from its own
|
|
4144
|
+
* catalog.
|
|
4145
|
+
*/
|
|
4146
|
+
defaultModel: zod.z.object({
|
|
4147
|
+
provider: zod.z.string(),
|
|
4148
|
+
model: zod.z.string()
|
|
4149
|
+
}).nullable().optional()
|
|
4137
4150
|
})
|
|
4138
4151
|
}), zod.z.object({
|
|
4139
4152
|
status: zod.z.literal(500),
|
|
@@ -4133,7 +4133,20 @@ var Api = {
|
|
|
4133
4133
|
model: zod.z.string(),
|
|
4134
4134
|
label: zod.z.string(),
|
|
4135
4135
|
contextWindow: zod.z.number().nullable().optional()
|
|
4136
|
-
})).optional()
|
|
4136
|
+
})).optional(),
|
|
4137
|
+
/**
|
|
4138
|
+
* The model a chat starts on until the editor picks one.
|
|
4139
|
+
*
|
|
4140
|
+
* Chosen by the content server, from `models`, so the default can
|
|
4141
|
+
* change for every project at once rather than at each project's
|
|
4142
|
+
* next Val upgrade. Null or absent (an older content server, or
|
|
4143
|
+
* nothing it recognised) means the Studio picks from its own
|
|
4144
|
+
* catalog.
|
|
4145
|
+
*/
|
|
4146
|
+
defaultModel: zod.z.object({
|
|
4147
|
+
provider: zod.z.string(),
|
|
4148
|
+
model: zod.z.string()
|
|
4149
|
+
}).nullable().optional()
|
|
4137
4150
|
})
|
|
4138
4151
|
}), zod.z.object({
|
|
4139
4152
|
status: zod.z.literal(500),
|
|
@@ -4126,7 +4126,20 @@ var Api = {
|
|
|
4126
4126
|
model: z.string(),
|
|
4127
4127
|
label: z.string(),
|
|
4128
4128
|
contextWindow: z.number().nullable().optional()
|
|
4129
|
-
})).optional()
|
|
4129
|
+
})).optional(),
|
|
4130
|
+
/**
|
|
4131
|
+
* The model a chat starts on until the editor picks one.
|
|
4132
|
+
*
|
|
4133
|
+
* Chosen by the content server, from `models`, so the default can
|
|
4134
|
+
* change for every project at once rather than at each project's
|
|
4135
|
+
* next Val upgrade. Null or absent (an older content server, or
|
|
4136
|
+
* nothing it recognised) means the Studio picks from its own
|
|
4137
|
+
* catalog.
|
|
4138
|
+
*/
|
|
4139
|
+
defaultModel: z.object({
|
|
4140
|
+
provider: z.string(),
|
|
4141
|
+
model: z.string()
|
|
4142
|
+
}).nullable().optional()
|
|
4130
4143
|
})
|
|
4131
4144
|
}), z.object({
|
|
4132
4145
|
status: z.literal(500),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@valbuild/shared",
|
|
3
|
-
"version": "0.153.
|
|
3
|
+
"version": "0.153.5",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Val shared types and utilities",
|
|
6
6
|
"repository": {
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"yaml": "^2.9.0",
|
|
55
55
|
"zod": "^4.4.3",
|
|
56
56
|
"zod-validation-error": "^5.0.0",
|
|
57
|
-
"@valbuild/core": "0.153.
|
|
57
|
+
"@valbuild/core": "0.153.5"
|
|
58
58
|
},
|
|
59
59
|
"files": [
|
|
60
60
|
"CHANGELOG.md",
|