@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.
Files changed (2) hide show
  1. package/package.json +4 -4
  2. 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.2",
16
- "@dbx-tools/shared-genie": "0.3.2",
17
- "@dbx-tools/shared-model": "0.3.2"
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.2",
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 serving-endpoint id the agent resolves to when the client
74
- * pins no model, or `null` when the agent decides its model dynamically at
75
- * call time (nothing static to advertise). Lets the picker name its "Server
76
- * default" option. Kept off the static bootstrap `clientConfig` on purpose:
77
- * it is per-agent and can be dynamic, so it is fetched like `/models`.
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