@dbx-tools/appkit-mastra 0.1.83 → 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.
- package/dist/index.js +12 -3
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -2958,6 +2958,7 @@ var MemoryBuilder = class {
|
|
|
2958
2958
|
function buildSharedPgVector(pool) {
|
|
2959
2959
|
const vector = new PgVector({
|
|
2960
2960
|
id: `pg${randomUUID()}`,
|
|
2961
|
+
schemaName: "mastra_instance",
|
|
2961
2962
|
host: "-1",
|
|
2962
2963
|
port: -1,
|
|
2963
2964
|
database: "_",
|
|
@@ -3387,10 +3388,18 @@ var MastraServer$1 = class extends MastraServer {
|
|
|
3387
3388
|
/**
|
|
3388
3389
|
* Mount-relative agent inference paths (`/agents/:id/<verb>...`). Matched
|
|
3389
3390
|
* by prefix on the verb so future variants (`streamVNext`, `stream/vnext`,
|
|
3390
|
-
* `generateVNext`) stay covered without a code change.
|
|
3391
|
-
*
|
|
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.
|
|
3392
3401
|
*/
|
|
3393
|
-
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;
|
|
3394
3403
|
/** Mount-relative read-only agent metadata (`/agents`, `/agents/:id`). */
|
|
3395
3404
|
const AGENT_METADATA = /^\/agents(\/[^/]+)?$/;
|
|
3396
3405
|
/**
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dbx-tools/appkit-mastra",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.85",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"@databricks/sdk-experimental": "^0.17",
|
|
6
|
-
"@dbx-tools/appkit-mastra-shared": "0.1.
|
|
7
|
-
"@dbx-tools/genie": "0.1.
|
|
8
|
-
"@dbx-tools/genie-shared": "0.1.
|
|
9
|
-
"@dbx-tools/model": "0.1.
|
|
10
|
-
"@dbx-tools/shared": "0.1.
|
|
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",
|