@mastra/client-js 1.51.0 → 1.51.1-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/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +1 -1
- package/dist/docs/references/reference-client-js-observability.md +1 -1
- package/dist/index.cjs +8 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +8 -3
- package/dist/index.js.map +1 -1
- package/dist/resources/agent-controller.d.ts +13 -3
- package/dist/resources/agent-controller.d.ts.map +1 -1
- package/dist/route-types.generated.d.ts +10 -5
- package/dist/route-types.generated.d.ts.map +1 -1
- package/package.json +5 -5
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.51.
|
|
6
|
+
version: "1.51.1-alpha.1"
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
## When to use
|
|
@@ -45,7 +45,7 @@ const completeTrace = await mastraClient.getTrace(traces.spans[0].traceId)
|
|
|
45
45
|
|
|
46
46
|
## Listing traces for a list view
|
|
47
47
|
|
|
48
|
-
`listTracesLight()` returns the same rows as a trace list, without the `input`, `output` and `attributes` payloads. Each row carries a short `inputPreview` string instead, so a list can render a preview column without transferring the whole prompt.
|
|
48
|
+
`listTracesLight()` returns the same rows as a trace list, without the `input`, `output` and `attributes` payloads. Each row carries a short `inputPreview` string instead, so a list can render a preview column without transferring the whole prompt, plus `threadId` and `resourceId` for the memory context columns.
|
|
49
49
|
|
|
50
50
|
Prefer it whenever you are rendering many traces at once, and fetch the full record only when a row is opened:
|
|
51
51
|
|
package/dist/index.cjs
CHANGED
|
@@ -6304,11 +6304,15 @@ var AgentControllerSession = class extends BaseResource {
|
|
|
6304
6304
|
async abort() {
|
|
6305
6305
|
await this.request(this.url(`${this.base()}/abort`), { method: "POST" });
|
|
6306
6306
|
}
|
|
6307
|
-
/**
|
|
6307
|
+
/**
|
|
6308
|
+
* Approve or decline a pending tool call (`tool_approval_required`). Resolves
|
|
6309
|
+
* `{ ok: false, reason }` when no pending approval claimed the decision.
|
|
6310
|
+
*/
|
|
6308
6311
|
async approveTool(toolCallId, approved, options) {
|
|
6309
6312
|
const requestContext = parseClientRequestContext(options?.requestContext);
|
|
6310
|
-
|
|
6313
|
+
return this.request(this.url(`${this.base()}/tool-approval`), {
|
|
6311
6314
|
method: "POST",
|
|
6315
|
+
retries: 0,
|
|
6312
6316
|
body: {
|
|
6313
6317
|
toolCallId,
|
|
6314
6318
|
approved,
|
|
@@ -6323,8 +6327,9 @@ var AgentControllerSession = class extends BaseResource {
|
|
|
6323
6327
|
*/
|
|
6324
6328
|
async respondToToolSuspension(toolCallId, resumeData, options) {
|
|
6325
6329
|
const requestContext = parseClientRequestContext(options?.requestContext);
|
|
6326
|
-
|
|
6330
|
+
return this.request(this.url(`${this.base()}/tool-suspension`), {
|
|
6327
6331
|
method: "POST",
|
|
6332
|
+
retries: 0,
|
|
6328
6333
|
body: {
|
|
6329
6334
|
toolCallId,
|
|
6330
6335
|
resumeData,
|