@mastra/client-js 0.0.0-bundle-recursion-20251030002519 → 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 +2119 -3
- package/README.md +11 -13
- package/dist/_types/@ai-sdk_ui-utils/dist/index.d.ts +820 -0
- package/dist/_types/@internal_ai-sdk-v5/dist/index.d.ts +8511 -0
- package/dist/client.d.ts +111 -77
- 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 +2108 -993
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2106 -987
- package/dist/index.js.map +1 -1
- package/dist/resources/a2a.d.ts.map +1 -1
- package/dist/resources/agent-builder.d.ts +20 -75
- package/dist/resources/agent-builder.d.ts.map +1 -1
- package/dist/resources/agent.d.ts +63 -51
- package/dist/resources/agent.d.ts.map +1 -1
- package/dist/resources/base.d.ts.map +1 -1
- package/dist/resources/index.d.ts +2 -0
- package/dist/resources/index.d.ts.map +1 -1
- package/dist/resources/mcp-tool.d.ts +5 -5
- package/dist/resources/memory-thread.d.ts +31 -24
- package/dist/resources/memory-thread.d.ts.map +1 -1
- package/dist/resources/observability.d.ts +62 -19
- 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 +210 -0
- package/dist/resources/run.d.ts.map +1 -0
- package/dist/resources/stored-agent.d.ts +26 -0
- package/dist/resources/stored-agent.d.ts.map +1 -0
- package/dist/resources/tool.d.ts +4 -4
- package/dist/resources/vector.d.ts +5 -5
- package/dist/resources/workflow.d.ts +27 -234
- package/dist/resources/workflow.d.ts.map +1 -1
- package/dist/tools.d.ts +2 -2
- package/dist/tools.d.ts.map +1 -1
- package/dist/types.d.ts +299 -99
- package/dist/types.d.ts.map +1 -1
- package/dist/utils/index.d.ts +32 -6
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/process-mastra-stream.d.ts +1 -1
- package/dist/utils/process-mastra-stream.d.ts.map +1 -1
- package/dist/utils/zod-to-json-schema.d.ts +9 -1
- package/dist/utils/zod-to-json-schema.d.ts.map +1 -1
- package/package.json +20 -18
- package/dist/resources/network-memory-thread.d.ts +0 -47
- package/dist/resources/network-memory-thread.d.ts.map +0 -1
package/dist/client.d.ts
CHANGED
|
@@ -1,19 +1,21 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ListScoresResponse } from '@mastra/core/evals';
|
|
2
2
|
import type { ServerDetailInfo } from '@mastra/core/mcp';
|
|
3
|
-
import type {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
3
|
+
import type { RequestContext } from '@mastra/core/request-context';
|
|
4
|
+
import type { TraceRecord, ListTracesArgs, ListTracesResponse } from '@mastra/core/storage';
|
|
5
|
+
import type { WorkflowInfo } from '@mastra/core/workflows';
|
|
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);
|
|
10
12
|
/**
|
|
11
13
|
* Retrieves all available agents
|
|
12
|
-
* @param
|
|
14
|
+
* @param requestContext - Optional request context to pass as query parameter
|
|
13
15
|
* @returns Promise containing map of agent IDs to agent details
|
|
14
16
|
*/
|
|
15
|
-
|
|
16
|
-
|
|
17
|
+
listAgents(requestContext?: RequestContext | Record<string, any>, partial?: boolean): Promise<Record<string, GetAgentResponse>>;
|
|
18
|
+
listAgentsModelProviders(): Promise<ListAgentsModelProvidersResponse>;
|
|
17
19
|
/**
|
|
18
20
|
* Gets an agent instance by ID
|
|
19
21
|
* @param agentId - ID of the agent to retrieve
|
|
@@ -21,106 +23,100 @@ export declare class MastraClient extends BaseResource {
|
|
|
21
23
|
*/
|
|
22
24
|
getAgent(agentId: string): Agent;
|
|
23
25
|
/**
|
|
24
|
-
*
|
|
25
|
-
* @param params - Parameters containing
|
|
26
|
-
* @returns Promise containing array of memory threads
|
|
26
|
+
* Lists memory threads with optional filtering by resourceId and/or metadata
|
|
27
|
+
* @param params - Parameters containing optional filters, pagination options, and request context
|
|
28
|
+
* @returns Promise containing paginated array of memory threads with metadata
|
|
27
29
|
*/
|
|
28
|
-
|
|
30
|
+
listMemoryThreads(params?: ListMemoryThreadsParams): Promise<ListMemoryThreadsResponse>;
|
|
29
31
|
/**
|
|
30
32
|
* Retrieves memory config for a resource
|
|
31
|
-
* @param params - Parameters containing the resource ID and optional
|
|
33
|
+
* @param params - Parameters containing the resource ID and optional request context
|
|
32
34
|
* @returns Promise containing memory configuration
|
|
33
35
|
*/
|
|
34
36
|
getMemoryConfig(params: GetMemoryConfigParams): Promise<GetMemoryConfigResponse>;
|
|
35
37
|
/**
|
|
36
38
|
* Creates a new memory thread
|
|
37
|
-
* @param params - Parameters for creating the memory thread including optional
|
|
39
|
+
* @param params - Parameters for creating the memory thread including optional request context
|
|
38
40
|
* @returns Promise containing the created memory thread
|
|
39
41
|
*/
|
|
40
42
|
createMemoryThread(params: CreateMemoryThreadParams): Promise<CreateMemoryThreadResponse>;
|
|
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
|
-
getMemoryThread(threadId
|
|
47
|
-
|
|
49
|
+
getMemoryThread({ threadId, agentId }: {
|
|
50
|
+
threadId: string;
|
|
51
|
+
agentId?: string;
|
|
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
|
+
*/
|
|
62
|
+
listThreadMessages(threadId: string, opts?: {
|
|
48
63
|
agentId?: string;
|
|
49
64
|
networkId?: string;
|
|
50
|
-
|
|
51
|
-
}): Promise<
|
|
65
|
+
requestContext?: RequestContext | Record<string, any>;
|
|
66
|
+
}): Promise<ListMemoryThreadMessagesResponse>;
|
|
52
67
|
deleteThread(threadId: string, opts?: {
|
|
53
68
|
agentId?: string;
|
|
54
69
|
networkId?: string;
|
|
55
|
-
|
|
70
|
+
requestContext?: RequestContext | Record<string, any>;
|
|
56
71
|
}): Promise<{
|
|
57
72
|
success: boolean;
|
|
58
73
|
message: string;
|
|
59
74
|
}>;
|
|
60
75
|
/**
|
|
61
76
|
* Saves messages to memory
|
|
62
|
-
* @param params - Parameters containing messages to save and optional
|
|
77
|
+
* @param params - Parameters containing messages to save and optional request context
|
|
63
78
|
* @returns Promise containing the saved messages
|
|
64
79
|
*/
|
|
65
80
|
saveMessageToMemory(params: SaveMessageToMemoryParams): Promise<SaveMessageToMemoryResponse>;
|
|
66
81
|
/**
|
|
67
82
|
* Gets the status of the memory system
|
|
68
83
|
* @param agentId - The agent ID
|
|
69
|
-
* @param
|
|
84
|
+
* @param requestContext - Optional request context to pass as query parameter
|
|
70
85
|
* @returns Promise containing memory system status
|
|
71
86
|
*/
|
|
72
|
-
getMemoryStatus(agentId: string,
|
|
73
|
-
result: boolean;
|
|
74
|
-
}>;
|
|
75
|
-
/**
|
|
76
|
-
* Retrieves memory threads for a resource
|
|
77
|
-
* @param params - Parameters containing the resource ID
|
|
78
|
-
* @returns Promise containing array of memory threads
|
|
79
|
-
*/
|
|
80
|
-
getNetworkMemoryThreads(params: GetNetworkMemoryThreadParams): Promise<GetMemoryThreadResponse>;
|
|
81
|
-
/**
|
|
82
|
-
* Creates a new memory thread
|
|
83
|
-
* @param params - Parameters for creating the memory thread
|
|
84
|
-
* @returns Promise containing the created memory thread
|
|
85
|
-
*/
|
|
86
|
-
createNetworkMemoryThread(params: CreateNetworkMemoryThreadParams): Promise<CreateMemoryThreadResponse>;
|
|
87
|
-
/**
|
|
88
|
-
* Gets a memory thread instance by ID
|
|
89
|
-
* @param threadId - ID of the memory thread to retrieve
|
|
90
|
-
* @returns MemoryThread instance
|
|
91
|
-
*/
|
|
92
|
-
getNetworkMemoryThread(threadId: string, networkId: string): NetworkMemoryThread;
|
|
93
|
-
/**
|
|
94
|
-
* Saves messages to memory
|
|
95
|
-
* @param params - Parameters containing messages to save
|
|
96
|
-
* @returns Promise containing the saved messages
|
|
97
|
-
*/
|
|
98
|
-
saveNetworkMessageToMemory(params: SaveNetworkMessageToMemoryParams): Promise<SaveMessageToMemoryResponse>;
|
|
99
|
-
/**
|
|
100
|
-
* Gets the status of the memory system
|
|
101
|
-
* @returns Promise containing memory system status
|
|
102
|
-
*/
|
|
103
|
-
getNetworkMemoryStatus(networkId: string): Promise<{
|
|
87
|
+
getMemoryStatus(agentId: string, requestContext?: RequestContext | Record<string, any>): Promise<{
|
|
104
88
|
result: boolean;
|
|
105
89
|
}>;
|
|
106
90
|
/**
|
|
107
91
|
* Retrieves all available tools
|
|
108
|
-
* @param
|
|
92
|
+
* @param requestContext - Optional request context to pass as query parameter
|
|
109
93
|
* @returns Promise containing map of tool IDs to tool details
|
|
110
94
|
*/
|
|
111
|
-
|
|
95
|
+
listTools(requestContext?: RequestContext | Record<string, any>): Promise<Record<string, GetToolResponse>>;
|
|
112
96
|
/**
|
|
113
97
|
* Gets a tool instance by ID
|
|
114
98
|
* @param toolId - ID of the tool to retrieve
|
|
115
99
|
* @returns Tool instance
|
|
116
100
|
*/
|
|
117
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;
|
|
118
114
|
/**
|
|
119
115
|
* Retrieves all available workflows
|
|
120
|
-
* @param
|
|
116
|
+
* @param requestContext - Optional request context to pass as query parameter
|
|
121
117
|
* @returns Promise containing map of workflow IDs to workflow details
|
|
122
118
|
*/
|
|
123
|
-
|
|
119
|
+
listWorkflows(requestContext?: RequestContext | Record<string, any>, partial?: boolean): Promise<Record<string, GetWorkflowResponse>>;
|
|
124
120
|
/**
|
|
125
121
|
* Gets a workflow instance by ID
|
|
126
122
|
* @param workflowId - ID of the workflow to retrieve
|
|
@@ -148,7 +144,7 @@ export declare class MastraClient extends BaseResource {
|
|
|
148
144
|
* @param params - Parameters for filtering logs
|
|
149
145
|
* @returns Promise containing array of log messages
|
|
150
146
|
*/
|
|
151
|
-
|
|
147
|
+
listLogs(params: GetLogsParams): Promise<GetLogsResponse>;
|
|
152
148
|
/**
|
|
153
149
|
* Gets logs for a specific run
|
|
154
150
|
* @param params - Parameters containing run ID to retrieve
|
|
@@ -159,17 +155,21 @@ export declare class MastraClient extends BaseResource {
|
|
|
159
155
|
* List of all log transports
|
|
160
156
|
* @returns Promise containing list of log transports
|
|
161
157
|
*/
|
|
162
|
-
|
|
158
|
+
listLogTransports(): Promise<{
|
|
163
159
|
transports: string[];
|
|
164
160
|
}>;
|
|
165
161
|
/**
|
|
166
162
|
* Retrieves a list of available MCP servers.
|
|
167
|
-
* @param params - Optional parameters for pagination (
|
|
163
|
+
* @param params - Optional parameters for pagination (page, perPage, or deprecated offset, limit).
|
|
168
164
|
* @returns Promise containing the list of MCP servers and pagination info.
|
|
169
165
|
*/
|
|
170
166
|
getMcpServers(params?: {
|
|
171
|
-
|
|
167
|
+
page?: number;
|
|
168
|
+
perPage?: number;
|
|
169
|
+
/** @deprecated Use page instead */
|
|
172
170
|
offset?: number;
|
|
171
|
+
/** @deprecated Use perPage instead */
|
|
172
|
+
limit?: number;
|
|
173
173
|
}): Promise<McpServerListResponse>;
|
|
174
174
|
/**
|
|
175
175
|
* Retrieves detailed information for a specific MCP server.
|
|
@@ -207,19 +207,19 @@ export declare class MastraClient extends BaseResource {
|
|
|
207
207
|
* @param resourceId - Optional ID of the resource.
|
|
208
208
|
* @returns Working memory for the specified thread or resource.
|
|
209
209
|
*/
|
|
210
|
-
getWorkingMemory({ agentId, threadId, resourceId,
|
|
210
|
+
getWorkingMemory({ agentId, threadId, resourceId, requestContext, }: {
|
|
211
211
|
agentId: string;
|
|
212
212
|
threadId: string;
|
|
213
213
|
resourceId?: string;
|
|
214
|
-
|
|
214
|
+
requestContext?: RequestContext | Record<string, any>;
|
|
215
215
|
}): Promise<unknown>;
|
|
216
|
-
searchMemory({ agentId, resourceId, threadId, searchQuery, memoryConfig,
|
|
216
|
+
searchMemory({ agentId, resourceId, threadId, searchQuery, memoryConfig, requestContext, }: {
|
|
217
217
|
agentId: string;
|
|
218
218
|
resourceId: string;
|
|
219
219
|
threadId?: string;
|
|
220
220
|
searchQuery: string;
|
|
221
221
|
memoryConfig?: any;
|
|
222
|
-
|
|
222
|
+
requestContext?: RequestContext | Record<string, any>;
|
|
223
223
|
}): Promise<MemorySearchResponse>;
|
|
224
224
|
/**
|
|
225
225
|
* Updates the working memory for a specific thread (optionally resource-scoped).
|
|
@@ -228,51 +228,62 @@ export declare class MastraClient extends BaseResource {
|
|
|
228
228
|
* @param workingMemory - The new working memory content.
|
|
229
229
|
* @param resourceId - Optional ID of the resource.
|
|
230
230
|
*/
|
|
231
|
-
updateWorkingMemory({ agentId, threadId, workingMemory, resourceId,
|
|
231
|
+
updateWorkingMemory({ agentId, threadId, workingMemory, resourceId, requestContext, }: {
|
|
232
232
|
agentId: string;
|
|
233
233
|
threadId: string;
|
|
234
234
|
workingMemory: string;
|
|
235
235
|
resourceId?: string;
|
|
236
|
-
|
|
236
|
+
requestContext?: RequestContext | Record<string, any>;
|
|
237
237
|
}): Promise<unknown>;
|
|
238
238
|
/**
|
|
239
239
|
* Retrieves all available scorers
|
|
240
240
|
* @returns Promise containing list of available scorers
|
|
241
241
|
*/
|
|
242
|
-
|
|
242
|
+
listScorers(): Promise<Record<string, GetScorerResponse>>;
|
|
243
243
|
/**
|
|
244
244
|
* Retrieves a scorer by ID
|
|
245
245
|
* @param scorerId - ID of the scorer to retrieve
|
|
246
246
|
* @returns Promise containing the scorer
|
|
247
247
|
*/
|
|
248
248
|
getScorer(scorerId: string): Promise<GetScorerResponse>;
|
|
249
|
-
|
|
249
|
+
listScoresByScorerId(params: ListScoresByScorerIdParams): Promise<ListScoresResponseOld>;
|
|
250
250
|
/**
|
|
251
251
|
* Retrieves scores by run ID
|
|
252
252
|
* @param params - Parameters containing run ID and pagination options
|
|
253
253
|
* @returns Promise containing scores and pagination info
|
|
254
254
|
*/
|
|
255
|
-
|
|
255
|
+
listScoresByRunId(params: ListScoresByRunIdParams): Promise<ListScoresResponseOld>;
|
|
256
256
|
/**
|
|
257
257
|
* Retrieves scores by entity ID and type
|
|
258
258
|
* @param params - Parameters containing entity ID, type, and pagination options
|
|
259
259
|
* @returns Promise containing scores and pagination info
|
|
260
260
|
*/
|
|
261
|
-
|
|
261
|
+
listScoresByEntityId(params: ListScoresByEntityIdParams): Promise<ListScoresResponseOld>;
|
|
262
262
|
/**
|
|
263
263
|
* Saves a score
|
|
264
264
|
* @param params - Parameters containing the score data to save
|
|
265
265
|
* @returns Promise containing the saved score
|
|
266
266
|
*/
|
|
267
267
|
saveScore(params: SaveScoreParams): Promise<SaveScoreResponse>;
|
|
268
|
+
getTrace(traceId: string): Promise<TraceRecord>;
|
|
268
269
|
/**
|
|
269
|
-
* Retrieves
|
|
270
|
-
*
|
|
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.
|
|
271
276
|
*/
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
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>;
|
|
286
|
+
listScoresBySpan(params: ListScoresBySpanParams): Promise<ListScoresResponse>;
|
|
276
287
|
score(params: {
|
|
277
288
|
scorerName: string;
|
|
278
289
|
targets: Array<{
|
|
@@ -283,5 +294,28 @@ export declare class MastraClient extends BaseResource {
|
|
|
283
294
|
status: string;
|
|
284
295
|
message: string;
|
|
285
296
|
}>;
|
|
297
|
+
/**
|
|
298
|
+
* Lists all stored agents with optional pagination
|
|
299
|
+
* @param params - Optional pagination and ordering parameters
|
|
300
|
+
* @returns Promise containing paginated list of stored agents
|
|
301
|
+
*/
|
|
302
|
+
listStoredAgents(params?: ListStoredAgentsParams): Promise<ListStoredAgentsResponse>;
|
|
303
|
+
/**
|
|
304
|
+
* Creates a new stored agent
|
|
305
|
+
* @param params - Agent configuration including id, name, instructions, model, etc.
|
|
306
|
+
* @returns Promise containing the created stored agent
|
|
307
|
+
*/
|
|
308
|
+
createStoredAgent(params: CreateStoredAgentParams): Promise<StoredAgentResponse>;
|
|
309
|
+
/**
|
|
310
|
+
* Gets a stored agent instance by ID for further operations (details, update, delete)
|
|
311
|
+
* @param storedAgentId - ID of the stored agent to retrieve
|
|
312
|
+
* @returns StoredAgent instance
|
|
313
|
+
*/
|
|
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>;
|
|
286
320
|
}
|
|
287
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,
|
|
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,cAAc,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC5F,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EACL,KAAK,EACL,YAAY,EACZ,IAAI,EACJ,SAAS,EACT,QAAQ,EACR,MAAM,EACN,YAAY,EACZ,GAAG,EACH,OAAO,EACP,YAAY,EAEZ,WAAW,EACZ,MAAM,aAAa,CAAC;AACrB,OAAO,KAAK,EACV,sBAAsB,EACtB,wBAAwB,EACxB,uBAAuB,EACxB,MAAM,2BAA2B,CAAC;AACnC,OAAO,KAAK,EACV,aAAa,EACb,wBAAwB,EACxB,0BAA0B,EAC1B,gBAAgB,EAChB,YAAY,EACZ,aAAa,EACb,eAAe,EACf,eAAe,EACf,oBAAoB,EACpB,mBAAmB,EACnB,yBAAyB,EACzB,2BAA2B,EAC3B,qBAAqB,EACrB,yBAAyB,EACzB,iBAAiB,EACjB,0BAA0B,EAC1B,uBAAuB,EACvB,0BAA0B,EAC1B,eAAe,EACf,iBAAiB,EACjB,qBAAqB,EACrB,uBAAuB,EACvB,gCAAgC,EAChC,oBAAoB,EACpB,gCAAgC,EAChC,uBAAuB,EACvB,yBAAyB,EACzB,sBAAsB,EACtB,wBAAwB,EACxB,uBAAuB,EACvB,mBAAmB,EACnB,yBAAyB,EACzB,kBAAkB,IAAI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C;IAOrE,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC;IAI/C;;;;;;;OAOG;IACH,SAAS,CAAC,MAAM,EAAE,wBAAwB,GAAG,OAAO,CAAC,uBAAuB,CAAC;IAI7E;;;;;;OAMG;IACH,UAAU,CAAC,MAAM,GAAE,cAAmB,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAIpE,gBAAgB,CAAC,MAAM,EAAE,sBAAsB,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAI7E,KAAK,CAAC,MAAM,EAAE;QACZ,UAAU,EAAE,MAAM,CAAC;QACnB,OAAO,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)
|