@staff0rd/assist 0.729.0 → 0.729.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/README.md +2 -3
- package/dist/commands/sessions/web/bundle.js +340 -340
- package/dist/index.js +13 -21
- 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.729.
|
|
9
|
+
version: "0.729.1",
|
|
10
10
|
type: "module",
|
|
11
11
|
main: "dist/index.js",
|
|
12
12
|
bin: {
|
|
@@ -858,8 +858,7 @@ var assistConfigShape = {
|
|
|
858
858
|
}).optional(),
|
|
859
859
|
next: z3.strictObject({
|
|
860
860
|
peers: z3.array(z3.string()).optional(),
|
|
861
|
-
|
|
862
|
-
issueRepos: z3.array(z3.string()).optional()
|
|
861
|
+
repos: z3.array(z3.string()).optional()
|
|
863
862
|
}).optional(),
|
|
864
863
|
deny: z3.array(
|
|
865
864
|
z3.strictObject({
|
|
@@ -12566,14 +12565,9 @@ var nextConfigHelp = [
|
|
|
12566
12565
|
note: "GitHub logins whose open, non-draft PRs the web /next view lists for review alongside PRs requesting your review; PRs you approved with no newer commits are hidden"
|
|
12567
12566
|
},
|
|
12568
12567
|
{
|
|
12569
|
-
key: "next.
|
|
12570
|
-
setter: "assist config set next.
|
|
12571
|
-
note: "owner/name GitHub repos the web /next view reads peer PRs from (default: the selected repo)"
|
|
12572
|
-
},
|
|
12573
|
-
{
|
|
12574
|
-
key: "next.issueRepos",
|
|
12575
|
-
setter: "assist config set next.issueRepos owner/api,owner/web -g --repo",
|
|
12576
|
-
note: "owner/name GitHub repos the web /next view reads issues assigned to you from (default: the selected repo)"
|
|
12568
|
+
key: "next.repos",
|
|
12569
|
+
setter: "assist config set next.repos owner/api,owner/web -g --repo",
|
|
12570
|
+
note: "owner/name GitHub repos the web /next view reads peer PRs and issues assigned to you from (default: the selected repo)"
|
|
12577
12571
|
}
|
|
12578
12572
|
];
|
|
12579
12573
|
|
|
@@ -13869,8 +13863,7 @@ function nextScope(cwd) {
|
|
|
13869
13863
|
return {
|
|
13870
13864
|
selfRepo: githubRepo(cwd),
|
|
13871
13865
|
peers: next3?.peers ?? [],
|
|
13872
|
-
|
|
13873
|
-
issueRepos: next3?.issueRepos ?? null
|
|
13866
|
+
repos: next3?.repos ?? null
|
|
13874
13867
|
};
|
|
13875
13868
|
}
|
|
13876
13869
|
|
|
@@ -13886,11 +13879,11 @@ function errorMessage(error) {
|
|
|
13886
13879
|
if (typeof stderr === "string" && stderr.trim()) return stderr.trim();
|
|
13887
13880
|
return error instanceof Error ? error.message : String(error);
|
|
13888
13881
|
}
|
|
13889
|
-
async function sectionAcross(repos2, load3, compare
|
|
13882
|
+
async function sectionAcross(repos2, load3, compare) {
|
|
13890
13883
|
if (repos2.length === 0)
|
|
13891
13884
|
return {
|
|
13892
13885
|
items: [],
|
|
13893
|
-
error:
|
|
13886
|
+
error: "No GitHub repo to read: set next.repos or select a repo with a GitHub origin."
|
|
13894
13887
|
};
|
|
13895
13888
|
const results = await Promise.allSettled(repos2.map((repo) => load3(repo)));
|
|
13896
13889
|
const items2 = [];
|
|
@@ -13910,18 +13903,17 @@ async function nextItems(req, res) {
|
|
|
13910
13903
|
const cwd = getCwdParam(req, res);
|
|
13911
13904
|
if (!cwd) return;
|
|
13912
13905
|
const scope = nextScope(cwd);
|
|
13906
|
+
const repos2 = scopeRepos(scope.repos, scope.selfRepo);
|
|
13913
13907
|
const [peerPrs, assignedIssues] = await Promise.all([
|
|
13914
13908
|
sectionAcross(
|
|
13915
|
-
|
|
13909
|
+
repos2,
|
|
13916
13910
|
(repo) => fetchPeerPrs(cwd, repo, scope.peers),
|
|
13917
|
-
(a, b) => a.requestedAt.localeCompare(b.requestedAt)
|
|
13918
|
-
"next.prRepos"
|
|
13911
|
+
(a, b) => a.requestedAt.localeCompare(b.requestedAt)
|
|
13919
13912
|
),
|
|
13920
13913
|
sectionAcross(
|
|
13921
|
-
|
|
13914
|
+
repos2,
|
|
13922
13915
|
(repo) => fetchAssignedIssues(cwd, repo),
|
|
13923
|
-
(a, b) => a.createdAt.localeCompare(b.createdAt)
|
|
13924
|
-
"next.issueRepos"
|
|
13916
|
+
(a, b) => a.createdAt.localeCompare(b.createdAt)
|
|
13925
13917
|
)
|
|
13926
13918
|
]);
|
|
13927
13919
|
const body = { scope, peerPrs, assignedIssues };
|