@mastra/client-js 1.23.2 → 1.24.0-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,35 @@
1
1
  # @mastra/client-js
2
2
 
3
+ ## 1.24.0-alpha.0
4
+
5
+ ### Minor Changes
6
+
7
+ - Add server endpoints so Studio can resolve agent-builder model availability and auth permission patterns without importing server-only EE code in the browser: ([#17489](https://github.com/mastra-ai/mastra/pull/17489))
8
+ - `GET /editor/builder/models/available` returns the provider/model list already filtered by the active builder model policy (`requiresAuth: true`, `stored-agents:read`).
9
+ - `GET /auth/permission-patterns` returns the valid permission-pattern strings. It is gated by `requiresAuth: true` with no finer-grained permission: the response is the non-sensitive route-permission vocabulary that every authenticated user needs to gate their own sidebar/redirects, and there is no narrower permission that fits.
10
+
11
+ `@mastra/client-js` gains `getBuilderAvailableModels()` and `getPermissionPatterns()` to consume these endpoints.
12
+
13
+ ```ts
14
+ import { MastraClient } from '@mastra/client-js';
15
+
16
+ const client = new MastraClient({ baseUrl: 'http://localhost:4111' });
17
+
18
+ const { providers } = await client.getBuilderAvailableModels();
19
+ const { patterns } = await client.getPermissionPatterns();
20
+ ```
21
+
22
+ ### Patch Changes
23
+
24
+ - Fixed subscribed client tool continuations so browser-provided tool results keep their original inputs and client tools remain available across continuation runs. ([#17603](https://github.com/mastra-ai/mastra/pull/17603))
25
+
26
+ - Added agent memory-support metadata to the agents API and client types. ([#17581](https://github.com/mastra-ai/mastra/pull/17581))
27
+
28
+ - Fixed subscribed client-tool continuations so client tools remain available across multiple continuation runs. ([#17593](https://github.com/mastra-ai/mastra/pull/17593))
29
+
30
+ - Updated dependencies [[`d468acb`](https://github.com/mastra-ai/mastra/commit/d468acb07aec1bb19a2cb0ada8042b05b46746b2), [`e9be4e7`](https://github.com/mastra-ai/mastra/commit/e9be4e747ec3d8b65548bff92f9377db06105376), [`d53cfc2`](https://github.com/mastra-ai/mastra/commit/d53cfc2c7f8d78343a4aa84ec4e129ba25f3325e), [`65799d4`](https://github.com/mastra-ai/mastra/commit/65799d4d549e5ebb9c848fbe3f51ac090f64becf), [`c268c89`](https://github.com/mastra-ai/mastra/commit/c268c89f4c63a93ee474d3cffdf3ea60bf00d4f2), [`d468acb`](https://github.com/mastra-ai/mastra/commit/d468acb07aec1bb19a2cb0ada8042b05b46746b2), [`0c72f03`](https://github.com/mastra-ai/mastra/commit/0c72f032abb13254df5a7856d64be2f207b8006d), [`3b45ea9`](https://github.com/mastra-ai/mastra/commit/3b45ea95015557a6cb9d70dc5252af54ab1b78ac), [`f084be1`](https://github.com/mastra-ai/mastra/commit/f084be1fcbe33ad7480913e44d6130c421c0976f)]:
31
+ - @mastra/core@1.42.0-alpha.0
32
+
3
33
  ## 1.23.2
4
34
 
5
35
  ### Patch Changes
package/dist/client.d.ts CHANGED
@@ -5,7 +5,7 @@ import type { PaginationInfo, TraceRecord, GetTraceLightResponse, GetSpanRespons
5
5
  import type { WorkflowInfo } from '@mastra/core/workflows';
6
6
  import { Agent, MemoryThread, Tool, Processor, Workflow, Vector, BaseResource, A2A, MCPTool, AgentBuilder, Conversations, StoredAgent, StoredPromptBlock, StoredMCPClient, StoredScorer, StoredSkill, ToolProvider, ProcessorProvider, Workspace, Responses, Channels } from './resources/index.js';
7
7
  import type { ListScoresBySpanParams, LegacyTracesPaginatedArg, LegacyGetTracesResponse } from './resources/observability.js';
8
- import type { ClientOptions, CreateMemoryThreadParams, CreateMemoryThreadResponse, GetAgentResponse, AgentVersionIdentifier, 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, ListStoredPromptBlocksParams, ListStoredPromptBlocksResponse, CreateStoredPromptBlockParams, StoredPromptBlockResponse, ListStoredScorersParams, ListStoredScorersResponse, CreateStoredScorerParams, StoredScorerResponse, ListStoredMCPClientsParams, ListStoredMCPClientsResponse, CreateStoredMCPClientParams, StoredMCPClientResponse, ListStoredSkillsParams, ListStoredSkillsResponse, CreateStoredSkillParams, StoredSkillResponse, GetSystemPackagesResponse, BuilderSettingsResponse, InfrastructureStatusResponse, ListBuilderRegistriesResponse, BuilderRegistrySearchResponse, BuilderRegistryPopularResponse, BuilderRegistryPreviewResponse, BuilderRegistryInstallBody, BuilderRegistryInstallResponse, ListScoresResponse as ListScoresResponseOld, GetObservationalMemoryParams, GetObservationalMemoryResponse, AwaitBufferStatusParams, AwaitBufferStatusResponse, GetMemoryStatusResponse, ListWorkspacesResponse, ListStoredWorkspacesParams, ListStoredWorkspacesResponse, StoredWorkspaceResponse, ListVectorsResponse, ListEmbeddersResponse, DatasetRecord, DatasetItem, DatasetExperiment, DatasetExperimentResult, ExperimentReviewCounts, CreateDatasetParams, UpdateDatasetParams, AddDatasetItemParams, UpdateDatasetItemParams, BatchInsertDatasetItemsParams, BatchDeleteDatasetItemsParams, GenerateDatasetItemsParams, GeneratedItem, TriggerDatasetExperimentParams, UpdateExperimentResultParams, CompareExperimentsParams, CompareExperimentsResponse, DatasetItemVersionResponse, DatasetVersionResponse, ListToolProvidersResponse, GetProcessorProvidersResponse, ListBackgroundTasksParams, ListBackgroundTasksResponse, BackgroundTaskResponse, StreamBackgroundTasksParams, ListSchedulesParams, ListSchedulesResponse, ScheduleResponse, ListScheduleTriggersParams, ListScheduleTriggersResponse } from './types.js';
8
+ import type { ClientOptions, CreateMemoryThreadParams, CreateMemoryThreadResponse, GetAgentResponse, AgentVersionIdentifier, 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, ListStoredPromptBlocksParams, ListStoredPromptBlocksResponse, CreateStoredPromptBlockParams, StoredPromptBlockResponse, ListStoredScorersParams, ListStoredScorersResponse, CreateStoredScorerParams, StoredScorerResponse, ListStoredMCPClientsParams, ListStoredMCPClientsResponse, CreateStoredMCPClientParams, StoredMCPClientResponse, ListStoredSkillsParams, ListStoredSkillsResponse, CreateStoredSkillParams, StoredSkillResponse, GetSystemPackagesResponse, BuilderSettingsResponse, BuilderAvailableModelsResponse, PermissionPatternsResponse, InfrastructureStatusResponse, ListBuilderRegistriesResponse, BuilderRegistrySearchResponse, BuilderRegistryPopularResponse, BuilderRegistryPreviewResponse, BuilderRegistryInstallBody, BuilderRegistryInstallResponse, ListScoresResponse as ListScoresResponseOld, GetObservationalMemoryParams, GetObservationalMemoryResponse, AwaitBufferStatusParams, AwaitBufferStatusResponse, GetMemoryStatusResponse, ListWorkspacesResponse, ListStoredWorkspacesParams, ListStoredWorkspacesResponse, StoredWorkspaceResponse, ListVectorsResponse, ListEmbeddersResponse, DatasetRecord, DatasetItem, DatasetExperiment, DatasetExperimentResult, ExperimentReviewCounts, CreateDatasetParams, UpdateDatasetParams, AddDatasetItemParams, UpdateDatasetItemParams, BatchInsertDatasetItemsParams, BatchDeleteDatasetItemsParams, GenerateDatasetItemsParams, GeneratedItem, TriggerDatasetExperimentParams, UpdateExperimentResultParams, CompareExperimentsParams, CompareExperimentsResponse, DatasetItemVersionResponse, DatasetVersionResponse, ListToolProvidersResponse, GetProcessorProvidersResponse, ListBackgroundTasksParams, ListBackgroundTasksResponse, BackgroundTaskResponse, StreamBackgroundTasksParams, ListSchedulesParams, ListSchedulesResponse, ScheduleResponse, ListScheduleTriggersParams, ListScheduleTriggersResponse } from './types.js';
9
9
  export declare class MastraClient extends BaseResource {
10
10
  private observability;
11
11
  readonly conversations: Conversations;
@@ -538,6 +538,19 @@ export declare class MastraClient extends BaseResource {
538
538
  * @returns Promise containing builder settings
539
539
  */
540
540
  getBuilderSettings(): Promise<BuilderSettingsResponse>;
541
+ /**
542
+ * Retrieves the AI providers/models available under the active builder model
543
+ * policy. The server applies the EE allowlist, so the result can be rendered
544
+ * directly in the model picker.
545
+ * @returns Promise containing the policy-filtered providers/models
546
+ */
547
+ getBuilderAvailableModels(): Promise<BuilderAvailableModelsResponse>;
548
+ /**
549
+ * Retrieves the authoritative list of valid permission-pattern strings.
550
+ * Used by Studio to validate route→permission literals and gate the sidebar.
551
+ * @returns Promise containing the permission patterns
552
+ */
553
+ getPermissionPatterns(): Promise<PermissionPatternsResponse>;
541
554
  /**
542
555
  * Retrieves Agent Builder infrastructure configuration and resolution status.
543
556
  * Requires `infrastructure:read` permission.
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AACzE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACzD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,KAAK,EACV,cAAc,EACd,WAAW,EACX,qBAAqB,EACrB,eAAe,EACf,cAAc,EACd,kBAAkB,EAClB,gBAAgB,EAChB,oBAAoB,EACpB,aAAa,EACb,iBAAiB,EAEjB,YAAY,EACZ,gBAAgB,EAEhB,cAAc,EACd,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;OAEG;IACI,oBAAoB,CACzB,UAAU,EAAE,MAAM,EAClB,MAAM,GAAE,0BAA+B,GACtC,OAAO,CAAC,4BAA4B,CAAC;IASxC;;;;OAIG;IACI,aAAa,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAInE;;;;OAIG;IACI,cAAc,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,CAAC;CAGrE"}
@@ -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.23.2"
6
+ version: "1.24.0-alpha.0"
7
7
  ---
8
8
 
9
9
  ## When to use
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.23.2",
2
+ "version": "1.24.0-alpha.0",
3
3
  "package": "@mastra/client-js",
4
4
  "exports": {
5
5
  "RequestContext": {
@@ -1,25 +1,41 @@
1
1
  # Signals
2
2
 
3
+ **Added in:** `@mastra/core@1.39.0`
4
+
3
5
  > **Alpha:** This feature is in alpha. Breaking changes may occur without a major version bump until the API is stable.
4
6
 
5
7
  Signals are a way to interact with an agent through a thread. Instead of starting every interaction with `agent.stream()`, subscribe to a thread and send messages or signals. Mastra either wakes the agent when the thread is idle, drops input into the running agent loop, or queues input for the next turn.
6
8
 
7
9
  Use message APIs for user-authored input. Use `sendSignal()` for lower-level system context, such as background task notifications, policy reminders, or processor-generated context.
8
10
 
11
+ ## When to use signals
12
+
13
+ Use signals when an agent thread needs new input or context outside the original `stream()` call. Signals are useful when users send follow-up messages while a run is active, when background systems need to add context to a thread, or when external events should wake, update, or notify the agent.
14
+
15
+ Use `sendMessage()` and `queueMessage()` for user-authored input. Use `sendSignal()` for lower-level system context. Use `sendStateSignal()` for durable state lanes, and use `sendNotificationSignal()` when an external event should create a durable notification inbox record.
16
+
9
17
  ## Quickstart
10
18
 
11
- Subscribe to the thread before sending messages. The subscription receives the active stream when the message wakes the agent or enters a running loop.
19
+ Create an agent, subscribe to a thread, then send a message to that thread. The subscription receives the active stream when the message wakes the agent or enters a running loop.
12
20
 
13
21
  ```typescript
14
- const subscription = await agent.subscribeToThread({
15
- resourceId: 'user_123',
16
- threadId: 'thread_456',
22
+ import { Agent } from '@mastra/core/agent'
23
+
24
+ const agent = new Agent({
25
+ id: 'support-agent',
26
+ name: 'Support Agent',
27
+ instructions: 'Help the user compare options.',
28
+ model: 'openai/gpt-5.5',
17
29
  })
18
30
 
19
- agent.sendMessage('Compare that with the previous option.', {
31
+ const thread = {
20
32
  resourceId: 'user_123',
21
33
  threadId: 'thread_456',
22
- })
34
+ }
35
+
36
+ const subscription = await agent.subscribeToThread(thread)
37
+
38
+ await agent.sendMessage('Compare that with the previous option.', thread)
23
39
 
24
40
  for await (const chunk of subscription.stream) {
25
41
  console.log(chunk)
@@ -28,7 +44,9 @@ for await (const chunk of subscription.stream) {
28
44
 
29
45
  When the thread has a running agent stream, `sendMessage()` becomes new input inside that agent loop. When the thread is idle, Mastra starts a stream with the message as the first input.
30
46
 
31
- ## Send a message now
47
+ ## Message input
48
+
49
+ ### Send a message now
32
50
 
33
51
  Use `sendMessage()` when the user expects the active agent to see the message immediately.
34
52
 
@@ -53,7 +71,7 @@ The model receives attributed messages as XML-wrapped user input:
53
71
 
54
72
  Messages without attributes are sent as plain user input.
55
73
 
56
- ## Queue a message for the next turn
74
+ ### Queue a message for the next turn
57
75
 
58
76
  Use `queueMessage()` when a user sends a follow-up but the active model call should finish first. Mastra waits for the active run to complete, then starts a new run on the same thread.
59
77
 
@@ -66,7 +84,9 @@ agent.queueMessage('Also check whether the tests need updates.', {
66
84
 
67
85
  When the thread is idle, `queueMessage()` starts a run immediately. When the thread is active, it preserves turn order by starting a new run after the active run completes.
68
86
 
69
- ## Control low-level signal behavior
87
+ ## Signal context
88
+
89
+ ### Control low-level signal behavior
70
90
 
71
91
  Use `sendSignal()` when you need to send system-generated context instead of user-authored input. For external events, use `type: 'notification'`. By default, Mastra delivers signals to active runs and wakes idle threads. Use `ifActive.behavior` and `ifIdle.behavior` to change that behavior.
72
92
 
@@ -88,31 +108,11 @@ const result = agent.sendSignal(
88
108
  await result.persisted
89
109
  ```
90
110
 
91
- The behavior options are:
111
+ Pass `ifIdle.streamOptions` when the idle wake-up stream needs options such as model settings, tools, or runtime context.
92
112
 
93
- - `ifActive.behavior: 'deliver'`: Add the signal or message to the running agent loop. This is the default.
94
- - `ifActive.behavior: 'persist'`: Save the signal or message to memory without adding it to the running loop.
95
- - `ifActive.behavior: 'discard'`: Ignore the signal or message while the thread is active.
96
- - `ifIdle.behavior: 'wake'`: Start a stream with the signal or message as the first input. This is the default.
97
- - `ifIdle.behavior: 'persist'`: Save the signal or message to memory without starting a stream.
98
- - `ifIdle.behavior: 'discard'`: Ignore the signal or message while the thread is idle.
99
-
100
- Pass `ifIdle.streamOptions` when the idle wake-up stream needs options such as model settings, tools, or runtime context. You don't need to repeat `memory.resource` or `memory.thread`; Mastra uses the top-level `resourceId` and `threadId` for the thread.
101
-
102
- ```typescript
103
- agent.sendMessage('Continue with the next step.', {
104
- resourceId: 'user_123',
105
- threadId: 'thread_456',
106
- ifIdle: {
107
- behavior: 'wake',
108
- streamOptions: {
109
- maxSteps: 3,
110
- },
111
- },
112
- })
113
- ```
113
+ > **Note:** Visit [`Agent.sendSignal()` reference](https://mastra.ai/reference/agents/agent) for `ifActive`, `ifIdle`, branch attributes, and `streamOptions`.
114
114
 
115
- ## Send notification context
115
+ ### Send notification context
116
116
 
117
117
  Signals have a semantic `type` and an LLM-facing `tagName`. Use `type` to describe the signal category. Use `tagName` to control the XML tag the model sees.
118
118
 
@@ -143,11 +143,11 @@ The model receives the signal as context like this:
143
143
 
144
144
  Use XML-safe `tagName` and attribute names. They can contain letters, numbers, underscores, periods, and hyphens. They must start with a letter or underscore.
145
145
 
146
- ### Storage support
146
+ #### Storage support
147
147
 
148
148
  Notification inbox storage is available in the storage adapters that support richer memory and signal workflows: [libSQL](https://mastra.ai/reference/storage/libsql), [PostgreSQL](https://mastra.ai/reference/storage/postgresql), and [MongoDB](https://mastra.ai/reference/storage/mongodb). These adapters expose notification records through `getStore('notifications')`.
149
149
 
150
- ## Send processor context
150
+ ### Send processor context
151
151
 
152
152
  Processors can send reactive signals during a run. A processor should inspect the chat history, react to a specific trigger, and avoid sending the same context more than once.
153
153
 
@@ -193,50 +193,19 @@ Reactive signals default to `tagName: 'system-reminder'`, so the model receives
193
193
 
194
194
  Awaiting `sendSignal()` preserves stream echo ordering when a subscribed thread is active.
195
195
 
196
- ## Conditional attributes
197
-
198
- Use `ifActive.attributes` and `ifIdle.attributes` to tag input with context that depends on whether the agent is active or idle at delivery time. Mastra resolves the correct branch when the input is accepted.
199
-
200
- ```typescript
201
- agent.sendMessage(
202
- {
203
- contents: 'Also cover the edge cases.',
204
- attributes: { source: 'chat' },
205
- },
206
- {
207
- resourceId: 'user_123',
208
- threadId: 'thread_456',
209
- ifActive: { attributes: { delivery: 'while-active' } },
210
- ifIdle: { attributes: { delivery: 'new-message' } },
211
- },
212
- )
213
- ```
214
-
215
- When the agent is working, the model sees:
196
+ ### Conditional attributes
216
197
 
217
- ```xml
218
- <user source="chat" delivery="while-active">Also cover the edge cases.</user>
219
- ```
220
-
221
- When the agent is idle:
198
+ Use `ifActive.attributes` and `ifIdle.attributes` to tag input with context that depends on whether the agent is active or idle at delivery time. Top-level `attributes` always apply, and Mastra merges the selected branch's `attributes` into them when the input is accepted.
222
199
 
223
- ```xml
224
- <user source="chat" delivery="new-message">Also cover the edge cases.</user>
225
- ```
200
+ > **Note:** Visit [`Agent.sendMessage()` reference](https://mastra.ai/reference/agents/agent) and [`Agent.sendSignal()` reference](https://mastra.ai/reference/agents/agent) for branch-specific attributes.
226
201
 
227
- Top-level `attributes` always apply. The selected branch's `attributes` are merged into them at delivery time. The `delivery` name shown above isn't a special Mastra API field. It's a custom attribute name used for this example. Add any attribute names that suit your use case.
202
+ ## State and notification signals
228
203
 
229
- ## State signals
204
+ ### State signals
230
205
 
231
206
  State signals expose named, thread-scoped context lanes. Use them for durable context that changes over time, such as browser state, editor state, or a background watcher result.
232
207
 
233
- Each state signal needs:
234
-
235
- - `id`: The state lane name, such as `browser`.
236
- - `cacheKey`: A producer-owned key for deduping the current state.
237
- - `mode`: `snapshot` for an authoritative state copy, or `delta` for a change event.
238
-
239
- Use `sendStateSignal()` when an external producer detects a state change.
208
+ Use `sendStateSignal()` when an external producer detects a state change. Each state signal identifies a state lane, a producer-owned cache key, and whether the update is a snapshot or delta.
240
209
 
241
210
  ```typescript
242
211
  await agent.sendStateSignal(
@@ -258,16 +227,9 @@ await agent.sendStateSignal(
258
227
  )
259
228
  ```
260
229
 
261
- When Mastra accepts a state signal, it stores compact tracking metadata on the thread. The metadata records the lane's current `cacheKey`, current mode, version, last signal id, and last snapshot signal id. If a producer sends the same `cacheKey` and mode again while that state is still current, Mastra skips the duplicate.
262
-
263
- State signal fields have separate roles:
230
+ When Mastra accepts a state signal, it stores compact tracking metadata on the thread. If a producer sends the same `cacheKey` and mode again while that state is still current, Mastra skips the duplicate.
264
231
 
265
- - `contents`: The representation the model reads.
266
- - `value`: The structured snapshot for `mode: 'snapshot'`.
267
- - `delta`: The structured change for `mode: 'delta'`.
268
- - `metadata.state`: The runtime tracking envelope with `id`, `mode`, `cacheKey`, `version`, and `threadId`.
269
-
270
- Use `computeStateSignal()` when a processor owns a state lane. Mastra calls it once per model input step after `processInputStep()`. If the processor omits `id`, Mastra uses the processor id as the state lane id. Set `stateId` when the public state lane should differ from the processor id.
232
+ Use `computeStateSignal()` when a processor owns a state lane. Mastra calls it once per model input step after `processInputStep()`. Visit [`Agent.sendStateSignal()` reference](https://mastra.ai/reference/agents/agent) for state signal fields and return values.
271
233
 
272
234
  ```typescript
273
235
  import type { ComputeStateSignalArgs, Processor } from '@mastra/core/processors'
@@ -304,31 +266,15 @@ Mastra passes `lastSnapshot` and `deltasSinceSnapshot` into `computeStateSignal(
304
266
 
305
267
  The built-in browser context processor emits state under the `browser` id with snapshot and delta modes.
306
268
 
307
- ## Notification signals
269
+ ### Notification signals
308
270
 
309
271
  Notification signals represent external events such as GitHub activity, email, Slack mentions, CI status, incidents, recordings, or direct messages. Use `agent.sendNotificationSignal()` when the event should create a durable inbox record.
310
272
 
311
- Notification delivery has two phases:
312
-
313
- - **Ingress**: `agent.sendNotificationSignal()` stores a notification record, then resolves the agent's delivery policy.
314
- - **Dispatch**: Mastra consumes due records stamped with `deliverAt` or `summaryAt` and emits full notification or summary signals.
315
-
316
- A notification record stores the source, kind, priority, summary, payload, resource id, thread id, agent id, coalescing keys, and delivery metadata. The delivery decision controls what happens after ingress:
273
+ Notification delivery has two phases. During ingress, `agent.sendNotificationSignal()` stores a notification record and resolves the agent's delivery policy. During dispatch, Mastra consumes due records and emits full notification or summary signals.
317
274
 
318
- - `deliver` or `queue`: Emit a full `<notification>` signal and mark the record `delivered`.
319
- - `defer`: Keep the record `pending` with `deliverAt`.
320
- - `summarize`: Keep the record `pending` with `summaryAt`, or emit an immediate summary when the policy requests it.
321
- - `persist`: Keep the record `pending` in the inbox without scheduled delivery.
322
- - `discard`: Mark the record `discarded` and emit no signal.
275
+ The default delivery policy is priority-aware. Urgent notifications deliver immediately, while lower-priority notifications may be batched into summaries or wait until the thread is idle.
323
276
 
324
- The default delivery policy is priority-aware:
325
-
326
- | Priority | Active thread | Idle thread |
327
- | -------- | -------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- |
328
- | `urgent` | Deliver a full notification immediately | Deliver a full notification immediately |
329
- | `high` | Emit a summary immediately, keep `deliverAt`, then deliver the full notification when the thread is idle | Deliver a full notification immediately |
330
- | `medium` | Batch with `summaryAt` and later deliver one notification summary | Deliver a full notification immediately |
331
- | `low` | Batch with `summaryAt` and later deliver one notification summary | Batch with `summaryAt` and later deliver one notification summary without waking the model loop |
277
+ > **Note:** Visit [`Agent.sendNotificationSignal()` reference](https://mastra.ai/reference/agents/agent) for notification fields, [`Agent` constructor reference](https://mastra.ai/reference/agents/agent) for `notifications.deliveryPolicy` configuration, and [`createNotificationInboxTool()` reference](https://mastra.ai/reference/signals/create-notification-inbox-tool) for inbox tool actions.
332
278
 
333
279
  ```typescript
334
280
  await agent.sendNotificationSignal(
@@ -364,86 +310,21 @@ Notification summaries tell the model that inbox records are waiting:
364
310
 
365
311
  When Mastra emits a summary, it clears `summaryAt` and sets `summarySignalId` on each summarized record. The records stay pending and readable. When Mastra emits a full notification, it sets `deliveredSignalId` and marks the record `delivered`. If the inbox tool reads a notification first, it can inject the full notification signal and mark the record `seen`, which prevents duplicate full delivery.
366
312
 
367
- Configure a delivery policy on the agent when some notifications should wait for a different dispatch window or summary rollup.
313
+ Configure a delivery policy on the agent when some notifications should wait for a different dispatch window or summary rollup. Enable scheduled dispatch at the Mastra level when deferred notifications and summary rollups should be delivered automatically.
368
314
 
369
- ```typescript
370
- export const supportAgent = new Agent({
371
- id: 'support-agent',
372
- name: 'Support Agent',
373
- instructions: 'Help the user triage updates.',
374
- model: 'openai/gpt-5.5',
375
- notifications: {
376
- deliveryPolicy: {
377
- priorities: {
378
- urgent: 'deliver',
379
- },
380
- decide: ({ record }) => {
381
- if (record.priority === 'low') {
382
- return {
383
- action: 'summarize',
384
- summaryAt: new Date(Date.now() + 30 * 60 * 1000),
385
- }
386
- }
387
- },
388
- },
389
- },
390
- })
391
- ```
315
+ > **Note:** Visit [`Agent` constructor reference](https://mastra.ai/reference/agents/agent) for `notifications.deliveryPolicy` and [`Mastra` class reference](https://mastra.ai/reference/core/mastra-class) for runtime notification dispatch configuration.
392
316
 
393
- Enable scheduled dispatch at the Mastra level so deferred notifications and summary rollups are delivered through the existing workflow scheduler.
317
+ #### Notification inbox tool
394
318
 
395
- ```typescript
396
- export const mastra = new Mastra({
397
- agents: { supportAgent },
398
- storage,
399
- notifications: {
400
- dispatch: {
401
- enabled: true,
402
- cron: '*/1 * * * *',
403
- batchSize: 100,
404
- },
405
- },
406
- })
407
- ```
319
+ Use `createNotificationInboxTool()` to give agents one tool for inbox actions instead of many CRUD tools. Use `read` after a `<notification-summary>` signal when the agent needs the full records behind the summary. The notification contents are delivered as signals, not as normal tool output.
408
320
 
409
- `notifications.dispatch.enabled` registers an internal workflow with the default cron `*/1 * * * *`. The dispatcher reads due notification records from storage, groups summaries by `agentId`, `resourceId`, and `threadId`, and emits signals through the Agent thread runtime. It isn't a user-facing entrypoint.
321
+ > **Note:** Visit [`createNotificationInboxTool()` reference](https://mastra.ai/reference/signals/create-notification-inbox-tool) for the setup example, input schema, and action behavior.
410
322
 
411
- ### Notification inbox tool
323
+ `sendNotificationSignal()` requires a storage domain with `notifications` support. Use `sendSignal({ type: 'notification' })` only for lower-level notification-shaped context that should bypass inbox storage.
412
324
 
413
- Use `createNotificationInboxTool()` to give agents one tool for inbox actions instead of many CRUD tools.
325
+ ## Compatibility and APIs
414
326
 
415
- ```typescript
416
- import { createNotificationInboxTool } from '@mastra/core/notifications'
417
-
418
- const notificationsStorage = await storage.getStore('notifications')
419
-
420
- export const supportAgent = new Agent({
421
- id: 'support-agent',
422
- name: 'Support Agent',
423
- instructions: 'Help the user triage updates.',
424
- model: 'openai/gpt-5.5',
425
- tools: {
426
- notificationInbox: createNotificationInboxTool({ storage: notificationsStorage }),
427
- },
428
- })
429
- ```
430
-
431
- The tool id is `notification-inbox`. It supports these actions:
432
-
433
- - `list`: List notifications for the current thread.
434
- - `read`: Deliver readable full notification signals into the chat when possible, then mark records `seen`.
435
- - `markSeen`: Mark one record `seen`.
436
- - `dismiss`: Mark one record `dismissed`.
437
- - `archive`: Mark one record `archived`.
438
- - `search`: Search notification summaries in the current thread.
439
-
440
- The tool uses the current `threadId` from the tool execution context unless one is provided. Use `read` after a `<notification-summary>` signal when the agent needs the full records behind the summary. The `read` result reports how many notifications will be delivered; it doesn't use normal tool output as the main context channel for the notification contents.
441
-
442
- `sendNotificationSignal()` requires a storage domain with `notifications` support. LibSQL supports notifications. Other storage adapters need matching notification domain support before they can store notification records.
443
-
444
- Use `sendSignal({ type: 'notification' })` only for lower-level notification-shaped context that should bypass inbox storage.
445
-
446
- ## Compatibility
327
+ ### Compatibility
447
328
 
448
329
  Mastra still accepts legacy signal payloads such as `type: 'user-message'` and `type: 'system-reminder'`. It normalizes them internally to the new category and tag shape:
449
330
 
@@ -454,26 +335,17 @@ Existing stored signal rows and older clients continue to load through the compa
454
335
 
455
336
  > **Note:** Visit [Agent signals reference](https://mastra.ai/reference/agents/agent) for the full message, signal, and subscription types.
456
337
 
457
- ## Approve tool calls
458
-
459
- When a subscribed run pauses for tool approval, approve or decline the tool call with the subscription-native methods. The call returns a JSON acknowledgement. The resumed chunks arrive through the existing thread subscription.
338
+ ### Approve tool calls
460
339
 
461
- ```typescript
462
- await agent.sendToolApproval({
463
- resourceId: 'user_123',
464
- threadId: 'thread_456',
465
- toolCallId: 'tool-call_456',
466
- approved: true,
467
- })
468
- ```
340
+ When a subscribed run pauses for tool approval, approve or decline the tool call with the subscription-native methods. The resumed chunks arrive through the existing thread subscription.
469
341
 
470
- Pass `approved: false` to decline the same pending tool call. Use the older `approveToolCall()` and `declineToolCall()` methods only when you are rendering the separate continuation stream directly.
342
+ > **Note:** Visit [`client.getAgent().sendToolApproval()` reference](https://mastra.ai/reference/client-js/agents) and [server agent routes](https://mastra.ai/reference/server/routes) for request and response shapes.
471
343
 
472
- ## Use HTTP routes
344
+ ### Use HTTP routes
473
345
 
474
346
  If you call Mastra over HTTP directly, use `POST /api/agents/:agentId/send-message` for immediate messages and `POST /api/agents/:agentId/queue-message` for next-turn messages. For subscription-native tool approval, use `POST /api/agents/:agentId/send-tool-approval`. See [Server routes reference](https://mastra.ai/reference/server/routes) for request and response schemas.
475
347
 
476
- ## Use the client SDK
348
+ ### Use the client SDK
477
349
 
478
350
  The JavaScript client exposes thread signal APIs. Use `subscribeToThread()` before sending thread input so the client can render the stream that wakes from, or receives, the input.
479
351
 
@@ -499,9 +371,9 @@ await subscription.processDataStream({
499
371
  })
500
372
  ```
501
373
 
502
- Use `reconnect: true` for long-lived subscriptions. The client resubscribes when the stream closes or a reconnect request fails, such as after a proxy idle timeout or a dropped network connection.
374
+ Use `reconnect: true` for long-lived subscriptions. Visit [`client.getAgent().subscribeToThread()` reference](https://mastra.ai/reference/client-js/agents) for reconnect options.
503
375
 
504
- ## Keep custom SSE subscriptions alive
376
+ ### Keep custom SSE subscriptions alive
505
377
 
506
378
  If you expose your own Server-Sent Events (SSE) endpoint for thread subscriptions, send periodic heartbeat frames while the stream is idle. This keeps browsers, proxies, and load balancers from closing the connection before the next signal or model chunk arrives.
507
379
 
@@ -524,7 +396,9 @@ Use heartbeats together with client-side reconnect logic. Heartbeats reduce idle
524
396
  - [`Agent.sendMessage()`](https://mastra.ai/reference/agents/agent)
525
397
  - [`Agent.queueMessage()`](https://mastra.ai/reference/agents/agent)
526
398
  - [`Agent.sendSignal()`](https://mastra.ai/reference/agents/agent)
399
+ - [`Agent.sendStateSignal()`](https://mastra.ai/reference/agents/agent)
527
400
  - [`Agent.subscribeToThread()`](https://mastra.ai/reference/agents/agent)
401
+ - [`createNotificationInboxTool()`](https://mastra.ai/reference/signals/create-notification-inbox-tool)
528
402
  - [`client.getAgent().sendMessage()`](https://mastra.ai/reference/client-js/agents)
529
403
  - [`client.getAgent().queueMessage()`](https://mastra.ai/reference/client-js/agents)
530
404
  - [`client.getAgent().sendSignal()`](https://mastra.ai/reference/client-js/agents)
@@ -245,10 +245,14 @@ Returns `{ accepted: true, runId: string }`.
245
245
 
246
246
  **ifActive.behavior** (`'deliver' | 'persist' | 'discard'`): Controls what happens when the target thread is active. Defaults to \`deliver\`.
247
247
 
248
+ **ifActive.attributes** (`Record<string, string | number | boolean>`): Attributes merged into the signal when Mastra accepts it while the target thread is active.
249
+
248
250
  **ifIdle.behavior** (`'wake' | 'persist' | 'discard'`): Controls what happens when the target thread is idle. Defaults to \`wake\`.
249
251
 
250
252
  **ifIdle.streamOptions** (`Omit<AgentExecutionOptions, 'messages'>`): Options for the stream that starts when \`ifIdle.behavior\` is \`wake\`.
251
253
 
254
+ **ifIdle.attributes** (`Record<string, string | number | boolean>`): Attributes merged into the signal when Mastra accepts it while the target thread is idle.
255
+
252
256
  ### `subscribeToThread()`
253
257
 
254
258
  Subscribe to raw stream chunks for a memory thread. Use this to render output from a thread that may be started or continued by `sendMessage()`, `queueMessage()`, `sendSignal()`, or server-side notification dispatch.