@staff0rd/assist 0.1183.0 → 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,11 +33,11 @@ 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
39
40
  chunk-2OAW4T47.js
40
- chunk-2OZNXGMF.js
41
41
  chunk-2PO6HLR6.js
42
42
  chunk-2Y774DMJ.js
43
43
  chunk-3CMKKJHU.js
@@ -103,6 +103,7 @@ chunk-AEDF2LCO.js
103
103
  chunk-AF2N6DQA.js
104
104
  chunk-AFBVLMAJ.js
105
105
  chunk-AFQMD7AO.js
106
+ chunk-AHGWDOR4.js
106
107
  chunk-ALAS5LZJ.js
107
108
  chunk-ANCYNQJA.js
108
109
  chunk-AOEJRVBE.js
@@ -116,14 +117,15 @@ chunk-B734T35U.js
116
117
  chunk-B7B26YPF.js
117
118
  chunk-B7VOTF5Q.js
118
119
  chunk-BAMRZFTG.js
119
- chunk-BC5UJTW6.js
120
- chunk-BCN5YGN4.js
120
+ chunk-BCPHWGET.js
121
+ chunk-BDMLW7FT.js
121
122
  chunk-BFQSGIN6.js
122
123
  chunk-BI3ORSJ6.js
123
124
  chunk-BK5EYUSP.js
124
125
  chunk-BO5JCCC5.js
125
126
  chunk-BVHK2VVT.js
126
127
  chunk-BY2RUZMD.js
128
+ chunk-BZOP4WBR.js
127
129
  chunk-C3MGHR3N.js
128
130
  chunk-C4V76PIG.js
129
131
  chunk-C6H77UCJ.js
@@ -183,7 +185,6 @@ chunk-GVVK5XFZ.js
183
185
  chunk-H63MI5HI.js
184
186
  chunk-HCANRBFK.js
185
187
  chunk-HKGCLAZ7.js
186
- chunk-HLGG6372.js
187
188
  chunk-HN7MFXZ7.js
188
189
  chunk-HQ7SE6R2.js
189
190
  chunk-I3TEQBTO.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
@@ -261,7 +261,6 @@ chunk-ONODYZ2H.js
261
261
  chunk-OQ6AYXHB.js
262
262
  chunk-ORSRBZ2X.js
263
263
  chunk-OSZLOSQ7.js
264
- chunk-OTBG7NWH.js
265
264
  chunk-OU6Q5ZS3.js
266
265
  chunk-OZNYQOQK.js
267
266
  chunk-OZTCLQ2P.js
@@ -291,6 +290,7 @@ 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
295
  chunk-RFB7FJDF.js
296
296
  chunk-RFMBA6WA.js
@@ -333,7 +333,6 @@ chunk-USKD27FY.js
333
333
  chunk-UXHNN5NF.js
334
334
  chunk-V3AWLJ7P.js
335
335
  chunk-V3PLXXT5.js
336
- chunk-V7LKPU6K.js
337
336
  chunk-VABNWHSE.js
338
337
  chunk-VAGZIGNN.js
339
338
  chunk-VDE2QVT4.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-ODYR6ZAC.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-DIC2TQJ3.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-HL5GQ34S.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-6PJQNRY6.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-WNYIOE7M.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-KETYWG4M.js
651
- web-YYRJTAU7.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.1183.0
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-BCN5YGN4.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-V7LKPU6K.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-OTBG7NWH.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-V7LKPU6K.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-OTBG7NWH.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-2OZNXGMF.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.1183.0",
4
+ version: "0.1184.0",
5
5
  type: "module",
6
6
  main: "dist/index.js",
7
7
  bin: {