@staff0rd/assist 0.418.0 → 0.419.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/dist/commands/sessions/web/bundle.js +355 -355
- package/dist/index.js +9 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6,7 +6,7 @@ import { Command } from "commander";
|
|
|
6
6
|
// package.json
|
|
7
7
|
var package_default = {
|
|
8
8
|
name: "@staff0rd/assist",
|
|
9
|
-
version: "0.
|
|
9
|
+
version: "0.419.1",
|
|
10
10
|
type: "module",
|
|
11
11
|
main: "dist/index.js",
|
|
12
12
|
bin: {
|
|
@@ -18526,8 +18526,11 @@ drafted title and body are shown automatically in a preview pane beside the
|
|
|
18526
18526
|
terminal in the web UI, for the user to approve or reject there \u2014 do NOT display
|
|
18527
18527
|
the title and body or ask for confirmation in the terminal. The command blocks
|
|
18528
18528
|
until the user decides: on approval it creates or updates the PR and reports it;
|
|
18529
|
-
on rejection it exits non-zero with the reason
|
|
18530
|
-
|
|
18529
|
+
on rejection it exits non-zero with the reason. The reviewer may also attach
|
|
18530
|
+
inline comments to specific spans of the preview; on rejection these are printed
|
|
18531
|
+
as numbered quoted-span + note pairs on stderr. Address every comment (and the
|
|
18532
|
+
reason), then run the command again to re-preview the revised PR. Repeat until it
|
|
18533
|
+
is approved. Just compose the sections and run the command.`;
|
|
18531
18534
|
function raiseHelpText() {
|
|
18532
18535
|
const confirm = process.env.ASSIST_SESSION === "1" ? WEB_CONFIRM : TERMINAL_CONFIRM;
|
|
18533
18536
|
return `
|
|
@@ -25949,6 +25952,7 @@ function handlePtyExit(session, exitCode, onStatusChange) {
|
|
|
25949
25952
|
resume();
|
|
25950
25953
|
return;
|
|
25951
25954
|
}
|
|
25955
|
+
session.pty = null;
|
|
25952
25956
|
if (handleStoppedExit(session, exitCode, onStatusChange)) return;
|
|
25953
25957
|
refreshActivity(session);
|
|
25954
25958
|
if (handleFailedResume(session, exitCode, onStatusChange)) return;
|
|
@@ -26065,7 +26069,8 @@ function restartSession(session, clients, onStatusChange) {
|
|
|
26065
26069
|
daemonLog(`session ${session.id} restarted (${via}): ${session.name}`);
|
|
26066
26070
|
};
|
|
26067
26071
|
const pty2 = session.pty;
|
|
26068
|
-
|
|
26072
|
+
const alive = session.status === "running" || session.status === "waiting";
|
|
26073
|
+
if (pty2 && alive) {
|
|
26069
26074
|
daemonLog(
|
|
26070
26075
|
`session ${session.id} restart requested: killing running process, will resume on exit`
|
|
26071
26076
|
);
|