pi-farm 0.4.0 → 0.4.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/extensions/pp-tmux.js +6 -0
- package/package.json +1 -1
package/extensions/pp-tmux.js
CHANGED
|
@@ -187,6 +187,12 @@ export default function ppTmux(pi) {
|
|
|
187
187
|
await handler(args, ctx);
|
|
188
188
|
} catch (error) {
|
|
189
189
|
const message = error instanceof Error ? error.message : String(error);
|
|
190
|
+
if (!ctx.hasUI && ctx.mode === "print") {
|
|
191
|
+
// no TUI to notify: surface the failure to the shell instead of exiting 0
|
|
192
|
+
process.stderr.write(`pp: ${message}\n`);
|
|
193
|
+
process.exitCode = 1;
|
|
194
|
+
return;
|
|
195
|
+
}
|
|
190
196
|
ctx.ui.notify(message, "error");
|
|
191
197
|
}
|
|
192
198
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-farm",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.1",
|
|
4
4
|
"description": "Declarative tmux sessions for pi coding agents (CLI: pp). One YAML drives the tmux session, pi session id/name and remote-pi mesh name, and survives reboots.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|