@dbx-tools/appkit-mastra 0.1.84 → 0.1.85

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.
Files changed (2) hide show
  1. package/dist/index.js +11 -3
  2. package/package.json +6 -6
package/dist/index.js CHANGED
@@ -3388,10 +3388,18 @@ var MastraServer$1 = class extends MastraServer {
3388
3388
  /**
3389
3389
  * Mount-relative agent inference paths (`/agents/:id/<verb>...`). Matched
3390
3390
  * by prefix on the verb so future variants (`streamVNext`, `stream/vnext`,
3391
- * `generateVNext`) stay covered without a code change. These are the only
3392
- * *writes* the browser client is allowed to make against stock Mastra.
3391
+ * `generateVNext`) stay covered without a code change.
3392
+ *
3393
+ * Covers the plain inference verbs (`stream` / `generate` / `network`) plus
3394
+ * the human-in-the-loop resume verbs a paused `requireApproval` tool needs
3395
+ * to continue: `approve-tool-call` / `decline-tool-call` (streaming, and via
3396
+ * prefix their `-generate` non-streaming variants), the `-network-` variants,
3397
+ * and `resume-stream` (covers `resume-stream-until-idle`). Without these an
3398
+ * approval-gated tool (e.g. `send_email`) can be requested but never approved
3399
+ * from the browser - the resume `POST` 403s under scoped mode. These are the
3400
+ * only *writes* the browser client is allowed to make against stock Mastra.
3393
3401
  */
3394
- const AGENT_INFERENCE = /^\/agents\/[^/]+\/(stream|generate|network)/i;
3402
+ const AGENT_INFERENCE = /^\/agents\/[^/]+\/(stream|generate|network|resume-stream|approve-tool-call|decline-tool-call|approve-network-tool-call|decline-network-tool-call)/i;
3395
3403
  /** Mount-relative read-only agent metadata (`/agents`, `/agents/:id`). */
3396
3404
  const AGENT_METADATA = /^\/agents(\/[^/]+)?$/;
3397
3405
  /**
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@dbx-tools/appkit-mastra",
3
- "version": "0.1.84",
3
+ "version": "0.1.85",
4
4
  "dependencies": {
5
5
  "@databricks/sdk-experimental": "^0.17",
6
- "@dbx-tools/appkit-mastra-shared": "0.1.84",
7
- "@dbx-tools/genie": "0.1.84",
8
- "@dbx-tools/genie-shared": "0.1.84",
9
- "@dbx-tools/model": "0.1.84",
10
- "@dbx-tools/shared": "0.1.84",
6
+ "@dbx-tools/appkit-mastra-shared": "0.1.85",
7
+ "@dbx-tools/genie": "0.1.85",
8
+ "@dbx-tools/genie-shared": "0.1.85",
9
+ "@dbx-tools/model": "0.1.85",
10
+ "@dbx-tools/shared": "0.1.85",
11
11
  "@mastra/ai-sdk": "^1",
12
12
  "@mastra/core": "^1",
13
13
  "@mastra/express": "^1",