@staff0rd/assist 0.1196.0 → 0.1198.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/agent/commands/github.md +3 -1
- package/dist/.build-files +27 -26
- package/dist/{addActivity-UKZ2MJZY.js → addActivity-D7F3E6IR.js} +1 -1
- package/dist/built-version +1 -1
- package/dist/{chunk-B3Q6IKBW.js → chunk-6ZM4ATP3.js} +1 -1
- package/dist/{chunk-B4O2YCNY.js → chunk-7N2JBVAY.js} +6 -4
- package/dist/{chunk-6YLF6LB6.js → chunk-7VMO2MAS.js} +1 -1
- package/dist/{chunk-CUR6OOHC.js → chunk-D56OSOJ2.js} +1 -1
- package/dist/{chunk-IEDFQBJI.js → chunk-EPVBZE3T.js} +13 -30
- package/dist/{chunk-5BY472AT.js → chunk-IVUDQ2OK.js} +1 -1
- package/dist/{chunk-ABLDOQ4B.js → chunk-JAZX2JSS.js} +22 -1
- package/dist/{chunk-PXXN6TT2.js → chunk-LIKGFVCS.js} +5 -3
- package/dist/chunk-O7L27TQP.js +14 -0
- package/dist/{chunk-DPCFT55U.js → chunk-P5LQVJWN.js} +0 -8
- package/dist/{chunk-Q4TGGE5L.js → chunk-VHRROHRC.js} +1 -1
- package/dist/chunk-ZI5YL7N7.js +26 -0
- package/dist/{chunk-Y55PJHMU.js → chunk-ZXPVGNA4.js} +1 -1
- package/dist/commands/sessions/web/bundle.js +1 -1
- package/dist/{commentIssue-JQCEL3GH.js → commentIssue-HQD5SBCE.js} +29 -11
- package/dist/{createIssue-ZEZ4APQ7.js → createIssue-32NTLGUU.js} +7 -6
- package/dist/{doctorNodes-XAQ3WILB.js → doctorNodes-3L5FSA4N.js} +3 -3
- package/dist/{edit-CGFJYKXA.js → edit-2JDSWRN6.js} +7 -5
- package/dist/{editIssue-X4C4ULTM.js → editIssue-S34V2LAV.js} +7 -6
- package/dist/{editIssueComment-L6RLH4GX.js → editIssueComment-BJZEYQWI.js} +22 -11
- package/dist/index.js +32 -24
- package/dist/{raise-SJ5JLPBS.js → raise-NUAO6IFZ.js} +7 -5
- package/dist/{restartNode-SJQW3ARZ.js → restartNode-HUKF5IZX.js} +5 -5
- package/dist/{runDaemon-WR4YUH7P.js → runDaemon-QY3IAE3R.js} +34 -11
- package/dist/{signExtension-PMS43R4K.js → signExtension-FV54Z4RI.js} +1 -1
- package/dist/{updateNode-3RUK5BSA.js → updateNode-U5AJUZV6.js} +5 -5
- package/dist/{web-XXN3QBZM.js → web-2UL2PQCT.js} +7 -6
- package/dist/{web-5ELDJBGT.js → web-KVYP6IS2.js} +7 -6
- package/package.json +1 -1
- package/dist/chunk-JJKRUHWS.js +0 -22
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-IVUDQ2OK.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-KVYP6IS2.js")).web({
|
|
96
96
|
port: "3100",
|
|
97
97
|
open: options.open
|
|
98
98
|
})
|
|
@@ -273,7 +273,7 @@ function registerActivityCommands(cmd) {
|
|
|
273
273
|
internalCommand(
|
|
274
274
|
cmd.command("add-activity <id> <kind> <ref>").description(
|
|
275
275
|
"Attach an activity ref (branch|commit|pr|slack|session|design) to a backlog item"
|
|
276
|
-
).option("--title <title>", "Title metadata for the ref").option("--url <url>", "URL metadata (auto-filled for branch/commit)").option("--state <state>", "State metadata for the ref").action(lazyAction(() => import("./addActivity-
|
|
276
|
+
).option("--title <title>", "Title metadata for the ref").option("--url <url>", "URL metadata (auto-filled for branch/commit)").option("--state <state>", "State metadata for the ref").action(lazyAction(() => import("./addActivity-D7F3E6IR.js"), "addActivity")),
|
|
277
277
|
"/draft and /bug"
|
|
278
278
|
);
|
|
279
279
|
internalCommand(
|
|
@@ -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-2UL2PQCT.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-2UL2PQCT.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-FV54Z4RI.js");
|
|
992
992
|
if (options.url) return printExtensionUrl();
|
|
993
993
|
return options.sign ? signExtension() : extension();
|
|
994
994
|
});
|
|
@@ -1196,18 +1196,31 @@ Anything nested below the leaf level fails the run before a single write, naming
|
|
|
1196
1196
|
).action(lazyAction(() => import("./fixStructure-4UTN5ED6.js"), "fixStructure"));
|
|
1197
1197
|
}
|
|
1198
1198
|
|
|
1199
|
+
// src/commands/prs/collect.ts
|
|
1200
|
+
function collect5(value, previous) {
|
|
1201
|
+
return previous.concat([value]);
|
|
1202
|
+
}
|
|
1203
|
+
|
|
1199
1204
|
// src/commands/github/issue/registerCommentIssue.ts
|
|
1200
1205
|
function registerCommentIssue(issueCommand) {
|
|
1201
1206
|
const commentCommand = issueCommand.command("comment <number>").description("Comment on a GitHub issue (body of - reads it from stdin)").option("--body <body>", "Comment body (- reads it from stdin)").option(
|
|
1202
1207
|
"-R, --repo <owner/repo>",
|
|
1203
1208
|
"Target repository (defaults to the current repo)"
|
|
1209
|
+
).option(
|
|
1210
|
+
"--screenshot <spec>",
|
|
1211
|
+
"Attach an image or video as '[Group/]Caption=path' under ## Screenshots (repeatable)",
|
|
1212
|
+
collect5,
|
|
1213
|
+
[]
|
|
1204
1214
|
).addHelpText(
|
|
1205
1215
|
"after",
|
|
1206
|
-
|
|
1216
|
+
`
|
|
1217
|
+
The comment is outward-facing: write it for the repo's readers, not the team. It is rejected if it references Claude or an assist backlog item.
|
|
1218
|
+
In an assist web session the body is previewed for approve/reject first (with inline comments); nothing is posted until it is approved.
|
|
1219
|
+
When you already have an image or video to include (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 in the preview, and the reviewer may also drop or paste more screenshots or video into the pane; on approval gh attaches them all (gh ${minGhAttachVersion}+) under a ## Screenshots section of the comment. Outside a web session the --screenshot files are attached directly. Never author a ## Screenshots section yourself.`
|
|
1207
1220
|
).action(
|
|
1208
1221
|
async (number, options) => {
|
|
1209
1222
|
const { readBodyArgument } = await import("./readBodyArgument-WHNTOBUE.js");
|
|
1210
|
-
const { commentIssue } = await import("./commentIssue-
|
|
1223
|
+
const { commentIssue } = await import("./commentIssue-HQD5SBCE.js");
|
|
1211
1224
|
await commentIssue(number, {
|
|
1212
1225
|
...options,
|
|
1213
1226
|
body: options.body ? await readBodyArgument(options.body) : void 0
|
|
@@ -1217,11 +1230,6 @@ function registerCommentIssue(issueCommand) {
|
|
|
1217
1230
|
internalCommand(commentCommand, "/github update");
|
|
1218
1231
|
}
|
|
1219
1232
|
|
|
1220
|
-
// src/commands/prs/collect.ts
|
|
1221
|
-
function collect5(value, previous) {
|
|
1222
|
-
return previous.concat([value]);
|
|
1223
|
-
}
|
|
1224
|
-
|
|
1225
1233
|
// src/commands/github/issue/collectLabels.ts
|
|
1226
1234
|
function collectLabels(value, previous) {
|
|
1227
1235
|
const added = value.split(",").map((label) => label.trim()).filter((label) => label.length > 0);
|
|
@@ -1267,7 +1275,7 @@ When you already have an image or video to include (e.g. a file the user pointed
|
|
|
1267
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.
|
|
1268
1276
|
A bare --parent number is read against --repo, or the current repo; a parent in another repository is allowed.
|
|
1269
1277
|
The project scope is needed for --project: gh auth refresh -h github.com -s project`
|
|
1270
|
-
).action(lazyAction(() => import("./createIssue-
|
|
1278
|
+
).action(lazyAction(() => import("./createIssue-32NTLGUU.js"), "createIssue"));
|
|
1271
1279
|
internalCommand(createCommand, "/github create");
|
|
1272
1280
|
}
|
|
1273
1281
|
|
|
@@ -1304,7 +1312,7 @@ Rejecting writes the pane's markdown to a working file and names it: revise that
|
|
|
1304
1312
|
Only the body is touched \u2014 the title, labels, assignees and state are left alone.
|
|
1305
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.
|
|
1306
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.`
|
|
1307
|
-
).action(lazyAction(() => import("./editIssue-
|
|
1315
|
+
).action(lazyAction(() => import("./editIssue-S34V2LAV.js"), "editIssue"));
|
|
1308
1316
|
internalCommand(editCommand, "/github");
|
|
1309
1317
|
}
|
|
1310
1318
|
|
|
@@ -1321,7 +1329,7 @@ function registerEditIssueComment(issueCommand) {
|
|
|
1321
1329
|
).action(
|
|
1322
1330
|
async (commentId, options) => {
|
|
1323
1331
|
const { readBodyArgument } = await import("./readBodyArgument-WHNTOBUE.js");
|
|
1324
|
-
const { editIssueComment } = await import("./editIssueComment-
|
|
1332
|
+
const { editIssueComment } = await import("./editIssueComment-BJZEYQWI.js");
|
|
1325
1333
|
await editIssueComment(commentId, {
|
|
1326
1334
|
...options,
|
|
1327
1335
|
body: options.body ? await readBodyArgument(options.body) : void 0
|
|
@@ -1768,7 +1776,7 @@ function registerPrsEdit(prsCommand) {
|
|
|
1768
1776
|
"Attach a screenshot as '[Group/]Caption=path', replacing the ## Screenshots section (repeatable)",
|
|
1769
1777
|
collect6,
|
|
1770
1778
|
[]
|
|
1771
|
-
).addHelpText("after", () => editHelpText()).action(lazyAction(() => import("./edit-
|
|
1779
|
+
).addHelpText("after", () => editHelpText()).action(lazyAction(() => import("./edit-2JDSWRN6.js"), "edit"));
|
|
1772
1780
|
internalCommand(editCommand, "agents revising their pull request");
|
|
1773
1781
|
}
|
|
1774
1782
|
|
|
@@ -1826,7 +1834,7 @@ function registerPrsRaise(prsCommand) {
|
|
|
1826
1834
|
lazyHelpText(
|
|
1827
1835
|
raiseCommand,
|
|
1828
1836
|
async () => (await import("./raiseHelpText-IDZI3UAC.js")).raiseHelpText
|
|
1829
|
-
).action(lazyAction(() => import("./raise-
|
|
1837
|
+
).action(lazyAction(() => import("./raise-NUAO6IFZ.js"), "raise"));
|
|
1830
1838
|
internalCommand(raiseCommand, "/pr");
|
|
1831
1839
|
configHelp(raiseCommand, prsRaiseConfigHelp);
|
|
1832
1840
|
}
|
|
@@ -2678,7 +2686,7 @@ function registerDaemon(program) {
|
|
|
2678
2686
|
const cmd = program.command("daemon").description("Long-lived daemon that owns web session PTYs");
|
|
2679
2687
|
cmd.command("run").description(
|
|
2680
2688
|
"Run the sessions daemon in the foreground (auto-spawned by assist sessions)"
|
|
2681
|
-
).action(lazyAction(() => import("./runDaemon-
|
|
2689
|
+
).action(lazyAction(() => import("./runDaemon-QY3IAE3R.js"), "runDaemon"));
|
|
2682
2690
|
cmd.command("status").description(
|
|
2683
2691
|
"Show sessions daemon status, live sessions, and any stray daemon processes"
|
|
2684
2692
|
).action(lazyAction(() => import("./daemonStatus-EAZHBC6O.js"), "daemonStatus"));
|
|
@@ -2702,7 +2710,7 @@ function registerDiagnoseCommands(nodes, calledBy5) {
|
|
|
2702
2710
|
nodes.command("doctor [name]").description(
|
|
2703
2711
|
"Probe each hop of every link (or one) in order and stop at the first failure with a remediation"
|
|
2704
2712
|
).option("--json", "Output as JSON").action(
|
|
2705
|
-
async (name, _options, command) => (await import("./doctorNodes-
|
|
2713
|
+
async (name, _options, command) => (await import("./doctorNodes-3L5FSA4N.js")).doctorNodes(
|
|
2706
2714
|
name,
|
|
2707
2715
|
command.optsWithGlobals()
|
|
2708
2716
|
)
|
|
@@ -2732,14 +2740,14 @@ function registerPeerActionCommands(nodes, calledBy5) {
|
|
|
2732
2740
|
internalCommand(
|
|
2733
2741
|
nodes.command("restart <name>").description(
|
|
2734
2742
|
"Restart a linked node's daemon and/or web server, wait for its link to reconnect and print its version"
|
|
2735
|
-
).option("--target <target>", "daemon, webserver or both", "both").action(lazyAction(() => import("./restartNode-
|
|
2743
|
+
).option("--target <target>", "daemon, webserver or both", "both").action(lazyAction(() => import("./restartNode-HUKF5IZX.js"), "restartNode")),
|
|
2736
2744
|
calledBy5
|
|
2737
2745
|
);
|
|
2738
2746
|
internalCommand(
|
|
2739
2747
|
nodes.command("update <name>").description(
|
|
2740
2748
|
"Run assist update on a linked node, restart it, wait for its link to reconnect and print its version"
|
|
2741
2749
|
).action(
|
|
2742
|
-
async (name) => (await import("./updateNode-
|
|
2750
|
+
async (name) => (await import("./updateNode-U5AJUZV6.js")).updateNode(name)
|
|
2743
2751
|
),
|
|
2744
2752
|
calledBy5
|
|
2745
2753
|
);
|
|
@@ -2802,7 +2810,7 @@ function registerSetStatusCommand(cmd) {
|
|
|
2802
2810
|
// src/commands/sessions/registerSessionsWeb.ts
|
|
2803
2811
|
function registerSessionsWeb(cmd) {
|
|
2804
2812
|
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(
|
|
2805
|
-
async (options, command) => (await import("./web-
|
|
2813
|
+
async (options, command) => (await import("./web-KVYP6IS2.js")).web({
|
|
2806
2814
|
...options,
|
|
2807
2815
|
open: command.optsWithGlobals().open
|
|
2808
2816
|
})
|
|
@@ -2817,7 +2825,7 @@ function registerSessionsWeb(cmd) {
|
|
|
2817
2825
|
// src/commands/sessions/registerSessions.ts
|
|
2818
2826
|
function registerSessions(program) {
|
|
2819
2827
|
const cmd = program.command("sessions").description("Web dashboard for coding agent sessions").option("--no-open", "Do not open a browser on startup").action(
|
|
2820
|
-
async (_options, command) => (await import("./web-
|
|
2828
|
+
async (_options, command) => (await import("./web-KVYP6IS2.js")).web({
|
|
2821
2829
|
port: "3100",
|
|
2822
2830
|
open: command.optsWithGlobals().open
|
|
2823
2831
|
})
|
|
@@ -4,15 +4,16 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
buildPrBody,
|
|
6
6
|
validatePrContent
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-VHRROHRC.js";
|
|
8
8
|
import {
|
|
9
9
|
appendScreenshots,
|
|
10
10
|
attachArgs,
|
|
11
11
|
parseScreenshotSpecs,
|
|
12
|
-
runGhWithAttachments
|
|
12
|
+
runGhWithAttachments
|
|
13
|
+
} from "./chunk-EPVBZE3T.js";
|
|
14
|
+
import {
|
|
13
15
|
stageScreenshots
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-ABLDOQ4B.js";
|
|
16
|
+
} from "./chunk-JAZX2JSS.js";
|
|
16
17
|
import {
|
|
17
18
|
findCurrentPr,
|
|
18
19
|
findCurrentPrNumber,
|
|
@@ -39,7 +40,8 @@ import "./chunk-P7SERZI6.js";
|
|
|
39
40
|
import "./chunk-3VDV7VHX.js";
|
|
40
41
|
import "./chunk-B7B26YPF.js";
|
|
41
42
|
import "./chunk-XTQSKMFH.js";
|
|
42
|
-
import "./chunk-
|
|
43
|
+
import "./chunk-O7L27TQP.js";
|
|
44
|
+
import "./chunk-P5LQVJWN.js";
|
|
43
45
|
import {
|
|
44
46
|
requestAssistSession
|
|
45
47
|
} from "./chunk-F4XCHVD7.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-ZXPVGNA4.js";
|
|
6
|
+
import "./chunk-6ZM4ATP3.js";
|
|
7
|
+
import "./chunk-D56OSOJ2.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-7VMO2MAS.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-IVUDQ2OK.js";
|
|
19
19
|
import "./chunk-UFSOFNXQ.js";
|
|
20
20
|
import "./chunk-FLDRXYEM.js";
|
|
21
21
|
import "./chunk-GRXFWFGP.js";
|
|
@@ -83,9 +83,10 @@ import {
|
|
|
83
83
|
locateConversation,
|
|
84
84
|
readTranscriptHead,
|
|
85
85
|
transcriptMessages
|
|
86
|
-
} from "./chunk-
|
|
86
|
+
} from "./chunk-LIKGFVCS.js";
|
|
87
87
|
import {
|
|
88
|
-
CHECK_NOTE_KEY
|
|
88
|
+
CHECK_NOTE_KEY,
|
|
89
|
+
CHECK_RESULT_KEY
|
|
89
90
|
} from "./chunk-OLE7XSNB.js";
|
|
90
91
|
import {
|
|
91
92
|
askQuestionInputSchema
|
|
@@ -128,7 +129,7 @@ import {
|
|
|
128
129
|
isHello,
|
|
129
130
|
linkVersionCheck,
|
|
130
131
|
negotiateProtocol
|
|
131
|
-
} from "./chunk-
|
|
132
|
+
} from "./chunk-7VMO2MAS.js";
|
|
132
133
|
import {
|
|
133
134
|
loadLinkSpecs
|
|
134
135
|
} from "./chunk-J2PPCMCR.js";
|
|
@@ -267,7 +268,7 @@ import {
|
|
|
267
268
|
import "./chunk-APZ6ZTDA.js";
|
|
268
269
|
import "./chunk-ZRIBI33P.js";
|
|
269
270
|
import "./chunk-D7UZLH36.js";
|
|
270
|
-
import "./chunk-
|
|
271
|
+
import "./chunk-IVUDQ2OK.js";
|
|
271
272
|
import "./chunk-EW2ZM2PC.js";
|
|
272
273
|
import "./chunk-MYH4MQX2.js";
|
|
273
274
|
import {
|
|
@@ -4244,6 +4245,18 @@ function appendTranscriptEcho(conversationId, echo) {
|
|
|
4244
4245
|
}
|
|
4245
4246
|
}
|
|
4246
4247
|
|
|
4248
|
+
// src/commands/sessions/daemon/paneEcho/checkReplyText.ts
|
|
4249
|
+
var verdicts = {
|
|
4250
|
+
works: "Works",
|
|
4251
|
+
"doesn't work": "Doesn't work",
|
|
4252
|
+
later: "Later"
|
|
4253
|
+
};
|
|
4254
|
+
function checkReplyText(answers) {
|
|
4255
|
+
const verdict = verdicts[answers[CHECK_RESULT_KEY] ?? ""] ?? "";
|
|
4256
|
+
const note = (answers[CHECK_NOTE_KEY] ?? "").trim();
|
|
4257
|
+
return [verdict, note].filter(Boolean).join("\n\n");
|
|
4258
|
+
}
|
|
4259
|
+
|
|
4247
4260
|
// src/commands/sessions/daemon/paneEcho/questionAnswerText.ts
|
|
4248
4261
|
function questionOrder(body) {
|
|
4249
4262
|
try {
|
|
@@ -4274,11 +4287,14 @@ function formatComment({ quote, note }) {
|
|
|
4274
4287
|
${note.trim()}`;
|
|
4275
4288
|
}
|
|
4276
4289
|
function signOffText(d) {
|
|
4290
|
+
const verdict = d.decision === "approve" ? "Approved" : "Rejected";
|
|
4277
4291
|
const reason6 = typeof d.reason === "string" ? d.reason.trim() : "";
|
|
4278
4292
|
const comments = Array.isArray(d.comments) ? d.comments.filter(isComment).filter((c) => c.note.trim()) : [];
|
|
4279
|
-
return [
|
|
4280
|
-
|
|
4281
|
-
|
|
4293
|
+
return [
|
|
4294
|
+
verdict,
|
|
4295
|
+
...reason6 ? [reason6] : [],
|
|
4296
|
+
...comments.map(formatComment)
|
|
4297
|
+
].join("\n\n");
|
|
4282
4298
|
}
|
|
4283
4299
|
|
|
4284
4300
|
// src/commands/sessions/daemon/paneEcho/paneEchoText.ts
|
|
@@ -4292,15 +4308,17 @@ function answersOf(d) {
|
|
|
4292
4308
|
);
|
|
4293
4309
|
}
|
|
4294
4310
|
function paneEchoText(preview, d) {
|
|
4295
|
-
if (d.dismissed === true) return "";
|
|
4311
|
+
if (d.dismissed === true) return "Dismissed";
|
|
4312
|
+
const paneDismissed = d.decision === "reject";
|
|
4296
4313
|
switch (preview.kind) {
|
|
4297
4314
|
case "check":
|
|
4298
|
-
return (answersOf(d)
|
|
4315
|
+
return paneDismissed ? ["Dismissed", checkReplyText(answersOf(d))].filter(Boolean).join("\n\n") : checkReplyText(answersOf(d));
|
|
4299
4316
|
case "question":
|
|
4300
|
-
return questionAnswerText(preview.body, answersOf(d));
|
|
4317
|
+
return paneDismissed ? "Dismissed" : questionAnswerText(preview.body, answersOf(d));
|
|
4301
4318
|
case "ask":
|
|
4302
4319
|
case "backlog-item":
|
|
4303
4320
|
case "rule":
|
|
4321
|
+
case "design":
|
|
4304
4322
|
return signOffText(d);
|
|
4305
4323
|
default:
|
|
4306
4324
|
return "";
|
|
@@ -4309,7 +4327,12 @@ function paneEchoText(preview, d) {
|
|
|
4309
4327
|
|
|
4310
4328
|
// src/commands/sessions/daemon/recordPaneEcho.ts
|
|
4311
4329
|
var replyCommands = {
|
|
4312
|
-
question: "ask-question"
|
|
4330
|
+
question: "ask-question",
|
|
4331
|
+
check: "ask-check",
|
|
4332
|
+
ask: "ask",
|
|
4333
|
+
"backlog-item": "backlog",
|
|
4334
|
+
rule: "rules",
|
|
4335
|
+
design: "ask-design"
|
|
4313
4336
|
};
|
|
4314
4337
|
function recordPaneEcho(session, d) {
|
|
4315
4338
|
const preview = session.pendingPrPreview;
|
|
@@ -2,13 +2,13 @@ import {
|
|
|
2
2
|
linkStatus,
|
|
3
3
|
postToPeer,
|
|
4
4
|
startPeerAction
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-ZXPVGNA4.js";
|
|
6
|
+
import "./chunk-6ZM4ATP3.js";
|
|
7
|
+
import "./chunk-D56OSOJ2.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-7VMO2MAS.js";
|
|
12
12
|
import "./chunk-J2PPCMCR.js";
|
|
13
13
|
import "./chunk-5CNDLMYO.js";
|
|
14
14
|
import "./chunk-B7VOTF5Q.js";
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
} from "./chunk-A7ONLVZD.js";
|
|
20
20
|
import "./chunk-GIHVMELY.js";
|
|
21
21
|
import "./chunk-2EW62DM5.js";
|
|
22
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-IVUDQ2OK.js";
|
|
23
23
|
import "./chunk-UFSOFNXQ.js";
|
|
24
24
|
import "./chunk-FLDRXYEM.js";
|
|
25
25
|
import "./chunk-GRXFWFGP.js";
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
web
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-7N2JBVAY.js";
|
|
4
4
|
import "./chunk-SURCYYQ6.js";
|
|
5
5
|
import "./chunk-JNCFHWBK.js";
|
|
6
6
|
import "./chunk-JM57BCD6.js";
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-6ZM4ATP3.js";
|
|
8
|
+
import "./chunk-D56OSOJ2.js";
|
|
9
9
|
import "./chunk-VABNWHSE.js";
|
|
10
10
|
import "./chunk-DS2YJZZY.js";
|
|
11
11
|
import "./chunk-2RUGZQUD.js";
|
|
12
12
|
import "./chunk-5QXAQCAJ.js";
|
|
13
13
|
import "./chunk-4HKB2TAG.js";
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-7VMO2MAS.js";
|
|
15
15
|
import "./chunk-J2PPCMCR.js";
|
|
16
16
|
import "./chunk-5CNDLMYO.js";
|
|
17
17
|
import "./chunk-B7VOTF5Q.js";
|
|
@@ -44,7 +44,8 @@ import "./chunk-FYYZG4GY.js";
|
|
|
44
44
|
import "./chunk-WYNRHOR7.js";
|
|
45
45
|
import "./chunk-PIDKNOD6.js";
|
|
46
46
|
import "./chunk-YQ3CNWB3.js";
|
|
47
|
-
import "./chunk-
|
|
47
|
+
import "./chunk-O7L27TQP.js";
|
|
48
|
+
import "./chunk-P5LQVJWN.js";
|
|
48
49
|
import "./chunk-SDMBTSYP.js";
|
|
49
50
|
import "./chunk-3NK55YVZ.js";
|
|
50
51
|
import "./chunk-4BVUY25U.js";
|
|
@@ -138,7 +139,7 @@ import "./chunk-RW6YKTIM.js";
|
|
|
138
139
|
import "./chunk-APZ6ZTDA.js";
|
|
139
140
|
import "./chunk-ZRIBI33P.js";
|
|
140
141
|
import "./chunk-D7UZLH36.js";
|
|
141
|
-
import "./chunk-
|
|
142
|
+
import "./chunk-IVUDQ2OK.js";
|
|
142
143
|
import "./chunk-YUV5QBHU.js";
|
|
143
144
|
import "./chunk-YVL3NXEB.js";
|
|
144
145
|
import "./chunk-UEWARAPX.js";
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
web
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-7N2JBVAY.js";
|
|
4
4
|
import "./chunk-SURCYYQ6.js";
|
|
5
5
|
import "./chunk-JNCFHWBK.js";
|
|
6
6
|
import "./chunk-JM57BCD6.js";
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-6ZM4ATP3.js";
|
|
8
|
+
import "./chunk-D56OSOJ2.js";
|
|
9
9
|
import "./chunk-VABNWHSE.js";
|
|
10
10
|
import "./chunk-DS2YJZZY.js";
|
|
11
11
|
import "./chunk-2RUGZQUD.js";
|
|
12
12
|
import "./chunk-5QXAQCAJ.js";
|
|
13
13
|
import "./chunk-4HKB2TAG.js";
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-7VMO2MAS.js";
|
|
15
15
|
import "./chunk-J2PPCMCR.js";
|
|
16
16
|
import "./chunk-5CNDLMYO.js";
|
|
17
17
|
import "./chunk-B7VOTF5Q.js";
|
|
@@ -44,7 +44,8 @@ import "./chunk-FYYZG4GY.js";
|
|
|
44
44
|
import "./chunk-WYNRHOR7.js";
|
|
45
45
|
import "./chunk-PIDKNOD6.js";
|
|
46
46
|
import "./chunk-YQ3CNWB3.js";
|
|
47
|
-
import "./chunk-
|
|
47
|
+
import "./chunk-O7L27TQP.js";
|
|
48
|
+
import "./chunk-P5LQVJWN.js";
|
|
48
49
|
import "./chunk-SDMBTSYP.js";
|
|
49
50
|
import "./chunk-3NK55YVZ.js";
|
|
50
51
|
import "./chunk-4BVUY25U.js";
|
|
@@ -138,7 +139,7 @@ import "./chunk-RW6YKTIM.js";
|
|
|
138
139
|
import "./chunk-APZ6ZTDA.js";
|
|
139
140
|
import "./chunk-ZRIBI33P.js";
|
|
140
141
|
import "./chunk-D7UZLH36.js";
|
|
141
|
-
import "./chunk-
|
|
142
|
+
import "./chunk-IVUDQ2OK.js";
|
|
142
143
|
import "./chunk-YUV5QBHU.js";
|
|
143
144
|
import "./chunk-YVL3NXEB.js";
|
|
144
145
|
import "./chunk-UEWARAPX.js";
|
package/package.json
CHANGED
package/dist/chunk-JJKRUHWS.js
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
awaitPreviewApproval
|
|
3
|
-
} from "./chunk-D24GLTCK.js";
|
|
4
|
-
|
|
5
|
-
// src/commands/github/issue/reviewProposedIssueComment.ts
|
|
6
|
-
import { randomUUID } from "crypto";
|
|
7
|
-
async function reviewProposedIssueComment(title, body) {
|
|
8
|
-
const sessionId = process.env.ASSIST_SESSION_ID;
|
|
9
|
-
if (process.env.ASSIST_SESSION !== "1" || !sessionId) return;
|
|
10
|
-
await awaitPreviewApproval("GitHub issue comment preview", {
|
|
11
|
-
sessionId,
|
|
12
|
-
requestId: randomUUID(),
|
|
13
|
-
title,
|
|
14
|
-
body,
|
|
15
|
-
prNumber: null,
|
|
16
|
-
kind: "github-issue-comment"
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
export {
|
|
21
|
-
reviewProposedIssueComment
|
|
22
|
-
};
|