@staff0rd/assist 0.1189.5 → 0.1190.1

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
@@ -30,6 +30,7 @@ check-ID7FFCHZ.js
30
30
  checkBuildLocks-UBGUSNX5.js
31
31
  chunk-22EV6N3N.js
32
32
  chunk-233FYQ37.js
33
+ chunk-24PO57QI.js
33
34
  chunk-25RUFQVZ.js
34
35
  chunk-2EW62DM5.js
35
36
  chunk-2JYMVJGZ.js
@@ -38,7 +39,7 @@ chunk-2MG2THMQ.js
38
39
  chunk-2RUGZQUD.js
39
40
  chunk-2RYBRXTJ.js
40
41
  chunk-2T5HRFWP.js
41
- chunk-3GF2SY6F.js
42
+ chunk-2ZUJA3R6.js
42
43
  chunk-3HNTLFII.js
43
44
  chunk-3JXMQFUS.js
44
45
  chunk-3KLTYFPV.js
@@ -63,6 +64,7 @@ chunk-5Q7MUHCK.js
63
64
  chunk-5QM5VR3J.js
64
65
  chunk-5QXAQCAJ.js
65
66
  chunk-5SXNWSSH.js
67
+ chunk-5V3LHEZ2.js
66
68
  chunk-5YO2D7JF.js
67
69
  chunk-627BOMSN.js
68
70
  chunk-655A7RGF.js
@@ -90,6 +92,7 @@ chunk-ADLCDG2V.js
90
92
  chunk-AEDF2LCO.js
91
93
  chunk-AFQMD7AO.js
92
94
  chunk-AH7XVN5D.js
95
+ chunk-AIEDVYID.js
93
96
  chunk-ALAS5LZJ.js
94
97
  chunk-APZ6ZTDA.js
95
98
  chunk-AVLELL42.js
@@ -104,7 +107,6 @@ chunk-BFGH34XT.js
104
107
  chunk-BJNES5JB.js
105
108
  chunk-BO5JCCC5.js
106
109
  chunk-BOXQXHJ3.js
107
- chunk-BVBOMECF.js
108
110
  chunk-BVHK2VVT.js
109
111
  chunk-BXGPF3TG.js
110
112
  chunk-C3MGHR3N.js
@@ -116,6 +118,7 @@ chunk-CDU6M5IX.js
116
118
  chunk-CGYVYHMM.js
117
119
  chunk-CUOHHT2F.js
118
120
  chunk-D24GLTCK.js
121
+ chunk-D33NLT35.js
119
122
  chunk-D6WBUFXT.js
120
123
  chunk-D7UZLH36.js
121
124
  chunk-DGQ7KOW4.js
@@ -165,13 +168,12 @@ chunk-GVI4JSG7.js
165
168
  chunk-GVVK5XFZ.js
166
169
  chunk-H2KHIEQF.js
167
170
  chunk-H63MI5HI.js
168
- chunk-H7B7DQXK.js
169
171
  chunk-H7EUPSJB.js
170
172
  chunk-HBEQCMHL.js
171
- chunk-HCSEDZIN.js
172
173
  chunk-HEFN57NV.js
173
174
  chunk-HI6T3DND.js
174
175
  chunk-HIOA4WIF.js
176
+ chunk-HKALJ6A7.js
175
177
  chunk-HKGCLAZ7.js
176
178
  chunk-HN7MFXZ7.js
177
179
  chunk-HR7HIPYM.js
@@ -209,6 +211,7 @@ chunk-JNCFHWBK.js
209
211
  chunk-JNEYUOQ3.js
210
212
  chunk-JPM7HCLI.js
211
213
  chunk-JPRADR2E.js
214
+ chunk-JRIJ5TC2.js
212
215
  chunk-JS2XXDJN.js
213
216
  chunk-JUVR4JSY.js
214
217
  chunk-JVG5AJA2.js
@@ -270,7 +273,6 @@ chunk-P7SERZI6.js
270
273
  chunk-PB3F4XB3.js
271
274
  chunk-PCJ25T4O.js
272
275
  chunk-PIDKNOD6.js
273
- chunk-POV5HHVD.js
274
276
  chunk-PPPKJV3H.js
275
277
  chunk-PS3TSUFD.js
276
278
  chunk-PURNABFX.js
@@ -284,12 +286,12 @@ chunk-QADVHG7P.js
284
286
  chunk-QAJUCN3A.js
285
287
  chunk-QBRRDTBJ.js
286
288
  chunk-QJRCKXTM.js
287
- chunk-QJTELKME.js
288
289
  chunk-QNVYNVAM.js
289
290
  chunk-QO3TSFL2.js
290
291
  chunk-QRTB7PVR.js
291
292
  chunk-QS2S63AF.js
292
293
  chunk-QU6OQZJ2.js
294
+ chunk-QUW7O7OA.js
293
295
  chunk-R62CNGZO.js
294
296
  chunk-R72E45HQ.js
295
297
  chunk-RFMBA6WA.js
@@ -316,6 +318,7 @@ chunk-T7ZPGAB5.js
316
318
  chunk-TEBEVYZR.js
317
319
  chunk-TJGF3Z72.js
318
320
  chunk-TJM6UIF2.js
321
+ chunk-TO2PEQKB.js
319
322
  chunk-TSRTRJU4.js
320
323
  chunk-TUPSNHFZ.js
321
324
  chunk-TVQY3HPZ.js
@@ -333,7 +336,6 @@ chunk-USKD27FY.js
333
336
  chunk-USXVRG3R.js
334
337
  chunk-UT4KBNN4.js
335
338
  chunk-UYSNEOWQ.js
336
- chunk-V2USOHVB.js
337
339
  chunk-V3AWLJ7P.js
338
340
  chunk-VABNWHSE.js
339
341
  chunk-VAFCLLQN.js
@@ -379,7 +381,6 @@ chunk-YJ72SXVD.js
379
381
  chunk-YKVLG4SZ.js
380
382
  chunk-YNHPTUHS.js
381
383
  chunk-YNRNHUFX.js
382
- chunk-YO266JVW.js
383
384
  chunk-YOFY27RM.js
384
385
  chunk-YQ3CNWB3.js
385
386
  chunk-YRA6OXG2.js
@@ -405,7 +406,6 @@ chunk-ZN5LRXXN.js
405
406
  chunk-ZNA4X3WZ.js
406
407
  chunk-ZQCL465S.js
407
408
  chunk-ZQGAGLBO.js
408
- chunk-ZQUDXW55.js
409
409
  chunk-ZRIBI33P.js
410
410
  chunk-ZSHH4XS6.js
411
411
  chunk-ZWPML4IH.js
@@ -474,7 +474,7 @@ deps-RSUOIZPE.js
474
474
  docsConfirm-AQGXUXUM.js
475
475
  docsScreenshots-VV5F5SK5.js
476
476
  docsUnlock-JTCIE32Q.js
477
- doctorNodes-7DZDEIL2.js
477
+ doctorNodes-HQMT3M2F.js
478
478
  done-YSG44MAX.js
479
479
  drainDaemon-ZHP2VY7D.js
480
480
  dropRetiredTables-JBLALSG5.js
@@ -485,7 +485,7 @@ editIssueComment-L6RLH4GX.js
485
485
  exportBacklog-ZTMILEAX.js
486
486
  extension-YYRD5EM6.js
487
487
  extract-SGYOCBTT.js
488
- fixConflict-5JCFZ2XI.js
488
+ fixConflict-5V3DTCGW.js
489
489
  fixStructure-4UTN5ED6.js
490
490
  fixed-URDHVG6F.js
491
491
  forbiddenStrings-CAQE3QI2.js
@@ -581,15 +581,15 @@ repos-HRCIMY6J.js
581
581
  resolveHarness-CRWWVE4U.js
582
582
  resolveModel-2I3SVZKR.js
583
583
  restartDaemon-Y7V2QF3N.js
584
- restartNode-7RVLA33K.js
584
+ restartNode-4VCW6E63.js
585
585
  restructure-S6KIV6TM.js
586
- review-76EOEYFP.js
587
- reviewPrComments-KV5QES7A.js
586
+ review-Q2HDUBAA.js
587
+ reviewPrComments-PX4MPOTQ.js
588
588
  rewindPhase-TCQMOWKB.js
589
589
  rulesAdd-DR25M5KY.js
590
590
  run-D7UQIGJU.js
591
591
  run-DRGU5WNL.js
592
- runDaemon-LHSLYZYL.js
592
+ runDaemon-USZWF2C6.js
593
593
  runExtract-7H2MKKFQ.js
594
594
  runParallelPhase-6GQMW5NT.js
595
595
  runRefine-K764J34T.js
@@ -611,7 +611,7 @@ show-GUW62FKK.js
611
611
  show-IWLHTZEP.js
612
612
  showClaudeCodeIcon-E4SAM3GN.js
613
613
  showCodexIcon-YUAKV4NI.js
614
- signExtension-XP5VSBTW.js
614
+ signExtension-QX4OEZFI.js
615
615
  simulateDivergence-VB4UL4UR.js
616
616
  skip-7Q3IVOBV.js
617
617
  slack-VILAGICW.js
@@ -639,7 +639,7 @@ unlinkNode-RKC44U2T.js
639
639
  unstar-YQDZUJV7.js
640
640
  update-FHGTCK6N.js
641
641
  update-W7ANHGDR.js
642
- updateNode-7IFCO7ND.js
642
+ updateNode-Z4VF7RNS.js
643
643
  updatePhase-JEVJRAOR.js
644
644
  updatePlan-QZVWDL2U.js
645
645
  version-5K75T67C.js
@@ -647,8 +647,8 @@ viewIssue-N6W53LSK.js
647
647
  watchLoop-MV7DVGC6.js
648
648
  watchReport-A4W7UOAJ.js
649
649
  watchWait-5Y2J5VQY.js
650
- web-IBMNV4VH.js
651
- web-Y6TOXCF6.js
650
+ web-EJ5IN72X.js
651
+ web-KNBXQ6QF.js
652
652
  withPool-LEJ76IOJ.js
653
653
  wontdo-XAQGHSR5.js
654
654
  wontfix-XV5XJADI.js
@@ -1 +1 @@
1
- 0.1189.5
1
+ 0.1190.1
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  firstBrokenHop
3
- } from "./chunk-H7B7DQXK.js";
3
+ } from "./chunk-HKALJ6A7.js";
4
4
  import {
5
5
  describePeerError
6
6
  } from "./chunk-VABNWHSE.js";
@@ -206,10 +206,6 @@ ${output}` : "";
206
206
  return `worktree ${worktreePath} install${where} failed (${reason})${tail}`;
207
207
  }
208
208
 
209
- // src/commands/sessions/daemon/worktree/seedWorktree.ts
210
- import { copyFileSync, existsSync as existsSync4, mkdirSync } from "fs";
211
- import { dirname as dirname3, join as join4 } from "path";
212
-
213
209
  // src/commands/sessions/daemon/worktree/installPaths.ts
214
210
  import { resolve as resolve2 } from "path";
215
211
 
@@ -580,6 +576,8 @@ function runInstall(worktreePath, clone, install, onSeeded, onInstalling = () =>
580
576
  }
581
577
 
582
578
  // src/commands/sessions/daemon/worktree/seedWorktree.ts
579
+ import { copyFileSync, existsSync as existsSync4, mkdirSync } from "fs";
580
+ import { dirname as dirname3, join as join4 } from "path";
583
581
  function seedWorktree(worktreePath, clone, onSeeded = () => {
584
582
  }, onInstalling) {
585
583
  const cfg = worktreeConfigFor(clone);
@@ -623,6 +621,7 @@ export {
623
621
  installFailureMessage,
624
622
  killTree,
625
623
  stopInstall,
624
+ runInstall,
626
625
  seedWorktree,
627
626
  prCliCommands,
628
627
  worktreeWithBranch
@@ -2,9 +2,10 @@ import {
2
2
  allocateTree,
3
3
  installFailureMessage,
4
4
  prCliCommands,
5
+ runInstall,
5
6
  seedWorktree,
6
7
  worktreeWithBranch
7
- } from "./chunk-HCSEDZIN.js";
8
+ } from "./chunk-2ZUJA3R6.js";
8
9
  import {
9
10
  loadPersistedSessions
10
11
  } from "./chunk-UPGNKZVA.js";
@@ -14,6 +15,9 @@ import {
14
15
  import {
15
16
  azCliProblem
16
17
  } from "./chunk-UN4ABKA7.js";
18
+ import {
19
+ worktreeConfigFor
20
+ } from "./chunk-664TLOAJ.js";
17
21
  import {
18
22
  inWebSession
19
23
  } from "./chunk-HKGCLAZ7.js";
@@ -157,6 +161,64 @@ function currentBranch() {
157
161
  return gitSyncOrNull(process.cwd(), ["rev-parse", "--abbrev-ref", "HEAD"]);
158
162
  }
159
163
 
164
+ // src/commands/review/changedInstall.ts
165
+ import { join } from "path";
166
+ var LOCKFILES = [
167
+ "package-lock.json",
168
+ "pnpm-lock.yaml",
169
+ "yarn.lock",
170
+ "bun.lockb"
171
+ ];
172
+ function lockfileChanged(tree, before, rel) {
173
+ const files = LOCKFILES.map((name) => join(rel, name));
174
+ const changed = gitSyncOrNull(tree, [
175
+ "diff",
176
+ "--name-only",
177
+ before,
178
+ "HEAD",
179
+ "--",
180
+ ...files
181
+ ]);
182
+ return Boolean(changed);
183
+ }
184
+ function changedInstall(tree, before, install) {
185
+ if (Array.isArray(install))
186
+ return install.filter((rel) => lockfileChanged(tree, before, rel));
187
+ if (install === false) return false;
188
+ return lockfileChanged(tree, before, ".") ? install : false;
189
+ }
190
+
191
+ // src/commands/review/reinstallChangedDeps.ts
192
+ function installedPaths(install) {
193
+ return Array.isArray(install) ? install : ["."];
194
+ }
195
+ function reinstallChangedDeps(tree, before) {
196
+ const cfg = worktreeConfigFor(tree);
197
+ if (!before || !cfg.enabled) return Promise.resolve();
198
+ const install = changedInstall(tree, before, cfg.install);
199
+ if (install === false || Array.isArray(install) && !install.length)
200
+ return Promise.resolve();
201
+ const paths = installedPaths(install);
202
+ const where = paths.join(", ");
203
+ console.log(`Lockfile changed in ${where}; reinstalling deps\u2026`);
204
+ for (const rel of paths)
205
+ appendDaemonLog(
206
+ `worktree ${tree} reinstalling deps in ${rel}: lockfile changed by pr checkout`
207
+ );
208
+ return new Promise(
209
+ (resolve) => runInstall(tree, tree, install, (outcome) => {
210
+ if (outcome.ok)
211
+ appendDaemonLog(`worktree ${tree} reinstalled deps in ${where}`);
212
+ else {
213
+ const message = installFailureMessage(tree, outcome);
214
+ console.warn(message);
215
+ appendDaemonLog(message);
216
+ }
217
+ resolve();
218
+ })
219
+ );
220
+ }
221
+
160
222
  // src/commands/review/checkoutPr.ts
161
223
  function currentBranch2() {
162
224
  return gitSyncOrNull(process.cwd(), ["rev-parse", "--abbrev-ref", "HEAD"]);
@@ -181,6 +243,7 @@ async function checkoutPr(number) {
181
243
  await moveToPrCheckoutTree();
182
244
  const branch = currentBranch2();
183
245
  const from = branch === "HEAD" ? gitSyncOrNull(process.cwd(), ["rev-parse", "HEAD"]) : branch;
246
+ const before = gitSyncOrNull(process.cwd(), ["rev-parse", "HEAD"]);
184
247
  const stale = headRef ? clearStalePrBranch(process.cwd(), headRef) : "absent";
185
248
  try {
186
249
  execFileSync2(commands.checkout.file, commands.checkout.args, {
@@ -189,6 +252,7 @@ async function checkoutPr(number) {
189
252
  } catch {
190
253
  failCheckout(number, headRef, stale, from, commands.checkout);
191
254
  }
255
+ await reinstallChangedDeps(process.cwd(), before);
192
256
  }
193
257
 
194
258
  export {
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-5CNDLMYO.js";
4
4
  import {
5
5
  package_default
6
- } from "./chunk-ZQUDXW55.js";
6
+ } from "./chunk-TO2PEQKB.js";
7
7
  import {
8
8
  loadConfig
9
9
  } from "./chunk-UFSOFNXQ.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  checkoutPr
3
- } from "./chunk-YO266JVW.js";
3
+ } from "./chunk-5V3LHEZ2.js";
4
4
  import {
5
5
  launchBlocker
6
6
  } from "./chunk-AFQMD7AO.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  buildDoctorProbes,
3
3
  diagnoseLink
4
- } from "./chunk-3GF2SY6F.js";
4
+ } from "./chunk-QUW7O7OA.js";
5
5
  import {
6
6
  findLinkSpec
7
7
  } from "./chunk-J2PPCMCR.js";
@@ -10,7 +10,7 @@ import {
10
10
  } from "./chunk-JM57BCD6.js";
11
11
  import {
12
12
  firstBrokenHop
13
- } from "./chunk-H7B7DQXK.js";
13
+ } from "./chunk-HKALJ6A7.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-QJTELKME.js";
50
+ } from "./chunk-AIEDVYID.js";
51
51
  import {
52
52
  findLinkSpec
53
53
  } from "./chunk-J2PPCMCR.js";
@@ -14,7 +14,7 @@ import {
14
14
  isHello,
15
15
  linkVersionCheck,
16
16
  negotiateProtocol
17
- } from "./chunk-QJTELKME.js";
17
+ } from "./chunk-AIEDVYID.js";
18
18
 
19
19
  // src/commands/sessions/nodes/probePeerHello.ts
20
20
  var HELLO_TIMEOUT_MS = 5e3;
@@ -1,7 +1,7 @@
1
1
  // package.json
2
2
  var package_default = {
3
3
  name: "@staff0rd/assist",
4
- version: "0.1189.5",
4
+ version: "0.1190.1",
5
5
  type: "module",
6
6
  main: "dist/index.js",
7
7
  bin: {