@mastra/client-js 1.30.0 → 1.30.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.
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,38 @@
|
|
|
1
1
|
# @mastra/client-js
|
|
2
2
|
|
|
3
|
+
## 1.30.1-alpha.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Added workspace-level provider registry to MastraEditor. You can now register WorkspaceProvider factories that build complete Workspace instances as a single unit, instead of composing from separate filesystem and sandbox providers. Stored agents can reference a workspace provider via `{ type: 'provider', provider: 'my-cloud', config: { ... } }` and the editor will call the registered factory during agent hydration. ([#18781](https://github.com/mastra-ai/mastra/pull/18781))
|
|
8
|
+
|
|
9
|
+
```ts
|
|
10
|
+
import { MastraEditor } from '@mastra/editor';
|
|
11
|
+
import { Workspace } from '@mastra/core/workspace';
|
|
12
|
+
|
|
13
|
+
const editor = new MastraEditor({
|
|
14
|
+
workspaces: {
|
|
15
|
+
'my-cloud': {
|
|
16
|
+
id: 'my-cloud',
|
|
17
|
+
name: 'My Cloud Workspace',
|
|
18
|
+
createWorkspace: config =>
|
|
19
|
+
new Workspace({
|
|
20
|
+
id: 'cloud-ws',
|
|
21
|
+
name: 'Cloud WS',
|
|
22
|
+
filesystem: new MyCloudFilesystem(config),
|
|
23
|
+
sandbox: new MyCloudSandbox(config),
|
|
24
|
+
}),
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
// Stored agent workspace reference using the provider:
|
|
30
|
+
// { type: 'provider', provider: 'my-cloud', config: { region: 'us-east-1' } }
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
- Updated dependencies [[`6ef59fe`](https://github.com/mastra-ai/mastra/commit/6ef59fef1da52ed8da5fbb2a892c71cf4fb6c739), [`e2b9f33`](https://github.com/mastra-ai/mastra/commit/e2b9f33456fd638eca555f9466c6519d8d049666)]:
|
|
34
|
+
- @mastra/core@1.50.0-alpha.0
|
|
35
|
+
|
|
3
36
|
## 1.30.0
|
|
4
37
|
|
|
5
38
|
### Minor Changes
|
package/dist/docs/SKILL.md
CHANGED
|
@@ -3,7 +3,7 @@ name: mastra-client-js
|
|
|
3
3
|
description: Documentation for @mastra/client-js. Use when working with @mastra/client-js APIs, configuration, or implementation.
|
|
4
4
|
metadata:
|
|
5
5
|
package: "@mastra/client-js"
|
|
6
|
-
version: "1.30.0"
|
|
6
|
+
version: "1.30.1-alpha.0"
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
## When to use
|
|
@@ -2223,6 +2223,14 @@ export type PostAgentsAgentIdClone_Response = {
|
|
|
2223
2223
|
/** Operation timeout in milliseconds */
|
|
2224
2224
|
operationTimeout?: number | undefined;
|
|
2225
2225
|
};
|
|
2226
|
+
} | {
|
|
2227
|
+
type: 'provider';
|
|
2228
|
+
/** Workspace provider identifier */
|
|
2229
|
+
provider: string;
|
|
2230
|
+
/** Provider-specific configuration */
|
|
2231
|
+
config: {
|
|
2232
|
+
[key: string]: unknown;
|
|
2233
|
+
};
|
|
2226
2234
|
}) | {
|
|
2227
2235
|
value: {
|
|
2228
2236
|
type: 'id';
|
|
@@ -2314,6 +2322,14 @@ export type PostAgentsAgentIdClone_Response = {
|
|
|
2314
2322
|
/** Operation timeout in milliseconds */
|
|
2315
2323
|
operationTimeout?: number | undefined;
|
|
2316
2324
|
};
|
|
2325
|
+
} | {
|
|
2326
|
+
type: 'provider';
|
|
2327
|
+
/** Workspace provider identifier */
|
|
2328
|
+
provider: string;
|
|
2329
|
+
/** Provider-specific configuration */
|
|
2330
|
+
config: {
|
|
2331
|
+
[key: string]: unknown;
|
|
2332
|
+
};
|
|
2317
2333
|
};
|
|
2318
2334
|
rules?: {
|
|
2319
2335
|
operator: 'AND' | 'OR';
|
|
@@ -16283,6 +16299,14 @@ export type GetStoredAgents_Response = {
|
|
|
16283
16299
|
/** Operation timeout in milliseconds */
|
|
16284
16300
|
operationTimeout?: number | undefined;
|
|
16285
16301
|
};
|
|
16302
|
+
} | {
|
|
16303
|
+
type: 'provider';
|
|
16304
|
+
/** Workspace provider identifier */
|
|
16305
|
+
provider: string;
|
|
16306
|
+
/** Provider-specific configuration */
|
|
16307
|
+
config: {
|
|
16308
|
+
[key: string]: unknown;
|
|
16309
|
+
};
|
|
16286
16310
|
}) | {
|
|
16287
16311
|
value: {
|
|
16288
16312
|
type: 'id';
|
|
@@ -16374,6 +16398,14 @@ export type GetStoredAgents_Response = {
|
|
|
16374
16398
|
/** Operation timeout in milliseconds */
|
|
16375
16399
|
operationTimeout?: number | undefined;
|
|
16376
16400
|
};
|
|
16401
|
+
} | {
|
|
16402
|
+
type: 'provider';
|
|
16403
|
+
/** Workspace provider identifier */
|
|
16404
|
+
provider: string;
|
|
16405
|
+
/** Provider-specific configuration */
|
|
16406
|
+
config: {
|
|
16407
|
+
[key: string]: unknown;
|
|
16408
|
+
};
|
|
16377
16409
|
};
|
|
16378
16410
|
rules?: {
|
|
16379
16411
|
operator: 'AND' | 'OR';
|
|
@@ -18489,6 +18521,14 @@ export type PostStoredAgentsStoredAgentIdExport_Body = {
|
|
|
18489
18521
|
/** Operation timeout in milliseconds */
|
|
18490
18522
|
operationTimeout?: number | undefined;
|
|
18491
18523
|
};
|
|
18524
|
+
} | {
|
|
18525
|
+
type: 'provider';
|
|
18526
|
+
/** Workspace provider identifier */
|
|
18527
|
+
provider: string;
|
|
18528
|
+
/** Provider-specific configuration */
|
|
18529
|
+
config: {
|
|
18530
|
+
[key: string]: unknown;
|
|
18531
|
+
};
|
|
18492
18532
|
}) | {
|
|
18493
18533
|
value: {
|
|
18494
18534
|
type: 'id';
|
|
@@ -18580,6 +18620,14 @@ export type PostStoredAgentsStoredAgentIdExport_Body = {
|
|
|
18580
18620
|
/** Operation timeout in milliseconds */
|
|
18581
18621
|
operationTimeout?: number | undefined;
|
|
18582
18622
|
};
|
|
18623
|
+
} | {
|
|
18624
|
+
type: 'provider';
|
|
18625
|
+
/** Workspace provider identifier */
|
|
18626
|
+
provider: string;
|
|
18627
|
+
/** Provider-specific configuration */
|
|
18628
|
+
config: {
|
|
18629
|
+
[key: string]: unknown;
|
|
18630
|
+
};
|
|
18583
18631
|
};
|
|
18584
18632
|
rules?: {
|
|
18585
18633
|
operator: 'AND' | 'OR';
|
|
@@ -20610,6 +20658,14 @@ export type PostStoredAgentsStoredAgentIdChangeRequest_Body = {
|
|
|
20610
20658
|
/** Operation timeout in milliseconds */
|
|
20611
20659
|
operationTimeout?: number | undefined;
|
|
20612
20660
|
};
|
|
20661
|
+
} | {
|
|
20662
|
+
type: 'provider';
|
|
20663
|
+
/** Workspace provider identifier */
|
|
20664
|
+
provider: string;
|
|
20665
|
+
/** Provider-specific configuration */
|
|
20666
|
+
config: {
|
|
20667
|
+
[key: string]: unknown;
|
|
20668
|
+
};
|
|
20613
20669
|
}) | {
|
|
20614
20670
|
value: {
|
|
20615
20671
|
type: 'id';
|
|
@@ -20701,6 +20757,14 @@ export type PostStoredAgentsStoredAgentIdChangeRequest_Body = {
|
|
|
20701
20757
|
/** Operation timeout in milliseconds */
|
|
20702
20758
|
operationTimeout?: number | undefined;
|
|
20703
20759
|
};
|
|
20760
|
+
} | {
|
|
20761
|
+
type: 'provider';
|
|
20762
|
+
/** Workspace provider identifier */
|
|
20763
|
+
provider: string;
|
|
20764
|
+
/** Provider-specific configuration */
|
|
20765
|
+
config: {
|
|
20766
|
+
[key: string]: unknown;
|
|
20767
|
+
};
|
|
20704
20768
|
};
|
|
20705
20769
|
rules?: {
|
|
20706
20770
|
operator: 'AND' | 'OR';
|
|
@@ -22757,6 +22821,14 @@ export type GetStoredAgentsStoredAgentId_Response = {
|
|
|
22757
22821
|
/** Operation timeout in milliseconds */
|
|
22758
22822
|
operationTimeout?: number | undefined;
|
|
22759
22823
|
};
|
|
22824
|
+
} | {
|
|
22825
|
+
type: 'provider';
|
|
22826
|
+
/** Workspace provider identifier */
|
|
22827
|
+
provider: string;
|
|
22828
|
+
/** Provider-specific configuration */
|
|
22829
|
+
config: {
|
|
22830
|
+
[key: string]: unknown;
|
|
22831
|
+
};
|
|
22760
22832
|
}) | {
|
|
22761
22833
|
value: {
|
|
22762
22834
|
type: 'id';
|
|
@@ -22848,6 +22920,14 @@ export type GetStoredAgentsStoredAgentId_Response = {
|
|
|
22848
22920
|
/** Operation timeout in milliseconds */
|
|
22849
22921
|
operationTimeout?: number | undefined;
|
|
22850
22922
|
};
|
|
22923
|
+
} | {
|
|
22924
|
+
type: 'provider';
|
|
22925
|
+
/** Workspace provider identifier */
|
|
22926
|
+
provider: string;
|
|
22927
|
+
/** Provider-specific configuration */
|
|
22928
|
+
config: {
|
|
22929
|
+
[key: string]: unknown;
|
|
22930
|
+
};
|
|
22851
22931
|
};
|
|
22852
22932
|
rules?: {
|
|
22853
22933
|
operator: 'AND' | 'OR';
|
|
@@ -24876,6 +24956,14 @@ export type PostStoredAgents_Body = {
|
|
|
24876
24956
|
/** Operation timeout in milliseconds */
|
|
24877
24957
|
operationTimeout?: number | undefined;
|
|
24878
24958
|
};
|
|
24959
|
+
} | {
|
|
24960
|
+
type: 'provider';
|
|
24961
|
+
/** Workspace provider identifier */
|
|
24962
|
+
provider: string;
|
|
24963
|
+
/** Provider-specific configuration */
|
|
24964
|
+
config: {
|
|
24965
|
+
[key: string]: unknown;
|
|
24966
|
+
};
|
|
24879
24967
|
}) | {
|
|
24880
24968
|
value: {
|
|
24881
24969
|
type: 'id';
|
|
@@ -24967,6 +25055,14 @@ export type PostStoredAgents_Body = {
|
|
|
24967
25055
|
/** Operation timeout in milliseconds */
|
|
24968
25056
|
operationTimeout?: number | undefined;
|
|
24969
25057
|
};
|
|
25058
|
+
} | {
|
|
25059
|
+
type: 'provider';
|
|
25060
|
+
/** Workspace provider identifier */
|
|
25061
|
+
provider: string;
|
|
25062
|
+
/** Provider-specific configuration */
|
|
25063
|
+
config: {
|
|
25064
|
+
[key: string]: unknown;
|
|
25065
|
+
};
|
|
24970
25066
|
};
|
|
24971
25067
|
rules?: {
|
|
24972
25068
|
operator: 'AND' | 'OR';
|
|
@@ -26988,6 +27084,14 @@ export type PostStoredAgents_Response = {
|
|
|
26988
27084
|
/** Operation timeout in milliseconds */
|
|
26989
27085
|
operationTimeout?: number | undefined;
|
|
26990
27086
|
};
|
|
27087
|
+
} | {
|
|
27088
|
+
type: 'provider';
|
|
27089
|
+
/** Workspace provider identifier */
|
|
27090
|
+
provider: string;
|
|
27091
|
+
/** Provider-specific configuration */
|
|
27092
|
+
config: {
|
|
27093
|
+
[key: string]: unknown;
|
|
27094
|
+
};
|
|
26991
27095
|
}) | {
|
|
26992
27096
|
value: {
|
|
26993
27097
|
type: 'id';
|
|
@@ -27079,6 +27183,14 @@ export type PostStoredAgents_Response = {
|
|
|
27079
27183
|
/** Operation timeout in milliseconds */
|
|
27080
27184
|
operationTimeout?: number | undefined;
|
|
27081
27185
|
};
|
|
27186
|
+
} | {
|
|
27187
|
+
type: 'provider';
|
|
27188
|
+
/** Workspace provider identifier */
|
|
27189
|
+
provider: string;
|
|
27190
|
+
/** Provider-specific configuration */
|
|
27191
|
+
config: {
|
|
27192
|
+
[key: string]: unknown;
|
|
27193
|
+
};
|
|
27082
27194
|
};
|
|
27083
27195
|
rules?: {
|
|
27084
27196
|
operator: 'AND' | 'OR';
|
|
@@ -29109,6 +29221,14 @@ export type PatchStoredAgentsStoredAgentId_Body = {
|
|
|
29109
29221
|
/** Operation timeout in milliseconds */
|
|
29110
29222
|
operationTimeout?: number | undefined;
|
|
29111
29223
|
};
|
|
29224
|
+
} | {
|
|
29225
|
+
type: 'provider';
|
|
29226
|
+
/** Workspace provider identifier */
|
|
29227
|
+
provider: string;
|
|
29228
|
+
/** Provider-specific configuration */
|
|
29229
|
+
config: {
|
|
29230
|
+
[key: string]: unknown;
|
|
29231
|
+
};
|
|
29112
29232
|
}) | {
|
|
29113
29233
|
value: {
|
|
29114
29234
|
type: 'id';
|
|
@@ -29200,6 +29320,14 @@ export type PatchStoredAgentsStoredAgentId_Body = {
|
|
|
29200
29320
|
/** Operation timeout in milliseconds */
|
|
29201
29321
|
operationTimeout?: number | undefined;
|
|
29202
29322
|
};
|
|
29323
|
+
} | {
|
|
29324
|
+
type: 'provider';
|
|
29325
|
+
/** Workspace provider identifier */
|
|
29326
|
+
provider: string;
|
|
29327
|
+
/** Provider-specific configuration */
|
|
29328
|
+
config: {
|
|
29329
|
+
[key: string]: unknown;
|
|
29330
|
+
};
|
|
29203
29331
|
};
|
|
29204
29332
|
rules?: {
|
|
29205
29333
|
operator: 'AND' | 'OR';
|
|
@@ -31234,6 +31362,14 @@ export type PatchStoredAgentsStoredAgentId_Response = {
|
|
|
31234
31362
|
/** Operation timeout in milliseconds */
|
|
31235
31363
|
operationTimeout?: number | undefined;
|
|
31236
31364
|
};
|
|
31365
|
+
} | {
|
|
31366
|
+
type: 'provider';
|
|
31367
|
+
/** Workspace provider identifier */
|
|
31368
|
+
provider: string;
|
|
31369
|
+
/** Provider-specific configuration */
|
|
31370
|
+
config: {
|
|
31371
|
+
[key: string]: unknown;
|
|
31372
|
+
};
|
|
31237
31373
|
}) | {
|
|
31238
31374
|
value: {
|
|
31239
31375
|
type: 'id';
|
|
@@ -31325,6 +31461,14 @@ export type PatchStoredAgentsStoredAgentId_Response = {
|
|
|
31325
31461
|
/** Operation timeout in milliseconds */
|
|
31326
31462
|
operationTimeout?: number | undefined;
|
|
31327
31463
|
};
|
|
31464
|
+
} | {
|
|
31465
|
+
type: 'provider';
|
|
31466
|
+
/** Workspace provider identifier */
|
|
31467
|
+
provider: string;
|
|
31468
|
+
/** Provider-specific configuration */
|
|
31469
|
+
config: {
|
|
31470
|
+
[key: string]: unknown;
|
|
31471
|
+
};
|
|
31328
31472
|
};
|
|
31329
31473
|
rules?: {
|
|
31330
31474
|
operator: 'AND' | 'OR';
|