@staff0rd/assist 0.1236.1 → 0.1236.2
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/.build-files +32 -31
- package/dist/built-version +1 -1
- package/dist/{chunk-KB7HVXR3.js → chunk-77KP3CTK.js} +1 -1
- package/dist/{chunk-VHRROHRC.js → chunk-BBF4RRJR.js} +1 -1
- package/dist/{chunk-H2UNFXB2.js → chunk-FVCGWLR4.js} +1 -1
- package/dist/{chunk-GMRZU3OG.js → chunk-HNLG7EJC.js} +1 -1
- package/dist/{chunk-AVLELL42.js → chunk-J6GYNYUW.js} +16 -1
- package/dist/chunk-K2MVEETY.js +15 -0
- package/dist/chunk-MKXONMBX.js +52 -0
- package/dist/{chunk-C3MGHR3N.js → chunk-MTTGHICE.js} +1 -11
- package/dist/{chunk-IOQGN3AI.js → chunk-NX2KZ5RW.js} +2 -2
- package/dist/{chunk-JAZX2JSS.js → chunk-RKRPVM7T.js} +2 -4
- package/dist/{chunk-ITONDN24.js → chunk-S5IM25QR.js} +1 -1
- package/dist/{chunk-447SO2NK.js → chunk-WDSOVOXJ.js} +1 -1
- package/dist/{chunk-APR23G2L.js → chunk-WJNUHB2P.js} +6 -14
- package/dist/{chunk-7QKIU4J6.js → chunk-XAKUVCAA.js} +1 -1
- package/dist/commands/sessions/web/bundle.js +1 -1
- package/dist/{comment-QCXXFHAE.js → comment-Q2E4ZSR7.js} +3 -3
- package/dist/{commentIssue-MF42XVP5.js → commentIssue-H4AKS4G3.js} +4 -4
- package/dist/{commit-S7B2QZVQ.js → commit-ZAJF2RAY.js} +3 -4
- package/dist/{createIssue-2DSC5YPL.js → createIssue-QAYDBQ3A.js} +3 -3
- package/dist/{doctorNodes-EZVNTVAK.js → doctorNodes-WP5YWRXP.js} +3 -3
- package/dist/{edit-OFDAZJXM.js → edit-KPUOFWHE.js} +4 -4
- package/dist/{editIssue-GHHFCOEM.js → editIssue-YXRCWEOY.js} +3 -3
- package/dist/{editIssueComment-B2NHIXTK.js → editIssueComment-VRDUMWW3.js} +4 -4
- package/dist/index.js +34 -27
- package/dist/{raise-7O2USUIA.js → raise-PTWQ44G2.js} +4 -4
- package/dist/{reply-NKVUQ7CW.js → reply-Z6BRCAF4.js} +6 -13
- package/dist/{restartNode-PSRCY6X7.js → restartNode-YPEEQ7J6.js} +5 -5
- package/dist/{review-5AHHT6JE.js → review-FL3OKTUY.js} +6 -13
- package/dist/{runDaemon-AOPVKUT6.js → runDaemon-HT3DTL32.js} +2 -2
- package/dist/{signExtension-XWB2OC3M.js → signExtension-MVO3U3DE.js} +1 -1
- package/dist/{updateNode-QCXSC7GE.js → updateNode-35GYVT4L.js} +5 -5
- package/dist/{web-2XRICKF4.js → web-QJUR24JS.js} +5 -5
- package/dist/{web-OPE5UQPK.js → web-RFYNPA2L.js} +5 -5
- package/dist/{wontfix-3ZPBKWVM.js → wontfix-OE4HH73U.js} +6 -13
- package/package.json +1 -1
- package/dist/chunk-UOFXNSGZ.js +0 -22
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolveCommentWithReply
|
|
3
3
|
} from "./chunk-XCMXBJ67.js";
|
|
4
|
+
import {
|
|
5
|
+
rejectHarnessNames
|
|
6
|
+
} from "./chunk-K2MVEETY.js";
|
|
4
7
|
import {
|
|
5
8
|
reviewProposedPrComment
|
|
6
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-MKXONMBX.js";
|
|
7
10
|
import "./chunk-JUVR4JSY.js";
|
|
8
11
|
import "./chunk-556BOFTS.js";
|
|
9
12
|
import "./chunk-4AZGXA6X.js";
|
|
@@ -12,9 +15,7 @@ import "./chunk-XT3AOF2P.js";
|
|
|
12
15
|
import {
|
|
13
16
|
isGhNotInstalled
|
|
14
17
|
} from "./chunk-SO3IBV6J.js";
|
|
15
|
-
import
|
|
16
|
-
rejectHarnessAttribution
|
|
17
|
-
} from "./chunk-C3MGHR3N.js";
|
|
18
|
+
import "./chunk-MTTGHICE.js";
|
|
18
19
|
import "./chunk-IWQEVVOM.js";
|
|
19
20
|
import "./chunk-Y4C5PXGS.js";
|
|
20
21
|
import "./chunk-XPKMXE5G.js";
|
|
@@ -35,14 +36,6 @@ import "./chunk-JJKKIBF5.js";
|
|
|
35
36
|
|
|
36
37
|
// src/commands/prs/wontfix.ts
|
|
37
38
|
import { execFileSync } from "child_process";
|
|
38
|
-
function validateReason(reason) {
|
|
39
|
-
const lowerReason = reason.toLowerCase();
|
|
40
|
-
if (lowerReason.includes("claude") || lowerReason.includes("opus")) {
|
|
41
|
-
console.error('Error: Reason must not contain "claude" or "opus"');
|
|
42
|
-
process.exit(1);
|
|
43
|
-
}
|
|
44
|
-
rejectHarnessAttribution("Reason", reason);
|
|
45
|
-
}
|
|
46
39
|
function validateShaReferences(reason) {
|
|
47
40
|
const commitLinkPattern = /\[[0-9a-f]{7}\]\(https:\/\/(?:github\.com\/[^/]+\/[^/]+|dev\.azure\.com\/[^/]+\/[^/]+\/_git\/[^/]+)\/commit\/([0-9a-f]{40})\)/gi;
|
|
48
41
|
const shas = Array.from(reason.matchAll(commitLinkPattern), (m) => m[1]);
|
|
@@ -65,7 +58,7 @@ function validateShaReferences(reason) {
|
|
|
65
58
|
}
|
|
66
59
|
}
|
|
67
60
|
async function wontfix(commentId, reason) {
|
|
68
|
-
|
|
61
|
+
rejectHarnessNames("Reason", reason);
|
|
69
62
|
validateShaReferences(reason);
|
|
70
63
|
await reviewProposedPrComment(
|
|
71
64
|
`Won't fix comment #${commentId}`,
|
package/package.json
CHANGED
package/dist/chunk-UOFXNSGZ.js
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
awaitPreviewApproval
|
|
3
|
-
} from "./chunk-IWQEVVOM.js";
|
|
4
|
-
|
|
5
|
-
// src/commands/prs/reviewProposedPrComment.ts
|
|
6
|
-
import { randomUUID } from "crypto";
|
|
7
|
-
async function reviewProposedPrComment(title, body, prNumber) {
|
|
8
|
-
const sessionId = process.env.ASSIST_SESSION_ID;
|
|
9
|
-
if (process.env.ASSIST_SESSION !== "1" || !sessionId) return;
|
|
10
|
-
await awaitPreviewApproval("PR comment preview", {
|
|
11
|
-
sessionId,
|
|
12
|
-
requestId: randomUUID(),
|
|
13
|
-
title,
|
|
14
|
-
body,
|
|
15
|
-
prNumber,
|
|
16
|
-
kind: "pr-comment"
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
export {
|
|
21
|
-
reviewProposedPrComment
|
|
22
|
-
};
|