@caspian2026/agent-sdk 0.0.25 → 0.0.26
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/gateway/index.js +98 -22
- package/dist/gateway/worker.js +86 -41
- package/dist/sdk/query.cjs +2 -362
- package/dist/sdk/query.js +2 -367
- package/package.json +4 -6
- package/dist/chunk-04n4fe72.js +0 -107
- package/dist/chunk-04ys66ej.js +0 -344
- package/dist/chunk-07069jq1.js +0 -30
- package/dist/chunk-0731m51q.js +0 -8
- package/dist/chunk-086x4ct4.js +0 -26
- package/dist/chunk-0btqb97n.js +0 -295
- package/dist/chunk-0paqc2yw.js +0 -15
- package/dist/chunk-0r1rjydx.js +0 -145
- package/dist/chunk-0r5bb9j4.js +0 -477
- package/dist/chunk-0t81d427.js +0 -41
- package/dist/chunk-0teq2mz0.js +0 -420
- package/dist/chunk-0vkfrmqm.js +0 -690
- package/dist/chunk-0vp3wfab.js +0 -12
- package/dist/chunk-0warp8dx.js +0 -253
- package/dist/chunk-0xjaqda8.js +0 -1124
- package/dist/chunk-10gzv316.js +0 -62
- package/dist/chunk-11pq9n08.js +0 -168
- package/dist/chunk-1ae3nt9j.js +0 -31
- package/dist/chunk-1fmb0njn.js +0 -396
- package/dist/chunk-1gx78081.js +0 -66
- package/dist/chunk-1h2famwb.js +0 -49
- package/dist/chunk-1ng8xwxz.js +0 -276
- package/dist/chunk-1v7jp29h.js +0 -206
- package/dist/chunk-1xxy5zhb.js +0 -673
- package/dist/chunk-20b73w7w.js +0 -117
- package/dist/chunk-20qxd83a.js +0 -1161
- package/dist/chunk-2239ny9q.js +0 -90
- package/dist/chunk-22d4rnef.js +0 -226
- package/dist/chunk-26wtxbdc.js +0 -13870
- package/dist/chunk-27225bjh.js +0 -618
- package/dist/chunk-2b0e32an.js +0 -5822
- package/dist/chunk-2bfa9w1y.js +0 -323
- package/dist/chunk-2epq04w1.js +0 -63
- package/dist/chunk-2fwze72g.js +0 -24
- package/dist/chunk-2gzv8nrw.js +0 -205
- package/dist/chunk-2mexte1r.js +0 -349
- package/dist/chunk-2mzaqh5g.js +0 -338
- package/dist/chunk-2tb6mzfc.js +0 -81
- package/dist/chunk-2xq0g43w.js +0 -558
- package/dist/chunk-334aeqg9.js +0 -90
- package/dist/chunk-34jx4rjd.js +0 -995
- package/dist/chunk-35w5nhex.js +0 -132
- package/dist/chunk-3c25bcsw.js +0 -17
- package/dist/chunk-3eaxj8dg.js +0 -151
- package/dist/chunk-3fdgrwd2.js +0 -111
- package/dist/chunk-3jw0r58d.js +0 -121
- package/dist/chunk-3mgywd32.js +0 -8
- package/dist/chunk-3nk79af8.js +0 -8
- package/dist/chunk-3vy1jt9p.js +0 -1010
- package/dist/chunk-3x78pd4j.js +0 -153
- package/dist/chunk-47x3dsmn.js +0 -95
- package/dist/chunk-49pqt48n.js +0 -108
- package/dist/chunk-4f7m9fjw.js +0 -317
- package/dist/chunk-4jm600zv.js +0 -13
- package/dist/chunk-4k9d7gxv.js +0 -118
- package/dist/chunk-4net8san.js +0 -155
- package/dist/chunk-4pbx3g7s.js +0 -26
- package/dist/chunk-4v125j4z.js +0 -58
- package/dist/chunk-4vxkv5vz.js +0 -1438
- package/dist/chunk-51fqpjy3.js +0 -121
- package/dist/chunk-52e64f2h.js +0 -439
- package/dist/chunk-52e9mdjv.js +0 -684
- package/dist/chunk-55raexh7.js +0 -14358
- package/dist/chunk-59pq5122.js +0 -269
- package/dist/chunk-5bsj67v1.js +0 -349
- package/dist/chunk-5ccdsxgy.js +0 -74
- package/dist/chunk-5ekyhb1w.js +0 -422
- package/dist/chunk-5gcqdn8x.js +0 -867
- package/dist/chunk-5h5kx2jd.js +0 -34
- package/dist/chunk-5hf3werb.js +0 -193
- package/dist/chunk-5n1jc02d.js +0 -87
- package/dist/chunk-5wfxvxm8.js +0 -127
- package/dist/chunk-5wjebwmn.js +0 -89
- package/dist/chunk-5z28bqne.js +0 -6748
- package/dist/chunk-5zwsxpjn.js +0 -671
- package/dist/chunk-60phw466.js +0 -29
- package/dist/chunk-64c1avct.js +0 -13
- package/dist/chunk-64r16v22.js +0 -162
- package/dist/chunk-65t1r7zs.js +0 -418
- package/dist/chunk-66zry909.js +0 -11
- package/dist/chunk-67hxjjgc.js +0 -731
- package/dist/chunk-68ffk5qa.js +0 -14
- package/dist/chunk-69dr6rrd.js +0 -177
- package/dist/chunk-69n11zng.js +0 -436
- package/dist/chunk-6dj5t602.js +0 -341
- package/dist/chunk-6dngjwkh.js +0 -63
- package/dist/chunk-6dp8sz55.js +0 -3561
- package/dist/chunk-6hqgg0sv.js +0 -103
- package/dist/chunk-6nsd9606.js +0 -790
- package/dist/chunk-6p0hbwz3.js +0 -65
- package/dist/chunk-6ywdv5vg.js +0 -97
- package/dist/chunk-6zc758qw.js +0 -640
- package/dist/chunk-7aw745vx.js +0 -40175
- package/dist/chunk-7fxaphbq.js +0 -116
- package/dist/chunk-7sgtxrsc.js +0 -1059
- package/dist/chunk-7wm5s02e.js +0 -216
- package/dist/chunk-7xdk4109.js +0 -442
- package/dist/chunk-7xyswgjh.js +0 -8
- package/dist/chunk-83hfzbx3.js +0 -10
- package/dist/chunk-87m69h0v.js +0 -219
- package/dist/chunk-8g5pe1gr.js +0 -37
- package/dist/chunk-8jbw0fnf.js +0 -167
- package/dist/chunk-8jf9se66.js +0 -321
- package/dist/chunk-8p65embj.js +0 -875
- package/dist/chunk-8qrmaff1.js +0 -2669
- package/dist/chunk-8r975mwc.js +0 -93
- package/dist/chunk-8yhf030a.js +0 -69
- package/dist/chunk-93emz367.js +0 -107
- package/dist/chunk-948mn975.js +0 -460
- package/dist/chunk-99chkt7r.js +0 -54
- package/dist/chunk-9f7c1hzz.js +0 -50
- package/dist/chunk-9fk9ps1g.js +0 -178
- package/dist/chunk-9rh0k0aq.js +0 -90
- package/dist/chunk-9x5zgy22.js +0 -12
- package/dist/chunk-a0k2vj5b.js +0 -460
- package/dist/chunk-a0m57ssq.js +0 -325
- package/dist/chunk-a0nsmmz1.js +0 -133
- package/dist/chunk-a25jh1v4.js +0 -105
- package/dist/chunk-a4j5ekv0.js +0 -83
- package/dist/chunk-a8k3zf58.js +0 -313
- package/dist/chunk-ah0zarbq.js +0 -260
- package/dist/chunk-ase86y73.js +0 -15
- package/dist/chunk-b0kf00ff.js +0 -637
- package/dist/chunk-b1kcd3ss.js +0 -27
- package/dist/chunk-b8kcqqds.js +0 -93
- package/dist/chunk-bg4x9ex0.js +0 -21
- package/dist/chunk-bh5zqvyc.js +0 -36
- package/dist/chunk-bqrkfekw.js +0 -267
- package/dist/chunk-brjd9zmk.js +0 -42
- package/dist/chunk-byfawrfx.js +0 -121
- package/dist/chunk-c6sjhj89.js +0 -1284
- package/dist/chunk-c7e5yv0q.js +0 -212
- package/dist/chunk-c7jwbe76.js +0 -29030
- package/dist/chunk-cb5v8w7k.js +0 -289
- package/dist/chunk-cdef9v7b.js +0 -27
- package/dist/chunk-cdz5yb0r.js +0 -57
- package/dist/chunk-cgfdkzhb.js +0 -12
- package/dist/chunk-cgqw4x5z.js +0 -155
- package/dist/chunk-cnsj3vq2.js +0 -35
- package/dist/chunk-cqxm7ggc.js +0 -123
- package/dist/chunk-cxrktb5g.js +0 -51
- package/dist/chunk-d089t7dk.js +0 -312
- package/dist/chunk-d1z934cp.js +0 -71
- package/dist/chunk-d4mdda98.js +0 -94
- package/dist/chunk-d7xw8v91.js +0 -332
- package/dist/chunk-dc06c3rw.js +0 -1154
- package/dist/chunk-ddsjkqs4.js +0 -39
- package/dist/chunk-dfzkwynj.js +0 -5368
- package/dist/chunk-dnmp7s85.js +0 -20
- package/dist/chunk-dqqwjkv3.js +0 -8583
- package/dist/chunk-dt2mr4vf.js +0 -2962
- package/dist/chunk-dztm97gg.js +0 -150
- package/dist/chunk-e0abab5b.js +0 -445
- package/dist/chunk-e0ragz46.js +0 -209386
- package/dist/chunk-e9w9zc0g.js +0 -392
- package/dist/chunk-ebwskmsr.js +0 -107
- package/dist/chunk-efztk52j.js +0 -114
- package/dist/chunk-ehd8wacx.js +0 -40
- package/dist/chunk-ehtwnxpg.js +0 -1591
- package/dist/chunk-eqp1rfft.js +0 -17
- package/dist/chunk-etdt1xz3.js +0 -19
- package/dist/chunk-eva785x8.js +0 -88
- package/dist/chunk-ewadzrm8.js +0 -103
- package/dist/chunk-f2ajmcav.js +0 -92
- package/dist/chunk-fajg8x36.js +0 -8158
- package/dist/chunk-fbv4apne.js +0 -51
- package/dist/chunk-fcynwjpm.js +0 -1072
- package/dist/chunk-fev86f95.js +0 -1052
- package/dist/chunk-feyzykye.js +0 -10
- package/dist/chunk-ff85rwvc.js +0 -180
- package/dist/chunk-fk6ktvg2.js +0 -275
- package/dist/chunk-fqak69ft.js +0 -458
- package/dist/chunk-fqwas4jk.js +0 -281
- package/dist/chunk-fs35fdpj.js +0 -439
- package/dist/chunk-fvr3f9s3.js +0 -55
- package/dist/chunk-fyc5fepv.js +0 -10
- package/dist/chunk-g2g9cwt9.js +0 -54
- package/dist/chunk-g4znz46v.js +0 -2335
- package/dist/chunk-g5ts4e6k.js +0 -697
- package/dist/chunk-g6een9wr.js +0 -654
- package/dist/chunk-g7cmtx8r.js +0 -77
- package/dist/chunk-g9f19ttm.js +0 -15
- package/dist/chunk-gc7ap41t.js +0 -516
- package/dist/chunk-gdwdqewd.js +0 -19
- package/dist/chunk-gg14h3n4.js +0 -131
- package/dist/chunk-gg55fns0.js +0 -6440
- package/dist/chunk-gq7zab4e.js +0 -418
- package/dist/chunk-gydw3qy3.js +0 -169
- package/dist/chunk-gz1e8y1w.js +0 -33
- package/dist/chunk-h19r628d.js +0 -91
- package/dist/chunk-h2k8mt3z.js +0 -329
- package/dist/chunk-h9n54swm.js +0 -27
- package/dist/chunk-hakdhagh.js +0 -16606
- package/dist/chunk-hc2chp3g.js +0 -308
- package/dist/chunk-hemcv9t7.js +0 -153
- package/dist/chunk-hm62ntv3.js +0 -20
- package/dist/chunk-hmq09ytj.js +0 -100
- package/dist/chunk-hmv4hhqt.js +0 -2718
- package/dist/chunk-hwfknpxv.js +0 -39
- package/dist/chunk-j5bth84e.js +0 -97
- package/dist/chunk-j64ga6ta.js +0 -8035
- package/dist/chunk-j6v3w4yf.js +0 -244
- package/dist/chunk-jc29d2nm.js +0 -130
- package/dist/chunk-jd32zbps.js +0 -15
- package/dist/chunk-jd4sx4wh.js +0 -594
- package/dist/chunk-jha8n8b9.js +0 -33118
- package/dist/chunk-jj71qx7m.js +0 -122
- package/dist/chunk-jka9vpak.js +0 -114
- package/dist/chunk-jkf6ayv0.js +0 -32
- package/dist/chunk-jpz6t2tt.js +0 -61
- package/dist/chunk-jqt3sw12.js +0 -9114
- package/dist/chunk-jswd1q63.js +0 -101
- package/dist/chunk-jtc4aa2y.js +0 -1543
- package/dist/chunk-jyx3h86z.js +0 -635
- package/dist/chunk-jzthz1bx.js +0 -15
- package/dist/chunk-k0p9w03v.js +0 -4957
- package/dist/chunk-k6x3s7x5.js +0 -211
- package/dist/chunk-k7kmvnnx.js +0 -942
- package/dist/chunk-k8vp0atq.js +0 -2331
- package/dist/chunk-k9vm6x6z.js +0 -257
- package/dist/chunk-kb1edvhs.js +0 -120
- package/dist/chunk-kbhbe33q.js +0 -113
- package/dist/chunk-kgcgpp7z.js +0 -140
- package/dist/chunk-kvywbvqs.js +0 -261
- package/dist/chunk-kwekc97v.js +0 -18
- package/dist/chunk-kwyk9zp1.js +0 -74
- package/dist/chunk-ky1z78ve.js +0 -119
- package/dist/chunk-mcws22k3.js +0 -42
- package/dist/chunk-mr2z79r3.js +0 -1385
- package/dist/chunk-mst9nmns.js +0 -642
- package/dist/chunk-mswx2nma.js +0 -103
- package/dist/chunk-n1e3fjpz.js +0 -266
- package/dist/chunk-n6vjp9yg.js +0 -138
- package/dist/chunk-n84tqtvv.js +0 -120
- package/dist/chunk-n8ssddbw.js +0 -105
- package/dist/chunk-na35whkd.js +0 -227
- package/dist/chunk-netzwgv1.js +0 -154
- package/dist/chunk-ng7j0yy1.js +0 -100
- package/dist/chunk-nmgj86tt.js +0 -24
- package/dist/chunk-ns7x6xam.js +0 -22820
- package/dist/chunk-p7vkh4wx.js +0 -15
- package/dist/chunk-p8na2wwp.js +0 -14
- package/dist/chunk-pe3rkfp2.js +0 -74
- package/dist/chunk-pf0152j3.js +0 -40
- package/dist/chunk-pgtnj1mt.js +0 -705
- package/dist/chunk-ppwjyveh.js +0 -8
- package/dist/chunk-pq5qp2y4.js +0 -388
- package/dist/chunk-pqqxdk5f.js +0 -543
- package/dist/chunk-ps49ymvj.js +0 -43
- package/dist/chunk-pws8gq7m.js +0 -7422
- package/dist/chunk-pwwa7s62.js +0 -11
- package/dist/chunk-pyq0fabn.js +0 -860
- package/dist/chunk-q0p1m40t.js +0 -79
- package/dist/chunk-q0vhv550.js +0 -393
- package/dist/chunk-q7r0kt08.js +0 -1809
- package/dist/chunk-qajrkk97.js +0 -298
- package/dist/chunk-qatfdxvd.js +0 -34
- package/dist/chunk-qb6k2afy.js +0 -153
- package/dist/chunk-qg2qgx8h.js +0 -266
- package/dist/chunk-qkczt8cr.js +0 -24
- package/dist/chunk-qnfx3qtx.js +0 -617
- package/dist/chunk-qp2qdcda.js +0 -100
- package/dist/chunk-qtwgzej9.js +0 -85
- package/dist/chunk-r1dh0ymt.js +0 -91
- package/dist/chunk-r36xvgvv.js +0 -407
- package/dist/chunk-r48he8g3.js +0 -251
- package/dist/chunk-r63tqmtk.js +0 -146
- package/dist/chunk-rbdd3q5k.js +0 -101
- package/dist/chunk-rmbbmd3s.js +0 -68
- package/dist/chunk-rn0v1hk8.js +0 -34
- package/dist/chunk-rnxctq9p.js +0 -1646
- package/dist/chunk-rrs2mchs.js +0 -183
- package/dist/chunk-rtrybvnp.js +0 -209
- package/dist/chunk-rw2wkn45.js +0 -494
- package/dist/chunk-s4kzkdhd.js +0 -847
- package/dist/chunk-s7a0zn7b.js +0 -55
- package/dist/chunk-s8gy4ky9.js +0 -122
- package/dist/chunk-s8kj6ajy.js +0 -32
- package/dist/chunk-sag785ad.js +0 -283
- package/dist/chunk-scqjyben.js +0 -174
- package/dist/chunk-sd36yzx8.js +0 -954
- package/dist/chunk-sdtqm0nm.js +0 -374
- package/dist/chunk-sg60xg0x.js +0 -52
- package/dist/chunk-sgpmpn90.js +0 -35
- package/dist/chunk-sh02d2qn.js +0 -38
- package/dist/chunk-sz9y6z13.js +0 -61
- package/dist/chunk-szj5wvdy.js +0 -28
- package/dist/chunk-t29a6zb5.js +0 -45
- package/dist/chunk-t2b49hcf.js +0 -87
- package/dist/chunk-t2wqdppz.js +0 -445
- package/dist/chunk-t4khqff1.js +0 -16
- package/dist/chunk-t70t2gne.js +0 -121
- package/dist/chunk-t9p85zff.js +0 -24
- package/dist/chunk-tkrstmwz.js +0 -94
- package/dist/chunk-tnyb4exc.js +0 -74
- package/dist/chunk-tpn8jsvw.js +0 -71
- package/dist/chunk-tt7x5j1q.js +0 -111
- package/dist/chunk-tw1p628z.js +0 -984
- package/dist/chunk-twvdafcz.js +0 -528
- package/dist/chunk-tzwjafgn.js +0 -24
- package/dist/chunk-v140t8ay.js +0 -152
- package/dist/chunk-v1kzp02e.js +0 -785
- package/dist/chunk-v4t6dyyh.js +0 -9076
- package/dist/chunk-v78fj8by.js +0 -145
- package/dist/chunk-v8kjswxt.js +0 -61
- package/dist/chunk-v9smspw2.js +0 -4301
- package/dist/chunk-vcfbjkk9.js +0 -201
- package/dist/chunk-ve167rcs.js +0 -148
- package/dist/chunk-vf612n57.js +0 -472
- package/dist/chunk-vhffyae8.js +0 -895
- package/dist/chunk-vkhrrvfq.js +0 -44
- package/dist/chunk-vybkmfhf.js +0 -91
- package/dist/chunk-vyjeh50y.js +0 -2149
- package/dist/chunk-w6m6trzq.js +0 -58
- package/dist/chunk-w9b6kngq.js +0 -234
- package/dist/chunk-wa8yn2p0.js +0 -2007
- package/dist/chunk-wanceff6.js +0 -2840
- package/dist/chunk-wcze2nea.js +0 -336
- package/dist/chunk-wgk9sxk7.js +0 -329
- package/dist/chunk-wnxcgfsd.js +0 -253
- package/dist/chunk-wyjerrr6.js +0 -565
- package/dist/chunk-wz9brkq5.js +0 -60
- package/dist/chunk-x47h283a.js +0 -56
- package/dist/chunk-x59j3x9c.js +0 -98
- package/dist/chunk-x6r4v44b.js +0 -8
- package/dist/chunk-x7fdwq3d.js +0 -33
- package/dist/chunk-x8d2ehd7.js +0 -19
- package/dist/chunk-xeb6075z.js +0 -3435
- package/dist/chunk-xfw2pxwd.js +0 -223
- package/dist/chunk-xh06jc72.js +0 -200
- package/dist/chunk-xhfmdq1y.js +0 -147
- package/dist/chunk-xkwyg1d2.js +0 -195
- package/dist/chunk-xv3era3s.js +0 -8
- package/dist/chunk-xyapc58m.js +0 -87
- package/dist/chunk-xzgnc76g.js +0 -107
- package/dist/chunk-y1784krc.js +0 -19
- package/dist/chunk-y4ca9kqz.js +0 -3830
- package/dist/chunk-y9bhjjdz.js +0 -145
- package/dist/chunk-yb3bxv3w.js +0 -30
- package/dist/chunk-yddek6xk.js +0 -146
- package/dist/chunk-ypaq3d12.js +0 -4265
- package/dist/chunk-yq8z040g.js +0 -111
- package/dist/chunk-yqs481qq.js +0 -1163
- package/dist/chunk-ys9a9c9h.js +0 -105
- package/dist/chunk-yyex5gsf.js +0 -269
- package/dist/chunk-yzn396hn.js +0 -89
- package/dist/chunk-z2dp53wn.js +0 -17
- package/dist/chunk-zay4xp4n.js +0 -251
- package/dist/chunk-zc8bwy57.js +0 -212
- package/dist/chunk-zhx88cfx.js +0 -97
- package/dist/chunk-zkh6f4ct.js +0 -385
- package/dist/chunk-zq56gcca.js +0 -206
- package/dist/chunk-zrkefd22.js +0 -490
- package/dist/chunk-zs5p0yq1.js +0 -1030
- package/dist/chunk-zxh62ved.js +0 -31
- package/dist/chunk-zzm33q8x.js +0 -8
- package/dist/cli.js +0 -220
package/dist/chunk-vhffyae8.js
DELETED
|
@@ -1,895 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import {
|
|
3
|
-
StructuredDiff,
|
|
4
|
-
init_StructuredDiff
|
|
5
|
-
} from "./chunk-t2wqdppz.js";
|
|
6
|
-
import {
|
|
7
|
-
fetchGitDiff,
|
|
8
|
-
fetchGitDiffHunks,
|
|
9
|
-
init_gitDiff,
|
|
10
|
-
init_overlayContext,
|
|
11
|
-
init_useShortcutDisplay,
|
|
12
|
-
init_useTerminalSize,
|
|
13
|
-
useRegisterOverlay,
|
|
14
|
-
useShortcutDisplay
|
|
15
|
-
} from "./chunk-e0ragz46.js";
|
|
16
|
-
import"./chunk-mcws22k3.js";
|
|
17
|
-
import"./chunk-jzthz1bx.js";
|
|
18
|
-
import"./chunk-jpz6t2tt.js";
|
|
19
|
-
import"./chunk-hwfknpxv.js";
|
|
20
|
-
import"./chunk-1gx78081.js";
|
|
21
|
-
import"./chunk-ehtwnxpg.js";
|
|
22
|
-
import"./chunk-q0p1m40t.js";
|
|
23
|
-
import"./chunk-52e9mdjv.js";
|
|
24
|
-
import"./chunk-x47h283a.js";
|
|
25
|
-
import"./chunk-34jx4rjd.js";
|
|
26
|
-
import"./chunk-2gzv8nrw.js";
|
|
27
|
-
import"./chunk-e0abab5b.js";
|
|
28
|
-
import"./chunk-cgfdkzhb.js";
|
|
29
|
-
import"./chunk-4k9d7gxv.js";
|
|
30
|
-
import"./chunk-j5bth84e.js";
|
|
31
|
-
import"./chunk-67hxjjgc.js";
|
|
32
|
-
import {
|
|
33
|
-
init_useKeybinding
|
|
34
|
-
} from "./chunk-68ffk5qa.js";
|
|
35
|
-
import"./chunk-ps49ymvj.js";
|
|
36
|
-
import"./chunk-gc7ap41t.js";
|
|
37
|
-
import"./chunk-jtc4aa2y.js";
|
|
38
|
-
import"./chunk-pgtnj1mt.js";
|
|
39
|
-
import"./chunk-6p0hbwz3.js";
|
|
40
|
-
import"./chunk-p7vkh4wx.js";
|
|
41
|
-
import"./chunk-y9bhjjdz.js";
|
|
42
|
-
import"./chunk-v140t8ay.js";
|
|
43
|
-
import"./chunk-99chkt7r.js";
|
|
44
|
-
import"./chunk-dfzkwynj.js";
|
|
45
|
-
import"./chunk-xeb6075z.js";
|
|
46
|
-
import"./chunk-fcynwjpm.js";
|
|
47
|
-
import"./chunk-v4t6dyyh.js";
|
|
48
|
-
import"./chunk-h2k8mt3z.js";
|
|
49
|
-
import"./chunk-v8kjswxt.js";
|
|
50
|
-
import {
|
|
51
|
-
init_file,
|
|
52
|
-
init_stringUtils,
|
|
53
|
-
plural,
|
|
54
|
-
readFileSafe
|
|
55
|
-
} from "./chunk-2b0e32an.js";
|
|
56
|
-
import"./chunk-rnxctq9p.js";
|
|
57
|
-
import"./chunk-pqqxdk5f.js";
|
|
58
|
-
import"./chunk-6nsd9606.js";
|
|
59
|
-
import"./chunk-64c1avct.js";
|
|
60
|
-
import"./chunk-8g5pe1gr.js";
|
|
61
|
-
import"./chunk-4pbx3g7s.js";
|
|
62
|
-
import"./chunk-26wtxbdc.js";
|
|
63
|
-
import"./chunk-6dngjwkh.js";
|
|
64
|
-
import"./chunk-4jm600zv.js";
|
|
65
|
-
import"./chunk-s8gy4ky9.js";
|
|
66
|
-
import"./chunk-cxrktb5g.js";
|
|
67
|
-
import"./chunk-3c25bcsw.js";
|
|
68
|
-
import"./chunk-5ekyhb1w.js";
|
|
69
|
-
import {
|
|
70
|
-
init_format,
|
|
71
|
-
truncateStartToWidth
|
|
72
|
-
} from "./chunk-fqak69ft.js";
|
|
73
|
-
import"./chunk-cdz5yb0r.js";
|
|
74
|
-
import {
|
|
75
|
-
Byline,
|
|
76
|
-
Dialog,
|
|
77
|
-
Divider,
|
|
78
|
-
ThemedBox_default,
|
|
79
|
-
ThemedText,
|
|
80
|
-
init_src,
|
|
81
|
-
useKeybindings,
|
|
82
|
-
useTerminalSize
|
|
83
|
-
} from "./chunk-c7jwbe76.js";
|
|
84
|
-
import"./chunk-0vkfrmqm.js";
|
|
85
|
-
import {
|
|
86
|
-
require_jsx_dev_runtime,
|
|
87
|
-
require_react
|
|
88
|
-
} from "./chunk-7sgtxrsc.js";
|
|
89
|
-
import"./chunk-0xjaqda8.js";
|
|
90
|
-
import"./chunk-x8d2ehd7.js";
|
|
91
|
-
import"./chunk-byfawrfx.js";
|
|
92
|
-
import"./chunk-3vy1jt9p.js";
|
|
93
|
-
import"./chunk-vkhrrvfq.js";
|
|
94
|
-
import"./chunk-qnfx3qtx.js";
|
|
95
|
-
import"./chunk-64r16v22.js";
|
|
96
|
-
import {
|
|
97
|
-
getCwd,
|
|
98
|
-
init_cwd
|
|
99
|
-
} from "./chunk-s8kj6ajy.js";
|
|
100
|
-
import"./chunk-8yhf030a.js";
|
|
101
|
-
import"./chunk-zxh62ved.js";
|
|
102
|
-
import"./chunk-5z28bqne.js";
|
|
103
|
-
import {
|
|
104
|
-
figures_default,
|
|
105
|
-
init_figures
|
|
106
|
-
} from "./chunk-qajrkk97.js";
|
|
107
|
-
import"./chunk-gg55fns0.js";
|
|
108
|
-
import"./chunk-5n1jc02d.js";
|
|
109
|
-
import"./chunk-fbv4apne.js";
|
|
110
|
-
import"./chunk-k8vp0atq.js";
|
|
111
|
-
import"./chunk-vf612n57.js";
|
|
112
|
-
import"./chunk-07069jq1.js";
|
|
113
|
-
import"./chunk-d4mdda98.js";
|
|
114
|
-
import"./chunk-55raexh7.js";
|
|
115
|
-
import"./chunk-v9smspw2.js";
|
|
116
|
-
import"./chunk-v1kzp02e.js";
|
|
117
|
-
import"./chunk-7wm5s02e.js";
|
|
118
|
-
import"./chunk-b0kf00ff.js";
|
|
119
|
-
import"./chunk-netzwgv1.js";
|
|
120
|
-
import {
|
|
121
|
-
__esm,
|
|
122
|
-
__toESM
|
|
123
|
-
} from "./chunk-qp2qdcda.js";
|
|
124
|
-
|
|
125
|
-
// src/hooks/useDiffData.ts
|
|
126
|
-
function useDiffData() {
|
|
127
|
-
const [diffResult, setDiffResult] = import_react.useState(null);
|
|
128
|
-
const [hunks, setHunks] = import_react.useState(new Map);
|
|
129
|
-
const [loading, setLoading] = import_react.useState(true);
|
|
130
|
-
import_react.useEffect(() => {
|
|
131
|
-
let cancelled = false;
|
|
132
|
-
async function loadDiffData() {
|
|
133
|
-
try {
|
|
134
|
-
const [statsResult, hunksResult] = await Promise.all([
|
|
135
|
-
fetchGitDiff(),
|
|
136
|
-
fetchGitDiffHunks()
|
|
137
|
-
]);
|
|
138
|
-
if (!cancelled) {
|
|
139
|
-
setDiffResult(statsResult);
|
|
140
|
-
setHunks(hunksResult);
|
|
141
|
-
setLoading(false);
|
|
142
|
-
}
|
|
143
|
-
} catch (_error) {
|
|
144
|
-
if (!cancelled) {
|
|
145
|
-
setDiffResult(null);
|
|
146
|
-
setHunks(new Map);
|
|
147
|
-
setLoading(false);
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
loadDiffData();
|
|
152
|
-
return () => {
|
|
153
|
-
cancelled = true;
|
|
154
|
-
};
|
|
155
|
-
}, []);
|
|
156
|
-
return import_react.useMemo(() => {
|
|
157
|
-
if (!diffResult) {
|
|
158
|
-
return { stats: null, files: [], hunks: new Map, loading };
|
|
159
|
-
}
|
|
160
|
-
const { stats, perFileStats } = diffResult;
|
|
161
|
-
const files = [];
|
|
162
|
-
for (const [path, fileStats] of perFileStats) {
|
|
163
|
-
const fileHunks = hunks.get(path);
|
|
164
|
-
const isUntracked = fileStats.isUntracked ?? false;
|
|
165
|
-
const isLargeFile = !fileStats.isBinary && !isUntracked && !fileHunks;
|
|
166
|
-
const totalLines = fileStats.added + fileStats.removed;
|
|
167
|
-
const isTruncated = !isLargeFile && !fileStats.isBinary && totalLines > MAX_LINES_PER_FILE;
|
|
168
|
-
files.push({
|
|
169
|
-
path,
|
|
170
|
-
linesAdded: fileStats.added,
|
|
171
|
-
linesRemoved: fileStats.removed,
|
|
172
|
-
isBinary: fileStats.isBinary,
|
|
173
|
-
isLargeFile,
|
|
174
|
-
isTruncated,
|
|
175
|
-
isUntracked
|
|
176
|
-
});
|
|
177
|
-
}
|
|
178
|
-
files.sort((a, b) => a.path.localeCompare(b.path));
|
|
179
|
-
return { stats, files, hunks, loading: false };
|
|
180
|
-
}, [diffResult, hunks, loading]);
|
|
181
|
-
}
|
|
182
|
-
var import_react, MAX_LINES_PER_FILE = 400;
|
|
183
|
-
var init_useDiffData = __esm(() => {
|
|
184
|
-
init_gitDiff();
|
|
185
|
-
import_react = __toESM(require_react(), 1);
|
|
186
|
-
});
|
|
187
|
-
|
|
188
|
-
// src/hooks/useTurnDiffs.ts
|
|
189
|
-
function isFileEditResult(result) {
|
|
190
|
-
if (!result || typeof result !== "object")
|
|
191
|
-
return false;
|
|
192
|
-
const r = result;
|
|
193
|
-
const hasFilePath = typeof r.filePath === "string";
|
|
194
|
-
const hasStructuredPatch = Array.isArray(r.structuredPatch) && r.structuredPatch.length > 0;
|
|
195
|
-
const isNewFile = r.type === "create" && typeof r.content === "string";
|
|
196
|
-
return hasFilePath && (hasStructuredPatch || isNewFile);
|
|
197
|
-
}
|
|
198
|
-
function isFileWriteOutput(result) {
|
|
199
|
-
return "type" in result && (result.type === "create" || result.type === "update");
|
|
200
|
-
}
|
|
201
|
-
function countHunkLines(hunks) {
|
|
202
|
-
let added = 0;
|
|
203
|
-
let removed = 0;
|
|
204
|
-
for (const hunk of hunks) {
|
|
205
|
-
for (const line of hunk.lines) {
|
|
206
|
-
if (line.startsWith("+"))
|
|
207
|
-
added++;
|
|
208
|
-
else if (line.startsWith("-"))
|
|
209
|
-
removed++;
|
|
210
|
-
}
|
|
211
|
-
}
|
|
212
|
-
return { added, removed };
|
|
213
|
-
}
|
|
214
|
-
function getUserPromptPreview(message) {
|
|
215
|
-
if (message.type !== "user")
|
|
216
|
-
return "";
|
|
217
|
-
const content = message.message.content;
|
|
218
|
-
const text = typeof content === "string" ? content : "";
|
|
219
|
-
if (text.length <= 30)
|
|
220
|
-
return text;
|
|
221
|
-
return text.slice(0, 29) + "\u2026";
|
|
222
|
-
}
|
|
223
|
-
function computeTurnStats(turn) {
|
|
224
|
-
let totalAdded = 0;
|
|
225
|
-
let totalRemoved = 0;
|
|
226
|
-
for (const file of turn.files.values()) {
|
|
227
|
-
totalAdded += file.linesAdded;
|
|
228
|
-
totalRemoved += file.linesRemoved;
|
|
229
|
-
}
|
|
230
|
-
turn.stats = {
|
|
231
|
-
filesChanged: turn.files.size,
|
|
232
|
-
linesAdded: totalAdded,
|
|
233
|
-
linesRemoved: totalRemoved
|
|
234
|
-
};
|
|
235
|
-
}
|
|
236
|
-
function useTurnDiffs(messages) {
|
|
237
|
-
const cache = import_react2.useRef({
|
|
238
|
-
completedTurns: [],
|
|
239
|
-
currentTurn: null,
|
|
240
|
-
lastProcessedIndex: 0,
|
|
241
|
-
lastTurnIndex: 0
|
|
242
|
-
});
|
|
243
|
-
return import_react2.useMemo(() => {
|
|
244
|
-
const c = cache.current;
|
|
245
|
-
if (messages.length < c.lastProcessedIndex) {
|
|
246
|
-
c.completedTurns = [];
|
|
247
|
-
c.currentTurn = null;
|
|
248
|
-
c.lastProcessedIndex = 0;
|
|
249
|
-
c.lastTurnIndex = 0;
|
|
250
|
-
}
|
|
251
|
-
for (let i = c.lastProcessedIndex;i < messages.length; i++) {
|
|
252
|
-
const message = messages[i];
|
|
253
|
-
if (!message || message.type !== "user")
|
|
254
|
-
continue;
|
|
255
|
-
const isToolResult = message.toolUseResult || Array.isArray(message.message.content) && message.message.content[0]?.type === "tool_result";
|
|
256
|
-
if (!isToolResult && !message.isMeta) {
|
|
257
|
-
if (c.currentTurn && c.currentTurn.files.size > 0) {
|
|
258
|
-
computeTurnStats(c.currentTurn);
|
|
259
|
-
c.completedTurns.push(c.currentTurn);
|
|
260
|
-
}
|
|
261
|
-
c.lastTurnIndex++;
|
|
262
|
-
c.currentTurn = {
|
|
263
|
-
turnIndex: c.lastTurnIndex,
|
|
264
|
-
userPromptPreview: getUserPromptPreview(message),
|
|
265
|
-
timestamp: message.timestamp,
|
|
266
|
-
files: new Map,
|
|
267
|
-
stats: { filesChanged: 0, linesAdded: 0, linesRemoved: 0 }
|
|
268
|
-
};
|
|
269
|
-
} else if (c.currentTurn && message.toolUseResult) {
|
|
270
|
-
const result2 = message.toolUseResult;
|
|
271
|
-
if (isFileEditResult(result2)) {
|
|
272
|
-
const { filePath, structuredPatch } = result2;
|
|
273
|
-
const isNewFile = "type" in result2 && result2.type === "create";
|
|
274
|
-
let fileEntry = c.currentTurn.files.get(filePath);
|
|
275
|
-
if (!fileEntry) {
|
|
276
|
-
fileEntry = {
|
|
277
|
-
filePath,
|
|
278
|
-
hunks: [],
|
|
279
|
-
isNewFile,
|
|
280
|
-
linesAdded: 0,
|
|
281
|
-
linesRemoved: 0
|
|
282
|
-
};
|
|
283
|
-
c.currentTurn.files.set(filePath, fileEntry);
|
|
284
|
-
}
|
|
285
|
-
if (isNewFile && structuredPatch.length === 0 && isFileWriteOutput(result2)) {
|
|
286
|
-
const content = result2.content;
|
|
287
|
-
const lines = content.split(`
|
|
288
|
-
`);
|
|
289
|
-
const syntheticHunk = {
|
|
290
|
-
oldStart: 0,
|
|
291
|
-
oldLines: 0,
|
|
292
|
-
newStart: 1,
|
|
293
|
-
newLines: lines.length,
|
|
294
|
-
lines: lines.map((l) => "+" + l)
|
|
295
|
-
};
|
|
296
|
-
fileEntry.hunks.push(syntheticHunk);
|
|
297
|
-
fileEntry.linesAdded += lines.length;
|
|
298
|
-
} else {
|
|
299
|
-
fileEntry.hunks.push(...structuredPatch);
|
|
300
|
-
const { added, removed } = countHunkLines(structuredPatch);
|
|
301
|
-
fileEntry.linesAdded += added;
|
|
302
|
-
fileEntry.linesRemoved += removed;
|
|
303
|
-
}
|
|
304
|
-
if (isNewFile) {
|
|
305
|
-
fileEntry.isNewFile = true;
|
|
306
|
-
}
|
|
307
|
-
}
|
|
308
|
-
}
|
|
309
|
-
}
|
|
310
|
-
c.lastProcessedIndex = messages.length;
|
|
311
|
-
const result = [...c.completedTurns];
|
|
312
|
-
if (c.currentTurn && c.currentTurn.files.size > 0) {
|
|
313
|
-
computeTurnStats(c.currentTurn);
|
|
314
|
-
result.push(c.currentTurn);
|
|
315
|
-
}
|
|
316
|
-
return result.reverse();
|
|
317
|
-
}, [messages]);
|
|
318
|
-
}
|
|
319
|
-
var import_react2;
|
|
320
|
-
var init_useTurnDiffs = __esm(() => {
|
|
321
|
-
import_react2 = __toESM(require_react(), 1);
|
|
322
|
-
});
|
|
323
|
-
|
|
324
|
-
// src/components/diff/DiffDetailView.tsx
|
|
325
|
-
import { resolve } from "path";
|
|
326
|
-
function DiffDetailView({
|
|
327
|
-
filePath,
|
|
328
|
-
hunks,
|
|
329
|
-
isLargeFile,
|
|
330
|
-
isBinary,
|
|
331
|
-
isTruncated,
|
|
332
|
-
isUntracked
|
|
333
|
-
}) {
|
|
334
|
-
const { columns } = useTerminalSize();
|
|
335
|
-
const { firstLine, fileContent } = import_react3.useMemo(() => {
|
|
336
|
-
if (!filePath) {
|
|
337
|
-
return { firstLine: null, fileContent: undefined };
|
|
338
|
-
}
|
|
339
|
-
const fullPath = resolve(getCwd(), filePath);
|
|
340
|
-
const content = readFileSafe(fullPath);
|
|
341
|
-
return {
|
|
342
|
-
firstLine: content?.split(`
|
|
343
|
-
`)[0] ?? null,
|
|
344
|
-
fileContent: content ?? undefined
|
|
345
|
-
};
|
|
346
|
-
}, [filePath]);
|
|
347
|
-
if (isUntracked) {
|
|
348
|
-
return /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedBox_default, {
|
|
349
|
-
flexDirection: "column",
|
|
350
|
-
width: "100%",
|
|
351
|
-
children: [
|
|
352
|
-
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedBox_default, {
|
|
353
|
-
children: [
|
|
354
|
-
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
355
|
-
bold: true,
|
|
356
|
-
children: filePath
|
|
357
|
-
}, undefined, false, undefined, this),
|
|
358
|
-
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
359
|
-
dimColor: true,
|
|
360
|
-
children: " (untracked)"
|
|
361
|
-
}, undefined, false, undefined, this)
|
|
362
|
-
]
|
|
363
|
-
}, undefined, true, undefined, this),
|
|
364
|
-
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(Divider, {
|
|
365
|
-
padding: 4
|
|
366
|
-
}, undefined, false, undefined, this),
|
|
367
|
-
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedBox_default, {
|
|
368
|
-
flexDirection: "column",
|
|
369
|
-
children: [
|
|
370
|
-
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
371
|
-
dimColor: true,
|
|
372
|
-
italic: true,
|
|
373
|
-
children: "New file not yet staged."
|
|
374
|
-
}, undefined, false, undefined, this),
|
|
375
|
-
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
376
|
-
dimColor: true,
|
|
377
|
-
italic: true,
|
|
378
|
-
children: [
|
|
379
|
-
"Run `git add ",
|
|
380
|
-
filePath,
|
|
381
|
-
"` to see line counts."
|
|
382
|
-
]
|
|
383
|
-
}, undefined, true, undefined, this)
|
|
384
|
-
]
|
|
385
|
-
}, undefined, true, undefined, this)
|
|
386
|
-
]
|
|
387
|
-
}, undefined, true, undefined, this);
|
|
388
|
-
}
|
|
389
|
-
if (isBinary) {
|
|
390
|
-
return /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedBox_default, {
|
|
391
|
-
flexDirection: "column",
|
|
392
|
-
width: "100%",
|
|
393
|
-
children: [
|
|
394
|
-
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedBox_default, {
|
|
395
|
-
children: /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
396
|
-
bold: true,
|
|
397
|
-
children: filePath
|
|
398
|
-
}, undefined, false, undefined, this)
|
|
399
|
-
}, undefined, false, undefined, this),
|
|
400
|
-
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(Divider, {
|
|
401
|
-
padding: 4
|
|
402
|
-
}, undefined, false, undefined, this),
|
|
403
|
-
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedBox_default, {
|
|
404
|
-
flexDirection: "column",
|
|
405
|
-
children: /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
406
|
-
dimColor: true,
|
|
407
|
-
italic: true,
|
|
408
|
-
children: "Binary file - cannot display diff"
|
|
409
|
-
}, undefined, false, undefined, this)
|
|
410
|
-
}, undefined, false, undefined, this)
|
|
411
|
-
]
|
|
412
|
-
}, undefined, true, undefined, this);
|
|
413
|
-
}
|
|
414
|
-
if (isLargeFile) {
|
|
415
|
-
return /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedBox_default, {
|
|
416
|
-
flexDirection: "column",
|
|
417
|
-
width: "100%",
|
|
418
|
-
children: [
|
|
419
|
-
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedBox_default, {
|
|
420
|
-
children: /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
421
|
-
bold: true,
|
|
422
|
-
children: filePath
|
|
423
|
-
}, undefined, false, undefined, this)
|
|
424
|
-
}, undefined, false, undefined, this),
|
|
425
|
-
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(Divider, {
|
|
426
|
-
padding: 4
|
|
427
|
-
}, undefined, false, undefined, this),
|
|
428
|
-
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedBox_default, {
|
|
429
|
-
flexDirection: "column",
|
|
430
|
-
children: /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
431
|
-
dimColor: true,
|
|
432
|
-
italic: true,
|
|
433
|
-
children: "Large file - diff exceeds 1 MB limit"
|
|
434
|
-
}, undefined, false, undefined, this)
|
|
435
|
-
}, undefined, false, undefined, this)
|
|
436
|
-
]
|
|
437
|
-
}, undefined, true, undefined, this);
|
|
438
|
-
}
|
|
439
|
-
const outerPaddingX = 1;
|
|
440
|
-
const outerBorderWidth = 1;
|
|
441
|
-
return /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedBox_default, {
|
|
442
|
-
flexDirection: "column",
|
|
443
|
-
width: "100%",
|
|
444
|
-
children: [
|
|
445
|
-
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedBox_default, {
|
|
446
|
-
children: [
|
|
447
|
-
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
448
|
-
bold: true,
|
|
449
|
-
children: filePath
|
|
450
|
-
}, undefined, false, undefined, this),
|
|
451
|
-
isTruncated && /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
452
|
-
dimColor: true,
|
|
453
|
-
children: " (truncated)"
|
|
454
|
-
}, undefined, false, undefined, this)
|
|
455
|
-
]
|
|
456
|
-
}, undefined, true, undefined, this),
|
|
457
|
-
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(Divider, {
|
|
458
|
-
padding: 4
|
|
459
|
-
}, undefined, false, undefined, this),
|
|
460
|
-
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedBox_default, {
|
|
461
|
-
flexDirection: "column",
|
|
462
|
-
children: hunks.length === 0 ? /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
463
|
-
dimColor: true,
|
|
464
|
-
children: "No diff content"
|
|
465
|
-
}, undefined, false, undefined, this) : hunks.map((hunk, index) => /* @__PURE__ */ jsx_dev_runtime.jsxDEV(StructuredDiff, {
|
|
466
|
-
patch: hunk,
|
|
467
|
-
filePath,
|
|
468
|
-
firstLine,
|
|
469
|
-
fileContent,
|
|
470
|
-
dim: false,
|
|
471
|
-
width: columns - 2 * outerPaddingX - 2 * outerBorderWidth
|
|
472
|
-
}, index, false, undefined, this))
|
|
473
|
-
}, undefined, false, undefined, this),
|
|
474
|
-
isTruncated && /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
475
|
-
dimColor: true,
|
|
476
|
-
italic: true,
|
|
477
|
-
children: "\u2026 diff truncated (exceeded 400 line limit)"
|
|
478
|
-
}, undefined, false, undefined, this)
|
|
479
|
-
]
|
|
480
|
-
}, undefined, true, undefined, this);
|
|
481
|
-
}
|
|
482
|
-
var import_react3, jsx_dev_runtime;
|
|
483
|
-
var init_DiffDetailView = __esm(() => {
|
|
484
|
-
init_useTerminalSize();
|
|
485
|
-
init_src();
|
|
486
|
-
init_cwd();
|
|
487
|
-
init_file();
|
|
488
|
-
init_src();
|
|
489
|
-
init_StructuredDiff();
|
|
490
|
-
import_react3 = __toESM(require_react(), 1);
|
|
491
|
-
jsx_dev_runtime = __toESM(require_jsx_dev_runtime(), 1);
|
|
492
|
-
});
|
|
493
|
-
|
|
494
|
-
// src/components/diff/DiffFileList.tsx
|
|
495
|
-
function DiffFileList({ files, selectedIndex }) {
|
|
496
|
-
const { columns } = useTerminalSize();
|
|
497
|
-
const { startIndex, endIndex } = import_react4.useMemo(() => {
|
|
498
|
-
if (files.length === 0 || files.length <= MAX_VISIBLE_FILES) {
|
|
499
|
-
return { startIndex: 0, endIndex: files.length };
|
|
500
|
-
}
|
|
501
|
-
let start = Math.max(0, selectedIndex - Math.floor(MAX_VISIBLE_FILES / 2));
|
|
502
|
-
let end = start + MAX_VISIBLE_FILES;
|
|
503
|
-
if (end > files.length) {
|
|
504
|
-
end = files.length;
|
|
505
|
-
start = Math.max(0, end - MAX_VISIBLE_FILES);
|
|
506
|
-
}
|
|
507
|
-
return { startIndex: start, endIndex: end };
|
|
508
|
-
}, [files.length, selectedIndex]);
|
|
509
|
-
if (files.length === 0) {
|
|
510
|
-
return /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
511
|
-
dimColor: true,
|
|
512
|
-
children: "No changed files"
|
|
513
|
-
}, undefined, false, undefined, this);
|
|
514
|
-
}
|
|
515
|
-
const visibleFiles = files.slice(startIndex, endIndex);
|
|
516
|
-
const hasMoreAbove = startIndex > 0;
|
|
517
|
-
const hasMoreBelow = endIndex < files.length;
|
|
518
|
-
const needsPagination = files.length > MAX_VISIBLE_FILES;
|
|
519
|
-
const statsWidth = 16;
|
|
520
|
-
const pointerWidth = 3;
|
|
521
|
-
const maxPathWidth = Math.max(20, columns - statsWidth - pointerWidth - 4);
|
|
522
|
-
return /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
|
|
523
|
-
flexDirection: "column",
|
|
524
|
-
children: [
|
|
525
|
-
needsPagination && /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
526
|
-
dimColor: true,
|
|
527
|
-
children: hasMoreAbove ? ` \u2191 ${startIndex} more ${plural(startIndex, "file")}` : " "
|
|
528
|
-
}, undefined, false, undefined, this),
|
|
529
|
-
visibleFiles.map((file, index) => /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(FileItem, {
|
|
530
|
-
file,
|
|
531
|
-
isSelected: startIndex + index === selectedIndex,
|
|
532
|
-
maxPathWidth
|
|
533
|
-
}, file.path, false, undefined, this)),
|
|
534
|
-
needsPagination && /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
535
|
-
dimColor: true,
|
|
536
|
-
children: hasMoreBelow ? ` \u2193 ${files.length - endIndex} more ${plural(files.length - endIndex, "file")}` : " "
|
|
537
|
-
}, undefined, false, undefined, this)
|
|
538
|
-
]
|
|
539
|
-
}, undefined, true, undefined, this);
|
|
540
|
-
}
|
|
541
|
-
function FileItem({
|
|
542
|
-
file,
|
|
543
|
-
isSelected,
|
|
544
|
-
maxPathWidth
|
|
545
|
-
}) {
|
|
546
|
-
const displayPath = truncateStartToWidth(file.path, maxPathWidth);
|
|
547
|
-
const pointer = isSelected ? figures_default.pointer + " " : " ";
|
|
548
|
-
const line = `${pointer}${displayPath}`;
|
|
549
|
-
return /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
|
|
550
|
-
flexDirection: "row",
|
|
551
|
-
children: [
|
|
552
|
-
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
553
|
-
bold: isSelected,
|
|
554
|
-
color: isSelected ? "background" : undefined,
|
|
555
|
-
inverse: isSelected,
|
|
556
|
-
children: line
|
|
557
|
-
}, undefined, false, undefined, this),
|
|
558
|
-
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
|
|
559
|
-
flexGrow: 1
|
|
560
|
-
}, undefined, false, undefined, this),
|
|
561
|
-
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(FileStats, {
|
|
562
|
-
file,
|
|
563
|
-
isSelected
|
|
564
|
-
}, undefined, false, undefined, this)
|
|
565
|
-
]
|
|
566
|
-
}, undefined, true, undefined, this);
|
|
567
|
-
}
|
|
568
|
-
function FileStats({
|
|
569
|
-
file,
|
|
570
|
-
isSelected
|
|
571
|
-
}) {
|
|
572
|
-
if (file.isUntracked) {
|
|
573
|
-
return /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
574
|
-
dimColor: !isSelected,
|
|
575
|
-
italic: true,
|
|
576
|
-
children: "untracked"
|
|
577
|
-
}, undefined, false, undefined, this);
|
|
578
|
-
}
|
|
579
|
-
if (file.isBinary) {
|
|
580
|
-
return /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
581
|
-
dimColor: !isSelected,
|
|
582
|
-
italic: true,
|
|
583
|
-
children: "Binary file"
|
|
584
|
-
}, undefined, false, undefined, this);
|
|
585
|
-
}
|
|
586
|
-
if (file.isLargeFile) {
|
|
587
|
-
return /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
588
|
-
dimColor: !isSelected,
|
|
589
|
-
italic: true,
|
|
590
|
-
children: "Large file modified"
|
|
591
|
-
}, undefined, false, undefined, this);
|
|
592
|
-
}
|
|
593
|
-
return /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
594
|
-
children: [
|
|
595
|
-
file.linesAdded > 0 && /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
596
|
-
color: "diffAddedWord",
|
|
597
|
-
bold: isSelected,
|
|
598
|
-
children: [
|
|
599
|
-
"+",
|
|
600
|
-
file.linesAdded
|
|
601
|
-
]
|
|
602
|
-
}, undefined, true, undefined, this),
|
|
603
|
-
file.linesAdded > 0 && file.linesRemoved > 0 && " ",
|
|
604
|
-
file.linesRemoved > 0 && /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
605
|
-
color: "diffRemovedWord",
|
|
606
|
-
bold: isSelected,
|
|
607
|
-
children: [
|
|
608
|
-
"-",
|
|
609
|
-
file.linesRemoved
|
|
610
|
-
]
|
|
611
|
-
}, undefined, true, undefined, this),
|
|
612
|
-
file.isTruncated && /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
613
|
-
dimColor: !isSelected,
|
|
614
|
-
children: " (truncated)"
|
|
615
|
-
}, undefined, false, undefined, this)
|
|
616
|
-
]
|
|
617
|
-
}, undefined, true, undefined, this);
|
|
618
|
-
}
|
|
619
|
-
var import_react4, jsx_dev_runtime2, MAX_VISIBLE_FILES = 5;
|
|
620
|
-
var init_DiffFileList = __esm(() => {
|
|
621
|
-
init_figures();
|
|
622
|
-
init_useTerminalSize();
|
|
623
|
-
init_src();
|
|
624
|
-
init_format();
|
|
625
|
-
init_stringUtils();
|
|
626
|
-
import_react4 = __toESM(require_react(), 1);
|
|
627
|
-
jsx_dev_runtime2 = __toESM(require_jsx_dev_runtime(), 1);
|
|
628
|
-
});
|
|
629
|
-
|
|
630
|
-
// src/components/diff/DiffDialog.tsx
|
|
631
|
-
function turnDiffToDiffData(turn) {
|
|
632
|
-
const files = Array.from(turn.files.values()).map((f) => ({
|
|
633
|
-
path: f.filePath,
|
|
634
|
-
linesAdded: f.linesAdded,
|
|
635
|
-
linesRemoved: f.linesRemoved,
|
|
636
|
-
isBinary: false,
|
|
637
|
-
isLargeFile: false,
|
|
638
|
-
isTruncated: false,
|
|
639
|
-
isNewFile: f.isNewFile
|
|
640
|
-
})).sort((a, b) => a.path.localeCompare(b.path));
|
|
641
|
-
const hunks = new Map;
|
|
642
|
-
for (const f of turn.files.values()) {
|
|
643
|
-
hunks.set(f.filePath, f.hunks);
|
|
644
|
-
}
|
|
645
|
-
return {
|
|
646
|
-
stats: {
|
|
647
|
-
filesCount: turn.stats.filesChanged,
|
|
648
|
-
linesAdded: turn.stats.linesAdded,
|
|
649
|
-
linesRemoved: turn.stats.linesRemoved
|
|
650
|
-
},
|
|
651
|
-
files,
|
|
652
|
-
hunks,
|
|
653
|
-
loading: false
|
|
654
|
-
};
|
|
655
|
-
}
|
|
656
|
-
function DiffDialog({ messages, onDone }) {
|
|
657
|
-
const gitDiffData = useDiffData();
|
|
658
|
-
const turnDiffs = useTurnDiffs(messages);
|
|
659
|
-
const [viewMode, setViewMode] = import_react5.useState("list");
|
|
660
|
-
const [selectedIndex, setSelectedIndex] = import_react5.useState(0);
|
|
661
|
-
const [sourceIndex, setSourceIndex] = import_react5.useState(0);
|
|
662
|
-
const sources = import_react5.useMemo(() => [
|
|
663
|
-
{ type: "current" },
|
|
664
|
-
...turnDiffs.map((turn) => ({ type: "turn", turn }))
|
|
665
|
-
], [turnDiffs]);
|
|
666
|
-
const currentSource = sources[sourceIndex];
|
|
667
|
-
const currentTurn = currentSource?.type === "turn" ? currentSource.turn : null;
|
|
668
|
-
const diffData = import_react5.useMemo(() => {
|
|
669
|
-
return currentTurn ? turnDiffToDiffData(currentTurn) : gitDiffData;
|
|
670
|
-
}, [currentTurn, gitDiffData]);
|
|
671
|
-
const selectedFile = diffData.files[selectedIndex];
|
|
672
|
-
const selectedHunks = import_react5.useMemo(() => {
|
|
673
|
-
return selectedFile ? diffData.hunks.get(selectedFile.path) || [] : [];
|
|
674
|
-
}, [selectedFile, diffData.hunks]);
|
|
675
|
-
import_react5.useEffect(() => {
|
|
676
|
-
if (sourceIndex >= sources.length) {
|
|
677
|
-
setSourceIndex(Math.max(0, sources.length - 1));
|
|
678
|
-
}
|
|
679
|
-
}, [sources.length, sourceIndex]);
|
|
680
|
-
const prevSourceIndex = import_react5.useRef(sourceIndex);
|
|
681
|
-
import_react5.useEffect(() => {
|
|
682
|
-
if (prevSourceIndex.current !== sourceIndex) {
|
|
683
|
-
setSelectedIndex(0);
|
|
684
|
-
prevSourceIndex.current = sourceIndex;
|
|
685
|
-
}
|
|
686
|
-
}, [sourceIndex]);
|
|
687
|
-
useRegisterOverlay("diff-dialog");
|
|
688
|
-
useKeybindings({
|
|
689
|
-
"diff:previousSource": () => {
|
|
690
|
-
if (viewMode === "detail") {
|
|
691
|
-
setViewMode("list");
|
|
692
|
-
} else if (viewMode === "list" && sources.length > 1) {
|
|
693
|
-
setSourceIndex((prev) => Math.max(0, prev - 1));
|
|
694
|
-
}
|
|
695
|
-
},
|
|
696
|
-
"diff:nextSource": () => {
|
|
697
|
-
if (viewMode === "list" && sources.length > 1) {
|
|
698
|
-
setSourceIndex((prev) => Math.min(sources.length - 1, prev + 1));
|
|
699
|
-
}
|
|
700
|
-
},
|
|
701
|
-
"diff:back": () => {
|
|
702
|
-
if (viewMode === "detail") {
|
|
703
|
-
setViewMode("list");
|
|
704
|
-
}
|
|
705
|
-
},
|
|
706
|
-
"diff:viewDetails": () => {
|
|
707
|
-
if (viewMode === "list" && selectedFile) {
|
|
708
|
-
setViewMode("detail");
|
|
709
|
-
}
|
|
710
|
-
},
|
|
711
|
-
"diff:previousFile": () => {
|
|
712
|
-
if (viewMode === "list") {
|
|
713
|
-
setSelectedIndex((prev) => Math.max(0, prev - 1));
|
|
714
|
-
}
|
|
715
|
-
},
|
|
716
|
-
"diff:nextFile": () => {
|
|
717
|
-
if (viewMode === "list") {
|
|
718
|
-
setSelectedIndex((prev) => Math.min(diffData.files.length - 1, prev + 1));
|
|
719
|
-
}
|
|
720
|
-
}
|
|
721
|
-
}, { context: "DiffDialog" });
|
|
722
|
-
const subtitle = diffData.stats ? /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
723
|
-
dimColor: true,
|
|
724
|
-
children: [
|
|
725
|
-
diffData.stats.filesCount,
|
|
726
|
-
" ",
|
|
727
|
-
plural(diffData.stats.filesCount, "file"),
|
|
728
|
-
" ",
|
|
729
|
-
"changed",
|
|
730
|
-
diffData.stats.linesAdded > 0 && /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
731
|
-
color: "diffAddedWord",
|
|
732
|
-
children: [
|
|
733
|
-
" +",
|
|
734
|
-
diffData.stats.linesAdded
|
|
735
|
-
]
|
|
736
|
-
}, undefined, true, undefined, this),
|
|
737
|
-
diffData.stats.linesRemoved > 0 && /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
738
|
-
color: "diffRemovedWord",
|
|
739
|
-
children: [
|
|
740
|
-
" -",
|
|
741
|
-
diffData.stats.linesRemoved
|
|
742
|
-
]
|
|
743
|
-
}, undefined, true, undefined, this)
|
|
744
|
-
]
|
|
745
|
-
}, undefined, true, undefined, this) : null;
|
|
746
|
-
const headerTitle = currentTurn ? `Turn ${currentTurn.turnIndex}` : "Uncommitted changes";
|
|
747
|
-
const headerSubtitle = currentTurn ? currentTurn.userPromptPreview ? `"${currentTurn.userPromptPreview}"` : "" : "(git diff HEAD)";
|
|
748
|
-
const sourceSelector = sources.length > 1 ? /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedBox_default, {
|
|
749
|
-
children: [
|
|
750
|
-
sourceIndex > 0 && /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
751
|
-
dimColor: true,
|
|
752
|
-
children: "\u25C0 "
|
|
753
|
-
}, undefined, false, undefined, this),
|
|
754
|
-
sources.map((source, i) => {
|
|
755
|
-
const isSelected = i === sourceIndex;
|
|
756
|
-
const label = source.type === "current" ? "Current" : `T${source.turn.turnIndex}`;
|
|
757
|
-
return /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
758
|
-
dimColor: !isSelected,
|
|
759
|
-
bold: isSelected,
|
|
760
|
-
children: [
|
|
761
|
-
i > 0 ? " \xB7 " : "",
|
|
762
|
-
label
|
|
763
|
-
]
|
|
764
|
-
}, i, true, undefined, this);
|
|
765
|
-
}),
|
|
766
|
-
sourceIndex < sources.length - 1 && /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
767
|
-
dimColor: true,
|
|
768
|
-
children: " \u25B6"
|
|
769
|
-
}, undefined, false, undefined, this)
|
|
770
|
-
]
|
|
771
|
-
}, undefined, true, undefined, this) : null;
|
|
772
|
-
const dismissShortcut = useShortcutDisplay("diff:dismiss", "DiffDialog", "esc");
|
|
773
|
-
const emptyMessage = (() => {
|
|
774
|
-
if (diffData.loading) {
|
|
775
|
-
return "Loading diff\u2026";
|
|
776
|
-
}
|
|
777
|
-
if (currentTurn) {
|
|
778
|
-
return "No file changes in this turn";
|
|
779
|
-
}
|
|
780
|
-
if (diffData.stats && diffData.stats.filesCount > 0 && diffData.files.length === 0) {
|
|
781
|
-
return "Too many files to display details";
|
|
782
|
-
}
|
|
783
|
-
return "Working tree is clean";
|
|
784
|
-
})();
|
|
785
|
-
const title = /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
786
|
-
children: [
|
|
787
|
-
headerTitle,
|
|
788
|
-
headerSubtitle && /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
789
|
-
dimColor: true,
|
|
790
|
-
children: [
|
|
791
|
-
" ",
|
|
792
|
-
headerSubtitle
|
|
793
|
-
]
|
|
794
|
-
}, undefined, true, undefined, this)
|
|
795
|
-
]
|
|
796
|
-
}, undefined, true, undefined, this);
|
|
797
|
-
function handleCancel() {
|
|
798
|
-
if (viewMode === "detail") {
|
|
799
|
-
setViewMode("list");
|
|
800
|
-
} else {
|
|
801
|
-
onDone("Diff dialog dismissed", { display: "system" });
|
|
802
|
-
}
|
|
803
|
-
}
|
|
804
|
-
return /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(Dialog, {
|
|
805
|
-
title,
|
|
806
|
-
onCancel: handleCancel,
|
|
807
|
-
color: "background",
|
|
808
|
-
inputGuide: (exitState) => exitState.pending ? /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
809
|
-
children: [
|
|
810
|
-
"Press ",
|
|
811
|
-
exitState.keyName,
|
|
812
|
-
" again to exit"
|
|
813
|
-
]
|
|
814
|
-
}, undefined, true, undefined, this) : viewMode === "list" ? /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(Byline, {
|
|
815
|
-
children: [
|
|
816
|
-
sources.length > 1 && /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
817
|
-
children: "\u2190/\u2192 source"
|
|
818
|
-
}, undefined, false, undefined, this),
|
|
819
|
-
/* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
820
|
-
children: "\u2191/\u2193 select"
|
|
821
|
-
}, undefined, false, undefined, this),
|
|
822
|
-
/* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
823
|
-
children: "Enter view"
|
|
824
|
-
}, undefined, false, undefined, this),
|
|
825
|
-
/* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
826
|
-
children: [
|
|
827
|
-
dismissShortcut,
|
|
828
|
-
" close"
|
|
829
|
-
]
|
|
830
|
-
}, undefined, true, undefined, this)
|
|
831
|
-
]
|
|
832
|
-
}, undefined, true, undefined, this) : /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(Byline, {
|
|
833
|
-
children: [
|
|
834
|
-
/* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
835
|
-
children: "\u2190 back"
|
|
836
|
-
}, undefined, false, undefined, this),
|
|
837
|
-
/* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
838
|
-
children: [
|
|
839
|
-
dismissShortcut,
|
|
840
|
-
" close"
|
|
841
|
-
]
|
|
842
|
-
}, undefined, true, undefined, this)
|
|
843
|
-
]
|
|
844
|
-
}, undefined, true, undefined, this),
|
|
845
|
-
children: [
|
|
846
|
-
sourceSelector,
|
|
847
|
-
subtitle,
|
|
848
|
-
diffData.files.length === 0 ? /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedBox_default, {
|
|
849
|
-
marginTop: 1,
|
|
850
|
-
children: /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
851
|
-
dimColor: true,
|
|
852
|
-
children: emptyMessage
|
|
853
|
-
}, undefined, false, undefined, this)
|
|
854
|
-
}, undefined, false, undefined, this) : viewMode === "list" ? /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedBox_default, {
|
|
855
|
-
flexDirection: "column",
|
|
856
|
-
marginTop: 1,
|
|
857
|
-
children: /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(DiffFileList, {
|
|
858
|
-
files: diffData.files,
|
|
859
|
-
selectedIndex
|
|
860
|
-
}, undefined, false, undefined, this)
|
|
861
|
-
}, undefined, false, undefined, this) : /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedBox_default, {
|
|
862
|
-
flexDirection: "column",
|
|
863
|
-
marginTop: 1,
|
|
864
|
-
children: /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(DiffDetailView, {
|
|
865
|
-
filePath: selectedFile?.path || "",
|
|
866
|
-
hunks: selectedHunks,
|
|
867
|
-
isLargeFile: selectedFile?.isLargeFile,
|
|
868
|
-
isBinary: selectedFile?.isBinary,
|
|
869
|
-
isTruncated: selectedFile?.isTruncated,
|
|
870
|
-
isUntracked: selectedFile?.isUntracked
|
|
871
|
-
}, undefined, false, undefined, this)
|
|
872
|
-
}, undefined, false, undefined, this)
|
|
873
|
-
]
|
|
874
|
-
}, undefined, true, undefined, this);
|
|
875
|
-
}
|
|
876
|
-
var import_react5, jsx_dev_runtime3;
|
|
877
|
-
var init_DiffDialog = __esm(() => {
|
|
878
|
-
init_overlayContext();
|
|
879
|
-
init_useDiffData();
|
|
880
|
-
init_useTurnDiffs();
|
|
881
|
-
init_src();
|
|
882
|
-
init_useKeybinding();
|
|
883
|
-
init_useShortcutDisplay();
|
|
884
|
-
init_stringUtils();
|
|
885
|
-
init_src();
|
|
886
|
-
init_DiffDetailView();
|
|
887
|
-
init_DiffFileList();
|
|
888
|
-
import_react5 = __toESM(require_react(), 1);
|
|
889
|
-
jsx_dev_runtime3 = __toESM(require_jsx_dev_runtime(), 1);
|
|
890
|
-
});
|
|
891
|
-
init_DiffDialog();
|
|
892
|
-
|
|
893
|
-
export {
|
|
894
|
-
DiffDialog
|
|
895
|
-
};
|