@staff0rd/assist 0.1209.6 → 0.1209.8

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 (91) hide show
  1. package/dist/.build-files +85 -86
  2. package/dist/{addActivity-YKRWHDDK.js → addActivity-PLNFAQVP.js} +2 -2
  3. package/dist/{addPhase-HCYCO6WL.js → addPhase-TTGDRRKJ.js} +3 -3
  4. package/dist/{advise-LQQG2JTZ.js → advise-36VIPPXJ.js} +3 -3
  5. package/dist/{askCheck-KQ4M5XFX.js → askCheck-DRRBLFHP.js} +7 -7
  6. package/dist/{askDesign-7NHZE4PU.js → askDesign-MJ6BAVD7.js} +1 -1
  7. package/dist/{branch-SUODJM5R.js → branch-OMFTQK3W.js} +3 -3
  8. package/dist/built-version +1 -1
  9. package/dist/{chunk-JDF34HO3.js → chunk-36F3K7HM.js} +2 -2
  10. package/dist/{chunk-HFGNF7NK.js → chunk-3B3TZFFZ.js} +1 -1
  11. package/dist/{chunk-HHXELNDU.js → chunk-3COAWQ2J.js} +1 -1
  12. package/dist/{chunk-CFWQJWDW.js → chunk-3EPOPLVB.js} +1 -1
  13. package/dist/{chunk-HXZYVTTL.js → chunk-3MQCI3HR.js} +1 -1
  14. package/dist/{chunk-TOXTBZV3.js → chunk-4JVS2C67.js} +1 -1
  15. package/dist/{chunk-ZYT7WIUX.js → chunk-4VJXZMG4.js} +2 -2
  16. package/dist/{chunk-NXPYQYDV.js → chunk-5FZEIJNQ.js} +1 -1
  17. package/dist/{chunk-FMAGVS7I.js → chunk-5GE4SCZV.js} +1 -1
  18. package/dist/{chunk-QCKYTR4J.js → chunk-5XORAPRE.js} +1 -1
  19. package/dist/{chunk-SRGPQCG6.js → chunk-734KE2N6.js} +1 -1
  20. package/dist/{chunk-7J25YEYE.js → chunk-7TL5FF4G.js} +1 -1
  21. package/dist/{chunk-MUHZ22VQ.js → chunk-7VTFCHIT.js} +1 -1
  22. package/dist/{chunk-2QEKX3ZH.js → chunk-AVWHLYRU.js} +1 -1
  23. package/dist/{chunk-A3RU24P7.js → chunk-AZKNSOKB.js} +1 -1
  24. package/dist/{chunk-QBWJTD22.js → chunk-BCBJMZGJ.js} +21 -8
  25. package/dist/{chunk-X5L4BF4G.js → chunk-BZ4NSHKC.js} +1 -1
  26. package/dist/{chunk-PJZB3K6O.js → chunk-CGTWGF4R.js} +2 -2
  27. package/dist/{chunk-4L55STF2.js → chunk-DOIDAWFX.js} +5 -5
  28. package/dist/{chunk-HJX4D37O.js → chunk-GCC3III2.js} +1 -1
  29. package/dist/{chunk-EWGXEKB6.js → chunk-GCVGBOX5.js} +8 -26
  30. package/dist/{chunk-PI5I6JVZ.js → chunk-GH2U4GVZ.js} +3 -3
  31. package/dist/{chunk-F62PXYEY.js → chunk-HFUFS7V6.js} +1 -1
  32. package/dist/{chunk-IWLMMPOH.js → chunk-HG2J53VZ.js} +2 -2
  33. package/dist/{chunk-FICFMJU7.js → chunk-ITQOKBXS.js} +1 -1
  34. package/dist/{chunk-TJ4NHEKM.js → chunk-J5FJLOMS.js} +1 -1
  35. package/dist/{chunk-L6QVABKD.js → chunk-K6FSJTVW.js} +1 -1
  36. package/dist/{chunk-PK7ZQCHY.js → chunk-LCEKIRDI.js} +3 -3
  37. package/dist/{chunk-MTF4W7UO.js → chunk-M6G6HBNN.js} +2 -2
  38. package/dist/{chunk-CKHRMDH7.js → chunk-NBA3Z4TA.js} +1 -1
  39. package/dist/{chunk-7SFSU7KH.js → chunk-NEC6OVBH.js} +6 -6
  40. package/dist/{chunk-F7CYMCYS.js → chunk-NH4S6JMP.js} +1 -1
  41. package/dist/{chunk-65OULTY2.js → chunk-QK6LOFXI.js} +92 -18
  42. package/dist/{chunk-T3ILT475.js → chunk-TARU4556.js} +1 -1
  43. package/dist/{chunk-QAJUCN3A.js → chunk-UOYZCIWZ.js} +20 -1
  44. package/dist/{chunk-XR4OTQRO.js → chunk-VIKP2CPB.js} +9 -9
  45. package/dist/{chunk-UKV4LM33.js → chunk-YMENSLWI.js} +1 -1
  46. package/dist/{chunk-7OD23NOD.js → chunk-YP4LPJ7P.js} +1 -1
  47. package/dist/{chunk-FYYZG4GY.js → chunk-YR3NOIK4.js} +20 -4
  48. package/dist/{chunk-RW4DR3KX.js → chunk-ZPA2ZLQF.js} +3 -3
  49. package/dist/{chunk-FDBOIVN6.js → chunk-ZZPDMUIS.js} +2 -2
  50. package/dist/{cliHook-3NHHQRAW.js → cliHook-6AK4SZVH.js} +6 -6
  51. package/dist/{cliHookCheck-YUISV7EH.js → cliHookCheck-BXTWEIKL.js} +2 -2
  52. package/dist/{codexHook-RXFE7LFF.js → codexHook-CKPLYNYI.js} +8 -8
  53. package/dist/commands/sessions/web/bundle.js +4 -4
  54. package/dist/{commit-HQLG2RRB.js → commit-XOT7U5LZ.js} +4 -4
  55. package/dist/{doctorNodes-FOVMXMKX.js → doctorNodes-KRVVGZ3H.js} +3 -3
  56. package/dist/{done-JAPZKWHV.js → done-7XDZ5EOV.js} +4 -4
  57. package/dist/{editHook-7JKIZEK7.js → editHook-RG7F5O5G.js} +6 -6
  58. package/dist/{fixConflict-ZRI6ETPM.js → fixConflict-SHPVWNCI.js} +7 -8
  59. package/dist/index.js +51 -51
  60. package/dist/{launchMode-W5BMC63G.js → launchMode-E6C56QJ5.js} +17 -18
  61. package/dist/{list-Y7BPDZI7.js → list-LWGNQ5OI.js} +5 -5
  62. package/dist/{migrate-SKAUA7P5.js → migrate-L6IK3N53.js} +3 -3
  63. package/dist/{next-DHWIMBFY.js → next-RU4CE65F.js} +16 -17
  64. package/dist/{phaseDone-QMLIPFFE.js → phaseDone-LXJHLT2U.js} +5 -5
  65. package/dist/{piHook-6PSKZYAN.js → piHook-3DLZZNQI.js} +6 -6
  66. package/dist/{propose-Z622RYH6.js → propose-S3E5BT6R.js} +4 -4
  67. package/dist/{pullIfConfigured-OZ5OPCR2.js → pullIfConfigured-2IBMXTYT.js} +2 -3
  68. package/dist/{refine-WGVHO3JG.js → refine-PM727EVL.js} +18 -19
  69. package/dist/{restartNode-ZWJIN24E.js → restartNode-KLNVUHES.js} +5 -5
  70. package/dist/{review-5PESQCJS.js → review-63J2YROM.js} +7 -8
  71. package/dist/{reviewPrComments-HN4PLUDK.js → reviewPrComments-BOOP6SKN.js} +7 -8
  72. package/dist/{rewindPhase-LPSAPBI3.js → rewindPhase-LUTTHL7A.js} +8 -8
  73. package/dist/{run-BAUQRPDJ.js → run-T4LRCNGP.js} +12 -12
  74. package/dist/{run-DH6MREID.js → run-XKK6RIXT.js} +14 -15
  75. package/dist/{runDaemon-JQGDNWCB.js → runDaemon-5QC62HXQ.js} +27 -23
  76. package/dist/{runParallelPhase-6OQWXJER.js → runParallelPhase-TF7ICWA2.js} +7 -7
  77. package/dist/{runRefine-HTMH4XVU.js → runRefine-U5VSEHLT.js} +18 -19
  78. package/dist/{scan-4347WF2M.js → scan-QGGG4PDJ.js} +2 -2
  79. package/dist/{schemaConfirm-OKZDVD44.js → schemaConfirm-JZDXHHJB.js} +2 -2
  80. package/dist/{schemaLock-VWYRZKKD.js → schemaLock-X5744CQX.js} +2 -2
  81. package/dist/{schemaUnlock-5OZJ4W4P.js → schemaUnlock-POW6IROW.js} +2 -2
  82. package/dist/{search-XAJYFW5I.js → search-XENUF5PM.js} +5 -5
  83. package/dist/{show-7UDZL3I7.js → show-75ROW5SY.js} +3 -3
  84. package/dist/{show-3ARD4BT6.js → show-TKEXHAGK.js} +3 -3
  85. package/dist/{signExtension-MQ357423.js → signExtension-OD33BOCP.js} +1 -1
  86. package/dist/{updateNode-A6GTMYAJ.js → updateNode-XBXWVBTG.js} +5 -5
  87. package/dist/{updatePlan-IYFJRUIY.js → updatePlan-6CS7QADL.js} +4 -4
  88. package/dist/{web-I4CRK3AP.js → web-EYVVF2JJ.js} +19 -18
  89. package/dist/{web-HOTM6DIB.js → web-FQDB4QQA.js} +19 -18
  90. package/package.json +1 -1
  91. package/dist/chunk-B3JSQA5D.js +0 -25
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  authoredPhases
3
- } from "./chunk-7J25YEYE.js";
3
+ } from "./chunk-7TL5FF4G.js";
4
4
 
5
5
  // src/commands/backlog/resolvePlan.ts
6
6
  function resolvePlan(item) {
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-F4XCHVD7.js";
10
10
  import {
11
11
  REVIEW_PHASE_NAME
12
- } from "./chunk-7OD23NOD.js";
12
+ } from "./chunk-YP4LPJ7P.js";
13
13
  import {
14
14
  serializeManualChecks
15
15
  } from "./chunk-QNVYNVAM.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  REVIEW_PHASE_NAME
3
- } from "./chunk-7OD23NOD.js";
3
+ } from "./chunk-YP4LPJ7P.js";
4
4
  import {
5
5
  phaseSessions
6
6
  } from "./chunk-A45XXOEA.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  checkoutPr
3
- } from "./chunk-4L55STF2.js";
3
+ } from "./chunk-DOIDAWFX.js";
4
4
  import {
5
5
  launchBlocker
6
6
  } from "./chunk-LQMU4BUO.js";
@@ -19,7 +19,7 @@ import {
19
19
  } from "./chunk-3DNFNT2L.js";
20
20
  import {
21
21
  harnessAdapter
22
- } from "./chunk-QBWJTD22.js";
22
+ } from "./chunk-BCBJMZGJ.js";
23
23
 
24
24
  // src/commands/launchPrSkill.ts
25
25
  import chalk from "chalk";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-ZSIEDJSS.js";
4
4
  import {
5
5
  package_default
6
- } from "./chunk-CKHRMDH7.js";
6
+ } from "./chunk-NBA3Z4TA.js";
7
7
  import {
8
8
  loadConfig
9
9
  } from "./chunk-TL6KJYLM.js";
@@ -19,7 +19,7 @@ import {
19
19
  emptyScanUsage,
20
20
  harnessAdapter,
21
21
  scanUsageTokens
22
- } from "./chunk-QBWJTD22.js";
22
+ } from "./chunk-BCBJMZGJ.js";
23
23
  import {
24
24
  inboxFeature
25
25
  } from "./chunk-LKZ7J5AK.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  buildDoctorProbes,
3
3
  diagnoseLink
4
- } from "./chunk-FICFMJU7.js";
4
+ } from "./chunk-ITQOKBXS.js";
5
5
  import {
6
6
  findLinkSpec
7
7
  } from "./chunk-HPBO553P.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  OneShotUnavailableError,
3
3
  runOneShotPrompt
4
- } from "./chunk-HHXELNDU.js";
4
+ } from "./chunk-3COAWQ2J.js";
5
5
  import {
6
6
  withSpinner
7
7
  } from "./chunk-OZNYQOQK.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  REVIEW_PHASE_NAME
3
- } from "./chunk-7OD23NOD.js";
3
+ } from "./chunk-YP4LPJ7P.js";
4
4
 
5
5
  // src/commands/backlog/authoredPhases.ts
6
6
  function authoredPhases(plan) {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  remoteDefaultBranch
3
- } from "./chunk-B3JSQA5D.js";
3
+ } from "./chunk-UOYZCIWZ.js";
4
4
  import {
5
5
  loadConfig
6
6
  } from "./chunk-TL6KJYLM.js";
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-VDXS55BC.js";
5
5
  import {
6
6
  harnessAdapter
7
- } from "./chunk-QBWJTD22.js";
7
+ } from "./chunk-BCBJMZGJ.js";
8
8
  import {
9
9
  activeHarness
10
10
  } from "./chunk-DZBQRJLT.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  hasOpenPhaseUnlock
3
- } from "./chunk-X5L4BF4G.js";
3
+ } from "./chunk-BZ4NSHKC.js";
4
4
  import {
5
5
  resolveSessionItemId
6
6
  } from "./chunk-FPWL4VRC.js";
@@ -4060,10 +4060,25 @@ function sdkActivityText(content) {
4060
4060
  return tool?.name ? `${SDK_WORKING_ACTIVITY} \xB7 ${tool.name}` : SDK_WORKING_ACTIVITY;
4061
4061
  }
4062
4062
 
4063
+ // src/commands/sessions/daemon/sdk/createSdkStatusEmitter.ts
4064
+ function createSdkStatusEmitter(label, control) {
4065
+ let status;
4066
+ const emit = (next, note = "") => {
4067
+ status = next;
4068
+ daemonLog(`${label} sdk status: ${next}${note}`);
4069
+ control.emit({ kind: "status", status: next });
4070
+ };
4071
+ return {
4072
+ status: (next) => {
4073
+ if (next !== status) emit(next);
4074
+ },
4075
+ resyncStatus: (next) => emit(next, " (resync)")
4076
+ };
4077
+ }
4078
+
4063
4079
  // src/commands/sessions/daemon/sdk/createSdkTurnEmitter.ts
4064
4080
  var ELAPSED_RESYNC_SECONDS = 10;
4065
4081
  function createSdkTurnEmitter(label, control) {
4066
- let status;
4067
4082
  let activity = null;
4068
4083
  let elapsed = null;
4069
4084
  const processWatch = createSdkProcessWatch(
@@ -4090,12 +4105,7 @@ function createSdkTurnEmitter(label, control) {
4090
4105
  return;
4091
4106
  setElapsed(next);
4092
4107
  },
4093
- status: (next) => {
4094
- if (next === status) return;
4095
- status = next;
4096
- daemonLog(`${label} sdk status: ${next}`);
4097
- control.emit({ kind: "status", status: next });
4098
- }
4108
+ ...createSdkStatusEmitter(label, control)
4099
4109
  };
4100
4110
  }
4101
4111
 
@@ -4136,7 +4146,10 @@ function createSdkTurnTracker(label, control, push) {
4136
4146
  setStatus("running");
4137
4147
  },
4138
4148
  dequeue: queue.remove,
4139
- interrupt: (request) => interrupt.request(busy, request)
4149
+ interrupt: (request) => {
4150
+ if (!busy) emit.resyncStatus("waiting");
4151
+ interrupt.request(busy, request);
4152
+ }
4140
4153
  };
4141
4154
  }
4142
4155
 
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  currentExecutionIdentity,
6
6
  getSchemaSessionApprovalPath
7
- } from "./chunk-T3ILT475.js";
7
+ } from "./chunk-TARU4556.js";
8
8
  import {
9
9
  closeDb,
10
10
  getDb,
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  launchMode
3
- } from "./chunk-7SFSU7KH.js";
3
+ } from "./chunk-NEC6OVBH.js";
4
4
  import {
5
5
  typeLabel
6
- } from "./chunk-HJX4D37O.js";
6
+ } from "./chunk-GCC3III2.js";
7
7
  import {
8
8
  loadBacklogSummaries
9
9
  } from "./chunk-5B6YWHDU.js";
@@ -5,7 +5,7 @@ import {
5
5
  runInstall,
6
6
  seedWorktree,
7
7
  worktreeWithBranch
8
- } from "./chunk-EWGXEKB6.js";
8
+ } from "./chunk-GCVGBOX5.js";
9
9
  import {
10
10
  loadPersistedSessions
11
11
  } from "./chunk-2GTVP7JI.js";
@@ -15,16 +15,16 @@ import {
15
15
  import {
16
16
  azCliProblem
17
17
  } from "./chunk-UN4ABKA7.js";
18
- import {
19
- worktreeConfigFor
20
- } from "./chunk-QWYSWWN5.js";
21
18
  import {
22
19
  inWebSession
23
20
  } from "./chunk-HKGCLAZ7.js";
24
21
  import {
25
22
  gitSyncOrNull,
26
23
  gitSyncResult
27
- } from "./chunk-QAJUCN3A.js";
24
+ } from "./chunk-UOYZCIWZ.js";
25
+ import {
26
+ worktreeConfigFor
27
+ } from "./chunk-QWYSWWN5.js";
28
28
  import {
29
29
  appendDaemonLog
30
30
  } from "./chunk-5H7EHZ3J.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  authoredPhases
3
- } from "./chunk-7J25YEYE.js";
3
+ } from "./chunk-7TL5FF4G.js";
4
4
 
5
5
  // src/commands/backlog/list/shared.ts
6
6
  import chalk from "chalk";
@@ -1,33 +1,29 @@
1
1
  import {
2
2
  azureDevopsRemote
3
3
  } from "./chunk-XT3AOF2P.js";
4
- import {
5
- cloneHead,
6
- remoteDefaultBranch
7
- } from "./chunk-B3JSQA5D.js";
8
- import {
9
- worktreeConfigFor
10
- } from "./chunk-QWYSWWN5.js";
11
4
  import {
12
5
  canonicalTreePath,
13
6
  listLocalBranches,
14
7
  listWorktreePaths,
15
- mainWorktree
16
- } from "./chunk-FYYZG4GY.js";
8
+ mainWorktree,
9
+ worktreeStartPoint
10
+ } from "./chunk-YR3NOIK4.js";
17
11
  import {
18
12
  recordWorktree
19
13
  } from "./chunk-WYNRHOR7.js";
20
14
  import {
21
15
  git,
22
- gitOrNull,
23
16
  gitResult
24
- } from "./chunk-QAJUCN3A.js";
17
+ } from "./chunk-UOYZCIWZ.js";
18
+ import {
19
+ worktreeConfigFor
20
+ } from "./chunk-QWYSWWN5.js";
25
21
  import {
26
22
  expandTilde
27
23
  } from "./chunk-LKDW2GWH.js";
28
24
  import {
29
25
  loginShellCommand
30
- } from "./chunk-QBWJTD22.js";
26
+ } from "./chunk-BCBJMZGJ.js";
31
27
  import {
32
28
  daemonLog
33
29
  } from "./chunk-MRUIXQXS.js";
@@ -107,20 +103,6 @@ function nextWorktreePath(clone, base, isTaken) {
107
103
 
108
104
  // src/commands/sessions/daemon/worktree/addWorktree.ts
109
105
  import { basename as basename2 } from "path";
110
-
111
- // src/commands/sessions/daemon/worktree/worktreeStartPoint.ts
112
- async function worktreeStartPoint(clone, trunk) {
113
- const branch = trunk ? await cloneTrunkBranch(clone) : await remoteDefaultBranch(clone);
114
- const ref = `origin/${branch}`;
115
- if (await gitOrNull(clone, ["rev-parse", "--verify", "--quiet", ref]))
116
- return { ref, track: trunk };
117
- return { ref: "HEAD", track: false };
118
- }
119
- async function cloneTrunkBranch(clone) {
120
- return await cloneHead(clone) ?? remoteDefaultBranch(clone);
121
- }
122
-
123
- // src/commands/sessions/daemon/worktree/addWorktree.ts
124
106
  var FETCH_TIMEOUT_MS = 6e4;
125
107
  async function addWorktree(clone, path, trunk, startPoint) {
126
108
  const fetched = await gitResult(
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  backlogPhaseActivity,
3
3
  recordPhaseSession
4
- } from "./chunk-TOXTBZV3.js";
4
+ } from "./chunk-4JVS2C67.js";
5
5
  import {
6
6
  resumeNudge
7
7
  } from "./chunk-7NZOH4LN.js";
@@ -26,7 +26,7 @@ import {
26
26
  } from "./chunk-DM2P6BNS.js";
27
27
  import {
28
28
  buildPhasePrompt
29
- } from "./chunk-7OD23NOD.js";
29
+ } from "./chunk-YP4LPJ7P.js";
30
30
  import {
31
31
  getReady
32
32
  } from "./chunk-JAQ236DW.js";
@@ -38,7 +38,7 @@ import {
38
38
  } from "./chunk-A45XXOEA.js";
39
39
  import {
40
40
  harnessAdapter
41
- } from "./chunk-QBWJTD22.js";
41
+ } from "./chunk-BCBJMZGJ.js";
42
42
  import {
43
43
  getSignalPath
44
44
  } from "./chunk-P23ZWXGY.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  harnessAdapter,
3
3
  parseRolloutEntry
4
- } from "./chunk-QBWJTD22.js";
4
+ } from "./chunk-BCBJMZGJ.js";
5
5
  import {
6
6
  resolveCapability
7
7
  } from "./chunk-4QXA7WWO.js";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  resolveReviewPhase
3
- } from "./chunk-UKV4LM33.js";
3
+ } from "./chunk-YMENSLWI.js";
4
4
  import {
5
5
  resolvePlan
6
- } from "./chunk-CFWQJWDW.js";
6
+ } from "./chunk-3EPOPLVB.js";
7
7
 
8
8
  // src/commands/backlog/resolveRewindPlan.ts
9
9
  function resolveRewindPlan(item) {
@@ -14,7 +14,7 @@ import {
14
14
  isHello,
15
15
  linkVersionCheck,
16
16
  negotiateProtocol
17
- } from "./chunk-NXPYQYDV.js";
17
+ } from "./chunk-5FZEIJNQ.js";
18
18
 
19
19
  // src/commands/sessions/nodes/probePeerHello.ts
20
20
  var HELLO_TIMEOUT_MS = 5e3;
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-IXBA6TVF.js";
10
10
  import {
11
11
  previewAnswerWaitBlocker
12
- } from "./chunk-L6QVABKD.js";
12
+ } from "./chunk-K6FSJTVW.js";
13
13
  import {
14
14
  askQuestionEnabled
15
15
  } from "./chunk-IBPSXDUB.js";
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-2F2IKQDM.js";
5
5
  import {
6
6
  harnessAdapter
7
- } from "./chunk-QBWJTD22.js";
7
+ } from "./chunk-BCBJMZGJ.js";
8
8
  import {
9
9
  activeHarness
10
10
  } from "./chunk-DZBQRJLT.js";
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  pullIfConfigured
3
- } from "./chunk-MUHZ22VQ.js";
3
+ } from "./chunk-7VTFCHIT.js";
4
4
  import {
5
5
  run
6
- } from "./chunk-XR4OTQRO.js";
6
+ } from "./chunk-VIKP2CPB.js";
7
7
  import {
8
8
  isLockedByOther
9
9
  } from "./chunk-BXGPF3TG.js";
10
10
  import {
11
11
  isBlocked,
12
12
  typeLabel
13
- } from "./chunk-HJX4D37O.js";
13
+ } from "./chunk-GCC3III2.js";
14
14
  import {
15
15
  loadBacklog
16
16
  } from "./chunk-JAQ236DW.js";
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  lookupConversation
3
- } from "./chunk-F7CYMCYS.js";
3
+ } from "./chunk-NH4S6JMP.js";
4
4
  import {
5
5
  harnessAdapter,
6
6
  readTranscriptTail
7
- } from "./chunk-QBWJTD22.js";
7
+ } from "./chunk-BCBJMZGJ.js";
8
8
 
9
9
  // src/commands/sessions/shared/targetConversationEvents.ts
10
10
  async function targetConversationEvents(cwd, target) {
@@ -1,7 +1,7 @@
1
1
  // package.json
2
2
  var package_default = {
3
3
  name: "@staff0rd/assist",
4
- version: "0.1209.6",
4
+ version: "0.1209.8",
5
5
  type: "module",
6
6
  main: "dist/index.js",
7
7
  bin: {
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  next
3
- } from "./chunk-PK7ZQCHY.js";
3
+ } from "./chunk-LCEKIRDI.js";
4
4
  import {
5
5
  pullIfConfigured
6
- } from "./chunk-MUHZ22VQ.js";
6
+ } from "./chunk-7VTFCHIT.js";
7
7
  import {
8
8
  run
9
- } from "./chunk-XR4OTQRO.js";
9
+ } from "./chunk-VIKP2CPB.js";
10
10
  import {
11
11
  launchBlocker
12
12
  } from "./chunk-LQMU4BUO.js";
@@ -15,7 +15,7 @@ import {
15
15
  readSignal,
16
16
  stopWatching,
17
17
  watchForMarker
18
- } from "./chunk-PI5I6JVZ.js";
18
+ } from "./chunk-GH2U4GVZ.js";
19
19
  import {
20
20
  resumeNudge
21
21
  } from "./chunk-7NZOH4LN.js";
@@ -31,7 +31,7 @@ import {
31
31
  } from "./chunk-3DNFNT2L.js";
32
32
  import {
33
33
  isBlocked
34
- } from "./chunk-HJX4D37O.js";
34
+ } from "./chunk-GCC3III2.js";
35
35
  import {
36
36
  loadItemSummaries
37
37
  } from "./chunk-ZWIWBQO2.js";
@@ -49,7 +49,7 @@ import {
49
49
  } from "./chunk-N65VOEFI.js";
50
50
  import {
51
51
  harnessAdapter
52
- } from "./chunk-QBWJTD22.js";
52
+ } from "./chunk-BCBJMZGJ.js";
53
53
 
54
54
  // src/commands/backlog/launchMode.ts
55
55
  import chalk3 from "chalk";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  harnessAdapter
3
- } from "./chunk-QBWJTD22.js";
3
+ } from "./chunk-BCBJMZGJ.js";
4
4
  import {
5
5
  resolveCapability
6
6
  } from "./chunk-4QXA7WWO.js";
@@ -10,7 +10,7 @@ import {
10
10
  } from "./chunk-JM57BCD6.js";
11
11
  import {
12
12
  firstBrokenHop
13
- } from "./chunk-QCKYTR4J.js";
13
+ } from "./chunk-5XORAPRE.js";
14
14
  import {
15
15
  describePeerError,
16
16
  fetchPeerJson
@@ -39,7 +39,7 @@ import {
39
39
  resolveLinkTarget,
40
40
  usageWindowKey,
41
41
  watcherLogPath
42
- } from "./chunk-FDBOIVN6.js";
42
+ } from "./chunk-ZZPDMUIS.js";
43
43
  import {
44
44
  TRACE_HEADER,
45
45
  newTraceId
@@ -47,7 +47,7 @@ import {
47
47
  import {
48
48
  ASSIST_VERSION,
49
49
  PROTOCOL_VERSION
50
- } from "./chunk-NXPYQYDV.js";
50
+ } from "./chunk-5FZEIJNQ.js";
51
51
  import {
52
52
  findLinkSpec
53
53
  } from "./chunk-HPBO553P.js";
@@ -84,7 +84,7 @@ import {
84
84
  } from "./chunk-UJBW7FVI.js";
85
85
  import {
86
86
  targetConversationEvents
87
- } from "./chunk-MTF4W7UO.js";
87
+ } from "./chunk-M6G6HBNN.js";
88
88
  import {
89
89
  configEntryLayers,
90
90
  ghFailure,
@@ -134,6 +134,10 @@ import {
134
134
  import {
135
135
  listInboxMessages
136
136
  } from "./chunk-WCLES4VX.js";
137
+ import {
138
+ mainWorktree,
139
+ worktreeStartPoint
140
+ } from "./chunk-YR3NOIK4.js";
137
141
  import {
138
142
  decodeUrlPart,
139
143
  parseAzureDevopsRemote
@@ -245,12 +249,18 @@ import {
245
249
  } from "./chunk-AJOU43WT.js";
246
250
  import {
247
251
  rewindItemToPhase
248
- } from "./chunk-JDF34HO3.js";
252
+ } from "./chunk-36F3K7HM.js";
249
253
  import {
250
254
  loadItemSummaries,
251
255
  phaseUsageTotals,
252
256
  planPhaseCounts
253
257
  } from "./chunk-ZWIWBQO2.js";
258
+ import {
259
+ gitOrNull
260
+ } from "./chunk-UOYZCIWZ.js";
261
+ import {
262
+ worktreeConfigFor
263
+ } from "./chunk-QWYSWWN5.js";
254
264
  import {
255
265
  requestAssistSession
256
266
  } from "./chunk-F4XCHVD7.js";
@@ -268,7 +278,7 @@ import {
268
278
  } from "./chunk-W2UW25ZA.js";
269
279
  import {
270
280
  resolveRewindPlan
271
- } from "./chunk-IWLMMPOH.js";
281
+ } from "./chunk-HG2J53VZ.js";
272
282
  import {
273
283
  deleteItem,
274
284
  getOrigin,
@@ -317,7 +327,7 @@ import {
317
327
  discoverSessionJsonlPaths,
318
328
  harnessAdapter,
319
329
  parseSessionFile
320
- } from "./chunk-QBWJTD22.js";
330
+ } from "./chunk-BCBJMZGJ.js";
321
331
  import {
322
332
  harnessLabel
323
333
  } from "./chunk-XZSATLYY.js";
@@ -5193,6 +5203,16 @@ import path6 from "path";
5193
5203
  // src/commands/sessions/web/slashCommands/readSlashCommands.ts
5194
5204
  import fs from "fs";
5195
5205
  import path5 from "path";
5206
+
5207
+ // src/commands/sessions/web/slashCommands/mergeSlashCommands.ts
5208
+ function mergeSlashCommands(commands, skills, scope) {
5209
+ const byName = /* @__PURE__ */ new Map();
5210
+ for (const command of [...commands, ...skills])
5211
+ byName.set(command.name, { ...command, scope });
5212
+ return [...byName.values()].sort((a, b) => a.name.localeCompare(b.name));
5213
+ }
5214
+
5215
+ // src/commands/sessions/web/slashCommands/readSlashCommands.ts
5196
5216
  function readEntries(dir) {
5197
5217
  try {
5198
5218
  return fs.readdirSync(dir, { withFileTypes: true });
@@ -5220,32 +5240,86 @@ function readCommands(dir) {
5220
5240
  }));
5221
5241
  }
5222
5242
  function readSlashCommands(home, scope) {
5223
- const byName = /* @__PURE__ */ new Map();
5224
- for (const command of [
5225
- ...readCommands(path5.join(home, "commands")),
5226
- ...readSkills(path5.join(home, "skills"))
5227
- ])
5228
- byName.set(command.name, { ...command, scope });
5229
- return [...byName.values()].sort((a, b) => a.name.localeCompare(b.name));
5243
+ return mergeSlashCommands(
5244
+ readCommands(path5.join(home, "commands")),
5245
+ readSkills(path5.join(home, "skills")),
5246
+ scope
5247
+ );
5230
5248
  }
5231
5249
 
5232
5250
  // src/commands/sessions/web/slashCommands/listSlashCommands.ts
5233
- function listSlashCommands(claudeHome, cwd) {
5251
+ function listSlashCommands(claudeHome, cwd, projectCommands) {
5234
5252
  const user = readSlashCommands(claudeHome, "user");
5235
5253
  const userNames = new Set(user.map((command) => command.name));
5236
- const project = readSlashCommands(path6.join(cwd, ".claude"), "project");
5254
+ const project = projectCommands ?? readSlashCommands(path6.join(cwd, ".claude"), "project");
5237
5255
  return [
5238
5256
  ...user,
5239
5257
  ...project.filter((command) => !userNames.has(command.name))
5240
5258
  ];
5241
5259
  }
5242
5260
 
5261
+ // src/commands/sessions/web/slashCommands/readSlashCommandsAtRef.ts
5262
+ var COMMAND = /^\.claude\/commands\/([^/]+)\.md$/;
5263
+ var SKILL = /^\.claude\/skills\/([^/]+)\/SKILL\.md$/;
5264
+ async function describeAt(repo, ref, file) {
5265
+ const content = await gitOrNull(repo, ["show", `${ref}:${file}`]);
5266
+ return content ? splitFrontmatter(content).description : void 0;
5267
+ }
5268
+ async function entriesMatching(repo, ref, files, pattern) {
5269
+ const matched = files.flatMap((file) => {
5270
+ const name = pattern.exec(file)?.[1];
5271
+ return name ? [{ name, file }] : [];
5272
+ });
5273
+ return Promise.all(
5274
+ matched.map(async ({ name, file }) => ({
5275
+ name,
5276
+ description: await describeAt(repo, ref, file)
5277
+ }))
5278
+ );
5279
+ }
5280
+ async function readSlashCommandsAtRef(repo, ref, scope) {
5281
+ if (!await gitOrNull(repo, ["rev-parse", "--verify", "--quiet", ref]))
5282
+ return null;
5283
+ const listing = await gitOrNull(repo, [
5284
+ "ls-tree",
5285
+ "-r",
5286
+ "--full-tree",
5287
+ "--name-only",
5288
+ ref,
5289
+ "--",
5290
+ ".claude/commands",
5291
+ ".claude/skills"
5292
+ ]);
5293
+ const files = listing ? listing.split("\n") : [];
5294
+ return mergeSlashCommands(
5295
+ await entriesMatching(repo, ref, files, COMMAND),
5296
+ await entriesMatching(repo, ref, files, SKILL),
5297
+ scope
5298
+ );
5299
+ }
5300
+
5301
+ // src/commands/sessions/web/slashCommands/startPointProjectCommands.ts
5302
+ async function startPointProjectCommands(cwd) {
5303
+ const repoRoot2 = findRepoRoot(cwd) ?? cwd;
5304
+ const cfg = worktreeConfigFor(repoRoot2);
5305
+ if (!cfg.enabled) return null;
5306
+ const clone = mainWorktree(repoRoot2) ?? repoRoot2;
5307
+ const { ref } = await worktreeStartPoint(clone, cfg.trunk);
5308
+ if (ref === "HEAD") return null;
5309
+ return readSlashCommandsAtRef(clone, ref, "project");
5310
+ }
5311
+
5243
5312
  // src/commands/sessions/web/slashCommands/slashCommands.ts
5244
- function slashCommands(req, res) {
5313
+ function wantsStartPoint(req) {
5314
+ const url = new URL(req.url ?? "/", "http://localhost");
5315
+ return url.searchParams.get("startPoint") === "1";
5316
+ }
5317
+ async function slashCommands(req, res) {
5245
5318
  const cwd = getCwdParam(req, res);
5246
5319
  if (!cwd) return;
5320
+ const project = wantsStartPoint(req) ? await startPointProjectCommands(cwd) : null;
5247
5321
  respondJson(res, 200, {
5248
- commands: listSlashCommands(harnesses.claude.homeDir, cwd)
5322
+ commands: listSlashCommands(harnesses.claude.homeDir, cwd, project)
5249
5323
  });
5250
5324
  }
5251
5325