@caspian2026/agent-sdk 0.0.23 → 0.0.25
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/{chunk-f8wfs49c.js → chunk-04n4fe72.js} +15 -15
- package/dist/{chunk-tyd0fqrd.js → chunk-04ys66ej.js} +14 -14
- package/dist/{chunk-qyh6k5g4.js → chunk-086x4ct4.js} +1 -1
- package/dist/{chunk-h7v45y37.js → chunk-0btqb97n.js} +2 -2
- package/dist/{chunk-wx8k7ek4.js → chunk-0r1rjydx.js} +14 -14
- package/dist/{chunk-t6hna0n8.js → chunk-0teq2mz0.js} +15 -15
- package/dist/{chunk-pbfc565z.js → chunk-0warp8dx.js} +15 -15
- package/dist/{chunk-nrjc4gqc.js → chunk-10gzv316.js} +2 -2
- package/dist/{chunk-qahfb5ht.js → chunk-11pq9n08.js} +15 -15
- package/dist/{chunk-wf939aav.js → chunk-1fmb0njn.js} +22 -22
- package/dist/{chunk-ggnynwfz.js → chunk-1ng8xwxz.js} +13 -13
- package/dist/{chunk-g83c969y.js → chunk-1v7jp29h.js} +3 -3
- package/dist/{chunk-ym1tcz8x.js → chunk-1xxy5zhb.js} +18 -18
- package/dist/{chunk-gtws2pdp.js → chunk-20b73w7w.js} +2 -2
- package/dist/{chunk-9fpcc4w4.js → chunk-20qxd83a.js} +6 -6
- package/dist/{chunk-5r4kdhm2.js → chunk-2239ny9q.js} +16 -16
- package/dist/{chunk-vwsrz7jh.js → chunk-22d4rnef.js} +15 -15
- package/dist/{chunk-gw1exgc6.js → chunk-27225bjh.js} +3 -3
- package/dist/{chunk-mngy86gj.js → chunk-2b0e32an.js} +4 -4
- package/dist/{chunk-ef3scdek.js → chunk-2bfa9w1y.js} +14 -14
- package/dist/{chunk-aertk7pg.js → chunk-2epq04w1.js} +2 -2
- package/dist/{chunk-92dzkexq.js → chunk-2mexte1r.js} +15 -15
- package/dist/{chunk-scy3jv50.js → chunk-2mzaqh5g.js} +14 -14
- package/dist/{chunk-y9sk7bbr.js → chunk-2tb6mzfc.js} +1 -1
- package/dist/{chunk-kr7rncw6.js → chunk-2xq0g43w.js} +15 -15
- package/dist/{chunk-pqp0xn27.js → chunk-334aeqg9.js} +14 -14
- package/dist/{chunk-2xe1chb5.js → chunk-34jx4rjd.js} +1 -1
- package/dist/{chunk-sb3x4ncv.js → chunk-35w5nhex.js} +1 -1
- package/dist/{chunk-df68zgrx.js → chunk-3eaxj8dg.js} +1 -1
- package/dist/{chunk-se5yzd1h.js → chunk-3fdgrwd2.js} +13 -13
- package/dist/{chunk-76jcywmr.js → chunk-3jw0r58d.js} +24 -24
- package/dist/{chunk-aygc1bxa.js → chunk-3x78pd4j.js} +2 -2
- package/dist/{chunk-6z7wzrny.js → chunk-47x3dsmn.js} +1 -1
- package/dist/{chunk-4x7193kb.js → chunk-49pqt48n.js} +4 -4
- package/dist/{chunk-je54s6eb.js → chunk-4f7m9fjw.js} +14 -14
- package/dist/{chunk-sraw8fs5.js → chunk-4net8san.js} +13 -13
- package/dist/{chunk-g9hacr58.js → chunk-4v125j4z.js} +2 -2
- package/dist/{chunk-t41g7hqa.js → chunk-4vxkv5vz.js} +8 -8
- package/dist/{chunk-5myesxd8.js → chunk-51fqpjy3.js} +16 -16
- package/dist/{chunk-5m9ns9c5.js → chunk-52e64f2h.js} +4 -4
- package/dist/{chunk-t3dqbg33.js → chunk-52e9mdjv.js} +1 -1
- package/dist/{chunk-jhsedjvy.js → chunk-59pq5122.js} +13 -13
- package/dist/{chunk-mkneanx7.js → chunk-5bsj67v1.js} +1 -1
- package/dist/{chunk-dgeaxb2p.js → chunk-5gcqdn8x.js} +13 -13
- package/dist/{chunk-kdxfv4zw.js → chunk-5hf3werb.js} +13 -13
- package/dist/{chunk-0yzqgc3m.js → chunk-5wfxvxm8.js} +15 -15
- package/dist/{chunk-nsstnc1v.js → chunk-5wjebwmn.js} +15 -15
- package/dist/{chunk-gf6k9rp6.js → chunk-5zwsxpjn.js} +8 -8
- package/dist/{chunk-w3mg77aq.js → chunk-60phw466.js} +2 -2
- package/dist/{chunk-eh2g60z8.js → chunk-65t1r7zs.js} +13 -13
- package/dist/{chunk-xcebe45z.js → chunk-67hxjjgc.js} +1 -1
- package/dist/{chunk-wjdmg4rc.js → chunk-69dr6rrd.js} +14 -14
- package/dist/{chunk-90vx3m2a.js → chunk-6dp8sz55.js} +19 -19
- package/dist/{chunk-11g402x7.js → chunk-6hqgg0sv.js} +13 -13
- package/dist/{chunk-w5rcf2hp.js → chunk-6p0hbwz3.js} +1 -1
- package/dist/{chunk-4zpjh1zd.js → chunk-6ywdv5vg.js} +13 -13
- package/dist/{chunk-ye96j591.js → chunk-6zc758qw.js} +13 -13
- package/dist/{chunk-3h1apems.js → chunk-7fxaphbq.js} +3 -3
- package/dist/{chunk-462bfb7n.js → chunk-7xdk4109.js} +2 -2
- package/dist/{chunk-csdgb3at.js → chunk-87m69h0v.js} +14 -14
- package/dist/{chunk-yry0jv07.js → chunk-8jbw0fnf.js} +13 -13
- package/dist/{chunk-tby5675z.js → chunk-8jf9se66.js} +1 -1
- package/dist/{chunk-qadb8t9x.js → chunk-8p65embj.js} +7 -7
- package/dist/{chunk-anncnm14.js → chunk-8qrmaff1.js} +14 -14
- package/dist/{chunk-7sb9mm7x.js → chunk-8r975mwc.js} +15 -15
- package/dist/{chunk-4fza89gg.js → chunk-93emz367.js} +13 -13
- package/dist/{chunk-e6aeskz5.js → chunk-948mn975.js} +3 -3
- package/dist/{chunk-e1jrte9s.js → chunk-99chkt7r.js} +1 -1
- package/dist/{chunk-raywxdr6.js → chunk-9f7c1hzz.js} +2 -2
- package/dist/{chunk-5nppn7p7.js → chunk-9fk9ps1g.js} +1 -1
- package/dist/{chunk-ee8ca7pg.js → chunk-9rh0k0aq.js} +3 -3
- package/dist/{chunk-v93vqgd3.js → chunk-a0k2vj5b.js} +5 -5
- package/dist/{chunk-77857avx.js → chunk-a0m57ssq.js} +13 -13
- package/dist/{chunk-sfaacge7.js → chunk-a0nsmmz1.js} +15 -15
- package/dist/{chunk-0rreksj0.js → chunk-a25jh1v4.js} +13 -13
- package/dist/{chunk-2181qn89.js → chunk-a4j5ekv0.js} +2 -2
- package/dist/{chunk-v534m7df.js → chunk-a8k3zf58.js} +1 -1
- package/dist/{chunk-8pak5pvc.js → chunk-ah0zarbq.js} +14 -14
- package/dist/{chunk-zpqedzp3.js → chunk-b8kcqqds.js} +13 -13
- package/dist/{chunk-svvg1qje.js → chunk-bqrkfekw.js} +1 -1
- package/dist/{chunk-vxsn08r3.js → chunk-c7e5yv0q.js} +13 -13
- package/dist/{chunk-trnbffpq.js → chunk-cb5v8w7k.js} +13 -13
- package/dist/{chunk-agfjdq3k.js → chunk-cqxm7ggc.js} +13 -13
- package/dist/{chunk-3gtcc7zh.js → chunk-d089t7dk.js} +3 -3
- package/dist/{chunk-10awcm30.js → chunk-d1z934cp.js} +3 -3
- package/dist/{chunk-7rp1k22z.js → chunk-d7xw8v91.js} +2 -2
- package/dist/{chunk-b6y3xjvx.js → chunk-dc06c3rw.js} +13 -13
- package/dist/{chunk-8dtj1eha.js → chunk-dnmp7s85.js} +1 -1
- package/dist/{chunk-jd49hrba.js → chunk-dqqwjkv3.js} +9 -9
- package/dist/{chunk-krfsm124.js → chunk-dt2mr4vf.js} +6 -6
- package/dist/{chunk-jecy4hh4.js → chunk-dztm97gg.js} +1 -1
- package/dist/{chunk-xh1ysq0q.js → chunk-e0ragz46.js} +413 -305
- package/dist/{chunk-m33wa54g.js → chunk-ebwskmsr.js} +1 -1
- package/dist/{chunk-dv23zqj4.js → chunk-efztk52j.js} +14 -14
- package/dist/{chunk-rceqzhm4.js → chunk-ehd8wacx.js} +2 -2
- package/dist/{chunk-p1jqamcz.js → chunk-eva785x8.js} +14 -14
- package/dist/{chunk-0vjn9ybb.js → chunk-f2ajmcav.js} +16 -16
- package/dist/{chunk-cr7vv5h8.js → chunk-fev86f95.js} +13 -13
- package/dist/{chunk-fpkzgs77.js → chunk-fk6ktvg2.js} +2 -2
- package/dist/{chunk-w1cejv6p.js → chunk-fqwas4jk.js} +2 -2
- package/dist/{chunk-a8prtcsn.js → chunk-fs35fdpj.js} +17 -17
- package/dist/{chunk-9558gaxz.js → chunk-fvr3f9s3.js} +4 -4
- package/dist/{chunk-8g16gjxy.js → chunk-g2g9cwt9.js} +2 -2
- package/dist/{chunk-04hnjcrh.js → chunk-g4znz46v.js} +14 -14
- package/dist/{chunk-deyj4dre.js → chunk-g5ts4e6k.js} +22 -22
- package/dist/{chunk-y8ykn2jj.js → chunk-g6een9wr.js} +5 -5
- package/dist/{chunk-1zzbs18x.js → chunk-g7cmtx8r.js} +1 -1
- package/dist/{chunk-0zmsby2f.js → chunk-gc7ap41t.js} +2 -2
- package/dist/{chunk-vs4jc03v.js → chunk-gg14h3n4.js} +16 -16
- package/dist/{chunk-wc4ynhr1.js → chunk-gq7zab4e.js} +13 -13
- package/dist/{chunk-rqkwemd6.js → chunk-gydw3qy3.js} +2 -2
- package/dist/{chunk-qbxncjnb.js → chunk-h19r628d.js} +2 -2
- package/dist/{chunk-a9082d47.js → chunk-h2k8mt3z.js} +1 -1
- package/dist/{chunk-we84z7w1.js → chunk-hc2chp3g.js} +1 -1
- package/dist/{chunk-60fzm4kb.js → chunk-hemcv9t7.js} +3 -3
- package/dist/{chunk-j46k5v68.js → chunk-hm62ntv3.js} +1 -1
- package/dist/{chunk-p2yjz6m6.js → chunk-hmq09ytj.js} +3 -3
- package/dist/{chunk-qmts7w54.js → chunk-hmv4hhqt.js} +13 -13
- package/dist/{chunk-8j5wbgfz.js → chunk-j6v3w4yf.js} +2 -2
- package/dist/{chunk-2hdmegn0.js → chunk-jc29d2nm.js} +14 -14
- package/dist/{chunk-2f8q38x7.js → chunk-jd4sx4wh.js} +4 -4
- package/dist/{chunk-wb21y5f0.js → chunk-jha8n8b9.js} +50 -50
- package/dist/{chunk-8xpm9rye.js → chunk-jj71qx7m.js} +24 -24
- package/dist/{chunk-7detdy87.js → chunk-jka9vpak.js} +21 -21
- package/dist/{chunk-epj7mn40.js → chunk-jkf6ayv0.js} +2 -2
- package/dist/{chunk-csrgs1v1.js → chunk-jpz6t2tt.js} +1 -1
- package/dist/{chunk-33rme7v2.js → chunk-jqt3sw12.js} +85 -85
- package/dist/{chunk-b3vqawm4.js → chunk-jswd1q63.js} +16 -16
- package/dist/{chunk-7z23fxbm.js → chunk-jtc4aa2y.js} +1 -1
- package/dist/{chunk-60a5pwey.js → chunk-jyx3h86z.js} +13 -13
- package/dist/{chunk-s7a3a7p4.js → chunk-k6x3s7x5.js} +25 -25
- package/dist/{chunk-76q1azha.js → chunk-k7kmvnnx.js} +13 -13
- package/dist/{chunk-gxht5208.js → chunk-k9vm6x6z.js} +13 -13
- package/dist/{chunk-dw0rknjq.js → chunk-kb1edvhs.js} +1 -1
- package/dist/{chunk-1k1rvbyn.js → chunk-kbhbe33q.js} +21 -21
- package/dist/{chunk-4dxym3d9.js → chunk-kgcgpp7z.js} +14 -14
- package/dist/{chunk-9qhk1qsv.js → chunk-kvywbvqs.js} +4 -4
- package/dist/{chunk-pmh9yy61.js → chunk-kwyk9zp1.js} +1 -1
- package/dist/{chunk-s6pb314r.js → chunk-mr2z79r3.js} +17 -17
- package/dist/{chunk-mpemj04k.js → chunk-mst9nmns.js} +3 -3
- package/dist/{chunk-bw3wy4mv.js → chunk-n1e3fjpz.js} +3 -3
- package/dist/{chunk-mrdee7b4.js → chunk-n6vjp9yg.js} +1 -1
- package/dist/{chunk-h2aj02d1.js → chunk-n84tqtvv.js} +1 -1
- package/dist/{chunk-f3qgq5qy.js → chunk-n8ssddbw.js} +14 -14
- package/dist/{chunk-m5t73dsg.js → chunk-na35whkd.js} +4 -4
- package/dist/{chunk-xxe1wbz9.js → chunk-ng7j0yy1.js} +14 -14
- package/dist/{chunk-g25s7eb1.js → chunk-pf0152j3.js} +3 -3
- package/dist/{chunk-ka3zdxw9.js → chunk-pq5qp2y4.js} +6 -6
- package/dist/{chunk-xe6xb9ft.js → chunk-pws8gq7m.js} +33 -33
- package/dist/{chunk-9spjynzp.js → chunk-pyq0fabn.js} +13 -13
- package/dist/{chunk-d7958wm9.js → chunk-q0p1m40t.js} +2 -2
- package/dist/{chunk-zvdfw2vz.js → chunk-q0vhv550.js} +3 -3
- package/dist/{chunk-2ytemw0j.js → chunk-q7r0kt08.js} +4 -4
- package/dist/{chunk-48jw58f7.js → chunk-qg2qgx8h.js} +1 -1
- package/dist/{chunk-pg4bka2h.js → chunk-qtwgzej9.js} +14 -14
- package/dist/{chunk-k08qf86d.js → chunk-r1dh0ymt.js} +14 -14
- package/dist/{chunk-9q3x55v4.js → chunk-r36xvgvv.js} +13 -13
- package/dist/{chunk-dccw1ka7.js → chunk-r48he8g3.js} +3 -3
- package/dist/{chunk-0txk78e0.js → chunk-r63tqmtk.js} +15 -15
- package/dist/{chunk-5tjzwmz5.js → chunk-rbdd3q5k.js} +13 -13
- package/dist/{chunk-z50753sf.js → chunk-rrs2mchs.js} +1 -1
- package/dist/{chunk-hcgmnvy0.js → chunk-rtrybvnp.js} +2 -2
- package/dist/{chunk-wc74rs9r.js → chunk-rw2wkn45.js} +2 -2
- package/dist/{chunk-96c0g0md.js → chunk-s4kzkdhd.js} +2 -2
- package/dist/{chunk-1vk0sw21.js → chunk-s7a0zn7b.js} +4 -4
- package/dist/{chunk-dpvj3sdh.js → chunk-sag785ad.js} +13 -13
- package/dist/{chunk-f0xtv7nb.js → chunk-scqjyben.js} +13 -13
- package/dist/{chunk-brd2dt26.js → chunk-sdtqm0nm.js} +21 -21
- package/dist/{chunk-kw6vv678.js → chunk-sg60xg0x.js} +2 -2
- package/dist/{chunk-46k4xap3.js → chunk-sz9y6z13.js} +1 -1
- package/dist/{chunk-4qvs6a87.js → chunk-t2b49hcf.js} +3 -3
- package/dist/{chunk-y544tyq9.js → chunk-t2wqdppz.js} +1 -1
- package/dist/{chunk-w19kyftd.js → chunk-t70t2gne.js} +24 -24
- package/dist/{chunk-tda2wzh1.js → chunk-tkrstmwz.js} +22 -22
- package/dist/{chunk-d0gakngb.js → chunk-tnyb4exc.js} +1 -1
- package/dist/{chunk-ftfe4375.js → chunk-tpn8jsvw.js} +1 -1
- package/dist/{chunk-0scyv43d.js → chunk-tt7x5j1q.js} +2 -2
- package/dist/{chunk-6ejwycf7.js → chunk-tw1p628z.js} +3 -3
- package/dist/{chunk-br8czcam.js → chunk-twvdafcz.js} +63 -63
- package/dist/{chunk-ptqa90ma.js → chunk-tzwjafgn.js} +1 -1
- package/dist/{chunk-smxwmmej.js → chunk-v140t8ay.js} +1 -1
- package/dist/{chunk-q6ya4d2z.js → chunk-vcfbjkk9.js} +13 -13
- package/dist/{chunk-dd7dymcn.js → chunk-ve167rcs.js} +62 -62
- package/dist/{chunk-51p7mpsf.js → chunk-vhffyae8.js} +14 -14
- package/dist/{chunk-jvtcm9jd.js → chunk-vybkmfhf.js} +15 -15
- package/dist/{chunk-ne7hybfn.js → chunk-w9b6kngq.js} +15 -15
- package/dist/{chunk-9t6ny3s2.js → chunk-wanceff6.js} +3 -3
- package/dist/{chunk-qm3ptn4g.js → chunk-wcze2nea.js} +1 -1
- package/dist/{chunk-hh4j510m.js → chunk-wnxcgfsd.js} +4 -4
- package/dist/{chunk-w4rpqnr4.js → chunk-wyjerrr6.js} +13 -13
- package/dist/{chunk-q9q4d905.js → chunk-wz9brkq5.js} +3 -3
- package/dist/{chunk-54e1j56b.js → chunk-x59j3x9c.js} +1 -1
- package/dist/{chunk-kscnsn0j.js → chunk-xfw2pxwd.js} +3 -3
- package/dist/{chunk-gwd17e5m.js → chunk-xh06jc72.js} +2 -2
- package/dist/{chunk-kfsr7tdw.js → chunk-xkwyg1d2.js} +19 -19
- package/dist/{chunk-f1rbkfnc.js → chunk-xyapc58m.js} +2 -2
- package/dist/{chunk-zzq9vg9b.js → chunk-xzgnc76g.js} +13 -13
- package/dist/{chunk-xv0av2e7.js → chunk-yddek6xk.js} +1 -1
- package/dist/{chunk-17d4h6xs.js → chunk-ypaq3d12.js} +14 -14
- package/dist/{chunk-hqenbdhd.js → chunk-yq8z040g.js} +2 -2
- package/dist/{chunk-xg6j84qz.js → chunk-yqs481qq.js} +22 -22
- package/dist/{chunk-jr9ggcef.js → chunk-ys9a9c9h.js} +13 -13
- package/dist/{chunk-z046gxq4.js → chunk-yzn396hn.js} +13 -13
- package/dist/{chunk-t4hn9c0b.js → chunk-zay4xp4n.js} +13 -13
- package/dist/{chunk-vmj3bf98.js → chunk-zc8bwy57.js} +14 -14
- package/dist/{chunk-9236srw5.js → chunk-zhx88cfx.js} +21 -21
- package/dist/{chunk-kx5s5c1w.js → chunk-zkh6f4ct.js} +13 -13
- package/dist/{chunk-2dbv7hdd.js → chunk-zq56gcca.js} +2 -2
- package/dist/{chunk-svd9fxx7.js → chunk-zrkefd22.js} +14 -14
- package/dist/{chunk-avag9fej.js → chunk-zs5p0yq1.js} +9 -9
- package/dist/cli.js +136 -7
- package/dist/gateway/worker.js +1908 -1664
- package/package.json +1 -1
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
import {
|
|
12
12
|
getTeammateModeFromSnapshot,
|
|
13
13
|
init_teammateModeSnapshot
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-jpz6t2tt.js";
|
|
15
15
|
import {
|
|
16
16
|
DANGEROUS_uncachedSystemPromptSection,
|
|
17
17
|
clearSystemPromptSections,
|
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
getUndercoverInstructions,
|
|
32
32
|
init_undercover,
|
|
33
33
|
isUndercover
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-q0p1m40t.js";
|
|
35
35
|
import {
|
|
36
36
|
calculateCommitAttribution,
|
|
37
37
|
createEmptyAttributionState,
|
|
@@ -41,7 +41,7 @@ import {
|
|
|
41
41
|
isInternalModelRepoCached,
|
|
42
42
|
sanitizeModelName,
|
|
43
43
|
sequential
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-52e9mdjv.js";
|
|
45
45
|
import {
|
|
46
46
|
init_subprocessEnv,
|
|
47
47
|
subprocessEnv
|
|
@@ -95,7 +95,7 @@ import {
|
|
|
95
95
|
unregisterTeamForSessionCleanup,
|
|
96
96
|
updateTask,
|
|
97
97
|
writeTeamFileAsync
|
|
98
|
-
} from "./chunk-
|
|
98
|
+
} from "./chunk-34jx4rjd.js";
|
|
99
99
|
import {
|
|
100
100
|
init_p_map,
|
|
101
101
|
pMap
|
|
@@ -132,7 +132,7 @@ import {
|
|
|
132
132
|
init_terminalSetup,
|
|
133
133
|
markBackslashReturnUsed,
|
|
134
134
|
maybeMarkProjectOnboardingComplete
|
|
135
|
-
} from "./chunk-
|
|
135
|
+
} from "./chunk-67hxjjgc.js";
|
|
136
136
|
import {
|
|
137
137
|
init_useKeybinding
|
|
138
138
|
} from "./chunk-68ffk5qa.js";
|
|
@@ -162,7 +162,7 @@ import {
|
|
|
162
162
|
modelSupportsStructuredOutputs,
|
|
163
163
|
shouldIncludeFirstPartyOnlyBetas,
|
|
164
164
|
shouldUseGlobalCacheScope
|
|
165
|
-
} from "./chunk-
|
|
165
|
+
} from "./chunk-gc7ap41t.js";
|
|
166
166
|
import {
|
|
167
167
|
ADVISOR_BETA_HEADER,
|
|
168
168
|
AFK_MODE_BETA_HEADER,
|
|
@@ -242,7 +242,7 @@ import {
|
|
|
242
242
|
resolveAntModel,
|
|
243
243
|
resolveSkillModelOverride,
|
|
244
244
|
triggerFastModeCooldown
|
|
245
|
-
} from "./chunk-
|
|
245
|
+
} from "./chunk-jtc4aa2y.js";
|
|
246
246
|
import {
|
|
247
247
|
clearCACertsCache,
|
|
248
248
|
clearMTLSCache,
|
|
@@ -265,7 +265,7 @@ import {
|
|
|
265
265
|
getPrompt,
|
|
266
266
|
init_prompt as init_prompt3,
|
|
267
267
|
isDeferredTool
|
|
268
|
-
} from "./chunk-
|
|
268
|
+
} from "./chunk-6p0hbwz3.js";
|
|
269
269
|
import {
|
|
270
270
|
TungstenTool,
|
|
271
271
|
init_TungstenTool
|
|
@@ -283,11 +283,11 @@ import {
|
|
|
283
283
|
init_stdio,
|
|
284
284
|
serializeMessage,
|
|
285
285
|
shutdownDatadog
|
|
286
|
-
} from "./chunk-
|
|
286
|
+
} from "./chunk-v140t8ay.js";
|
|
287
287
|
import {
|
|
288
288
|
getChicagoCoordinateMode,
|
|
289
289
|
init_gates
|
|
290
|
-
} from "./chunk-
|
|
290
|
+
} from "./chunk-99chkt7r.js";
|
|
291
291
|
import {
|
|
292
292
|
DEFAULT_GRANT_FLAGS,
|
|
293
293
|
bindSessionContext,
|
|
@@ -355,7 +355,7 @@ import {
|
|
|
355
355
|
init_billing,
|
|
356
356
|
isTransientNetworkError,
|
|
357
357
|
setMockBillingAccessOverride
|
|
358
|
-
} from "./chunk-
|
|
358
|
+
} from "./chunk-h2k8mt3z.js";
|
|
359
359
|
import {
|
|
360
360
|
init_browser,
|
|
361
361
|
openBrowser,
|
|
@@ -554,7 +554,7 @@ import {
|
|
|
554
554
|
validateOfficialNameSource,
|
|
555
555
|
validateSettingsFileContent,
|
|
556
556
|
writeTextContent
|
|
557
|
-
} from "./chunk-
|
|
557
|
+
} from "./chunk-2b0e32an.js";
|
|
558
558
|
import {
|
|
559
559
|
ConfigScopeSchema,
|
|
560
560
|
McpJsonConfigSchema,
|
|
@@ -4788,7 +4788,7 @@ var init_add_dir = __esm(() => {
|
|
|
4788
4788
|
name: "add-dir",
|
|
4789
4789
|
description: "Add a new working directory",
|
|
4790
4790
|
argumentHint: "<path>",
|
|
4791
|
-
load: () => import("./chunk-
|
|
4791
|
+
load: () => import("./chunk-22d4rnef.js")
|
|
4792
4792
|
};
|
|
4793
4793
|
add_dir_default = addDir;
|
|
4794
4794
|
});
|
|
@@ -4814,7 +4814,7 @@ var init_btw = __esm(() => {
|
|
|
4814
4814
|
description: "Ask a quick side question without interrupting the main conversation",
|
|
4815
4815
|
immediate: true,
|
|
4816
4816
|
argumentHint: "<question>",
|
|
4817
|
-
load: () => import("./chunk-
|
|
4817
|
+
load: () => import("./chunk-2bfa9w1y.js")
|
|
4818
4818
|
};
|
|
4819
4819
|
btw_default = btw;
|
|
4820
4820
|
});
|
|
@@ -5274,7 +5274,7 @@ var init_metadata = __esm(() => {
|
|
|
5274
5274
|
COMPOUND_OPERATOR_REGEX = /\s*(?:&&|\|\||[;|])\s*/;
|
|
5275
5275
|
WHITESPACE_REGEX = /\s+/;
|
|
5276
5276
|
getVersionBase = memoize_default(() => {
|
|
5277
|
-
const match = "0.0.
|
|
5277
|
+
const match = "0.0.25".match(/^\d+\.\d+\.\d+(?:-[a-z]+)?/);
|
|
5278
5278
|
return match ? match[0] : undefined;
|
|
5279
5279
|
});
|
|
5280
5280
|
buildEnvContext = memoize_default(async () => {
|
|
@@ -5314,9 +5314,9 @@ var init_metadata = __esm(() => {
|
|
|
5314
5314
|
isGithubAction: isEnvTruthy(process.env.GITHUB_ACTIONS),
|
|
5315
5315
|
isClaudeCodeAction: isEnvTruthy(process.env.CLAUDE_CODE_ACTION),
|
|
5316
5316
|
isClaudeAiAuth: false,
|
|
5317
|
-
version: "0.0.
|
|
5317
|
+
version: "0.0.25",
|
|
5318
5318
|
versionBase: getVersionBase(),
|
|
5319
|
-
buildTime: "2026-08-
|
|
5319
|
+
buildTime: "2026-08-20T02:48:13.549Z",
|
|
5320
5320
|
deploymentEnvironment: env.detectDeploymentEnvironment(),
|
|
5321
5321
|
...isEnvTruthy(process.env.GITHUB_ACTIONS) && {
|
|
5322
5322
|
githubEventName: process.env.GITHUB_EVENT_NAME,
|
|
@@ -12678,7 +12678,7 @@ function getAttributionHeader(fingerprint) {
|
|
|
12678
12678
|
if (baseUrl && !baseUrl.includes("anthropic.com")) {
|
|
12679
12679
|
return "";
|
|
12680
12680
|
}
|
|
12681
|
-
const version = `${"0.0.
|
|
12681
|
+
const version = `${"0.0.25"}.${fingerprint}`;
|
|
12682
12682
|
const entrypoint = process.env.CLAUDE_CODE_ENTRYPOINT ?? "unknown";
|
|
12683
12683
|
const cch = "";
|
|
12684
12684
|
const workload = getWorkload();
|
|
@@ -30154,7 +30154,7 @@ var init_bashPermissions = __esm(() => {
|
|
|
30154
30154
|
speculativeChecks = new Map;
|
|
30155
30155
|
});
|
|
30156
30156
|
|
|
30157
|
-
// src/
|
|
30157
|
+
// src/utils/bash/safeCommandValidation.ts
|
|
30158
30158
|
function getCommandAllowlist() {
|
|
30159
30159
|
let allowlist = COMMAND_ALLOWLIST;
|
|
30160
30160
|
if (getPlatform() === "windows") {
|
|
@@ -30258,203 +30258,11 @@ function isCommandSafeViaFlagParsing(command) {
|
|
|
30258
30258
|
}
|
|
30259
30259
|
return true;
|
|
30260
30260
|
}
|
|
30261
|
-
|
|
30262
|
-
|
|
30263
|
-
}
|
|
30264
|
-
function containsUnquotedExpansion(command) {
|
|
30265
|
-
let inSingleQuote = false;
|
|
30266
|
-
let inDoubleQuote = false;
|
|
30267
|
-
let escaped = false;
|
|
30268
|
-
for (let i = 0;i < command.length; i++) {
|
|
30269
|
-
const currentChar = command[i];
|
|
30270
|
-
if (escaped) {
|
|
30271
|
-
escaped = false;
|
|
30272
|
-
continue;
|
|
30273
|
-
}
|
|
30274
|
-
if (currentChar === "\\" && !inSingleQuote) {
|
|
30275
|
-
escaped = true;
|
|
30276
|
-
continue;
|
|
30277
|
-
}
|
|
30278
|
-
if (currentChar === "'" && !inDoubleQuote) {
|
|
30279
|
-
inSingleQuote = !inSingleQuote;
|
|
30280
|
-
continue;
|
|
30281
|
-
}
|
|
30282
|
-
if (currentChar === '"' && !inSingleQuote) {
|
|
30283
|
-
inDoubleQuote = !inDoubleQuote;
|
|
30284
|
-
continue;
|
|
30285
|
-
}
|
|
30286
|
-
if (inSingleQuote) {
|
|
30287
|
-
continue;
|
|
30288
|
-
}
|
|
30289
|
-
if (currentChar === "$") {
|
|
30290
|
-
const next = command[i + 1];
|
|
30291
|
-
if (next && /[A-Za-z_@*#?!$0-9-]/.test(next)) {
|
|
30292
|
-
return true;
|
|
30293
|
-
}
|
|
30294
|
-
}
|
|
30295
|
-
if (inDoubleQuote) {
|
|
30296
|
-
continue;
|
|
30297
|
-
}
|
|
30298
|
-
if (currentChar && /[?*[\]]/.test(currentChar)) {
|
|
30299
|
-
return true;
|
|
30300
|
-
}
|
|
30301
|
-
}
|
|
30302
|
-
return false;
|
|
30303
|
-
}
|
|
30304
|
-
function isCommandReadOnly(command) {
|
|
30305
|
-
let testCommand = command.trim();
|
|
30306
|
-
if (testCommand.endsWith(" 2>&1")) {
|
|
30307
|
-
testCommand = testCommand.slice(0, -5).trim();
|
|
30308
|
-
}
|
|
30309
|
-
if (containsVulnerableUncPath(testCommand)) {
|
|
30310
|
-
return false;
|
|
30311
|
-
}
|
|
30312
|
-
if (containsUnquotedExpansion(testCommand)) {
|
|
30313
|
-
return false;
|
|
30314
|
-
}
|
|
30315
|
-
if (isCommandSafeViaFlagParsing(testCommand)) {
|
|
30316
|
-
return true;
|
|
30317
|
-
}
|
|
30318
|
-
for (const regex of READONLY_COMMAND_REGEXES) {
|
|
30319
|
-
if (regex.test(testCommand)) {
|
|
30320
|
-
if (testCommand.includes("git") && /\s-c[\s=]/.test(testCommand)) {
|
|
30321
|
-
return false;
|
|
30322
|
-
}
|
|
30323
|
-
if (testCommand.includes("git") && /\s--exec-path[\s=]/.test(testCommand)) {
|
|
30324
|
-
return false;
|
|
30325
|
-
}
|
|
30326
|
-
if (testCommand.includes("git") && /\s--config-env[\s=]/.test(testCommand)) {
|
|
30327
|
-
return false;
|
|
30328
|
-
}
|
|
30329
|
-
return true;
|
|
30330
|
-
}
|
|
30331
|
-
}
|
|
30332
|
-
return false;
|
|
30333
|
-
}
|
|
30334
|
-
function commandHasAnyGit(command) {
|
|
30335
|
-
return splitCommand_DEPRECATED(command).some((subcmd) => isNormalizedGitCommand(subcmd.trim()));
|
|
30336
|
-
}
|
|
30337
|
-
function isGitInternalPath(path4) {
|
|
30338
|
-
const normalized = path4.replace(/^\.?\//, "");
|
|
30339
|
-
return GIT_INTERNAL_PATTERNS.some((pattern) => pattern.test(normalized));
|
|
30340
|
-
}
|
|
30341
|
-
function extractWritePathsFromSubcommand(subcommand) {
|
|
30342
|
-
const parseResult = tryParseShellCommand(subcommand, (env2) => `$${env2}`);
|
|
30343
|
-
if (!parseResult.success)
|
|
30344
|
-
return [];
|
|
30345
|
-
const tokens = parseResult.tokens.filter((t) => typeof t === "string");
|
|
30346
|
-
if (tokens.length === 0)
|
|
30347
|
-
return [];
|
|
30348
|
-
const baseCmd = tokens[0];
|
|
30349
|
-
if (!baseCmd)
|
|
30350
|
-
return [];
|
|
30351
|
-
if (!(baseCmd in COMMAND_OPERATION_TYPE)) {
|
|
30352
|
-
return [];
|
|
30353
|
-
}
|
|
30354
|
-
const opType = COMMAND_OPERATION_TYPE[baseCmd];
|
|
30355
|
-
if (opType !== "write" && opType !== "create" || NON_CREATING_WRITE_COMMANDS.has(baseCmd)) {
|
|
30356
|
-
return [];
|
|
30357
|
-
}
|
|
30358
|
-
const extractor = PATH_EXTRACTORS[baseCmd];
|
|
30359
|
-
if (!extractor)
|
|
30360
|
-
return [];
|
|
30361
|
-
return extractor(tokens.slice(1));
|
|
30362
|
-
}
|
|
30363
|
-
function commandWritesToGitInternalPaths(command) {
|
|
30364
|
-
const subcommands = splitCommand_DEPRECATED(command);
|
|
30365
|
-
for (const subcmd of subcommands) {
|
|
30366
|
-
const trimmed = subcmd.trim();
|
|
30367
|
-
const writePaths = extractWritePathsFromSubcommand(trimmed);
|
|
30368
|
-
for (const path4 of writePaths) {
|
|
30369
|
-
if (isGitInternalPath(path4)) {
|
|
30370
|
-
return true;
|
|
30371
|
-
}
|
|
30372
|
-
}
|
|
30373
|
-
const { redirections } = extractOutputRedirections(trimmed);
|
|
30374
|
-
for (const { target } of redirections) {
|
|
30375
|
-
if (isGitInternalPath(target)) {
|
|
30376
|
-
return true;
|
|
30377
|
-
}
|
|
30378
|
-
}
|
|
30379
|
-
}
|
|
30380
|
-
return false;
|
|
30381
|
-
}
|
|
30382
|
-
function checkReadOnlyConstraints(input, compoundCommandHasCd) {
|
|
30383
|
-
const { command } = input;
|
|
30384
|
-
const result = tryParseShellCommand(command, (env2) => `$${env2}`);
|
|
30385
|
-
if (!result.success) {
|
|
30386
|
-
return {
|
|
30387
|
-
behavior: "passthrough",
|
|
30388
|
-
message: "Command cannot be parsed, requires further permission checks"
|
|
30389
|
-
};
|
|
30390
|
-
}
|
|
30391
|
-
if (bashCommandIsSafe_DEPRECATED(command).behavior !== "passthrough") {
|
|
30392
|
-
return {
|
|
30393
|
-
behavior: "passthrough",
|
|
30394
|
-
message: "Command is not read-only, requires further permission checks"
|
|
30395
|
-
};
|
|
30396
|
-
}
|
|
30397
|
-
if (containsVulnerableUncPath(command)) {
|
|
30398
|
-
return {
|
|
30399
|
-
behavior: "ask",
|
|
30400
|
-
message: "Command contains Windows UNC path that could be vulnerable to WebDAV attacks"
|
|
30401
|
-
};
|
|
30402
|
-
}
|
|
30403
|
-
const hasGitCommand = commandHasAnyGit(command);
|
|
30404
|
-
if (compoundCommandHasCd && hasGitCommand) {
|
|
30405
|
-
return {
|
|
30406
|
-
behavior: "passthrough",
|
|
30407
|
-
message: "Compound commands with cd and git require permission checks for enhanced security"
|
|
30408
|
-
};
|
|
30409
|
-
}
|
|
30410
|
-
if (hasGitCommand && isCurrentDirectoryBareGitRepo()) {
|
|
30411
|
-
return {
|
|
30412
|
-
behavior: "passthrough",
|
|
30413
|
-
message: "Git commands in directories with bare repository structure require permission checks for enhanced security"
|
|
30414
|
-
};
|
|
30415
|
-
}
|
|
30416
|
-
if (hasGitCommand && commandWritesToGitInternalPaths(command)) {
|
|
30417
|
-
return {
|
|
30418
|
-
behavior: "passthrough",
|
|
30419
|
-
message: "Compound commands that create git internal files and run git require permission checks for enhanced security"
|
|
30420
|
-
};
|
|
30421
|
-
}
|
|
30422
|
-
if (hasGitCommand && SandboxManager2.isSandboxingEnabled() && getCwd() !== getOriginalCwd()) {
|
|
30423
|
-
return {
|
|
30424
|
-
behavior: "passthrough",
|
|
30425
|
-
message: "Git commands outside the original working directory require permission checks when sandbox is enabled"
|
|
30426
|
-
};
|
|
30427
|
-
}
|
|
30428
|
-
const allSubcommandsReadOnly = splitCommand_DEPRECATED(command).every((subcmd) => {
|
|
30429
|
-
if (bashCommandIsSafe_DEPRECATED(subcmd).behavior !== "passthrough") {
|
|
30430
|
-
return false;
|
|
30431
|
-
}
|
|
30432
|
-
return isCommandReadOnly(subcmd);
|
|
30433
|
-
});
|
|
30434
|
-
if (allSubcommandsReadOnly) {
|
|
30435
|
-
return {
|
|
30436
|
-
behavior: "allow",
|
|
30437
|
-
updatedInput: input
|
|
30438
|
-
};
|
|
30439
|
-
}
|
|
30440
|
-
return {
|
|
30441
|
-
behavior: "passthrough",
|
|
30442
|
-
message: "Command is not read-only, requires further permission checks"
|
|
30443
|
-
};
|
|
30444
|
-
}
|
|
30445
|
-
var FD_SAFE_FLAGS, COMMAND_ALLOWLIST, ANT_ONLY_COMMAND_ALLOWLIST, SAFE_TARGET_COMMANDS_FOR_XARGS, READONLY_COMMANDS, READONLY_COMMAND_REGEXES, GIT_INTERNAL_PATTERNS, NON_CREATING_WRITE_COMMANDS;
|
|
30446
|
-
var init_readOnlyValidation = __esm(() => {
|
|
30447
|
-
init_state();
|
|
30448
|
-
init_commands();
|
|
30261
|
+
var FD_SAFE_FLAGS, COMMAND_ALLOWLIST, ANT_ONLY_COMMAND_ALLOWLIST, SAFE_TARGET_COMMANDS_FOR_XARGS;
|
|
30262
|
+
var init_safeCommandValidation = __esm(() => {
|
|
30449
30263
|
init_shellQuote();
|
|
30450
|
-
init_cwd();
|
|
30451
|
-
init_git();
|
|
30452
30264
|
init_platform();
|
|
30453
|
-
init_sandbox_adapter();
|
|
30454
30265
|
init_readOnlyCommandValidation();
|
|
30455
|
-
init_bashPermissions();
|
|
30456
|
-
init_bashSecurity();
|
|
30457
|
-
init_pathValidation2();
|
|
30458
30266
|
init_sedValidation();
|
|
30459
30267
|
FD_SAFE_FLAGS = {
|
|
30460
30268
|
"-h": "none",
|
|
@@ -31374,6 +31182,207 @@ var init_readOnlyValidation = __esm(() => {
|
|
|
31374
31182
|
"head",
|
|
31375
31183
|
"tail"
|
|
31376
31184
|
];
|
|
31185
|
+
});
|
|
31186
|
+
|
|
31187
|
+
// src/tools/BashTool/readOnlyValidation.ts
|
|
31188
|
+
function makeRegexForSafeCommand(command) {
|
|
31189
|
+
return new RegExp(`^${command}(?:\\s|$)[^<>()$\`|{}&;\\n\\r]*$`);
|
|
31190
|
+
}
|
|
31191
|
+
function containsUnquotedExpansion(command) {
|
|
31192
|
+
let inSingleQuote = false;
|
|
31193
|
+
let inDoubleQuote = false;
|
|
31194
|
+
let escaped = false;
|
|
31195
|
+
for (let i = 0;i < command.length; i++) {
|
|
31196
|
+
const currentChar = command[i];
|
|
31197
|
+
if (escaped) {
|
|
31198
|
+
escaped = false;
|
|
31199
|
+
continue;
|
|
31200
|
+
}
|
|
31201
|
+
if (currentChar === "\\" && !inSingleQuote) {
|
|
31202
|
+
escaped = true;
|
|
31203
|
+
continue;
|
|
31204
|
+
}
|
|
31205
|
+
if (currentChar === "'" && !inDoubleQuote) {
|
|
31206
|
+
inSingleQuote = !inSingleQuote;
|
|
31207
|
+
continue;
|
|
31208
|
+
}
|
|
31209
|
+
if (currentChar === '"' && !inSingleQuote) {
|
|
31210
|
+
inDoubleQuote = !inDoubleQuote;
|
|
31211
|
+
continue;
|
|
31212
|
+
}
|
|
31213
|
+
if (inSingleQuote) {
|
|
31214
|
+
continue;
|
|
31215
|
+
}
|
|
31216
|
+
if (currentChar === "$") {
|
|
31217
|
+
const next = command[i + 1];
|
|
31218
|
+
if (next && /[A-Za-z_@*#?!$0-9-]/.test(next)) {
|
|
31219
|
+
return true;
|
|
31220
|
+
}
|
|
31221
|
+
}
|
|
31222
|
+
if (inDoubleQuote) {
|
|
31223
|
+
continue;
|
|
31224
|
+
}
|
|
31225
|
+
if (currentChar && /[?*[\]]/.test(currentChar)) {
|
|
31226
|
+
return true;
|
|
31227
|
+
}
|
|
31228
|
+
}
|
|
31229
|
+
return false;
|
|
31230
|
+
}
|
|
31231
|
+
function isCommandReadOnly(command) {
|
|
31232
|
+
let testCommand = command.trim();
|
|
31233
|
+
if (testCommand.endsWith(" 2>&1")) {
|
|
31234
|
+
testCommand = testCommand.slice(0, -5).trim();
|
|
31235
|
+
}
|
|
31236
|
+
if (containsVulnerableUncPath(testCommand)) {
|
|
31237
|
+
return false;
|
|
31238
|
+
}
|
|
31239
|
+
if (containsUnquotedExpansion(testCommand)) {
|
|
31240
|
+
return false;
|
|
31241
|
+
}
|
|
31242
|
+
if (isCommandSafeViaFlagParsing(testCommand)) {
|
|
31243
|
+
return true;
|
|
31244
|
+
}
|
|
31245
|
+
for (const regex of READONLY_COMMAND_REGEXES) {
|
|
31246
|
+
if (regex.test(testCommand)) {
|
|
31247
|
+
if (testCommand.includes("git") && /\s-c[\s=]/.test(testCommand)) {
|
|
31248
|
+
return false;
|
|
31249
|
+
}
|
|
31250
|
+
if (testCommand.includes("git") && /\s--exec-path[\s=]/.test(testCommand)) {
|
|
31251
|
+
return false;
|
|
31252
|
+
}
|
|
31253
|
+
if (testCommand.includes("git") && /\s--config-env[\s=]/.test(testCommand)) {
|
|
31254
|
+
return false;
|
|
31255
|
+
}
|
|
31256
|
+
return true;
|
|
31257
|
+
}
|
|
31258
|
+
}
|
|
31259
|
+
return false;
|
|
31260
|
+
}
|
|
31261
|
+
function commandHasAnyGit(command) {
|
|
31262
|
+
return splitCommand_DEPRECATED(command).some((subcmd) => isNormalizedGitCommand(subcmd.trim()));
|
|
31263
|
+
}
|
|
31264
|
+
function isGitInternalPath(path4) {
|
|
31265
|
+
const normalized = path4.replace(/^\.?\//, "");
|
|
31266
|
+
return GIT_INTERNAL_PATTERNS.some((pattern) => pattern.test(normalized));
|
|
31267
|
+
}
|
|
31268
|
+
function extractWritePathsFromSubcommand(subcommand) {
|
|
31269
|
+
const parseResult = tryParseShellCommand(subcommand, (env2) => `$${env2}`);
|
|
31270
|
+
if (!parseResult.success)
|
|
31271
|
+
return [];
|
|
31272
|
+
const tokens = parseResult.tokens.filter((t) => typeof t === "string");
|
|
31273
|
+
if (tokens.length === 0)
|
|
31274
|
+
return [];
|
|
31275
|
+
const baseCmd = tokens[0];
|
|
31276
|
+
if (!baseCmd)
|
|
31277
|
+
return [];
|
|
31278
|
+
if (!(baseCmd in COMMAND_OPERATION_TYPE)) {
|
|
31279
|
+
return [];
|
|
31280
|
+
}
|
|
31281
|
+
const opType = COMMAND_OPERATION_TYPE[baseCmd];
|
|
31282
|
+
if (opType !== "write" && opType !== "create" || NON_CREATING_WRITE_COMMANDS.has(baseCmd)) {
|
|
31283
|
+
return [];
|
|
31284
|
+
}
|
|
31285
|
+
const extractor = PATH_EXTRACTORS[baseCmd];
|
|
31286
|
+
if (!extractor)
|
|
31287
|
+
return [];
|
|
31288
|
+
return extractor(tokens.slice(1));
|
|
31289
|
+
}
|
|
31290
|
+
function commandWritesToGitInternalPaths(command) {
|
|
31291
|
+
const subcommands = splitCommand_DEPRECATED(command);
|
|
31292
|
+
for (const subcmd of subcommands) {
|
|
31293
|
+
const trimmed = subcmd.trim();
|
|
31294
|
+
const writePaths = extractWritePathsFromSubcommand(trimmed);
|
|
31295
|
+
for (const path4 of writePaths) {
|
|
31296
|
+
if (isGitInternalPath(path4)) {
|
|
31297
|
+
return true;
|
|
31298
|
+
}
|
|
31299
|
+
}
|
|
31300
|
+
const { redirections } = extractOutputRedirections(trimmed);
|
|
31301
|
+
for (const { target } of redirections) {
|
|
31302
|
+
if (isGitInternalPath(target)) {
|
|
31303
|
+
return true;
|
|
31304
|
+
}
|
|
31305
|
+
}
|
|
31306
|
+
}
|
|
31307
|
+
return false;
|
|
31308
|
+
}
|
|
31309
|
+
function checkReadOnlyConstraints(input, compoundCommandHasCd) {
|
|
31310
|
+
const { command } = input;
|
|
31311
|
+
const result = tryParseShellCommand(command, (env2) => `$${env2}`);
|
|
31312
|
+
if (!result.success) {
|
|
31313
|
+
return {
|
|
31314
|
+
behavior: "passthrough",
|
|
31315
|
+
message: "Command cannot be parsed, requires further permission checks"
|
|
31316
|
+
};
|
|
31317
|
+
}
|
|
31318
|
+
if (bashCommandIsSafe_DEPRECATED(command).behavior !== "passthrough") {
|
|
31319
|
+
return {
|
|
31320
|
+
behavior: "passthrough",
|
|
31321
|
+
message: "Command is not read-only, requires further permission checks"
|
|
31322
|
+
};
|
|
31323
|
+
}
|
|
31324
|
+
if (containsVulnerableUncPath(command)) {
|
|
31325
|
+
return {
|
|
31326
|
+
behavior: "ask",
|
|
31327
|
+
message: "Command contains Windows UNC path that could be vulnerable to WebDAV attacks"
|
|
31328
|
+
};
|
|
31329
|
+
}
|
|
31330
|
+
const hasGitCommand = commandHasAnyGit(command);
|
|
31331
|
+
if (compoundCommandHasCd && hasGitCommand) {
|
|
31332
|
+
return {
|
|
31333
|
+
behavior: "passthrough",
|
|
31334
|
+
message: "Compound commands with cd and git require permission checks for enhanced security"
|
|
31335
|
+
};
|
|
31336
|
+
}
|
|
31337
|
+
if (hasGitCommand && isCurrentDirectoryBareGitRepo()) {
|
|
31338
|
+
return {
|
|
31339
|
+
behavior: "passthrough",
|
|
31340
|
+
message: "Git commands in directories with bare repository structure require permission checks for enhanced security"
|
|
31341
|
+
};
|
|
31342
|
+
}
|
|
31343
|
+
if (hasGitCommand && commandWritesToGitInternalPaths(command)) {
|
|
31344
|
+
return {
|
|
31345
|
+
behavior: "passthrough",
|
|
31346
|
+
message: "Compound commands that create git internal files and run git require permission checks for enhanced security"
|
|
31347
|
+
};
|
|
31348
|
+
}
|
|
31349
|
+
if (hasGitCommand && SandboxManager2.isSandboxingEnabled() && getCwd() !== getOriginalCwd()) {
|
|
31350
|
+
return {
|
|
31351
|
+
behavior: "passthrough",
|
|
31352
|
+
message: "Git commands outside the original working directory require permission checks when sandbox is enabled"
|
|
31353
|
+
};
|
|
31354
|
+
}
|
|
31355
|
+
const allSubcommandsReadOnly = splitCommand_DEPRECATED(command).every((subcmd) => {
|
|
31356
|
+
if (bashCommandIsSafe_DEPRECATED(subcmd).behavior !== "passthrough") {
|
|
31357
|
+
return false;
|
|
31358
|
+
}
|
|
31359
|
+
return isCommandReadOnly(subcmd);
|
|
31360
|
+
});
|
|
31361
|
+
if (allSubcommandsReadOnly) {
|
|
31362
|
+
return {
|
|
31363
|
+
behavior: "allow",
|
|
31364
|
+
updatedInput: input
|
|
31365
|
+
};
|
|
31366
|
+
}
|
|
31367
|
+
return {
|
|
31368
|
+
behavior: "passthrough",
|
|
31369
|
+
message: "Command is not read-only, requires further permission checks"
|
|
31370
|
+
};
|
|
31371
|
+
}
|
|
31372
|
+
var READONLY_COMMANDS, READONLY_COMMAND_REGEXES, GIT_INTERNAL_PATTERNS, NON_CREATING_WRITE_COMMANDS;
|
|
31373
|
+
var init_readOnlyValidation = __esm(() => {
|
|
31374
|
+
init_state();
|
|
31375
|
+
init_commands();
|
|
31376
|
+
init_safeCommandValidation();
|
|
31377
|
+
init_shellQuote();
|
|
31378
|
+
init_cwd();
|
|
31379
|
+
init_git();
|
|
31380
|
+
init_sandbox_adapter();
|
|
31381
|
+
init_readOnlyCommandValidation();
|
|
31382
|
+
init_bashPermissions();
|
|
31383
|
+
init_bashSecurity();
|
|
31384
|
+
init_pathValidation2();
|
|
31385
|
+
init_safeCommandValidation();
|
|
31377
31386
|
READONLY_COMMANDS = [
|
|
31378
31387
|
...EXTERNAL_READONLY_COMMANDS,
|
|
31379
31388
|
"cal",
|
|
@@ -80769,7 +80778,7 @@ function getTelemetryAttributes() {
|
|
|
80769
80778
|
attributes["session.id"] = sessionId;
|
|
80770
80779
|
}
|
|
80771
80780
|
if (shouldIncludeAttribute("OTEL_METRICS_INCLUDE_VERSION")) {
|
|
80772
|
-
attributes["app.version"] = "0.0.
|
|
80781
|
+
attributes["app.version"] = "0.0.25";
|
|
80773
80782
|
}
|
|
80774
80783
|
const oauthAccount = getOauthAccountInfo();
|
|
80775
80784
|
if (oauthAccount) {
|
|
@@ -81086,7 +81095,7 @@ function trackGitOperations(command, exitCode, stdout) {
|
|
|
81086
81095
|
if (stdout) {
|
|
81087
81096
|
const prInfo = findPrInStdout(stdout);
|
|
81088
81097
|
if (prInfo) {
|
|
81089
|
-
import("./chunk-
|
|
81098
|
+
import("./chunk-59pq5122.js").then(({ linkSessionToPR }) => {
|
|
81090
81099
|
import("./chunk-69n11zng.js").then(({ getSessionId: getSessionId2 }) => {
|
|
81091
81100
|
const sessionId = getSessionId2();
|
|
81092
81101
|
if (sessionId) {
|
|
@@ -94642,7 +94651,7 @@ async function persistFileSnapshotIfRemote() {
|
|
|
94642
94651
|
uuid: randomUUID4(),
|
|
94643
94652
|
snapshotFiles
|
|
94644
94653
|
};
|
|
94645
|
-
const { recordTranscript } = await import("./chunk-
|
|
94654
|
+
const { recordTranscript } = await import("./chunk-59pq5122.js");
|
|
94646
94655
|
await recordTranscript([message]);
|
|
94647
94656
|
} catch (error) {
|
|
94648
94657
|
logError(error);
|
|
@@ -96490,7 +96499,7 @@ function getInstallationEnv() {
|
|
|
96490
96499
|
return;
|
|
96491
96500
|
}
|
|
96492
96501
|
function getClaudeCodeVersion() {
|
|
96493
|
-
return "0.0.
|
|
96502
|
+
return "0.0.25";
|
|
96494
96503
|
}
|
|
96495
96504
|
async function getInstalledVSCodeExtensionVersion(command) {
|
|
96496
96505
|
const { stdout } = await execFileNoThrow(command, ["--list-extensions", "--show-versions"], {
|
|
@@ -105310,7 +105319,7 @@ function computeFingerprint(messageText, version) {
|
|
|
105310
105319
|
}
|
|
105311
105320
|
function computeFingerprintFromMessages(messages) {
|
|
105312
105321
|
const firstMessageText = extractFirstMessageText(messages);
|
|
105313
|
-
return computeFingerprint(firstMessageText, "0.0.
|
|
105322
|
+
return computeFingerprint(firstMessageText, "0.0.25");
|
|
105314
105323
|
}
|
|
105315
105324
|
var FINGERPRINT_SALT = "59cf53e54c78";
|
|
105316
105325
|
var init_fingerprint = () => {};
|
|
@@ -105499,7 +105508,7 @@ async function sideQuery(opts) {
|
|
|
105499
105508
|
betas.push(STRUCTURED_OUTPUTS_BETA_HEADER);
|
|
105500
105509
|
}
|
|
105501
105510
|
const messageText = extractFirstUserMessageText(messages);
|
|
105502
|
-
const fingerprint = computeFingerprint(messageText, "0.0.
|
|
105511
|
+
const fingerprint = computeFingerprint(messageText, "0.0.25");
|
|
105503
105512
|
const attributionHeader = getAttributionHeader(fingerprint);
|
|
105504
105513
|
const systemBlocks = [
|
|
105505
105514
|
attributionHeader ? { type: "text", text: attributionHeader } : null,
|
|
@@ -125174,7 +125183,7 @@ async function setupSdkMcpClients(sdkMcpConfigs, sendMcpMessage) {
|
|
|
125174
125183
|
const client = new Client({
|
|
125175
125184
|
name: "claude-code",
|
|
125176
125185
|
title: "Claude Code",
|
|
125177
|
-
version: "0.0.
|
|
125186
|
+
version: "0.0.25",
|
|
125178
125187
|
description: "Anthropic's agentic coding tool",
|
|
125179
125188
|
websiteUrl: PRODUCT_URL
|
|
125180
125189
|
}, {
|
|
@@ -125470,7 +125479,7 @@ var init_client6 = __esm(() => {
|
|
|
125470
125479
|
} else if (serverRef.type === "claudeai-proxy") {
|
|
125471
125480
|
throw new Error("MCP claude.ai proxy transport is disabled for internal use");
|
|
125472
125481
|
} else if ((serverRef.type === "stdio" || !serverRef.type) && isClaudeInChromeMCPServer(name)) {
|
|
125473
|
-
const { createChromeContext } = await import("./chunk-
|
|
125482
|
+
const { createChromeContext } = await import("./chunk-4f7m9fjw.js");
|
|
125474
125483
|
const { createClaudeForChromeMcpServer } = await import("./chunk-qkczt8cr.js");
|
|
125475
125484
|
const { createLinkedTransportPair } = await import("./chunk-1h2famwb.js");
|
|
125476
125485
|
const context = createChromeContext(serverRef.env);
|
|
@@ -125480,7 +125489,7 @@ var init_client6 = __esm(() => {
|
|
|
125480
125489
|
transport = clientTransport;
|
|
125481
125490
|
logMCPDebug(name, `In-process Chrome MCP server started`);
|
|
125482
125491
|
} else if ((serverRef.type === "stdio" || !serverRef.type) && isComputerUseMCPServer(name)) {
|
|
125483
|
-
const { createComputerUseMcpServerForCli } = await import("./chunk-
|
|
125492
|
+
const { createComputerUseMcpServerForCli } = await import("./chunk-wnxcgfsd.js");
|
|
125484
125493
|
const { createLinkedTransportPair } = await import("./chunk-1h2famwb.js");
|
|
125485
125494
|
inProcessServer = await createComputerUseMcpServerForCli();
|
|
125486
125495
|
const [clientTransport, serverTransport] = createLinkedTransportPair();
|
|
@@ -125521,7 +125530,7 @@ var init_client6 = __esm(() => {
|
|
|
125521
125530
|
const client = new Client({
|
|
125522
125531
|
name: "claude-code",
|
|
125523
125532
|
title: "Claude Code",
|
|
125524
|
-
version: "0.0.
|
|
125533
|
+
version: "0.0.25",
|
|
125525
125534
|
description: "Anthropic's agentic coding tool",
|
|
125526
125535
|
websiteUrl: PRODUCT_URL
|
|
125527
125536
|
}, {
|
|
@@ -138796,7 +138805,86 @@ var init_errors4 = __esm(() => {
|
|
|
138796
138805
|
var init_classifierShared = () => {};
|
|
138797
138806
|
|
|
138798
138807
|
// src/utils/permissions/yoloHeuristic.ts
|
|
138799
|
-
var
|
|
138808
|
+
var DANGEROUS_COMMAND_TOKENS, PKG_MANAGER_SAFE_SUBCOMMANDS, SHELL_NAMES, COMMAND_WRAPPERS;
|
|
138809
|
+
var init_yoloHeuristic = __esm(() => {
|
|
138810
|
+
init_commands();
|
|
138811
|
+
init_safeCommandValidation();
|
|
138812
|
+
DANGEROUS_COMMAND_TOKENS = new Set([
|
|
138813
|
+
"shutdown",
|
|
138814
|
+
"reboot",
|
|
138815
|
+
"halt",
|
|
138816
|
+
"poweroff",
|
|
138817
|
+
"logout",
|
|
138818
|
+
"useradd",
|
|
138819
|
+
"userdel",
|
|
138820
|
+
"usermod",
|
|
138821
|
+
"passwd",
|
|
138822
|
+
"chpasswd"
|
|
138823
|
+
]);
|
|
138824
|
+
PKG_MANAGER_SAFE_SUBCOMMANDS = new Map([
|
|
138825
|
+
[
|
|
138826
|
+
"npm",
|
|
138827
|
+
[
|
|
138828
|
+
"install",
|
|
138829
|
+
"i",
|
|
138830
|
+
"ci",
|
|
138831
|
+
"run",
|
|
138832
|
+
"test",
|
|
138833
|
+
"ls",
|
|
138834
|
+
"outdated",
|
|
138835
|
+
"audit",
|
|
138836
|
+
"info",
|
|
138837
|
+
"view",
|
|
138838
|
+
"root",
|
|
138839
|
+
"prefix"
|
|
138840
|
+
]
|
|
138841
|
+
],
|
|
138842
|
+
[
|
|
138843
|
+
"yarn",
|
|
138844
|
+
[
|
|
138845
|
+
"install",
|
|
138846
|
+
"add",
|
|
138847
|
+
"remove",
|
|
138848
|
+
"run",
|
|
138849
|
+
"test",
|
|
138850
|
+
"dev",
|
|
138851
|
+
"build",
|
|
138852
|
+
"lint",
|
|
138853
|
+
"format",
|
|
138854
|
+
"typecheck",
|
|
138855
|
+
"info",
|
|
138856
|
+
"why",
|
|
138857
|
+
"outdated"
|
|
138858
|
+
]
|
|
138859
|
+
],
|
|
138860
|
+
[
|
|
138861
|
+
"pnpm",
|
|
138862
|
+
[
|
|
138863
|
+
"install",
|
|
138864
|
+
"add",
|
|
138865
|
+
"remove",
|
|
138866
|
+
"run",
|
|
138867
|
+
"test",
|
|
138868
|
+
"dev",
|
|
138869
|
+
"build",
|
|
138870
|
+
"lint",
|
|
138871
|
+
"format",
|
|
138872
|
+
"why",
|
|
138873
|
+
"outdated"
|
|
138874
|
+
]
|
|
138875
|
+
],
|
|
138876
|
+
["bun", ["install", "add", "remove", "run", "test"]]
|
|
138877
|
+
]);
|
|
138878
|
+
SHELL_NAMES = new Set(["sh", "bash", "zsh", "fish", "dash", "ksh"]);
|
|
138879
|
+
COMMAND_WRAPPERS = new Set([
|
|
138880
|
+
"sudo",
|
|
138881
|
+
"env",
|
|
138882
|
+
"nohup",
|
|
138883
|
+
"timeout",
|
|
138884
|
+
"nice",
|
|
138885
|
+
"stdbuf"
|
|
138886
|
+
]);
|
|
138887
|
+
});
|
|
138800
138888
|
|
|
138801
138889
|
// src/utils/permissions/yoloClassifier.ts
|
|
138802
138890
|
var yoloClassifierResponseSchema;
|
|
@@ -139400,7 +139488,7 @@ async function* runAgent({
|
|
|
139400
139488
|
}
|
|
139401
139489
|
validSkills.push({ skillName, skill });
|
|
139402
139490
|
}
|
|
139403
|
-
const { formatSkillLoadingMetadata } = await import("./chunk-
|
|
139491
|
+
const { formatSkillLoadingMetadata } = await import("./chunk-5gcqdn8x.js");
|
|
139404
139492
|
const loaded = await Promise.all(validSkills.map(async ({ skillName, skill }) => ({
|
|
139405
139493
|
skillName,
|
|
139406
139494
|
skill,
|
|
@@ -140387,7 +140475,7 @@ async function gracefulShutdown(exitCode = 0, reason = "other", options) {
|
|
|
140387
140475
|
return;
|
|
140388
140476
|
}
|
|
140389
140477
|
shutdownInProgress = true;
|
|
140390
|
-
const { executeSessionEndHooks, getSessionEndHookTimeoutMs } = await import("./chunk-
|
|
140478
|
+
const { executeSessionEndHooks, getSessionEndHookTimeoutMs } = await import("./chunk-8jbw0fnf.js");
|
|
140391
140479
|
const sessionEndTimeoutMs = getSessionEndHookTimeoutMs();
|
|
140392
140480
|
failsafeTimer = setTimeout((code) => {
|
|
140393
140481
|
cleanupTerminalModes();
|
|
@@ -150853,8 +150941,8 @@ var init_PaneBackendExecutor = __esm(() => {
|
|
|
150853
150941
|
async function ensureBackendsRegistered() {
|
|
150854
150942
|
if (backendsRegistered)
|
|
150855
150943
|
return;
|
|
150856
|
-
await import("./chunk-
|
|
150857
|
-
await import("./chunk-
|
|
150944
|
+
await import("./chunk-wyjerrr6.js");
|
|
150945
|
+
await import("./chunk-k9vm6x6z.js");
|
|
150858
150946
|
backendsRegistered = true;
|
|
150859
150947
|
}
|
|
150860
150948
|
function registerTmuxBackend(backendClass) {
|
|
@@ -152588,7 +152676,7 @@ var init_extra_usage = __esm(() => {
|
|
|
152588
152676
|
name: "extra-usage",
|
|
152589
152677
|
description: "Configure extra usage to keep working when limits are hit",
|
|
152590
152678
|
isEnabled: () => isExtraUsageAllowed() && !getIsNonInteractiveSession(),
|
|
152591
|
-
load: () => import("./chunk-
|
|
152679
|
+
load: () => import("./chunk-s7a0zn7b.js")
|
|
152592
152680
|
};
|
|
152593
152681
|
extraUsageNonInteractive = {
|
|
152594
152682
|
type: "local",
|
|
@@ -152599,7 +152687,7 @@ var init_extra_usage = __esm(() => {
|
|
|
152599
152687
|
get isHidden() {
|
|
152600
152688
|
return !getIsNonInteractiveSession();
|
|
152601
152689
|
},
|
|
152602
|
-
load: () => import("./chunk-
|
|
152690
|
+
load: () => import("./chunk-d1z934cp.js")
|
|
152603
152691
|
};
|
|
152604
152692
|
});
|
|
152605
152693
|
|
|
@@ -159714,7 +159802,7 @@ var init_SkillTool = __esm(() => {
|
|
|
159714
159802
|
if (command?.type === "prompt" && command.context === "fork") {
|
|
159715
159803
|
return executeForkedSkill(command, commandName, args, context, canUseTool, parentMessage, onProgress);
|
|
159716
159804
|
}
|
|
159717
|
-
const { processPromptSlashCommand } = await import("./chunk-
|
|
159805
|
+
const { processPromptSlashCommand } = await import("./chunk-5gcqdn8x.js");
|
|
159718
159806
|
const processedCommand = await processPromptSlashCommand(commandName, args || "", commands, context);
|
|
159719
159807
|
if (!processedCommand.shouldQuery) {
|
|
159720
159808
|
throw new Error("Command processing failed");
|
|
@@ -179429,8 +179517,8 @@ async function countBuiltInToolTokens(tools, getToolPermissionContext, agentInfo
|
|
|
179429
179517
|
systemToolDetails: []
|
|
179430
179518
|
};
|
|
179431
179519
|
}
|
|
179432
|
-
const { isToolSearchEnabled: isToolSearchEnabled2 } = await import("./chunk-
|
|
179433
|
-
const { isDeferredTool: isDeferredTool2 } = await import("./chunk-
|
|
179520
|
+
const { isToolSearchEnabled: isToolSearchEnabled2 } = await import("./chunk-a25jh1v4.js");
|
|
179521
|
+
const { isDeferredTool: isDeferredTool2 } = await import("./chunk-sg60xg0x.js");
|
|
179434
179522
|
const isDeferred = await isToolSearchEnabled2(model ?? "", tools, getToolPermissionContext, agentInfo?.activeAgents ?? [], "analyzeBuiltIn");
|
|
179435
179523
|
const alwaysLoadedTools = builtInTools.filter((t) => !isDeferredTool2(t));
|
|
179436
179524
|
const deferredBuiltinTools = builtInTools.filter((t) => isDeferredTool2(t));
|
|
@@ -179564,8 +179652,8 @@ async function countMcpToolTokens(tools, getToolPermissionContext, agentInfo, mo
|
|
|
179564
179652
|
}))));
|
|
179565
179653
|
const estimateTotal = estimates.reduce((s, e) => s + e, 0) || 1;
|
|
179566
179654
|
const mcpToolTokensByTool = estimates.map((e) => Math.round(e / estimateTotal * totalTokens));
|
|
179567
|
-
const { isToolSearchEnabled: isToolSearchEnabled2 } = await import("./chunk-
|
|
179568
|
-
const { isDeferredTool: isDeferredTool2 } = await import("./chunk-
|
|
179655
|
+
const { isToolSearchEnabled: isToolSearchEnabled2 } = await import("./chunk-a25jh1v4.js");
|
|
179656
|
+
const { isDeferredTool: isDeferredTool2 } = await import("./chunk-sg60xg0x.js");
|
|
179569
179657
|
const isDeferred = await isToolSearchEnabled2(model, tools, getToolPermissionContext, agentInfo?.activeAgents ?? [], "analyzeMcp");
|
|
179570
179658
|
const loadedMcpToolNames = new Set;
|
|
179571
179659
|
if (isDeferred && messages) {
|
|
@@ -181545,8 +181633,7 @@ var init_sessionMemoryCompact = __esm(() => {
|
|
|
181545
181633
|
});
|
|
181546
181634
|
|
|
181547
181635
|
// src/services/compact/autoCompact.ts
|
|
181548
|
-
function
|
|
181549
|
-
const reservedTokensForSummary = Math.min(getMaxOutputTokensForModel(model), MAX_OUTPUT_TOKENS_FOR_SUMMARY);
|
|
181636
|
+
function getBaseContextWindow(model) {
|
|
181550
181637
|
let contextWindow = getContextWindowForModel(model, getSdkBetas());
|
|
181551
181638
|
const autoCompactWindow = process.env.CLAUDE_CODE_AUTO_COMPACT_WINDOW;
|
|
181552
181639
|
if (autoCompactWindow) {
|
|
@@ -181555,11 +181642,26 @@ function getEffectiveContextWindowSize(model) {
|
|
|
181555
181642
|
contextWindow = Math.min(contextWindow, parsed);
|
|
181556
181643
|
}
|
|
181557
181644
|
}
|
|
181558
|
-
return contextWindow
|
|
181645
|
+
return contextWindow;
|
|
181646
|
+
}
|
|
181647
|
+
function getEffectiveContextWindowSize(model) {
|
|
181648
|
+
const reservedTokensForSummary = Math.min(getMaxOutputTokensForModel(model), MAX_OUTPUT_TOKENS_FOR_SUMMARY);
|
|
181649
|
+
return getBaseContextWindow(model) - reservedTokensForSummary;
|
|
181559
181650
|
}
|
|
181560
181651
|
function getAutoCompactThreshold(model) {
|
|
181652
|
+
const baseWindow = getBaseContextWindow(model);
|
|
181561
181653
|
const effectiveContextWindow = getEffectiveContextWindowSize(model);
|
|
181562
|
-
const
|
|
181654
|
+
const limitOverride = process.env.CLAUDE_CODE_AUTOCOMPACT_TOKEN_LIMIT;
|
|
181655
|
+
if (limitOverride) {
|
|
181656
|
+
const parsed = parseInt(limitOverride, 10);
|
|
181657
|
+
if (!isNaN(parsed) && parsed > 0) {
|
|
181658
|
+
return Math.min(parsed, baseWindow - 1000);
|
|
181659
|
+
}
|
|
181660
|
+
}
|
|
181661
|
+
const deductionCap = Math.round(baseWindow * 0.1);
|
|
181662
|
+
const reservedTokensForSummary = Math.min(getMaxOutputTokensForModel(model), MAX_OUTPUT_TOKENS_FOR_SUMMARY, deductionCap);
|
|
181663
|
+
const bufferTokens = Math.min(AUTOCOMPACT_BUFFER_TOKENS, deductionCap);
|
|
181664
|
+
const autocompactThreshold = baseWindow - reservedTokensForSummary - bufferTokens;
|
|
181563
181665
|
const envPercent = process.env.CLAUDE_AUTOCOMPACT_PCT_OVERRIDE;
|
|
181564
181666
|
if (envPercent) {
|
|
181565
181667
|
const parsed = parseFloat(envPercent);
|
|
@@ -181570,6 +181672,9 @@ function getAutoCompactThreshold(model) {
|
|
|
181570
181672
|
}
|
|
181571
181673
|
return autocompactThreshold;
|
|
181572
181674
|
}
|
|
181675
|
+
function isIneffectiveCompaction(result, threshold) {
|
|
181676
|
+
return result.truePostCompactTokenCount !== undefined && result.truePostCompactTokenCount >= threshold;
|
|
181677
|
+
}
|
|
181573
181678
|
function calculateTokenWarningState(tokenUsage, model) {
|
|
181574
181679
|
const autoCompactThreshold = getAutoCompactThreshold(model);
|
|
181575
181680
|
const threshold = isAutoCompactEnabled() ? autoCompactThreshold : getEffectiveContextWindowSize(model);
|
|
@@ -181656,10 +181761,15 @@ async function autoCompactIfNeeded(messages, toolUseContext, cacheSafeParams, qu
|
|
|
181656
181761
|
const compactionResult = await compactConversation(messages, toolUseContext, cacheSafeParams, true, undefined, true, recompactionInfo);
|
|
181657
181762
|
setLastSummarizedMessageId(undefined);
|
|
181658
181763
|
runPostCompactCleanup(querySource);
|
|
181764
|
+
const ineffective = isIneffectiveCompaction(compactionResult, recompactionInfo.autoCompactThreshold);
|
|
181765
|
+
const nextFailures = ineffective ? (tracking?.consecutiveFailures ?? 0) + 1 : 0;
|
|
181766
|
+
if (ineffective && nextFailures >= MAX_CONSECUTIVE_AUTOCOMPACT_FAILURES) {
|
|
181767
|
+
logForDebugging(`autocompact: circuit breaker tripped \u2014 compaction succeeded but context (${compactionResult.truePostCompactTokenCount}) remains >= threshold (${recompactionInfo.autoCompactThreshold}); skipping future attempts this session`, { level: "warn" });
|
|
181768
|
+
}
|
|
181659
181769
|
return {
|
|
181660
181770
|
wasCompacted: true,
|
|
181661
181771
|
compactionResult,
|
|
181662
|
-
consecutiveFailures:
|
|
181772
|
+
consecutiveFailures: nextFailures
|
|
181663
181773
|
};
|
|
181664
181774
|
} catch (error2) {
|
|
181665
181775
|
if (!hasExactErrorMessage(error2, ERROR_MESSAGE_USER_ABORT)) {
|
|
@@ -183625,7 +183735,7 @@ async function* queryLoop(params, consumedCommandUuids) {
|
|
|
183625
183735
|
compacted: true,
|
|
183626
183736
|
turnId: deps.uuid(),
|
|
183627
183737
|
turnCounter: 0,
|
|
183628
|
-
consecutiveFailures: 0
|
|
183738
|
+
consecutiveFailures: consecutiveFailures ?? 0
|
|
183629
183739
|
};
|
|
183630
183740
|
const postCompactMessages = buildPostCompactMessages(compactionResult);
|
|
183631
183741
|
for (const message of postCompactMessages) {
|
|
@@ -184501,7 +184611,7 @@ function getAnthropicEnvMetadata() {
|
|
|
184501
184611
|
function getBuildAgeMinutes() {
|
|
184502
184612
|
if (false)
|
|
184503
184613
|
;
|
|
184504
|
-
const buildTime = new Date("2026-08-
|
|
184614
|
+
const buildTime = new Date("2026-08-20T02:48:13.549Z").getTime();
|
|
184505
184615
|
if (isNaN(buildTime))
|
|
184506
184616
|
return;
|
|
184507
184617
|
return Math.floor((Date.now() - buildTime) / 60000);
|
|
@@ -188010,7 +188120,7 @@ async function* queryModel(messages, systemPrompt, thinkingConfig, tools, signal
|
|
|
188010
188120
|
}
|
|
188011
188121
|
messagesForAPI = stripExcessMediaItems(messagesForAPI, API_MAX_MEDIA_PER_REQUEST);
|
|
188012
188122
|
if (getAPIProvider() === "openai") {
|
|
188013
|
-
const { queryModelOpenAI } = await import("./chunk-
|
|
188123
|
+
const { queryModelOpenAI } = await import("./chunk-k7kmvnnx.js");
|
|
188014
188124
|
yield* queryModelOpenAI(messagesForAPI, systemPrompt, filteredTools, signal, options);
|
|
188015
188125
|
return;
|
|
188016
188126
|
}
|
|
@@ -190655,7 +190765,7 @@ function syncPermissionRulesFromDisk(toolPermissionContext, rules) {
|
|
|
190655
190765
|
function getUpdatedInputOrFallback(permissionResult, fallback) {
|
|
190656
190766
|
return ("updatedInput" in permissionResult ? permissionResult.updatedInput : undefined) ?? fallback;
|
|
190657
190767
|
}
|
|
190658
|
-
var
|
|
190768
|
+
var PERMISSION_RULE_SOURCES, hasPermissionsToUseTool = async (tool, input, context, assistantMessage, toolUseID) => {
|
|
190659
190769
|
const result = await hasPermissionsToUseToolInner(tool, input, context);
|
|
190660
190770
|
if (result.behavior === "allow") {
|
|
190661
190771
|
const appState = context.getAppState();
|
|
@@ -190710,7 +190820,6 @@ var init_permissions3 = __esm(() => {
|
|
|
190710
190820
|
init_permissionRuleParser();
|
|
190711
190821
|
init_permissionsLoader();
|
|
190712
190822
|
init_state();
|
|
190713
|
-
init_growthbook();
|
|
190714
190823
|
init_analytics();
|
|
190715
190824
|
init_metadata();
|
|
190716
190825
|
init_classifierApprovals();
|
|
@@ -190721,7 +190830,6 @@ var init_permissions3 = __esm(() => {
|
|
|
190721
190830
|
init_slowOperations();
|
|
190722
190831
|
init_denialTracking();
|
|
190723
190832
|
init_yoloClassifier();
|
|
190724
|
-
CLASSIFIER_FAIL_CLOSED_REFRESH_MS = 30 * 60 * 1000;
|
|
190725
190833
|
PERMISSION_RULE_SOURCES = [
|
|
190726
190834
|
...SETTING_SOURCES,
|
|
190727
190835
|
"cliArg",
|
|
@@ -196015,7 +196123,7 @@ var init_feedback = __esm(() => {
|
|
|
196015
196123
|
description: `Submit feedback about Claude Code`,
|
|
196016
196124
|
argumentHint: "[report]",
|
|
196017
196125
|
isEnabled: () => !(isEnvTruthy(process.env.DISABLE_FEEDBACK_COMMAND) || isEnvTruthy(process.env.DISABLE_BUG_COMMAND) || isEssentialTrafficOnly() || process.env.USER_TYPE === "ant" || !isPolicyAllowed("allow_product_feedback")),
|
|
196018
|
-
load: () => import("./chunk-
|
|
196126
|
+
load: () => import("./chunk-efztk52j.js")
|
|
196019
196127
|
};
|
|
196020
196128
|
feedback_default = feedback;
|
|
196021
196129
|
});
|
|
@@ -196029,7 +196137,7 @@ var init_clear = __esm(() => {
|
|
|
196029
196137
|
description: "Clear conversation history and free up context",
|
|
196030
196138
|
aliases: ["reset", "new"],
|
|
196031
196139
|
supportsNonInteractive: false,
|
|
196032
|
-
load: () => import("./chunk-
|
|
196140
|
+
load: () => import("./chunk-jswd1q63.js")
|
|
196033
196141
|
};
|
|
196034
196142
|
clear_default = clear;
|
|
196035
196143
|
});
|
|
@@ -196043,7 +196151,7 @@ var init_color = __esm(() => {
|
|
|
196043
196151
|
description: "Set the prompt bar color for this session",
|
|
196044
196152
|
immediate: true,
|
|
196045
196153
|
argumentHint: "<color|default>",
|
|
196046
|
-
load: () => import("./chunk-
|
|
196154
|
+
load: () => import("./chunk-4net8san.js")
|
|
196047
196155
|
};
|
|
196048
196156
|
color_default = color2;
|
|
196049
196157
|
});
|
|
@@ -196493,7 +196601,7 @@ var init_copy = __esm(() => {
|
|
|
196493
196601
|
type: "local-jsx",
|
|
196494
196602
|
name: "copy",
|
|
196495
196603
|
description: "Copy Claude's last response to clipboard (or /copy N for the Nth-latest)",
|
|
196496
|
-
load: () => import("./chunk-
|
|
196604
|
+
load: () => import("./chunk-zkh6f4ct.js")
|
|
196497
196605
|
};
|
|
196498
196606
|
copy_default = copy;
|
|
196499
196607
|
});
|
|
@@ -196520,7 +196628,7 @@ var init_desktop = __esm(() => {
|
|
|
196520
196628
|
get isHidden() {
|
|
196521
196629
|
return !isSupportedPlatform2();
|
|
196522
196630
|
},
|
|
196523
|
-
load: () => import("./chunk-
|
|
196631
|
+
load: () => import("./chunk-n8ssddbw.js")
|
|
196524
196632
|
};
|
|
196525
196633
|
desktop_default = desktop;
|
|
196526
196634
|
});
|
|
@@ -196683,7 +196791,7 @@ var init_compact2 = __esm(() => {
|
|
|
196683
196791
|
isEnabled: () => !isEnvTruthy(process.env.DISABLE_COMPACT),
|
|
196684
196792
|
supportsNonInteractive: true,
|
|
196685
196793
|
argumentHint: "<optional custom summarization instructions>",
|
|
196686
|
-
load: () => import("./chunk-
|
|
196794
|
+
load: () => import("./chunk-cb5v8w7k.js")
|
|
196687
196795
|
};
|
|
196688
196796
|
compact_default = compact;
|
|
196689
196797
|
});
|
|
@@ -196696,7 +196804,7 @@ var init_config7 = __esm(() => {
|
|
|
196696
196804
|
type: "local-jsx",
|
|
196697
196805
|
name: "config",
|
|
196698
196806
|
description: "Open config panel",
|
|
196699
|
-
load: () => import("./chunk-
|
|
196807
|
+
load: () => import("./chunk-3jw0r58d.js")
|
|
196700
196808
|
};
|
|
196701
196809
|
config_default = config2;
|
|
196702
196810
|
});
|
|
@@ -196710,7 +196818,7 @@ var init_context3 = __esm(() => {
|
|
|
196710
196818
|
description: "Visualize current context usage as a colored grid",
|
|
196711
196819
|
isEnabled: () => !getIsNonInteractiveSession(),
|
|
196712
196820
|
type: "local-jsx",
|
|
196713
|
-
load: () => import("./chunk-
|
|
196821
|
+
load: () => import("./chunk-fev86f95.js")
|
|
196714
196822
|
};
|
|
196715
196823
|
contextNonInteractive = {
|
|
196716
196824
|
type: "local",
|
|
@@ -196723,7 +196831,7 @@ var init_context3 = __esm(() => {
|
|
|
196723
196831
|
isEnabled() {
|
|
196724
196832
|
return getIsNonInteractiveSession();
|
|
196725
196833
|
},
|
|
196726
|
-
load: () => import("./chunk-
|
|
196834
|
+
load: () => import("./chunk-334aeqg9.js")
|
|
196727
196835
|
};
|
|
196728
196836
|
});
|
|
196729
196837
|
|
|
@@ -196736,7 +196844,7 @@ var init_cost = __esm(() => {
|
|
|
196736
196844
|
description: "Show the total cost and duration of the current session",
|
|
196737
196845
|
isHidden: false,
|
|
196738
196846
|
supportsNonInteractive: true,
|
|
196739
|
-
load: () => import("./chunk-
|
|
196847
|
+
load: () => import("./chunk-wz9brkq5.js")
|
|
196740
196848
|
};
|
|
196741
196849
|
cost_default = cost;
|
|
196742
196850
|
});
|
|
@@ -196748,7 +196856,7 @@ var init_diff2 = __esm(() => {
|
|
|
196748
196856
|
type: "local-jsx",
|
|
196749
196857
|
name: "diff",
|
|
196750
196858
|
description: "View uncommitted changes and per-turn diffs",
|
|
196751
|
-
load: () => import("./chunk-
|
|
196859
|
+
load: () => import("./chunk-086x4ct4.js")
|
|
196752
196860
|
};
|
|
196753
196861
|
});
|
|
196754
196862
|
|
|
@@ -196767,7 +196875,7 @@ var init_doctor = __esm(() => {
|
|
|
196767
196875
|
description: "Diagnose and verify your Claude Code installation and settings",
|
|
196768
196876
|
isEnabled: () => !isEnvTruthy(process.env.DISABLE_DOCTOR_COMMAND),
|
|
196769
196877
|
type: "local-jsx",
|
|
196770
|
-
load: () => import("./chunk-
|
|
196878
|
+
load: () => import("./chunk-kbhbe33q.js")
|
|
196771
196879
|
};
|
|
196772
196880
|
doctor_default = doctor;
|
|
196773
196881
|
});
|
|
@@ -196779,7 +196887,7 @@ var init_memory = __esm(() => {
|
|
|
196779
196887
|
type: "local-jsx",
|
|
196780
196888
|
name: "memory",
|
|
196781
196889
|
description: "Edit Claude memory files",
|
|
196782
|
-
load: () => import("./chunk-
|
|
196890
|
+
load: () => import("./chunk-zrkefd22.js")
|
|
196783
196891
|
};
|
|
196784
196892
|
memory_default = memory;
|
|
196785
196893
|
});
|
|
@@ -196791,7 +196899,7 @@ var init_help = __esm(() => {
|
|
|
196791
196899
|
type: "local-jsx",
|
|
196792
196900
|
name: "help",
|
|
196793
196901
|
description: "Show help and available commands",
|
|
196794
|
-
load: () => import("./chunk-
|
|
196902
|
+
load: () => import("./chunk-2mexte1r.js")
|
|
196795
196903
|
};
|
|
196796
196904
|
help_default = help;
|
|
196797
196905
|
});
|
|
@@ -196804,7 +196912,7 @@ var init_ide2 = __esm(() => {
|
|
|
196804
196912
|
name: "ide",
|
|
196805
196913
|
description: "Manage IDE integrations and show status",
|
|
196806
196914
|
argumentHint: "[open]",
|
|
196807
|
-
load: () => import("./chunk-
|
|
196915
|
+
load: () => import("./chunk-jyx3h86z.js")
|
|
196808
196916
|
};
|
|
196809
196917
|
ide_default = ide;
|
|
196810
196918
|
});
|
|
@@ -197129,7 +197237,7 @@ var init_keybindings = __esm(() => {
|
|
|
197129
197237
|
isEnabled: () => isKeybindingCustomizationEnabled(),
|
|
197130
197238
|
supportsNonInteractive: false,
|
|
197131
197239
|
type: "local",
|
|
197132
|
-
load: () => import("./chunk-
|
|
197240
|
+
load: () => import("./chunk-69dr6rrd.js")
|
|
197133
197241
|
};
|
|
197134
197242
|
keybindings_default = keybindings;
|
|
197135
197243
|
});
|
|
@@ -197143,7 +197251,7 @@ var init_logout = __esm(() => {
|
|
|
197143
197251
|
name: "logout",
|
|
197144
197252
|
description: "Sign out from your Anthropic account",
|
|
197145
197253
|
isEnabled: () => !isEnvTruthy(process.env.DISABLE_LOGOUT_COMMAND),
|
|
197146
|
-
load: () => import("./chunk-
|
|
197254
|
+
load: () => import("./chunk-8r975mwc.js")
|
|
197147
197255
|
};
|
|
197148
197256
|
});
|
|
197149
197257
|
|
|
@@ -197156,7 +197264,7 @@ var init_install_slack_app = __esm(() => {
|
|
|
197156
197264
|
description: "Install the Claude Slack app",
|
|
197157
197265
|
availability: ["claude-ai"],
|
|
197158
197266
|
supportsNonInteractive: false,
|
|
197159
|
-
load: () => import("./chunk-
|
|
197267
|
+
load: () => import("./chunk-2tb6mzfc.js")
|
|
197160
197268
|
};
|
|
197161
197269
|
install_slack_app_default = installSlackApp;
|
|
197162
197270
|
});
|
|
@@ -197176,7 +197284,7 @@ var init_mcp = __esm(() => {
|
|
|
197176
197284
|
description: "Manage MCP servers",
|
|
197177
197285
|
immediate: true,
|
|
197178
197286
|
argumentHint: "[enable|disable [server-name]]",
|
|
197179
|
-
load: () => import("./chunk-
|
|
197287
|
+
load: () => import("./chunk-yqs481qq.js")
|
|
197180
197288
|
};
|
|
197181
197289
|
mcp_default = mcp;
|
|
197182
197290
|
});
|
|
@@ -197305,7 +197413,7 @@ var init_release_notes = __esm(() => {
|
|
|
197305
197413
|
name: "release-notes",
|
|
197306
197414
|
type: "local",
|
|
197307
197415
|
supportsNonInteractive: true,
|
|
197308
|
-
load: () => import("./chunk-
|
|
197416
|
+
load: () => import("./chunk-h19r628d.js")
|
|
197309
197417
|
};
|
|
197310
197418
|
release_notes_default = releaseNotes;
|
|
197311
197419
|
});
|
|
@@ -197319,7 +197427,7 @@ var init_rename = __esm(() => {
|
|
|
197319
197427
|
description: "Rename the current conversation",
|
|
197320
197428
|
immediate: true,
|
|
197321
197429
|
argumentHint: "[name]",
|
|
197322
|
-
load: () => import("./chunk-
|
|
197430
|
+
load: () => import("./chunk-r63tqmtk.js")
|
|
197323
197431
|
};
|
|
197324
197432
|
rename_default = rename5;
|
|
197325
197433
|
});
|
|
@@ -197333,7 +197441,7 @@ var init_resume = __esm(() => {
|
|
|
197333
197441
|
description: "Resume a previous conversation",
|
|
197334
197442
|
aliases: ["continue"],
|
|
197335
197443
|
argumentHint: "[conversation id or search term]",
|
|
197336
|
-
load: () => import("./chunk-
|
|
197444
|
+
load: () => import("./chunk-1fmb0njn.js")
|
|
197337
197445
|
};
|
|
197338
197446
|
resume_default = resume;
|
|
197339
197447
|
});
|
|
@@ -197389,7 +197497,7 @@ var init_review = __esm(() => {
|
|
|
197389
197497
|
name: "ultrareview",
|
|
197390
197498
|
description: `~10\u201320 min \xB7 Finds and verifies bugs in your branch. Runs in Claude Code on the web. See ${CCR_TERMS_URL}`,
|
|
197391
197499
|
isEnabled: () => isUltrareviewEnabled(),
|
|
197392
|
-
load: () => import("./chunk-
|
|
197500
|
+
load: () => import("./chunk-gq7zab4e.js")
|
|
197393
197501
|
};
|
|
197394
197502
|
review_default = review;
|
|
197395
197503
|
});
|
|
@@ -197407,7 +197515,7 @@ var init_session = __esm(() => {
|
|
|
197407
197515
|
get isHidden() {
|
|
197408
197516
|
return !getIsRemoteMode();
|
|
197409
197517
|
},
|
|
197410
|
-
load: () => import("./chunk-
|
|
197518
|
+
load: () => import("./chunk-5hf3werb.js")
|
|
197411
197519
|
};
|
|
197412
197520
|
session_default = session;
|
|
197413
197521
|
});
|
|
@@ -197425,7 +197533,7 @@ var init_skills2 = __esm(() => {
|
|
|
197425
197533
|
type: "local-jsx",
|
|
197426
197534
|
name: "skills",
|
|
197427
197535
|
description: "List available skills",
|
|
197428
|
-
load: () => import("./chunk-
|
|
197536
|
+
load: () => import("./chunk-a0m57ssq.js")
|
|
197429
197537
|
};
|
|
197430
197538
|
skills_default = skills;
|
|
197431
197539
|
});
|
|
@@ -197438,7 +197546,7 @@ var init_status = __esm(() => {
|
|
|
197438
197546
|
name: "status",
|
|
197439
197547
|
description: "Show Claude Code status including version, model, account, API connectivity, and tool statuses",
|
|
197440
197548
|
immediate: true,
|
|
197441
|
-
load: () => import("./chunk-
|
|
197549
|
+
load: () => import("./chunk-jj71qx7m.js")
|
|
197442
197550
|
};
|
|
197443
197551
|
status_default = status;
|
|
197444
197552
|
});
|
|
@@ -197451,7 +197559,7 @@ var init_tasks3 = __esm(() => {
|
|
|
197451
197559
|
name: "tasks",
|
|
197452
197560
|
aliases: ["bashes"],
|
|
197453
197561
|
description: "List and manage background tasks",
|
|
197454
|
-
load: () => import("./chunk-
|
|
197562
|
+
load: () => import("./chunk-04n4fe72.js")
|
|
197455
197563
|
};
|
|
197456
197564
|
tasks_default = tasks;
|
|
197457
197565
|
});
|
|
@@ -197715,7 +197823,7 @@ var init_terminalSetup2 = __esm(() => {
|
|
|
197715
197823
|
name: "terminal-setup",
|
|
197716
197824
|
description: env.terminal === "Apple_Terminal" ? "Enable Option+Enter key binding for newlines and visual bell" : "Install Shift+Enter key binding for newlines",
|
|
197717
197825
|
isHidden: env.terminal !== null && env.terminal in NATIVE_CSIU_TERMINALS,
|
|
197718
|
-
load: () => import("./chunk-
|
|
197826
|
+
load: () => import("./chunk-4v125j4z.js")
|
|
197719
197827
|
};
|
|
197720
197828
|
terminalSetup_default = terminalSetup;
|
|
197721
197829
|
});
|
|
@@ -197728,7 +197836,7 @@ var init_usage = __esm(() => {
|
|
|
197728
197836
|
name: "usage",
|
|
197729
197837
|
description: "Show plan usage limits",
|
|
197730
197838
|
availability: ["claude-ai"],
|
|
197731
|
-
load: () => import("./chunk-
|
|
197839
|
+
load: () => import("./chunk-t70t2gne.js")
|
|
197732
197840
|
};
|
|
197733
197841
|
});
|
|
197734
197842
|
|
|
@@ -197739,7 +197847,7 @@ var init_theme2 = __esm(() => {
|
|
|
197739
197847
|
type: "local-jsx",
|
|
197740
197848
|
name: "theme",
|
|
197741
197849
|
description: "Change the theme",
|
|
197742
|
-
load: () => import("./chunk-
|
|
197850
|
+
load: () => import("./chunk-5wfxvxm8.js")
|
|
197743
197851
|
};
|
|
197744
197852
|
theme_default = theme;
|
|
197745
197853
|
});
|
|
@@ -197752,7 +197860,7 @@ var init_vim = __esm(() => {
|
|
|
197752
197860
|
description: "Toggle between Vim and Normal editing modes",
|
|
197753
197861
|
supportsNonInteractive: false,
|
|
197754
197862
|
type: "local",
|
|
197755
|
-
load: () => import("./chunk-
|
|
197863
|
+
load: () => import("./chunk-g7cmtx8r.js")
|
|
197756
197864
|
};
|
|
197757
197865
|
vim_default = command5;
|
|
197758
197866
|
});
|
|
@@ -197766,7 +197874,7 @@ var init_thinkback = __esm(() => {
|
|
|
197766
197874
|
name: "think-back",
|
|
197767
197875
|
description: "Your 2025 Claude Code Year in Review",
|
|
197768
197876
|
isEnabled: () => checkStatsigFeatureGate_CACHED_MAY_BE_STALE("tengu_thinkback"),
|
|
197769
|
-
load: () => import("./chunk-
|
|
197877
|
+
load: () => import("./chunk-f2ajmcav.js")
|
|
197770
197878
|
};
|
|
197771
197879
|
thinkback_default = thinkback;
|
|
197772
197880
|
});
|
|
@@ -197782,7 +197890,7 @@ var init_thinkback_play = __esm(() => {
|
|
|
197782
197890
|
isEnabled: () => checkStatsigFeatureGate_CACHED_MAY_BE_STALE("tengu_thinkback"),
|
|
197783
197891
|
isHidden: true,
|
|
197784
197892
|
supportsNonInteractive: false,
|
|
197785
|
-
load: () => import("./chunk-
|
|
197893
|
+
load: () => import("./chunk-gg14h3n4.js")
|
|
197786
197894
|
};
|
|
197787
197895
|
thinkback_play_default = thinkbackPlay;
|
|
197788
197896
|
});
|
|
@@ -197795,7 +197903,7 @@ var init_permissions4 = __esm(() => {
|
|
|
197795
197903
|
name: "permissions",
|
|
197796
197904
|
aliases: ["allowed-tools"],
|
|
197797
197905
|
description: "Manage allow & deny tool permission rules",
|
|
197798
|
-
load: () => import("./chunk-
|
|
197906
|
+
load: () => import("./chunk-mr2z79r3.js")
|
|
197799
197907
|
};
|
|
197800
197908
|
permissions_default = permissions;
|
|
197801
197909
|
});
|
|
@@ -197808,7 +197916,7 @@ var init_plan = __esm(() => {
|
|
|
197808
197916
|
name: "plan",
|
|
197809
197917
|
description: "Enable plan mode or view the current session plan",
|
|
197810
197918
|
argumentHint: "[open|<description>]",
|
|
197811
|
-
load: () => import("./chunk-
|
|
197919
|
+
load: () => import("./chunk-87m69h0v.js")
|
|
197812
197920
|
};
|
|
197813
197921
|
plan_default = plan;
|
|
197814
197922
|
});
|
|
@@ -197841,7 +197949,7 @@ var init_fast = __esm(() => {
|
|
|
197841
197949
|
get immediate() {
|
|
197842
197950
|
return shouldInferenceConfigCommandBeImmediate();
|
|
197843
197951
|
},
|
|
197844
|
-
load: () => import("./chunk-
|
|
197952
|
+
load: () => import("./chunk-r1dh0ymt.js")
|
|
197845
197953
|
};
|
|
197846
197954
|
fast_default = fast;
|
|
197847
197955
|
});
|
|
@@ -197864,7 +197972,7 @@ var init_passes = __esm(() => {
|
|
|
197864
197972
|
const { eligible, hasCache } = checkCachedPassesEligibility();
|
|
197865
197973
|
return !eligible || !hasCache;
|
|
197866
197974
|
},
|
|
197867
|
-
load: () => import("./chunk-
|
|
197975
|
+
load: () => import("./chunk-5bsj67v1.js")
|
|
197868
197976
|
};
|
|
197869
197977
|
});
|
|
197870
197978
|
|
|
@@ -197878,7 +197986,7 @@ var init_privacy_settings = __esm(() => {
|
|
|
197878
197986
|
isEnabled: () => {
|
|
197879
197987
|
return isConsumerSubscriber();
|
|
197880
197988
|
},
|
|
197881
|
-
load: () => import("./chunk-
|
|
197989
|
+
load: () => import("./chunk-11pq9n08.js")
|
|
197882
197990
|
};
|
|
197883
197991
|
privacy_settings_default = privacySettings;
|
|
197884
197992
|
});
|
|
@@ -197891,7 +197999,7 @@ var init_hooks = __esm(() => {
|
|
|
197891
197999
|
name: "hooks",
|
|
197892
198000
|
description: "View hook configurations for tool events",
|
|
197893
198001
|
immediate: true,
|
|
197894
|
-
load: () => import("./chunk-
|
|
198002
|
+
load: () => import("./chunk-dc06c3rw.js")
|
|
197895
198003
|
};
|
|
197896
198004
|
hooks_default = hooks;
|
|
197897
198005
|
});
|
|
@@ -197919,7 +198027,7 @@ var init_branch = __esm(() => {
|
|
|
197919
198027
|
aliases: ["fork"],
|
|
197920
198028
|
description: "Create a branch of the current conversation at this point",
|
|
197921
198029
|
argumentHint: "[name]",
|
|
197922
|
-
load: () => import("./chunk-
|
|
198030
|
+
load: () => import("./chunk-1ng8xwxz.js")
|
|
197923
198031
|
};
|
|
197924
198032
|
branch_default = branch;
|
|
197925
198033
|
});
|
|
@@ -197931,7 +198039,7 @@ var init_agents = __esm(() => {
|
|
|
197931
198039
|
type: "local-jsx",
|
|
197932
198040
|
name: "agents",
|
|
197933
198041
|
description: "Manage agent configurations",
|
|
197934
|
-
load: () => import("./chunk-
|
|
198042
|
+
load: () => import("./chunk-6dp8sz55.js")
|
|
197935
198043
|
};
|
|
197936
198044
|
agents_default = agents;
|
|
197937
198045
|
});
|
|
@@ -197945,7 +198053,7 @@ var init_plugin2 = __esm(() => {
|
|
|
197945
198053
|
aliases: ["plugins", "marketplace"],
|
|
197946
198054
|
description: "Manage Claude Code plugins",
|
|
197947
198055
|
immediate: true,
|
|
197948
|
-
load: () => import("./chunk-
|
|
198056
|
+
load: () => import("./chunk-jka9vpak.js")
|
|
197949
198057
|
};
|
|
197950
198058
|
plugin_default = plugin;
|
|
197951
198059
|
});
|
|
@@ -197958,7 +198066,7 @@ var init_reload_plugins = __esm(() => {
|
|
|
197958
198066
|
name: "reload-plugins",
|
|
197959
198067
|
description: "Activate pending plugin changes in the current session",
|
|
197960
198068
|
supportsNonInteractive: false,
|
|
197961
|
-
load: () => import("./chunk-
|
|
198069
|
+
load: () => import("./chunk-a0nsmmz1.js")
|
|
197962
198070
|
};
|
|
197963
198071
|
reload_plugins_default = reloadPlugins;
|
|
197964
198072
|
});
|
|
@@ -197987,7 +198095,7 @@ var init_heapdump = __esm(() => {
|
|
|
197987
198095
|
description: "Dump the JS heap to ~/Desktop",
|
|
197988
198096
|
isHidden: true,
|
|
197989
198097
|
supportsNonInteractive: true,
|
|
197990
|
-
load: () => import("./chunk-
|
|
198098
|
+
load: () => import("./chunk-j6v3w4yf.js")
|
|
197991
198099
|
};
|
|
197992
198100
|
heapdump_default = heapDump;
|
|
197993
198101
|
});
|
|
@@ -198149,7 +198257,7 @@ var init_bridge_kick = __esm(() => {
|
|
|
198149
198257
|
var call2 = async () => {
|
|
198150
198258
|
return {
|
|
198151
198259
|
type: "text",
|
|
198152
|
-
value: `${"0.0.
|
|
198260
|
+
value: `${"0.0.25"} (built ${"2026-08-20T02:48:13.549Z"})`
|
|
198153
198261
|
};
|
|
198154
198262
|
}, version, version_default;
|
|
198155
198263
|
var init_version2 = __esm(() => {
|
|
@@ -198225,7 +198333,7 @@ var init_sandbox_toggle = __esm(() => {
|
|
|
198225
198333
|
},
|
|
198226
198334
|
immediate: true,
|
|
198227
198335
|
type: "local-jsx",
|
|
198228
|
-
load: () => import("./chunk-
|
|
198336
|
+
load: () => import("./chunk-pyq0fabn.js")
|
|
198229
198337
|
};
|
|
198230
198338
|
sandbox_toggle_default = command6;
|
|
198231
198339
|
});
|
|
@@ -198240,7 +198348,7 @@ var init_chrome = __esm(() => {
|
|
|
198240
198348
|
availability: [],
|
|
198241
198349
|
isEnabled: () => !getIsNonInteractiveSession(),
|
|
198242
198350
|
type: "local-jsx",
|
|
198243
|
-
load: () => import("./chunk-
|
|
198351
|
+
load: () => import("./chunk-2mzaqh5g.js")
|
|
198244
198352
|
};
|
|
198245
198353
|
chrome_default = command7;
|
|
198246
198354
|
});
|
|
@@ -198762,7 +198870,7 @@ var init_exit = __esm(() => {
|
|
|
198762
198870
|
aliases: ["quit"],
|
|
198763
198871
|
description: "Exit the REPL",
|
|
198764
198872
|
immediate: true,
|
|
198765
|
-
load: () => import("./chunk-
|
|
198873
|
+
load: () => import("./chunk-jc29d2nm.js")
|
|
198766
198874
|
};
|
|
198767
198875
|
exit_default = exit;
|
|
198768
198876
|
});
|
|
@@ -198775,7 +198883,7 @@ var init_export = __esm(() => {
|
|
|
198775
198883
|
name: "export",
|
|
198776
198884
|
description: "Export the current conversation to a file or clipboard",
|
|
198777
198885
|
argumentHint: "[filename]",
|
|
198778
|
-
load: () => import("./chunk-
|
|
198886
|
+
load: () => import("./chunk-sdtqm0nm.js")
|
|
198779
198887
|
};
|
|
198780
198888
|
export_default = exportCommand;
|
|
198781
198889
|
});
|
|
@@ -198795,7 +198903,7 @@ var init_model2 = __esm(() => {
|
|
|
198795
198903
|
get immediate() {
|
|
198796
198904
|
return shouldInferenceConfigCommandBeImmediate();
|
|
198797
198905
|
},
|
|
198798
|
-
load: () => import("./chunk-
|
|
198906
|
+
load: () => import("./chunk-04ys66ej.js")
|
|
198799
198907
|
};
|
|
198800
198908
|
});
|
|
198801
198909
|
|
|
@@ -198808,7 +198916,7 @@ var init_tag = __esm(() => {
|
|
|
198808
198916
|
description: "Toggle a searchable tag on the current session",
|
|
198809
198917
|
isEnabled: () => process.env.USER_TYPE === "ant",
|
|
198810
198918
|
argumentHint: "<tag-name>",
|
|
198811
|
-
load: () => import("./chunk-
|
|
198919
|
+
load: () => import("./chunk-zay4xp4n.js")
|
|
198812
198920
|
};
|
|
198813
198921
|
tag_default = tag;
|
|
198814
198922
|
});
|
|
@@ -198838,7 +198946,7 @@ var init_remote_env = __esm(() => {
|
|
|
198838
198946
|
get isHidden() {
|
|
198839
198947
|
return !isPolicyAllowed("allow_remote_sessions");
|
|
198840
198948
|
},
|
|
198841
|
-
load: () => import("./chunk-
|
|
198949
|
+
load: () => import("./chunk-r36xvgvv.js")
|
|
198842
198950
|
};
|
|
198843
198951
|
});
|
|
198844
198952
|
|
|
@@ -198868,7 +198976,7 @@ var init_rate_limit_options = __esm(() => {
|
|
|
198868
198976
|
return false;
|
|
198869
198977
|
},
|
|
198870
198978
|
isHidden: true,
|
|
198871
|
-
load: () => import("./chunk-
|
|
198979
|
+
load: () => import("./chunk-w9b6kngq.js")
|
|
198872
198980
|
};
|
|
198873
198981
|
rate_limit_options_default = rateLimitOptions;
|
|
198874
198982
|
});
|
|
@@ -198916,7 +199024,7 @@ var init_effort2 = __esm(() => {
|
|
|
198916
199024
|
get immediate() {
|
|
198917
199025
|
return shouldInferenceConfigCommandBeImmediate();
|
|
198918
199026
|
},
|
|
198919
|
-
load: () => import("./chunk-
|
|
199027
|
+
load: () => import("./chunk-ah0zarbq.js")
|
|
198920
199028
|
};
|
|
198921
199029
|
});
|
|
198922
199030
|
|
|
@@ -198927,7 +199035,7 @@ var init_stats = __esm(() => {
|
|
|
198927
199035
|
type: "local-jsx",
|
|
198928
199036
|
name: "stats",
|
|
198929
199037
|
description: "Show your Claude Code usage statistics and activity",
|
|
198930
|
-
load: () => import("./chunk-
|
|
199038
|
+
load: () => import("./chunk-hmv4hhqt.js")
|
|
198931
199039
|
};
|
|
198932
199040
|
stats_default = stats;
|
|
198933
199041
|
});
|
|
@@ -199789,7 +199897,7 @@ var init_commands2 = __esm(() => {
|
|
|
199789
199897
|
progressMessage: "analyzing your sessions",
|
|
199790
199898
|
source: "builtin",
|
|
199791
199899
|
async getPromptForCommand(args, context2) {
|
|
199792
|
-
const real = (await import("./chunk-
|
|
199900
|
+
const real = (await import("./chunk-g4znz46v.js")).default;
|
|
199793
199901
|
if (real.type !== "prompt")
|
|
199794
199902
|
throw new Error("unreachable");
|
|
199795
199903
|
return real.getPromptForCommand(args, context2);
|
|
@@ -203061,7 +203169,7 @@ var init_sessionStorage = __esm(() => {
|
|
|
203061
203169
|
init_settings2();
|
|
203062
203170
|
init_slowOperations();
|
|
203063
203171
|
init_uuid2();
|
|
203064
|
-
VERSION3 = typeof MACRO !== "undefined" ? "0.0.
|
|
203172
|
+
VERSION3 = typeof MACRO !== "undefined" ? "0.0.25" : "unknown";
|
|
203065
203173
|
MAX_TOMBSTONE_REWRITE_BYTES = 50 * 1024 * 1024;
|
|
203066
203174
|
SKIP_FIRST_PROMPT_PATTERN = /^(?:\s*<[a-z][\w-]*[\s>]|\[Request interrupted by user[^\]]*\])/;
|
|
203067
203175
|
EPHEMERAL_PROGRESS_TYPES = new Set([
|
|
@@ -204265,7 +204373,7 @@ var init_filesystem = __esm(() => {
|
|
|
204265
204373
|
});
|
|
204266
204374
|
getBundledSkillsRoot = memoize_default(function getBundledSkillsRoot2() {
|
|
204267
204375
|
const nonce = randomBytes13(16).toString("hex");
|
|
204268
|
-
return join64(getClaudeTempDir(), "bundled-skills", "0.0.
|
|
204376
|
+
return join64(getClaudeTempDir(), "bundled-skills", "0.0.25", nonce);
|
|
204269
204377
|
});
|
|
204270
204378
|
getResolvedWorkingDirPaths = memoize_default(getPathsForPermissionCheck);
|
|
204271
204379
|
});
|
|
@@ -205546,7 +205654,7 @@ var init_ssrfGuard = () => {};
|
|
|
205546
205654
|
|
|
205547
205655
|
// src/utils/hooks/execHttpHook.ts
|
|
205548
205656
|
async function getSandboxProxyConfig() {
|
|
205549
|
-
const { SandboxManager: SandboxManager3 } = await import("./chunk-
|
|
205657
|
+
const { SandboxManager: SandboxManager3 } = await import("./chunk-rbdd3q5k.js");
|
|
205550
205658
|
if (!SandboxManager3.isSandboxingEnabled()) {
|
|
205551
205659
|
return;
|
|
205552
205660
|
}
|