@mastra/connect 1.4.0-alpha.6 → 1.4.1-alpha.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.
@@ -3,7 +3,7 @@ name: mastra-connect
3
3
  description: Documentation for @mastra/connect. Use when working with @mastra/connect APIs, configuration, or implementation.
4
4
  metadata:
5
5
  package: "@mastra/connect"
6
- version: "1.4.0-alpha.6"
6
+ version: "1.4.1-alpha.0"
7
7
  ---
8
8
 
9
9
  ## When to use
@@ -1,46 +1,46 @@
1
1
  {
2
- "version": "1.4.0-alpha.6",
2
+ "version": "1.4.1-alpha.0",
3
3
  "package": "@mastra/connect",
4
4
  "exports": {
5
5
  "CHANNELS": {
6
6
  "types": "dist/registry.d.ts",
7
7
  "implementation": "dist/index.js",
8
- "line": 85603
8
+ "line": 85604
9
9
  },
10
10
  "CONNECT_PROMPT_TOOL_KEY": {
11
11
  "types": "dist/connect-prompt-tool.d.ts",
12
12
  "implementation": "dist/index.js",
13
- "line": 852
13
+ "line": 853
14
14
  },
15
15
  "MastraConnectError": {
16
16
  "types": "dist/errors.d.ts",
17
17
  "implementation": "dist/index.js",
18
- "line": 9
18
+ "line": 10
19
19
  },
20
20
  "PROVIDERS": {
21
21
  "types": "dist/registry.d.ts",
22
22
  "implementation": "dist/index.js",
23
- "line": 85560
23
+ "line": 85561
24
24
  },
25
25
  "channels": {
26
26
  "types": "dist/channels.d.ts",
27
27
  "implementation": "dist/index.js",
28
- "line": 86588
28
+ "line": 86589
29
29
  },
30
30
  "credential": {
31
31
  "types": "dist/credential.d.ts",
32
32
  "implementation": "dist/index.js",
33
- "line": 86819
33
+ "line": 86820
34
34
  },
35
35
  "tools": {
36
36
  "types": "dist/tools.d.ts",
37
37
  "implementation": "dist/index.js",
38
- "line": 86031
38
+ "line": 86032
39
39
  },
40
40
  "userConnectRoutes": {
41
41
  "types": "dist/user-connect-routes.d.ts",
42
42
  "implementation": "dist/index.js",
43
- "line": 87124
43
+ "line": 87125
44
44
  }
45
45
  },
46
46
  "modules": {}
package/dist/index.cjs CHANGED
@@ -5,6 +5,7 @@ let _mastra_core_observability = require("@mastra/core/observability");
5
5
  let _mastra_core_tools = require("@mastra/core/tools");
6
6
  let crypto = require("crypto");
7
7
  let _mastra_core_request_context = require("@mastra/core/request-context");
8
+ let _mastra_core_utils = require("@mastra/core/utils");
8
9
  // src/errors.ts
9
10
  const MAX_DETAIL_LENGTH = 2e3;
10
11
  var MastraConnectError = class extends Error {
@@ -53741,7 +53742,7 @@ function toImageGenerationModelOutput(output) {
53741
53742
  // src/providers/openai/tools/create-image.ts
53742
53743
  const createImageInputSchema = zod.z.object({
53743
53744
  prompt: zod.z.string().min(1).max(32e3).describe("A text description of the desired image(s). Maximum 32,000 characters for GPT image models."),
53744
- model: zod.z.string().regex(/^(gpt-image-.+|chatgpt-image-latest)$/).optional().describe("A supported GPT Image model ID. Defaults to \"gpt-image-1\"."),
53745
+ model: zod.z.string().regex(/^(gpt-image-.+|chatgpt-image-latest)$/).optional().describe("A supported GPT Image model ID. Defaults to \"gpt-image-2.5-sunburst\"."),
53745
53746
  n: zod.z.number().int().min(1).max(10).optional().describe("The number of images to generate. Must be between 1 and 10."),
53746
53747
  size: zod.z.union([zod.z.literal("auto"), zod.z.string().regex(/^[1-9]\d*x[1-9]\d*$/)]).optional().describe("Image dimensions such as \"1024x1024\", \"1536x1024\", or \"auto\". Newer GPT image models support arbitrary WIDTHxHEIGHT values."),
53747
53748
  quality: zod.z.enum([
@@ -53795,7 +53796,7 @@ function createImageTool(proxy) {
53795
53796
  endpoint: "/v1/images/generations",
53796
53797
  data: {
53797
53798
  prompt: input.prompt,
53798
- model: input.model ?? "gpt-image-1",
53799
+ model: input.model ?? "gpt-image-2.5-sunburst",
53799
53800
  ...input.n !== void 0 && { n: input.n },
53800
53801
  ...input.size !== void 0 && { size: input.size },
53801
53802
  ...input.quality !== void 0 && { quality: input.quality },
@@ -87171,7 +87172,7 @@ function userConnectRoutes(options) {
87171
87172
  if (options.resourceId) try {
87172
87173
  raw = await options.resourceId({
87173
87174
  requestContext,
87174
- user: requestContext?.get("user")
87175
+ user: (0, _mastra_core_utils.getRequestUser)(requestContext)
87175
87176
  });
87176
87177
  } catch (error) {
87177
87178
  logRouteError(c, error);