@dbx-tools/shared-mastra 0.3.2 → 0.3.4
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 +4 -4
- package/src/wire.ts +9 -5
package/package.json
CHANGED
|
@@ -12,16 +12,16 @@
|
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
14
|
"zod": "^4.3.6",
|
|
15
|
-
"@dbx-tools/shared-core": "0.3.
|
|
16
|
-
"@dbx-tools/shared-genie": "0.3.
|
|
17
|
-
"@dbx-tools/shared-model": "0.3.
|
|
15
|
+
"@dbx-tools/shared-core": "0.3.4",
|
|
16
|
+
"@dbx-tools/shared-genie": "0.3.4",
|
|
17
|
+
"@dbx-tools/shared-model": "0.3.4"
|
|
18
18
|
},
|
|
19
19
|
"main": "index.ts",
|
|
20
20
|
"license": "UNLICENSED",
|
|
21
21
|
"publishConfig": {
|
|
22
22
|
"access": "public"
|
|
23
23
|
},
|
|
24
|
-
"version": "0.3.
|
|
24
|
+
"version": "0.3.4",
|
|
25
25
|
"types": "index.ts",
|
|
26
26
|
"type": "module",
|
|
27
27
|
"exports": {
|
package/src/wire.ts
CHANGED
|
@@ -70,15 +70,19 @@ export type MastraClientConfig = z.infer<typeof MastraClientConfigSchema>;
|
|
|
70
70
|
|
|
71
71
|
/**
|
|
72
72
|
* JSON payload returned by `GET ${basePath}/default-model[?agentId=]`. The
|
|
73
|
-
* static default
|
|
74
|
-
*
|
|
75
|
-
*
|
|
76
|
-
*
|
|
77
|
-
*
|
|
73
|
+
* static default model the agent resolves to when the client pins no model,
|
|
74
|
+
* as both the raw serving-endpoint `model` id and a `displayName` (the
|
|
75
|
+
* humanized label the picker shows). Both are `null` when the agent decides
|
|
76
|
+
* its model dynamically at call time (nothing static to advertise). Lets the
|
|
77
|
+
* picker label its default option WITHOUT waiting on the `/models` catalogue,
|
|
78
|
+
* so it never flashes a raw id on load. Kept off the static bootstrap
|
|
79
|
+
* `clientConfig` on purpose: it is per-agent and can be dynamic, so it is
|
|
80
|
+
* fetched like `/models`.
|
|
78
81
|
*/
|
|
79
82
|
export const DefaultModelResponseSchema = z.object({
|
|
80
83
|
agentId: z.string(),
|
|
81
84
|
model: z.string().nullable(),
|
|
85
|
+
displayName: z.string().nullable(),
|
|
82
86
|
});
|
|
83
87
|
export type DefaultModelResponse = z.infer<typeof DefaultModelResponseSchema>;
|
|
84
88
|
|