@deathbeam/pi-delegate 0.0.29 → 0.0.30
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/format.ts +6 -1
- package/index.ts +4 -1
- package/isolation.ts +0 -1
- package/package.json +1 -1
package/format.ts
CHANGED
|
@@ -277,7 +277,12 @@ export function reportText(report: DelegateReport): string {
|
|
|
277
277
|
const head = `Delegate "${report.agent}" (job ${report.id}, ${usageStats(report, report.elapsedMs)})`;
|
|
278
278
|
if (report.error) return `${head} failed: ${report.error}\n${reviveHint(report.id)}`;
|
|
279
279
|
const output = (report.output ?? "").trim();
|
|
280
|
-
|
|
280
|
+
// The apply hint is for the model only: the transcript renders `output`, so users never see it.
|
|
281
|
+
const hint =
|
|
282
|
+
report.isolation && !report.cloneClosed
|
|
283
|
+
? `\n\nCall delegate_apply with job ${report.id} to land its changes.`
|
|
284
|
+
: "";
|
|
285
|
+
return `${head} finished.${output ? `\n\n${output}` : ""}${hint}`;
|
|
281
286
|
}
|
|
282
287
|
|
|
283
288
|
export function jobLine(info: { description?: string } & UsageInfo, elapsedMs: number): string {
|
package/index.ts
CHANGED
|
@@ -363,7 +363,10 @@ export default function (pi: ExtensionAPI) {
|
|
|
363
363
|
new Text(resultHeader(theme, report, jobSummary(report), report.error ? "failed" : "done"), 0, 0),
|
|
364
364
|
);
|
|
365
365
|
if (report.error) container.addChild(new Text(theme.fg("error", report.error), 0, 0));
|
|
366
|
-
else if (report.output)
|
|
366
|
+
else if (report.output) {
|
|
367
|
+
container.addChild(new Spacer(1));
|
|
368
|
+
appendOutput(container, report.output, expanded, theme);
|
|
369
|
+
}
|
|
367
370
|
return container;
|
|
368
371
|
});
|
|
369
372
|
|
package/isolation.ts
CHANGED
|
@@ -122,7 +122,6 @@ export function isolationSummary(iso: IsolationState): string {
|
|
|
122
122
|
} catch {
|
|
123
123
|
// The clone may already be applied or gone; the path alone still says where the work lives.
|
|
124
124
|
}
|
|
125
|
-
lines.push("Apply with delegate_apply to land these changes in the main tree.");
|
|
126
125
|
return lines.join("\n");
|
|
127
126
|
}
|
|
128
127
|
|