@staff0rd/assist 0.1182.5 → 0.1184.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 CHANGED
@@ -3,7 +3,7 @@ activity-2SEJVUW5.js
3
3
  add-4QMH6R4T.js
4
4
  add-A2AYOU3X.js
5
5
  add-UKTNIEOE.js
6
- addActivity-5UWKDHCJ.js
6
+ addActivity-Z5MLKDWA.js
7
7
  addPhase-X523ER6L.js
8
8
  adviceFragments-5XVE6JXX.js
9
9
  advise-LODJWGM5.js
@@ -33,6 +33,7 @@ chunk-25RUFQVZ.js
33
33
  chunk-2DBMDQH4.js
34
34
  chunk-2EW62DM5.js
35
35
  chunk-2HT3GIJD.js
36
+ chunk-2I4XK5MA.js
36
37
  chunk-2JYMVJGZ.js
37
38
  chunk-2KG6ZPX4.js
38
39
  chunk-2MG2THMQ.js
@@ -61,7 +62,6 @@ chunk-4OYAS4FY.js
61
62
  chunk-4Y4ADPEK.js
62
63
  chunk-4YAIQN3S.js
63
64
  chunk-4YHDWC5E.js
64
- chunk-54WGP6P7.js
65
65
  chunk-556BOFTS.js
66
66
  chunk-56USVTPP.js
67
67
  chunk-5H7EHZ3J.js
@@ -84,7 +84,6 @@ chunk-6Z5ZFMOK.js
84
84
  chunk-6Z7XJJNZ.js
85
85
  chunk-7ADEWYV3.js
86
86
  chunk-7B4TM3EA.js
87
- chunk-7CY5MIOG.js
88
87
  chunk-7DSWCPDZ.js
89
88
  chunk-7HNRCA3N.js
90
89
  chunk-7KDF6H4R.js
@@ -104,6 +103,7 @@ chunk-AEDF2LCO.js
104
103
  chunk-AF2N6DQA.js
105
104
  chunk-AFBVLMAJ.js
106
105
  chunk-AFQMD7AO.js
106
+ chunk-AHGWDOR4.js
107
107
  chunk-ALAS5LZJ.js
108
108
  chunk-ANCYNQJA.js
109
109
  chunk-AOEJRVBE.js
@@ -117,12 +117,15 @@ chunk-B734T35U.js
117
117
  chunk-B7B26YPF.js
118
118
  chunk-B7VOTF5Q.js
119
119
  chunk-BAMRZFTG.js
120
+ chunk-BCPHWGET.js
121
+ chunk-BDMLW7FT.js
120
122
  chunk-BFQSGIN6.js
121
123
  chunk-BI3ORSJ6.js
122
124
  chunk-BK5EYUSP.js
123
125
  chunk-BO5JCCC5.js
124
126
  chunk-BVHK2VVT.js
125
127
  chunk-BY2RUZMD.js
128
+ chunk-BZOP4WBR.js
126
129
  chunk-C3MGHR3N.js
127
130
  chunk-C4V76PIG.js
128
131
  chunk-C6H77UCJ.js
@@ -149,7 +152,6 @@ chunk-EEFDZ4FS.js
149
152
  chunk-EM5TGZYD.js
150
153
  chunk-ENBVLWTC.js
151
154
  chunk-ENTJ2N5Y.js
152
- chunk-EPTXLKIF.js
153
155
  chunk-ERG23IG5.js
154
156
  chunk-ESOUBS6M.js
155
157
  chunk-EU5YCR2M.js
@@ -193,7 +195,6 @@ chunk-IQGY6BGN.js
193
195
  chunk-IVBWOIGE.js
194
196
  chunk-IVU2B2DV.js
195
197
  chunk-IVZGIMZZ.js
196
- chunk-IW66RG5J.js
197
198
  chunk-J6ULAU7G.js
198
199
  chunk-JDPIT22R.js
199
200
  chunk-JHBA5IZR.js
@@ -214,7 +215,6 @@ chunk-K45LIKCT.js
214
215
  chunk-KD2PWI4Z.js
215
216
  chunk-KHBZVMTI.js
216
217
  chunk-KP5S3FE5.js
217
- chunk-KRKOPIZX.js
218
218
  chunk-KVIW7FOK.js
219
219
  chunk-KY77XKAU.js
220
220
  chunk-L363MNYZ.js
@@ -276,7 +276,6 @@ chunk-PIDKNOD6.js
276
276
  chunk-PPFJHCMQ.js
277
277
  chunk-PURNABFX.js
278
278
  chunk-PZAEU7LL.js
279
- chunk-Q4R6FFNU.js
280
279
  chunk-Q6PZLPK4.js
281
280
  chunk-Q7YVMIA3.js
282
281
  chunk-QAJUCN3A.js
@@ -291,8 +290,8 @@ chunk-QS2S63AF.js
291
290
  chunk-QU6OQZJ2.js
292
291
  chunk-QYXD4GZN.js
293
292
  chunk-QZPGZF4J.js
293
+ chunk-R33Q64FL.js
294
294
  chunk-R72E45HQ.js
295
- chunk-REIYW4SI.js
296
295
  chunk-RFB7FJDF.js
297
296
  chunk-RFMBA6WA.js
298
297
  chunk-RH7HJX2O.js
@@ -410,6 +409,7 @@ chunk-ZM5VU2NX.js
410
409
  chunk-ZMH7UZNP.js
411
410
  chunk-ZPGJZFFQ.js
412
411
  chunk-ZSHH4XS6.js
412
+ chunk-ZUXPVZHJ.js
413
413
  chunk-ZW2JMSTJ.js
414
414
  chunk-ZYK7V4PG.js
415
415
  clean-N5ZBCTOB.js
@@ -475,7 +475,7 @@ deps-RSUOIZPE.js
475
475
  docsConfirm-GDHYL52L.js
476
476
  docsScreenshots-W5MOOTEE.js
477
477
  docsUnlock-IO2JFHLH.js
478
- doctorNodes-ACKDIO3H.js
478
+ doctorNodes-E5YNA7DH.js
479
479
  done-3FRHKGVK.js
480
480
  drainDaemon-LRMJS4UO.js
481
481
  dropRetiredTables-JBLALSG5.js
@@ -581,7 +581,7 @@ repos-PLJEX7PA.js
581
581
  resolveHarness-3THYSJRZ.js
582
582
  resolveModel-VIDORHYH.js
583
583
  restartDaemon-UUHHVQIN.js
584
- restartNode-5CYP5K2Q.js
584
+ restartNode-5HU454NN.js
585
585
  restructure-56DYGZUB.js
586
586
  review-GLH254ZE.js
587
587
  reviewPrComments-Q3JLGPEX.js
@@ -589,7 +589,7 @@ rewindPhase-V5CB5BZQ.js
589
589
  rulesAdd-3EUUUI6O.js
590
590
  run-57MVTMKW.js
591
591
  run-RAHLYZBV.js
592
- runDaemon-6S3P5UGP.js
592
+ runDaemon-342YVOQW.js
593
593
  runExtract-RWAO2SAA.js
594
594
  runParallelPhase-QZY53C56.js
595
595
  runRefine-YW3U55TY.js
@@ -611,7 +611,7 @@ show-2N3GGRYO.js
611
611
  show-FYIFLX7C.js
612
612
  showClaudeCodeIcon-E4SAM3GN.js
613
613
  showCodexIcon-YUAKV4NI.js
614
- signExtension-XOYBI76U.js
614
+ signExtension-2WE5G5QC.js
615
615
  simulateDivergence-VB4UL4UR.js
616
616
  skip-ZAN5ANM6.js
617
617
  slack-UTI3VEV7.js
@@ -639,7 +639,7 @@ unlinkNode-MLFR2CMM.js
639
639
  unstar-PJW6MUKU.js
640
640
  update-DSDSWCZH.js
641
641
  update-IBFJPBRO.js
642
- updateNode-3L5LH7Q5.js
642
+ updateNode-JH4FCU73.js
643
643
  updatePhase-7B66ANHW.js
644
644
  updatePlan-NREHNGUK.js
645
645
  version-WWNN3LFM.js
@@ -647,8 +647,8 @@ viewIssue-CYHIPCFO.js
647
647
  watchLoop-MV7DVGC6.js
648
648
  watchReport-A4W7UOAJ.js
649
649
  watchWait-3Z6AZUFC.js
650
- web-7YKZA4KL.js
651
- web-GYQVH6AK.js
650
+ web-6EIQMFU6.js
651
+ web-NQZOX5QB.js
652
652
  withPool-J4IBOROS.js
653
653
  wontdo-U3ZYM3FI.js
654
654
  wontfix-3U7LZF2M.js
@@ -2,7 +2,7 @@ import {
2
2
  locateConversation,
3
3
  readTranscriptHead,
4
4
  transcriptMessages
5
- } from "./chunk-KRKOPIZX.js";
5
+ } from "./chunk-2I4XK5MA.js";
6
6
  import {
7
7
  gitRefUrl
8
8
  } from "./chunk-ORSRBZ2X.js";
@@ -1 +1 @@
1
- 0.1182.5
1
+ 0.1184.0
@@ -66,23 +66,31 @@ function eventTranscriptMessages(event) {
66
66
  }
67
67
 
68
68
  // src/commands/sessions/shared/transcriptMessages.ts
69
- function echoMessages(pending, until) {
70
- const due = [];
71
- while (pending.length && (until === void 0 || pending[0].at < until))
72
- due.push({ role: "user", text: pending.shift().text });
73
- return due;
69
+ function claimReply(replies, event) {
70
+ if (event.kind !== "message" || event.role !== "user" || !event.at) return;
71
+ const at = event.at;
72
+ const matching = replies.filter(
73
+ (reply2) => reply2.at <= at && event.text.startsWith(
74
+ `\`assist ${reply2.command}\` finished with exit code `
75
+ )
76
+ );
77
+ const reply = matching.at(-1);
78
+ if (!reply) return;
79
+ for (const claimed of matching) replies.splice(replies.indexOf(claimed), 1);
80
+ return reply;
74
81
  }
75
- function transcriptMessages(reader, lines, echoes = []) {
82
+ function transcriptMessages(reader, lines, replies = []) {
76
83
  const entries = lines.flatMap((line) => {
77
84
  const entry = line.trim() ? parseRolloutEntry(line) : null;
78
85
  return entry ? [entry] : [];
79
86
  });
80
- const pending = [...echoes].sort((a, b) => a.at.localeCompare(b.at));
81
- const messages = reader.events(entries).flatMap((event) => [
82
- ...event.at ? echoMessages(pending, event.at) : [],
83
- ...eventTranscriptMessages(event)
84
- ]);
85
- return [...messages, ...echoMessages(pending)];
87
+ const unclaimed = [...replies].sort((a, b) => a.at.localeCompare(b.at));
88
+ return reader.events(entries).flatMap((event) => {
89
+ const reply = claimReply(unclaimed, event);
90
+ if (reply && event.kind === "message")
91
+ return [{ role: "user", text: reply.text, sent: event.text }];
92
+ return eventTranscriptMessages(event);
93
+ });
86
94
  }
87
95
 
88
96
  export {
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-QDXJDFNJ.js";
4
4
  import {
5
5
  package_default
6
- } from "./chunk-REIYW4SI.js";
6
+ } from "./chunk-ZUXPVZHJ.js";
7
7
  import {
8
8
  loadConfig
9
9
  } from "./chunk-W7Y4YARD.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  firstBrokenHop
3
- } from "./chunk-54WGP6P7.js";
3
+ } from "./chunk-R33Q64FL.js";
4
4
  import {
5
5
  describePeerError
6
6
  } from "./chunk-VABNWHSE.js";
@@ -14,7 +14,7 @@ import {
14
14
  isHello,
15
15
  linkVersionCheck,
16
16
  negotiateProtocol
17
- } from "./chunk-7CY5MIOG.js";
17
+ } from "./chunk-AHGWDOR4.js";
18
18
 
19
19
  // src/commands/sessions/nodes/probePeerHello.ts
20
20
  var HELLO_TIMEOUT_MS = 5e3;
@@ -10,7 +10,7 @@ import {
10
10
  } from "./chunk-JM57BCD6.js";
11
11
  import {
12
12
  firstBrokenHop
13
- } from "./chunk-54WGP6P7.js";
13
+ } from "./chunk-R33Q64FL.js";
14
14
  import {
15
15
  describePeerError,
16
16
  fetchPeerJson
@@ -47,7 +47,7 @@ import {
47
47
  import {
48
48
  ASSIST_VERSION,
49
49
  PROTOCOL_VERSION
50
- } from "./chunk-7CY5MIOG.js";
50
+ } from "./chunk-AHGWDOR4.js";
51
51
  import {
52
52
  findLinkSpec
53
53
  } from "./chunk-B2OH3RAT.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  buildDoctorProbes,
3
3
  diagnoseLink
4
- } from "./chunk-EPTXLKIF.js";
4
+ } from "./chunk-BDMLW7FT.js";
5
5
  import {
6
6
  findLinkSpec
7
7
  } from "./chunk-B2OH3RAT.js";
@@ -1,7 +1,7 @@
1
1
  // package.json
2
2
  var package_default = {
3
3
  name: "@staff0rd/assist",
4
- version: "0.1182.5",
4
+ version: "0.1184.0",
5
5
  type: "module",
6
6
  main: "dist/index.js",
7
7
  bin: {