@mastra/platform-workspace 1.6.0-alpha.1 → 1.6.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/dist/index.js CHANGED
@@ -43,7 +43,7 @@ function resolvePlatformOptions(options) {
43
43
  const environmentSandboxProvider = process.env.SANDBOX_PROVIDER?.trim();
44
44
  const configuredSandboxProvider = options.sandboxProvider ?? environmentSandboxProvider;
45
45
  return {
46
- accessToken: requireOption(options.accessToken ?? process.env.MASTRA_PLATFORM_ACCESS_TOKEN, "accessToken"),
46
+ accessToken: requireOption(options.accessToken ?? (process.env.MASTRA_PLATFORM_ACCESS_TOKEN?.trim() || process.env.MASTRA_PLATFORM_SECRET_KEY?.trim()), "accessToken"),
47
47
  projectId: requireOption(options.projectId ?? process.env.MASTRA_PROJECT_ID, "projectId"),
48
48
  actingUserId: options.actingUserId?.trim() || void 0,
49
49
  proxyUrl: resolveProxyUrl().replace(/\/$/, ""),
@@ -2245,7 +2245,7 @@ const platformSandboxProvider = {
2245
2245
  properties: {
2246
2246
  accessToken: {
2247
2247
  type: "string",
2248
- description: "Mastra Platform access token (falls back to MASTRA_PLATFORM_ACCESS_TOKEN)"
2248
+ description: "Mastra Platform credential (falls back to MASTRA_PLATFORM_ACCESS_TOKEN, then MASTRA_PLATFORM_SECRET_KEY)"
2249
2249
  },
2250
2250
  projectId: {
2251
2251
  type: "string",
@@ -2301,7 +2301,7 @@ const platformFilesystemProvider = {
2301
2301
  properties: {
2302
2302
  accessToken: {
2303
2303
  type: "string",
2304
- description: "Mastra Platform access token (falls back to MASTRA_PLATFORM_ACCESS_TOKEN)"
2304
+ description: "Mastra Platform credential (falls back to MASTRA_PLATFORM_ACCESS_TOKEN, then MASTRA_PLATFORM_SECRET_KEY)"
2305
2305
  },
2306
2306
  projectId: {
2307
2307
  type: "string",