@staff0rd/assist 0.1236.1 → 0.1237.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.
Files changed (43) hide show
  1. package/allowed.cli-reads +1 -0
  2. package/dist/.build-files +35 -32
  3. package/dist/allowed.cli-reads +1 -0
  4. package/dist/built-version +1 -1
  5. package/dist/chunk-4CJXCOZS.js +39 -0
  6. package/dist/{chunk-447SO2NK.js → chunk-7W5H4AYH.js} +1 -1
  7. package/dist/{chunk-VHRROHRC.js → chunk-BBF4RRJR.js} +1 -1
  8. package/dist/{chunk-KB7HVXR3.js → chunk-FJSC75IR.js} +1 -1
  9. package/dist/{chunk-AVLELL42.js → chunk-J6GYNYUW.js} +16 -1
  10. package/dist/chunk-K2MVEETY.js +15 -0
  11. package/dist/{chunk-H2UNFXB2.js → chunk-K5X4E3IU.js} +1 -1
  12. package/dist/chunk-MKXONMBX.js +52 -0
  13. package/dist/{chunk-C3MGHR3N.js → chunk-MTTGHICE.js} +1 -11
  14. package/dist/{chunk-JAZX2JSS.js → chunk-RKRPVM7T.js} +2 -4
  15. package/dist/{chunk-IOQGN3AI.js → chunk-SGNCR5K6.js} +2 -2
  16. package/dist/{chunk-GMRZU3OG.js → chunk-VEEMB7N4.js} +1 -1
  17. package/dist/{chunk-APR23G2L.js → chunk-WJNUHB2P.js} +6 -14
  18. package/dist/{chunk-ITONDN24.js → chunk-WT45UA2O.js} +1 -1
  19. package/dist/{chunk-7QKIU4J6.js → chunk-XAKUVCAA.js} +1 -1
  20. package/dist/commands/sessions/web/bundle.js +1 -1
  21. package/dist/{comment-QCXXFHAE.js → comment-Q2E4ZSR7.js} +3 -3
  22. package/dist/{commentIssue-MF42XVP5.js → commentIssue-H4AKS4G3.js} +4 -4
  23. package/dist/{commit-S7B2QZVQ.js → commit-ZAJF2RAY.js} +3 -4
  24. package/dist/{createIssue-2DSC5YPL.js → createIssue-QAYDBQ3A.js} +3 -3
  25. package/dist/{daemonStatus-EAZHBC6O.js → daemonStatus-AUHBSCVE.js} +3 -36
  26. package/dist/{doctorNodes-EZVNTVAK.js → doctorNodes-WRMJHURB.js} +3 -3
  27. package/dist/{edit-OFDAZJXM.js → edit-KPUOFWHE.js} +4 -4
  28. package/dist/{editIssue-GHHFCOEM.js → editIssue-YXRCWEOY.js} +3 -3
  29. package/dist/{editIssueComment-B2NHIXTK.js → editIssueComment-VRDUMWW3.js} +4 -4
  30. package/dist/index.js +41 -28
  31. package/dist/listSessions-7JRA3SZY.js +133 -0
  32. package/dist/{raise-7O2USUIA.js → raise-PTWQ44G2.js} +4 -4
  33. package/dist/{reply-NKVUQ7CW.js → reply-Z6BRCAF4.js} +6 -13
  34. package/dist/{restartNode-PSRCY6X7.js → restartNode-IILQ6JME.js} +5 -5
  35. package/dist/{review-5AHHT6JE.js → review-FL3OKTUY.js} +6 -13
  36. package/dist/{runDaemon-AOPVKUT6.js → runDaemon-6J65XLN4.js} +2 -2
  37. package/dist/{signExtension-XWB2OC3M.js → signExtension-4OPSZCHA.js} +1 -1
  38. package/dist/{updateNode-QCXSC7GE.js → updateNode-WG3TYKRG.js} +5 -5
  39. package/dist/{web-OPE5UQPK.js → web-2FU3IPKG.js} +5 -5
  40. package/dist/{web-2XRICKF4.js → web-GVLIYD53.js} +5 -5
  41. package/dist/{wontfix-3ZPBKWVM.js → wontfix-OE4HH73U.js} +6 -13
  42. package/package.json +1 -1
  43. package/dist/chunk-UOFXNSGZ.js +0 -22
package/allowed.cli-reads CHANGED
@@ -67,6 +67,7 @@ assist run
67
67
  assist screenshot
68
68
  assist seq auth list
69
69
  assist seq query
70
+ assist sessions list
70
71
  assist sessions nodes
71
72
  assist sessions nodes doctor
72
73
  assist sessions nodes logs
package/dist/.build-files CHANGED
@@ -57,9 +57,9 @@ chunk-3Q45NJW2.js
57
57
  chunk-3VDV7VHX.js
58
58
  chunk-3WJYRKC3.js
59
59
  chunk-3ZHTSOYH.js
60
- chunk-447SO2NK.js
61
60
  chunk-4AZGXA6X.js
62
61
  chunk-4BVUY25U.js
62
+ chunk-4CJXCOZS.js
63
63
  chunk-4CP23TT2.js
64
64
  chunk-4FLN5D6W.js
65
65
  chunk-4HKB2TAG.js
@@ -93,9 +93,9 @@ chunk-7HNRCA3N.js
93
93
  chunk-7KDF6H4R.js
94
94
  chunk-7NZOH4LN.js
95
95
  chunk-7O5HZ73Y.js
96
- chunk-7QKIU4J6.js
97
96
  chunk-7U55PETG.js
98
97
  chunk-7V67BRBP.js
98
+ chunk-7W5H4AYH.js
99
99
  chunk-7WZ2QL34.js
100
100
  chunk-7X2IE4UD.js
101
101
  chunk-A2XSU5K6.js
@@ -107,14 +107,13 @@ chunk-ADLCDG2V.js
107
107
  chunk-AEDF2LCO.js
108
108
  chunk-AF3VNHUW.js
109
109
  chunk-ALAS5LZJ.js
110
- chunk-APR23G2L.js
111
110
  chunk-APZ6ZTDA.js
112
- chunk-AVLELL42.js
113
111
  chunk-B5ZOANOD.js
114
112
  chunk-B6RAZW2L.js
115
113
  chunk-B7B26YPF.js
116
114
  chunk-B7VOTF5Q.js
117
115
  chunk-BAIGEXPY.js
116
+ chunk-BBF4RRJR.js
118
117
  chunk-BDAHWG46.js
119
118
  chunk-BGRNWO7S.js
120
119
  chunk-BO5JCCC5.js
@@ -126,7 +125,6 @@ chunk-BX2JQE66.js
126
125
  chunk-BXGPF3TG.js
127
126
  chunk-BZGSHBFU.js
128
127
  chunk-C2R7NSOE.js
129
- chunk-C3MGHR3N.js
130
128
  chunk-CDD4ZTG7.js
131
129
  chunk-CDDJAXEJ.js
132
130
  chunk-CDU6M5IX.js
@@ -156,6 +154,7 @@ chunk-F4XCHVD7.js
156
154
  chunk-F7QYFJB2.js
157
155
  chunk-FCPKTRBX.js
158
156
  chunk-FI6C7SBQ.js
157
+ chunk-FJSC75IR.js
159
158
  chunk-FMX5RWG3.js
160
159
  chunk-FOPR6LRY.js
161
160
  chunk-FPWL4VRC.js
@@ -169,12 +168,10 @@ chunk-GIHVMELY.js
169
168
  chunk-GIPXFBGA.js
170
169
  chunk-GJFTADBZ.js
171
170
  chunk-GL5GKF5A.js
172
- chunk-GMRZU3OG.js
173
171
  chunk-GQF23TWI.js
174
172
  chunk-GRXFWFGP.js
175
173
  chunk-GVI4JSG7.js
176
174
  chunk-GVVK5XFZ.js
177
- chunk-H2UNFXB2.js
178
175
  chunk-H2WZXCE4.js
179
176
  chunk-H3GGPUN6.js
180
177
  chunk-H3LTWKTD.js
@@ -197,14 +194,12 @@ chunk-IIA6M7YL.js
197
194
  chunk-IKL7P6NP.js
198
195
  chunk-ILYMJZ77.js
199
196
  chunk-IOKBCYSG.js
200
- chunk-IOQGN3AI.js
201
197
  chunk-IOYGR6YV.js
202
- chunk-ITONDN24.js
203
198
  chunk-IU5KVSKH.js
204
199
  chunk-IVBWOIGE.js
205
200
  chunk-IWQEVVOM.js
206
201
  chunk-IWQPS3XV.js
207
- chunk-JAZX2JSS.js
202
+ chunk-J6GYNYUW.js
208
203
  chunk-JBNAFQ4Q.js
209
204
  chunk-JHBA5IZR.js
210
205
  chunk-JJKKIBF5.js
@@ -217,9 +212,10 @@ chunk-JQNDG4PF.js
217
212
  chunk-JUVR4JSY.js
218
213
  chunk-JVG5AJA2.js
219
214
  chunk-JVTCXR7C.js
215
+ chunk-K2MVEETY.js
220
216
  chunk-K45LIKCT.js
221
217
  chunk-K4DJEFDZ.js
222
- chunk-KB7HVXR3.js
218
+ chunk-K5X4E3IU.js
223
219
  chunk-KD2PWI4Z.js
224
220
  chunk-KP5S3FE5.js
225
221
  chunk-KRE3QQUK.js
@@ -245,9 +241,11 @@ chunk-MHZPUVBL.js
245
241
  chunk-MJ44T7R4.js
246
242
  chunk-MJLABLH5.js
247
243
  chunk-MKBZCWWG.js
244
+ chunk-MKXONMBX.js
248
245
  chunk-MPY2OF65.js
249
246
  chunk-MQBXLYZK.js
250
247
  chunk-MRUIXQXS.js
248
+ chunk-MTTGHICE.js
251
249
  chunk-MVM6TRO6.js
252
250
  chunk-N4BNRDK2.js
253
251
  chunk-N65VOEFI.js
@@ -299,6 +297,7 @@ chunk-QU6OQZJ2.js
299
297
  chunk-R72E45HQ.js
300
298
  chunk-RFMBA6WA.js
301
299
  chunk-RHGJ7MLT.js
300
+ chunk-RKRPVM7T.js
302
301
  chunk-RNFWWESE.js
303
302
  chunk-ROIWAEUG.js
304
303
  chunk-RQVNSRYE.js
@@ -307,6 +306,7 @@ chunk-RXKI4XAU.js
307
306
  chunk-RXORGZF5.js
308
307
  chunk-S6XYTJU2.js
309
308
  chunk-SDMBTSYP.js
309
+ chunk-SGNCR5K6.js
310
310
  chunk-SHT4QFTE.js
311
311
  chunk-SLA3JY7M.js
312
312
  chunk-SO3IBV6J.js
@@ -335,7 +335,6 @@ chunk-UE5PIMY2.js
335
335
  chunk-UEWARAPX.js
336
336
  chunk-UJBW7FVI.js
337
337
  chunk-UN4ABKA7.js
338
- chunk-UOFXNSGZ.js
339
338
  chunk-UOYZCIWZ.js
340
339
  chunk-UP6QV5BJ.js
341
340
  chunk-UVCAGPRO.js
@@ -347,8 +346,8 @@ chunk-VB7HP5MH.js
347
346
  chunk-VDE2QVT4.js
348
347
  chunk-VDSAWBQK.js
349
348
  chunk-VDXS55BC.js
349
+ chunk-VEEMB7N4.js
350
350
  chunk-VEZ3FL5H.js
351
- chunk-VHRROHRC.js
352
351
  chunk-VPMI4LV2.js
353
352
  chunk-VSNU22V2.js
354
353
  chunk-VVUYBY6D.js
@@ -360,7 +359,9 @@ chunk-WB4AONKW.js
360
359
  chunk-WC4M6JEA.js
361
360
  chunk-WDODIKZ4.js
362
361
  chunk-WI4DUARF.js
362
+ chunk-WJNUHB2P.js
363
363
  chunk-WOGUXGZS.js
364
+ chunk-WT45UA2O.js
364
365
  chunk-WVTWOSHZ.js
365
366
  chunk-WXQ3EA5H.js
366
367
  chunk-WYNRHOR7.js
@@ -370,6 +371,7 @@ chunk-X2HS4YDB.js
370
371
  chunk-X44VETJF.js
371
372
  chunk-XA3VSUG6.js
372
373
  chunk-XADYGSUA.js
374
+ chunk-XAKUVCAA.js
373
375
  chunk-XCMXBJ67.js
374
376
  chunk-XEJODD6D.js
375
377
  chunk-XFHYKQSY.js
@@ -450,10 +452,10 @@ commands/sessions/web/monaco.css
450
452
  commands/sessions/web/monaco.js
451
453
  commands/sessions/web/monaco.worker.js
452
454
  comment-CT2WYC3F.js
453
- comment-QCXXFHAE.js
454
- commentIssue-MF42XVP5.js
455
+ comment-Q2E4ZSR7.js
456
+ commentIssue-H4AKS4G3.js
455
457
  comments-CJNSMZQ5.js
456
- commit-S7B2QZVQ.js
458
+ commit-ZAJF2RAY.js
457
459
  commits-QFWMYJC5.js
458
460
  configGet-WAFEQ5DN.js
459
461
  configImportRepos-MOLRTBON.js
@@ -465,9 +467,9 @@ configSet-KW7IUN5I.js
465
467
  configUnset-TB2IIVSI.js
466
468
  configure-R3QJWOXZ.js
467
469
  coverage-FZKHWD7V.js
468
- createIssue-2DSC5YPL.js
470
+ createIssue-QAYDBQ3A.js
469
471
  cyclomatic-T2P36FRX.js
470
- daemonStatus-EAZHBC6O.js
472
+ daemonStatus-AUHBSCVE.js
471
473
  del-3YPAFAOH.js
472
474
  deleteCommentCmd-MI6SAEDR.js
473
475
  denyAdd-FOT43S3X.js
@@ -477,14 +479,14 @@ deps-RSUOIZPE.js
477
479
  docsConfirm-HL52PPL5.js
478
480
  docsScreenshots-3H6Y6RXC.js
479
481
  docsUnlock-KFYTPDZN.js
480
- doctorNodes-EZVNTVAK.js
482
+ doctorNodes-WRMJHURB.js
481
483
  done-XXQJDV2B.js
482
484
  drainDaemon-AJVBJMP2.js
483
485
  dropRetiredTables-JBLALSG5.js
484
- edit-OFDAZJXM.js
486
+ edit-KPUOFWHE.js
485
487
  editHook-RN5UYZXP.js
486
- editIssue-GHHFCOEM.js
487
- editIssueComment-B2NHIXTK.js
488
+ editIssue-YXRCWEOY.js
489
+ editIssueComment-VRDUMWW3.js
488
490
  exportBacklog-DXWJ6DMC.js
489
491
  extension-YYRD5EM6.js
490
492
  extract-SGYOCBTT.js
@@ -526,6 +528,7 @@ listComments-JOZBDVEL.js
526
528
  listModels-VH5ZO5W4.js
527
529
  listNodes-KWE4767O.js
528
530
  listRules-XBWM5DPH.js
531
+ listSessions-7JRA3SZY.js
529
532
  maintainability-KNCWZMV3.js
530
533
  merge-5FURAXPB.js
531
534
  mermaidExport-WSKYA5EM.js
@@ -557,7 +560,7 @@ prs-RSBCBF4N.js
557
560
  prsSlackChannel-XSRT4VLM.js
558
561
  prsStatus-AEZDQ4HE.js
559
562
  pullIfConfigured-DVQI3SO4.js
560
- raise-7O2USUIA.js
563
+ raise-PTWQ44G2.js
561
564
  raiseHelpText-AQQMQGSW.js
562
565
  ravendbAuth-MMHSHQT5.js
563
566
  ravendbCollections-KLBWRI3A.js
@@ -578,21 +581,21 @@ removePhase-WEX2IX4Q.js
578
581
  rename-PM5VQUCY.js
579
582
  renameSession-6OCEPFKV.js
580
583
  renameSymbol-OOIIGF3B.js
581
- reply-NKVUQ7CW.js
584
+ reply-Z6BRCAF4.js
582
585
  reportCliError-ITYUYTV7.js
583
586
  repos-EN4WBRCC.js
584
587
  resolveHarness-XVQTLQSY.js
585
588
  resolveModel-JNZWGV2O.js
586
589
  restartDaemon-WZLJHORO.js
587
- restartNode-PSRCY6X7.js
590
+ restartNode-IILQ6JME.js
588
591
  restructure-ZU2P326R.js
589
- review-5AHHT6JE.js
592
+ review-FL3OKTUY.js
590
593
  reviewPrComments-5XLNHJQL.js
591
594
  rewindPhase-IFYZRJ4K.js
592
595
  rulesAdd-3QWME3NR.js
593
596
  run-KRPWLBMG.js
594
597
  run-U3BWDNHC.js
595
- runDaemon-AOPVKUT6.js
598
+ runDaemon-6J65XLN4.js
596
599
  runExtract-ALIPH4ZQ.js
597
600
  runParallelPhase-JMDSJQVL.js
598
601
  runRefine-WMGQDYOJ.js
@@ -614,7 +617,7 @@ show-COIEPVBU.js
614
617
  show-CQOFC52U.js
615
618
  showClaudeCodeIcon-E4SAM3GN.js
616
619
  showCodexIcon-YUAKV4NI.js
617
- signExtension-XWB2OC3M.js
620
+ signExtension-4OPSZCHA.js
618
621
  simulateDivergence-VB4UL4UR.js
619
622
  skip-PAHPQEFP.js
620
623
  slack-O2XLD5CC.js
@@ -642,7 +645,7 @@ unlinkNode-S6VO2V2X.js
642
645
  unstar-NHHCLJ3G.js
643
646
  update-X5XCSYYE.js
644
647
  update-YOZ4AG5U.js
645
- updateNode-QCXSC7GE.js
648
+ updateNode-WG3TYKRG.js
646
649
  updatePhase-XR3UZJ4X.js
647
650
  updatePlan-S6L7HLOT.js
648
651
  version-U2VJ6IO3.js
@@ -650,10 +653,10 @@ viewIssue-N6W53LSK.js
650
653
  watchLoop-MV7DVGC6.js
651
654
  watchReport-A4W7UOAJ.js
652
655
  watchWait-KM7SD3SA.js
653
- web-2XRICKF4.js
654
- web-OPE5UQPK.js
656
+ web-2FU3IPKG.js
657
+ web-GVLIYD53.js
655
658
  withPool-LHDHYOLU.js
656
659
  wontdo-VOLZN35D.js
657
- wontfix-3ZPBKWVM.js
660
+ wontfix-OE4HH73U.js
658
661
  write-SWLV5FJZ.js
659
662
  writeSignal-RXEOI7SK.js
@@ -67,6 +67,7 @@ assist run
67
67
  assist screenshot
68
68
  assist seq auth list
69
69
  assist seq query
70
+ assist sessions list
70
71
  assist sessions nodes
71
72
  assist sessions nodes doctor
72
73
  assist sessions nodes logs
@@ -1 +1 @@
1
- 0.1236.1
1
+ 0.1237.0
@@ -0,0 +1,39 @@
1
+ // src/commands/sessions/daemon/queryDaemon.ts
2
+ import { createInterface } from "readline";
3
+ var STATUS_TIMEOUT_MS = 5e3;
4
+ function queryDaemon(socket) {
5
+ socket.write(`${JSON.stringify({ type: "ping" })}
6
+ `);
7
+ return new Promise((resolve) => {
8
+ const result = { sessions: [] };
9
+ const pending = /* @__PURE__ */ new Set(["sessions", "pong"]);
10
+ const timer = setTimeout(() => resolve(result), STATUS_TIMEOUT_MS);
11
+ const lines = createInterface({ input: socket });
12
+ lines.on("error", () => {
13
+ });
14
+ lines.on("line", (line) => {
15
+ applyLine(result, pending, line);
16
+ if (pending.size === 0) {
17
+ clearTimeout(timer);
18
+ resolve(result);
19
+ }
20
+ });
21
+ });
22
+ }
23
+ function applyLine(result, pending, line) {
24
+ try {
25
+ const data = JSON.parse(line);
26
+ if (data.type === "sessions") {
27
+ result.sessions = data.sessions ?? [];
28
+ pending.delete("sessions");
29
+ } else if (data.type === "pong") {
30
+ result.pid = data.pid;
31
+ pending.delete("pong");
32
+ }
33
+ } catch {
34
+ }
35
+ }
36
+
37
+ export {
38
+ queryDaemon
39
+ };
@@ -1,7 +1,7 @@
1
1
  // package.json
2
2
  var package_default = {
3
3
  name: "@staff0rd/assist",
4
- version: "0.1236.1",
4
+ version: "0.1237.0",
5
5
  type: "module",
6
6
  main: "dist/index.js",
7
7
  bin: {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  validateProposedContent
3
- } from "./chunk-JAZX2JSS.js";
3
+ } from "./chunk-RKRPVM7T.js";
4
4
  import {
5
5
  normalizeGithubIssue
6
6
  } from "./chunk-FVZP4ULO.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  buildDoctorProbes,
3
3
  diagnoseLink
4
- } from "./chunk-H2UNFXB2.js";
4
+ } from "./chunk-K5X4E3IU.js";
5
5
  import {
6
6
  findLinkSpec
7
7
  } from "./chunk-P7QEHVJJ.js";
@@ -1,3 +1,7 @@
1
+ import {
2
+ findHarnessAttribution
3
+ } from "./chunk-MTTGHICE.js";
4
+
1
5
  // src/commands/sessions/summarise/scanSessionBacklogRefs.ts
2
6
  function extractBacklogIds(text) {
3
7
  const ids = [];
@@ -28,7 +32,18 @@ function backlogRefError(subject, context, ids) {
28
32
  return `Error: ${subject} must not reference assist backlog items (found ${refs}). Do not include assist references or backlog numbers in ${context} \u2014 the backlog item links to your work, not the other way around.`;
29
33
  }
30
34
 
35
+ // src/shared/rejectHarnessAttribution.ts
36
+ function rejectHarnessAttribution(label, text) {
37
+ const phrase = findHarnessAttribution(text);
38
+ if (!phrase) return;
39
+ console.error(
40
+ `Error: ${label} must not contain coding-agent attribution ("${phrase}")`
41
+ );
42
+ process.exit(1);
43
+ }
44
+
31
45
  export {
32
46
  findBacklogRefs,
33
- backlogRefError
47
+ backlogRefError,
48
+ rejectHarnessAttribution
34
49
  };
@@ -0,0 +1,15 @@
1
+ import {
2
+ findHarnessNameViolation
3
+ } from "./chunk-MKXONMBX.js";
4
+
5
+ // src/commands/prs/rejectHarnessNames.ts
6
+ function rejectHarnessNames(label, text) {
7
+ const violation = findHarnessNameViolation(label, text);
8
+ if (!violation) return;
9
+ console.error(`Error: ${violation}`);
10
+ process.exit(1);
11
+ }
12
+
13
+ export {
14
+ rejectHarnessNames
15
+ };
@@ -14,7 +14,7 @@ import {
14
14
  isHello,
15
15
  linkVersionCheck,
16
16
  negotiateProtocol
17
- } from "./chunk-GMRZU3OG.js";
17
+ } from "./chunk-VEEMB7N4.js";
18
18
 
19
19
  // src/commands/sessions/nodes/probePeerHello.ts
20
20
  var HELLO_TIMEOUT_MS = 5e3;
@@ -0,0 +1,52 @@
1
+ import {
2
+ findHarnessAttribution
3
+ } from "./chunk-MTTGHICE.js";
4
+ import {
5
+ awaitPreviewApproval
6
+ } from "./chunk-IWQEVVOM.js";
7
+
8
+ // src/commands/review/reviewerHarnesses.ts
9
+ var reviewerHarnesses = [
10
+ "claude",
11
+ "codex"
12
+ ];
13
+ var reviewerNameWords = {
14
+ claude: ["claude", "opus"],
15
+ codex: ["codex"]
16
+ };
17
+
18
+ // src/commands/prs/findHarnessNameViolation.ts
19
+ var NAME_WORDS = reviewerNameWords.claude;
20
+ var NAME_PATTERNS = NAME_WORDS.map(
21
+ (word) => new RegExp(`\\b${word}\\b`, "i")
22
+ );
23
+ function findHarnessNameViolation(label, text) {
24
+ if (NAME_PATTERNS.some((pattern) => pattern.test(text)))
25
+ return `${label} must not contain ${NAME_WORDS.map((word) => `"${word}"`).join(" or ")}`;
26
+ const phrase = findHarnessAttribution(text);
27
+ if (phrase)
28
+ return `${label} must not contain coding-agent attribution ("${phrase}")`;
29
+ return void 0;
30
+ }
31
+
32
+ // src/commands/prs/reviewProposedPrComment.ts
33
+ import { randomUUID } from "crypto";
34
+ async function reviewProposedPrComment(title, body, prNumber) {
35
+ const sessionId = process.env.ASSIST_SESSION_ID;
36
+ if (process.env.ASSIST_SESSION !== "1" || !sessionId) return;
37
+ await awaitPreviewApproval("PR comment preview", {
38
+ sessionId,
39
+ requestId: randomUUID(),
40
+ title,
41
+ body,
42
+ prNumber,
43
+ kind: "pr-comment"
44
+ });
45
+ }
46
+
47
+ export {
48
+ reviewerHarnesses,
49
+ reviewerNameWords,
50
+ findHarnessNameViolation,
51
+ reviewProposedPrComment
52
+ };
@@ -10,16 +10,6 @@ function findHarnessAttribution(text) {
10
10
  return HARNESS_ATTRIBUTION_PHRASES.find((phrase) => lower.includes(phrase));
11
11
  }
12
12
 
13
- // src/shared/rejectHarnessAttribution.ts
14
- function rejectHarnessAttribution(label, text) {
15
- const phrase = findHarnessAttribution(text);
16
- if (!phrase) return;
17
- console.error(
18
- `Error: ${label} must not contain coding-agent attribution ("${phrase}")`
19
- );
20
- process.exit(1);
21
- }
22
-
23
13
  export {
24
- rejectHarnessAttribution
14
+ findHarnessAttribution
25
15
  };
@@ -1,10 +1,8 @@
1
1
  import {
2
2
  backlogRefError,
3
- findBacklogRefs
4
- } from "./chunk-AVLELL42.js";
5
- import {
3
+ findBacklogRefs,
6
4
  rejectHarnessAttribution
7
- } from "./chunk-C3MGHR3N.js";
5
+ } from "./chunk-J6GYNYUW.js";
8
6
  import {
9
7
  attachmentContentType,
10
8
  stageAttachment
@@ -10,7 +10,7 @@ import {
10
10
  } from "./chunk-JM57BCD6.js";
11
11
  import {
12
12
  firstBrokenHop
13
- } from "./chunk-KB7HVXR3.js";
13
+ } from "./chunk-FJSC75IR.js";
14
14
  import {
15
15
  describePeerError,
16
16
  fetchPeerJson
@@ -48,7 +48,7 @@ import {
48
48
  import {
49
49
  ASSIST_VERSION,
50
50
  PROTOCOL_VERSION
51
- } from "./chunk-GMRZU3OG.js";
51
+ } from "./chunk-VEEMB7N4.js";
52
52
  import {
53
53
  findLinkSpec
54
54
  } from "./chunk-P7QEHVJJ.js";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-MKBZCWWG.js";
4
4
  import {
5
5
  package_default
6
- } from "./chunk-447SO2NK.js";
6
+ } from "./chunk-7W5H4AYH.js";
7
7
  import {
8
8
  loadConfig
9
9
  } from "./chunk-XNIKOBRH.js";
@@ -1,6 +1,7 @@
1
1
  import {
2
+ findHarnessNameViolation,
2
3
  reviewProposedPrComment
3
- } from "./chunk-UOFXNSGZ.js";
4
+ } from "./chunk-MKXONMBX.js";
4
5
  import {
5
6
  runGhGraphql
6
7
  } from "./chunk-ZLRZR64W.js";
@@ -8,9 +9,6 @@ import {
8
9
  getCurrentPrNodeId,
9
10
  isGhNotInstalled
10
11
  } from "./chunk-SO3IBV6J.js";
11
- import {
12
- rejectHarnessAttribution
13
- } from "./chunk-C3MGHR3N.js";
14
12
 
15
13
  // src/commands/prs/postReviewComment.ts
16
14
  var MUTATION_SINGLE = `mutation($prId: ID!, $body: String!, $path: String!, $line: Int!) { addPullRequestReviewThread(input: { pullRequestId: $prId, body: $body, path: $path, line: $line, side: RIGHT }) { thread { id } } }`;
@@ -37,18 +35,12 @@ function postReviewComment(vars) {
37
35
 
38
36
  // src/commands/prs/comment.ts
39
37
  function validateBody(body) {
40
- const lower = body.toLowerCase();
41
- if (lower.includes("claude") || lower.includes("opus")) {
42
- console.error('Error: Body must not contain "claude" or "opus"');
43
- process.exit(1);
44
- }
45
- rejectHarnessAttribution("Body", body);
38
+ const violation = findHarnessNameViolation("Body", body);
39
+ if (violation) throw new Error(violation);
46
40
  }
47
41
  function validateLine(line) {
48
- if (!Number.isInteger(line) || line < 1) {
49
- console.error("Error: Line must be a positive integer");
50
- process.exit(1);
51
- }
42
+ if (!Number.isInteger(line) || line < 1)
43
+ throw new Error("Line must be a positive integer");
52
44
  }
53
45
  async function comment(path, line, body, options = {}) {
54
46
  const { startLine, skipPreview } = options;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  firstBrokenHop
3
- } from "./chunk-KB7HVXR3.js";
3
+ } from "./chunk-FJSC75IR.js";
4
4
  import {
5
5
  describePeerError
6
6
  } from "./chunk-VABNWHSE.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  stageScreenshots
3
- } from "./chunk-JAZX2JSS.js";
3
+ } from "./chunk-RKRPVM7T.js";
4
4
  import {
5
5
  awaitPreviewApproval
6
6
  } from "./chunk-IWQEVVOM.js";