@moberg_hr/work-tree 2.0.5 → 2.0.7

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 (84) hide show
  1. package/dist/bin.js +1 -1
  2. package/dist/{chunk-46UD4QBL.js → chunk-5RRKVAIZ.js} +3 -2
  3. package/dist/chunk-5RRKVAIZ.js.map +1 -0
  4. package/dist/{chunk-UBC5DNLT.js → chunk-6HDVRMCX.js} +3 -3
  5. package/dist/{chunk-BSCAA322.js → chunk-7Z2USU3A.js} +22 -8
  6. package/dist/chunk-7Z2USU3A.js.map +1 -0
  7. package/dist/chunk-C4LRHXEB.js +9 -0
  8. package/dist/{chunk-FOG4WG3Y.js → chunk-CNFPZVNO.js} +2 -2
  9. package/dist/{chunk-ESPZRTUB.js → chunk-DH2PLKCW.js} +2 -2
  10. package/dist/{chunk-XHOQ7BWT.js → chunk-HB2I7GF7.js} +2 -2
  11. package/dist/{chunk-K7BSZRRF.js → chunk-IOO2OAUC.js} +4 -4
  12. package/dist/{chunk-G2O7EIKX.js → chunk-J2ZJ2DIJ.js} +2 -2
  13. package/dist/{chunk-XBNLSKTX.js → chunk-K3ESY6OJ.js} +3 -3
  14. package/dist/{chunk-HIXC67MU.js → chunk-LDCY457K.js} +2 -2
  15. package/dist/{chunk-CP6EFKEO.js → chunk-M2QL43DS.js} +2 -2
  16. package/dist/{chunk-XE2X7KH6.js → chunk-N23HFT4X.js} +73 -34
  17. package/dist/chunk-N23HFT4X.js.map +1 -0
  18. package/dist/{chunk-2VH5SJHF.js → chunk-QDNCUUNQ.js} +4 -4
  19. package/dist/chunk-QWIGFAKZ.js +334 -0
  20. package/dist/chunk-QWIGFAKZ.js.map +1 -0
  21. package/dist/{chunk-LRNAHZAK.js → chunk-VICXQQ5X.js} +4 -4
  22. package/dist/{chunk-YF66LR6K.js → chunk-YXTJVPOI.js} +16 -16
  23. package/dist/{cleanup-MCWFGGS6.js → cleanup-YVQOAMSK.js} +7 -7
  24. package/dist/{cli-LS45WVSJ.js → cli-VSCHBZRS.js} +3 -3
  25. package/dist/{config-TPYNBTVM.js → config-4W5MMHLU.js} +5 -5
  26. package/dist/{fork-ET4OKRNC.js → fork-ZBEMNEPA.js} +5 -5
  27. package/dist/{init-NGL64E3F.js → init-J2AB37DO.js} +5 -5
  28. package/dist/{move-I7SYL4FY.js → move-O7NEJZQV.js} +9 -13
  29. package/dist/move-O7NEJZQV.js.map +1 -0
  30. package/dist/{overlaps-3LZXSDYZ.js → overlaps-SKKGH6EG.js} +4 -4
  31. package/dist/{pr-JM4DRRIV.js → pr-AC44DGJY.js} +2 -2
  32. package/dist/{prune-5NUZUVYL.js → prune-NQOVBIFT.js} +6 -6
  33. package/dist/{remove-EFQQQRCW.js → remove-JESX7RCN.js} +5 -5
  34. package/dist/{sessions-CAOAXKKG.js → sessions-T6UXM2OX.js} +4 -4
  35. package/dist/{sync-LSUID373.js → sync-E4CU4IHG.js} +6 -6
  36. package/dist/{tree-CMDHHEUW.js → tree-RAN6SQKW.js} +32 -2
  37. package/dist/tree-RAN6SQKW.js.map +1 -0
  38. package/dist/{update-K73WHYY3.js → update-5DM5V2E3.js} +3 -3
  39. package/dist/wd-bin.js +2 -2
  40. package/dist/web/assets/{PtyView-Bst9Dw6x.js → PtyView-Ci395OL2.js} +2 -2
  41. package/dist/web/assets/{PtyView-Bst9Dw6x.js.map → PtyView-Ci395OL2.js.map} +1 -1
  42. package/dist/web/assets/index-D-_oxT3O.css +1 -0
  43. package/dist/web/assets/index-DjdfILvB.js +118 -0
  44. package/dist/web/assets/index-DjdfILvB.js.map +1 -0
  45. package/dist/web/index.html +2 -2
  46. package/dist/{web-PY55DXYZ.js → web-EUI5U2H4.js} +166 -317
  47. package/dist/web-EUI5U2H4.js.map +1 -0
  48. package/npm-shrinkwrap.json +2 -2
  49. package/package.json +1 -1
  50. package/dist/chunk-46UD4QBL.js.map +0 -1
  51. package/dist/chunk-BSCAA322.js.map +0 -1
  52. package/dist/chunk-GHO7HYP6.js +0 -9
  53. package/dist/chunk-XE2X7KH6.js.map +0 -1
  54. package/dist/move-I7SYL4FY.js.map +0 -1
  55. package/dist/tree-CMDHHEUW.js.map +0 -1
  56. package/dist/web/assets/index-CV8NpZB8.css +0 -1
  57. package/dist/web/assets/index-CcSEllUR.js +0 -117
  58. package/dist/web/assets/index-CcSEllUR.js.map +0 -1
  59. package/dist/web-PY55DXYZ.js.map +0 -1
  60. /package/dist/{chunk-UBC5DNLT.js.map → chunk-6HDVRMCX.js.map} +0 -0
  61. /package/dist/{chunk-GHO7HYP6.js.map → chunk-C4LRHXEB.js.map} +0 -0
  62. /package/dist/{chunk-FOG4WG3Y.js.map → chunk-CNFPZVNO.js.map} +0 -0
  63. /package/dist/{chunk-ESPZRTUB.js.map → chunk-DH2PLKCW.js.map} +0 -0
  64. /package/dist/{chunk-XHOQ7BWT.js.map → chunk-HB2I7GF7.js.map} +0 -0
  65. /package/dist/{chunk-K7BSZRRF.js.map → chunk-IOO2OAUC.js.map} +0 -0
  66. /package/dist/{chunk-G2O7EIKX.js.map → chunk-J2ZJ2DIJ.js.map} +0 -0
  67. /package/dist/{chunk-XBNLSKTX.js.map → chunk-K3ESY6OJ.js.map} +0 -0
  68. /package/dist/{chunk-HIXC67MU.js.map → chunk-LDCY457K.js.map} +0 -0
  69. /package/dist/{chunk-CP6EFKEO.js.map → chunk-M2QL43DS.js.map} +0 -0
  70. /package/dist/{chunk-2VH5SJHF.js.map → chunk-QDNCUUNQ.js.map} +0 -0
  71. /package/dist/{chunk-LRNAHZAK.js.map → chunk-VICXQQ5X.js.map} +0 -0
  72. /package/dist/{chunk-YF66LR6K.js.map → chunk-YXTJVPOI.js.map} +0 -0
  73. /package/dist/{cleanup-MCWFGGS6.js.map → cleanup-YVQOAMSK.js.map} +0 -0
  74. /package/dist/{cli-LS45WVSJ.js.map → cli-VSCHBZRS.js.map} +0 -0
  75. /package/dist/{config-TPYNBTVM.js.map → config-4W5MMHLU.js.map} +0 -0
  76. /package/dist/{fork-ET4OKRNC.js.map → fork-ZBEMNEPA.js.map} +0 -0
  77. /package/dist/{init-NGL64E3F.js.map → init-J2AB37DO.js.map} +0 -0
  78. /package/dist/{overlaps-3LZXSDYZ.js.map → overlaps-SKKGH6EG.js.map} +0 -0
  79. /package/dist/{pr-JM4DRRIV.js.map → pr-AC44DGJY.js.map} +0 -0
  80. /package/dist/{prune-5NUZUVYL.js.map → prune-NQOVBIFT.js.map} +0 -0
  81. /package/dist/{remove-EFQQQRCW.js.map → remove-JESX7RCN.js.map} +0 -0
  82. /package/dist/{sessions-CAOAXKKG.js.map → sessions-T6UXM2OX.js.map} +0 -0
  83. /package/dist/{sync-LSUID373.js.map → sync-E4CU4IHG.js.map} +0 -0
  84. /package/dist/{update-K73WHYY3.js.map → update-5DM5V2E3.js.map} +0 -0
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  VERSION
4
- } from "./chunk-GHO7HYP6.js";
4
+ } from "./chunk-C4LRHXEB.js";
5
5
  import {
6
6
  resolveProjectTarget
7
7
  } from "./chunk-H5LKMR45.js";
@@ -162,12 +162,12 @@ function completeGroupBranches(groupName, repoAliases, current, config, done) {
162
162
 
163
163
  // src/cli.ts
164
164
  var COMMANDS = [
165
- { names: ["init"], load: async () => (await import("./init-NGL64E3F.js")).initCommand },
166
- { names: ["config"], load: async () => (await import("./config-TPYNBTVM.js")).configCommand },
167
- { names: ["tree", "t"], load: async () => (await import("./tree-CMDHHEUW.js")).treeCommand },
168
- { names: ["remove"], load: async () => (await import("./remove-EFQQQRCW.js")).removeCommand },
169
- { names: ["fork"], load: async () => (await import("./fork-ET4OKRNC.js")).forkCommand },
170
- { names: ["update"], load: async () => (await import("./update-K73WHYY3.js")).updateCommand },
165
+ { names: ["init"], load: async () => (await import("./init-J2AB37DO.js")).initCommand },
166
+ { names: ["config"], load: async () => (await import("./config-4W5MMHLU.js")).configCommand },
167
+ { names: ["tree", "t"], load: async () => (await import("./tree-RAN6SQKW.js")).treeCommand },
168
+ { names: ["remove"], load: async () => (await import("./remove-JESX7RCN.js")).removeCommand },
169
+ { names: ["fork"], load: async () => (await import("./fork-ZBEMNEPA.js")).forkCommand },
170
+ { names: ["update"], load: async () => (await import("./update-5DM5V2E3.js")).updateCommand },
171
171
  { names: ["catchup"], load: async () => (await import("./catchup-RUNKM6ZH.js")).catchupCommand },
172
172
  { names: ["snooze"], load: async () => (await import("./snooze-DBJJD6ZM.js")).snoozeCommand },
173
173
  { names: ["pin"], load: async () => (await import("./pin-TJBCJGPQ.js")).pinCommand },
@@ -186,25 +186,25 @@ var COMMANDS = [
186
186
  { names: ["status"], load: async () => (await import("./status-S3NZTRG3.js")).statusCommand },
187
187
  { names: ["recent"], load: async () => (await import("./recent-ZW4WDGCK.js")).recentCommand },
188
188
  { names: ["resume"], load: async () => (await import("./resume-SLNE75JO.js")).resumeCommand },
189
- { names: ["sessions"], load: async () => (await import("./sessions-CAOAXKKG.js")).sessionsCommand },
189
+ { names: ["sessions"], load: async () => (await import("./sessions-T6UXM2OX.js")).sessionsCommand },
190
190
  { names: ["digest"], load: async () => (await import("./digest-AXSMYBYS.js")).digestCommand },
191
- { names: ["cleanup"], load: async () => (await import("./cleanup-MCWFGGS6.js")).cleanupCommand },
192
- { names: ["overlaps"], load: async () => (await import("./overlaps-3LZXSDYZ.js")).overlapsCommand },
191
+ { names: ["cleanup"], load: async () => (await import("./cleanup-YVQOAMSK.js")).cleanupCommand },
192
+ { names: ["overlaps"], load: async () => (await import("./overlaps-SKKGH6EG.js")).overlapsCommand },
193
193
  { names: ["search"], load: async () => (await import("./search-5GK5HL4Y.js")).searchCommand },
194
- { names: ["pr"], load: async () => (await import("./pr-JM4DRRIV.js")).prCommand },
195
- { names: ["prune"], load: async () => (await import("./prune-5NUZUVYL.js")).pruneCommand },
196
- { names: ["sync"], load: async () => (await import("./sync-LSUID373.js")).syncCommand },
194
+ { names: ["pr"], load: async () => (await import("./pr-AC44DGJY.js")).prCommand },
195
+ { names: ["prune"], load: async () => (await import("./prune-NQOVBIFT.js")).pruneCommand },
196
+ { names: ["sync"], load: async () => (await import("./sync-E4CU4IHG.js")).syncCommand },
197
197
  { names: ["todo"], load: async () => (await import("./todo-Y2BZ65MS.js")).todoCommand },
198
198
  { names: ["hydrate"], load: async () => (await import("./hydrate-XMHHC5EG.js")).hydrateCommand },
199
199
  { names: ["diff"], load: async () => (await import("./diff-IDF3K74H.js")).diffCommand },
200
- { names: ["web"], load: async () => (await import("./web-PY55DXYZ.js")).webCommand },
200
+ { names: ["web"], load: async () => (await import("./web-EUI5U2H4.js")).webCommand },
201
201
  { names: ["hook"], load: async () => (await import("./hook-QMW5HHNP.js")).hookCommand },
202
202
  { names: ["run"], load: async () => (await import("./run-MD77Z2BV.js")).runCommand },
203
203
  { names: ["broadcast"], load: async () => (await import("./broadcast-JPVHPQ6Y.js")).broadcastCommand },
204
204
  { names: ["attach", "a"], load: async () => (await import("./attach-WLJVKXOJ.js")).attachCommand },
205
205
  { names: ["pty-host"], load: async () => (await import("./pty-host-MQSUN6EI.js")).ptyHostCommand },
206
206
  { names: ["state"], load: async () => (await import("./state-FGYNNSDP.js")).stateCommand },
207
- { names: ["move"], load: async () => (await import("./move-I7SYL4FY.js")).moveCommand },
207
+ { names: ["move"], load: async () => (await import("./move-O7NEJZQV.js")).moveCommand },
208
208
  { names: ["install-skills"], load: async () => (await import("./install-skills-2ZAHI73P.js")).installSkillsCommand },
209
209
  { names: ["completion"], load: async () => (await import("./completion-MXX5TRIV.js")).completionCommand }
210
210
  ];
@@ -305,4 +305,4 @@ export {
305
305
  commandsFor,
306
306
  run
307
307
  };
308
- //# sourceMappingURL=chunk-YF66LR6K.js.map
308
+ //# sourceMappingURL=chunk-YXTJVPOI.js.map
@@ -6,20 +6,20 @@ import {
6
6
  deleteMergedBranches,
7
7
  findMergedBranches,
8
8
  scanBuildFolders
9
- } from "./chunk-LRNAHZAK.js";
9
+ } from "./chunk-VICXQQ5X.js";
10
10
  import {
11
11
  defaultCleanupDeps
12
- } from "./chunk-K7BSZRRF.js";
12
+ } from "./chunk-IOO2OAUC.js";
13
13
  import {
14
14
  timeAgo
15
15
  } from "./chunk-UQ35KLHH.js";
16
- import "./chunk-2VH5SJHF.js";
16
+ import "./chunk-QDNCUUNQ.js";
17
17
  import "./chunk-6GCF2XWP.js";
18
18
  import {
19
19
  applyCleanup,
20
20
  scanCleanup
21
21
  } from "./chunk-AKMPF72Y.js";
22
- import "./chunk-XE2X7KH6.js";
22
+ import "./chunk-N23HFT4X.js";
23
23
  import "./chunk-LZHCTPBF.js";
24
24
  import "./chunk-BLLLVWEB.js";
25
25
  import "./chunk-G6IJ76DW.js";
@@ -33,8 +33,8 @@ import "./chunk-ZSHWP2VS.js";
33
33
  import "./chunk-JJRPLNLN.js";
34
34
  import "./chunk-HUXS3VAI.js";
35
35
  import "./chunk-7NAXFBFI.js";
36
- import "./chunk-FOG4WG3Y.js";
37
- import "./chunk-46UD4QBL.js";
36
+ import "./chunk-CNFPZVNO.js";
37
+ import "./chunk-5RRKVAIZ.js";
38
38
  import "./chunk-DUUH6FPH.js";
39
39
  import "./chunk-WF57CF7A.js";
40
40
  import "./chunk-TOQZODGI.js";
@@ -189,4 +189,4 @@ var cleanupCommand = {
189
189
  export {
190
190
  cleanupCommand
191
191
  };
192
- //# sourceMappingURL=cleanup-MCWFGGS6.js.map
192
+ //# sourceMappingURL=cleanup-YVQOAMSK.js.map
@@ -3,8 +3,8 @@ import {
3
3
  COMMANDS,
4
4
  commandsFor,
5
5
  run
6
- } from "./chunk-YF66LR6K.js";
7
- import "./chunk-GHO7HYP6.js";
6
+ } from "./chunk-YXTJVPOI.js";
7
+ import "./chunk-C4LRHXEB.js";
8
8
  import "./chunk-H5LKMR45.js";
9
9
  import "./chunk-7NAXFBFI.js";
10
10
  import "./chunk-RCYI7SRA.js";
@@ -15,4 +15,4 @@ export {
15
15
  commandsFor,
16
16
  run
17
17
  };
18
- //# sourceMappingURL=cli-LS45WVSJ.js.map
18
+ //# sourceMappingURL=cli-VSCHBZRS.js.map
@@ -3,15 +3,15 @@ import {
3
3
  RepoAdminError,
4
4
  enrollRepo,
5
5
  repoInventory
6
- } from "./chunk-G2O7EIKX.js";
6
+ } from "./chunk-J2ZJ2DIJ.js";
7
7
  import {
8
8
  openInEditor
9
9
  } from "./chunk-5XMXZIJS.js";
10
10
  import {
11
11
  scanForRepos
12
- } from "./chunk-BSCAA322.js";
13
- import "./chunk-FOG4WG3Y.js";
14
- import "./chunk-46UD4QBL.js";
12
+ } from "./chunk-7Z2USU3A.js";
13
+ import "./chunk-CNFPZVNO.js";
14
+ import "./chunk-5RRKVAIZ.js";
15
15
  import {
16
16
  loadHistory
17
17
  } from "./chunk-DUUH6FPH.js";
@@ -407,4 +407,4 @@ function showGroupHelp() {
407
407
  export {
408
408
  configCommand
409
409
  };
410
- //# sourceMappingURL=config-TPYNBTVM.js.map
410
+ //# sourceMappingURL=config-4W5MMHLU.js.map
@@ -4,13 +4,13 @@ import {
4
4
  forkSession,
5
5
  startSessionWithPrompt,
6
6
  uncommittedFiles
7
- } from "./chunk-CP6EFKEO.js";
8
- import "./chunk-UBC5DNLT.js";
7
+ } from "./chunk-M2QL43DS.js";
8
+ import "./chunk-6HDVRMCX.js";
9
9
  import {
10
10
  attachSession
11
11
  } from "./chunk-CK2QC2UF.js";
12
12
  import "./chunk-AH5TM3NB.js";
13
- import "./chunk-XE2X7KH6.js";
13
+ import "./chunk-N23HFT4X.js";
14
14
  import "./chunk-LZHCTPBF.js";
15
15
  import "./chunk-BLLLVWEB.js";
16
16
  import "./chunk-G6IJ76DW.js";
@@ -30,7 +30,7 @@ import "./chunk-ZSHWP2VS.js";
30
30
  import "./chunk-JJRPLNLN.js";
31
31
  import "./chunk-HUXS3VAI.js";
32
32
  import "./chunk-7NAXFBFI.js";
33
- import "./chunk-46UD4QBL.js";
33
+ import "./chunk-5RRKVAIZ.js";
34
34
  import {
35
35
  findSession,
36
36
  loadHistory
@@ -117,4 +117,4 @@ var forkCommand = {
117
117
  export {
118
118
  forkCommand
119
119
  };
120
- //# sourceMappingURL=fork-ET4OKRNC.js.map
120
+ //# sourceMappingURL=fork-ZBEMNEPA.js.map
@@ -7,7 +7,7 @@ import {
7
7
  import {
8
8
  DEFAULT_COPY_FILES,
9
9
  suggestFolders
10
- } from "./chunk-HIXC67MU.js";
10
+ } from "./chunk-LDCY457K.js";
11
11
  import {
12
12
  isGitRepo
13
13
  } from "./chunk-7NAXFBFI.js";
@@ -15,9 +15,9 @@ import {
15
15
  enrollProblem,
16
16
  scanForRepos,
17
17
  suggestAlias
18
- } from "./chunk-BSCAA322.js";
19
- import "./chunk-FOG4WG3Y.js";
20
- import "./chunk-46UD4QBL.js";
18
+ } from "./chunk-7Z2USU3A.js";
19
+ import "./chunk-CNFPZVNO.js";
20
+ import "./chunk-5RRKVAIZ.js";
21
21
  import "./chunk-DUUH6FPH.js";
22
22
  import "./chunk-WF57CF7A.js";
23
23
  import {
@@ -184,4 +184,4 @@ var initCommand = {
184
184
  export {
185
185
  initCommand
186
186
  };
187
- //# sourceMappingURL=init-NGL64E3F.js.map
187
+ //# sourceMappingURL=init-J2AB37DO.js.map
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  createInProcess
4
- } from "./chunk-UBC5DNLT.js";
5
- import "./chunk-XE2X7KH6.js";
4
+ } from "./chunk-6HDVRMCX.js";
5
+ import "./chunk-N23HFT4X.js";
6
6
  import {
7
7
  findHost
8
8
  } from "./chunk-G6IJ76DW.js";
@@ -13,12 +13,13 @@ import {
13
13
  } from "./chunk-WVZ56EJC.js";
14
14
  import "./chunk-7NAXFBFI.js";
15
15
  import {
16
- originUrl
17
- } from "./chunk-BSCAA322.js";
18
- import "./chunk-FOG4WG3Y.js";
16
+ originUrl,
17
+ readGitConfig
18
+ } from "./chunk-7Z2USU3A.js";
19
+ import "./chunk-CNFPZVNO.js";
19
20
  import {
20
21
  defaultRunner
21
- } from "./chunk-46UD4QBL.js";
22
+ } from "./chunk-5RRKVAIZ.js";
22
23
  import {
23
24
  loadHistory,
24
25
  saveHistory
@@ -105,12 +106,7 @@ function exportBundle(dest, now = /* @__PURE__ */ new Date()) {
105
106
  }
106
107
  const repos = {};
107
108
  for (const [alias, p] of Object.entries(config.repos)) {
108
- let origin = null;
109
- try {
110
- origin = originUrl(fs.readFileSync(path.join(p, ".git", "config"), "utf-8"));
111
- } catch {
112
- }
113
- repos[alias] = { path: p, origin };
109
+ repos[alias] = { path: p, origin: originUrl(readGitConfig(p) ?? "") };
114
110
  }
115
111
  const manifest = {
116
112
  version: BUNDLE_VERSION,
@@ -310,4 +306,4 @@ var moveCommand = {
310
306
  export {
311
307
  moveCommand
312
308
  };
313
- //# sourceMappingURL=move-I7SYL4FY.js.map
309
+ //# sourceMappingURL=move-O7NEJZQV.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/commands/move.ts","../src/core/move/move.ts"],"sourcesContent":["import path from 'node:path';\nimport chalk from 'chalk';\nimport type { CommandModule } from 'yargs';\nimport { exportBundle, importBundle, MoveError, runningHere, unsavedWork } from '../core/move/move.js';\nimport { loadHistory } from '../core/sessions/history.js';\n\n/**\n * `work move export <dir>` / `work move import <dir>` — take your sessions,\n * conversations and setup to another computer (core/move/move.ts).\n */\nexport const moveCommand: CommandModule = {\n command: 'move <action> <dir>',\n describe: 'Move work to another computer: export a bundle here, import it there',\n builder: (y) =>\n y\n .positional('action', { choices: ['export', 'import'] as const, describe: 'export a bundle here, or import one' })\n .positional('dir', { type: 'string', describe: 'The bundle folder (new for export)' })\n .option('force', { type: 'boolean', describe: 'export: even with work not pushed; import: replace the sessions here' })\n .option('repos-root', { type: 'string', describe: 'import: where the repos are on this computer (each in its folder name)' })\n .option('worktrees-root', { type: 'string', describe: 'import: where worktrees go on this computer' })\n .option('clone', { type: 'boolean', describe: \"import: clone repos that aren't here from their origin\" }),\n handler: async (argv) => {\n const dir = path.resolve(argv.dir as string);\n try {\n if (argv.action === 'export') {\n const unsaved = await unsavedWork(loadHistory());\n if (unsaved.length) {\n console.log(chalk.yellow(\"Work that's only on this computer (the other one gets worktrees from origin):\"));\n for (const u of unsaved) console.log(` ${u.session}: ${u.what} ${chalk.gray(u.path)}`);\n if (!argv.force) {\n console.log(chalk.gray('Commit and push it (or ask its Claude), then export again — or --force to leave it behind.'));\n process.exitCode = 1;\n return;\n }\n }\n const r = exportBundle(dir);\n console.log(chalk.green(`Exported ${r.sessions} session(s) and ${r.transcripts} conversation file(s) to ${r.dir}`));\n console.log(chalk.gray('Copy the folder to the other computer and run `work move import <folder>` there (with work web stopped).'));\n return;\n }\n const running = await runningHere();\n if (running.length) {\n console.error(chalk.red(`Stop ${running.join(' and ')} first: an import replaces the database they hold.`));\n process.exitCode = 1;\n return;\n }\n const r = await importBundle(dir, {\n force: argv.force === true,\n clone: argv.clone === true,\n reposRoot: typeof argv['repos-root'] === 'string' ? path.resolve(argv['repos-root']) : undefined,\n worktreesRoot: typeof argv['worktrees-root'] === 'string' ? path.resolve(argv['worktrees-root']) : undefined,\n });\n console.log(chalk.green(`Imported ${r.sessions} session(s); ${r.transcripts} conversation file(s) put back for Claude.`));\n if (r.repos.cloned.length) console.log(`Cloned: ${r.repos.cloned.join(', ')}`);\n if (r.repos.missing.length)\n console.log(chalk.yellow(`Not on this computer: ${r.repos.missing.join(', ')} — clone them (or run again with --clone).`));\n if (r.worktrees.created.length) console.log(`Worktrees recreated: ${r.worktrees.created.join(', ')}`);\n for (const f of r.worktrees.failed) console.log(chalk.yellow(` ${f.session}: ${f.error}`));\n console.log(chalk.gray('Start `work web`: sessions resume their conversations when you open them.'));\n } catch (err) {\n if (!(err instanceof MoveError)) throw err;\n console.error(chalk.red(err.message));\n process.exitCode = 1;\n }\n },\n};\n","import fs from 'node:fs';\nimport os from 'node:os';\nimport path from 'node:path';\nimport { getConfigDir, getConfigPath, loadConfig } from '../platform/config.js';\nimport { replaceDb, snapshotDb, withDb } from '../platform/db.js';\nimport { atomicWriteFile } from '../platform/fs-safe.js';\nimport { loadHistory, saveHistory, type WorktreeSession } from '../sessions/history.js';\nimport { sessionIdFor } from '../sessions/session-id.js';\nimport { agentOf } from '../agents/index.js';\nimport { originUrl, readGitConfig } from '../worktree/repo-scan.js';\nimport { defaultRunner, type CommandRunner } from '../pr/ship.js';\nimport { createInProcess, type CreateWorktree } from '../worktree/setup-child.js';\nimport { readWebUrl, webServerResponds } from '../platform/web-discovery.js';\nimport { findHost } from '../pty/pty-host-client.js';\n\n/**\n * Moving work to another computer (`work move export` / `import`). A bundle\n * is a folder you carry over (OneDrive, a USB stick): a snapshot of\n * state.db, config.json, work's own conversation copies and archives, the\n * groups' instruction files, every live session's agent transcripts, and a\n * manifest with each repo's origin. Never `~/.work` itself live in a synced\n * folder: syncing a database corrupts it, and two computers would both run\n * the PR and Jira watches.\n *\n * Import writes it all back with paths moved to the new computer (another\n * home folder, or other repo / worktree roots), clones repos that aren't\n * there (`--clone`), recreates live sessions' worktrees from their branches\n * on origin — so export first checks nothing is uncommitted or unpushed —\n * and puts the transcripts back where the agent looks, so conversations\n * resume. Checkpoint refs and wd's own review scopes stay behind (they live\n * in the old repos, keyed by old paths).\n */\n\nexport const BUNDLE_VERSION = 1;\n\nexport interface MoveManifest {\n version: number;\n exportedAt: string;\n from: { home: string; platform: string; worktreesRoot: string };\n /** Each repo's folder and origin URL, so a missing one can be cloned. */\n repos: Record<string, { path: string; origin: string | null }>;\n sessions: Array<{ id: string; target: string; branch: string; archived: boolean; transcripts: number }>;\n}\n\n/** A refusal, in words for the CLI. */\nexport class MoveError extends Error {}\n\nconst exists = (p: string) => fs.existsSync(p);\n\n// ---- before export: what wouldn't survive the move -------------------------------\n\nexport interface Unsaved {\n session: string;\n repo: string;\n path: string;\n what: string;\n}\n\n/**\n * Work only this computer has, per live session's repo: uncommitted files,\n * commits not on origin. Import recreates worktrees from origin, so these\n * would stay behind.\n */\nexport async function unsavedWork(sessions: WorktreeSession[], run: CommandRunner = defaultRunner): Promise<Unsaved[]> {\n const out: Unsaved[] = [];\n for (const s of sessions) {\n if (s.archivedAt) continue;\n for (const p of s.paths) {\n if (!exists(p)) continue;\n const at = { session: `${s.target} · ${s.branch || '(its checkout)'}`, repo: s.isGroup ? path.basename(p) : s.target, path: p };\n const status = await run('git', ['status', '--porcelain'], p);\n const dirty = status.code === 0 ? status.stdout.split('\\n').filter((l) => l.trim()).length : 0;\n if (dirty) out.push({ ...at, what: `${dirty} uncommitted file${dirty === 1 ? '' : 's'}` });\n const branch = (await run('git', ['rev-parse', '--abbrev-ref', 'HEAD'], p)).stdout.trim();\n if (!branch || branch === 'HEAD') continue;\n const onOrigin = (await run('git', ['rev-parse', '--verify', '--quiet', `refs/remotes/origin/${branch}`], p)).code === 0;\n const against = onOrigin ? `origin/${branch}` : 'origin/HEAD';\n const ahead = Number((await run('git', ['rev-list', '--count', `${against}..HEAD`], p)).stdout.trim()) || 0;\n if (ahead)\n out.push({ ...at, what: `${ahead} commit${ahead === 1 ? '' : 's'} not pushed${onOrigin ? '' : ` (${branch} isn't on origin)`}` });\n }\n }\n return out;\n}\n\n// ---- export ------------------------------------------------------------------------\n\nexport interface ExportResult {\n dir: string;\n sessions: number;\n transcripts: number;\n}\n\n/** Write the bundle into `dest` (a new or empty folder). */\nexport function exportBundle(dest: string, now = new Date()): ExportResult {\n if (exists(dest) && fs.readdirSync(dest).length) throw new MoveError(`${dest} isn't empty: give a new folder`);\n const home = getConfigDir();\n const config = loadConfig();\n if (!config) throw new MoveError('nothing to move: work has no config here');\n fs.mkdirSync(dest, { recursive: true });\n snapshotDb(path.join(dest, 'state.db'));\n fs.copyFileSync(getConfigPath(), path.join(dest, 'config.json'));\n for (const dir of ['conversations', 'archive']) {\n if (exists(path.join(home, dir))) fs.cpSync(path.join(home, dir), path.join(dest, dir), { recursive: true });\n }\n for (const f of fs.readdirSync(home).filter((n) => n.endsWith('.claude.md'))) {\n fs.mkdirSync(path.join(dest, 'instructions'), { recursive: true });\n fs.copyFileSync(path.join(home, f), path.join(dest, 'instructions', f));\n }\n\n const history = loadHistory();\n let transcripts = 0;\n const sessions: MoveManifest['sessions'] = [];\n for (const s of history) {\n const id = sessionIdFor(s);\n // An archived session's conversation is in its archive already.\n const files = s.archivedAt ? [] : (agentOf(s).conversation?.files(s) ?? []);\n for (const f of files) {\n fs.mkdirSync(path.join(dest, 'transcripts', id), { recursive: true });\n fs.copyFileSync(f.file, path.join(dest, 'transcripts', id, path.basename(f.file)));\n }\n transcripts += files.length;\n sessions.push({ id, target: s.target, branch: s.branch, archived: !!s.archivedAt, transcripts: files.length });\n }\n const repos: MoveManifest['repos'] = {};\n for (const [alias, p] of Object.entries(config.repos)) {\n repos[alias] = { path: p, origin: originUrl(readGitConfig(p) ?? '') };\n }\n const manifest: MoveManifest = {\n version: BUNDLE_VERSION,\n exportedAt: now.toISOString(),\n from: { home: os.homedir(), platform: process.platform, worktreesRoot: config.worktreesRoot },\n repos,\n sessions,\n };\n fs.writeFileSync(path.join(dest, 'manifest.json'), JSON.stringify(manifest, null, 2));\n return { dir: dest, sessions: history.length, transcripts };\n}\n\n// ---- paths on the new computer (pure) ---------------------------------------------\n\nexport interface PathRule {\n from: string;\n to: string;\n}\n\nconst norm = (p: string, caseless: boolean) => {\n const n = p.replace(/\\\\/g, '/').replace(/\\/+$/, '');\n return caseless ? n.toLowerCase() : n;\n};\n\n/**\n * Where things go: the worktrees root and each repo to the folders given\n * (`--worktrees-root`, `--repos-root` + its folder name), else the same\n * place under the new home folder; anything else under the old home moves\n * with it. Longest first, so the most specific rule wins. Pure.\n */\nexport function remapRules(\n m: Pick<MoveManifest, 'from' | 'repos'>,\n opts: { reposRoot?: string; worktreesRoot?: string },\n newHome: string,\n join: (...parts: string[]) => string = path.join,\n): PathRule[] {\n const caseless = m.from.platform === 'win32';\n const homeSwap = (p: string) => remapPath(p, [{ from: m.from.home, to: newHome }], caseless, join);\n const base = (p: string) =>\n p\n .replace(/[\\\\/]+$/, '')\n .split(/[\\\\/]/)\n .pop() ?? p;\n const rules: PathRule[] = [\n { from: m.from.worktreesRoot, to: opts.worktreesRoot ?? homeSwap(m.from.worktreesRoot) },\n ...Object.values(m.repos).map((r) => ({ from: r.path, to: opts.reposRoot ? join(opts.reposRoot, base(r.path)) : homeSwap(r.path) })),\n { from: m.from.home, to: newHome },\n ];\n return rules.sort((a, b) => b.from.length - a.from.length);\n}\n\n/** `p` under the first rule whose folder holds it, written for this computer; unchanged when none does. Pure. */\nexport function remapPath(p: string, rules: PathRule[], caseless: boolean, join: (...parts: string[]) => string = path.join): string {\n const key = norm(p, caseless);\n for (const r of rules) {\n const from = norm(r.from, caseless);\n if (key !== from && !key.startsWith(`${from}/`)) continue;\n const rest = p.replace(/\\\\/g, '/').slice(from.length).split('/').filter(Boolean);\n return rest.length ? join(r.to, ...rest) : r.to;\n }\n return p;\n}\n\n/** A session with its paths (and per-repo bases, keyed by path) moved. Pure. */\nexport function remapSession(s: WorktreeSession, move: (p: string) => string): WorktreeSession {\n const out: WorktreeSession = { ...s, paths: s.paths.map(move) };\n if (s.baseBranches) out.baseBranches = Object.fromEntries(Object.entries(s.baseBranches).map(([p, b]) => [move(p), b]));\n return out;\n}\n\n// ---- import ------------------------------------------------------------------------\n\n/**\n * What holds the database open here and must stop before an import replaces\n * it: work web, the PTY host. A host that doesn't answer counts as running.\n */\nexport async function runningHere(): Promise<string[]> {\n const out: string[] = [];\n const url = readWebUrl();\n if (url && (await webServerResponds(url))) out.push('work web (`work web --stop`)');\n try {\n if (await findHost()) out.push('the PTY host (`work pty-host --stop`)');\n } catch {\n out.push('the PTY host (`work pty-host --stop`)');\n }\n return out;\n}\n\nexport function readManifest(dir: string): MoveManifest {\n let raw: unknown;\n try {\n raw = JSON.parse(fs.readFileSync(path.join(dir, 'manifest.json'), 'utf-8'));\n } catch {\n throw new MoveError(`${dir} isn't a work bundle (no manifest.json): make one with \\`work move export\\``);\n }\n const m = raw as MoveManifest;\n if (!m || typeof m !== 'object' || typeof m.from?.home !== 'string' || typeof m.repos !== 'object')\n throw new MoveError(`${dir}/manifest.json isn't one work can read`);\n if (m.version > BUNDLE_VERSION) throw new MoveError(`this bundle is from a newer work (v${m.version}): update work first`);\n if (!exists(path.join(dir, 'state.db')) || !exists(path.join(dir, 'config.json')))\n throw new MoveError(`${dir} is missing state.db or config.json`);\n return m;\n}\n\nexport interface ImportOptions {\n reposRoot?: string;\n worktreesRoot?: string;\n /** Clone repos that aren't on this computer, from their origin. */\n clone?: boolean;\n /** Replace what this computer has already. */\n force?: boolean;\n}\n\nexport interface ImportReport {\n sessions: number;\n repos: { cloned: string[]; missing: string[] };\n worktrees: { created: string[]; failed: Array<{ session: string; error: string }> };\n transcripts: number;\n}\n\nexport interface ImportDeps {\n run: CommandRunner;\n create: CreateWorktree;\n /** Where a session's agent looks for its conversations (null: it starts fresh). */\n restoreDir: (s: WorktreeSession) => string | null;\n}\n\nconst defaultImportDeps = (): ImportDeps => ({\n run: defaultRunner,\n create: createInProcess,\n restoreDir: (s) => agentOf(s).conversation?.restoreDir?.(s) ?? null,\n});\n\n/** Bring a bundle in. The caller makes sure no work web or PTY host runs (they hold the database). */\nexport async function importBundle(dir: string, opts: ImportOptions = {}, deps: ImportDeps = defaultImportDeps()): Promise<ImportReport> {\n const m = readManifest(dir);\n if (!opts.force && exists(getConfigPath()) && loadHistory().length)\n throw new MoveError('work here has sessions already; importing replaces them (--force to do it anyway)');\n const caseless = m.from.platform === 'win32';\n const rules = remapRules(m, opts, os.homedir());\n const move = (p: string) => remapPath(p, rules, caseless);\n\n // config.json, as JSON: keys this version doesn't know come along.\n const raw = JSON.parse(fs.readFileSync(path.join(dir, 'config.json'), 'utf-8')) as Record<string, unknown>;\n if (typeof raw.worktreesRoot === 'string') raw.worktreesRoot = move(raw.worktreesRoot);\n if (raw.repos && typeof raw.repos === 'object')\n raw.repos = Object.fromEntries(\n Object.entries(raw.repos as Record<string, unknown>).map(([a, p]) => [a, typeof p === 'string' ? move(p) : p]),\n );\n for (const key of ['scanRoots', 'ignoredRepos'])\n if (Array.isArray(raw[key])) raw[key] = (raw[key] as unknown[]).map((p) => (typeof p === 'string' ? move(p) : p));\n fs.mkdirSync(getConfigDir(), { recursive: true });\n atomicWriteFile(getConfigPath(), JSON.stringify(raw, null, 2));\n\n // The database, then its sessions' paths. Its Claudes start when you open them here.\n replaceDb(path.join(dir, 'state.db'));\n const history = loadHistory().map((s) => remapSession(s, move));\n saveHistory(history);\n withDb((d) => d.prepare('DELETE FROM pty_sessions').run());\n\n // work's own files.\n for (const sub of ['conversations', 'archive'])\n if (exists(path.join(dir, sub))) fs.cpSync(path.join(dir, sub), path.join(getConfigDir(), sub), { recursive: true, force: false });\n if (exists(path.join(dir, 'instructions')))\n for (const f of fs.readdirSync(path.join(dir, 'instructions')))\n fs.copyFileSync(path.join(dir, 'instructions', f), path.join(getConfigDir(), f));\n\n const report: ImportReport = {\n sessions: history.length,\n repos: { cloned: [], missing: [] },\n worktrees: { created: [], failed: [] },\n transcripts: 0,\n };\n const config = loadConfig()!;\n for (const [alias, p] of Object.entries(config.repos)) {\n if (exists(p)) continue;\n const origin = m.repos[alias]?.origin;\n if (opts.clone && origin) {\n fs.mkdirSync(path.dirname(p), { recursive: true });\n const r = await deps.run('git', ['clone', origin, p], path.dirname(p));\n if (r.code === 0) {\n report.repos.cloned.push(alias);\n continue;\n }\n }\n report.repos.missing.push(alias);\n }\n\n // Live sessions get their worktrees back, from their branches on origin.\n const missing = new Set(report.repos.missing);\n for (const s of history) {\n if (s.archivedAt || !s.branch || s.paths.every(exists)) continue;\n const label = `${s.target} · ${s.branch}`;\n const repos = s.isGroup ? (config.groups[s.target] ?? []) : [s.target];\n if (repos.some((r) => missing.has(r))) {\n report.worktrees.failed.push({ session: label, error: `its repo isn't here (${repos.filter((r) => missing.has(r)).join(', ')})` });\n continue;\n }\n // A repo's own checkout (`work tree <repo>`) comes with the repo.\n if (!s.isGroup && config.repos[s.target] && s.paths[0] === config.repos[s.target]) continue;\n const r = await deps.create({ target: s.target, branch: s.branch }, config);\n if (r.ok) report.worktrees.created.push(label);\n else report.worktrees.failed.push({ session: label, error: r.error });\n }\n\n // Conversations back where the agent looks, so they resume.\n for (const s of loadHistory()) {\n const from = path.join(dir, 'transcripts', sessionIdFor(s));\n const to = exists(from) ? deps.restoreDir(s) : null;\n if (!to) continue;\n fs.mkdirSync(to, { recursive: true });\n for (const f of fs.readdirSync(from)) {\n if (exists(path.join(to, f))) continue;\n fs.copyFileSync(path.join(from, f), path.join(to, f));\n report.transcripts++;\n }\n }\n return report;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAOA,WAAU;AACjB,OAAO,WAAW;;;ACDlB,OAAO,QAAQ;AACf,OAAO,QAAQ;AACf,OAAO,UAAU;AA+BV,IAAM,iBAAiB;AAYvB,IAAM,YAAN,cAAwB,MAAM;AAAC;AAEtC,IAAM,SAAS,CAAC,MAAc,GAAG,WAAW,CAAC;AAgB7C,eAAsB,YAAY,UAA6B,MAAqB,eAAmC;AACrH,QAAM,MAAiB,CAAC;AACxB,aAAW,KAAK,UAAU;AACxB,QAAI,EAAE,WAAY;AAClB,eAAW,KAAK,EAAE,OAAO;AACvB,UAAI,CAAC,OAAO,CAAC,EAAG;AAChB,YAAM,KAAK,EAAE,SAAS,GAAG,EAAE,MAAM,SAAM,EAAE,UAAU,gBAAgB,IAAI,MAAM,EAAE,UAAU,KAAK,SAAS,CAAC,IAAI,EAAE,QAAQ,MAAM,EAAE;AAC9H,YAAM,SAAS,MAAM,IAAI,OAAO,CAAC,UAAU,aAAa,GAAG,CAAC;AAC5D,YAAM,QAAQ,OAAO,SAAS,IAAI,OAAO,OAAO,MAAM,IAAI,EAAE,OAAO,CAAC,MAAM,EAAE,KAAK,CAAC,EAAE,SAAS;AAC7F,UAAI,MAAO,KAAI,KAAK,EAAE,GAAG,IAAI,MAAM,GAAG,KAAK,oBAAoB,UAAU,IAAI,KAAK,GAAG,GAAG,CAAC;AACzF,Y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M,MAAM,IAAI,IAAI,OAAO,CAAC;AACpC,cAAQ,WAAW;AAAA,IACrB;AAAA,EACF;AACF;","names":["path","r","path","r"]}
@@ -1,10 +1,10 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  scanChanges
4
- } from "./chunk-XBNLSKTX.js";
5
- import "./chunk-XHOQ7BWT.js";
4
+ } from "./chunk-K3ESY6OJ.js";
5
+ import "./chunk-HB2I7GF7.js";
6
6
  import "./chunk-AKMPF72Y.js";
7
- import "./chunk-46UD4QBL.js";
7
+ import "./chunk-5RRKVAIZ.js";
8
8
  import {
9
9
  loadHistory
10
10
  } from "./chunk-DUUH6FPH.js";
@@ -53,4 +53,4 @@ var overlapsCommand = {
53
53
  export {
54
54
  overlapsCommand
55
55
  };
56
- //# sourceMappingURL=overlaps-3LZXSDYZ.js.map
56
+ //# sourceMappingURL=overlaps-SKKGH6EG.js.map
@@ -15,7 +15,7 @@ import "./chunk-JJRPLNLN.js";
15
15
  import "./chunk-HUXS3VAI.js";
16
16
  import {
17
17
  defaultRunner
18
- } from "./chunk-46UD4QBL.js";
18
+ } from "./chunk-5RRKVAIZ.js";
19
19
  import "./chunk-DUUH6FPH.js";
20
20
  import {
21
21
  sessionIdFor
@@ -119,4 +119,4 @@ var prCommand = {
119
119
  export {
120
120
  prCommand
121
121
  };
122
- //# sourceMappingURL=pr-JM4DRRIV.js.map
122
+ //# sourceMappingURL=pr-AC44DGJY.js.map
@@ -5,14 +5,14 @@ import {
5
5
  } from "./chunk-ABQYKTG4.js";
6
6
  import {
7
7
  defaultCleanupDeps
8
- } from "./chunk-K7BSZRRF.js";
9
- import "./chunk-2VH5SJHF.js";
8
+ } from "./chunk-IOO2OAUC.js";
9
+ import "./chunk-QDNCUUNQ.js";
10
10
  import "./chunk-6GCF2XWP.js";
11
11
  import {
12
12
  applyCleanup,
13
13
  scanCleanup
14
14
  } from "./chunk-AKMPF72Y.js";
15
- import "./chunk-XE2X7KH6.js";
15
+ import "./chunk-N23HFT4X.js";
16
16
  import "./chunk-LZHCTPBF.js";
17
17
  import "./chunk-BLLLVWEB.js";
18
18
  import "./chunk-G6IJ76DW.js";
@@ -26,8 +26,8 @@ import "./chunk-ZSHWP2VS.js";
26
26
  import "./chunk-JJRPLNLN.js";
27
27
  import "./chunk-HUXS3VAI.js";
28
28
  import "./chunk-7NAXFBFI.js";
29
- import "./chunk-FOG4WG3Y.js";
30
- import "./chunk-46UD4QBL.js";
29
+ import "./chunk-CNFPZVNO.js";
30
+ import "./chunk-5RRKVAIZ.js";
31
31
  import "./chunk-DUUH6FPH.js";
32
32
  import "./chunk-WF57CF7A.js";
33
33
  import "./chunk-TOQZODGI.js";
@@ -89,4 +89,4 @@ var pruneCommand = {
89
89
  export {
90
90
  pruneCommand
91
91
  };
92
- //# sourceMappingURL=prune-5NUZUVYL.js.map
92
+ //# sourceMappingURL=prune-NQOVBIFT.js.map
@@ -1,13 +1,13 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  archiveWaiting
4
- } from "./chunk-2VH5SJHF.js";
4
+ } from "./chunk-QDNCUUNQ.js";
5
5
  import "./chunk-6GCF2XWP.js";
6
6
  import "./chunk-AKMPF72Y.js";
7
7
  import {
8
8
  teardownWorktree,
9
9
  wouldRefuseRemoval
10
- } from "./chunk-XE2X7KH6.js";
10
+ } from "./chunk-N23HFT4X.js";
11
11
  import {
12
12
  stopSessionPty
13
13
  } from "./chunk-LZHCTPBF.js";
@@ -26,8 +26,8 @@ import "./chunk-ZSHWP2VS.js";
26
26
  import "./chunk-JJRPLNLN.js";
27
27
  import "./chunk-HUXS3VAI.js";
28
28
  import "./chunk-7NAXFBFI.js";
29
- import "./chunk-FOG4WG3Y.js";
30
- import "./chunk-46UD4QBL.js";
29
+ import "./chunk-CNFPZVNO.js";
30
+ import "./chunk-5RRKVAIZ.js";
31
31
  import {
32
32
  findSession,
33
33
  loadHistory,
@@ -105,4 +105,4 @@ var removeCommand = {
105
105
  export {
106
106
  removeCommand
107
107
  };
108
- //# sourceMappingURL=remove-EFQQQRCW.js.map
108
+ //# sourceMappingURL=remove-JESX7RCN.js.map
@@ -5,8 +5,8 @@ import {
5
5
  } from "./chunk-KZQDONTU.js";
6
6
  import {
7
7
  scanChanges
8
- } from "./chunk-XBNLSKTX.js";
9
- import "./chunk-XHOQ7BWT.js";
8
+ } from "./chunk-K3ESY6OJ.js";
9
+ import "./chunk-HB2I7GF7.js";
10
10
  import {
11
11
  timeAgo
12
12
  } from "./chunk-UQ35KLHH.js";
@@ -30,7 +30,7 @@ import "./chunk-ED7E2WKK.js";
30
30
  import "./chunk-ZSHWP2VS.js";
31
31
  import "./chunk-JJRPLNLN.js";
32
32
  import "./chunk-HUXS3VAI.js";
33
- import "./chunk-46UD4QBL.js";
33
+ import "./chunk-5RRKVAIZ.js";
34
34
  import {
35
35
  loadHistory
36
36
  } from "./chunk-DUUH6FPH.js";
@@ -132,4 +132,4 @@ export {
132
132
  sessionRows,
133
133
  sessionsCommand
134
134
  };
135
- //# sourceMappingURL=sessions-CAOAXKKG.js.map
135
+ //# sourceMappingURL=sessions-T6UXM2OX.js.map
@@ -5,14 +5,14 @@ import {
5
5
  } from "./chunk-ABQYKTG4.js";
6
6
  import {
7
7
  defaultCleanupDeps
8
- } from "./chunk-K7BSZRRF.js";
9
- import "./chunk-2VH5SJHF.js";
8
+ } from "./chunk-IOO2OAUC.js";
9
+ import "./chunk-QDNCUUNQ.js";
10
10
  import "./chunk-6GCF2XWP.js";
11
11
  import {
12
12
  applyCleanup,
13
13
  scanCleanup
14
14
  } from "./chunk-AKMPF72Y.js";
15
- import "./chunk-XE2X7KH6.js";
15
+ import "./chunk-N23HFT4X.js";
16
16
  import "./chunk-LZHCTPBF.js";
17
17
  import "./chunk-BLLLVWEB.js";
18
18
  import "./chunk-G6IJ76DW.js";
@@ -26,8 +26,8 @@ import "./chunk-ZSHWP2VS.js";
26
26
  import "./chunk-JJRPLNLN.js";
27
27
  import "./chunk-HUXS3VAI.js";
28
28
  import "./chunk-7NAXFBFI.js";
29
- import "./chunk-FOG4WG3Y.js";
30
- import "./chunk-46UD4QBL.js";
29
+ import "./chunk-CNFPZVNO.js";
30
+ import "./chunk-5RRKVAIZ.js";
31
31
  import "./chunk-DUUH6FPH.js";
32
32
  import "./chunk-WF57CF7A.js";
33
33
  import "./chunk-TOQZODGI.js";
@@ -93,4 +93,4 @@ var syncCommand = {
93
93
  export {
94
94
  syncCommand
95
95
  };
96
- //# sourceMappingURL=sync-LSUID373.js.map
96
+ //# sourceMappingURL=sync-E4CU4IHG.js.map
@@ -1,4 +1,8 @@
1
1
  #!/usr/bin/env node
2
+ import {
3
+ resolvePrToStart,
4
+ workOnPrPrompt
5
+ } from "./chunk-QWIGFAKZ.js";
2
6
  import {
3
7
  attachSession
4
8
  } from "./chunk-CK2QC2UF.js";
@@ -9,7 +13,7 @@ import {
9
13
  openBaseCheckout,
10
14
  parseBaseSpec,
11
15
  setupWorktree
12
- } from "./chunk-XE2X7KH6.js";
16
+ } from "./chunk-N23HFT4X.js";
13
17
  import "./chunk-LZHCTPBF.js";
14
18
  import "./chunk-BLLLVWEB.js";
15
19
  import "./chunk-G6IJ76DW.js";
@@ -24,6 +28,9 @@ import {
24
28
  launchAi,
25
29
  openVSCode
26
30
  } from "./chunk-5XMXZIJS.js";
31
+ import "./chunk-7Z2USU3A.js";
32
+ import "./chunk-CNFPZVNO.js";
33
+ import "./chunk-5RRKVAIZ.js";
27
34
  import {
28
35
  findSession,
29
36
  loadHistory,
@@ -84,6 +91,9 @@ var treeCommand = {
84
91
  }).option("prompt-file", {
85
92
  describe: "File containing the initial prompt (deleted after reading)",
86
93
  type: "string"
94
+ }).option("pr", {
95
+ describe: "Work on a pull request, on its branch (what you push lands in it): its link, or its number with <target>. Someone else's too; not one from a fork",
96
+ type: "string"
87
97
  }).option("name", {
88
98
  describe: "Name the session (shown instead of the branch; rename later with F2 in the dashboard)",
89
99
  type: "string"
@@ -153,6 +163,26 @@ var treeCommand = {
153
163
  console.log(`Starting ${tool.cmd}...`);
154
164
  launchAi(dir, tool, { unsafe, initialPrompt, resume }, port);
155
165
  };
166
+ const prArg = argv.pr;
167
+ if (prArg !== void 0) {
168
+ if (branchName || here || !isEmptyBaseSpec(baseSpec)) {
169
+ console.error("--pr takes the PR's own branch: don't combine it with a branch, --here or --base.");
170
+ process.exitCode = 1;
171
+ return;
172
+ }
173
+ const found = await resolvePrToStart(prArg, config, targetName);
174
+ if (!found.ok) {
175
+ console.error(found.error);
176
+ process.exitCode = 1;
177
+ return;
178
+ }
179
+ targetName = found.pr.alias;
180
+ branchName = found.pr.branch;
181
+ if (!findSession(loadHistory(), targetName, branchName)) initialPrompt = workOnPrPrompt(found.pr, initialPrompt);
182
+ console.log(
183
+ chalk.cyan(`PR #${found.pr.number} by @${found.pr.author || "?"}: ${found.pr.title}, on its branch ${branchName} in ${targetName}`)
184
+ );
185
+ }
156
186
  if (here) {
157
187
  if (targetName) {
158
188
  console.error("Cannot combine --here with an explicit target.");
@@ -232,4 +262,4 @@ var treeCommand = {
232
262
  export {
233
263
  treeCommand
234
264
  };
235
- //# sourceMappingURL=tree-CMDHHEUW.js.map
265
+ //# sourceMappingURL=tree-RAN6SQKW.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/commands/tree.ts"],"sourcesContent":["import fs from 'node:fs';\nimport { agentFor } from '../core/agents/index.js';\nimport chalk from 'chalk';\nimport type { CommandModule } from 'yargs';\nimport { ensureConfig } from '../core/platform/config.js';\nimport { resolveProjectTarget, getAllTargetNames, resolveFromCwd } from '../core/worktree/resolve.js';\nimport { openBaseCheckout, setupWorktree } from '../core/worktree/worktree.js';\nimport { findSession, loadHistory, recordLaunch } from '../core/sessions/history.js';\nimport { attachSession } from './shared/attach-session.js';\nimport { openVSCode, launchAi } from '../core/platform/launch.js';\nimport { parseBaseSpec, isEmptyBaseSpec, BaseSpecError } from '../core/git/base-spec.js';\nimport { resolvePrToStart } from '../core/pr/pr-start.js';\nimport { workOnPrPrompt } from '../core/pr/pr-ref.js';\n\nexport const treeCommand: CommandModule = {\n command: ['tree [target] [branch]', 't [target] [branch]'],\n describe: 'Create or switch to a worktree and launch the configured AI tool',\n builder: (yargs) =>\n yargs\n .showHelpOnFail(true)\n .positional('target', {\n describe: 'Project alias or group name',\n type: 'string',\n })\n .positional('branch', {\n describe: 'Branch name (e.g., feature/login). Omit to work on the base repo.',\n type: 'string',\n })\n .option('here', {\n describe: 'Infer target and branch from the current worktree directory',\n type: 'boolean',\n default: false,\n })\n .option('open', {\n describe: 'Open VS Code in the worktree after creation',\n type: 'boolean',\n default: false,\n })\n .option('unsafe', {\n describe: 'Launch the AI tool with its skip-permissions flag (default: --dangerously-skip-permissions)',\n type: 'boolean',\n default: false,\n })\n .option('pull', {\n describe: 'Pull latest changes when switching into an existing worktree or the base repo. Use --no-pull to skip.',\n type: 'boolean',\n default: true,\n })\n .option('host', {\n describe:\n 'Run the AI session in the PTY host and attach this terminal to it (the default): it survives closing the tab, shows in `work web` — the same screen there and here — and restores after a reboot. Ctrl+] detaches. --no-host (or config `launchViaHost: false`) launches directly in this terminal instead.',\n type: 'boolean',\n })\n .option('fresh', {\n describe: 'Start a new AI conversation instead of continuing the previous one for this directory',\n type: 'boolean',\n default: false,\n })\n .option('base', {\n describe:\n 'Base branch to fork from instead of HEAD. Repeatable. Use a bare branch (--base dev) for all repos, or alias=branch (--base backend=dev --base frontend=feat/x) for per-repo bases in a group.',\n type: 'string',\n })\n .option('prompt', {\n describe: 'Initial prompt to send to the AI tool on startup',\n type: 'string',\n })\n .option('prompt-file', {\n describe: 'File containing the initial prompt (deleted after reading)',\n type: 'string',\n })\n .option('pr', {\n describe:\n \"Work on a pull request, on its branch (what you push lands in it): its link, or its number with <target>. Someone else's too; not one from a fork\",\n type: 'string',\n })\n .option('name', {\n describe: 'Name the session (shown instead of the branch; rename later with F2 in the dashboard)',\n type: 'string',\n })\n .option('jira-key', {\n describe: 'Link a Jira issue key to this worktree session',\n type: 'string',\n hidden: true,\n })\n .option('setup-only', {\n describe: 'Create worktree without launching the AI tool (used by dashboard)',\n type: 'boolean',\n default: false,\n hidden: true,\n }),\n handler: async (argv) => {\n let targetName = argv.target as string | undefined;\n let branchName = argv.branch as string | undefined;\n const here = argv.here as boolean;\n const open = argv.open as boolean;\n const unsafe = argv.unsafe as boolean;\n const pull = argv.pull as boolean;\n const fresh = argv.fresh as boolean;\n const setupOnly = argv['setup-only'] as boolean;\n let baseSpec;\n try {\n baseSpec = parseBaseSpec(argv.base as string | string[] | undefined);\n } catch (err) {\n if (err instanceof BaseSpecError) {\n console.error(err.message);\n process.exitCode = 1;\n return;\n }\n throw err;\n }\n const jiraKey = argv['jira-key'] as string | undefined;\n const promptFile = argv['prompt-file'] as string | undefined;\n let initialPrompt = argv.prompt as string | undefined;\n\n // --prompt-file takes precedence: read and delete the temp file\n if (promptFile) {\n try {\n initialPrompt = fs.readFileSync(promptFile, 'utf-8');\n fs.unlinkSync(promptFile);\n } catch {\n // ignore — fall through to --prompt or no prompt\n }\n }\n\n const config = ensureConfig();\n // Via the host unless told otherwise: one Claude that the terminal and\n // the dashboard both show. A direct launch is invisible to work web.\n const viaHost = (argv.host as boolean | undefined) ?? config.launchViaHost ?? true;\n\n /**\n * Launch the AI tool, continuing the previous conversation for this\n * directory when there is one. `--continue` errors out (\"No conversation\n * found to continue\") in a directory the tool has never run in, so the flag\n * is gated on an existing transcript.\n */\n const launchTool = async (dir: string, port: number | undefined, sessionKey: { target: string; branch: string }): Promise<void> => {\n recordLaunch(sessionKey.target, sessionKey.branch, { unsafe: !!unsafe });\n if (viaHost) {\n const session = findSession(loadHistory(), sessionKey.target, sessionKey.branch);\n if (session) {\n // The host decides --continue itself (the agent's own canResume\n // gate); `fresh` and the prompt ride along on the first spawn.\n process.exitCode = await attachSession(session, {\n unsafe,\n fresh,\n initialPrompt,\n forwardEnv: true,\n });\n return;\n }\n console.log(chalk.yellow('Session not found in history — launching directly instead of via the PTY host.'));\n }\n // The session's agent: what to run, and whether it can resume here.\n const agent = agentFor(config, findSession(loadHistory(), sessionKey.target, sessionKey.branch));\n const tool = agent.launch.tool(config);\n const resume = !fresh && agent.launch.canResume(dir);\n if (resume) {\n console.log(chalk.gray(`Continuing the previous ${tool.cmd} conversation (--fresh starts a new one).`));\n }\n console.log(`Starting ${tool.cmd}...`);\n launchAi(dir, tool, { unsafe, initialPrompt, resume }, port);\n };\n\n // --pr: the PR's repo and branch, and a first prompt saying whose branch it is.\n const prArg = argv.pr as string | undefined;\n if (prArg !== undefined) {\n if (branchName || here || !isEmptyBaseSpec(baseSpec)) {\n console.error(\"--pr takes the PR's own branch: don't combine it with a branch, --here or --base.\");\n process.exitCode = 1;\n return;\n }\n const found = await resolvePrToStart(prArg, config, targetName);\n if (!found.ok) {\n console.error(found.error);\n process.exitCode = 1;\n return;\n }\n targetName = found.pr.alias;\n branchName = found.pr.branch;\n // The PR's context goes to a new session only (with your --prompt as what to do): back in\n // one, your --prompt goes as it is, and nothing re-sends the first message.\n if (!findSession(loadHistory(), targetName, branchName)) initialPrompt = workOnPrPrompt(found.pr, initialPrompt);\n console.log(\n chalk.cyan(`PR #${found.pr.number} by @${found.pr.author || '?'}: ${found.pr.title}, on its branch ${branchName} in ${targetName}`),\n );\n }\n\n // --here: infer target and branch from the current worktree directory\n if (here) {\n if (targetName) {\n console.error('Cannot combine --here with an explicit target.');\n process.exitCode = 1;\n return;\n }\n const inferred = resolveFromCwd(config, process.cwd());\n if ('error' in inferred) {\n console.error(inferred.error);\n process.exitCode = 1;\n return;\n }\n targetName = inferred.target;\n branchName = inferred.isBaseRepo ? undefined : inferred.branch;\n console.log(chalk.cyan(`Resolved from current directory: ${targetName}${branchName ? ' @ ' + branchName : ' (base repo)'}`));\n } else if (!targetName) {\n console.error('Specify a target, or use --here to infer it from the current directory.');\n process.exitCode = 1;\n return;\n }\n\n // --base requires a branch name\n if (!isEmptyBaseSpec(baseSpec) && !branchName) {\n console.error('--base requires a branch name');\n console.log(chalk.yellow(`Usage: work tree ${targetName} <branch> --base <base>`));\n process.exitCode = 1;\n return;\n }\n\n // Resolve project target (for validation and base-repo handling)\n const target = resolveProjectTarget(targetName, config);\n if (!target) {\n const allNames = getAllTargetNames(config);\n console.error(`Project or group not found: ${targetName}`);\n console.log(chalk.yellow(`Available: ${allNames.join(', ')}`));\n console.log(chalk.yellow('Add a new project with: work config add <alias> <path>'));\n process.exitCode = 1;\n return;\n }\n\n // No branch specified — work directly on the base repo\n if (!branchName) {\n if (target.isGroup) {\n console.error('Branch is required for group targets.');\n console.log(chalk.yellow(`Usage: work tree ${targetName} <branch>`));\n process.exitCode = 1;\n return;\n }\n\n console.log(chalk.cyan(`Working on base repo: ${targetName}`));\n const opened = await openBaseCheckout(targetName, config, {\n pull,\n jiraKey,\n name: typeof argv.name === 'string' ? argv.name : undefined,\n });\n if (!opened.ok) {\n console.error(opened.error);\n process.exitCode = 1;\n return;\n }\n const { repoPath, branch: currentBranch } = opened;\n console.log(`Repo path: ${repoPath}`);\n if (opened.dropped.length) console.log(chalk.gray(`Replaced older entries for this checkout: ${opened.dropped.join(', ')}`));\n\n if (open) openVSCode(repoPath);\n if (!setupOnly) await launchTool(repoPath, undefined, { target: targetName, branch: currentBranch });\n return;\n }\n\n // Create/switch worktree via shared core logic\n const result = await setupWorktree(targetName, branchName, config, baseSpec, jiraKey, { pull, name: argv.name as string | undefined });\n if (!result) {\n process.exitCode = 1;\n return;\n }\n\n if (open) {\n for (const p of result.paths) {\n openVSCode(p);\n }\n }\n\n console.log(`Worktree path: ${result.launchDir}`);\n if (!setupOnly) {\n await launchTool(result.launchDir, result.port, { target: targetName, branch: branchName });\n }\n },\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAQ;AAEf,OAAO,WAAW;AAYX,IAAM,cAA6B;AAAA,EACxC,SAAS,CAAC,0BAA0B,qBAAqB;AAAA,EACzD,UAAU;AAAA,EACV,SAAS,CAAC,UACR,MACG,eAAe,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H,UAAI,KAAM,YAAW,QAAQ;AAC7B,UAAI,CAAC,UAAW,OAAM,WAAW,UAAU,QAAW,EAAE,QAAQ,YAAY,QAAQ,cAAc,CAAC;AACnG;AAAA,IACF;AAGA,UAAM,SAAS,MAAM,cAAc,YAAY,YAAY,QAAQ,UAAU,SAAS,EAAE,MAAM,MAAM,KAAK,KAA2B,CAAC;AACrI,QAAI,CAAC,QAAQ;AACX,cAAQ,WAAW;AACnB;AAAA,IACF;AAEA,QAAI,MAAM;AACR,iBAAW,KAAK,OAAO,OAAO;AAC5B,mBAAW,CAAC;AAAA,MACd;AAAA,IACF;AAEA,YAAQ,IAAI,kBAAkB,OAAO,SAAS,EAAE;AAChD,QAAI,CAAC,WAAW;AACd,YAAM,WAAW,OAAO,WAAW,OAAO,MAAM,EAAE,QAAQ,YAAY,QAAQ,WAAW,CAAC;AAAA,IAC5F;AAAA,EACF;AACF;","names":[]}
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  updateSession
4
- } from "./chunk-ESPZRTUB.js";
4
+ } from "./chunk-DH2PLKCW.js";
5
5
  import "./chunk-R7BXN427.js";
6
6
  import {
7
7
  sessionFromArgs,
@@ -12,7 +12,7 @@ import "./chunk-ED7E2WKK.js";
12
12
  import "./chunk-ZSHWP2VS.js";
13
13
  import "./chunk-JJRPLNLN.js";
14
14
  import "./chunk-HUXS3VAI.js";
15
- import "./chunk-46UD4QBL.js";
15
+ import "./chunk-5RRKVAIZ.js";
16
16
  import "./chunk-DUUH6FPH.js";
17
17
  import "./chunk-WF57CF7A.js";
18
18
  import "./chunk-TOQZODGI.js";
@@ -54,4 +54,4 @@ var updateCommand = {
54
54
  export {
55
55
  updateCommand
56
56
  };
57
- //# sourceMappingURL=update-K73WHYY3.js.map
57
+ //# sourceMappingURL=update-5DM5V2E3.js.map