@staff0rd/assist 0.330.0 → 0.330.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 +38 -38
- package/dist/index.js +12 -6
- 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.330.
|
|
9
|
+
version: "0.330.1",
|
|
10
10
|
type: "module",
|
|
11
11
|
main: "dist/index.js",
|
|
12
12
|
bin: {
|
|
@@ -6274,18 +6274,24 @@ async function prList(req, res) {
|
|
|
6274
6274
|
}
|
|
6275
6275
|
|
|
6276
6276
|
// src/commands/sessions/web/prStatus.ts
|
|
6277
|
-
var
|
|
6278
|
-
["pr", "view", "--json", "number"],
|
|
6277
|
+
var getPr = createCachedGhJson(
|
|
6278
|
+
["pr", "view", "--json", "number,title,author,createdAt"],
|
|
6279
6279
|
(stdout) => {
|
|
6280
6280
|
const parsed = JSON.parse(stdout);
|
|
6281
|
-
|
|
6281
|
+
if (typeof parsed.number !== "number") return null;
|
|
6282
|
+
return {
|
|
6283
|
+
number: parsed.number,
|
|
6284
|
+
title: parsed.title ?? "",
|
|
6285
|
+
author: parsed.author?.name || parsed.author?.login || "unknown",
|
|
6286
|
+
createdAt: parsed.createdAt ?? ""
|
|
6287
|
+
};
|
|
6282
6288
|
},
|
|
6283
6289
|
null
|
|
6284
6290
|
);
|
|
6285
6291
|
async function prStatus(req, res) {
|
|
6286
6292
|
const cwd = getCwdParam(req, res);
|
|
6287
6293
|
if (!cwd) return;
|
|
6288
|
-
respondJson(res, 200, {
|
|
6294
|
+
respondJson(res, 200, { pr: await getPr(cwd) });
|
|
6289
6295
|
}
|
|
6290
6296
|
|
|
6291
6297
|
// src/commands/sessions/daemon/stopDaemon.ts
|
|
@@ -21257,7 +21263,7 @@ function watchActivity(session, notify2) {
|
|
|
21257
21263
|
} catch {
|
|
21258
21264
|
return;
|
|
21259
21265
|
}
|
|
21260
|
-
|
|
21266
|
+
reconcileActivity(session.id, session.activity);
|
|
21261
21267
|
let timer = null;
|
|
21262
21268
|
const read = () => {
|
|
21263
21269
|
timer = null;
|