@mastra/client-js 0.0.0-bundle-studio-cloud-20251222034739 → 0.0.0-bundle-version-20260121091645
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 +848 -4
- package/README.md +1 -3
- package/dist/_types/@internal_ai-sdk-v5/dist/index.d.ts +122 -7
- package/dist/client.d.ts +56 -11
- package/dist/client.d.ts.map +1 -1
- package/dist/docs/README.md +33 -0
- package/dist/docs/SKILL.md +34 -0
- package/dist/docs/SOURCE_MAP.json +6 -0
- package/dist/docs/ai-sdk/01-reference.md +358 -0
- package/dist/docs/client-js/01-reference.md +1180 -0
- package/dist/docs/server/01-mastra-client.md +256 -0
- package/dist/docs/server/02-jwt.md +99 -0
- package/dist/docs/server/03-clerk.md +143 -0
- package/dist/docs/server/04-supabase.md +128 -0
- package/dist/docs/server/05-firebase.md +286 -0
- package/dist/docs/server/06-workos.md +201 -0
- package/dist/docs/server/07-auth0.md +233 -0
- package/dist/index.cjs +416 -222
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +416 -222
- package/dist/index.js.map +1 -1
- package/dist/resources/agent-builder.d.ts +10 -26
- package/dist/resources/agent-builder.d.ts.map +1 -1
- package/dist/resources/agent.d.ts +42 -7
- package/dist/resources/agent.d.ts.map +1 -1
- package/dist/resources/index.d.ts +1 -0
- package/dist/resources/index.d.ts.map +1 -1
- package/dist/resources/memory-thread.d.ts +18 -3
- package/dist/resources/memory-thread.d.ts.map +1 -1
- package/dist/resources/observability.d.ts +58 -15
- package/dist/resources/observability.d.ts.map +1 -1
- package/dist/resources/processor.d.ts +20 -0
- package/dist/resources/processor.d.ts.map +1 -0
- package/dist/resources/run.d.ts +75 -21
- package/dist/resources/run.d.ts.map +1 -1
- package/dist/resources/workflow.d.ts +11 -18
- package/dist/resources/workflow.d.ts.map +1 -1
- package/dist/tools.d.ts.map +1 -1
- package/dist/types.d.ts +137 -34
- package/dist/types.d.ts.map +1 -1
- package/dist/utils/index.d.ts +26 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/package.json +12 -11
package/README.md
CHANGED
|
@@ -24,9 +24,7 @@ async function main() {
|
|
|
24
24
|
const agent = client.getAgent('your-agent-id');
|
|
25
25
|
|
|
26
26
|
// Generate a response
|
|
27
|
-
const response = await agent.generate({
|
|
28
|
-
messages: [{ role: 'user', content: "What's the weather like today?" }],
|
|
29
|
-
});
|
|
27
|
+
const response = await agent.generate([{ role: 'user', content: "What's the weather like today?" }]);
|
|
30
28
|
|
|
31
29
|
console.log(response);
|
|
32
30
|
}
|
|
@@ -279,7 +279,9 @@ declare namespace _ai_sdk_provider_utils {
|
|
|
279
279
|
withUserAgentSuffix,
|
|
280
280
|
withoutTrailingSlash,
|
|
281
281
|
zodSchema,
|
|
282
|
-
|
|
282
|
+
StandardJSONSchemaV1,
|
|
283
|
+
StandardSchemaV1,
|
|
284
|
+
StandardTypedV1
|
|
283
285
|
}
|
|
284
286
|
}
|
|
285
287
|
|
|
@@ -5913,14 +5915,131 @@ declare type SpeechModelV2ProviderOptions = Record<string, Record<string, JSONVa
|
|
|
5913
5915
|
*/
|
|
5914
5916
|
export declare type SpeechWarning = SpeechModelV2CallWarning;
|
|
5915
5917
|
|
|
5918
|
+
/** The Standard JSON Schema interface. */
|
|
5919
|
+
declare interface StandardJSONSchemaV1<Input = unknown, Output = Input> {
|
|
5920
|
+
/** The Standard JSON Schema properties. */
|
|
5921
|
+
readonly "~standard": StandardJSONSchemaV1.Props<Input, Output>;
|
|
5922
|
+
}
|
|
5923
|
+
|
|
5924
|
+
declare namespace StandardJSONSchemaV1 {
|
|
5925
|
+
/** The Standard JSON Schema properties interface. */
|
|
5926
|
+
interface Props<Input = unknown, Output = Input> extends StandardTypedV1.Props<Input, Output> {
|
|
5927
|
+
/** Methods for generating the input/output JSON Schema. */
|
|
5928
|
+
readonly jsonSchema: StandardJSONSchemaV1.Converter;
|
|
5929
|
+
}
|
|
5930
|
+
/** The Standard JSON Schema converter interface. */
|
|
5931
|
+
interface Converter {
|
|
5932
|
+
/** Converts the input type to JSON Schema. May throw if conversion is not supported. */
|
|
5933
|
+
readonly input: (options: StandardJSONSchemaV1.Options) => Record<string, unknown>;
|
|
5934
|
+
/** Converts the output type to JSON Schema. May throw if conversion is not supported. */
|
|
5935
|
+
readonly output: (options: StandardJSONSchemaV1.Options) => Record<string, unknown>;
|
|
5936
|
+
}
|
|
5937
|
+
/**
|
|
5938
|
+
* The target version of the generated JSON Schema.
|
|
5939
|
+
*
|
|
5940
|
+
* It is *strongly recommended* that implementers support `"draft-2020-12"` and `"draft-07"`, as they are both in wide use. All other targets can be implemented on a best-effort basis. Libraries should throw if they don't support a specified target.
|
|
5941
|
+
*
|
|
5942
|
+
* The `"openapi-3.0"` target is intended as a standardized specifier for OpenAPI 3.0 which is a superset of JSON Schema `"draft-04"`.
|
|
5943
|
+
*/
|
|
5944
|
+
type Target = "draft-2020-12" | "draft-07" | "openapi-3.0" | ({} & string);
|
|
5945
|
+
/** The options for the input/output methods. */
|
|
5946
|
+
interface Options {
|
|
5947
|
+
/** Specifies the target version of the generated JSON Schema. Support for all versions is on a best-effort basis. If a given version is not supported, the library should throw. */
|
|
5948
|
+
readonly target: Target;
|
|
5949
|
+
/** Explicit support for additional vendor-specific parameters, if needed. */
|
|
5950
|
+
readonly libraryOptions?: Record<string, unknown> | undefined;
|
|
5951
|
+
}
|
|
5952
|
+
/** The Standard types interface. */
|
|
5953
|
+
interface Types<Input = unknown, Output = Input> extends StandardTypedV1.Types<Input, Output> {
|
|
5954
|
+
}
|
|
5955
|
+
/** Infers the input type of a Standard. */
|
|
5956
|
+
type InferInput<Schema extends StandardTypedV1> = StandardTypedV1.InferInput<Schema>;
|
|
5957
|
+
/** Infers the output type of a Standard. */
|
|
5958
|
+
type InferOutput<Schema extends StandardTypedV1> = StandardTypedV1.InferOutput<Schema>;
|
|
5959
|
+
}
|
|
5960
|
+
|
|
5916
5961
|
/** The Standard Schema interface. */
|
|
5917
5962
|
declare interface StandardSchemaV1<Input = unknown, Output = Input> {
|
|
5918
5963
|
/** The Standard Schema properties. */
|
|
5919
5964
|
readonly "~standard": StandardSchemaV1.Props<Input, Output>;
|
|
5920
|
-
}
|
|
5921
|
-
|
|
5965
|
+
}
|
|
5966
|
+
|
|
5967
|
+
declare namespace StandardSchemaV1 {
|
|
5968
|
+
/** The Standard Schema properties interface. */
|
|
5969
|
+
interface Props<Input = unknown, Output = Input> extends StandardTypedV1.Props<Input, Output> {
|
|
5970
|
+
/** Validates unknown input values. */
|
|
5971
|
+
readonly validate: (value: unknown, options?: StandardSchemaV1.Options | undefined) => Result<Output> | Promise<Result<Output>>;
|
|
5972
|
+
}
|
|
5973
|
+
/** The result interface of the validate function. */
|
|
5974
|
+
type Result<Output> = SuccessResult<Output> | FailureResult;
|
|
5975
|
+
/** The result interface if validation succeeds. */
|
|
5976
|
+
interface SuccessResult<Output> {
|
|
5977
|
+
/** The typed output value. */
|
|
5978
|
+
readonly value: Output;
|
|
5979
|
+
/** A falsy value for `issues` indicates success. */
|
|
5980
|
+
readonly issues?: undefined;
|
|
5981
|
+
}
|
|
5982
|
+
interface Options {
|
|
5983
|
+
/** Explicit support for additional vendor-specific parameters, if needed. */
|
|
5984
|
+
readonly libraryOptions?: Record<string, unknown> | undefined;
|
|
5985
|
+
}
|
|
5986
|
+
/** The result interface if validation fails. */
|
|
5987
|
+
interface FailureResult {
|
|
5988
|
+
/** The issues of failed validation. */
|
|
5989
|
+
readonly issues: ReadonlyArray<Issue>;
|
|
5990
|
+
}
|
|
5991
|
+
/** The issue interface of the failure output. */
|
|
5992
|
+
interface Issue {
|
|
5993
|
+
/** The error message of the issue. */
|
|
5994
|
+
readonly message: string;
|
|
5995
|
+
/** The path of the issue, if any. */
|
|
5996
|
+
readonly path?: ReadonlyArray<PropertyKey | PathSegment> | undefined;
|
|
5997
|
+
}
|
|
5998
|
+
/** The path segment interface of the issue. */
|
|
5999
|
+
interface PathSegment {
|
|
6000
|
+
/** The key representing a path segment. */
|
|
6001
|
+
readonly key: PropertyKey;
|
|
6002
|
+
}
|
|
6003
|
+
/** The Standard types interface. */
|
|
6004
|
+
interface Types<Input = unknown, Output = Input> extends StandardTypedV1.Types<Input, Output> {
|
|
6005
|
+
}
|
|
6006
|
+
/** Infers the input type of a Standard. */
|
|
6007
|
+
type InferInput<Schema extends StandardTypedV1> = StandardTypedV1.InferInput<Schema>;
|
|
6008
|
+
/** Infers the output type of a Standard. */
|
|
6009
|
+
type InferOutput<Schema extends StandardTypedV1> = StandardTypedV1.InferOutput<Schema>;
|
|
6010
|
+
}
|
|
6011
|
+
|
|
5922
6012
|
declare function standardSchemaValidator<OBJECT>(standardSchema: StandardSchemaV1<unknown, OBJECT>): Validator<OBJECT>;
|
|
5923
6013
|
|
|
6014
|
+
/** The Standard Typed interface. This is a base type extended by other specs. */
|
|
6015
|
+
declare interface StandardTypedV1<Input = unknown, Output = Input> {
|
|
6016
|
+
/** The Standard properties. */
|
|
6017
|
+
readonly "~standard": StandardTypedV1.Props<Input, Output>;
|
|
6018
|
+
}
|
|
6019
|
+
|
|
6020
|
+
declare namespace StandardTypedV1 {
|
|
6021
|
+
/** The Standard Typed properties interface. */
|
|
6022
|
+
interface Props<Input = unknown, Output = Input> {
|
|
6023
|
+
/** The version number of the standard. */
|
|
6024
|
+
readonly version: 1;
|
|
6025
|
+
/** The vendor name of the schema library. */
|
|
6026
|
+
readonly vendor: string;
|
|
6027
|
+
/** Inferred types associated with the schema. */
|
|
6028
|
+
readonly types?: Types<Input, Output> | undefined;
|
|
6029
|
+
}
|
|
6030
|
+
/** The Standard Typed types interface. */
|
|
6031
|
+
interface Types<Input = unknown, Output = Input> {
|
|
6032
|
+
/** The input type of the schema. */
|
|
6033
|
+
readonly input: Input;
|
|
6034
|
+
/** The output type of the schema. */
|
|
6035
|
+
readonly output: Output;
|
|
6036
|
+
}
|
|
6037
|
+
/** Infers the input type of a Standard Typed. */
|
|
6038
|
+
type InferInput<Schema extends StandardTypedV1> = NonNullable<Schema["~standard"]["types"]>["input"];
|
|
6039
|
+
/** Infers the output type of a Standard Typed. */
|
|
6040
|
+
type InferOutput<Schema extends StandardTypedV1> = NonNullable<Schema["~standard"]["types"]>["output"];
|
|
6041
|
+
}
|
|
6042
|
+
|
|
5924
6043
|
export declare type StaticToolCall<TOOLS extends ToolSet> = ValueOf<{
|
|
5925
6044
|
[NAME in keyof TOOLS]: {
|
|
5926
6045
|
type: 'tool-call';
|
|
@@ -8389,8 +8508,4 @@ export namespace Output {
|
|
|
8389
8508
|
export { output_Output as Output, output_object as object, output_text as text };
|
|
8390
8509
|
}
|
|
8391
8510
|
|
|
8392
|
-
export namespace StandardSchemaV1 {
|
|
8393
|
-
export { };
|
|
8394
|
-
}
|
|
8395
|
-
|
|
8396
8511
|
export { schemaSymbol, symbol$1, symbol$1_2, symbol$2, symbol$2_2, symbol$3, symbol$3_2, symbol$4, symbol$4_2, symbol$5, symbol$5_2, symbol$6, symbol$6_2, symbol$7, symbol$7_2, symbol$8, symbol$8_2, symbol$9, symbol$9_2, symbol$a, symbol$a_2, symbol$b, symbol$b_2, symbol$c, symbol$c_2, symbol$d, symbol$d_2, symbol$e, symbol, symbol_2, validatorSymbol };
|
package/dist/client.d.ts
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
|
+
import type { ListScoresResponse } from '@mastra/core/evals';
|
|
1
2
|
import type { ServerDetailInfo } from '@mastra/core/mcp';
|
|
2
3
|
import type { RequestContext } from '@mastra/core/request-context';
|
|
3
|
-
import type { TraceRecord,
|
|
4
|
+
import type { TraceRecord, ListTracesArgs, ListTracesResponse } from '@mastra/core/storage';
|
|
4
5
|
import type { WorkflowInfo } from '@mastra/core/workflows';
|
|
5
|
-
import { Agent, MemoryThread, Tool, Workflow, Vector, BaseResource, A2A, MCPTool, AgentBuilder, StoredAgent } from './resources/index.js';
|
|
6
|
-
import type {
|
|
6
|
+
import { Agent, MemoryThread, Tool, Processor, Workflow, Vector, BaseResource, A2A, MCPTool, AgentBuilder, StoredAgent } from './resources/index.js';
|
|
7
|
+
import type { ListScoresBySpanParams, LegacyTracesPaginatedArg, LegacyGetTracesResponse } from './resources/observability.js';
|
|
8
|
+
import type { ClientOptions, CreateMemoryThreadParams, CreateMemoryThreadResponse, GetAgentResponse, GetLogParams, GetLogsParams, GetLogsResponse, GetToolResponse, GetProcessorResponse, GetWorkflowResponse, SaveMessageToMemoryParams, SaveMessageToMemoryResponse, McpServerListResponse, McpServerToolListResponse, GetScorerResponse, ListScoresByScorerIdParams, ListScoresByRunIdParams, ListScoresByEntityIdParams, SaveScoreParams, SaveScoreResponse, GetMemoryConfigParams, GetMemoryConfigResponse, ListMemoryThreadMessagesResponse, MemorySearchResponse, ListAgentsModelProvidersResponse, ListMemoryThreadsParams, ListMemoryThreadsResponse, ListStoredAgentsParams, ListStoredAgentsResponse, CreateStoredAgentParams, StoredAgentResponse, GetSystemPackagesResponse, ListScoresResponse as ListScoresResponseOld } from './types.js';
|
|
7
9
|
export declare class MastraClient extends BaseResource {
|
|
8
10
|
private observability;
|
|
9
11
|
constructor(options: ClientOptions);
|
|
@@ -21,11 +23,11 @@ export declare class MastraClient extends BaseResource {
|
|
|
21
23
|
*/
|
|
22
24
|
getAgent(agentId: string): Agent;
|
|
23
25
|
/**
|
|
24
|
-
* Lists memory threads
|
|
25
|
-
* @param params - Parameters containing
|
|
26
|
+
* Lists memory threads with optional filtering by resourceId and/or metadata
|
|
27
|
+
* @param params - Parameters containing optional filters, pagination options, and request context
|
|
26
28
|
* @returns Promise containing paginated array of memory threads with metadata
|
|
27
29
|
*/
|
|
28
|
-
listMemoryThreads(params
|
|
30
|
+
listMemoryThreads(params?: ListMemoryThreadsParams): Promise<ListMemoryThreadsResponse>;
|
|
29
31
|
/**
|
|
30
32
|
* Retrieves memory config for a resource
|
|
31
33
|
* @param params - Parameters containing the resource ID and optional request context
|
|
@@ -41,12 +43,22 @@ export declare class MastraClient extends BaseResource {
|
|
|
41
43
|
/**
|
|
42
44
|
* Gets a memory thread instance by ID
|
|
43
45
|
* @param threadId - ID of the memory thread to retrieve
|
|
46
|
+
* @param agentId - Optional agent ID. When not provided, uses storage directly
|
|
44
47
|
* @returns MemoryThread instance
|
|
45
48
|
*/
|
|
46
49
|
getMemoryThread({ threadId, agentId }: {
|
|
47
50
|
threadId: string;
|
|
48
|
-
agentId
|
|
51
|
+
agentId?: string;
|
|
49
52
|
}): MemoryThread;
|
|
53
|
+
/**
|
|
54
|
+
* Lists messages for a thread.
|
|
55
|
+
* @param threadId - ID of the thread
|
|
56
|
+
* @param opts - Optional parameters including agentId, networkId, and requestContext
|
|
57
|
+
* - When agentId is provided, uses the agent's memory
|
|
58
|
+
* - When networkId is provided, uses the network endpoint
|
|
59
|
+
* - When neither is provided, uses storage directly
|
|
60
|
+
* @returns Promise containing the thread messages
|
|
61
|
+
*/
|
|
50
62
|
listThreadMessages(threadId: string, opts?: {
|
|
51
63
|
agentId?: string;
|
|
52
64
|
networkId?: string;
|
|
@@ -87,6 +99,18 @@ export declare class MastraClient extends BaseResource {
|
|
|
87
99
|
* @returns Tool instance
|
|
88
100
|
*/
|
|
89
101
|
getTool(toolId: string): Tool;
|
|
102
|
+
/**
|
|
103
|
+
* Retrieves all available processors
|
|
104
|
+
* @param requestContext - Optional request context to pass as query parameter
|
|
105
|
+
* @returns Promise containing map of processor IDs to processor details
|
|
106
|
+
*/
|
|
107
|
+
listProcessors(requestContext?: RequestContext | Record<string, any>): Promise<Record<string, GetProcessorResponse>>;
|
|
108
|
+
/**
|
|
109
|
+
* Gets a processor instance by ID
|
|
110
|
+
* @param processorId - ID of the processor to retrieve
|
|
111
|
+
* @returns Processor instance
|
|
112
|
+
*/
|
|
113
|
+
getProcessor(processorId: string): Processor;
|
|
90
114
|
/**
|
|
91
115
|
* Retrieves all available workflows
|
|
92
116
|
* @param requestContext - Optional request context to pass as query parameter
|
|
@@ -222,19 +246,19 @@ export declare class MastraClient extends BaseResource {
|
|
|
222
246
|
* @returns Promise containing the scorer
|
|
223
247
|
*/
|
|
224
248
|
getScorer(scorerId: string): Promise<GetScorerResponse>;
|
|
225
|
-
listScoresByScorerId(params: ListScoresByScorerIdParams): Promise<
|
|
249
|
+
listScoresByScorerId(params: ListScoresByScorerIdParams): Promise<ListScoresResponseOld>;
|
|
226
250
|
/**
|
|
227
251
|
* Retrieves scores by run ID
|
|
228
252
|
* @param params - Parameters containing run ID and pagination options
|
|
229
253
|
* @returns Promise containing scores and pagination info
|
|
230
254
|
*/
|
|
231
|
-
listScoresByRunId(params: ListScoresByRunIdParams): Promise<
|
|
255
|
+
listScoresByRunId(params: ListScoresByRunIdParams): Promise<ListScoresResponseOld>;
|
|
232
256
|
/**
|
|
233
257
|
* Retrieves scores by entity ID and type
|
|
234
258
|
* @param params - Parameters containing entity ID, type, and pagination options
|
|
235
259
|
* @returns Promise containing scores and pagination info
|
|
236
260
|
*/
|
|
237
|
-
listScoresByEntityId(params: ListScoresByEntityIdParams): Promise<
|
|
261
|
+
listScoresByEntityId(params: ListScoresByEntityIdParams): Promise<ListScoresResponseOld>;
|
|
238
262
|
/**
|
|
239
263
|
* Saves a score
|
|
240
264
|
* @param params - Parameters containing the score data to save
|
|
@@ -242,7 +266,23 @@ export declare class MastraClient extends BaseResource {
|
|
|
242
266
|
*/
|
|
243
267
|
saveScore(params: SaveScoreParams): Promise<SaveScoreResponse>;
|
|
244
268
|
getTrace(traceId: string): Promise<TraceRecord>;
|
|
245
|
-
|
|
269
|
+
/**
|
|
270
|
+
* Retrieves paginated list of traces with optional filtering.
|
|
271
|
+
* This is the legacy API preserved for backward compatibility.
|
|
272
|
+
*
|
|
273
|
+
* @param params - Parameters for pagination and filtering (legacy format)
|
|
274
|
+
* @returns Promise containing paginated traces and pagination info
|
|
275
|
+
* @deprecated Use {@link listTraces} instead for new features like ordering and more filters.
|
|
276
|
+
*/
|
|
277
|
+
getTraces(params: LegacyTracesPaginatedArg): Promise<LegacyGetTracesResponse>;
|
|
278
|
+
/**
|
|
279
|
+
* Retrieves paginated list of traces with optional filtering and sorting.
|
|
280
|
+
* This is the new API with improved filtering options.
|
|
281
|
+
*
|
|
282
|
+
* @param params - Parameters for pagination, filtering, and ordering
|
|
283
|
+
* @returns Promise containing paginated traces and pagination info
|
|
284
|
+
*/
|
|
285
|
+
listTraces(params?: ListTracesArgs): Promise<ListTracesResponse>;
|
|
246
286
|
listScoresBySpan(params: ListScoresBySpanParams): Promise<ListScoresResponse>;
|
|
247
287
|
score(params: {
|
|
248
288
|
scorerName: string;
|
|
@@ -272,5 +312,10 @@ export declare class MastraClient extends BaseResource {
|
|
|
272
312
|
* @returns StoredAgent instance
|
|
273
313
|
*/
|
|
274
314
|
getStoredAgent(storedAgentId: string): StoredAgent;
|
|
315
|
+
/**
|
|
316
|
+
* Retrieves installed Mastra packages and their versions
|
|
317
|
+
* @returns Promise containing the list of installed Mastra packages
|
|
318
|
+
*/
|
|
319
|
+
getSystemPackages(): Promise<GetSystemPackagesResponse>;
|
|
275
320
|
}
|
|
276
321
|
//# sourceMappingURL=client.d.ts.map
|
package/dist/client.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACzD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,KAAK,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAC7D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACzD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,KAAK,EAAE,WAAW,EAAE,c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,EAAE,KAAK,CAAC;YAAE,OAAO,EAAE,MAAM,CAAC;YAAC,MAAM,CAAC,EAAE,MAAM,CAAA;SAAE,CAAC,CAAC;KACtD,GAAG,OAAO,CAAC;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;IAQhD;;;;OAIG;IACI,gBAAgB,CAAC,MAAM,CAAC,EAAE,sBAAsB,GAAG,OAAO,CAAC,wBAAwB,CAAC;IAsB3F;;;;OAIG;IACI,iBAAiB,CAAC,MAAM,EAAE,uBAAuB,GAAG,OAAO,CAAC,mBAAmB,CAAC;IAOvF;;;;OAIG;IACI,cAAc,CAAC,aAAa,EAAE,MAAM,GAAG,WAAW;IAQzD;;;OAGG;IACI,iBAAiB,IAAI,OAAO,CAAC,yBAAyB,CAAC;CAG/D"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# @mastra/client-js Documentation
|
|
2
|
+
|
|
3
|
+
> Embedded documentation for coding agents
|
|
4
|
+
|
|
5
|
+
## Quick Start
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
# Read the skill overview
|
|
9
|
+
cat docs/SKILL.md
|
|
10
|
+
|
|
11
|
+
# Get the source map
|
|
12
|
+
cat docs/SOURCE_MAP.json
|
|
13
|
+
|
|
14
|
+
# Read topic documentation
|
|
15
|
+
cat docs/<topic>/01-overview.md
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## Structure
|
|
19
|
+
|
|
20
|
+
```
|
|
21
|
+
docs/
|
|
22
|
+
├── SKILL.md # Entry point
|
|
23
|
+
├── README.md # This file
|
|
24
|
+
├── SOURCE_MAP.json # Export index
|
|
25
|
+
├── ai-sdk/ (3 files)
|
|
26
|
+
├── client-js/ (10 files)
|
|
27
|
+
├── server/ (7 files)
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
## Version
|
|
31
|
+
|
|
32
|
+
Package: @mastra/client-js
|
|
33
|
+
Version: 1.0.1
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: mastra-client-js-docs
|
|
3
|
+
description: Documentation for @mastra/client-js. Includes links to type definitions and readable implementation code in dist/.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# @mastra/client-js Documentation
|
|
7
|
+
|
|
8
|
+
> **Version**: 1.0.1
|
|
9
|
+
> **Package**: @mastra/client-js
|
|
10
|
+
|
|
11
|
+
## Quick Navigation
|
|
12
|
+
|
|
13
|
+
Use SOURCE_MAP.json to find any export:
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
cat docs/SOURCE_MAP.json
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
Each export maps to:
|
|
20
|
+
- **types**: `.d.ts` file with JSDoc and API signatures
|
|
21
|
+
- **implementation**: `.js` chunk file with readable source
|
|
22
|
+
- **docs**: Conceptual documentation in `docs/`
|
|
23
|
+
|
|
24
|
+
## Top Exports
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
See SOURCE_MAP.json for the complete list.
|
|
29
|
+
|
|
30
|
+
## Available Topics
|
|
31
|
+
|
|
32
|
+
- [Ai sdk](ai-sdk/) - 3 file(s)
|
|
33
|
+
- [Client js](client-js/) - 10 file(s)
|
|
34
|
+
- [Server](server/) - 7 file(s)
|