@tritard/waterbrother 0.8.0 → 0.8.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/package.json +1 -1
- package/src/cli.js +7 -1
package/package.json
CHANGED
package/src/cli.js
CHANGED
|
@@ -2888,9 +2888,9 @@ async function runUpdateCommand({ cwd, asJson = false }) {
|
|
|
2888
2888
|
|
|
2889
2889
|
const inside = await runExecStep("git", ["rev-parse", "--is-inside-work-tree"], { cwd: installRoot });
|
|
2890
2890
|
const isGitRepo = inside.ok && inside.stdout.trim() === "true";
|
|
2891
|
-
steps.push(inside);
|
|
2892
2891
|
|
|
2893
2892
|
if (isGitRepo) {
|
|
2893
|
+
steps.push(inside);
|
|
2894
2894
|
const branch = await runExecStep("git", ["rev-parse", "--abbrev-ref", "HEAD"], { cwd: installRoot });
|
|
2895
2895
|
steps.push(branch);
|
|
2896
2896
|
|
|
@@ -5886,6 +5886,12 @@ async function promptLoop(agent, session, context) {
|
|
|
5886
5886
|
handlers: {
|
|
5887
5887
|
signal: abortController?.signal,
|
|
5888
5888
|
onStateChange(state) { currentState = state; },
|
|
5889
|
+
onPlan(plan) {
|
|
5890
|
+
spinner.stop();
|
|
5891
|
+
console.log(formatPlanForDisplay(plan));
|
|
5892
|
+
printRailRewritten("executing");
|
|
5893
|
+
spinner.setLabel("executing plan...");
|
|
5894
|
+
},
|
|
5889
5895
|
onAssistantDelta() {},
|
|
5890
5896
|
onToolStart(toolCall) {
|
|
5891
5897
|
const toolName = toolCall?.function?.name || "tool";
|