mastracode 0.33.0-alpha.13 → 0.33.0-alpha.15
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 +20 -0
- package/dist/cli.cjs +2 -2
- package/dist/cli.js +2 -2
- package/dist/tui/display.d.ts +8 -9
- package/dist/tui/display.d.ts.map +1 -1
- package/dist/tui/mastra-tui.d.ts.map +1 -1
- package/dist/{tui-CtYnqHql.cjs → tui-B9bklawA.cjs} +14 -12
- package/dist/tui-B9bklawA.cjs.map +1 -0
- package/dist/{tui-CDNvoVqR.js → tui-s3eS2sya.js} +14 -12
- package/dist/tui-s3eS2sya.js.map +1 -0
- package/dist/tui.cjs +1 -1
- package/dist/tui.js +1 -1
- package/package.json +11 -11
- package/dist/tui-CDNvoVqR.js.map +0 -1
- package/dist/tui-CtYnqHql.cjs.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# mastracode
|
|
2
2
|
|
|
3
|
+
## 0.33.0-alpha.15
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [[`210cb7a`](https://github.com/mastra-ai/mastra/commit/210cb7a167998c7bbf72cb3b93e6eb0563330239), [`5f798b3`](https://github.com/mastra-ai/mastra/commit/5f798b3362e9bdf4d690f85245606e146eef60b9), [`01a2943`](https://github.com/mastra-ai/mastra/commit/01a2943a7d886edefdff072bfa51f055bab54437), [`01a2943`](https://github.com/mastra-ai/mastra/commit/01a2943a7d886edefdff072bfa51f055bab54437), [`25ca73d`](https://github.com/mastra-ai/mastra/commit/25ca73d25dee7ce9f0ca72939e3a505c4db7257e), [`e1cead1`](https://github.com/mastra-ai/mastra/commit/e1cead17b5f3653cf00d2f90cc19b113119c02ba), [`01a2943`](https://github.com/mastra-ai/mastra/commit/01a2943a7d886edefdff072bfa51f055bab54437), [`d97107a`](https://github.com/mastra-ai/mastra/commit/d97107a7edc517ae8feddf914fc43cd80a66c0a8)]:
|
|
8
|
+
- @mastra/core@1.58.0-alpha.14
|
|
9
|
+
- @mastra/observability@1.16.6-alpha.4
|
|
10
|
+
- @mastra/code-sdk@1.2.0-alpha.16
|
|
11
|
+
- @mastra/mcp@1.16.0-alpha.2
|
|
12
|
+
|
|
13
|
+
## 0.33.0-alpha.14
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- The web sign-in page now explains when the identity provider denies access — showing the reason and a hint to ask an organization admin to add the account — instead of silently returning to the sign-in button. ([#21166](https://github.com/mastra-ai/mastra/pull/21166))
|
|
18
|
+
|
|
19
|
+
- Updated dependencies [[`9571e3a`](https://github.com/mastra-ai/mastra/commit/9571e3a06ed2c5220196460bf82a2129255c3a8b), [`d6c56f9`](https://github.com/mastra-ai/mastra/commit/d6c56f951db3213330b98b0abafa9778c8770e58), [`9571e3a`](https://github.com/mastra-ai/mastra/commit/9571e3a06ed2c5220196460bf82a2129255c3a8b), [`a04d1a6`](https://github.com/mastra-ai/mastra/commit/a04d1a642ccae3ea3b28be37067480d49bcb1b7d), [`acc3513`](https://github.com/mastra-ai/mastra/commit/acc3513b19f79bf0a7ec2998694580edca54086c), [`94e7ae9`](https://github.com/mastra-ai/mastra/commit/94e7ae970b37c888cd1244ef013292639a2fe6d1), [`6a667b4`](https://github.com/mastra-ai/mastra/commit/6a667b4b7cd6a93fe41fcdd357b08c5a8c09b9ab), [`2440e09`](https://github.com/mastra-ai/mastra/commit/2440e096ea6c2def1ccc1eb2d0f3f5b88c4af940), [`a59049b`](https://github.com/mastra-ai/mastra/commit/a59049b1652a13efff66ac826326b5ed9a550342)]:
|
|
20
|
+
- @mastra/core@1.58.0-alpha.13
|
|
21
|
+
- @mastra/code-sdk@1.2.0-alpha.15
|
|
22
|
+
|
|
3
23
|
## 0.33.0-alpha.13
|
|
4
24
|
|
|
5
25
|
### Patch Changes
|
package/dist/cli.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
const require_tui = require("./tui-
|
|
2
|
+
const require_tui = require("./tui-B9bklawA.cjs");
|
|
3
3
|
let _mastra_code_sdk = require("@mastra/code-sdk");
|
|
4
4
|
let fs = require("fs");
|
|
5
5
|
fs = require_tui.__toESM(fs, 1);
|
|
@@ -13,7 +13,7 @@ let _mastra_code_sdk_utils_stdin_pipe = require("@mastra/code-sdk/utils/stdin-pi
|
|
|
13
13
|
let _mastra_code_sdk_utils_thread_lock = require("@mastra/code-sdk/utils/thread-lock");
|
|
14
14
|
//#region src/version.ts
|
|
15
15
|
function getCurrentVersion() {
|
|
16
|
-
return "0.33.0-alpha.
|
|
16
|
+
return "0.33.0-alpha.15";
|
|
17
17
|
}
|
|
18
18
|
//#endregion
|
|
19
19
|
//#region src/main.ts
|
package/dist/cli.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { d as detectTerminalTheme, f as applyThemeMode, t as MastraTUI, v as restoreTerminalForeground } from "./tui-
|
|
2
|
+
import { d as detectTerminalTheme, f as applyThemeMode, t as MastraTUI, v as restoreTerminalForeground } from "./tui-s3eS2sya.js";
|
|
3
3
|
import { createMastraCode } from "@mastra/code-sdk";
|
|
4
4
|
import fs from "fs";
|
|
5
5
|
import { createMastraCodeAnalytics } from "@mastra/code-sdk/analytics";
|
|
@@ -12,7 +12,7 @@ import { drainPipedStdin, reopenStdinFromTTY } from "@mastra/code-sdk/utils/stdi
|
|
|
12
12
|
import { releaseAllThreadLocks } from "@mastra/code-sdk/utils/thread-lock";
|
|
13
13
|
//#region src/version.ts
|
|
14
14
|
function getCurrentVersion() {
|
|
15
|
-
return "0.33.0-alpha.
|
|
15
|
+
return "0.33.0-alpha.15";
|
|
16
16
|
}
|
|
17
17
|
//#endregion
|
|
18
18
|
//#region src/main.ts
|
package/dist/tui/display.d.ts
CHANGED
|
@@ -37,15 +37,14 @@ export declare function notifyForInputRequest(state: TUIState, event: AgentContr
|
|
|
37
37
|
* synchronously in the controller subscription listener instead — the sibling
|
|
38
38
|
* of notifyForInputRequest for hook dispatch rather than user pings.
|
|
39
39
|
*
|
|
40
|
-
* runId semantics
|
|
41
|
-
*
|
|
42
|
-
*
|
|
43
|
-
*
|
|
44
|
-
*
|
|
45
|
-
*
|
|
46
|
-
*
|
|
47
|
-
*
|
|
48
|
-
* agent_end cannot have been processed while its prompt blocks the queue.
|
|
40
|
+
* runId semantics: HookManager.runPermissionRequest silently bails when no run
|
|
41
|
+
* id is set, and setRunId/clearRunId both run inside the QUEUED agent_start/
|
|
42
|
+
* agent_end handling. To close the receipt-time gap — a permission event
|
|
43
|
+
* arriving before its run's queued agent_start has been processed — agent_start
|
|
44
|
+
* is handled here by setting the run id immediately (before the queued handler
|
|
45
|
+
* runs). beginLifecycleRun() in the queued handler reuses an existing run id
|
|
46
|
+
* instead of overwriting it, so the receipt-time id propagates to AgentStart
|
|
47
|
+
* hooks and beyond.
|
|
49
48
|
*
|
|
50
49
|
* Never throws: a hook failure must not break event delivery.
|
|
51
50
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"display.d.ts","sourceRoot":"","sources":["../../src/tui/display.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"display.d.ts","sourceRoot":"","sources":["../../src/tui/display.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AAG1E,OAAO,KAAK,EAAoB,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAExE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAgB3C,wBAAgB,SAAS,CAAC,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,GAAG,IAAI,CAIhE;AAED,wBAAgB,QAAQ,CAAC,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,GAAG,IAAI,CAI/D;AAED,wBAAgB,kBAAkB,C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,IAAI,CAAC;IA0C5D;;;;;OAKG;YACW,cAAc;IA0C5B;;OAEG;YACW,gBAAgB;CA4D/B"}
|
|
@@ -3640,15 +3640,14 @@ function notifyForInputRequest(state, event) {
|
|
|
3640
3640
|
* synchronously in the controller subscription listener instead — the sibling
|
|
3641
3641
|
* of notifyForInputRequest for hook dispatch rather than user pings.
|
|
3642
3642
|
*
|
|
3643
|
-
* runId semantics
|
|
3644
|
-
*
|
|
3645
|
-
*
|
|
3646
|
-
*
|
|
3647
|
-
*
|
|
3648
|
-
*
|
|
3649
|
-
*
|
|
3650
|
-
*
|
|
3651
|
-
* agent_end cannot have been processed while its prompt blocks the queue.
|
|
3643
|
+
* runId semantics: HookManager.runPermissionRequest silently bails when no run
|
|
3644
|
+
* id is set, and setRunId/clearRunId both run inside the QUEUED agent_start/
|
|
3645
|
+
* agent_end handling. To close the receipt-time gap — a permission event
|
|
3646
|
+
* arriving before its run's queued agent_start has been processed — agent_start
|
|
3647
|
+
* is handled here by setting the run id immediately (before the queued handler
|
|
3648
|
+
* runs). beginLifecycleRun() in the queued handler reuses an existing run id
|
|
3649
|
+
* instead of overwriting it, so the receipt-time id propagates to AgentStart
|
|
3650
|
+
* hooks and beyond.
|
|
3652
3651
|
*
|
|
3653
3652
|
* Never throws: a hook failure must not break event delivery.
|
|
3654
3653
|
*/
|
|
@@ -3656,6 +3655,10 @@ function runPermissionHooksForEvent(state, event) {
|
|
|
3656
3655
|
try {
|
|
3657
3656
|
const hookMgr = state.hookManager;
|
|
3658
3657
|
if (!hookMgr) return;
|
|
3658
|
+
if (event.type === "agent_start") {
|
|
3659
|
+
if (!hookMgr.getRunId()) hookMgr.setRunId((0, crypto.randomUUID)());
|
|
3660
|
+
return;
|
|
3661
|
+
}
|
|
3659
3662
|
if (event.type === "tool_approval_required") {
|
|
3660
3663
|
hookMgr.runPermissionRequest("tool_approval", event.toolCallId, event.toolName, event.args).catch(() => {});
|
|
3661
3664
|
return;
|
|
@@ -21660,8 +21663,7 @@ var MastraTUI = class MastraTUI {
|
|
|
21660
21663
|
beginLifecycleRun() {
|
|
21661
21664
|
const hookMgr = this.state.hookManager;
|
|
21662
21665
|
if (!hookMgr) return;
|
|
21663
|
-
|
|
21664
|
-
hookMgr.setRunId(runId);
|
|
21666
|
+
if (!hookMgr.getRunId()) hookMgr.setRunId((0, crypto.randomUUID)());
|
|
21665
21667
|
hookMgr.runAgentStart().catch(() => {});
|
|
21666
21668
|
}
|
|
21667
21669
|
fireLifecycleHooksForEvent(event) {
|
|
@@ -22314,4 +22316,4 @@ Object.defineProperty(exports, "theme", {
|
|
|
22314
22316
|
}
|
|
22315
22317
|
});
|
|
22316
22318
|
|
|
22317
|
-
//# sourceMappingURL=tui-
|
|
22319
|
+
//# sourceMappingURL=tui-B9bklawA.cjs.map
|