mastracode 0.18.1-alpha.0 → 0.18.1
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 +18 -0
- package/dist/{chunk-PMYD4QY3.js → chunk-NGJXCCTA.js} +12 -23
- package/dist/chunk-NGJXCCTA.js.map +1 -0
- package/dist/{chunk-MBLUESNM.cjs → chunk-RPPH6B6Y.cjs} +12 -23
- package/dist/chunk-RPPH6B6Y.cjs.map +1 -0
- package/dist/cli.cjs +4 -4
- package/dist/cli.js +1 -1
- package/dist/tui/handlers/prompts.d.ts.map +1 -1
- package/dist/tui.cjs +11 -11
- package/dist/tui.js +1 -1
- package/package.json +8 -8
- package/dist/chunk-MBLUESNM.cjs.map +0 -1
- package/dist/chunk-PMYD4QY3.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# mastracode
|
|
2
2
|
|
|
3
|
+
## 0.18.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Fixed a bug where clicking Approve on a plan from `/plan` mode would show the system reminder twice and sometimes hang instead of starting build execution. Approving now reliably triggers the build agent with a single reminder. ([#16521](https://github.com/mastra-ai/mastra/pull/16521))
|
|
8
|
+
|
|
9
|
+
- Updated dependencies [[`6ba46dc`](https://github.com/mastra-ai/mastra/commit/6ba46dc1ac04af635d0f59377d7384ca6af44cd1), [`3e63fca`](https://github.com/mastra-ai/mastra/commit/3e63fca7aa41269b2a9518effdd09b8ab8f1ff04), [`bc386e0`](https://github.com/mastra-ai/mastra/commit/bc386e08249dd30f3e66cf59de0c151a8dc26afb)]:
|
|
10
|
+
- @mastra/core@1.33.1
|
|
11
|
+
|
|
12
|
+
## 0.18.1-alpha.1
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- Fixed a bug where clicking Approve on a plan from `/plan` mode would show the system reminder twice and sometimes hang instead of starting build execution. Approving now reliably triggers the build agent with a single reminder. ([#16521](https://github.com/mastra-ai/mastra/pull/16521))
|
|
17
|
+
|
|
18
|
+
- Updated dependencies [[`3e63fca`](https://github.com/mastra-ai/mastra/commit/3e63fca7aa41269b2a9518effdd09b8ab8f1ff04), [`bc386e0`](https://github.com/mastra-ai/mastra/commit/bc386e08249dd30f3e66cf59de0c151a8dc26afb)]:
|
|
19
|
+
- @mastra/core@1.33.1-alpha.1
|
|
20
|
+
|
|
3
21
|
## 0.18.1-alpha.0
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
|
@@ -997,7 +997,7 @@ function getInstallCommand(pm, version) {
|
|
|
997
997
|
}
|
|
998
998
|
function getCurrentVersion() {
|
|
999
999
|
{
|
|
1000
|
-
return "0.18.1
|
|
1000
|
+
return "0.18.1";
|
|
1001
1001
|
}
|
|
1002
1002
|
}
|
|
1003
1003
|
async function fetchLatestVersion() {
|
|
@@ -2027,12 +2027,6 @@ function createGoalReminderSignal(goal) {
|
|
|
2027
2027
|
}
|
|
2028
2028
|
};
|
|
2029
2029
|
}
|
|
2030
|
-
function createGoalReminderXml(message) {
|
|
2031
|
-
return `<system-reminder type="goal">${escapeXml(message)}</system-reminder>`;
|
|
2032
|
-
}
|
|
2033
|
-
function escapeXml(value) {
|
|
2034
|
-
return value.replaceAll("&", "&").replaceAll("<", "<").replaceAll(">", ">");
|
|
2035
|
-
}
|
|
2036
2030
|
|
|
2037
2031
|
// src/tui/components/help-overlay.ts
|
|
2038
2032
|
function getCommands(modes) {
|
|
@@ -12915,26 +12909,21 @@ async function handlePlanApproval(ctx, planId, title, plan) {
|
|
|
12915
12909
|
onApprove: async () => {
|
|
12916
12910
|
state.activeInlinePlanApproval = void 0;
|
|
12917
12911
|
await approvePlan(ctx, planId, title, plan);
|
|
12918
|
-
|
|
12919
|
-
|
|
12920
|
-
|
|
12921
|
-
|
|
12922
|
-
|
|
12923
|
-
|
|
12924
|
-
|
|
12925
|
-
|
|
12926
|
-
ctx.fireMessage(reminderText);
|
|
12927
|
-
}, 50);
|
|
12912
|
+
try {
|
|
12913
|
+
await state.harness.sendSignal({
|
|
12914
|
+
type: "system-reminder",
|
|
12915
|
+
contents: "The user has approved the plan, begin executing."
|
|
12916
|
+
}).accepted;
|
|
12917
|
+
} catch (err) {
|
|
12918
|
+
ctx.showError(`Failed to start build agent: ${err instanceof Error ? err.message : String(err)}`);
|
|
12919
|
+
}
|
|
12928
12920
|
resolve3();
|
|
12929
12921
|
},
|
|
12930
12922
|
onGoal: async () => {
|
|
12931
12923
|
state.activeInlinePlanApproval = void 0;
|
|
12932
12924
|
await approvePlan(ctx, planId, title, plan);
|
|
12933
12925
|
const objective = formatPlanGoalObjective(title, plan);
|
|
12934
|
-
await ctx.startGoal(objective, "Goal cancelled."
|
|
12935
|
-
setTimeout(() => {
|
|
12936
|
-
ctx.fireMessage(createGoalReminderXml(objective));
|
|
12937
|
-
}, 50);
|
|
12926
|
+
await ctx.startGoal(objective, "Goal cancelled.");
|
|
12938
12927
|
resolve3();
|
|
12939
12928
|
},
|
|
12940
12929
|
onReject: async (feedback) => {
|
|
@@ -15467,5 +15456,5 @@ Would you like to update now?`;
|
|
|
15467
15456
|
};
|
|
15468
15457
|
|
|
15469
15458
|
export { AssistantMessageComponent, LoginDialogComponent, LoginSelectorComponent, MastraTUI, ModelSelectorComponent, OMProgressComponent, ToolExecutionComponentEnhanced, UserMessageComponent, createTUIState, detectTerminalTheme, formatOMStatus, getCurrentVersion };
|
|
15470
|
-
//# sourceMappingURL=chunk-
|
|
15471
|
-
//# sourceMappingURL=chunk-
|
|
15459
|
+
//# sourceMappingURL=chunk-NGJXCCTA.js.map
|
|
15460
|
+
//# sourceMappingURL=chunk-NGJXCCTA.js.map
|