@mastra/platform-workspace 1.14.1-alpha.0 → 1.15.0-alpha.1

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/client.d.ts CHANGED
@@ -71,6 +71,8 @@ export declare class PlatformClient {
71
71
  constructor(options: PlatformClientOptions);
72
72
  request(path: string, options?: PlatformRequestOptions): Promise<Response>;
73
73
  requestProvider(path: string, options?: PlatformRequestOptions): Promise<Response>;
74
+ /** Calls a project route that belongs to no sandbox provider, e.g. `/browsers`. */
75
+ requestProject(path: string, options?: PlatformRequestOptions): Promise<Response>;
74
76
  private requestAtPath;
75
77
  }
76
78
  //# sourceMappingURL=client.d.ts.map
package/dist/index.cjs CHANGED
@@ -141,6 +141,10 @@ var PlatformClient = class {
141
141
  async requestProvider(path, options = {}) {
142
142
  return this.requestAtPath(`/${this.sandboxProvider}`, path, options);
143
143
  }
144
+ /** Calls a project route that belongs to no sandbox provider, e.g. `/browsers`. */
145
+ async requestProject(path, options = {}) {
146
+ return this.requestAtPath("", path, options);
147
+ }
144
148
  async requestAtPath(providerPath, path, options) {
145
149
  const url = new URL(`${this.proxyUrl}/v1${providerPath}/projects/${encodeURIComponent(this.projectId)}${path}`);
146
150
  for (const [key, value] of Object.entries(options.query ?? {})) if (value !== void 0) url.searchParams.set(key, String(value));
package/dist/index.js CHANGED
@@ -118,6 +118,10 @@ var PlatformClient = class {
118
118
  async requestProvider(path, options = {}) {
119
119
  return this.requestAtPath(`/${this.sandboxProvider}`, path, options);
120
120
  }
121
+ /** Calls a project route that belongs to no sandbox provider, e.g. `/browsers`. */
122
+ async requestProject(path, options = {}) {
123
+ return this.requestAtPath("", path, options);
124
+ }
121
125
  async requestAtPath(providerPath, path, options) {
122
126
  const url = new URL(`${this.proxyUrl}/v1${providerPath}/projects/${encodeURIComponent(this.projectId)}${path}`);
123
127
  for (const [key, value] of Object.entries(options.query ?? {})) if (value !== void 0) url.searchParams.set(key, String(value));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/platform-workspace",
3
- "version": "1.14.1-alpha.0",
3
+ "version": "1.15.0-alpha.1",
4
4
  "description": "Mastra Platform workspace sandbox and filesystem providers",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -29,7 +29,7 @@
29
29
  "@internal/lint": "0.0.152",
30
30
  "@internal/types-builder": "0.0.127",
31
31
  "@internal/workspace": "0.0.24",
32
- "@mastra/core": "1.87.0-alpha.1"
32
+ "@mastra/core": "1.87.0-alpha.9"
33
33
  },
34
34
  "peerDependencies": {
35
35
  "@mastra/core": ">=1.80.0-0 <2.0.0-0"