@staff0rd/assist 0.687.0 → 0.688.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 +402 -402
- package/dist/index.js +8 -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.688.1",
|
|
10
10
|
type: "module",
|
|
11
11
|
main: "dist/index.js",
|
|
12
12
|
bin: {
|
|
@@ -32331,11 +32331,12 @@ function fetchHighLevelFiles(prNumber, repo) {
|
|
|
32331
32331
|
import { execSync as execSync61 } from "child_process";
|
|
32332
32332
|
function fetchHighLevelPr(prNumber, repo) {
|
|
32333
32333
|
const raw = execSync61(
|
|
32334
|
-
`gh pr view ${prNumber} --json body,headRefName,headRefOid -R ${repo.org}/${repo.repo}`,
|
|
32334
|
+
`gh pr view ${prNumber} --json title,body,headRefName,headRefOid -R ${repo.org}/${repo.repo}`,
|
|
32335
32335
|
{ encoding: "utf8" }
|
|
32336
32336
|
);
|
|
32337
32337
|
const pr = JSON.parse(raw);
|
|
32338
32338
|
return {
|
|
32339
|
+
title: pr.title ?? "",
|
|
32339
32340
|
body: pr.body ?? "",
|
|
32340
32341
|
headRef: pr.headRefName,
|
|
32341
32342
|
headSha: pr.headRefOid
|
|
@@ -32401,6 +32402,7 @@ function gatherHighLevelSubject(prNumber, force) {
|
|
|
32401
32402
|
return {
|
|
32402
32403
|
repo: slug2,
|
|
32403
32404
|
prNumber,
|
|
32405
|
+
title: pr.title,
|
|
32404
32406
|
headRef: pr.headRef,
|
|
32405
32407
|
headSha: pr.headSha,
|
|
32406
32408
|
checks: evaluateHighLevelChecks({
|
|
@@ -32504,7 +32506,7 @@ async function openHighLevelOverlay(sessionId, subject) {
|
|
|
32504
32506
|
{
|
|
32505
32507
|
sessionId,
|
|
32506
32508
|
requestId: randomUUID17(),
|
|
32507
|
-
title:
|
|
32509
|
+
title: `${subject.repo}#${subject.prNumber} \u2014 ${subject.title}`,
|
|
32508
32510
|
body: JSON.stringify(highLevelPreviewPayload(subject)),
|
|
32509
32511
|
prNumber: subject.prNumber,
|
|
32510
32512
|
kind: "high-level-review",
|
|
@@ -32625,7 +32627,9 @@ function formatHighLevelStructure(structure) {
|
|
|
32625
32627
|
// src/commands/review/highLevel/printHighLevelChecklist.ts
|
|
32626
32628
|
function printHighLevelChecklist(subject) {
|
|
32627
32629
|
console.log(
|
|
32628
|
-
chalk226.bold(
|
|
32630
|
+
chalk226.bold(
|
|
32631
|
+
`High-level review of ${subject.repo}#${subject.prNumber} \u2014 ${subject.title}`
|
|
32632
|
+
),
|
|
32629
32633
|
chalk226.dim(
|
|
32630
32634
|
`\xB7 ${highLevelChangedFileCount(subject.structure)} changed files`
|
|
32631
32635
|
)
|