@staff0rd/assist 0.1200.0 → 0.1201.0
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 +42 -41
- package/dist/{addPhase-572KZDOK.js → addPhase-CZB2NDCE.js} +2 -2
- package/dist/{ask-XTA5XMDM.js → ask-W6LDTU4O.js} +3 -3
- package/dist/{askCheck-5AEU7R3U.js → askCheck-LNNW4QJZ.js} +2 -2
- package/dist/{askDesign-PP37KDLX.js → askDesign-AEOLPZZW.js} +3 -3
- package/dist/{askQuestion-SBC6XZHQ.js → askQuestion-HTD7WJNW.js} +2 -2
- package/dist/built-version +1 -1
- package/dist/{chunk-KU3BOP7V.js → chunk-2FMLALED.js} +3 -2
- package/dist/{chunk-3SXTAYP6.js → chunk-2SUYZBUS.js} +31 -4
- package/dist/{chunk-L4MFIOZ7.js → chunk-44J4Z6ZD.js} +1 -1
- package/dist/{chunk-PSSNCOG4.js → chunk-5WVRYPT6.js} +1 -1
- package/dist/{chunk-OSFBFZ4O.js → chunk-64Y7R56K.js} +1 -1
- package/dist/{chunk-BTLMJ735.js → chunk-DWME6U5L.js} +1 -1
- package/dist/{chunk-IPEA3FVY.js → chunk-FIQF3MRJ.js} +1 -1
- package/dist/{chunk-7TOQJOMN.js → chunk-GMWPOFBP.js} +1 -1
- package/dist/{chunk-7RKBRJ2N.js → chunk-H4IYTDNE.js} +1 -1
- package/dist/{chunk-BLFNT23D.js → chunk-R6M6DZHE.js} +1 -1
- package/dist/{chunk-TLWDKKRG.js → chunk-TGBXFCAG.js} +1 -1
- package/dist/chunk-WC4M6JEA.js +10 -0
- package/dist/{chunk-HCDJLCN4.js → chunk-Y4C5PXGS.js} +4 -0
- package/dist/{chunk-OWAUNGD6.js → chunk-YAEP4TMV.js} +1 -1
- package/dist/commands/extension/extension/content.js +20 -20
- package/dist/commands/sessions/web/bundle.js +382 -382
- package/dist/{comment-CEDFMOXC.js → comment-EFWTK74F.js} +4 -4
- package/dist/{commentIssue-PT3WJ7WF.js → commentIssue-YGGK2GEG.js} +3 -3
- package/dist/{createIssue-RHHIMF44.js → createIssue-IUVF3LBJ.js} +2 -2
- package/dist/{doctorNodes-6DM6TSTY.js → doctorNodes-TXXEZ6IV.js} +3 -3
- package/dist/{edit-IBDT3I4O.js → edit-JVAW5GKZ.js} +2 -2
- package/dist/{editIssue-XGP2RL2O.js → editIssue-CJP5LATW.js} +2 -2
- package/dist/{editIssueComment-G7XE73QZ.js → editIssueComment-4X62P25Z.js} +3 -3
- package/dist/index.js +35 -32
- package/dist/{postSlackMessage-QVUIQY6T.js → postSlackMessage-XBKKBMTS.js} +3 -3
- package/dist/{propose-XTDFZXZI.js → propose-VIECXYXL.js} +2 -2
- package/dist/{raise-PXY3YLOB.js → raise-DCYXEW4X.js} +2 -2
- package/dist/{reply-VPQL6VJB.js → reply-G5VCPB36.js} +3 -3
- package/dist/{restartNode-6MUR7LFA.js → restartNode-4ZOHCTN3.js} +5 -5
- package/dist/{review-36GCDNOH.js → review-XQ6GHRHA.js} +41 -8
- package/dist/{rulesAdd-MTHY5RTQ.js → rulesAdd-ODST2JQ4.js} +3 -3
- package/dist/{runDaemon-IXCP5IWF.js → runDaemon-G7QYLH6K.js} +137 -51
- package/dist/{runExtract-2QQLXAU7.js → runExtract-MJUEAUR5.js} +2 -2
- package/dist/{signExtension-NWQUUCGP.js → signExtension-TPFBHFQL.js} +1 -1
- package/dist/{slack-6ML35TRH.js → slack-LGXMV376.js} +3 -3
- package/dist/{updateNode-LE2SL72V.js → updateNode-E3U7HM7W.js} +5 -5
- package/dist/{updatePlan-CFOXHKSR.js → updatePlan-NIDFJK6O.js} +2 -2
- package/dist/{web-FTMINBKK.js → web-UMEUQ4HN.js} +5 -5
- package/dist/{web-ATOALRME.js → web-XS6CKVNO.js} +5 -5
- package/dist/{wontfix-3ZV2NW5C.js → wontfix-VUVHWVNB.js} +3 -3
- package/package.json +1 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
comment
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-YAEP4TMV.js";
|
|
4
|
+
import "./chunk-5WVRYPT6.js";
|
|
5
5
|
import "./chunk-ZLRZR64W.js";
|
|
6
6
|
import "./chunk-SO3IBV6J.js";
|
|
7
7
|
import "./chunk-C3MGHR3N.js";
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-2FMLALED.js";
|
|
9
|
+
import "./chunk-Y4C5PXGS.js";
|
|
10
10
|
import "./chunk-P7SERZI6.js";
|
|
11
11
|
import "./chunk-3VDV7VHX.js";
|
|
12
12
|
import "./chunk-ZFX4EZMW.js";
|
|
@@ -6,14 +6,14 @@ import {
|
|
|
6
6
|
} from "./chunk-EPVBZE3T.js";
|
|
7
7
|
import {
|
|
8
8
|
reviewProposedIssueComment
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-DWME6U5L.js";
|
|
10
10
|
import {
|
|
11
11
|
validateProposedContent
|
|
12
12
|
} from "./chunk-JAZX2JSS.js";
|
|
13
13
|
import "./chunk-AVLELL42.js";
|
|
14
14
|
import "./chunk-C3MGHR3N.js";
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-2FMLALED.js";
|
|
16
|
+
import "./chunk-Y4C5PXGS.js";
|
|
17
17
|
import "./chunk-P7SERZI6.js";
|
|
18
18
|
import "./chunk-3VDV7VHX.js";
|
|
19
19
|
import "./chunk-B7B26YPF.js";
|
|
@@ -30,8 +30,8 @@ import "./chunk-C3MGHR3N.js";
|
|
|
30
30
|
import "./chunk-FVZP4ULO.js";
|
|
31
31
|
import {
|
|
32
32
|
awaitPreviewApproval
|
|
33
|
-
} from "./chunk-
|
|
34
|
-
import "./chunk-
|
|
33
|
+
} from "./chunk-2FMLALED.js";
|
|
34
|
+
import "./chunk-Y4C5PXGS.js";
|
|
35
35
|
import "./chunk-P7SERZI6.js";
|
|
36
36
|
import "./chunk-3VDV7VHX.js";
|
|
37
37
|
import "./chunk-B7B26YPF.js";
|
|
@@ -9,10 +9,10 @@ import {
|
|
|
9
9
|
import {
|
|
10
10
|
buildDoctorProbes,
|
|
11
11
|
diagnoseLink
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-R6M6DZHE.js";
|
|
13
13
|
import "./chunk-VABNWHSE.js";
|
|
14
14
|
import "./chunk-DS2YJZZY.js";
|
|
15
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-44J4Z6ZD.js";
|
|
16
16
|
import {
|
|
17
17
|
loadLinkSpecs
|
|
18
18
|
} from "./chunk-J2PPCMCR.js";
|
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
detectPlatform
|
|
31
31
|
} from "./chunk-E36L7ASL.js";
|
|
32
32
|
import "./chunk-GIHVMELY.js";
|
|
33
|
-
import "./chunk-
|
|
33
|
+
import "./chunk-TGBXFCAG.js";
|
|
34
34
|
import "./chunk-5QM5VR3J.js";
|
|
35
35
|
import "./chunk-UFSOFNXQ.js";
|
|
36
36
|
import "./chunk-FLDRXYEM.js";
|
|
@@ -23,8 +23,8 @@ import "./chunk-C3MGHR3N.js";
|
|
|
23
23
|
import "./chunk-FVZP4ULO.js";
|
|
24
24
|
import {
|
|
25
25
|
awaitPreviewApproval
|
|
26
|
-
} from "./chunk-
|
|
27
|
-
import "./chunk-
|
|
26
|
+
} from "./chunk-2FMLALED.js";
|
|
27
|
+
import "./chunk-Y4C5PXGS.js";
|
|
28
28
|
import "./chunk-P7SERZI6.js";
|
|
29
29
|
import "./chunk-3VDV7VHX.js";
|
|
30
30
|
import "./chunk-B7B26YPF.js";
|
|
@@ -28,8 +28,8 @@ import {
|
|
|
28
28
|
import "./chunk-FVZP4ULO.js";
|
|
29
29
|
import {
|
|
30
30
|
awaitPreviewApproval
|
|
31
|
-
} from "./chunk-
|
|
32
|
-
import "./chunk-
|
|
31
|
+
} from "./chunk-2FMLALED.js";
|
|
32
|
+
import "./chunk-Y4C5PXGS.js";
|
|
33
33
|
import "./chunk-P7SERZI6.js";
|
|
34
34
|
import {
|
|
35
35
|
readBodyArgument
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
reviewProposedIssueComment
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-DWME6U5L.js";
|
|
4
4
|
import {
|
|
5
5
|
validateProposedContent
|
|
6
6
|
} from "./chunk-JAZX2JSS.js";
|
|
@@ -11,8 +11,8 @@ import "./chunk-SO3IBV6J.js";
|
|
|
11
11
|
import "./chunk-YIBSK5OC.js";
|
|
12
12
|
import "./chunk-AVLELL42.js";
|
|
13
13
|
import "./chunk-C3MGHR3N.js";
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-2FMLALED.js";
|
|
15
|
+
import "./chunk-Y4C5PXGS.js";
|
|
16
16
|
import "./chunk-P7SERZI6.js";
|
|
17
17
|
import "./chunk-3VDV7VHX.js";
|
|
18
18
|
import "./chunk-P5LQVJWN.js";
|
package/dist/index.js
CHANGED
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
} from "./chunk-TJGF3Z72.js";
|
|
18
18
|
import {
|
|
19
19
|
package_default
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-TGBXFCAG.js";
|
|
21
21
|
import {
|
|
22
22
|
adviceConfigHelp,
|
|
23
23
|
askQuestionConfigHelp,
|
|
@@ -92,7 +92,7 @@ import { Command } from "commander";
|
|
|
92
92
|
// src/commands/registerRootAction.ts
|
|
93
93
|
function registerRootAction(program) {
|
|
94
94
|
program.option("--no-open", "Do not open a browser on startup").action(
|
|
95
|
-
async (options) => (await import("./web-
|
|
95
|
+
async (options) => (await import("./web-UMEUQ4HN.js")).web({
|
|
96
96
|
port: "3100",
|
|
97
97
|
open: options.open
|
|
98
98
|
})
|
|
@@ -153,7 +153,7 @@ function registerAsk(program) {
|
|
|
153
153
|
).requiredOption("--title <title>", "Pane title").requiredOption(
|
|
154
154
|
"--body <markdown|->",
|
|
155
155
|
"Markdown to review, or - for stdin"
|
|
156
|
-
).action(lazyAction(() => import("./ask-
|
|
156
|
+
).action(lazyAction(() => import("./ask-W6LDTU4O.js"), "ask")),
|
|
157
157
|
"/ask"
|
|
158
158
|
);
|
|
159
159
|
}
|
|
@@ -170,7 +170,7 @@ function registerAskCheck(program) {
|
|
|
170
170
|
).option(
|
|
171
171
|
"--check <n>",
|
|
172
172
|
"1-based index of the current backlog phase's manual check this covers; lets the user move it to a later phase"
|
|
173
|
-
).action(lazyAction(() => import("./askCheck-
|
|
173
|
+
).action(lazyAction(() => import("./askCheck-LNNW4QJZ.js"), "askCheck")),
|
|
174
174
|
askQuestionConfigHelp
|
|
175
175
|
),
|
|
176
176
|
"Claude when asking the user to test a change"
|
|
@@ -185,7 +185,7 @@ function registerAskDesign(program) {
|
|
|
185
185
|
).requiredOption(
|
|
186
186
|
"--url <artifact-url>",
|
|
187
187
|
"claude.ai artifact link of the design"
|
|
188
|
-
).requiredOption("--title <title>", "Pane title").option("--body <markdown|->", "Markdown summary, or - for stdin").action(lazyAction(() => import("./askDesign-
|
|
188
|
+
).requiredOption("--title <title>", "Pane title").option("--body <markdown|->", "Markdown summary, or - for stdin").action(lazyAction(() => import("./askDesign-AEOLPZZW.js"), "askDesign")),
|
|
189
189
|
"/draft"
|
|
190
190
|
);
|
|
191
191
|
}
|
|
@@ -199,7 +199,7 @@ function registerAskQuestion(program) {
|
|
|
199
199
|
).requiredOption(
|
|
200
200
|
"--json <file|->",
|
|
201
201
|
"AskUserQuestion input JSON ({questions: [...]}), or - for stdin"
|
|
202
|
-
).action(lazyAction(() => import("./askQuestion-
|
|
202
|
+
).action(lazyAction(() => import("./askQuestion-HTD7WJNW.js"), "askQuestion")),
|
|
203
203
|
askQuestionConfigHelp
|
|
204
204
|
),
|
|
205
205
|
"Claude in place of AskUserQuestion"
|
|
@@ -357,7 +357,7 @@ function registerProposeCommand(cmd) {
|
|
|
357
357
|
"--confirmed",
|
|
358
358
|
"Create the item after its draft has been reviewed in chat (agent use outside a web session)"
|
|
359
359
|
).addHelpText("after", `
|
|
360
|
-
${proposeHelpText}`).action(lazyAction(() => import("./propose-
|
|
360
|
+
${proposeHelpText}`).action(lazyAction(() => import("./propose-VIECXYXL.js"), "propose")),
|
|
361
361
|
"/draft and /bug"
|
|
362
362
|
);
|
|
363
363
|
}
|
|
@@ -382,7 +382,7 @@ function registerItemCommands(cmd) {
|
|
|
382
382
|
).option(
|
|
383
383
|
"--depends-on <phase...>",
|
|
384
384
|
"Earlier phase numbers this phase waits for (default: the previous phase; pass none for no dependencies)"
|
|
385
|
-
).action(lazyAction(() => import("./addPhase-
|
|
385
|
+
).action(lazyAction(() => import("./addPhase-CZB2NDCE.js"), "addPhase"));
|
|
386
386
|
}
|
|
387
387
|
|
|
388
388
|
// src/commands/backlog/registerLinkCommands.ts
|
|
@@ -627,7 +627,7 @@ function registerUpdateCommands(cmd) {
|
|
|
627
627
|
).requiredOption(
|
|
628
628
|
"--json <file|->",
|
|
629
629
|
"Path to a JSON payload of { phases: [{ name, tasks, manualChecks?, dependsOn? }] }, or - to read it from stdin"
|
|
630
|
-
).action(lazyAction(() => import("./updatePlan-
|
|
630
|
+
).action(lazyAction(() => import("./updatePlan-NIDFJK6O.js"), "updatePlan")),
|
|
631
631
|
"/refine"
|
|
632
632
|
);
|
|
633
633
|
cmd.command("move-phase <id> <from> <to>").description(
|
|
@@ -645,7 +645,7 @@ function registerShowCommands(cmd) {
|
|
|
645
645
|
|
|
646
646
|
// src/commands/registerBacklog.ts
|
|
647
647
|
function registerWebCommand(cmd) {
|
|
648
|
-
cmd.command("web").description("Open the backlog tab in the web dashboard").option("-p, --port <number>", "Port to listen on", "3100").option("--no-open", "Do not open a browser on startup").action(lazyAction(() => import("./web-
|
|
648
|
+
cmd.command("web").description("Open the backlog tab in the web dashboard").option("-p, --port <number>", "Port to listen on", "3100").option("--no-open", "Do not open a browser on startup").action(lazyAction(() => import("./web-XS6CKVNO.js"), "web"));
|
|
649
649
|
}
|
|
650
650
|
var registrars = [
|
|
651
651
|
registerItemCommands,
|
|
@@ -675,7 +675,7 @@ function registerBacklog(program) {
|
|
|
675
675
|
const { setBacklogDir } = await import("./getBacklogDir-FJLWXTYN.js");
|
|
676
676
|
setBacklogDir(thisCommand.opts().dir);
|
|
677
677
|
}).action(
|
|
678
|
-
async (options) => (await import("./web-
|
|
678
|
+
async (options) => (await import("./web-XS6CKVNO.js")).web({ port: "3100", open: options.open })
|
|
679
679
|
);
|
|
680
680
|
for (const register of registrars) {
|
|
681
681
|
register(cmd);
|
|
@@ -988,7 +988,7 @@ function registerExtension(program) {
|
|
|
988
988
|
).action(async (options) => {
|
|
989
989
|
const { extension } = await import("./extension-YYRD5EM6.js");
|
|
990
990
|
const { printExtensionUrl } = await import("./printExtensionUrl-IW2WTSNS.js");
|
|
991
|
-
const { signExtension } = await import("./signExtension-
|
|
991
|
+
const { signExtension } = await import("./signExtension-TPFBHFQL.js");
|
|
992
992
|
if (options.url) return printExtensionUrl();
|
|
993
993
|
return options.sign ? signExtension() : extension();
|
|
994
994
|
});
|
|
@@ -1037,7 +1037,7 @@ function registerDevlogEntryCommands(devlogCommand) {
|
|
|
1037
1037
|
devlogCommand.command("slack [week]").description(
|
|
1038
1038
|
"List un-posted dev entries oldest first, or preview one week as a Slack parent message plus a threaded Added/Changed/Fixed reply, printing the channel and approved paths"
|
|
1039
1039
|
).action(
|
|
1040
|
-
async (week) => (await import("./slack-
|
|
1040
|
+
async (week) => (await import("./slack-LGXMV376.js")).slack(week)
|
|
1041
1041
|
),
|
|
1042
1042
|
"/devlog"
|
|
1043
1043
|
);
|
|
@@ -1220,7 +1220,7 @@ When you already have an image or video to include (e.g. a file the user pointed
|
|
|
1220
1220
|
).action(
|
|
1221
1221
|
async (number, options) => {
|
|
1222
1222
|
const { readBodyArgument } = await import("./readBodyArgument-WHNTOBUE.js");
|
|
1223
|
-
const { commentIssue } = await import("./commentIssue-
|
|
1223
|
+
const { commentIssue } = await import("./commentIssue-YGGK2GEG.js");
|
|
1224
1224
|
await commentIssue(number, {
|
|
1225
1225
|
...options,
|
|
1226
1226
|
body: options.body ? await readBodyArgument(options.body) : void 0
|
|
@@ -1275,7 +1275,7 @@ When you already have an image or video to include (e.g. a file the user pointed
|
|
|
1275
1275
|
--type, --parent, --project, --status, --label and --milestone are all resolved before the preview, so an unknown name, an unreadable parent, a missing project scope or --status without --project creates nothing.
|
|
1276
1276
|
A bare --parent number is read against --repo, or the current repo; a parent in another repository is allowed.
|
|
1277
1277
|
The project scope is needed for --project: gh auth refresh -h github.com -s project`
|
|
1278
|
-
).action(lazyAction(() => import("./createIssue-
|
|
1278
|
+
).action(lazyAction(() => import("./createIssue-IUVF3LBJ.js"), "createIssue"));
|
|
1279
1279
|
internalCommand(createCommand, "/github create");
|
|
1280
1280
|
}
|
|
1281
1281
|
|
|
@@ -1312,7 +1312,7 @@ Rejecting writes the pane's markdown to a working file and names it: revise that
|
|
|
1312
1312
|
Only the body is touched \u2014 the title, labels, assignees and state are left alone.
|
|
1313
1313
|
--parent sets the issue's parent instead of editing the body: nothing is previewed and no web session is needed. A bare number is read against --repo, or the current repo; a parent in another repository is allowed.
|
|
1314
1314
|
When you already have an image or video to add (e.g. a file the user pointed at), pass it with --screenshot '[Group/]Caption=path' (once per file) rather than asking the reviewer to drop it in; a missing file or an extension gh cannot attach fails before anything is previewed. In a web session it arrives pre-staged beside the editable body, and the reviewer may also drop or paste more screenshots or video into the pane; on approval gh attaches them all (gh ${minGhAttachVersion}+) under the body's ## Screenshots section, after any images already there. Outside a web session the --screenshot files are attached directly to the current body (or --body). Never author a ## Screenshots section yourself.`
|
|
1315
|
-
).action(lazyAction(() => import("./editIssue-
|
|
1315
|
+
).action(lazyAction(() => import("./editIssue-CJP5LATW.js"), "editIssue"));
|
|
1316
1316
|
internalCommand(editCommand, "/github");
|
|
1317
1317
|
}
|
|
1318
1318
|
|
|
@@ -1329,7 +1329,7 @@ function registerEditIssueComment(issueCommand) {
|
|
|
1329
1329
|
).action(
|
|
1330
1330
|
async (commentId, options) => {
|
|
1331
1331
|
const { readBodyArgument } = await import("./readBodyArgument-WHNTOBUE.js");
|
|
1332
|
-
const { editIssueComment } = await import("./editIssueComment-
|
|
1332
|
+
const { editIssueComment } = await import("./editIssueComment-4X62P25Z.js");
|
|
1333
1333
|
await editIssueComment(commentId, {
|
|
1334
1334
|
...options,
|
|
1335
1335
|
body: options.body ? await readBodyArgument(options.body) : void 0
|
|
@@ -1609,7 +1609,7 @@ function registerMiro(program) {
|
|
|
1609
1609
|
"-r, --repo [name]",
|
|
1610
1610
|
"Save the extract to repo (db), a repo's shared db override (defaults to the current repo)"
|
|
1611
1611
|
).action(
|
|
1612
|
-
async (name, options) => (await import("./runExtract-
|
|
1612
|
+
async (name, options) => (await import("./runExtract-MJUEAUR5.js")).runExtract(name, options)
|
|
1613
1613
|
);
|
|
1614
1614
|
configHelp(
|
|
1615
1615
|
extract,
|
|
@@ -1680,7 +1680,7 @@ function registerPrsThreadReplies(prsCommand, calledBy5) {
|
|
|
1680
1680
|
"Reply with reason and resolve thread (reason of - reads it from stdin)"
|
|
1681
1681
|
).action(async (commentId, reason) => {
|
|
1682
1682
|
const { readBodyArgument } = await import("./readBodyArgument-WHNTOBUE.js");
|
|
1683
|
-
const { wontfix: prsWontfix } = await import("./wontfix-
|
|
1683
|
+
const { wontfix: prsWontfix } = await import("./wontfix-VUVHWVNB.js");
|
|
1684
1684
|
await prsWontfix(
|
|
1685
1685
|
Number.parseInt(commentId, 10),
|
|
1686
1686
|
await readBodyArgument(reason)
|
|
@@ -1693,7 +1693,7 @@ function registerPrsThreadReplies(prsCommand, calledBy5) {
|
|
|
1693
1693
|
"Reply to a comment thread without resolving it (body of - reads it from stdin)"
|
|
1694
1694
|
).action(async (commentId, body) => {
|
|
1695
1695
|
const { readBodyArgument } = await import("./readBodyArgument-WHNTOBUE.js");
|
|
1696
|
-
const { reply: prsReply } = await import("./reply-
|
|
1696
|
+
const { reply: prsReply } = await import("./reply-G5VCPB36.js");
|
|
1697
1697
|
await prsReply(
|
|
1698
1698
|
Number.parseInt(commentId, 10),
|
|
1699
1699
|
await readBodyArgument(body)
|
|
@@ -1719,7 +1719,7 @@ function registerPrsComments(prsCommand) {
|
|
|
1719
1719
|
prsCommand.command("comment <path> <line> <body>").description(
|
|
1720
1720
|
"Add a line comment to the pending review (body of - reads it from stdin)"
|
|
1721
1721
|
).action(async (path, line, body) => {
|
|
1722
|
-
const { comment: prsComment } = await import("./comment-
|
|
1722
|
+
const { comment: prsComment } = await import("./comment-EFWTK74F.js");
|
|
1723
1723
|
const { readBodyArgument } = await import("./readBodyArgument-WHNTOBUE.js");
|
|
1724
1724
|
await prsComment(
|
|
1725
1725
|
path,
|
|
@@ -1776,7 +1776,7 @@ function registerPrsEdit(prsCommand) {
|
|
|
1776
1776
|
"Attach a screenshot as '[Group/]Caption=path', replacing the ## Screenshots section (repeatable)",
|
|
1777
1777
|
collect6,
|
|
1778
1778
|
[]
|
|
1779
|
-
).addHelpText("after", () => editHelpText()).action(lazyAction(() => import("./edit-
|
|
1779
|
+
).addHelpText("after", () => editHelpText()).action(lazyAction(() => import("./edit-JVAW5GKZ.js"), "edit"));
|
|
1780
1780
|
internalCommand(editCommand, "agents revising their pull request");
|
|
1781
1781
|
}
|
|
1782
1782
|
|
|
@@ -1834,7 +1834,7 @@ function registerPrsRaise(prsCommand) {
|
|
|
1834
1834
|
lazyHelpText(
|
|
1835
1835
|
raiseCommand,
|
|
1836
1836
|
async () => (await import("./raiseHelpText-IDZI3UAC.js")).raiseHelpText
|
|
1837
|
-
).action(lazyAction(() => import("./raise-
|
|
1837
|
+
).action(lazyAction(() => import("./raise-DCYXEW4X.js"), "raise"));
|
|
1838
1838
|
internalCommand(raiseCommand, "/pr");
|
|
1839
1839
|
configHelp(raiseCommand, prsRaiseConfigHelp);
|
|
1840
1840
|
}
|
|
@@ -2041,6 +2041,9 @@ function addReviewModeOptions(command) {
|
|
|
2041
2041
|
).option(
|
|
2042
2042
|
"--slices <file>",
|
|
2043
2043
|
`With --high-level, in an assist session: read the PR's slices from a JSON file of [{title, summary, hunks[]}], where hunks are the path#index labels printed when the command refuses without slices. Unknown refs are dropped with a warning, unclaimed hunks go into an "Everything else" slice, and the slices are saved for this head SHA so a reopen reuses them unless --force is passed`
|
|
2044
|
+
).option(
|
|
2045
|
+
"--reuse-slices",
|
|
2046
|
+
"With --high-level, in an assist session: open the review only from the slices saved for the PR's current head SHA, exiting non-zero with `No saved slices for #<n> at <sha>` instead of asking for slices when none are saved. Cannot be combined with --force or --slices"
|
|
2044
2047
|
).option(
|
|
2045
2048
|
"--configure",
|
|
2046
2049
|
"With --high-level: review nothing and instead ask for review.highLevel.criticalPaths, uiPaths and descriptionWordCap one at a time, each prefilled with its current value or, when unset, globs the configured harness.engine proposes from this repo's own tree (for criticalPaths, merged with its defaults), then write the answers in one pass to either this repo's override in the shared assist database or the project assist.yml. A blank answer leaves that key unset"
|
|
@@ -2105,7 +2108,7 @@ function registerReview(program) {
|
|
|
2105
2108
|
addReviewModeOptions(addReviewRunOptions(reviewCommand)).action(
|
|
2106
2109
|
async (number, options) => {
|
|
2107
2110
|
const { resolveHarness } = await import("./resolveHarness-CRWWVE4U.js");
|
|
2108
|
-
const { review } = await import("./review-
|
|
2111
|
+
const { review } = await import("./review-XQ6GHRHA.js");
|
|
2109
2112
|
return review({
|
|
2110
2113
|
...options,
|
|
2111
2114
|
number,
|
|
@@ -2143,7 +2146,7 @@ function registerRulesAdd(rulesCommand) {
|
|
|
2143
2146
|
"--repo [name]",
|
|
2144
2147
|
"As --user, but append to advice.rules in repo (db), the shared per-repo override every node sees, for the current repo or the named one"
|
|
2145
2148
|
).action(async (text, options) => {
|
|
2146
|
-
const { rulesAdd } = await import("./rulesAdd-
|
|
2149
|
+
const { rulesAdd } = await import("./rulesAdd-ODST2JQ4.js");
|
|
2147
2150
|
return rulesAdd(text, options);
|
|
2148
2151
|
}),
|
|
2149
2152
|
"/add-rule and /fix-rules"
|
|
@@ -2259,7 +2262,7 @@ function registerSlack(program) {
|
|
|
2259
2262
|
).action(
|
|
2260
2263
|
async (channel, options) => {
|
|
2261
2264
|
const { readBodyArgument } = await import("./readBodyArgument-WHNTOBUE.js");
|
|
2262
|
-
const { postSlackMessage } = await import("./postSlackMessage-
|
|
2265
|
+
const { postSlackMessage } = await import("./postSlackMessage-XBKKBMTS.js");
|
|
2263
2266
|
await postSlackMessage(channel, {
|
|
2264
2267
|
...options,
|
|
2265
2268
|
body: options.body ? await readBodyArgument(options.body) : void 0
|
|
@@ -2686,7 +2689,7 @@ function registerDaemon(program) {
|
|
|
2686
2689
|
const cmd = program.command("daemon").description("Long-lived daemon that owns web session PTYs");
|
|
2687
2690
|
cmd.command("run").description(
|
|
2688
2691
|
"Run the sessions daemon in the foreground (auto-spawned by assist sessions)"
|
|
2689
|
-
).action(lazyAction(() => import("./runDaemon-
|
|
2692
|
+
).action(lazyAction(() => import("./runDaemon-G7QYLH6K.js"), "runDaemon"));
|
|
2690
2693
|
cmd.command("status").description(
|
|
2691
2694
|
"Show sessions daemon status, live sessions, and any stray daemon processes"
|
|
2692
2695
|
).action(lazyAction(() => import("./daemonStatus-EAZHBC6O.js"), "daemonStatus"));
|
|
@@ -2710,7 +2713,7 @@ function registerDiagnoseCommands(nodes, calledBy5) {
|
|
|
2710
2713
|
nodes.command("doctor [name]").description(
|
|
2711
2714
|
"Probe each hop of every link (or one) in order and stop at the first failure with a remediation"
|
|
2712
2715
|
).option("--json", "Output as JSON").action(
|
|
2713
|
-
async (name, _options, command) => (await import("./doctorNodes-
|
|
2716
|
+
async (name, _options, command) => (await import("./doctorNodes-TXXEZ6IV.js")).doctorNodes(
|
|
2714
2717
|
name,
|
|
2715
2718
|
command.optsWithGlobals()
|
|
2716
2719
|
)
|
|
@@ -2740,14 +2743,14 @@ function registerPeerActionCommands(nodes, calledBy5) {
|
|
|
2740
2743
|
internalCommand(
|
|
2741
2744
|
nodes.command("restart <name>").description(
|
|
2742
2745
|
"Restart a linked node's daemon and/or web server, wait for its link to reconnect and print its version"
|
|
2743
|
-
).option("--target <target>", "daemon, webserver or both", "both").action(lazyAction(() => import("./restartNode-
|
|
2746
|
+
).option("--target <target>", "daemon, webserver or both", "both").action(lazyAction(() => import("./restartNode-4ZOHCTN3.js"), "restartNode")),
|
|
2744
2747
|
calledBy5
|
|
2745
2748
|
);
|
|
2746
2749
|
internalCommand(
|
|
2747
2750
|
nodes.command("update <name>").description(
|
|
2748
2751
|
"Run assist update on a linked node, restart it, wait for its link to reconnect and print its version"
|
|
2749
2752
|
).action(
|
|
2750
|
-
async (name) => (await import("./updateNode-
|
|
2753
|
+
async (name) => (await import("./updateNode-E3U7HM7W.js")).updateNode(name)
|
|
2751
2754
|
),
|
|
2752
2755
|
calledBy5
|
|
2753
2756
|
);
|
|
@@ -2810,7 +2813,7 @@ function registerSetStatusCommand(cmd) {
|
|
|
2810
2813
|
// src/commands/sessions/registerSessionsWeb.ts
|
|
2811
2814
|
function registerSessionsWeb(cmd) {
|
|
2812
2815
|
const webCmd = cmd.command("web").description("Start the sessions web dashboard").option("-p, --port <number>", "Port to listen on", "3100").option("--no-open", "Do not open a browser on startup").action(
|
|
2813
|
-
async (options, command) => (await import("./web-
|
|
2816
|
+
async (options, command) => (await import("./web-UMEUQ4HN.js")).web({
|
|
2814
2817
|
...options,
|
|
2815
2818
|
open: command.optsWithGlobals().open
|
|
2816
2819
|
})
|
|
@@ -2825,7 +2828,7 @@ function registerSessionsWeb(cmd) {
|
|
|
2825
2828
|
// src/commands/sessions/registerSessions.ts
|
|
2826
2829
|
function registerSessions(program) {
|
|
2827
2830
|
const cmd = program.command("sessions").description("Web dashboard for coding agent sessions").option("--no-open", "Do not open a browser on startup").action(
|
|
2828
|
-
async (_options, command) => (await import("./web-
|
|
2831
|
+
async (_options, command) => (await import("./web-UMEUQ4HN.js")).web({
|
|
2829
2832
|
port: "3100",
|
|
2830
2833
|
open: command.optsWithGlobals().open
|
|
2831
2834
|
})
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
postSlackMessage
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-FIQF3MRJ.js";
|
|
4
|
+
import "./chunk-2FMLALED.js";
|
|
5
|
+
import "./chunk-Y4C5PXGS.js";
|
|
6
6
|
import "./chunk-P7SERZI6.js";
|
|
7
7
|
import "./chunk-3VDV7VHX.js";
|
|
8
8
|
import "./chunk-GIHVMELY.js";
|
|
@@ -21,8 +21,8 @@ import {
|
|
|
21
21
|
import {
|
|
22
22
|
awaitPreviewApproval,
|
|
23
23
|
exitNoPreview
|
|
24
|
-
} from "./chunk-
|
|
25
|
-
import "./chunk-
|
|
24
|
+
} from "./chunk-2FMLALED.js";
|
|
25
|
+
import "./chunk-Y4C5PXGS.js";
|
|
26
26
|
import {
|
|
27
27
|
isAgentHarness
|
|
28
28
|
} from "./chunk-G5GN2KBP.js";
|
|
@@ -34,8 +34,8 @@ import {
|
|
|
34
34
|
} from "./chunk-FPWL4VRC.js";
|
|
35
35
|
import {
|
|
36
36
|
awaitPreviewApproval
|
|
37
|
-
} from "./chunk-
|
|
38
|
-
import "./chunk-
|
|
37
|
+
} from "./chunk-2FMLALED.js";
|
|
38
|
+
import "./chunk-Y4C5PXGS.js";
|
|
39
39
|
import "./chunk-P7SERZI6.js";
|
|
40
40
|
import "./chunk-3VDV7VHX.js";
|
|
41
41
|
import "./chunk-B7B26YPF.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
reviewProposedPrComment
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-5WVRYPT6.js";
|
|
4
4
|
import {
|
|
5
5
|
azureDevopsThreadActions,
|
|
6
6
|
replyToComment
|
|
@@ -18,8 +18,8 @@ import {
|
|
|
18
18
|
import {
|
|
19
19
|
rejectHarnessAttribution
|
|
20
20
|
} from "./chunk-C3MGHR3N.js";
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-2FMLALED.js";
|
|
22
|
+
import "./chunk-Y4C5PXGS.js";
|
|
23
23
|
import "./chunk-P7SERZI6.js";
|
|
24
24
|
import "./chunk-3VDV7VHX.js";
|
|
25
25
|
import "./chunk-PIDKNOD6.js";
|
|
@@ -2,20 +2,20 @@ import {
|
|
|
2
2
|
linkStatus,
|
|
3
3
|
postToPeer,
|
|
4
4
|
startPeerAction
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-GMWPOFBP.js";
|
|
6
|
+
import "./chunk-H4IYTDNE.js";
|
|
7
|
+
import "./chunk-R6M6DZHE.js";
|
|
8
8
|
import "./chunk-VABNWHSE.js";
|
|
9
9
|
import "./chunk-DS2YJZZY.js";
|
|
10
10
|
import "./chunk-4HKB2TAG.js";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-44J4Z6ZD.js";
|
|
12
12
|
import "./chunk-J2PPCMCR.js";
|
|
13
13
|
import "./chunk-5CNDLMYO.js";
|
|
14
14
|
import "./chunk-B7VOTF5Q.js";
|
|
15
15
|
import "./chunk-E36L7ASL.js";
|
|
16
16
|
import "./chunk-5H7EHZ3J.js";
|
|
17
17
|
import "./chunk-GIHVMELY.js";
|
|
18
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-TGBXFCAG.js";
|
|
19
19
|
import "./chunk-UFSOFNXQ.js";
|
|
20
20
|
import "./chunk-FLDRXYEM.js";
|
|
21
21
|
import "./chunk-GRXFWFGP.js";
|
|
@@ -1,10 +1,13 @@
|
|
|
1
|
+
import {
|
|
2
|
+
noSavedSlicesMessage
|
|
3
|
+
} from "./chunk-WC4M6JEA.js";
|
|
1
4
|
import {
|
|
2
5
|
parseRepoScopeFlag,
|
|
3
6
|
writeConfigKeys
|
|
4
7
|
} from "./chunk-JFBD33EV.js";
|
|
5
8
|
import {
|
|
6
9
|
comment
|
|
7
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-YAEP4TMV.js";
|
|
8
11
|
import {
|
|
9
12
|
parsePrBody
|
|
10
13
|
} from "./chunk-ENTJ2N5Y.js";
|
|
@@ -14,7 +17,7 @@ import {
|
|
|
14
17
|
import {
|
|
15
18
|
countReadingWords
|
|
16
19
|
} from "./chunk-O6HFT23O.js";
|
|
17
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-5WVRYPT6.js";
|
|
18
21
|
import {
|
|
19
22
|
fetchThreadIds
|
|
20
23
|
} from "./chunk-S6XYTJU2.js";
|
|
@@ -74,10 +77,10 @@ import {
|
|
|
74
77
|
} from "./chunk-YS3HSXSJ.js";
|
|
75
78
|
import {
|
|
76
79
|
awaitPreviewApproval
|
|
77
|
-
} from "./chunk-
|
|
80
|
+
} from "./chunk-2FMLALED.js";
|
|
78
81
|
import {
|
|
79
82
|
deferredRunEnv
|
|
80
|
-
} from "./chunk-
|
|
83
|
+
} from "./chunk-Y4C5PXGS.js";
|
|
81
84
|
import {
|
|
82
85
|
isAgentHarness
|
|
83
86
|
} from "./chunk-G5GN2KBP.js";
|
|
@@ -1233,6 +1236,10 @@ function gatherHighLevelSlices(head, files, slicing) {
|
|
|
1233
1236
|
if (slicing.slicesFile) return sliceFromFile(slicing.slicesFile, files, path);
|
|
1234
1237
|
const saved = slicing.force ? void 0 : readSavedSlices(path);
|
|
1235
1238
|
if (saved) return saved;
|
|
1239
|
+
if (slicing.reuseOnly) {
|
|
1240
|
+
console.error(noSavedSlicesMessage(head.prNumber, head.headSha));
|
|
1241
|
+
process.exit(1);
|
|
1242
|
+
}
|
|
1236
1243
|
console.log(formatSlicingRequest(listHighLevelHunks(files)));
|
|
1237
1244
|
process.exit(2);
|
|
1238
1245
|
}
|
|
@@ -1541,7 +1548,7 @@ function gatherHighLevelSubject(prNumber, force, slicing) {
|
|
|
1541
1548
|
const fetched = fetchHighLevelFiles(prNumber, slug2);
|
|
1542
1549
|
const files = capHighLevelPatches(fetched, config.criticalPaths);
|
|
1543
1550
|
const head = { repo: slug2, headRef: pr.headRef, headSha: pr.headSha };
|
|
1544
|
-
const sliced = slicing ? gatherHighLevelSlices(head, files, slicing) : void 0;
|
|
1551
|
+
const sliced = slicing ? gatherHighLevelSlices({ ...head, prNumber }, files, slicing) : void 0;
|
|
1545
1552
|
return {
|
|
1546
1553
|
...head,
|
|
1547
1554
|
prNumber,
|
|
@@ -2133,7 +2140,11 @@ function sessionId() {
|
|
|
2133
2140
|
async function runHighLevelReview(number, options = {}) {
|
|
2134
2141
|
const force = options.force === true;
|
|
2135
2142
|
const session = sessionId();
|
|
2136
|
-
const slicing = session ? {
|
|
2143
|
+
const slicing = session ? {
|
|
2144
|
+
force,
|
|
2145
|
+
...options.slices ? { slicesFile: options.slices } : {},
|
|
2146
|
+
...options.reuseSlices ? { reuseOnly: true } : {}
|
|
2147
|
+
} : void 0;
|
|
2137
2148
|
const subject = gatherSubject(resolvePrNumber(number), force, slicing);
|
|
2138
2149
|
announceSavedReview(subject, force);
|
|
2139
2150
|
if (!session) return printHighLevelChecklist(subject);
|
|
@@ -3829,6 +3840,7 @@ function validateReviewOptions(options) {
|
|
|
3829
3840
|
}
|
|
3830
3841
|
validateCheckoutOnly(options);
|
|
3831
3842
|
validateHighLevel(options);
|
|
3843
|
+
validateReuseSlices(options);
|
|
3832
3844
|
validateConfigureOptions(options);
|
|
3833
3845
|
}
|
|
3834
3846
|
function validateCheckoutOnly(options) {
|
|
@@ -3859,6 +3871,21 @@ function validateHighLevel(options) {
|
|
|
3859
3871
|
process.exit(1);
|
|
3860
3872
|
}
|
|
3861
3873
|
}
|
|
3874
|
+
function validateReuseSlices(options) {
|
|
3875
|
+
if (!options.reuseSlices) return;
|
|
3876
|
+
if (!options.highLevel || options.configure) {
|
|
3877
|
+
console.error(
|
|
3878
|
+
"Error: --reuse-slices requires --high-level and cannot be combined with --configure."
|
|
3879
|
+
);
|
|
3880
|
+
process.exit(1);
|
|
3881
|
+
}
|
|
3882
|
+
if (options.force || options.slices) {
|
|
3883
|
+
console.error(
|
|
3884
|
+
"Error: --reuse-slices cannot be combined with --force or --slices."
|
|
3885
|
+
);
|
|
3886
|
+
process.exit(1);
|
|
3887
|
+
}
|
|
3888
|
+
}
|
|
3862
3889
|
|
|
3863
3890
|
// src/commands/review/sessionBlocked.ts
|
|
3864
3891
|
import chalk14 from "chalk";
|
|
@@ -3884,13 +3911,15 @@ function sessionBlocked(options) {
|
|
|
3884
3911
|
return true;
|
|
3885
3912
|
}
|
|
3886
3913
|
|
|
3887
|
-
// src/commands/review/
|
|
3914
|
+
// src/commands/review/resolveRepoRoot.ts
|
|
3888
3915
|
function resolveRepoRoot() {
|
|
3889
3916
|
const repoRoot = findRepoRoot(process.cwd());
|
|
3890
3917
|
if (repoRoot) return repoRoot;
|
|
3891
3918
|
console.error("Error: not inside a git repository.");
|
|
3892
3919
|
process.exit(1);
|
|
3893
3920
|
}
|
|
3921
|
+
|
|
3922
|
+
// src/commands/review/review.ts
|
|
3894
3923
|
async function review(options = {}) {
|
|
3895
3924
|
validateReviewOptions(options);
|
|
3896
3925
|
if (options.configure)
|
|
@@ -3913,7 +3942,11 @@ async function review(options = {}) {
|
|
|
3913
3942
|
}
|
|
3914
3943
|
});
|
|
3915
3944
|
emitActivity({ kind: "command", name: "review" });
|
|
3916
|
-
const highLevelOptions = {
|
|
3945
|
+
const highLevelOptions = {
|
|
3946
|
+
force: options.force,
|
|
3947
|
+
slices: options.slices,
|
|
3948
|
+
reuseSlices: options.reuseSlices
|
|
3949
|
+
};
|
|
3917
3950
|
if (!options.number)
|
|
3918
3951
|
return options.highLevel ? runHighLevelReview(void 0, highLevelOptions) : reviewPr(invokedIn, options);
|
|
3919
3952
|
await checkoutPr(options.number);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
printApprovedComments
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-64Y7R56K.js";
|
|
4
4
|
import {
|
|
5
5
|
awaitPreviewApproval
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-2FMLALED.js";
|
|
7
|
+
import "./chunk-Y4C5PXGS.js";
|
|
8
8
|
import "./chunk-P7SERZI6.js";
|
|
9
9
|
import "./chunk-3VDV7VHX.js";
|
|
10
10
|
import {
|