mastracode 0.16.2 → 0.16.3-alpha.2
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 +25 -0
- package/dist/{chunk-GFMNLTYT.js → chunk-ABONQ6TD.js} +34 -5
- package/dist/chunk-ABONQ6TD.js.map +1 -0
- package/dist/{chunk-GN2BAGO2.cjs → chunk-FSEA2HBK.cjs} +34 -5
- package/dist/chunk-FSEA2HBK.cjs.map +1 -0
- package/dist/cli.cjs +100 -9
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +96 -6
- package/dist/cli.js.map +1 -1
- package/dist/headless.d.ts +1 -1
- package/dist/headless.d.ts.map +1 -1
- package/dist/tui/mastra-tui.d.ts.map +1 -1
- package/dist/tui.cjs +11 -11
- package/dist/tui.js +1 -1
- package/dist/utils/stdin-pipe.d.ts +33 -0
- package/dist/utils/stdin-pipe.d.ts.map +1 -0
- package/package.json +11 -11
- package/dist/chunk-GFMNLTYT.js.map +0 -1
- package/dist/chunk-GN2BAGO2.cjs.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,30 @@
|
|
|
1
1
|
# mastracode
|
|
2
2
|
|
|
3
|
+
## 0.16.3-alpha.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [[`2b0f355`](https://github.com/mastra-ai/mastra/commit/2b0f3553be3e9e5524da539a66e5cf82668440a4)]:
|
|
8
|
+
- @mastra/core@1.31.0-alpha.2
|
|
9
|
+
|
|
10
|
+
## 0.16.3-alpha.1
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Updated dependencies [[`711580e`](https://github.com/mastra-ai/mastra/commit/711580eeea6de34da1203b0a5d5a2b3589d38156), [`e109607`](https://github.com/mastra-ai/mastra/commit/e10960749251e34d46b480a20648c490fd30381b)]:
|
|
15
|
+
- @mastra/pg@1.9.4-alpha.0
|
|
16
|
+
- @mastra/core@1.31.0-alpha.1
|
|
17
|
+
|
|
18
|
+
## 0.16.3-alpha.0
|
|
19
|
+
|
|
20
|
+
### Patch Changes
|
|
21
|
+
|
|
22
|
+
- Fixed user message box border misalignment when the first line of text fills the full width. The right border no longer extends past the top corner. ([#15993](https://github.com/mastra-ai/mastra/pull/15993))
|
|
23
|
+
|
|
24
|
+
- Updated dependencies [[`1723e09`](https://github.com/mastra-ai/mastra/commit/1723e099829892419ddbfe49287acfeac2522724), [`629f9e9`](https://github.com/mastra-ai/mastra/commit/629f9e9a7e56aa8f129515a3923c5813298790c7), [`25168fb`](https://github.com/mastra-ai/mastra/commit/25168fb9c1de9db7f8171df4f58ceb842c53aa29), [`ab34b5a`](https://github.com/mastra-ai/mastra/commit/ab34b5a2191b8e4353df1dbf7b9155e7d6628d79), [`5fb6c2a`](https://github.com/mastra-ai/mastra/commit/5fb6c2a95c1843cc231704b91354311fc1f34a71), [`394f0cf`](https://github.com/mastra-ai/mastra/commit/394f0cfc31e6b4d801219fdef2e9cc69e5bc8682), [`3d7f709`](https://github.com/mastra-ai/mastra/commit/3d7f709b615e588050bb6283c4ee5cfe2978cbde), [`48a42f1`](https://github.com/mastra-ai/mastra/commit/48a42f114a4006a95e0b7a1b5ad1a24815a175c2), [`2c83efc`](https://github.com/mastra-ai/mastra/commit/2c83efc4482b3efe50830e3b8b4ba9a8d219edff), [`282a10c`](https://github.com/mastra-ai/mastra/commit/282a10c9446e9922afe80e10e3770481c8ac8a28), [`282a10c`](https://github.com/mastra-ai/mastra/commit/282a10c9446e9922afe80e10e3770481c8ac8a28)]:
|
|
25
|
+
- @mastra/core@1.31.0-alpha.0
|
|
26
|
+
- @mastra/observability@1.11.0-alpha.0
|
|
27
|
+
|
|
3
28
|
## 0.16.2
|
|
4
29
|
|
|
5
30
|
### Patch Changes
|
|
@@ -878,7 +878,7 @@ function getInstallCommand(pm, version) {
|
|
|
878
878
|
}
|
|
879
879
|
function getCurrentVersion() {
|
|
880
880
|
{
|
|
881
|
-
return "0.16.2";
|
|
881
|
+
return "0.16.3-alpha.2";
|
|
882
882
|
}
|
|
883
883
|
}
|
|
884
884
|
async function fetchLatestVersion() {
|
|
@@ -9922,7 +9922,7 @@ var BorderedBox = class {
|
|
|
9922
9922
|
const w = visibleWidth(stripAnsi2(trimmed));
|
|
9923
9923
|
if (w > maxContentWidth) maxContentWidth = w;
|
|
9924
9924
|
}
|
|
9925
|
-
const boxInner =
|
|
9925
|
+
const boxInner = maxContentWidth + 2;
|
|
9926
9926
|
const boxWidth = boxInner + 4;
|
|
9927
9927
|
const lines = [];
|
|
9928
9928
|
const promptPrefix = chalk7.hex(tintHex(mastra.green, 1))("\xBB") + " ";
|
|
@@ -13508,7 +13508,36 @@ var MastraTUI = class _MastraTUI {
|
|
|
13508
13508
|
});
|
|
13509
13509
|
}
|
|
13510
13510
|
if (this.state.options.initialMessage) {
|
|
13511
|
-
this.
|
|
13511
|
+
const msg = this.state.options.initialMessage;
|
|
13512
|
+
if (!this.state.harness.hasModelSelected()) {
|
|
13513
|
+
showInfo(this.state, "No model selected. Use /models to select a model, or /login to authenticate.");
|
|
13514
|
+
} else {
|
|
13515
|
+
const messageId = `user-${Date.now()}`;
|
|
13516
|
+
addUserMessage(this.state, {
|
|
13517
|
+
id: messageId,
|
|
13518
|
+
content: [{ type: "text", text: msg }]});
|
|
13519
|
+
this.state.ui.requestRender();
|
|
13520
|
+
const allowed = await this.runUserPromptHook(msg);
|
|
13521
|
+
if (!allowed) {
|
|
13522
|
+
const comp = this.state.messageComponentsById.get(messageId);
|
|
13523
|
+
if (comp) {
|
|
13524
|
+
this.state.chatContainer.removeChild(comp);
|
|
13525
|
+
this.state.messageComponentsById.delete(messageId);
|
|
13526
|
+
this.state.ui.requestRender();
|
|
13527
|
+
}
|
|
13528
|
+
} else {
|
|
13529
|
+
try {
|
|
13530
|
+
if (this.state.pendingNewThread) {
|
|
13531
|
+
await this.state.harness.createThread();
|
|
13532
|
+
this.state.pendingNewThread = false;
|
|
13533
|
+
}
|
|
13534
|
+
this.fireMessage(msg);
|
|
13535
|
+
} catch (error) {
|
|
13536
|
+
this.state.pendingNewThread = false;
|
|
13537
|
+
showError(this.state, error instanceof Error ? error.message : "Failed to start thread");
|
|
13538
|
+
}
|
|
13539
|
+
}
|
|
13540
|
+
}
|
|
13512
13541
|
}
|
|
13513
13542
|
while (true) {
|
|
13514
13543
|
const userInput = await this.getUserInput();
|
|
@@ -14348,5 +14377,5 @@ var LoginSelectorComponent = class extends Box {
|
|
|
14348
14377
|
};
|
|
14349
14378
|
|
|
14350
14379
|
export { AssistantMessageComponent, LoginDialogComponent, LoginSelectorComponent, MastraTUI, ModelSelectorComponent, OMProgressComponent, ToolExecutionComponentEnhanced, UserMessageComponent, createTUIState, detectTerminalTheme, formatOMStatus, getCurrentVersion };
|
|
14351
|
-
//# sourceMappingURL=chunk-
|
|
14352
|
-
//# sourceMappingURL=chunk-
|
|
14380
|
+
//# sourceMappingURL=chunk-ABONQ6TD.js.map
|
|
14381
|
+
//# sourceMappingURL=chunk-ABONQ6TD.js.map
|