@claudiolabs/claudin 1.0.12 → 1.0.13
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/chunks/AgentTool-1.0.13-6b06g673.mjs +1 -0
- package/dist/chunks/App-1.0.13-ka050dp3.mjs +1 -0
- package/dist/chunks/ApproveApiKey-1.0.13-f6p2r5kq.mjs +1 -0
- package/dist/chunks/AssistantSessionChooser-1.0.13-ghffkhts.mjs +1 -0
- package/dist/chunks/AutoModeOptInDialog-1.0.13-5b244jsj.mjs +1 -0
- package/dist/chunks/BypassPermissionsModeDialog-1.0.13-eqq7qkpy.mjs +1 -0
- package/dist/chunks/ClaudeMdExternalIncludesDialog-1.0.13-5279tcga.mjs +1 -0
- package/dist/chunks/ConsoleOAuthFlow-1.0.13-gwgar56n.mjs +1 -0
- package/dist/chunks/DiffDialog-1.0.13-2jaehz54.mjs +7 -0
- package/dist/chunks/Doctor-1.0.13-t887gwxz.mjs +1 -0
- package/dist/chunks/ExplorerDialog-1.0.13-85gxb6k8.mjs +6 -0
- package/dist/chunks/Grove-1.0.13-hdw88war.mjs +1 -0
- package/dist/chunks/ITermBackend-1.0.13-m0d78jq0.mjs +1 -0
- package/dist/chunks/InvalidConfigDialog-1.0.13-4z7zd6n8.mjs +1 -0
- package/dist/chunks/InvalidSettingsDialog-1.0.13-6xc5sc8a.mjs +1 -0
- package/dist/chunks/MigrationDialog-1.0.13-hhrgw5xc.mjs +1 -0
- package/dist/chunks/Onboarding-1.0.13-byv83gyv.mjs +1 -0
- package/dist/chunks/ProviderManager-1.0.13-gt6ntzcv.mjs +1 -0
- package/dist/chunks/REPL-1.0.13-wjxj6xgk.mjs +1 -0
- package/dist/chunks/ResumeConversation-1.0.13-tx1ek47f.mjs +1 -0
- package/dist/chunks/SnapshotUpdateDialog-1.0.13-4j2e4s72.mjs +1 -0
- package/dist/chunks/TeleportProgress-1.0.13-1rpjcxph.mjs +1 -0
- package/dist/chunks/TeleportRepoMismatchDialog-1.0.13-5fgav722.mjs +1 -0
- package/dist/chunks/TeleportResumeWrapper-1.0.13-gy4sr83e.mjs +1 -0
- package/dist/chunks/TmuxBackend-1.0.13-t98nfbxk.mjs +9 -0
- package/dist/chunks/ToolSearchTool-1.0.13-n5wg1rcd.mjs +1 -0
- package/dist/chunks/TrustDialog-1.0.13-xdkp37x2.mjs +1 -0
- package/dist/chunks/activeProvider-1.0.13-v0kphhga.mjs +1 -0
- package/dist/chunks/add-dir-1.0.13-7v5rg7km.mjs +1 -0
- package/dist/chunks/agentTypes-1.0.13-k5wckd5y.mjs +1 -0
- package/dist/chunks/agents-1.0.13-ngbk16a3.mjs +3 -0
- package/dist/chunks/agents-1.0.13-tcqasxmv.mjs +110 -0
- package/dist/chunks/api-1.0.13-bvwz0wzt.mjs +1 -0
- package/dist/chunks/asciicast-1.0.13-j8ad859r.mjs +1 -0
- package/dist/chunks/assistant-1.0.13-91499j0p.mjs +1 -0
- package/dist/chunks/auth-1.0.13-p0qrnz2b.mjs +1 -0
- package/dist/chunks/auth-1.0.13-s1vedchg.mjs +1 -0
- package/dist/chunks/autoMode-1.0.13-61pvskhh.mjs +48 -0
- package/dist/chunks/autoUpdater-1.0.13-fnpzj0bw.mjs +1 -0
- package/dist/chunks/backgroundHousekeeping-1.0.13-92x690ww.mjs +1 -0
- package/dist/chunks/branch-1.0.13-encr40nd.mjs +4 -0
- package/dist/chunks/bridge-1.0.13-xfcd961b.mjs +2 -0
- package/dist/chunks/bridgeConfig-1.0.13-m2jyf3zk.mjs +1 -0
- package/dist/chunks/bridgeEnabled-1.0.13-2chm7y0g.mjs +1 -0
- package/dist/chunks/bridgeMain-1.0.13-d64q1ebx.mjs +88 -0
- package/dist/chunks/bridgePointer-1.0.13-npck2cd4.mjs +1 -0
- package/dist/chunks/btw-1.0.13-55x872ns.mjs +1 -0
- package/dist/chunks/buddy-1.0.13-9dmgywzm.mjs +3 -0
- package/dist/chunks/cacache-1.0.13-3c5hrrs4.mjs +1 -0
- package/dist/chunks/cache-probe-1.0.13-n8g8y16c.mjs +21 -0
- package/dist/chunks/cacheStats-1.0.13-2kyncvct.mjs +4 -0
- package/dist/chunks/caches-1.0.13-md3zkabd.mjs +1 -0
- package/dist/chunks/claudeDesktop-1.0.13-crk87hee.mjs +1 -0
- package/dist/chunks/claudemd-1.0.13-y42xe571.mjs +1 -0
- package/dist/chunks/clear-1.0.13-g8a3zjew.mjs +1 -0
- package/dist/chunks/clearTerminal-1.0.13-4k4snh0r.mjs +1 -0
- package/dist/chunks/cli-1.0.13-01n6gr4q.mjs +2 -0
- package/dist/chunks/cli-1.0.13-0357cnwe.mjs +2 -0
- package/dist/chunks/cli-1.0.13-14c24kge.mjs +2 -0
- package/dist/chunks/cli-1.0.13-19k4k5jx.mjs +2 -0
- package/dist/chunks/cli-1.0.13-1dk8e4ny.mjs +3 -0
- package/dist/chunks/cli-1.0.13-1hcywhe5.mjs +2 -0
- package/dist/chunks/cli-1.0.13-1hdbaf71.mjs +3 -0
- package/dist/chunks/cli-1.0.13-1qbvvc2e.mjs +4 -0
- package/dist/chunks/cli-1.0.13-23ev2ept.mjs +45 -0
- package/dist/chunks/cli-1.0.13-29x94tf7.mjs +2 -0
- package/dist/chunks/cli-1.0.13-2x789qav.mjs +2 -0
- package/dist/chunks/cli-1.0.13-2xpprn71.mjs +1 -0
- package/dist/chunks/cli-1.0.13-2z8q1mtz.mjs +3 -0
- package/dist/chunks/cli-1.0.13-36yeyd1r.mjs +18 -0
- package/dist/chunks/cli-1.0.13-3767t4yj.mjs +4 -0
- package/dist/chunks/cli-1.0.13-3c13b00m.mjs +2 -0
- package/dist/chunks/cli-1.0.13-3dmmr756.mjs +2 -0
- package/dist/chunks/cli-1.0.13-3essvqs1.mjs +2 -0
- package/dist/chunks/cli-1.0.13-3f0zqjp8.mjs +2 -0
- package/dist/chunks/cli-1.0.13-3fs84evm.mjs +2 -0
- package/dist/chunks/cli-1.0.13-3pspajgg.mjs +15 -0
- package/dist/chunks/cli-1.0.13-3rqmqts3.mjs +2 -0
- package/dist/chunks/cli-1.0.13-449f1p6g.mjs +2 -0
- package/dist/chunks/cli-1.0.13-466jbd1q.mjs +2 -0
- package/dist/chunks/cli-1.0.13-4dp5a597.mjs +6 -0
- package/dist/chunks/cli-1.0.13-4x3mr6wk.mjs +2 -0
- package/dist/chunks/cli-1.0.13-57993qn6.mjs +2 -0
- package/dist/chunks/cli-1.0.13-57ez593b.mjs +3 -0
- package/dist/chunks/cli-1.0.13-5g7rhqvq.mjs +4 -0
- package/dist/chunks/cli-1.0.13-5keyjg3e.mjs +58 -0
- package/dist/chunks/cli-1.0.13-5m2br5vf.mjs +2 -0
- package/dist/chunks/cli-1.0.13-5sc2h2hm.mjs +2 -0
- package/dist/chunks/cli-1.0.13-5sq4jbf1.mjs +2 -0
- package/dist/chunks/cli-1.0.13-696y87my.mjs +18 -0
- package/dist/chunks/cli-1.0.13-6b6kn6sd.mjs +2 -0
- package/dist/chunks/cli-1.0.13-6thbqr6g.mjs +2 -0
- package/dist/chunks/cli-1.0.13-6vb140br.mjs +25 -0
- package/dist/chunks/cli-1.0.13-6w1rqgrf.mjs +2 -0
- package/dist/chunks/cli-1.0.13-6xc8qzyr.mjs +2 -0
- package/dist/chunks/cli-1.0.13-6xkw8tq6.mjs +2 -0
- package/dist/chunks/cli-1.0.13-7kg0qv18.mjs +2 -0
- package/dist/chunks/cli-1.0.13-7nmrp6gh.mjs +2 -0
- package/dist/chunks/cli-1.0.13-7rg014zx.mjs +5 -0
- package/dist/chunks/cli-1.0.13-7xfra4by.mjs +2 -0
- package/dist/chunks/cli-1.0.13-80pk1w5c.mjs +2 -0
- package/dist/chunks/cli-1.0.13-81s2z4sy.mjs +2 -0
- package/dist/chunks/cli-1.0.13-83vckpyr.mjs +6 -0
- package/dist/chunks/cli-1.0.13-8s33s84f.mjs +2 -0
- package/dist/chunks/cli-1.0.13-93twxc7q.mjs +2 -0
- package/dist/chunks/cli-1.0.13-98a94f4b.mjs +2 -0
- package/dist/chunks/cli-1.0.13-9ax4vv5d.mjs +2 -0
- package/dist/chunks/cli-1.0.13-9bh8f53y.mjs +9 -0
- package/dist/chunks/cli-1.0.13-9t0q538w.mjs +25 -0
- package/dist/chunks/cli-1.0.13-a2j673qk.mjs +2 -0
- package/dist/chunks/cli-1.0.13-a5641ktm.mjs +2 -0
- package/dist/chunks/cli-1.0.13-a77ea1ga.mjs +2 -0
- package/dist/chunks/cli-1.0.13-a8t9066b.mjs +2 -0
- package/dist/chunks/cli-1.0.13-afdk25h0.mjs +2 -0
- package/dist/chunks/cli-1.0.13-avxss6zg.mjs +9 -0
- package/dist/chunks/cli-1.0.13-bj2neb84.mjs +2 -0
- package/dist/chunks/cli-1.0.13-bs0esgv1.mjs +2 -0
- package/dist/chunks/cli-1.0.13-byhjhrrg.mjs +15 -0
- package/dist/chunks/cli-1.0.13-cm3q208z.mjs +2 -0
- package/dist/chunks/cli-1.0.13-cwce8b7b.mjs +34 -0
- package/dist/chunks/cli-1.0.13-d016ffc7.mjs +3 -0
- package/dist/chunks/cli-1.0.13-d4zr1yqd.mjs +2 -0
- package/dist/chunks/cli-1.0.13-d7kr7nkk.mjs +2 -0
- package/dist/chunks/cli-1.0.13-dg21ms7f.mjs +2 -0
- package/dist/chunks/cli-1.0.13-dwp60tja.mjs +2 -0
- package/dist/chunks/cli-1.0.13-e19bb64d.mjs +4 -0
- package/dist/chunks/cli-1.0.13-e1m0dx6a.mjs +2 -0
- package/dist/chunks/cli-1.0.13-e3ca1xwv.mjs +2 -0
- package/dist/chunks/cli-1.0.13-e464ab16.mjs +2 -0
- package/dist/chunks/cli-1.0.13-e8p0r9r9.mjs +2 -0
- package/dist/chunks/cli-1.0.13-e9q9245e.mjs +2 -0
- package/dist/chunks/cli-1.0.13-ecv0stcf.mjs +2 -0
- package/dist/chunks/cli-1.0.13-ey9smtb0.mjs +3 -0
- package/dist/chunks/cli-1.0.13-f38bh25k.mjs +12 -0
- package/dist/chunks/cli-1.0.13-f4dfekwp.mjs +133 -0
- package/dist/chunks/cli-1.0.13-fb695nhr.mjs +67 -0
- package/dist/chunks/cli-1.0.13-fjwhbyeh.mjs +2 -0
- package/dist/chunks/cli-1.0.13-fpwws3z2.mjs +2 -0
- package/dist/chunks/cli-1.0.13-frs40s6h.mjs +2 -0
- package/dist/chunks/cli-1.0.13-fsmjqwpj.mjs +2 -0
- package/dist/chunks/cli-1.0.13-fta82vnx.mjs +2 -0
- package/dist/chunks/cli-1.0.13-g1rr0zfh.mjs +8 -0
- package/dist/chunks/cli-1.0.13-g7daabde.mjs +3 -0
- package/dist/chunks/cli-1.0.13-gd9e7w43.mjs +2 -0
- package/dist/chunks/cli-1.0.13-gsz0cygn.mjs +2 -0
- package/dist/chunks/cli-1.0.13-h5mwwv8w.mjs +16 -0
- package/dist/chunks/cli-1.0.13-hbcgx6rs.mjs +2 -0
- package/dist/chunks/cli-1.0.13-j0m03dqz.mjs +39 -0
- package/dist/chunks/cli-1.0.13-j3gww2v8.mjs +2 -0
- package/dist/chunks/cli-1.0.13-jdxaky02.mjs +12 -0
- package/dist/chunks/cli-1.0.13-jkahzkac.mjs +12 -0
- package/dist/chunks/cli-1.0.13-jrjz42t8.mjs +2 -0
- package/dist/chunks/cli-1.0.13-jsezewz5.mjs +2 -0
- package/dist/chunks/cli-1.0.13-jxe94sbj.mjs +2 -0
- package/dist/chunks/cli-1.0.13-k4znag0a.mjs +2 -0
- package/dist/chunks/cli-1.0.13-k71bq854.mjs +2 -0
- package/dist/chunks/cli-1.0.13-k8vrp1kw.mjs +2 -0
- package/dist/chunks/cli-1.0.13-kc1q3k9n.mjs +2 -0
- package/dist/chunks/cli-1.0.13-kg25kqz0.mjs +12 -0
- package/dist/chunks/cli-1.0.13-kmmkpfh0.mjs +2 -0
- package/dist/chunks/cli-1.0.13-knb8ctbq.mjs +3 -0
- package/dist/chunks/cli-1.0.13-kpqaz90n.mjs +7 -0
- package/dist/chunks/cli-1.0.13-kq0mvqax.mjs +2 -0
- package/dist/chunks/cli-1.0.13-kr3d94dn.mjs +5495 -0
- package/dist/chunks/cli-1.0.13-m5hkpjvs.mjs +2 -0
- package/dist/chunks/cli-1.0.13-mazxedqg.mjs +4 -0
- package/dist/chunks/cli-1.0.13-mtnc53tx.mjs +2 -0
- package/dist/chunks/cli-1.0.13-mv57kk3c.mjs +59 -0
- package/dist/chunks/cli-1.0.13-n4fsyme7.mjs +2 -0
- package/dist/chunks/cli-1.0.13-ndthc14d.mjs +2 -0
- package/dist/chunks/cli-1.0.13-nqw7f2pt.mjs +2 -0
- package/dist/chunks/cli-1.0.13-ns8m0h8r.mjs +15 -0
- package/dist/chunks/cli-1.0.13-p1nsb8ay.mjs +202 -0
- package/dist/chunks/cli-1.0.13-p43t5py0.mjs +2 -0
- package/dist/chunks/cli-1.0.13-p7b51har.mjs +2 -0
- package/dist/chunks/cli-1.0.13-pajjrc2x.mjs +2 -0
- package/dist/chunks/cli-1.0.13-pf0ztxpx.mjs +6 -0
- package/dist/chunks/cli-1.0.13-ppdtae6a.mjs +2 -0
- package/dist/chunks/cli-1.0.13-pwfpt641.mjs +2 -0
- package/dist/chunks/cli-1.0.13-q03bdpb3.mjs +17 -0
- package/dist/chunks/cli-1.0.13-q40za40w.mjs +50 -0
- package/dist/chunks/cli-1.0.13-qpnp3w6h.mjs +2 -0
- package/dist/chunks/cli-1.0.13-qx079tft.mjs +2 -0
- package/dist/chunks/cli-1.0.13-qxebhem2.mjs +2 -0
- package/dist/chunks/cli-1.0.13-r6v8d7e7.mjs +2 -0
- package/dist/chunks/cli-1.0.13-r9nmkthw.mjs +2 -0
- package/dist/chunks/cli-1.0.13-rcrh6wfx.mjs +4 -0
- package/dist/chunks/cli-1.0.13-rgk2vrkz.mjs +2 -0
- package/dist/chunks/cli-1.0.13-rhptvh17.mjs +2 -0
- package/dist/chunks/cli-1.0.13-rxd329nn.mjs +24 -0
- package/dist/chunks/cli-1.0.13-ry9nsg8a.mjs +2 -0
- package/dist/chunks/cli-1.0.13-ryajgbr3.mjs +2 -0
- package/dist/chunks/cli-1.0.13-s15merj9.mjs +2 -0
- package/dist/chunks/cli-1.0.13-s16wgevn.mjs +2 -0
- package/dist/chunks/cli-1.0.13-s2czjfzp.mjs +2 -0
- package/dist/chunks/cli-1.0.13-s2sd6xfc.mjs +24 -0
- package/dist/chunks/cli-1.0.13-s5bfzdbk.mjs +2 -0
- package/dist/chunks/cli-1.0.13-sg6bkxg3.mjs +20 -0
- package/dist/chunks/cli-1.0.13-shrh1g4z.mjs +2 -0
- package/dist/chunks/cli-1.0.13-sj8rg9wk.mjs +24 -0
- package/dist/chunks/cli-1.0.13-smrxt9dh.mjs +2 -0
- package/dist/chunks/cli-1.0.13-smtbj9fm.mjs +2 -0
- package/dist/chunks/cli-1.0.13-sy93t0xx.mjs +2 -0
- package/dist/chunks/cli-1.0.13-t1z10ay5.mjs +2 -0
- package/dist/chunks/cli-1.0.13-t9wrrtrh.mjs +2 -0
- package/dist/chunks/cli-1.0.13-tfd5mr15.mjs +17 -0
- package/dist/chunks/cli-1.0.13-thxvtvt4.mjs +2 -0
- package/dist/chunks/cli-1.0.13-tmfvcmn3.mjs +2 -0
- package/dist/chunks/cli-1.0.13-tnq7z8s5.mjs +3 -0
- package/dist/chunks/cli-1.0.13-tp2w17kc.mjs +2 -0
- package/dist/chunks/cli-1.0.13-tq5m4f65.mjs +2 -0
- package/dist/chunks/cli-1.0.13-tr0fe3hn.mjs +2 -0
- package/dist/chunks/cli-1.0.13-trkevtw9.mjs +2 -0
- package/dist/chunks/cli-1.0.13-tyhtztew.mjs +2 -0
- package/dist/chunks/cli-1.0.13-v1tn9wpw.mjs +21 -0
- package/dist/chunks/cli-1.0.13-v38n7n4p.mjs +2 -0
- package/dist/chunks/cli-1.0.13-v4annnm3.mjs +2 -0
- package/dist/chunks/cli-1.0.13-v5gjxk3n.mjs +4 -0
- package/dist/chunks/cli-1.0.13-v7eb8n71.mjs +133 -0
- package/dist/chunks/cli-1.0.13-v8tce7qz.mjs +2 -0
- package/dist/chunks/cli-1.0.13-vb85p8we.mjs +2 -0
- package/dist/chunks/cli-1.0.13-vbby2x4m.mjs +2 -0
- package/dist/chunks/cli-1.0.13-vd01re4x.mjs +2 -0
- package/dist/chunks/cli-1.0.13-vp1h8f42.mjs +2 -0
- package/dist/chunks/cli-1.0.13-vs4d56js.mjs +2 -0
- package/dist/chunks/cli-1.0.13-vv5mtvhr.mjs +2 -0
- package/dist/chunks/cli-1.0.13-vvtdrd6j.mjs +5 -0
- package/dist/chunks/cli-1.0.13-vwmq6bde.mjs +2 -0
- package/dist/chunks/cli-1.0.13-w5jash5n.mjs +2 -0
- package/dist/chunks/cli-1.0.13-w7jh58qt.mjs +2 -0
- package/dist/chunks/cli-1.0.13-w8wwn19j.mjs +2 -0
- package/dist/chunks/cli-1.0.13-wmc6ft2f.mjs +6 -0
- package/dist/chunks/cli-1.0.13-wrcxv50n.mjs +2 -0
- package/dist/chunks/cli-1.0.13-wsk4823v.mjs +2 -0
- package/dist/chunks/cli-1.0.13-x4xwa6y3.mjs +4 -0
- package/dist/chunks/cli-1.0.13-x8j9z15q.mjs +3 -0
- package/dist/chunks/cli-1.0.13-xajnmhak.mjs +2 -0
- package/dist/chunks/cli-1.0.13-xg86t5j7.mjs +2 -0
- package/dist/chunks/cli-1.0.13-xpc2m6vc.mjs +2 -0
- package/dist/chunks/cli-1.0.13-xr55511t.mjs +2 -0
- package/dist/chunks/cli-1.0.13-xsvz53d6.mjs +42 -0
- package/dist/chunks/cli-1.0.13-y1kzayxj.mjs +18 -0
- package/dist/chunks/cli-1.0.13-y20sjx5k.mjs +6 -0
- package/dist/chunks/cli-1.0.13-y6y32j2s.mjs +2 -0
- package/dist/chunks/cli-1.0.13-y74xv34r.mjs +4 -0
- package/dist/chunks/cli-1.0.13-yb1smx77.mjs +2 -0
- package/dist/chunks/cli-1.0.13-ymvtrfgn.mjs +4 -0
- package/dist/chunks/cli-1.0.13-yq7961x3.mjs +4 -0
- package/dist/chunks/cli-1.0.13-yr590qbp.mjs +3 -0
- package/dist/chunks/cli-1.0.13-z72v7rwr.mjs +2 -0
- package/dist/chunks/cli-1.0.13-z8vs7cc1.mjs +2 -0
- package/dist/chunks/cli-1.0.13-zgdatr3s.mjs +3 -0
- package/dist/chunks/cli-1.0.13-zmyb9smk.mjs +2 -0
- package/dist/chunks/cli-1.0.13-zp9tvwgh.mjs +2 -0
- package/dist/chunks/cli-1.0.13-zt4bek0j.mjs +2 -0
- package/dist/chunks/cli-1.0.13-ztqnt3qp.mjs +2 -0
- package/dist/chunks/cli-1.0.13-zvemnxrj.mjs +2 -0
- package/dist/chunks/client-1.0.13-jj0v4n27.mjs +1 -0
- package/dist/chunks/color-1.0.13-3v7rvzdv.mjs +1 -0
- package/dist/chunks/compact-1.0.13-dbdbjtdk.mjs +3 -0
- package/dist/chunks/config-1.0.13-3qrt3cgm.mjs +1 -0
- package/dist/chunks/config-1.0.13-r3hkdrhb.mjs +1 -0
- package/dist/chunks/constants-1.0.13-rnw6yks8.mjs +1 -0
- package/dist/chunks/context-1.0.13-vzh7rmzp.mjs +1 -0
- package/dist/chunks/context-noninteractive-1.0.13-pch5w54p.mjs +1 -0
- package/dist/chunks/conversation-1.0.13-deetqyn0.mjs +1 -0
- package/dist/chunks/copilotHeaders-1.0.13-nt9wrgp5.mjs +1 -0
- package/dist/chunks/copy-1.0.13-hzdas7e3.mjs +9 -0
- package/dist/chunks/cost-1.0.13-6nzzt5ne.mjs +1 -0
- package/dist/chunks/createSSHSession-1.0.13-vy3mcz3k.mjs +1 -0
- package/dist/chunks/createSession-1.0.13-9f9eevz2.mjs +1 -0
- package/dist/chunks/debug-1.0.13-f3k3n0w9.mjs +1 -0
- package/dist/chunks/defaultActionDeps-1.0.13-cnw858jb.mjs +1446 -0
- package/dist/chunks/desktop-1.0.13-e005km58.mjs +1 -0
- package/dist/chunks/detectRepository-1.0.13-rjbmyf6j.mjs +1 -0
- package/dist/chunks/detection-1.0.13-fmg4e9cn.mjs +1 -0
- package/dist/chunks/diff-1.0.13-9jypv082.mjs +1 -0
- package/dist/chunks/doctor-1.0.13-8tdcwyds.mjs +1 -0
- package/dist/chunks/doctorDiagnostic-1.0.13-01b5f1qr.mjs +1 -0
- package/dist/chunks/earlyInput-1.0.13-qdaqzn87.mjs +1 -0
- package/dist/chunks/effort-1.0.13-xfj9x3jk.mjs +10 -0
- package/dist/chunks/engine-1.0.13-8zd1smqp.mjs +1 -0
- package/dist/chunks/envLessBridgeConfig-1.0.13-3pv6cjbw.mjs +1 -0
- package/dist/chunks/envUtils-1.0.13-vcp6531a.mjs +1 -0
- package/dist/chunks/environmentSelection-1.0.13-jeanv46d.mjs +1 -0
- package/dist/chunks/environments-1.0.13-w5a33d52.mjs +1 -0
- package/dist/chunks/errors-1.0.13-wrs4k863.mjs +1 -0
- package/dist/chunks/exampleCommands-1.0.13-f3v5223v.mjs +1 -0
- package/dist/chunks/execFileNoThrow-1.0.13-5qgqf50q.mjs +1 -0
- package/dist/chunks/exit-1.0.13-dkp2e02s.mjs +1 -0
- package/dist/chunks/explorer-1.0.13-0c0437ts.mjs +1 -0
- package/dist/chunks/export-1.0.13-cbatvd1c.mjs +2 -0
- package/dist/chunks/extra-usage-1.0.13-tm9dn26m.mjs +1 -0
- package/dist/chunks/extra-usage-noninteractive-1.0.13-tyfdd6zc.mjs +1 -0
- package/dist/chunks/fast-1.0.13-m2jj5axh.mjs +1 -0
- package/dist/chunks/feedback-1.0.13-3rc5sphe.mjs +14 -0
- package/dist/chunks/firstPartyEventLogger-1.0.13-9cqvyyy3.mjs +1 -0
- package/dist/chunks/git-1.0.13-9196pgzv.mjs +1 -0
- package/dist/chunks/githubModelsCredentials-1.0.13-h8fyv4hh.mjs +1 -0
- package/dist/chunks/goal-1.0.13-cty957vz.mjs +4 -0
- package/dist/chunks/grove-1.0.13-jew4jmvf.mjs +1 -0
- package/dist/chunks/growthbook-1.0.13-q8xh656p.mjs +1 -0
- package/dist/chunks/headless-1.0.13-h0c3ze3f.mjs +2 -0
- package/dist/chunks/heapdump-1.0.13-ndzc9093.mjs +6 -0
- package/dist/chunks/help-1.0.13-em333cwb.mjs +1 -0
- package/dist/chunks/hookChains-1.0.13-ytcm9p3p.mjs +3 -0
- package/dist/chunks/hooks-1.0.13-43xm69rv.mjs +79 -0
- package/dist/chunks/hooks-1.0.13-xa6gpzvq.mjs +1 -0
- package/dist/chunks/ide-1.0.13-4z1afk08.mjs +3 -0
- package/dist/chunks/image-processor-napi-1.0.13-e53cs6qw.mjs +1 -0
- package/dist/chunks/inboundAttachments-1.0.13-968zpe6v.mjs +1 -0
- package/dist/chunks/index-1.0.13-361h9v63.mjs +1 -0
- package/dist/chunks/index-1.0.13-4p1eb2pq.mjs +1 -0
- package/dist/chunks/index-1.0.13-55th4hhq.mjs +1 -0
- package/dist/chunks/index-1.0.13-55vgc9cr.mjs +1 -0
- package/dist/chunks/index-1.0.13-5gqy8x3m.mjs +1 -0
- package/dist/chunks/index-1.0.13-792fhv61.mjs +1 -0
- package/dist/chunks/index-1.0.13-8k0904bs.mjs +1 -0
- package/dist/chunks/index-1.0.13-ace8202d.mjs +2 -0
- package/dist/chunks/index-1.0.13-e20f9w6f.mjs +1 -0
- package/dist/chunks/index-1.0.13-efh2qbe0.mjs +1 -0
- package/dist/chunks/index-1.0.13-ej84k860.mjs +1 -0
- package/dist/chunks/index-1.0.13-fnd36467.mjs +2 -0
- package/dist/chunks/index-1.0.13-hdvj3xyt.mjs +30 -0
- package/dist/chunks/index-1.0.13-hgbqf3v1.mjs +1 -0
- package/dist/chunks/index-1.0.13-j0146ntq.mjs +1 -0
- package/dist/chunks/index-1.0.13-jackh0p4.mjs +17 -0
- package/dist/chunks/index-1.0.13-kfmh713v.mjs +9 -0
- package/dist/chunks/index-1.0.13-mrvd3mn4.mjs +1 -0
- package/dist/chunks/index-1.0.13-rrm8s54m.mjs +1 -0
- package/dist/chunks/index-1.0.13-vgmxqgw6.mjs +1 -0
- package/dist/chunks/index-1.0.13-xgbfdr5p.mjs +5 -0
- package/dist/chunks/index-1.0.13-y5wahjbd.mjs +9 -0
- package/dist/chunks/index-1.0.13-ykat42gv.mjs +1 -0
- package/dist/chunks/init-1.0.13-pyw980be.mjs +1 -0
- package/dist/chunks/initReplBridge-1.0.13-8pye5m3y.mjs +1 -0
- package/dist/chunks/ink-1.0.13-4ks3vqg1.mjs +1 -0
- package/dist/chunks/insights-1.0.13-8p04qt4e.mjs +870 -0
- package/dist/chunks/install-1.0.13-afmkvg4q.mjs +1 -0
- package/dist/chunks/install-github-app-1.0.13-nybxp9y9.mjs +149 -0
- package/dist/chunks/install-slack-app-1.0.13-ghycqjsr.mjs +1 -0
- package/dist/chunks/instrumentation-1.0.13-35rtw7fn.mjs +1 -0
- package/dist/chunks/interactiveHelpers-1.0.13-16ydy7kk.mjs +1 -0
- package/dist/chunks/keybindings-1.0.13-nt63s9bg.mjs +2 -0
- package/dist/chunks/knowledge-1.0.13-g9wcredx.mjs +2 -0
- package/dist/chunks/latestVersionCache-1.0.13-783kmyc1.mjs +1 -0
- package/dist/chunks/loadAgentsDir-1.0.13-btkcbfn1.mjs +1 -0
- package/dist/chunks/loadPluginHooks-1.0.13-6cxg0hz0.mjs +1 -0
- package/dist/chunks/loadPluginHooks-1.0.13-tf6npdgj.mjs +1 -0
- package/dist/chunks/log-1.0.13-3sscdqcx.mjs +1 -0
- package/dist/chunks/main-1.0.13-h958ytkv.mjs +1 -0
- package/dist/chunks/managedEnv-1.0.13-kcy78mg2.mjs +1 -0
- package/dist/chunks/mcp-1.0.13-gwfzhgtm.mjs +4 -0
- package/dist/chunks/mcp-1.0.13-s9hvy6a1.mjs +1 -0
- package/dist/chunks/mcp-1.0.13-vathcxfe.mjs +17 -0
- package/dist/chunks/mcpb-1.0.13-ynwdmrgy.mjs +1 -0
- package/dist/chunks/memory-1.0.13-y5pgdmp0.mjs +72 -0
- package/dist/chunks/model-1.0.13-28wkmva5.mjs +2 -0
- package/dist/chunks/model-1.0.13-wbne69bf.mjs +1 -0
- package/dist/chunks/node-1.0.13-jb6nf3sf.mjs +12 -0
- package/dist/chunks/oauth-1.0.13-x9g8753d.mjs +1 -0
- package/dist/chunks/openaiShim-1.0.13-dmzfpj84.mjs +14 -0
- package/dist/chunks/output-style-1.0.13-dkm9cvhh.mjs +1 -0
- package/dist/chunks/package-2VNCXFNY-1.0.13-c2rzk5s5.mjs +1 -0
- package/dist/chunks/parseConnectUrl-1.0.13-drfxxfbm.mjs +1 -0
- package/dist/chunks/parser-1.0.13-2a4gxkj4.mjs +1 -0
- package/dist/chunks/passes-1.0.13-xe1s3afm.mjs +1 -0
- package/dist/chunks/permissions-1.0.13-091a123r.mjs +1 -0
- package/dist/chunks/permissions-1.0.13-de2kak1c.mjs +3 -0
- package/dist/chunks/plan-1.0.13-nq51yj1w.mjs +1 -0
- package/dist/chunks/plist-1.0.13-9jnyqg5e.mjs +1 -0
- package/dist/chunks/plugin-1.0.13-ravfdrab.mjs +29 -0
- package/dist/chunks/pluginStartupCheck-1.0.13-bpnvrbf5.mjs +1 -0
- package/dist/chunks/plugins-1.0.13-2g0zcvmn.mjs +9 -0
- package/dist/chunks/preActionHook-1.0.13-sh1garss.mjs +2 -0
- package/dist/chunks/print-1.0.13-fbmdzf5h.mjs +57 -0
- package/dist/chunks/privacy-settings-1.0.13-xmggzdjb.mjs +1 -0
- package/dist/chunks/process-1.0.13-yvqmferw.mjs +1 -0
- package/dist/chunks/processBashCommand-1.0.13-vymx613b.mjs +1 -0
- package/dist/chunks/processSlashCommand-1.0.13-t2b59q54.mjs +9 -0
- package/dist/chunks/prompt-1.0.13-5rf0rmyz.mjs +1 -0
- package/dist/chunks/prompt-1.0.13-z2a6q0v3.mjs +1 -0
- package/dist/chunks/prompts-1.0.13-xntc8d09.mjs +1 -0
- package/dist/chunks/protocolHandler-1.0.13-c5pks46d.mjs +13 -0
- package/dist/chunks/provider-1.0.13-zfgjs99b.mjs +2 -0
- package/dist/chunks/providerProfiles-1.0.13-rk6z9ker.mjs +1 -0
- package/dist/chunks/providerValidation-1.0.13-w8m526k7.mjs +6 -0
- package/dist/chunks/rate-limit-options-1.0.13-2a7ezwjq.mjs +1 -0
- package/dist/chunks/registerSubcommands-1.0.13-fdj1d2vn.mjs +34 -0
- package/dist/chunks/registry-1.0.13-p4zgn33y.mjs +1 -0
- package/dist/chunks/release-notes-1.0.13-pgzcje06.mjs +5 -0
- package/dist/chunks/reload-plugins-1.0.13-6chpnefr.mjs +2 -0
- package/dist/chunks/remote-env-1.0.13-j1xk0q03.mjs +1 -0
- package/dist/chunks/remoteBridgeCore-1.0.13-ffh4q93x.mjs +1 -0
- package/dist/chunks/remoteSession-1.0.13-h715mcc6.mjs +1 -0
- package/dist/chunks/rename-1.0.13-x7fma5b1.mjs +1 -0
- package/dist/chunks/replBridgeHandle-1.0.13-d1r6xsjs.mjs +1 -0
- package/dist/chunks/replLauncher-1.0.13-bhshyrk2.mjs +1 -0
- package/dist/chunks/resume-1.0.13-g7w8k889.mjs +2 -0
- package/dist/chunks/rewind-1.0.13-9wf9gqtz.mjs +1 -0
- package/dist/chunks/rootOptions-1.0.13-7y485878.mjs +1 -0
- package/dist/chunks/runWorkflowHeadless-1.0.13-rv0anxz7.mjs +10 -0
- package/dist/chunks/sandbox-adapter-1.0.13-kvcvaae5.mjs +1 -0
- package/dist/chunks/sandbox-toggle-1.0.13-gzeexqb1.mjs +1 -0
- package/dist/chunks/session-1.0.13-hyhbhvkf.mjs +2 -0
- package/dist/chunks/sessionDiscovery-1.0.13-525ff4qc.mjs +1 -0
- package/dist/chunks/sessionFileAccessHooks-1.0.13-52whtstc.mjs +1 -0
- package/dist/chunks/sessionStorage-1.0.13-r00sygqv.mjs +1 -0
- package/dist/chunks/settings-1.0.13-sm1hpt00.mjs +1 -0
- package/dist/chunks/setup-1.0.13-7y88y2kn.mjs +5 -0
- package/dist/chunks/sinks-1.0.13-4g18qqzg.mjs +1 -0
- package/dist/chunks/skills-1.0.13-cpct3g7k.mjs +1 -0
- package/dist/chunks/startupProfiler-1.0.13-x0k3gz44.mjs +1 -0
- package/dist/chunks/startupUpdateCheck-1.0.13-n4bzta5q.mjs +1 -0
- package/dist/chunks/state-1.0.13-zq29wtdm.mjs +1 -0
- package/dist/chunks/stats-1.0.13-q0gfz40a.mjs +6 -0
- package/dist/chunks/status-1.0.13-t69r10gd.mjs +1 -0
- package/dist/chunks/stickers-1.0.13-1vnk8fs0.mjs +1 -0
- package/dist/chunks/subprocessEnv-1.0.13-1qaxx1mm.mjs +1 -0
- package/dist/chunks/tasks-1.0.13-xbf05jds.mjs +1 -0
- package/dist/chunks/teamHelpers-1.0.13-ajaffjmv.mjs +1 -0
- package/dist/chunks/teammateModeSnapshot-1.0.13-0se6apnj.mjs +1 -0
- package/dist/chunks/teleport-1.0.13-fy5929dz.mjs +1 -0
- package/dist/chunks/terminalSetup-1.0.13-6vb6xv4h.mjs +1 -0
- package/dist/chunks/theme-1.0.13-qh1caywb.mjs +1 -0
- package/dist/chunks/thinkback-1.0.13-yxqc5snt.mjs +1 -0
- package/dist/chunks/thinkback-play-1.0.13-4zdbm8qa.mjs +1 -0
- package/dist/chunks/toolPool-1.0.13-p41w5yd3.mjs +1 -0
- package/dist/chunks/toolSearch-1.0.13-4behydd7.mjs +1 -0
- package/dist/chunks/tools-1.0.13-vkf5gwtw.mjs +1 -0
- package/dist/chunks/trustedDevice-1.0.13-zafdrn99.mjs +1 -0
- package/dist/chunks/turndown.cjs-1.0.13-jyfkbj9m.mjs +69 -0
- package/dist/chunks/types-1.0.13-7xc46cqv.mjs +1 -0
- package/dist/chunks/ultrareviewCommand-1.0.13-3bz6pfy0.mjs +4 -0
- package/dist/chunks/update-1.0.13-yevsj7ad.mjs +88 -0
- package/dist/chunks/upgrade-1.0.13-exvdsfcj.mjs +1 -0
- package/dist/chunks/upload-1.0.13-hnnrtgrv.mjs +7 -0
- package/dist/chunks/upstreamproxy-1.0.13-qgbvmb0r.mjs +14 -0
- package/dist/chunks/url-handler-napi-1.0.13-7wjfhqg3.mjs +1 -0
- package/dist/chunks/usage-1.0.13-jvdr40ma.mjs +1 -0
- package/dist/chunks/util-1.0.13-87gxb90q.mjs +1 -0
- package/dist/chunks/utils-1.0.13-c5pe460e.mjs +1 -0
- package/dist/chunks/vim-1.0.13-nkrbsse9.mjs +1 -0
- package/dist/chunks/watchLoop-1.0.13-922mtars.mjs +13 -0
- package/dist/chunks/watcher-1.0.13-pt4sgafn.mjs +1 -0
- package/dist/chunks/wiki-1.0.13-swp7dc6p.mjs +132 -0
- package/dist/chunks/workflows-1.0.13-ykfca04r.mjs +1 -0
- package/dist/chunks/worktree-1.0.13-9m47x8ty.mjs +1 -0
- package/dist/chunks/worktreeModeEnabled-1.0.13-3jrpyzfm.mjs +1 -0
- package/dist/chunks/wrapper-1.0.13-2myaas4p.mjs +7 -0
- package/dist/cli.mjs +2 -2
- package/package.json +9 -9
- package/dist/chunks/AgentTool-1.0.12-abyv62fr.mjs +0 -1
- package/dist/chunks/App-1.0.12-dn7sszp8.mjs +0 -1
- package/dist/chunks/ApproveApiKey-1.0.12-vx8944sv.mjs +0 -1
- package/dist/chunks/AssistantSessionChooser-1.0.12-ke187zyp.mjs +0 -1
- package/dist/chunks/AutoModeOptInDialog-1.0.12-4evyjnv0.mjs +0 -1
- package/dist/chunks/BypassPermissionsModeDialog-1.0.12-d9mwxc90.mjs +0 -1
- package/dist/chunks/ClaudeMdExternalIncludesDialog-1.0.12-3jmx6cgy.mjs +0 -1
- package/dist/chunks/ConsoleOAuthFlow-1.0.12-3kmzdqzg.mjs +0 -1
- package/dist/chunks/DiffDialog-1.0.12-qj1xvjhw.mjs +0 -7
- package/dist/chunks/Doctor-1.0.12-51vy6wdx.mjs +0 -1
- package/dist/chunks/ExplorerDialog-1.0.12-96frvk0f.mjs +0 -6
- package/dist/chunks/Grove-1.0.12-56863ex7.mjs +0 -1
- package/dist/chunks/ITermBackend-1.0.12-r6mxvzaa.mjs +0 -1
- package/dist/chunks/InvalidConfigDialog-1.0.12-79dad11d.mjs +0 -1
- package/dist/chunks/InvalidSettingsDialog-1.0.12-stz0gsem.mjs +0 -1
- package/dist/chunks/MigrationDialog-1.0.12-zyd4mdh4.mjs +0 -1
- package/dist/chunks/Onboarding-1.0.12-zbfxpy94.mjs +0 -1
- package/dist/chunks/ProviderManager-1.0.12-p8zk25w6.mjs +0 -1
- package/dist/chunks/REPL-1.0.12-fqnth064.mjs +0 -1
- package/dist/chunks/ResumeConversation-1.0.12-0qfj43z7.mjs +0 -1
- package/dist/chunks/SnapshotUpdateDialog-1.0.12-bnjcb979.mjs +0 -1
- package/dist/chunks/TeleportProgress-1.0.12-c6fa4qje.mjs +0 -1
- package/dist/chunks/TeleportRepoMismatchDialog-1.0.12-ycm47j1m.mjs +0 -1
- package/dist/chunks/TeleportResumeWrapper-1.0.12-9rp6hs4x.mjs +0 -1
- package/dist/chunks/TmuxBackend-1.0.12-41jckn7c.mjs +0 -9
- package/dist/chunks/ToolSearchTool-1.0.12-c9n0hbpv.mjs +0 -1
- package/dist/chunks/TrustDialog-1.0.12-7fnas2qv.mjs +0 -1
- package/dist/chunks/activeProvider-1.0.12-gv2mp6kz.mjs +0 -1
- package/dist/chunks/add-dir-1.0.12-fpqr5x3k.mjs +0 -1
- package/dist/chunks/agentTypes-1.0.12-vrw22nhr.mjs +0 -1
- package/dist/chunks/agents-1.0.12-b7qmsh41.mjs +0 -3
- package/dist/chunks/agents-1.0.12-swx0yj99.mjs +0 -110
- package/dist/chunks/api-1.0.12-7ekn0cc8.mjs +0 -1
- package/dist/chunks/asciicast-1.0.12-bwarrcwq.mjs +0 -1
- package/dist/chunks/assistant-1.0.12-85mxf1m6.mjs +0 -1
- package/dist/chunks/auth-1.0.12-cefhne6z.mjs +0 -1
- package/dist/chunks/auth-1.0.12-snebfssk.mjs +0 -1
- package/dist/chunks/autoMode-1.0.12-9n08nqfk.mjs +0 -48
- package/dist/chunks/autoUpdater-1.0.12-h50vcbqf.mjs +0 -1
- package/dist/chunks/backgroundHousekeeping-1.0.12-tdh1q45w.mjs +0 -1
- package/dist/chunks/branch-1.0.12-863hng5d.mjs +0 -4
- package/dist/chunks/bridge-1.0.12-a5nw09de.mjs +0 -2
- package/dist/chunks/bridgeConfig-1.0.12-x66p8c5q.mjs +0 -1
- package/dist/chunks/bridgeEnabled-1.0.12-0wztb1hd.mjs +0 -1
- package/dist/chunks/bridgeMain-1.0.12-038n798h.mjs +0 -88
- package/dist/chunks/bridgePointer-1.0.12-9sjcxc3h.mjs +0 -1
- package/dist/chunks/btw-1.0.12-k26an2yc.mjs +0 -1
- package/dist/chunks/buddy-1.0.12-fpfpe288.mjs +0 -3
- package/dist/chunks/cacache-1.0.12-tee370hf.mjs +0 -1
- package/dist/chunks/cache-probe-1.0.12-ch8554yv.mjs +0 -21
- package/dist/chunks/cacheStats-1.0.12-9e5dx6pf.mjs +0 -4
- package/dist/chunks/caches-1.0.12-40h57pd6.mjs +0 -1
- package/dist/chunks/claudeDesktop-1.0.12-9cxdymhn.mjs +0 -1
- package/dist/chunks/claudemd-1.0.12-9dezcbgf.mjs +0 -1
- package/dist/chunks/clear-1.0.12-rhwxvjx8.mjs +0 -1
- package/dist/chunks/clearTerminal-1.0.12-33ecg1d7.mjs +0 -1
- package/dist/chunks/cli-1.0.12-05z376bz.mjs +0 -2
- package/dist/chunks/cli-1.0.12-0hs0n73e.mjs +0 -2
- package/dist/chunks/cli-1.0.12-0smh9wwk.mjs +0 -2
- package/dist/chunks/cli-1.0.12-0ttcqcck.mjs +0 -133
- package/dist/chunks/cli-1.0.12-18q23t16.mjs +0 -2
- package/dist/chunks/cli-1.0.12-1bcrzsgk.mjs +0 -45
- package/dist/chunks/cli-1.0.12-1cr9ram8.mjs +0 -21
- package/dist/chunks/cli-1.0.12-1dt50yfn.mjs +0 -4
- package/dist/chunks/cli-1.0.12-1n68xsye.mjs +0 -2
- package/dist/chunks/cli-1.0.12-1qc9gpzw.mjs +0 -12
- package/dist/chunks/cli-1.0.12-21c23686.mjs +0 -9
- package/dist/chunks/cli-1.0.12-22gbc57h.mjs +0 -2
- package/dist/chunks/cli-1.0.12-27qnbw76.mjs +0 -2
- package/dist/chunks/cli-1.0.12-2kt5mqgg.mjs +0 -2
- package/dist/chunks/cli-1.0.12-2nmjd3nj.mjs +0 -2
- package/dist/chunks/cli-1.0.12-2yt4jp97.mjs +0 -2
- package/dist/chunks/cli-1.0.12-321h968k.mjs +0 -2
- package/dist/chunks/cli-1.0.12-352e65vc.mjs +0 -2
- package/dist/chunks/cli-1.0.12-37c8ygq5.mjs +0 -6
- package/dist/chunks/cli-1.0.12-3fnggb5b.mjs +0 -133
- package/dist/chunks/cli-1.0.12-3n5xx9qt.mjs +0 -18
- package/dist/chunks/cli-1.0.12-3ncccq9x.mjs +0 -2
- package/dist/chunks/cli-1.0.12-3pn1zvqm.mjs +0 -2
- package/dist/chunks/cli-1.0.12-3r1201w4.mjs +0 -2
- package/dist/chunks/cli-1.0.12-3ya2dc5e.mjs +0 -2
- package/dist/chunks/cli-1.0.12-4hwr3sdf.mjs +0 -2
- package/dist/chunks/cli-1.0.12-4p7v89wr.mjs +0 -2
- package/dist/chunks/cli-1.0.12-57gs15yp.mjs +0 -18
- package/dist/chunks/cli-1.0.12-5efdpv3j.mjs +0 -2
- package/dist/chunks/cli-1.0.12-5sztdycm.mjs +0 -2
- package/dist/chunks/cli-1.0.12-65451rqd.mjs +0 -6
- package/dist/chunks/cli-1.0.12-67258wf2.mjs +0 -2
- package/dist/chunks/cli-1.0.12-6a3h6ptq.mjs +0 -2
- package/dist/chunks/cli-1.0.12-6p5xq1zz.mjs +0 -2
- package/dist/chunks/cli-1.0.12-6r2ap1g8.mjs +0 -4
- package/dist/chunks/cli-1.0.12-6rebetxb.mjs +0 -2
- package/dist/chunks/cli-1.0.12-6s4gq7fa.mjs +0 -2
- package/dist/chunks/cli-1.0.12-6tg9g6jd.mjs +0 -18
- package/dist/chunks/cli-1.0.12-76954fs2.mjs +0 -2
- package/dist/chunks/cli-1.0.12-769ev05r.mjs +0 -2
- package/dist/chunks/cli-1.0.12-7gt5bvcm.mjs +0 -16
- package/dist/chunks/cli-1.0.12-7ptw0hek.mjs +0 -3
- package/dist/chunks/cli-1.0.12-7tv5r0ph.mjs +0 -2
- package/dist/chunks/cli-1.0.12-7yabvp9r.mjs +0 -2
- package/dist/chunks/cli-1.0.12-7ynhsc1z.mjs +0 -4
- package/dist/chunks/cli-1.0.12-824tangf.mjs +0 -2
- package/dist/chunks/cli-1.0.12-86r9ty21.mjs +0 -5
- package/dist/chunks/cli-1.0.12-8751mzfs.mjs +0 -2
- package/dist/chunks/cli-1.0.12-87hs2fpz.mjs +0 -2
- package/dist/chunks/cli-1.0.12-88jecwwk.mjs +0 -2
- package/dist/chunks/cli-1.0.12-8neq4sr4.mjs +0 -2
- package/dist/chunks/cli-1.0.12-8ntn3ny6.mjs +0 -3
- package/dist/chunks/cli-1.0.12-8vjn5tt5.mjs +0 -2
- package/dist/chunks/cli-1.0.12-939eqyt0.mjs +0 -2
- package/dist/chunks/cli-1.0.12-93c97gc0.mjs +0 -7
- package/dist/chunks/cli-1.0.12-9xrez673.mjs +0 -6
- package/dist/chunks/cli-1.0.12-a3wknc82.mjs +0 -3
- package/dist/chunks/cli-1.0.12-a761j1gv.mjs +0 -2
- package/dist/chunks/cli-1.0.12-afqp6ccg.mjs +0 -5
- package/dist/chunks/cli-1.0.12-anfbb1k6.mjs +0 -199
- package/dist/chunks/cli-1.0.12-aqhk0pnq.mjs +0 -2
- package/dist/chunks/cli-1.0.12-aqvexw12.mjs +0 -4
- package/dist/chunks/cli-1.0.12-ar5q5p8k.mjs +0 -3
- package/dist/chunks/cli-1.0.12-arptj6sc.mjs +0 -2
- package/dist/chunks/cli-1.0.12-asf0zhhk.mjs +0 -2
- package/dist/chunks/cli-1.0.12-aswy8n6q.mjs +0 -2
- package/dist/chunks/cli-1.0.12-b0xdgvm3.mjs +0 -2
- package/dist/chunks/cli-1.0.12-b2kkbfqv.mjs +0 -2
- package/dist/chunks/cli-1.0.12-b54efth7.mjs +0 -3
- package/dist/chunks/cli-1.0.12-b55xwv7c.mjs +0 -12
- package/dist/chunks/cli-1.0.12-bavasn2m.mjs +0 -2
- package/dist/chunks/cli-1.0.12-bhvkmj7j.mjs +0 -2
- package/dist/chunks/cli-1.0.12-bphdbsee.mjs +0 -20
- package/dist/chunks/cli-1.0.12-bwhry5d9.mjs +0 -2
- package/dist/chunks/cli-1.0.12-bxrzeqxy.mjs +0 -2
- package/dist/chunks/cli-1.0.12-c3r1a6g5.mjs +0 -24
- package/dist/chunks/cli-1.0.12-c8eswgza.mjs +0 -2
- package/dist/chunks/cli-1.0.12-cdv6sj7q.mjs +0 -2
- package/dist/chunks/cli-1.0.12-ce2kb4jz.mjs +0 -2
- package/dist/chunks/cli-1.0.12-ce5a5631.mjs +0 -4
- package/dist/chunks/cli-1.0.12-cg6zadcf.mjs +0 -2
- package/dist/chunks/cli-1.0.12-ckpmw81j.mjs +0 -2
- package/dist/chunks/cli-1.0.12-crspnn4b.mjs +0 -6
- package/dist/chunks/cli-1.0.12-cveh4gy6.mjs +0 -34
- package/dist/chunks/cli-1.0.12-dcw582gx.mjs +0 -15
- package/dist/chunks/cli-1.0.12-ehp5ev2y.mjs +0 -2
- package/dist/chunks/cli-1.0.12-eptxz5fr.mjs +0 -2
- package/dist/chunks/cli-1.0.12-ets3kmf3.mjs +0 -2
- package/dist/chunks/cli-1.0.12-ev21p7g7.mjs +0 -1
- package/dist/chunks/cli-1.0.12-evtxsq88.mjs +0 -2
- package/dist/chunks/cli-1.0.12-f7s9vrvb.mjs +0 -2
- package/dist/chunks/cli-1.0.12-fc7czhyd.mjs +0 -2
- package/dist/chunks/cli-1.0.12-fr4x7p5q.mjs +0 -3
- package/dist/chunks/cli-1.0.12-fs27jw81.mjs +0 -59
- package/dist/chunks/cli-1.0.12-fs365rj0.mjs +0 -2
- package/dist/chunks/cli-1.0.12-fsgbmjzn.mjs +0 -2
- package/dist/chunks/cli-1.0.12-fttry6vt.mjs +0 -2
- package/dist/chunks/cli-1.0.12-g2qcnx8m.mjs +0 -2
- package/dist/chunks/cli-1.0.12-g2qsv3tc.mjs +0 -5494
- package/dist/chunks/cli-1.0.12-g6jjrjcj.mjs +0 -2
- package/dist/chunks/cli-1.0.12-gajn1gbg.mjs +0 -2
- package/dist/chunks/cli-1.0.12-gctwj61k.mjs +0 -4
- package/dist/chunks/cli-1.0.12-gd18f7hm.mjs +0 -2
- package/dist/chunks/cli-1.0.12-gden9vt3.mjs +0 -2
- package/dist/chunks/cli-1.0.12-gdjkhny3.mjs +0 -2
- package/dist/chunks/cli-1.0.12-geffmp8p.mjs +0 -2
- package/dist/chunks/cli-1.0.12-ggdecys5.mjs +0 -2
- package/dist/chunks/cli-1.0.12-gnjqhx0t.mjs +0 -3
- package/dist/chunks/cli-1.0.12-gvpmx85m.mjs +0 -58
- package/dist/chunks/cli-1.0.12-gz6fyqwk.mjs +0 -39
- package/dist/chunks/cli-1.0.12-gzdht3by.mjs +0 -2
- package/dist/chunks/cli-1.0.12-hcw51twk.mjs +0 -2
- package/dist/chunks/cli-1.0.12-hfjvcc88.mjs +0 -2
- package/dist/chunks/cli-1.0.12-hg7zn647.mjs +0 -2
- package/dist/chunks/cli-1.0.12-hhbfs4k4.mjs +0 -6
- package/dist/chunks/cli-1.0.12-hhr93g23.mjs +0 -2
- package/dist/chunks/cli-1.0.12-hkmqbg09.mjs +0 -2
- package/dist/chunks/cli-1.0.12-hqfw51ap.mjs +0 -4
- package/dist/chunks/cli-1.0.12-hs1b7q69.mjs +0 -2
- package/dist/chunks/cli-1.0.12-hxmg9ymn.mjs +0 -67
- package/dist/chunks/cli-1.0.12-j6jbtppw.mjs +0 -50
- package/dist/chunks/cli-1.0.12-jcpeegj0.mjs +0 -2
- package/dist/chunks/cli-1.0.12-jfhjds03.mjs +0 -2
- package/dist/chunks/cli-1.0.12-jfsy9ha5.mjs +0 -2
- package/dist/chunks/cli-1.0.12-jk3cz5bk.mjs +0 -2
- package/dist/chunks/cli-1.0.12-jv9bdyr3.mjs +0 -4
- package/dist/chunks/cli-1.0.12-jx132j1k.mjs +0 -25
- package/dist/chunks/cli-1.0.12-k1be9914.mjs +0 -12
- package/dist/chunks/cli-1.0.12-kamdx1jw.mjs +0 -2
- package/dist/chunks/cli-1.0.12-krksdpwy.mjs +0 -2
- package/dist/chunks/cli-1.0.12-krtzqxr0.mjs +0 -2
- package/dist/chunks/cli-1.0.12-kvbcb0np.mjs +0 -2
- package/dist/chunks/cli-1.0.12-kyxqyb1j.mjs +0 -2
- package/dist/chunks/cli-1.0.12-m46zb45g.mjs +0 -2
- package/dist/chunks/cli-1.0.12-m4ayadmp.mjs +0 -12
- package/dist/chunks/cli-1.0.12-mg5ma9ym.mjs +0 -15
- package/dist/chunks/cli-1.0.12-mx2xvdp9.mjs +0 -2
- package/dist/chunks/cli-1.0.12-n1m3pwwf.mjs +0 -2
- package/dist/chunks/cli-1.0.12-nanfnkp2.mjs +0 -2
- package/dist/chunks/cli-1.0.12-nn3vf2hn.mjs +0 -2
- package/dist/chunks/cli-1.0.12-nqhqcsq6.mjs +0 -2
- package/dist/chunks/cli-1.0.12-nvvpna9m.mjs +0 -3
- package/dist/chunks/cli-1.0.12-p4ezzhhd.mjs +0 -8
- package/dist/chunks/cli-1.0.12-pp2g923k.mjs +0 -2
- package/dist/chunks/cli-1.0.12-pp47fwxq.mjs +0 -2
- package/dist/chunks/cli-1.0.12-pr30kcgz.mjs +0 -2
- package/dist/chunks/cli-1.0.12-q0r16q04.mjs +0 -2
- package/dist/chunks/cli-1.0.12-q5pm96yt.mjs +0 -2
- package/dist/chunks/cli-1.0.12-q6d6aqp0.mjs +0 -2
- package/dist/chunks/cli-1.0.12-q6k5vz5c.mjs +0 -15
- package/dist/chunks/cli-1.0.12-qawr9s3v.mjs +0 -2
- package/dist/chunks/cli-1.0.12-qdw94y1a.mjs +0 -2
- package/dist/chunks/cli-1.0.12-r0h1nfgc.mjs +0 -2
- package/dist/chunks/cli-1.0.12-r5xssak6.mjs +0 -3
- package/dist/chunks/cli-1.0.12-rkm9m5nr.mjs +0 -4
- package/dist/chunks/cli-1.0.12-rndzs6hs.mjs +0 -3
- package/dist/chunks/cli-1.0.12-rx65fdkz.mjs +0 -2
- package/dist/chunks/cli-1.0.12-s5nznhbh.mjs +0 -3
- package/dist/chunks/cli-1.0.12-s6we79nr.mjs +0 -17
- package/dist/chunks/cli-1.0.12-samztxet.mjs +0 -2
- package/dist/chunks/cli-1.0.12-sav2q0qa.mjs +0 -42
- package/dist/chunks/cli-1.0.12-t40ecqfd.mjs +0 -2
- package/dist/chunks/cli-1.0.12-tj9ktjsh.mjs +0 -24
- package/dist/chunks/cli-1.0.12-tj9rj5jy.mjs +0 -2
- package/dist/chunks/cli-1.0.12-tjbtefn3.mjs +0 -2
- package/dist/chunks/cli-1.0.12-trd4dn34.mjs +0 -2
- package/dist/chunks/cli-1.0.12-tv0c63rt.mjs +0 -2
- package/dist/chunks/cli-1.0.12-tz4cb805.mjs +0 -2
- package/dist/chunks/cli-1.0.12-v4dwzr3x.mjs +0 -17
- package/dist/chunks/cli-1.0.12-vaj96q9j.mjs +0 -2
- package/dist/chunks/cli-1.0.12-vr2x1cvb.mjs +0 -2
- package/dist/chunks/cli-1.0.12-w1kw41q7.mjs +0 -2
- package/dist/chunks/cli-1.0.12-w7rfasq3.mjs +0 -9
- package/dist/chunks/cli-1.0.12-w8y086m4.mjs +0 -25
- package/dist/chunks/cli-1.0.12-wex4dg02.mjs +0 -4
- package/dist/chunks/cli-1.0.12-wg1cqvtp.mjs +0 -2
- package/dist/chunks/cli-1.0.12-wjsws708.mjs +0 -2
- package/dist/chunks/cli-1.0.12-wk1q0n53.mjs +0 -2
- package/dist/chunks/cli-1.0.12-wrzpekwj.mjs +0 -2
- package/dist/chunks/cli-1.0.12-wvndtz51.mjs +0 -24
- package/dist/chunks/cli-1.0.12-wz7n2nsd.mjs +0 -2
- package/dist/chunks/cli-1.0.12-x10h3tbg.mjs +0 -2
- package/dist/chunks/cli-1.0.12-x4ep25h9.mjs +0 -4
- package/dist/chunks/cli-1.0.12-xkytf9yh.mjs +0 -2
- package/dist/chunks/cli-1.0.12-xttdsx6k.mjs +0 -2
- package/dist/chunks/cli-1.0.12-y1c7c1a1.mjs +0 -2
- package/dist/chunks/cli-1.0.12-y84rjfz7.mjs +0 -2
- package/dist/chunks/cli-1.0.12-yhv467zj.mjs +0 -2
- package/dist/chunks/cli-1.0.12-ynve21xv.mjs +0 -2
- package/dist/chunks/cli-1.0.12-ys1t2bxz.mjs +0 -2
- package/dist/chunks/cli-1.0.12-yxtwvta2.mjs +0 -2
- package/dist/chunks/cli-1.0.12-z3a8jcm9.mjs +0 -3
- package/dist/chunks/cli-1.0.12-z3c340m4.mjs +0 -2
- package/dist/chunks/cli-1.0.12-z623f1kc.mjs +0 -2
- package/dist/chunks/cli-1.0.12-z9h568zf.mjs +0 -2
- package/dist/chunks/cli-1.0.12-z9sfhfkz.mjs +0 -2
- package/dist/chunks/cli-1.0.12-zeamr7yd.mjs +0 -2
- package/dist/chunks/cli-1.0.12-zeyjdjny.mjs +0 -2
- package/dist/chunks/cli-1.0.12-zfc8ad9g.mjs +0 -2
- package/dist/chunks/cli-1.0.12-zh892bg0.mjs +0 -2
- package/dist/chunks/cli-1.0.12-zjxsxtgp.mjs +0 -2
- package/dist/chunks/client-1.0.12-byhwssfy.mjs +0 -1
- package/dist/chunks/color-1.0.12-r9qemzca.mjs +0 -1
- package/dist/chunks/compact-1.0.12-e026vahr.mjs +0 -3
- package/dist/chunks/config-1.0.12-bzczt66c.mjs +0 -1
- package/dist/chunks/config-1.0.12-spq7sz3g.mjs +0 -1
- package/dist/chunks/constants-1.0.12-wfre6b4q.mjs +0 -1
- package/dist/chunks/context-1.0.12-062jh3t1.mjs +0 -1
- package/dist/chunks/context-noninteractive-1.0.12-2a33mwts.mjs +0 -1
- package/dist/chunks/conversation-1.0.12-84yx1v9g.mjs +0 -1
- package/dist/chunks/copilotHeaders-1.0.12-9p7nbsej.mjs +0 -1
- package/dist/chunks/copy-1.0.12-p0ehh4km.mjs +0 -9
- package/dist/chunks/cost-1.0.12-rp0mbkmr.mjs +0 -1
- package/dist/chunks/createSSHSession-1.0.12-wxq374vh.mjs +0 -1
- package/dist/chunks/createSession-1.0.12-1xvzax9p.mjs +0 -1
- package/dist/chunks/debug-1.0.12-94hz3csj.mjs +0 -1
- package/dist/chunks/defaultActionDeps-1.0.12-xampkk9g.mjs +0 -1446
- package/dist/chunks/desktop-1.0.12-sjnz496g.mjs +0 -1
- package/dist/chunks/detectRepository-1.0.12-ba7p74yk.mjs +0 -1
- package/dist/chunks/detection-1.0.12-a5q568s6.mjs +0 -1
- package/dist/chunks/diff-1.0.12-ndfx6mw0.mjs +0 -1
- package/dist/chunks/doctor-1.0.12-n0w9na8y.mjs +0 -1
- package/dist/chunks/doctorDiagnostic-1.0.12-9s7nqv0g.mjs +0 -1
- package/dist/chunks/earlyInput-1.0.12-zysskqm6.mjs +0 -1
- package/dist/chunks/effort-1.0.12-fv5hhe7x.mjs +0 -10
- package/dist/chunks/engine-1.0.12-h8g4mgyb.mjs +0 -1
- package/dist/chunks/envLessBridgeConfig-1.0.12-dgzmkpm2.mjs +0 -1
- package/dist/chunks/envUtils-1.0.12-sdf1kcja.mjs +0 -1
- package/dist/chunks/environmentSelection-1.0.12-8q9ret6b.mjs +0 -1
- package/dist/chunks/environments-1.0.12-a3zhfbhz.mjs +0 -1
- package/dist/chunks/errors-1.0.12-ct15bef4.mjs +0 -1
- package/dist/chunks/exampleCommands-1.0.12-df1dw74e.mjs +0 -1
- package/dist/chunks/execFileNoThrow-1.0.12-xfr44c3a.mjs +0 -1
- package/dist/chunks/exit-1.0.12-zvdfr5b8.mjs +0 -1
- package/dist/chunks/explorer-1.0.12-6y9xjy1q.mjs +0 -1
- package/dist/chunks/export-1.0.12-skd48sxc.mjs +0 -2
- package/dist/chunks/extra-usage-1.0.12-xfmqjtpj.mjs +0 -1
- package/dist/chunks/extra-usage-noninteractive-1.0.12-t1hm20j5.mjs +0 -1
- package/dist/chunks/fast-1.0.12-fhft5ey6.mjs +0 -1
- package/dist/chunks/feedback-1.0.12-3nxarzk5.mjs +0 -14
- package/dist/chunks/firstPartyEventLogger-1.0.12-wd3zscn0.mjs +0 -1
- package/dist/chunks/git-1.0.12-vdgymgzx.mjs +0 -1
- package/dist/chunks/githubModelsCredentials-1.0.12-4srnyf9v.mjs +0 -1
- package/dist/chunks/goal-1.0.12-h2359pb4.mjs +0 -4
- package/dist/chunks/grove-1.0.12-77sjjjn3.mjs +0 -1
- package/dist/chunks/growthbook-1.0.12-3n3fqtkt.mjs +0 -1
- package/dist/chunks/headless-1.0.12-yp3kbbxc.mjs +0 -2
- package/dist/chunks/heapdump-1.0.12-s91zbazj.mjs +0 -6
- package/dist/chunks/help-1.0.12-0xjr189z.mjs +0 -1
- package/dist/chunks/hookChains-1.0.12-ct9k5n1p.mjs +0 -3
- package/dist/chunks/hooks-1.0.12-3j1z9nnx.mjs +0 -79
- package/dist/chunks/hooks-1.0.12-70mxcsxh.mjs +0 -1
- package/dist/chunks/ide-1.0.12-28njrjbk.mjs +0 -3
- package/dist/chunks/image-processor-napi-1.0.12-6wgz5kvw.mjs +0 -1
- package/dist/chunks/inboundAttachments-1.0.12-jvjez1dn.mjs +0 -1
- package/dist/chunks/index-1.0.12-0da1bb49.mjs +0 -9
- package/dist/chunks/index-1.0.12-1e9j7vzg.mjs +0 -5
- package/dist/chunks/index-1.0.12-1mdaerd8.mjs +0 -1
- package/dist/chunks/index-1.0.12-24pswrth.mjs +0 -1
- package/dist/chunks/index-1.0.12-2v2em96v.mjs +0 -2
- package/dist/chunks/index-1.0.12-474c1qt4.mjs +0 -1
- package/dist/chunks/index-1.0.12-6mn5222v.mjs +0 -1
- package/dist/chunks/index-1.0.12-742qmav9.mjs +0 -1
- package/dist/chunks/index-1.0.12-7k7nz3zd.mjs +0 -1
- package/dist/chunks/index-1.0.12-9j0r9hj8.mjs +0 -1
- package/dist/chunks/index-1.0.12-b9j27arj.mjs +0 -1
- package/dist/chunks/index-1.0.12-bpttwsys.mjs +0 -9
- package/dist/chunks/index-1.0.12-c5e33bnp.mjs +0 -1
- package/dist/chunks/index-1.0.12-cqq21e0m.mjs +0 -2
- package/dist/chunks/index-1.0.12-cr5bmztw.mjs +0 -1
- package/dist/chunks/index-1.0.12-fmffckpa.mjs +0 -1
- package/dist/chunks/index-1.0.12-gq7wdwne.mjs +0 -1
- package/dist/chunks/index-1.0.12-hdkwtv7r.mjs +0 -30
- package/dist/chunks/index-1.0.12-hdncwsmp.mjs +0 -17
- package/dist/chunks/index-1.0.12-p087je6g.mjs +0 -1
- package/dist/chunks/index-1.0.12-v4fg3ddh.mjs +0 -1
- package/dist/chunks/index-1.0.12-vx8y4eyw.mjs +0 -1
- package/dist/chunks/index-1.0.12-wbyw0qj6.mjs +0 -1
- package/dist/chunks/init-1.0.12-z61mf946.mjs +0 -1
- package/dist/chunks/initReplBridge-1.0.12-x85m2bm7.mjs +0 -1
- package/dist/chunks/ink-1.0.12-zmy65h90.mjs +0 -1
- package/dist/chunks/insights-1.0.12-hmmb2hfq.mjs +0 -870
- package/dist/chunks/install-1.0.12-ayp0wk5h.mjs +0 -1
- package/dist/chunks/install-github-app-1.0.12-gp77dd3x.mjs +0 -149
- package/dist/chunks/install-slack-app-1.0.12-r3sn5vy9.mjs +0 -1
- package/dist/chunks/instrumentation-1.0.12-p992hkry.mjs +0 -1
- package/dist/chunks/interactiveHelpers-1.0.12-bpa40yg2.mjs +0 -1
- package/dist/chunks/keybindings-1.0.12-tzqxhe4y.mjs +0 -2
- package/dist/chunks/knowledge-1.0.12-4z117jz8.mjs +0 -2
- package/dist/chunks/latestVersionCache-1.0.12-v4exfmej.mjs +0 -1
- package/dist/chunks/loadAgentsDir-1.0.12-33qj54es.mjs +0 -1
- package/dist/chunks/loadPluginHooks-1.0.12-3e1ay1bg.mjs +0 -1
- package/dist/chunks/loadPluginHooks-1.0.12-s7htccwt.mjs +0 -1
- package/dist/chunks/log-1.0.12-qerp8m38.mjs +0 -1
- package/dist/chunks/main-1.0.12-eegz9vfx.mjs +0 -1
- package/dist/chunks/managedEnv-1.0.12-dsdjxx30.mjs +0 -1
- package/dist/chunks/mcp-1.0.12-6dgfh9jp.mjs +0 -17
- package/dist/chunks/mcp-1.0.12-j2h3k7hg.mjs +0 -4
- package/dist/chunks/mcp-1.0.12-kp37svg1.mjs +0 -1
- package/dist/chunks/mcpb-1.0.12-ca16ddb6.mjs +0 -1
- package/dist/chunks/memory-1.0.12-0k08f6b4.mjs +0 -72
- package/dist/chunks/model-1.0.12-2z9t0e24.mjs +0 -2
- package/dist/chunks/model-1.0.12-avtsadm7.mjs +0 -1
- package/dist/chunks/node-1.0.12-5zcm6b49.mjs +0 -12
- package/dist/chunks/oauth-1.0.12-t7s3r4ha.mjs +0 -1
- package/dist/chunks/openaiShim-1.0.12-y35cxvtm.mjs +0 -14
- package/dist/chunks/output-style-1.0.12-hwh89yg3.mjs +0 -1
- package/dist/chunks/package-ZZWOLTXM-1.0.12-jrq6q5gh.mjs +0 -1
- package/dist/chunks/parseConnectUrl-1.0.12-1ajk88cn.mjs +0 -1
- package/dist/chunks/parser-1.0.12-mnazf4dy.mjs +0 -1
- package/dist/chunks/passes-1.0.12-hvk4mc22.mjs +0 -1
- package/dist/chunks/permissions-1.0.12-8mr0v1ms.mjs +0 -1
- package/dist/chunks/permissions-1.0.12-bhr0jwb3.mjs +0 -3
- package/dist/chunks/plan-1.0.12-5bjaadcz.mjs +0 -1
- package/dist/chunks/plist-1.0.12-rkjbgan4.mjs +0 -1
- package/dist/chunks/plugin-1.0.12-pxgt2afc.mjs +0 -29
- package/dist/chunks/pluginStartupCheck-1.0.12-6gcazre9.mjs +0 -1
- package/dist/chunks/plugins-1.0.12-m5w6j4w1.mjs +0 -9
- package/dist/chunks/preActionHook-1.0.12-mf4w1185.mjs +0 -2
- package/dist/chunks/print-1.0.12-t6h31xzw.mjs +0 -57
- package/dist/chunks/privacy-settings-1.0.12-p99c9mr9.mjs +0 -1
- package/dist/chunks/process-1.0.12-514yxzk8.mjs +0 -1
- package/dist/chunks/processBashCommand-1.0.12-sg75g2bj.mjs +0 -1
- package/dist/chunks/processSlashCommand-1.0.12-yc9eq6vv.mjs +0 -9
- package/dist/chunks/prompt-1.0.12-0s0zhnqk.mjs +0 -1
- package/dist/chunks/prompt-1.0.12-yxsmhgt0.mjs +0 -1
- package/dist/chunks/prompts-1.0.12-0hkf5v5d.mjs +0 -1
- package/dist/chunks/protocolHandler-1.0.12-2s1b0744.mjs +0 -13
- package/dist/chunks/provider-1.0.12-br1hwfjc.mjs +0 -2
- package/dist/chunks/providerProfiles-1.0.12-1cvn3gk3.mjs +0 -1
- package/dist/chunks/providerValidation-1.0.12-e5hn1s9f.mjs +0 -6
- package/dist/chunks/rate-limit-options-1.0.12-2b1eehxk.mjs +0 -1
- package/dist/chunks/registerSubcommands-1.0.12-3w6n3hvp.mjs +0 -34
- package/dist/chunks/registry-1.0.12-416j15rh.mjs +0 -1
- package/dist/chunks/release-notes-1.0.12-cjkaspwe.mjs +0 -5
- package/dist/chunks/reload-plugins-1.0.12-kn31ddrr.mjs +0 -2
- package/dist/chunks/remote-env-1.0.12-wgzde32c.mjs +0 -1
- package/dist/chunks/remoteBridgeCore-1.0.12-0c89q3s7.mjs +0 -1
- package/dist/chunks/remoteSession-1.0.12-cs8aksk2.mjs +0 -1
- package/dist/chunks/rename-1.0.12-2a5n1bm7.mjs +0 -1
- package/dist/chunks/replBridgeHandle-1.0.12-1sgqwxsb.mjs +0 -1
- package/dist/chunks/replLauncher-1.0.12-380zfnph.mjs +0 -1
- package/dist/chunks/resume-1.0.12-xfc2cbkb.mjs +0 -2
- package/dist/chunks/rewind-1.0.12-r3d180dy.mjs +0 -1
- package/dist/chunks/rootOptions-1.0.12-pfhteve9.mjs +0 -1
- package/dist/chunks/runWorkflowHeadless-1.0.12-05semed9.mjs +0 -10
- package/dist/chunks/sandbox-adapter-1.0.12-6ty9e1sb.mjs +0 -1
- package/dist/chunks/sandbox-toggle-1.0.12-3s3mg79e.mjs +0 -1
- package/dist/chunks/session-1.0.12-xx9k18d5.mjs +0 -2
- package/dist/chunks/sessionDiscovery-1.0.12-k0eh44q5.mjs +0 -1
- package/dist/chunks/sessionFileAccessHooks-1.0.12-289cp1d9.mjs +0 -1
- package/dist/chunks/sessionStorage-1.0.12-af0sp63e.mjs +0 -1
- package/dist/chunks/settings-1.0.12-1kn5k4w3.mjs +0 -1
- package/dist/chunks/setup-1.0.12-sjx27cy2.mjs +0 -5
- package/dist/chunks/sinks-1.0.12-s5jc7mhb.mjs +0 -1
- package/dist/chunks/skills-1.0.12-rz6jxa0g.mjs +0 -1
- package/dist/chunks/startupProfiler-1.0.12-p1sagjpt.mjs +0 -1
- package/dist/chunks/startupUpdateCheck-1.0.12-0rynn7sy.mjs +0 -1
- package/dist/chunks/state-1.0.12-scv8d1ss.mjs +0 -1
- package/dist/chunks/stats-1.0.12-h73ksepe.mjs +0 -6
- package/dist/chunks/status-1.0.12-w3s8s4n7.mjs +0 -1
- package/dist/chunks/stickers-1.0.12-tytep2cy.mjs +0 -1
- package/dist/chunks/subprocessEnv-1.0.12-6kt4e9mh.mjs +0 -1
- package/dist/chunks/tasks-1.0.12-ezrpv3cr.mjs +0 -1
- package/dist/chunks/teamHelpers-1.0.12-yg34czgd.mjs +0 -1
- package/dist/chunks/teammateModeSnapshot-1.0.12-0b71sedv.mjs +0 -1
- package/dist/chunks/teleport-1.0.12-zq525vyn.mjs +0 -1
- package/dist/chunks/terminalSetup-1.0.12-z82kcb7p.mjs +0 -1
- package/dist/chunks/theme-1.0.12-1n4zhmvg.mjs +0 -1
- package/dist/chunks/thinkback-1.0.12-vegbsqqh.mjs +0 -1
- package/dist/chunks/thinkback-play-1.0.12-m2re0ysp.mjs +0 -1
- package/dist/chunks/toolPool-1.0.12-7k896ktz.mjs +0 -1
- package/dist/chunks/toolSearch-1.0.12-1t7z9s8n.mjs +0 -1
- package/dist/chunks/tools-1.0.12-m1q30sx2.mjs +0 -1
- package/dist/chunks/trustedDevice-1.0.12-d1ec8tgn.mjs +0 -1
- package/dist/chunks/turndown.cjs-1.0.12-gd906rm3.mjs +0 -69
- package/dist/chunks/types-1.0.12-bnkcne53.mjs +0 -1
- package/dist/chunks/ultrareviewCommand-1.0.12-d94wevag.mjs +0 -4
- package/dist/chunks/update-1.0.12-42sky6mj.mjs +0 -88
- package/dist/chunks/upgrade-1.0.12-dmpc55bj.mjs +0 -1
- package/dist/chunks/upload-1.0.12-nmk9n704.mjs +0 -7
- package/dist/chunks/upstreamproxy-1.0.12-91ksccx0.mjs +0 -14
- package/dist/chunks/url-handler-napi-1.0.12-dmb5xjpf.mjs +0 -1
- package/dist/chunks/usage-1.0.12-tjapt84n.mjs +0 -1
- package/dist/chunks/util-1.0.12-10z43mt9.mjs +0 -1
- package/dist/chunks/utils-1.0.12-w32argrx.mjs +0 -1
- package/dist/chunks/vim-1.0.12-wf8sb0mt.mjs +0 -1
- package/dist/chunks/watchLoop-1.0.12-3dxe0717.mjs +0 -13
- package/dist/chunks/watcher-1.0.12-7p840es5.mjs +0 -1
- package/dist/chunks/wiki-1.0.12-0ym9ejj5.mjs +0 -132
- package/dist/chunks/workflows-1.0.12-c270z4b2.mjs +0 -1
- package/dist/chunks/worktree-1.0.12-zeqk2tcs.mjs +0 -1
- package/dist/chunks/worktreeModeEnabled-1.0.12-kmtt3k2w.mjs +0 -1
- package/dist/chunks/wrapper-1.0.12-wzaxf903.mjs +0 -7
- /package/dist/chunks/{cli-1.0.12-w5g65qpt.mjs → cli-1.0.13-4z6c4gzk.mjs} +0 -0
- /package/dist/chunks/{cli-1.0.12-v6h16sq3.mjs → cli-1.0.13-ap2xrh2s.mjs} +0 -0
- /package/dist/chunks/{cli-1.0.12-ecf1es2x.mjs → cli-1.0.13-d9nvpqpw.mjs} +0 -0
- /package/dist/chunks/{cli-1.0.12-2sf9ww39.mjs → cli-1.0.13-n6bzzv7p.mjs} +0 -0
- /package/dist/chunks/{cli-1.0.12-h16hfwe6.mjs → cli-1.0.13-q9et56bj.mjs} +0 -0
- /package/dist/chunks/{cli-1.0.12-xya69wfx.mjs → cli-1.0.13-tzenmc0b.mjs} +0 -0
- /package/dist/chunks/{cli-1.0.12-8yzsm0t1.mjs → cli-1.0.13-v34fp7gq.mjs} +0 -0
- /package/dist/chunks/{cli-1.0.12-c9kgj61k.mjs → cli-1.0.13-wv7skbb9.mjs} +0 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{xb as d}from"./cli-1.0.13-wv7skbb9.mjs";import{ET as F,Gm as E,Hk as $,Hl as P,Hm as e,Hu as k,Ik as n,Il as R,Ku as V,MS as m,NS as S,OS as A,PR as Qj,Pk as v,Qk as r,Qu as zj,Ru as w,ST as Xj,Su as Bj,Vj as O,Xj as o,ZS as c,am as s,eT as p,fK as f,fT as X,nm as y,ot as h,pv as C,qt as qj,qv as D,sT as Vj,sm as t,uE as Jj,vv as Gj,wC as I,xC as Hj}from"./cli-1.0.13-kr3d94dn.mjs";import{iV as W,wV as jj}from"./cli-1.0.13-shrh1g4z.mjs";import{vX as x,yX as Kj}from"./cli-1.0.13-rxd329nn.mjs";import{O6 as T,V6 as u}from"./cli-1.0.13-h5mwwv8w.mjs";import{iia as Z,jia as i}from"./cli-1.0.13-kq0mvqax.mjs";import{_ja as b,bka as l}from"./cli-1.0.13-4dp5a597.mjs";import{Cma as _,Hma as Y,Mna as M,Ona as N,Upa as K,yqa as g,zma as U}from"./cli-1.0.13-vwmq6bde.mjs";g();e();Gj();zj();r();o();import{dirname as Yj}from"path";Xj();Jj();Kj();i();l();qj();Qj();u();t();n();Hj();Vj();jj();Bj();s();function Zj(j){for(let q=j.length-1;q>=0;q--){let B=j[q];if(B?.type!=="assistant")continue;let z=B.message.content.find((J)=>J.type==="tool_use"&&J.name===v);if(!z||z.type!=="tool_use")continue;let G=z.input;if(G===null||typeof G!=="object")return[];let H=w().safeParse(G.todos);return H.success?H.data:[]}return[]}function aj(j,q){if(j.fileHistorySnapshots&&j.fileHistorySnapshots.length>0)h(j.fileHistorySnapshots,(B)=>{q((z)=>({...z,fileHistory:B}))});if(!W()&&j.messages&&j.messages.length>0){let B=Zj(j.messages);if(B.length>0){let z=U();q((G)=>({...G,todos:{...G.todos,[z]:B}}))}}}function $j(j){return}function Pj(j,q){if(!j&&!q)return;return{name:j??"",color:q==="default"?void 0:q}}function Rj(j,q,B){if(q)return{agentDefinition:q,agentType:void 0};if(!j)return K(void 0),{agentDefinition:void 0,agentType:void 0};let z=B.activeAgents.find((G)=>G.agentType===j);if(!z)return b(`Resumed session had agent "${j}" but it is no longer available. Using default behavior.`),K(void 0),{agentDefinition:void 0,agentType:void 0};if(K(z.agentType),!M()&&z.model&&z.model!=="inherit")N(T(z.model));return{agentDefinition:z,agentType:z.agentType}}async function yj(j,q,B,z){if(!j)return z;V.cache.clear?.();let G=await V(q),H=[...G.allAgents,...B];return{...G,allAgents:H,activeAgents:k(H)}}function Ej(j){let q=P();if(q){X(q);return}if(!j)return;try{process.chdir(j.worktreePath)}catch{X(null);return}I(j.worktreePath),Y(Z()),R(j),F(),E(),y.cache.clear?.(),$()}function gj(){let j=P();if(!j)return;R(null),F(),E(),y.cache.clear?.(),$();try{process.chdir(j.originalCwd)}catch{return}I(j.originalCwd),Y(Z())}async function lj(j,q,B){let z;if(z=B.modeApi?.matchSessionMode(j.mode),z)j.messages.push(f(z,"warning"));if(!q.forkSession){let Q=q.sessionIdOverride??j.sessionId;if(Q){if(_(O(Q),q.transcriptPath?Yj(q.transcriptPath):null),await d(),await S(),!C(Q))D(j.messages)}}else if(j.contentReplacements?.length)await m(j.contentReplacements);if(c(q.forkSession?{...j,worktreeSession:void 0}:j),!q.forkSession)Ej(j.worktreeSession),A();let{agentDefinition:G,agentType:H}=Rj(j.agentSetting,B.mainThreadAgentDefinition,B.agentDefinitions);p(B.modeApi?.isCoordinatorMode()?"coordinator":"normal");let J=q.includeAttribution?$j(j):void 0,L=Pj(j.agentName,j.agentColor);x(j.agentName);let a=await yj(!!z,B.currentCwd,B.cliAgents,B.agentDefinitions);return{messages:j.messages,fileHistorySnapshots:j.fileHistorySnapshots,contentReplacements:j.contentReplacements,agentName:j.agentName,agentColor:j.agentColor==="default"?void 0:j.agentColor,restoredAgentDef:G,initialState:{...B.initialState,...H&&{agent:H},...J&&{attribution:J},...L&&{standaloneAgentContext:L},agentDefinitions:a}}}
|
|
2
|
+
export{aj as Sa,Pj as Ta,Rj as Ua,Ej as Va,gj as Wa,lj as Xa};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Jh as v,Kh as i}from"./cli-1.0.13-e9q9245e.mjs";import{Lh as E,Mh as t}from"./cli-1.0.13-5sq4jbf1.mjs";import{WX as b,XX as s}from"./cli-1.0.13-3f0zqjp8.mjs";import{G0 as L,I0 as X,l1 as m}from"./cli-1.0.13-mv57kk3c.mjs";import{U3 as $,W3 as F}from"./cli-1.0.13-afdk25h0.mjs";import{X3 as d}from"./cli-1.0.13-gsz0cygn.mjs";import{f_ as C,g_ as n}from"./cli-1.0.13-p1nsb8ay.mjs";import{Dga as O,Ega as l,Fga as P,Gga as k,Vga as o}from"./cli-1.0.13-x4xwa6y3.mjs";import{dsa as g,hsa as a}from"./cli-1.0.13-d9nvpqpw.mjs";function Kq(J,q,H){if(J.startsWith("file-"))return H?v(q):"+";if(J.startsWith("mcp-resource-"))return"◇";if(J.startsWith("agent-"))return"*";return"+"}function Oq(J){return J.startsWith("file-")||J.startsWith("mcp-resource-")||J.startsWith("agent-")}function Qq(J){let q=J.metadata?.type;return q==="directory"||q==="file"}function Zq({suggestions:J,selectedSuggestion:q,maxColumnWidth:H,overlay:K}){let{rows:A}=b(),Y=A-2,G=Y>=e?Math.min(qq,Y):Math.max(1,Y);if(J.length===0)return null;let w=H??Math.max(...J.map((Q)=>O(Q.displayText)))+5,V=Math.max(0,Math.min(q-Math.floor(G/2),J.length-G)),U=Math.min(V+G,J.length),Z=J.slice(V,U);return $(L,{flexDirection:"column",justifyContent:K?void 0:"flex-end",children:Z.map((Q)=>$(Yq,{item:Q,maxColumnWidth:w,isSelected:Q.id===J[q]?.id},`${Q.id}:${Q.id===J[q]?.id?"selected":"idle"}`))})}var _,e=8,qq=15,y,Jq=" ",B,j,Yq,Mq;var $q=a(()=>{n();s();l();m();i();o();t();F();_=g(d(),1),y=`${C.pointer} `,B=O(y),j=E();Yq=_.memo(function({item:q,maxColumnWidth:H,isSelected:K}){let A=b().columns,Y=K?y:Jq,G=K?"suggestion":void 0,w=K?"inverseText":void 0;if(Oq(q.id)){let D=Kq(q.id,q.displayText,j),I=!K,x=q.id.startsWith("file-"),c=q.id.startsWith("mcp-resource-"),Aq=2,Gq=4,R=q.description?3:0,z;if(x){let N=q.description?Math.min(20,O(q.description)):0,r=A-B-2-4-R-N;z=P(q.displayText,r)}else if(c)z=k(q.displayText,30);else z=q.displayText;let u=A-B-2-O(z)-R-4,M;if(q.description){let N=k(q.description.replace(/\s+/g," "),Math.max(0,u));M=`${Y}${D} ${z} - ${N}`}else M=`${Y}${D} ${z}`;return $(L,{width:"100%",opaque:!0,backgroundColor:G,children:$(X,{color:w,dimColor:I,bold:K,wrap:"truncate",children:M})})}let V=Math.floor(A*0.4),U=Math.min(H??O(q.displayText)+5,V),Z=q.displayText;if(O(Z)>U-2)Z=k(Z,U-2);let Q=Qq(q)?`${j?v(q.displayText):"+"} `:"",W=Y+Q+Z+" ".repeat(Math.max(0,U-O(Z))),f=q.tag?`[${q.tag}] `:"",S=O(f),h=Math.max(0,A-B-U-S-4),p=q.description?k(q.description.replace(/\s+/g," "),h):"",T=`${W}${f}${p}`;return $(L,{width:"100%",opaque:!0,backgroundColor:G,children:$(X,{color:w,dimColor:!K,bold:K,wrap:"truncate",children:T})})});Mq=_.memo(Zq)});
|
|
2
|
+
export{Zq as Eh,Mq as Fh,$q as Gh};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{bia as q,dia as A,eia as x,fia as B}from"./cli-1.0.13-fb695nhr.mjs";import{Ija as J}from"./cli-1.0.13-4dp5a597.mjs";import{Fka as G}from"./cli-1.0.13-mazxedqg.mjs";G();J();A();B();var F=x(()=>q.object({session_id:q.string(),ws_url:q.string(),work_dir:q.string().optional()}));
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{Tea as R,w_ as Q,y_ as M,yea as P}from"./cli-1.0.13-p1nsb8ay.mjs";import{_ja as G,bka as C}from"./cli-1.0.13-4dp5a597.mjs";import{hsa as j}from"./cli-1.0.13-d9nvpqpw.mjs";import{promises as I}from"node:fs";import{homedir as y}from"node:os";import K from"node:path";function O(q){let z;try{z=new URL(q)}catch(A){throw Error(`Invalid URL format: ${q}`)}if(z.protocol!=="http:"&&z.protocol!=="https:")throw Error(`Invalid URL protocol: must use http:// or https://, got ${z.protocol}`)}async function g(q){try{let z=process.platform;if(z==="win32"){let{code:V}=await Q("explorer",[q]);return V===0}let A=z==="darwin"?"open":"xdg-open",{code:J}=await Q(A,[q]);return J===0}catch(z){return!1}}function U(){let q=process.env.XDG_DATA_HOME&&process.env.XDG_DATA_HOME.length>0?process.env.XDG_DATA_HOME:K.join(y(),".local","share");return[K.join(q,"applications"),"/usr/local/share/applications","/usr/share/applications","/var/lib/snapd/desktop/applications","/var/lib/flatpak/exports/share/applications"]}function k(q){let z=q.split(`
|
|
2
|
+
`),A=!1;for(let J of z){let V=J.trim();if(V.startsWith("[")){A=V==="[Desktop Entry]";continue}if(!A)continue;if(!V.startsWith("Exec="))continue;let $=V.slice(5).replace(S,"").replace(/%%/g,"%").trim();if($.length===0)return null;let Y=$.match(/^"([^"]+)"|^(\S+)/);if(!Y)return null;return Y[1]??Y[2]??null}return null}async function L(q){for(let z of U()){let A=K.join(z,q);try{return await I.readFile(A,"utf8")}catch(J){}}return null}async function _(q){let{code:z}=await Q("which",[q],{timeout:X,useCwd:!1});return z===0}async function N(){let{code:q,stdout:z}=await Q("xdg-settings",["get","default-web-browser"],{timeout:X,useCwd:!1});if(q!==0)return null;let A=z.trim();if(A.length===0||!A.endsWith(".desktop"))return null;let J=await L(A);if(J==null)return null;return k(J)}async function B(){for(let q of v)if(await _(q))return q;return null}async function m(){if(Z!==void 0)return Z;try{let q=await N();if(q)return Z=q,q}catch(q){G(`browser: xdg-settings detection failed: ${String(q)}`)}try{let q=await B();return Z=q,q}catch(q){return G(`browser: probe list failed: ${String(q)}`),Z=null,null}}async function W(q,z){let{code:A}=await Q(q,[z]);return A===0}async function w(q){try{O(q);let z=process.env.BROWSER,A=process.platform;if(A==="win32"){if(z){let{code:H}=await Q(z,[`"${q}"`]);return H===0}let{code:Y}=await Q("rundll32",["url,OpenURL",q],{});return Y===0}if(A==="darwin"){let Y=z||"open",{code:H}=await Q(Y,[q]);return H===0}if(z){if(await W(z,q))return!0}let J;try{J=P().oauthBrowser}catch(Y){G(`browser: failed to read oauthBrowser setting: ${String(Y)}`)}if(J&&J.length>0){if(await W(J,q))return!0}let V=await m();if(V){if(await W(V,q))return!0}let{code:$}=await Q("xdg-open",[q]);return $===0}catch(z){return!1}}var S,v,X=2000,Z=void 0;var f=j(()=>{M();C();R();S=/%[fFuUdDnNickvm]/g,v=["brave-browser","brave","firefox","chromium","google-chrome","microsoft-edge"]});
|
|
3
|
+
export{g as r4,w as s4,f as t4};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import{bf as kZ,hf as XX}from"./cli-1.0.13-rhptvh17.mjs";import{lf as YZ,mf as gQ}from"./cli-1.0.13-r9nmkthw.mjs";import{$n as n,Bl as MX,By as yZ,Cy as iQ,Dk as dZ,Dn as HJ,Dw as NQ,ER as lZ,Ek as tQ,En as DQ,Fs as vQ,GA as mZ,Gq as MZ,HA as ZX,JR as iZ,Jk as r0,Jq as lQ,Jw as CX,Ks as d0,Lk as GZ,Mk as UJ,NE as HQ,Ns as hQ,OH as WZ,PH as RZ,PR as LZ,QE as hX,QH as s0,Rn as GQ,SH as MJ,Sn as EX,Sx as WQ,TH as F0,Tn as l,Tx as bX,UH as i0,Un as A0,Xn as Z0,YD as FQ,Yn as B0,ZD as vX,Zs as VQ,Zx as zJ,_x as RQ,aG as OQ,ao as I0,at as KX,ay as AX,az as NZ,bk as VZ,bz as rQ,cB as IX,dB as DX,dG as gX,ez as a0,fz as CZ,gG as j0,hG as QX,js as aZ,mI as pZ,ms as FX,ns as cJ,os as LQ,pI as kJ,qI as JZ,rI as OJ,sI as WJ,tI as ZZ,tK as $0,uI as QZ,uk as u0,vI as XZ,vk as pJ,vs as U0,wK as FZ,xI as p0,yA as fJ,yI as _0,zA as BX,zI as PJ,zl as qQ}from"./cli-1.0.13-kr3d94dn.mjs";import{WX as QJ,XX as nZ,jY as q0,kY as g0}from"./cli-1.0.13-3f0zqjp8.mjs";import{G0 as C,I0 as V,M0 as JJ,W0 as wZ,kZ as R0,l1 as f0,tZ as l0}from"./cli-1.0.13-mv57kk3c.mjs";import{h3 as hJ,o3 as yX}from"./cli-1.0.13-tp2w17kc.mjs";import{T3 as o,U3 as f,V3 as W,W3 as $}from"./cli-1.0.13-afdk25h0.mjs";import{X3 as o0}from"./cli-1.0.13-gsz0cygn.mjs";import{g4 as mJ,q4 as MQ}from"./cli-1.0.13-tyhtztew.mjs";import{s4 as DJ,t4 as JX}from"./cli-1.0.13-2z8q1mtz.mjs";import{H4 as tJ,I4 as IQ,y7 as NJ,z7 as wQ}from"./cli-1.0.13-h5mwwv8w.mjs";import{$$ as M0,Aca as uZ,Cca as eQ,Fba as m0,Pca as Q0,Xca as IJ,_$ as fQ,baa as CJ,f_ as t0,g_ as cZ,qga as eJ,yba as z0,yga as BQ,zba as w0,zca as TZ}from"./cli-1.0.13-p1nsb8ay.mjs";import{Gga as y0,Jga as b0,Lga as oZ,Nga as e0,Oga as x0,Vga as h0}from"./cli-1.0.13-x4xwa6y3.mjs";import{Kha as AQ,yha as sJ}from"./cli-1.0.13-k4znag0a.mjs";import{Xia as t,_ia as _J}from"./cli-1.0.13-vbby2x4m.mjs";import{Oja as $Z,Qja as RX,_ja as D0,bka as dJ}from"./cli-1.0.13-4dp5a597.mjs";import{Fka as aJ,yka as v0}from"./cli-1.0.13-mazxedqg.mjs";import{dsa as J0,esa as FJ,gsa as $J,hsa as a}from"./cli-1.0.13-d9nvpqpw.mjs";function T0(Q){return typeof Q==="object"&&Q!==null&&"type"in Q&&Q.type==="local_agent"}function qJ(Q){return{...Q,retain:!1,messages:void 0,diskLoaded:!1,evictAfter:cJ(Q.status)?Date.now()+UQ:void 0}}function GJ(Q,J){t("tengu_transcript_view_enter",{}),J((Z)=>{let X=Z.tasks[Q],z=Z.viewingAgentTaskId,Y=z!==void 0?Z.tasks[z]:void 0,G=z!==void 0&&z!==Q&&T0(Y)&&Y.retain,q=T0(X)&&(!X.retain||X.evictAfter!==void 0),R=Z.viewingAgentTaskId!==Q||Z.viewSelectionMode!=="viewing-agent";if(!q&&!R&&!G)return Z;let F=Z.tasks;if(G||q){if(F={...Z.tasks},G)F[z]=qJ(Y);if(q)F[Q]={...X,retain:!0,evictAfter:void 0}}return{...Z,viewingAgentTaskId:Q,viewSelectionMode:"viewing-agent",tasks:F}})}function VJ(Q){t("tengu_transcript_view_exit",{}),Q((J)=>{let Z=J.viewingAgentTaskId,X={...J,viewingAgentTaskId:void 0,viewSelectionMode:"none"};if(Z===void 0)return J.viewSelectionMode==="none"?J:X;let z=J.tasks[Z];if(!T0(z)||!z.retain)return X;return{...X,tasks:{...J.tasks,[Z]:qJ(z)}}})}function xX(Q,J){J((Z)=>{let X=Z.tasks[Q];if(!T0(X))return Z;if(X.status==="running")return X.abortController?.abort(),Z;if(X.evictAfter===0)return Z;let z=Z.viewingAgentTaskId===Q;return{...Z,tasks:{...Z.tasks,[Q]:{...qJ(X),evictAfter:0}},...z&&{viewingAgentTaskId:void 0,viewSelectionMode:"none"}}})}var UQ=30000;var TJ=a(()=>{_J();LQ()});class xJ{exitPlanCalls=[];results=new Map;rejectedIds=new Set;terminated=null;rescanAfterRejection=!1;everSeenPending=!1;get rejectCount(){return this.rejectedIds.size}get hasPendingPlan(){let Q=this.exitPlanCalls.findLast((J)=>!this.rejectedIds.has(J));return Q!==void 0&&!this.results.has(Q)}ingest(Q){for(let X of Q)if(X.type==="assistant")for(let z of X.message.content){if(z.type!=="tool_use")continue;let Y=z;if(Y.name===u0)this.exitPlanCalls.push(Y.id)}else if(X.type==="user"){let z=X.message.content;if(!Array.isArray(z))continue;for(let Y of z)if(Y.type==="tool_result")this.results.set(Y.tool_use_id,Y)}else if(X.type==="result"&&X.subtype!=="success")this.terminated={subtype:X.subtype};let J=Q.length>0||this.rescanAfterRejection;this.rescanAfterRejection=!1;let Z=null;if(J){for(let X=this.exitPlanCalls.length-1;X>=0;X--){let z=this.exitPlanCalls[X];if(this.rejectedIds.has(z))continue;let Y=this.results.get(z);if(!Y)Z={kind:"pending"};else if(Y.is_error===!0){let G=KQ(Y.content);Z=G!==null?{kind:"teleport",plan:G}:{kind:"rejected",id:z}}else Z={kind:"approved",plan:CQ(Y.content)};break}if(Z?.kind==="approved"||Z?.kind==="teleport")return Z}if(Z?.kind==="rejected")this.rejectedIds.add(Z.id),this.rescanAfterRejection=!0;if(this.terminated)return{kind:"terminated",subtype:this.terminated.subtype};if(Z?.kind==="rejected")return Z;if(Z?.kind==="pending")return this.everSeenPending=!0,Z;return{kind:"unchanged"}}}async function rJ(Q,J,Z,X){let z=Date.now()+J,Y=new xJ,G=null,q=0,R="running";while(Date.now()<z){if(X?.())throw new W0("poll stopped by caller","stopped",Y.rejectCount);let F,O;try{let L=await kJ(Q,G);F=L.newEvents,G=L.lastEventId,O=L.sessionStatus,q=0}catch(L){if(!mJ(L)||++q>=yQ)throw new W0(L instanceof Error?L.message:String(L),"network_or_unknown",Y.rejectCount,{cause:L});await NJ(uJ);continue}let H;try{H=Y.ingest(F)}catch(L){throw new W0(L instanceof Error?L.message:String(L),"extract_marker_missing",Y.rejectCount)}if(H.kind==="approved")return{plan:H.plan,rejectCount:Y.rejectCount,executionTarget:"remote"};if(H.kind==="teleport")return{plan:H.plan,rejectCount:Y.rejectCount,executionTarget:"local"};if(H.kind==="terminated")throw new W0(`remote session ended (${H.subtype}) before plan approval`,"terminated",Y.rejectCount);let P=(O==="idle"||O==="requires_action")&&F.length===0,w=Y.hasPendingPlan?"plan_ready":P?"needs_input":"running";if(w!==R)D0(`[ultraplan] phase ${R} → ${w}`),R=w,Z?.(w);await NJ(uJ)}throw new W0(Y.everSeenPending?`no approval after ${J/1000}s`:`ExitPlanMode never reached after ${J/1000}s (the remote container failed to start, or session ID mismatch?)`,Y.everSeenPending?"timeout_pending":"timeout_no_plan",Y.rejectCount)}function lJ(Q){return typeof Q==="string"?Q:Array.isArray(Q)?Q.map((J)=>("text"in J)?J.text:"").join(""):""}function KQ(Q){let J=lJ(Q),Z=`${EQ}
|
|
2
|
+
`,X=J.indexOf(Z);if(X===-1)return null;return J.slice(X+Z.length).trimEnd()}function CQ(Q){let J=lJ(Q),Z=[`## Approved Plan (edited by user):
|
|
3
|
+
`,`## Approved Plan:
|
|
4
|
+
`];for(let X of Z){let z=J.indexOf(X);if(z!==-1)return J.slice(z+X.length).trimEnd()}throw Error(`ExitPlanMode approved but tool_result has no "## Approved Plan:" marker — remote may have hit the empty-plan or isAgent branch. Content preview: ${J.slice(0,200)}`)}var uJ=3000,yQ=5,W0,EQ="__ULTRAPLAN_TELEPORT_LOCAL__";var iJ=a(()=>{pJ();dJ();wQ();MQ();WJ();W0=class W0 extends Error{reason;rejectCount;constructor(Q,J,Z,X){super(Q,X);this.reason=J;this.rejectCount=Z;this.name="UltraplanPollError"}}});var oJ={};$J(oJ,{default:()=>bQ});var bQ=`This is a planning prompt stub.
|
|
5
|
+
`;var nJ=()=>{};function jQ(){return sJ("tengu_ultraplan_model",tJ.opus46.firstParty)}function TQ(Q,J){let Z=[];if(J)Z.push("Here is a draft plan to refine:","",J,"");if(Z.push(cQ),Q)Z.push("",Q);return Z.join(`
|
|
6
|
+
`)}function uQ(Q,J,Z,X,z){let Y=Date.now(),G=!1;(async()=>{try{let{plan:q,rejectCount:R,executionTarget:F}=await rJ(J,SQ,(O)=>{if(O==="needs_input")t("tengu_ultraplan_awaiting_input",{});d0(Q,z,(H)=>{if(H.status!=="running")return H;let P=O==="running"?void 0:O;return H.ultraplanPhase===P?H:{...H,ultraplanPhase:P}})},()=>X().tasks?.[Q]?.status!=="running");if(t("tengu_ultraplan_approved",{duration_ms:Date.now()-Y,plan_length:q.length,reject_count:R,execution_target:F}),F==="remote"){if(X().tasks?.[Q]?.status!=="running")return;d0(Q,z,(H)=>H.status!=="running"?H:{...H,status:"completed",endTime:Date.now()}),z((H)=>H.ultraplanSessionUrl===Z?{...H,ultraplanSessionUrl:void 0}:H),U0({value:[`Ultraplan approved — executing in Claude Code on the web. Follow along at: ${Z}`,"","Results will land as a pull request when the remote session finishes. There is nothing to do here."].join(`
|
|
7
|
+
`),mode:"task-notification"})}else z((O)=>{let H=O.tasks?.[Q];if(!H||H.status!=="running")return O;return{...O,ultraplanPendingChoice:{plan:q,sessionId:J,taskId:Q}}})}catch(q){if(X().tasks?.[Q]?.status!=="running")return;G=!0,t("tengu_ultraplan_failed",{duration_ms:Date.now()-Y,reason:q instanceof W0?q.reason:"network_or_unknown",reject_count:q instanceof W0?q.rejectCount:void 0}),U0({value:`Ultraplan failed: ${v0(q)}
|
|
8
|
+
|
|
9
|
+
Session: ${Z}`,mode:"task-notification"}),OJ(J).catch((F)=>D0(`ultraplan archive failed: ${String(F)}`)),z((F)=>F.ultraplanSessionUrl===Z?{...F,ultraplanSessionUrl:void 0}:F)}finally{if(G)d0(Q,z,(q)=>q.status!=="running"?q:{...q,status:"failed",endTime:Date.now()})}})()}function dQ(Q){let J=Q?`${YZ} `:"";return`${z0} ultraplan
|
|
10
|
+
${J}Starting Claude Code on the web…`}function mQ(Q){return`${z0} ultraplan · Monitor progress in Claude Code on the web ${Q}
|
|
11
|
+
You can continue working — when the ${z0} fills, press ↓ to view results`}function fZ(Q){return Q?`ultraplan: already polling. Open ${Q} to check status, or wait for the plan to land here.`:"ultraplan: already launching. Please wait for the session to start."}async function LJ(Q,J,Z){await p0.kill(Q,Z),Z((z)=>z.ultraplanSessionUrl||z.ultraplanPendingChoice||z.ultraplanLaunching?{...z,ultraplanSessionUrl:void 0,ultraplanPendingChoice:void 0,ultraplanLaunching:void 0}:z);let X=HJ(J,process.env.SESSION_INGRESS_URL);U0({value:`Ultraplan stopped.
|
|
12
|
+
|
|
13
|
+
Session: ${X}`,mode:"task-notification"}),U0({value:"The user stopped the ultraplan session above. Do not respond to the stop notification — wait for their next message.",mode:"task-notification",isMeta:!0})}async function pQ(Q){let{blurb:J,seedPlan:Z,getAppState:X,setAppState:z,signal:Y,disconnectedBridge:G,onSessionReady:q}=Q,{ultraplanSessionUrl:R,ultraplanLaunching:F}=X();if(R||F)return t("tengu_ultraplan_create_failed",{reason:R?"already_polling":"already_launching"}),fZ(R);if(!J&&!Z)return['Usage: /ultraplan \\<prompt\\>, or include "ultraplan" anywhere',"in your prompt","","Advanced multi-agent plan mode with our most powerful model","(Opus). Runs in Claude Code on the web. When the plan is ready,","you can execute it in the web session or send it back here.","Terminal stays free while the remote plans.","Requires /login.","",`Terms: ${zZ}`].join(`
|
|
14
|
+
`);return z((O)=>O.ultraplanLaunching?O:{...O,ultraplanLaunching:!0}),kQ({blurb:J,seedPlan:Z,getAppState:X,setAppState:z,signal:Y,onSessionReady:q}),dQ(G)}async function kQ(Q){let{blurb:J,seedPlan:Z,getAppState:X,setAppState:z,signal:Y,onSessionReady:G}=Q,q;try{let R=jQ(),F=await ZZ();if(!F.eligible){t("tengu_ultraplan_create_failed",{reason:"precondition",precondition_errors:F.errors.map((K)=>K.type).join(",")});let U=F.errors.map(QZ).join(`
|
|
15
|
+
`);U0({value:`ultraplan: cannot launch remote session —
|
|
16
|
+
${U}`,mode:"task-notification"});return}let O=TQ(J,Z),H,P=await JZ({initialMessage:O,description:J||"Refine local plan",model:R,permissionMode:"plan",ultraplan:!0,signal:Y,useDefaultEnvironment:!0,onBundleFail:(U)=>{H=U}});if(!P){t("tengu_ultraplan_create_failed",{reason:H?"bundle_fail":"teleport_null"}),U0({value:`ultraplan: session creation failed${H?` — ${H}`:""}. See --debug for details.`,mode:"task-notification"});return}q=P.id;let w=HJ(P.id,process.env.SESSION_INGRESS_URL);z((U)=>({...U,ultraplanSessionUrl:w,ultraplanLaunching:void 0})),G?.(mQ(w)),t("tengu_ultraplan_launched",{has_seed_plan:Boolean(Z),model:R});let{taskId:L}=XZ({remoteTaskType:"ultraplan",session:{id:P.id,title:J||"Ultraplan"},command:J,context:{abortController:new AbortController,getAppState:X,setAppState:z},isUltraplan:!0});uQ(L,P.id,w,X,z)}catch(R){if(eJ(R),t("tengu_ultraplan_create_failed",{reason:"unexpected_error"}),U0({value:`ultraplan: unexpected error — ${v0(R)}`,mode:"task-notification"}),q)OJ(q).catch((F)=>D0("ultraplan: failed to archive orphaned session",F)),z((F)=>F.ultraplanSessionUrl?{...F,ultraplanSessionUrl:void 0}:F)}finally{z((R)=>R.ultraplanLaunching?{...R,ultraplanLaunching:void 0}:R)}}var SQ=1800000,zZ="https://code.claude.com/docs/en/claude-code-on-the-web",RJ,_Q,cQ,xQ=async(Q,J,Z)=>{let X=Z.trim();if(!X){let G=await pQ({blurb:X,getAppState:J.getAppState,setAppState:J.setAppState,signal:J.abortController.signal});return Q(G,{display:"system"}),null}let{ultraplanSessionUrl:z,ultraplanLaunching:Y}=J.getAppState();if(z||Y)return t("tengu_ultraplan_create_failed",{reason:z?"already_polling":"already_launching"}),Q(fZ(z),{display:"system"}),null;return J.setAppState((G)=>({...G,ultraplanLaunchPending:{blurb:X}})),Q(void 0,{display:"skip"}),null},WY;var qZ=a(()=>{gQ();m0();DQ();AQ();_J();PJ();dJ();aJ();BQ();vQ();IQ();hQ();WJ();iJ();RJ=(nJ(),FJ(oJ)),_Q=(typeof RJ==="string"?RJ:RJ.default).trimEnd(),cQ=_Q;WY={type:"local-jsx",name:"ultraplan",description:`~10–30 min · Claude Code on the web drafts an advanced plan you can edit and approve. See ${zZ}`,argumentHint:"<prompt>",isEnabled:()=>!1,load:()=>Promise.resolve({call:xQ})}});function k0(Q,J,Z){let X=GZ(J,Q.toolName);if(!X)return Q.toolName;try{let z=X.inputSchema.safeParse(Q.input),Y=z.success?z.data:{},G=X.userFacingName(Y);if(!G)return Q.toolName;let q=X.renderToolUseMessage(Y,{theme:Z,verbose:!1});if(q)return W(V,{children:[G,"(",q,")"]});return G}catch{return Q.toolName}}var wJ=a(()=>{f0();UJ();$()});function OZ(Q){let J=HZ.c(54),{agent:Z,onDone:X,onKillAgent:z,onBack:Y}=Q,[G]=l0(),q;if(J[0]===Symbol.for("react.memo_cache_sentinel"))q=$0(r0()),J[0]=q;else q=J[0];let R=q,F=F0(Z.startTime,Z.status==="running",1000,Z.totalPausedMs??0),O;if(J[1]!==X)O={"confirm:yes":X},J[1]=X,J[2]=O;else O=J[2];let H;if(J[3]===Symbol.for("react.memo_cache_sentinel"))H={context:"Confirmation"},J[3]=H;else H=J[3];q0(O,H);let P;if(J[4]!==Z.status||J[5]!==Y||J[6]!==X||J[7]!==z)P=(g)=>{if(g.key===" ")g.preventDefault(),X();else if(g.key==="left"&&Y)g.preventDefault(),Y();else if(g.key==="x"&&Z.status==="running"&&z)g.preventDefault(),z()},J[4]=Z.status,J[5]=Y,J[6]=X,J[7]=z,J[8]=P;else P=J[8];let w=P,L;if(J[9]!==Z.prompt)L=VZ(Z.prompt,"plan"),J[9]=Z.prompt,J[10]=L;else L=J[10];let U=L,K=Z.prompt.length>300?Z.prompt.substring(0,297)+"…":Z.prompt,E=Z.result?.totalTokens??Z.progress?.tokenCount,A=Z.result?.totalToolUseCount??Z.progress?.toolUseCount,v=Z.selectedAgent?.agentType??"agent",D=Z.description||"Async agent",I;if(J[11]!==v||J[12]!==D)I=W(V,{children:[v," ›"," ",D]}),J[11]=v,J[12]=D,J[13]=I;else I=J[13];let y=I,B;if(J[14]!==Z.status)B=Z.status!=="running"&&W(V,{color:RZ(Z.status),children:[WZ(Z.status)," ",Z.status==="completed"?"Completed":Z.status==="failed"?"Failed":"Stopped"," · "]}),J[14]=Z.status,J[15]=B;else B=J[15];let m;if(J[16]!==E)m=E!==void 0&&E>0&&W(o,{children:[" · ",x0(E)," tokens"]}),J[16]=E,J[17]=m;else m=J[17];let u;if(J[18]!==A)u=A!==void 0&&A>0&&W(o,{children:[" ","· ",A," ",A===1?"tool":"tools"]}),J[18]=A,J[19]=u;else u=J[19];let S;if(J[20]!==F||J[21]!==m||J[22]!==u)S=W(V,{dimColor:!0,children:[F,m,u]}),J[20]=F,J[21]=m,J[22]=u,J[23]=S;else S=J[23];let x;if(J[24]!==S||J[25]!==B)x=W(V,{children:[B,S]}),J[24]=S,J[25]=B,J[26]=x;else x=J[26];let d=x,h;if(J[27]!==Z.status||J[28]!==Y||J[29]!==z)h=(g)=>g.pending?W(V,{children:["Press ",g.keyName," again to exit"]}):W(Z0,{children:[Y&&f(l,{shortcut:"←",action:"go back"}),f(l,{shortcut:"Esc/Enter/Space",action:"close"}),Z.status==="running"&&z&&f(l,{shortcut:"x",action:"stop"})]}),J[27]=Z.status,J[28]=Y,J[29]=z,J[30]=h;else h=J[30];let b;if(J[31]!==Z.progress||J[32]!==Z.status||J[33]!==G)b=Z.status==="running"&&Z.progress?.recentActivities&&Z.progress.recentActivities.length>0&&W(C,{flexDirection:"column",children:[f(V,{bold:!0,dimColor:!0,children:"Progress"}),Z.progress.recentActivities.map((g,k)=>W(V,{dimColor:k<Z.progress.recentActivities.length-1,wrap:"truncate-end",children:[k===Z.progress.recentActivities.length-1?"› ":" ",k0(g,R,G)]},k))]}),J[31]=Z.progress,J[32]=Z.status,J[33]=G,J[34]=b;else b=J[34];let p;if(J[35]!==K||J[36]!==U)p=U?f(C,{marginTop:1,children:f(NZ,{addMargin:!1,planContent:U})}):W(C,{flexDirection:"column",marginTop:1,children:[f(V,{bold:!0,dimColor:!0,children:"Prompt"}),f(V,{wrap:"wrap",children:K})]}),J[35]=K,J[36]=U,J[37]=p;else p=J[37];let c;if(J[38]!==Z.error||J[39]!==Z.status)c=Z.status==="failed"&&Z.error&&W(C,{flexDirection:"column",marginTop:1,children:[f(V,{bold:!0,color:"error",children:"Error"}),f(V,{color:"error",wrap:"wrap",children:Z.error})]}),J[38]=Z.error,J[39]=Z.status,J[40]=c;else c=J[40];let _;if(J[41]!==b||J[42]!==p||J[43]!==c)_=W(C,{flexDirection:"column",children:[b,p,c]}),J[41]=b,J[42]=p,J[43]=c,J[44]=_;else _=J[44];let j;if(J[45]!==X||J[46]!==d||J[47]!==h||J[48]!==_||J[49]!==y)j=f(n,{title:y,subtitle:d,onCancel:X,color:"background",inputGuide:h,children:_}),J[45]=X,J[46]=d,J[47]=h,J[48]=_,J[49]=y,J[50]=j;else j=J[50];let T;if(J[51]!==w||J[52]!==j)T=f(C,{flexDirection:"column",tabIndex:0,autoFocus:!0,onKeyDown:w,children:j}),J[51]=w,J[52]=j,J[53]=T;else T=J[53];return T}var HZ;var PZ=a(()=>{i0();f0();g0();UJ();FZ();h0();LZ();B0();I0();A0();rQ();wJ();MJ();$();HZ=J0(R0(),1)});function bJ(Q,J,Z,X){if(!Q)return`${J} found · ${Z} verified`;if(Q==="synthesizing"){let z=[`${Z} verified`];if(X>0)z.push(`${X} refuted`);return z.push("deduping"),z.join(" · ")}if(Q==="verifying"){let z=[`${J} found`,`${Z} verified`];if(X>0)z.push(`${X} refuted`);return z.join(" · ")}return J>0?`${J} found`:"finding"}function yJ(Q){let J=n0.c(5),{text:Z,phase:X}=Q,z=X===void 0?0:X,Y;if(J[0]!==Z)Y=[...Z],J[0]=Z,J[1]=Y;else Y=J[1];let G;if(J[2]!==z||J[3]!==Y)G=f(o,{children:Y.map((q,R)=>f(V,{color:MZ(R+z),children:q},R))}),J[2]=z,J[3]=Y,J[4]=G;else G=J[4];return G}function EJ(Q,J,Z){let X=KJ.useRef(Q),z=KJ.useRef(J);if(Z||Q<X.current)X.current=Q;else if(Q>X.current&&J!==z.current)X.current+=1,z.current=J;return X.current}function $Q(Q){let J=n0.c(15),{session:Z}=Q,z=yZ().prefersReducedMotion??!1,Y=Z.reviewProgress,G=Z.status==="running",[,q]=wZ(G&&!z?UZ:null),R=Y?.bugsFound??0,F=Y?.bugsVerified??0,O=Y?.bugsRefuted??0,H=z||!G,P=EJ(R,q,H),w=EJ(F,q,H),L=EJ(O,q,H),U=Math.floor(q/(UZ*3))%7;if(Z.status==="completed"){let B;if(J[0]===Symbol.for("react.memo_cache_sentinel"))B=W(o,{children:[W(V,{color:"background",children:[w0," "]}),f(yJ,{text:"ultrareview",phase:0}),f(V,{dimColor:!0,children:" ready · shift+↓ to view"})]}),J[0]=B;else B=J[0];return B}if(Z.status==="failed"){let B;if(J[1]===Symbol.for("react.memo_cache_sentinel"))B=W(o,{children:[W(V,{color:"background",children:[w0," "]}),f(yJ,{text:"ultrareview",phase:0}),W(V,{color:"error",dimColor:!0,children:[" · ","error"]})]}),J[1]=B;else B=J[1];return B}let K;if(J[2]!==P||J[3]!==Y||J[4]!==L||J[5]!==w)K=!Y?"setting up":bJ(Y.stage,P,w,L),J[2]=P,J[3]=Y,J[4]=L,J[5]=w,J[6]=K;else K=J[6];let E=K,A;if(J[7]===Symbol.for("react.memo_cache_sentinel"))A=W(V,{color:"background",children:[z0," "]}),J[7]=A;else A=J[7];let v=G?U:0,D;if(J[8]!==v)D=f(yJ,{text:"ultrareview",phase:v}),J[8]=v,J[9]=D;else D=J[9];let I;if(J[10]!==E)I=W(V,{dimColor:!0,children:[" · ",E]}),J[10]=E,J[11]=I;else I=J[11];let y;if(J[12]!==D||J[13]!==I)y=W(o,{children:[A,D,I]}),J[12]=D,J[13]=I,J[14]=y;else y=J[14];return y}function S0(Q){let J=n0.c(11),{session:Z}=Q;if(Z.isRemoteReview){let q;if(J[0]!==Z)q=f($Q,{session:Z}),J[0]=Z,J[1]=q;else q=J[1];return q}if(Z.status==="completed"){let q;if(J[2]===Symbol.for("react.memo_cache_sentinel"))q=f(V,{bold:!0,color:"success",dimColor:!0,children:"done"}),J[2]=q;else q=J[2];return q}if(Z.status==="failed"){let q;if(J[3]===Symbol.for("react.memo_cache_sentinel"))q=f(V,{bold:!0,color:"error",dimColor:!0,children:"error"}),J[3]=q;else q=J[3];return q}if(!Z.todoList.length){let q;if(J[4]!==Z.status)q=W(V,{dimColor:!0,children:[Z.status,"…"]}),J[4]=Z.status,J[5]=q;else q=J[5];return q}let X;if(J[6]!==Z.todoList)X=M0(Z.todoList,oQ),J[6]=Z.todoList,J[7]=X;else X=J[7];let z=X,Y=Z.todoList.length,G;if(J[8]!==z||J[9]!==Y)G=W(V,{dimColor:!0,children:[z,"/",Y]}),J[8]=z,J[9]=Y,J[10]=G;else G=J[10];return G}function oQ(Q){return Q.status==="completed"}var n0,KJ,UZ=80;var AJ=a(()=>{m0();iQ();f0();CJ();lQ();$();n0=J0(R0(),1),KJ=J0(o0(),1)});function H0(Q){let J=BJ.c(4),{status:Z,label:X,suffix:z}=Q,Y=X??Z,G=Z==="completed"?"success":Z==="failed"?"error":Z==="killed"?"warning":void 0,q;if(J[0]!==G||J[1]!==Y||J[2]!==z)q=W(V,{color:G,dimColor:!0,children:["(",Y,z,")"]}),J[0]=G,J[1]=Y,J[2]=z,J[3]=q;else q=J[3];return q}function EZ(Q){let J=BJ.c(4),{shell:Z}=Q;switch(Z.status){case"completed":{let X;if(J[0]===Symbol.for("react.memo_cache_sentinel"))X=f(H0,{status:"completed",label:"done"}),J[0]=X;else X=J[0];return X}case"failed":{let X;if(J[1]===Symbol.for("react.memo_cache_sentinel"))X=f(H0,{status:"failed",label:"error"}),J[1]=X;else X=J[1];return X}case"killed":{let X;if(J[2]===Symbol.for("react.memo_cache_sentinel"))X=f(H0,{status:"killed",label:"stopped"}),J[2]=X;else X=J[2];return X}case"running":case"pending":{let X;if(J[3]===Symbol.for("react.memo_cache_sentinel"))X=f(H0,{status:"running"}),J[3]=X;else X=J[3];return X}}}var BJ;var KZ=a(()=>{f0();$();BJ=J0(R0(),1)});function AZ(Q){let J=bZ.c(92),{task:Z,maxActivityWidth:X}=Q,z=X??40;switch(Z.type){case"local_bash":{let Y=Z.kind==="monitor"?Z.description:Z.command,G;if(J[0]!==z||J[1]!==Y)G=b0(Y,z,!0),J[0]=z,J[1]=Y,J[2]=G;else G=J[2];let q;if(J[3]!==Z)q=f(EZ,{shell:Z}),J[3]=Z,J[4]=q;else q=J[4];let R;if(J[5]!==G||J[6]!==q)R=W(V,{children:[G," ",q]}),J[5]=G,J[6]=q,J[7]=R;else R=J[7];return R}case"remote_agent":{if(Z.isRemoteReview){let P;if(J[8]!==Z)P=f(V,{children:f(S0,{session:Z})}),J[8]=Z,J[9]=P;else P=J[9];return P}let G=Z.status==="running"||Z.status==="pending"?z0:w0,q;if(J[10]!==G)q=W(V,{dimColor:!0,children:[G," "]}),J[10]=G,J[11]=q;else q=J[11];let R;if(J[12]!==z||J[13]!==Z.title)R=b0(Z.title,z,!0),J[12]=z,J[13]=Z.title,J[14]=R;else R=J[14];let F;if(J[15]===Symbol.for("react.memo_cache_sentinel"))F=f(V,{dimColor:!0,children:" · "}),J[15]=F;else F=J[15];let O;if(J[16]!==Z)O=f(S0,{session:Z}),J[16]=Z,J[17]=O;else O=J[17];let H;if(J[18]!==q||J[19]!==R||J[20]!==O)H=W(V,{children:[q,R,F,O]}),J[18]=q,J[19]=R,J[20]=O,J[21]=H;else H=J[21];return H}case"local_agent":{let Y;if(J[22]!==z||J[23]!==Z.description)Y=b0(Z.description,z,!0),J[22]=z,J[23]=Z.description,J[24]=Y;else Y=J[24];let G=Z.status==="completed"?"done":void 0,q=Z.status==="completed"&&!Z.notified?", unread":void 0,R;if(J[25]!==G||J[26]!==q||J[27]!==Z.status)R=f(H0,{status:Z.status,label:G,suffix:q}),J[25]=G,J[26]=q,J[27]=Z.status,J[28]=R;else R=J[28];let F;if(J[29]!==Y||J[30]!==R)F=W(V,{children:[Y," ",R]}),J[29]=Y,J[30]=R,J[31]=F;else F=J[31];return F}case"in_process_teammate":{let Y,G,q,R,F,O;if(J[32]!==z||J[33]!==Z){let w=s0(Z);G=V;let L;if(J[40]!==Z.identity.color)L=a0(Z.identity.color),J[40]=Z.identity.color,J[41]=L;else L=J[41];if(J[42]!==L||J[43]!==Z.identity.agentName)O=W(V,{color:L,children:["@",Z.identity.agentName]}),J[42]=L,J[43]=Z.identity.agentName,J[44]=O;else O=J[44];Y=V,q=!0,R=": ",F=b0(w,z,!0),J[32]=z,J[33]=Z,J[34]=Y,J[35]=G,J[36]=q,J[37]=R,J[38]=F,J[39]=O}else Y=J[34],G=J[35],q=J[36],R=J[37],F=J[38],O=J[39];let H;if(J[45]!==Y||J[46]!==q||J[47]!==R||J[48]!==F)H=W(Y,{dimColor:q,children:[R,F]}),J[45]=Y,J[46]=q,J[47]=R,J[48]=F,J[49]=H;else H=J[49];let P;if(J[50]!==G||J[51]!==O||J[52]!==H)P=W(G,{children:[O,H]}),J[50]=G,J[51]=O,J[52]=H,J[53]=P;else P=J[53];return P}case"local_workflow":{let Y=Z.workflowName??Z.summary??Z.description,G;if(J[54]!==z||J[55]!==Y)G=b0(Y,z,!0),J[54]=z,J[55]=Y,J[56]=G;else G=J[56];let q;if(J[57]!==Z.agentCount||J[58]!==Z.status)q=Z.status==="running"?`${Z.agentCount} ${Q0(Z.agentCount,"agent")}`:Z.status==="completed"?"done":void 0,J[57]=Z.agentCount,J[58]=Z.status,J[59]=q;else q=J[59];let R=Z.status==="completed"&&!Z.notified?", unread":void 0,F;if(J[60]!==q||J[61]!==R||J[62]!==Z.status)F=f(H0,{status:Z.status,label:q,suffix:R}),J[60]=q,J[61]=R,J[62]=Z.status,J[63]=F;else F=J[63];let O;if(J[64]!==G||J[65]!==F)O=W(V,{children:[G," ",F]}),J[64]=G,J[65]=F,J[66]=O;else O=J[66];return O}case"monitor_mcp":{let Y;if(J[67]!==z||J[68]!==Z.description)Y=b0(Z.description,z,!0),J[67]=z,J[68]=Z.description,J[69]=Y;else Y=J[69];let G=Z.status==="completed"?"done":void 0,q=Z.status==="completed"&&!Z.notified?", unread":void 0,R;if(J[70]!==G||J[71]!==q||J[72]!==Z.status)R=f(H0,{status:Z.status,label:G,suffix:q}),J[70]=G,J[71]=q,J[72]=Z.status,J[73]=R;else R=J[73];let F;if(J[74]!==Y||J[75]!==R)F=W(V,{children:[Y," ",R]}),J[74]=Y,J[75]=R,J[76]=F;else F=J[76];return F}case"dream":{let Y=Z.filesTouched.length,G;if(J[77]!==Y||J[78]!==Z.phase||J[79]!==Z.sessionsReviewing)G=Z.phase==="updating"&&Y>0?`${Y} ${Q0(Y,"file")}`:`${Z.sessionsReviewing} ${Q0(Z.sessionsReviewing,"session")}`,J[77]=Y,J[78]=Z.phase,J[79]=Z.sessionsReviewing,J[80]=G;else G=J[80];let q=G,R;if(J[81]!==q||J[82]!==Z.phase)R=W(V,{dimColor:!0,children:["· ",Z.phase," · ",q]}),J[81]=q,J[82]=Z.phase,J[83]=R;else R=J[83];let F=Z.status==="completed"?"done":void 0,O=Z.status==="completed"&&!Z.notified?", unread":void 0,H;if(J[84]!==F||J[85]!==O||J[86]!==Z.status)H=f(H0,{status:Z.status,label:F,suffix:O}),J[84]=F,J[85]=O,J[86]=Z.status,J[87]=H;else H=J[87];let P;if(J[88]!==R||J[89]!==H||J[90]!==Z.description)P=W(V,{children:[Z.description," ",R," ",H]}),J[88]=R,J[89]=H,J[90]=Z.description,J[91]=P;else P=J[91];return P}}}var bZ;var BZ=a(()=>{f0();h0();CZ();IJ();m0();AJ();KZ();MJ();$();bZ=J0(R0(),1)});function DZ(Q){let J=IZ.c(70),{task:Z,onDone:X,onBack:z,onKill:Y}=Q,G=F0(Z.startTime,Z.status==="running",1000,0),q;if(J[0]!==X)q={"confirm:yes":X},J[0]=X,J[1]=q;else q=J[1];let R;if(J[2]===Symbol.for("react.memo_cache_sentinel"))R={context:"Confirmation"},J[2]=R;else R=J[2];q0(q,R);let F;if(J[3]!==z||J[4]!==X||J[5]!==Y||J[6]!==Z.status)F=(b)=>{if(b.key===" ")b.preventDefault(),X();else if(b.key==="left"&&z)b.preventDefault(),z();else if(b.key==="x"&&Z.status==="running"&&Y)b.preventDefault(),Y()},J[3]=z,J[4]=X,J[5]=Y,J[6]=Z.status,J[7]=F;else F=J[7];let O=F,H,P,w,L,U,K,E,A,v,D,I,y,B,m,u,S;if(J[8]!==G||J[9]!==O||J[10]!==z||J[11]!==X||J[12]!==Y||J[13]!==Z.filesTouched.length||J[14]!==Z.sessionsReviewing||J[15]!==Z.status||J[16]!==Z.turns){let b=Z.turns.filter(sQ),p=b.slice(-nQ),c=b.length-p.length;w=C,E="column",A=0,v=!0,D=O,P=n,u="Memory consolidation";let _=Z.sessionsReviewing,j;if(J[33]!==Z.sessionsReviewing)j=Q0(Z.sessionsReviewing,"session"),J[33]=Z.sessionsReviewing,J[34]=j;else j=J[34];let T;if(J[35]!==Z.filesTouched.length)T=Z.filesTouched.length>0&&W(o,{children:[" ","· ",Z.filesTouched.length," ",Q0(Z.filesTouched.length,"file")," touched"]}),J[35]=Z.filesTouched.length,J[36]=T;else T=J[36];if(J[37]!==G||J[38]!==j||J[39]!==T||J[40]!==Z.sessionsReviewing)S=W(V,{dimColor:!0,children:[G," · reviewing ",_," ",j,T]}),J[37]=G,J[38]=j,J[39]=T,J[40]=Z.sessionsReviewing,J[41]=S;else S=J[41];if(L=X,U="background",J[42]!==z||J[43]!==Y||J[44]!==Z.status)K=(k)=>k.pending?W(V,{children:["Press ",k.keyName," again to exit"]}):W(Z0,{children:[z&&f(l,{shortcut:"←",action:"go back"}),f(l,{shortcut:"Esc/Enter/Space",action:"close"}),Z.status==="running"&&Y&&f(l,{shortcut:"x",action:"stop"})]}),J[42]=z,J[43]=Y,J[44]=Z.status,J[45]=K;else K=J[45];H=C,I="column",y=1;let g;if(J[46]===Symbol.for("react.memo_cache_sentinel"))g=f(V,{bold:!0,children:"Status:"}),J[46]=g;else g=J[46];if(J[47]!==Z.status)B=W(V,{children:[g," ",Z.status==="running"?f(V,{color:"background",children:"running"}):Z.status==="completed"?f(V,{color:"success",children:Z.status}):f(V,{color:"error",children:Z.status})]}),J[47]=Z.status,J[48]=B;else B=J[48];m=p.length===0?f(V,{dimColor:!0,children:Z.status==="running"?"Starting…":"(no text output)"}):W(o,{children:[c>0&&W(V,{dimColor:!0,children:["(",c," earlier ",Q0(c,"turn"),")"]}),p.map(aQ)]}),J[8]=G,J[9]=O,J[10]=z,J[11]=X,J[12]=Y,J[13]=Z.filesTouched.length,J[14]=Z.sessionsReviewing,J[15]=Z.status,J[16]=Z.turns,J[17]=H,J[18]=P,J[19]=w,J[20]=L,J[21]=U,J[22]=K,J[23]=E,J[24]=A,J[25]=v,J[26]=D,J[27]=I,J[28]=y,J[29]=B,J[30]=m,J[31]=u,J[32]=S}else H=J[17],P=J[18],w=J[19],L=J[20],U=J[21],K=J[22],E=J[23],A=J[24],v=J[25],D=J[26],I=J[27],y=J[28],B=J[29],m=J[30],u=J[31],S=J[32];let x;if(J[49]!==H||J[50]!==I||J[51]!==y||J[52]!==B||J[53]!==m)x=W(H,{flexDirection:I,gap:y,children:[B,m]}),J[49]=H,J[50]=I,J[51]=y,J[52]=B,J[53]=m,J[54]=x;else x=J[54];let d;if(J[55]!==P||J[56]!==L||J[57]!==U||J[58]!==K||J[59]!==x||J[60]!==u||J[61]!==S)d=f(P,{title:u,subtitle:S,onCancel:L,color:U,inputGuide:K,children:x}),J[55]=P,J[56]=L,J[57]=U,J[58]=K,J[59]=x,J[60]=u,J[61]=S,J[62]=d;else d=J[62];let h;if(J[63]!==w||J[64]!==E||J[65]!==A||J[66]!==v||J[67]!==D||J[68]!==d)h=f(w,{flexDirection:E,tabIndex:A,autoFocus:v,onKeyDown:D,children:d}),J[63]=w,J[64]=E,J[65]=A,J[66]=v,J[67]=D,J[68]=d,J[69]=h;else h=J[69];return h}function aQ(Q,J){return W(C,{flexDirection:"column",children:[f(V,{wrap:"wrap",children:Q.text}),Q.toolUseCount>0&&W(V,{dimColor:!0,children:[" ","(",Q.toolUseCount," ",Q0(Q.toolUseCount,"tool"),")"]})]},J)}function sQ(Q){return Q.text!==""}var IZ,nQ=6;var vZ=a(()=>{i0();f0();g0();IJ();B0();I0();A0();$();IZ=J0(R0(),1)});function gZ(Q){let J=hZ.c(63),{teammate:Z,onDone:X,onKill:z,onBack:Y,onForeground:G}=Q,[q]=l0(),R;if(J[0]===Symbol.for("react.memo_cache_sentinel"))R=$0(r0()),J[0]=R;else R=J[0];let F=R,O=F0(Z.startTime,Z.status==="running",1000,Z.totalPausedMs??0),H;if(J[1]!==X)H={"confirm:yes":X},J[1]=X,J[2]=H;else H=J[2];let P;if(J[3]===Symbol.for("react.memo_cache_sentinel"))P={context:"Confirmation"},J[3]=P;else P=J[3];q0(H,P);let w;if(J[4]!==Y||J[5]!==X||J[6]!==G||J[7]!==z||J[8]!==Z.status)w=(M)=>{if(M.key===" ")M.preventDefault(),X();else if(M.key==="left"&&Y)M.preventDefault(),Y();else if(M.key==="x"&&Z.status==="running"&&z)M.preventDefault(),z();else if(M.key==="f"&&Z.status==="running"&&G)M.preventDefault(),G()},J[4]=Y,J[5]=X,J[6]=G,J[7]=z,J[8]=Z.status,J[9]=w;else w=J[9];let L=w,U;if(J[10]!==Z)U=s0(Z),J[10]=Z,J[11]=U;else U=J[11];let K=U,E=Z.result?.totalTokens??Z.progress?.tokenCount,A=Z.result?.totalToolUseCount??Z.progress?.toolUseCount,v;if(J[12]!==Z.prompt)v=y0(Z.prompt,300),J[12]=Z.prompt,J[13]=v;else v=J[13];let D=v,I;if(J[14]!==Z.identity.color)I=a0(Z.identity.color),J[14]=Z.identity.color,J[15]=I;else I=J[15];let y;if(J[16]!==I||J[17]!==Z.identity.agentName)y=W(V,{color:I,children:["@",Z.identity.agentName]}),J[16]=I,J[17]=Z.identity.agentName,J[18]=y;else y=J[18];let B;if(J[19]!==K)B=K&&W(V,{dimColor:!0,children:[" (",K,")"]}),J[19]=K,J[20]=B;else B=J[20];let m;if(J[21]!==y||J[22]!==B)m=W(V,{children:[y,B]}),J[21]=y,J[22]=B,J[23]=m;else m=J[23];let u=m,S;if(J[24]!==Z.status)S=Z.status!=="running"&&W(V,{color:Z.status==="completed"?"success":Z.status==="killed"?"warning":"error",children:[Z.status==="completed"?"Completed":Z.status==="failed"?"Failed":"Stopped"," · "]}),J[24]=Z.status,J[25]=S;else S=J[25];let x;if(J[26]!==E)x=E!==void 0&&E>0&&W(o,{children:[" · ",x0(E)," tokens"]}),J[26]=E,J[27]=x;else x=J[27];let d;if(J[28]!==A)d=A!==void 0&&A>0&&W(o,{children:[" ","· ",A," ",A===1?"tool":"tools"]}),J[28]=A,J[29]=d;else d=J[29];let h;if(J[30]!==O||J[31]!==x||J[32]!==d)h=W(V,{dimColor:!0,children:[O,x,d]}),J[30]=O,J[31]=x,J[32]=d,J[33]=h;else h=J[33];let b;if(J[34]!==S||J[35]!==h)b=W(V,{children:[S,h]}),J[34]=S,J[35]=h,J[36]=b;else b=J[36];let p=b,c;if(J[37]!==Y||J[38]!==G||J[39]!==z||J[40]!==Z.status)c=(M)=>M.pending?W(V,{children:["Press ",M.keyName," again to exit"]}):W(Z0,{children:[Y&&f(l,{shortcut:"←",action:"go back"}),f(l,{shortcut:"Esc/Enter/Space",action:"close"}),Z.status==="running"&&z&&f(l,{shortcut:"x",action:"stop"}),Z.status==="running"&&G&&f(l,{shortcut:"f",action:"foreground"})]}),J[37]=Y,J[38]=G,J[39]=z,J[40]=Z.status,J[41]=c;else c=J[41];let _;if(J[42]!==Z.progress||J[43]!==Z.status||J[44]!==q)_=Z.status==="running"&&Z.progress?.recentActivities&&Z.progress.recentActivities.length>0&&W(C,{flexDirection:"column",children:[f(V,{bold:!0,dimColor:!0,children:"Progress"}),Z.progress.recentActivities.map((M,r)=>W(V,{dimColor:r<Z.progress.recentActivities.length-1,wrap:"truncate-end",children:[r===Z.progress.recentActivities.length-1?"› ":" ",k0(M,F,q)]},r))]}),J[42]=Z.progress,J[43]=Z.status,J[44]=q,J[45]=_;else _=J[45];let j;if(J[46]===Symbol.for("react.memo_cache_sentinel"))j=f(V,{bold:!0,dimColor:!0,children:"Prompt"}),J[46]=j;else j=J[46];let T;if(J[47]!==D)T=W(C,{flexDirection:"column",marginTop:1,children:[j,f(V,{wrap:"wrap",children:D})]}),J[47]=D,J[48]=T;else T=J[48];let g;if(J[49]!==Z.error||J[50]!==Z.status)g=Z.status==="failed"&&Z.error&&W(C,{flexDirection:"column",marginTop:1,children:[f(V,{bold:!0,color:"error",children:"Error"}),f(V,{color:"error",wrap:"wrap",children:Z.error})]}),J[49]=Z.error,J[50]=Z.status,J[51]=g;else g=J[51];let k;if(J[52]!==X||J[53]!==p||J[54]!==c||J[55]!==_||J[56]!==T||J[57]!==g||J[58]!==u)k=W(n,{title:u,subtitle:p,onCancel:X,color:"background",inputGuide:c,children:[_,T,g]}),J[52]=X,J[53]=p,J[54]=c,J[55]=_,J[56]=T,J[57]=g,J[58]=u,J[59]=k;else k=J[59];let N;if(J[60]!==L||J[61]!==k)N=f(C,{flexDirection:"column",tabIndex:0,autoFocus:!0,onKeyDown:L,children:k}),J[60]=L,J[61]=k,J[62]=N;else N=J[62];return N}var hZ;var SZ=a(()=>{i0();f0();g0();UJ();FZ();h0();CZ();B0();I0();A0();wJ();MJ();$();hZ=J0(R0(),1)});function YX(Q,J){if(Q===u0)return"Review the plan in Claude Code on the web";if(!J||typeof J!=="object")return Q;if(Q===dZ&&"questions"in J){let Z=J.questions;if(Array.isArray(Z)&&Z[0]&&typeof Z[0]==="object"){let X="question"in Z[0]&&typeof Z[0].question==="string"&&Z[0].question?Z[0].question:("header"in Z[0])&&typeof Z[0].header==="string"?Z[0].header:null;if(X){let z=X.replace(/\s+/g," ").trim();return`Answer in browser: ${y0(z,50)}`}}}for(let Z of Object.values(J))if(typeof Z==="string"&&Z.trim()){let X=Z.replace(/\s+/g," ").trim();return`${Q} ${y0(X,60)}`}return Q}function qX(Q){let J=ZJ.c(70),{session:Z,onDone:X,onBack:z,onKill:Y}=Q,G=Z.status==="running"||Z.status==="pending",q=Z.ultraplanPhase,R=G?q?zX[q]:"running":Z.status,F=F0(Z.startTime,G,1000,0,Z.endTime),O=0,H=0,P=null;for(let X0 of Z.log){if(X0.type!=="assistant")continue;for(let e of X0.message.content){if(e.type!=="tool_use")continue;if(H++,P=e,e.name===TZ||e.name===uZ)O++}}let w=1+O,L;if(J[0]!==P)L=P?YX(P.name,P.input):null,J[0]=P,J[1]=L;else L=J[1];let U;if(J[2]!==H||J[3]!==w||J[4]!==L)U={agentsWorking:w,toolCalls:H,lastToolCall:L},J[2]=H,J[3]=w,J[4]=L,J[5]=U;else U=J[5];let{agentsWorking:K,toolCalls:E,lastToolCall:A}=U,v;if(J[6]!==Z.sessionId)v=_0(Z.sessionId),J[6]=Z.sessionId,J[7]=v;else v=J[7];let D=v,I;if(J[8]!==z||J[9]!==X)I=z??(()=>X("Remote session details dismissed",{display:"system"})),J[8]=z,J[9]=X,J[10]=I;else I=J[10];let y=I,[B,m]=O0.useState(!1);if(B){let X0;if(J[11]===Symbol.for("react.memo_cache_sentinel"))X0=()=>m(!1),J[11]=X0;else X0=J[11];let e;if(J[12]===Symbol.for("react.memo_cache_sentinel"))e=f(V,{dimColor:!0,children:"This will terminate the Claude Code on the web session."}),J[12]=e;else e=J[12];let C0;if(J[13]===Symbol.for("react.memo_cache_sentinel"))C0={label:"Terminate session",value:"stop"},J[13]=C0;else C0=J[13];let i;if(J[14]===Symbol.for("react.memo_cache_sentinel"))i=[C0,{label:"Back",value:"back"}],J[14]=i;else i=J[14];let L0;if(J[15]!==y||J[16]!==Y)L0=f(n,{title:"Stop ultraplan?",onCancel:X0,color:"background",children:W(C,{flexDirection:"column",gap:1,children:[e,f(j0,{options:i,onChange:(c0)=>{if(c0==="stop")Y?.(),y();else m(!1)}})]})}),J[15]=y,J[16]=Y,J[17]=L0;else L0=J[17];return L0}let u=q==="plan_ready"?w0:z0,S;if(J[18]!==u)S=W(V,{color:"background",children:[u," "]}),J[18]=u,J[19]=S;else S=J[19];let x;if(J[20]===Symbol.for("react.memo_cache_sentinel"))x=f(V,{bold:!0,children:"ultraplan"}),J[20]=x;else x=J[20];let d;if(J[21]!==F||J[22]!==R)d=W(V,{dimColor:!0,children:[" · ",F," · ",R]}),J[21]=F,J[22]=R,J[23]=d;else d=J[23];let h;if(J[24]!==S||J[25]!==d)h=W(V,{children:[S,x,d]}),J[24]=S,J[25]=d,J[26]=h;else h=J[26];let b;if(J[27]!==q)b=q==="plan_ready"&&W(V,{color:"success",children:[t0.tick," "]}),J[27]=q,J[28]=b;else b=J[28];let p;if(J[29]!==K)p=Q0(K,"agent"),J[29]=K,J[30]=p;else p=J[30];let c=q?fX[q]:"working",_;if(J[31]!==E)_=Q0(E,"call"),J[31]=E,J[32]=_;else _=J[32];let j;if(J[33]!==K||J[34]!==b||J[35]!==p||J[36]!==c||J[37]!==_||J[38]!==E)j=W(V,{children:[b,K," ",p," ",c," · ",E," tool"," ",_]}),J[33]=K,J[34]=b,J[35]=p,J[36]=c,J[37]=_,J[38]=E,J[39]=j;else j=J[39];let T;if(J[40]!==A)T=A&&f(V,{dimColor:!0,children:A}),J[40]=A,J[41]=T;else T=J[41];let g;if(J[42]!==D)g=f(V,{dimColor:!0,children:D}),J[42]=D,J[43]=g;else g=J[43];let k;if(J[44]!==D||J[45]!==g)k=f(JJ,{url:D,children:g}),J[44]=D,J[45]=g,J[46]=k;else k=J[46];let N;if(J[47]===Symbol.for("react.memo_cache_sentinel"))N={label:"Review in Claude Code on the web",value:"open"},J[47]=N;else N=J[47];let M;if(J[48]!==Y||J[49]!==G)M=Y&&G?[{label:"Stop ultraplan",value:"stop"}]:[],J[48]=Y,J[49]=G,J[50]=M;else M=J[50];let r;if(J[51]===Symbol.for("react.memo_cache_sentinel"))r={label:"Back",value:"back"},J[51]=r;else r=J[51];let s;if(J[52]!==M)s=[N,...M,r],J[52]=M,J[53]=s;else s=J[53];let Y0;if(J[54]!==y||J[55]!==X||J[56]!==D)Y0=(X0)=>{switch(X0){case"open":{DJ(D),X();return}case"stop":{m(!0);return}case"back":{y();return}}},J[54]=y,J[55]=X,J[56]=D,J[57]=Y0;else Y0=J[57];let V0;if(J[58]!==s||J[59]!==Y0)V0=f(j0,{options:s,onChange:Y0}),J[58]=s,J[59]=Y0,J[60]=V0;else V0=J[60];let N0;if(J[61]!==j||J[62]!==T||J[63]!==k||J[64]!==V0)N0=W(C,{flexDirection:"column",gap:1,children:[j,T,k,V0]}),J[61]=j,J[62]=T,J[63]=k,J[64]=V0,J[65]=N0;else N0=J[65];let K0;if(J[66]!==y||J[67]!==h||J[68]!==N0)K0=f(n,{title:h,onCancel:y,color:"background",children:N0}),J[66]=y,J[67]=h,J[68]=N0,J[69]=K0;else K0=J[69];return K0}function GX(Q){let J=ZJ.c(15),{stage:Z,completed:X,hasProgress:z}=Q,Y;if(J[0]!==Z)Y=Z?jZ.indexOf(Z):-1,J[0]=Z,J[1]=Y;else Y=J[1];let G=Y,q=!X&&!z,R;if(J[2]!==q)R=q?f(V,{color:"background",children:"Setup"}):f(V,{dimColor:!0,children:"Setup"}),J[2]=q,J[3]=R;else R=J[3];let F;if(J[4]===Symbol.for("react.memo_cache_sentinel"))F=f(V,{dimColor:!0,children:" → "}),J[4]=F;else F=J[4];let O;if(J[5]!==X||J[6]!==G||J[7]!==q)O=jZ.map((w,L)=>{let U=!X&&!q&&L===G;return W(O0.default.Fragment,{children:[L>0&&f(V,{dimColor:!0,children:" → "}),U?f(V,{color:"background",children:_Z[w]}):f(V,{dimColor:!0,children:_Z[w]})]},w)}),J[5]=X,J[6]=G,J[7]=q,J[8]=O;else O=J[8];let H;if(J[9]!==X)H=X&&f(V,{color:"success",children:" ✓"}),J[9]=X,J[10]=H;else H=J[10];let P;if(J[11]!==R||J[12]!==O||J[13]!==H)P=W(V,{children:[R,F,O,H]}),J[11]=R,J[12]=O,J[13]=H,J[14]=P;else P=J[14];return P}function VX(Q){let J=Q.reviewProgress;if(!J)return Q.status==="completed"?"done":"setting up";let Z=J.bugsVerified,X=J.bugsRefuted??0;if(Q.status==="completed"){let z=[`${Z} ${Q0(Z,"finding")}`];if(X>0)z.push(`${X} refuted`);return z.join(" · ")}return bJ(J.stage,J.bugsFound,Z,X)}function NX(Q){let J=ZJ.c(56),{session:Z,onDone:X,onBack:z,onKill:Y}=Q,G=Z.status==="completed",q=Z.status==="running"||Z.status==="pending",[R,F]=O0.useState(!1),O=F0(Z.startTime,q,1000,0,Z.endTime),H;if(J[0]!==X)H=()=>X("Remote session details dismissed",{display:"system"}),J[0]=X,J[1]=H;else H=J[1];let P=H,w=z??P,L;if(J[2]!==Z.sessionId)L=_0(Z.sessionId),J[2]=Z.sessionId,J[3]=L;else L=J[3];let U=L,K=G?"ready":q?"running":Z.status;if(R){let k;if(J[4]===Symbol.for("react.memo_cache_sentinel"))k=()=>F(!1),J[4]=k;else k=J[4];let N;if(J[5]===Symbol.for("react.memo_cache_sentinel"))N=f(V,{dimColor:!0,children:"This archives the remote session and stops local tracking. The review will not complete and any findings so far are discarded."}),J[5]=N;else N=J[5];let M;if(J[6]===Symbol.for("react.memo_cache_sentinel"))M={label:"Stop ultrareview",value:"stop"},J[6]=M;else M=J[6];let r;if(J[7]===Symbol.for("react.memo_cache_sentinel"))r=[M,{label:"Back",value:"back"}],J[7]=r;else r=J[7];let s;if(J[8]!==w||J[9]!==Y)s=f(n,{title:"Stop ultrareview?",onCancel:k,color:"background",children:W(C,{flexDirection:"column",gap:1,children:[N,f(j0,{options:r,onChange:(Y0)=>{if(Y0==="stop")Y?.(),w();else F(!1)}})]})}),J[8]=w,J[9]=Y,J[10]=s;else s=J[10];return s}let E;if(J[11]!==G||J[12]!==Y||J[13]!==q)E=G?[{label:"Open in Claude Code on the web",value:"open"},{label:"Dismiss",value:"dismiss"}]:[{label:"Open in Claude Code on the web",value:"open"},...Y&&q?[{label:"Stop ultrareview",value:"stop"}]:[],{label:"Back",value:"back"}],J[11]=G,J[12]=Y,J[13]=q,J[14]=E;else E=J[14];let A=E,v;if(J[15]!==w||J[16]!==P||J[17]!==X||J[18]!==U)v=(k)=>{J:switch(k){case"open":{DJ(U),X();break J}case"stop":{F(!0);break J}case"back":{w();break J}case"dismiss":P()}},J[15]=w,J[16]=P,J[17]=X,J[18]=U,J[19]=v;else v=J[19];let D=v,I=G?w0:z0,y;if(J[20]!==I)y=W(V,{color:"background",children:[I," "]}),J[20]=I,J[21]=y;else y=J[21];let B;if(J[22]===Symbol.for("react.memo_cache_sentinel"))B=f(V,{bold:!0,children:"ultrareview"}),J[22]=B;else B=J[22];let m;if(J[23]!==O||J[24]!==K)m=W(V,{dimColor:!0,children:[" · ",O," · ",K]}),J[23]=O,J[24]=K,J[25]=m;else m=J[25];let u;if(J[26]!==y||J[27]!==m)u=W(V,{children:[y,B,m]}),J[26]=y,J[27]=m,J[28]=u;else u=J[28];let S=Z.reviewProgress?.stage,x=!!Z.reviewProgress,d;if(J[29]!==G||J[30]!==S||J[31]!==x)d=f(GX,{stage:S,completed:G,hasProgress:x}),J[29]=G,J[30]=S,J[31]=x,J[32]=d;else d=J[32];let h;if(J[33]!==Z)h=VX(Z),J[33]=Z,J[34]=h;else h=J[34];let b;if(J[35]!==h)b=f(V,{children:h}),J[35]=h,J[36]=b;else b=J[36];let p;if(J[37]!==U)p=f(V,{dimColor:!0,children:U}),J[37]=U,J[38]=p;else p=J[38];let c;if(J[39]!==U||J[40]!==p)c=f(JJ,{url:U,children:p}),J[39]=U,J[40]=p,J[41]=c;else c=J[41];let _;if(J[42]!==b||J[43]!==c)_=W(C,{flexDirection:"column",children:[b,c]}),J[42]=b,J[43]=c,J[44]=_;else _=J[44];let j;if(J[45]!==D||J[46]!==A)j=f(j0,{options:A,onChange:D}),J[45]=D,J[46]=A,J[47]=j;else j=J[47];let T;if(J[48]!==d||J[49]!==_||J[50]!==j)T=W(C,{flexDirection:"column",gap:1,children:[d,_,j]}),J[48]=d,J[49]=_,J[50]=j,J[51]=T;else T=J[51];let g;if(J[52]!==w||J[53]!==T||J[54]!==u)g=f(n,{title:u,onCancel:w,color:"background",inputGuide:WX,children:T}),J[52]=w,J[53]=T,J[54]=u,J[55]=g;else g=J[55];return g}function WX(Q){return Q.pending?W(V,{children:["Press ",Q.keyName," again to exit"]}):W(Z0,{children:[f(l,{shortcut:"Enter",action:"select"}),f(l,{shortcut:"Esc",action:"go back"})]})}function xZ({session:Q,toolUseContext:J,onDone:Z,onBack:X,onKill:z}){let[Y,G]=O0.useState(!1),[q,R]=O0.useState(null),F=O0.useMemo(()=>{if(Q.isUltraplan||Q.isRemoteReview)return[];return lZ(kZ(Q.log)).filter((U)=>U.type!=="progress").slice(-3)},[Q]);if(Q.isUltraplan)return f(qX,{session:Q,onDone:Z,onBack:X,onKill:z});if(Q.isRemoteReview)return f(NX,{session:Q,onDone:Z,onBack:X,onKill:z});let O=()=>Z("Remote session details dismissed",{display:"system"}),H=(U)=>{if(U.key===" ")U.preventDefault(),Z("Remote session details dismissed",{display:"system"});else if(U.key==="left"&&X)U.preventDefault(),X();else if(U.key==="t"&&!Y)U.preventDefault(),P();else if(U.key==="return")U.preventDefault(),O()};async function P(){G(!0),R(null);try{await pZ(Q.sessionId)}catch(U){R(v0(U))}finally{G(!1)}}let w=y0(Q.title,50),L=Q.status==="pending"?"starting":Q.status;return f(C,{flexDirection:"column",tabIndex:0,autoFocus:!0,onKeyDown:H,children:W(n,{title:"Remote session details",onCancel:O,color:"background",inputGuide:(U)=>U.pending?W(V,{children:["Press ",U.keyName," again to exit"]}):W(Z0,{children:[X&&f(l,{shortcut:"←",action:"go back"}),f(l,{shortcut:"Esc/Enter/Space",action:"close"}),!Y&&f(l,{shortcut:"t",action:"teleport"})]}),children:[W(C,{flexDirection:"column",children:[W(V,{children:[f(V,{bold:!0,children:"Status"}),":"," ",L==="running"||L==="starting"?f(V,{color:"background",children:L}):L==="completed"?f(V,{color:"success",children:L}):f(V,{color:"error",children:L})]}),W(V,{children:[f(V,{bold:!0,children:"Runtime"}),":"," ",e0((Q.endTime??Date.now())-Q.startTime)]}),W(V,{wrap:"truncate-end",children:[f(V,{bold:!0,children:"Title"}),": ",w]}),W(V,{children:[f(V,{bold:!0,children:"Progress"}),":"," ",f(S0,{session:Q})]}),W(V,{children:[f(V,{bold:!0,children:"Session URL"}),":"," ",f(JJ,{url:_0(Q.sessionId),children:f(V,{dimColor:!0,children:_0(Q.sessionId)})})]})]}),Q.log.length>0&&W(C,{flexDirection:"column",marginTop:1,children:[W(V,{children:[f(V,{bold:!0,children:"Recent messages"}),":"]}),f(C,{flexDirection:"column",height:10,overflowY:"hidden",children:F.map((U,K)=>f(mZ,{message:U,lookups:iZ,addMargin:K>0,tools:J.options.tools,commands:J.options.commands,verbose:J.options.verbose,inProgressToolUseIDs:new Set,progressMessagesForMessage:[],shouldAnimate:!1,shouldShowDot:!1,style:"condensed",isTranscriptMode:!1,isStatic:!0},K))}),f(C,{marginTop:1,children:W(V,{dimColor:!0,italic:!0,children:["Showing last ",F.length," of ",Q.log.length," ","messages"]})})]}),q&&f(C,{marginTop:1,children:W(V,{color:"error",children:["Teleport failed: ",q]})}),Y&&f(V,{color:"background",children:"Teleporting to session…"})]})})}var ZJ,O0,zX,fX,jZ,_Z;var rZ=a(()=>{cZ();m0();i0();f0();PJ();eQ();tQ();pJ();JX();aJ();h0();XX();LZ();IJ();WJ();QX();B0();I0();A0();ZX();AJ();$();ZJ=J0(R0(),1),O0=J0(o0(),1);zX={needs_input:"input required",plan_ready:"ready"},fX={needs_input:"waiting",plan_ready:"done"};jZ=["finding","verifying","synthesizing"],_Z={finding:"Find",verifying:"Verify",synthesizing:"Dedupe"}});async function sZ(Q){let J=aZ(Q.id);try{let Z=await $Z(J,HX);return{content:Z.content,bytesTotal:Z.bytesTotal}}catch{return{content:"",bytesTotal:0}}}function eZ(Q){let J=vJ.c(57),{shell:Z,onDone:X,onKillShell:z,onBack:Y}=Q,{columns:G}=QJ(),q;if(J[0]!==Z)q=()=>sZ(Z),J[0]=Z,J[1]=q;else q=J[1];let[R,F]=G0.useState(q),O=G0.useDeferredValue(R),H;if(J[2]!==Z)H=()=>{if(Z.status!=="running")return;let r=setInterval(OX,1000,F,Z);return()=>clearInterval(r)},J[2]=Z,J[3]=H;else H=J[3];let P;if(J[4]!==Z.id||J[5]!==Z.status)P=[Z.id,Z.status],J[4]=Z.id,J[5]=Z.status,J[6]=P;else P=J[6];G0.useEffect(H,P);let w;if(J[7]!==X)w=()=>X("Shell details dismissed",{display:"system"}),J[7]=X,J[8]=w;else w=J[8];let L=w,U;if(J[9]!==L)U={"confirm:yes":L},J[9]=L,J[10]=U;else U=J[10];let K;if(J[11]===Symbol.for("react.memo_cache_sentinel"))K={context:"Confirmation"},J[11]=K;else K=J[11];q0(U,K);let E;if(J[12]!==Y||J[13]!==X||J[14]!==z||J[15]!==Z.status)E=(r)=>{if(r.key===" ")r.preventDefault(),X("Shell details dismissed",{display:"system"});else if(r.key==="left"&&Y)r.preventDefault(),Y();else if(r.key==="x"&&Z.status==="running"&&z)r.preventDefault(),z()},J[12]=Y,J[13]=X,J[14]=z,J[15]=Z.status,J[16]=E;else E=J[16];let A=E,v=Z.kind==="monitor",D;if(J[17]!==Z.command)D=y0(Z.command,280),J[17]=Z.command,J[18]=D;else D=J[18];let I=D,y=v?"Monitor details":"Shell details",B;if(J[19]!==Y||J[20]!==z||J[21]!==Z.status)B=(r)=>r.pending?W(V,{children:["Press ",r.keyName," again to exit"]}):W(Z0,{children:[Y&&f(l,{shortcut:"←",action:"go back"}),f(l,{shortcut:"Esc/Enter/Space",action:"close"}),Z.status==="running"&&z&&f(l,{shortcut:"x",action:"stop"})]}),J[19]=Y,J[20]=z,J[21]=Z.status,J[22]=B;else B=J[22];let m;if(J[23]===Symbol.for("react.memo_cache_sentinel"))m=f(V,{bold:!0,children:"Status:"}),J[23]=m;else m=J[23];let u;if(J[24]!==Z.result||J[25]!==Z.status)u=W(V,{children:[m," ",Z.status==="running"?W(V,{color:"background",children:[Z.status,Z.result?.code!==void 0&&` (exit code: ${Z.result.code})`]}):Z.status==="completed"?W(V,{color:"success",children:[Z.status,Z.result?.code!==void 0&&` (exit code: ${Z.result.code})`]}):W(V,{color:"error",children:[Z.status,Z.result?.code!==void 0&&` (exit code: ${Z.result.code})`]})]}),J[24]=Z.result,J[25]=Z.status,J[26]=u;else u=J[26];let S;if(J[27]===Symbol.for("react.memo_cache_sentinel"))S=f(V,{bold:!0,children:"Runtime:"}),J[27]=S;else S=J[27];let x;if(J[28]!==Z.endTime)x=Z.endTime??Date.now(),J[28]=Z.endTime,J[29]=x;else x=J[29];let d=x-Z.startTime,h;if(J[30]!==d)h=e0(d),J[30]=d,J[31]=h;else h=J[31];let b;if(J[32]!==h)b=W(V,{children:[S," ",h]}),J[32]=h,J[33]=b;else b=J[33];let p=v?"Script:":"Command:",c;if(J[34]!==p)c=f(V,{bold:!0,children:p}),J[34]=p,J[35]=c;else c=J[35];let _;if(J[36]!==I||J[37]!==c)_=W(V,{wrap:"wrap",children:[c," ",I]}),J[36]=I,J[37]=c,J[38]=_;else _=J[38];let j;if(J[39]!==u||J[40]!==b||J[41]!==_)j=W(C,{flexDirection:"column",children:[u,b,_]}),J[39]=u,J[40]=b,J[41]=_,J[42]=j;else j=J[42];let T;if(J[43]===Symbol.for("react.memo_cache_sentinel"))T=f(V,{bold:!0,children:"Output:"}),J[43]=T;else T=J[43];let g;if(J[44]===Symbol.for("react.memo_cache_sentinel"))g=f(V,{dimColor:!0,children:"Loading output…"}),J[44]=g;else g=J[44];let k;if(J[45]!==G||J[46]!==O)k=W(C,{flexDirection:"column",children:[T,f(G0.Suspense,{fallback:g,children:f(PX,{outputPromise:O,columns:G})})]}),J[45]=G,J[46]=O,J[47]=k;else k=J[47];let N;if(J[48]!==L||J[49]!==B||J[50]!==j||J[51]!==k||J[52]!==y)N=W(n,{title:y,onCancel:L,color:"background",inputGuide:B,children:[j,k]}),J[48]=L,J[49]=B,J[50]=j,J[51]=k,J[52]=y,J[53]=N;else N=J[53];let M;if(J[54]!==A||J[55]!==N)M=f(C,{flexDirection:"column",tabIndex:0,autoFocus:!0,onKeyDown:A,children:N}),J[54]=A,J[55]=N,J[56]=M;else M=J[56];return M}function OX(Q,J){return Q(sZ(J))}function PX(Q){let J=vJ.c(19),{outputPromise:Z,columns:X}=Q,{content:z,bytesTotal:Y}=G0.use(Z);if(!z){let U;if(J[0]===Symbol.for("react.memo_cache_sentinel"))U=f(V,{dimColor:!0,children:"No output available"}),J[0]=U;else U=J[0];return U}let G,q;if(J[1]!==Y||J[2]!==z){let U=[],K=z.length;for(let E=0;E<10&&K>0;E++){let A=z.lastIndexOf(`
|
|
17
|
+
`,K-1);U.push(A+1),K=A}U.reverse(),G=Y>z.length,q=[];for(let E=0;E<U.length;E++){let A=U[E],v=E<U.length-1?U[E+1]-1:z.length,D=z.slice(A,v);if(D)q.push(D)}J[1]=Y,J[2]=z,J[3]=G,J[4]=q}else G=J[3],q=J[4];let R=X-6,F;if(J[5]!==q)F=q.map(LX),J[5]=q,J[6]=F;else F=J[6];let O;if(J[7]!==R||J[8]!==F)O=f(C,{borderStyle:"round",paddingX:1,flexDirection:"column",height:12,maxWidth:R,children:F}),J[7]=R,J[8]=F,J[9]=O;else O=J[9];let H=`Showing ${q.length} lines`,P;if(J[10]!==Y||J[11]!==G)P=G?` of ${oZ(Y)}`:"",J[10]=Y,J[11]=G,J[12]=P;else P=J[12];let w;if(J[13]!==H||J[14]!==P)w=W(V,{dimColor:!0,italic:!0,children:[H,P]}),J[13]=H,J[14]=P,J[15]=w;else w=J[15];let L;if(J[16]!==O||J[17]!==w)L=W(o,{children:[O,w]}),J[16]=O,J[17]=w,J[18]=L;else L=J[18];return L}function LX(Q,J){return f(V,{wrap:"truncate-end",children:Q},J)}var vJ,G0,HX=8192;var tZ=a(()=>{nZ();f0();g0();h0();RX();FX();B0();I0();A0();$();vJ=J0(R0(),1),G0=J0(o0(),1)});var JQ={};$J(JQ,{default:()=>wX});var UX=()=>null,wX;var ZQ=a(()=>{wX=UX});function jX(Q,J){return Object.values(Q??{}).filter(fJ).filter((X)=>!(X.type==="local_agent"&&X.id===J))}function Sf({onDone:Q,toolUseContext:J,initialDetailTaskId:Z}){let X=zJ((N)=>N.tasks),z=zJ((N)=>N.foregroundedTaskId),Y=zJ((N)=>N.expandedView)==="teammates",G=RQ(),q=GQ("chat:killAgents","Chat","ctrl+x ctrl+k"),R=X,F=P0.useRef(!1),[O,H]=P0.useState(()=>{if(Z)return F.current=!0,{mode:"detail",itemId:Z};let N=jX(R,z);if(N.length===1)return F.current=!0,{mode:"detail",itemId:N[0].id};return{mode:"list"}}),[P,w]=P0.useState(0);OQ("background-tasks-dialog");let{bashTasks:L,remoteSessions:U,agentTasks:K,teammateTasks:E,workflowTasks:A,mcpMonitors:v,dreamTasks:D,allSelectableItems:I}=P0.useMemo(()=>{let r=Object.values(R??{}).filter(fJ).map(_X).sort((i,L0)=>{let c0=i.status,jJ=L0.status;if(c0==="running"&&jJ!=="running")return-1;if(c0!=="running"&&jJ==="running")return 1;let PQ="task"in i?i.task.startTime:0;return("task"in L0?L0.task.startTime:0)-PQ}),s=r.filter((i)=>i.type==="local_bash"),Y0=r.filter((i)=>i.type==="remote_agent"),V0=r.filter((i)=>i.type==="local_agent"&&i.id!==z),N0=r.filter((i)=>i.type==="local_workflow"),K0=r.filter((i)=>i.type==="monitor_mcp"),X0=r.filter((i)=>i.type==="dream"),e=Y?[]:r.filter((i)=>i.type==="in_process_teammate"),C0=e.length>0?[{id:"__leader__",type:"leader",label:`@${hJ}`,status:"running"}]:[];return{bashTasks:s,remoteSessions:Y0,agentTasks:V0,workflowTasks:N0,mcpMonitors:K0,dreamTasks:X0,teammateTasks:[...C0,...e],allSelectableItems:[...C0,...e,...s,...K0,...Y0,...V0,...N0,...X0]}},[R,z,Y]),y=I[P]??null;q0({"confirm:previous":()=>w((N)=>Math.max(0,N-1)),"confirm:next":()=>w((N)=>Math.min(I.length-1,N+1)),"confirm:yes":()=>{let N=I[P];if(N)if(N.type==="leader")VJ(G),Q("Viewing leader",{display:"system"});else H({mode:"detail",itemId:N.id})}},{context:"Confirmation",isActive:O.mode==="list"});let B=(N)=>{if(O.mode!=="list")return;if(N.key==="left"){N.preventDefault(),Q("Background tasks dialog dismissed",{display:"system"});return}let M=I[P];if(!M)return;if(N.key==="x"){if(N.preventDefault(),M.type==="local_bash"&&M.status==="running")m(M.id);else if(M.type==="local_agent"&&M.status==="running")u(M.id);else if(M.type==="in_process_teammate"&&M.status==="running")S(M.id);else if(M.type==="local_workflow"&&M.status==="running"&&XJ)XJ(M.id,G);else if(M.type==="monitor_mcp"&&M.status==="running"&&YJ)YJ(M.id,G);else if(M.type==="dream"&&M.status==="running")x(M.id);else if(M.type==="remote_agent"&&M.status==="running")if(M.task.isUltraplan)LJ(M.id,M.task.sessionId,G);else d(M.id)}if(N.key==="f"){if(M.type==="in_process_teammate"&&M.status==="running")N.preventDefault(),GJ(M.id,G),Q("Viewing teammate",{display:"system"});else if(M.type==="leader")N.preventDefault(),VJ(G),Q("Viewing leader",{display:"system"})}};async function m(N){await VQ.kill(N,G)}async function u(N){await HQ.kill(N,G)}async function S(N){await NQ.kill(N,G)}async function x(N){await FQ.kill(N,G)}async function d(N){await p0.kill(N,G)}let h=WQ(Q);P0.useEffect(()=>{if(O.mode!=="list"){let M=(R??{})[O.itemId];if(!M||M.type!=="local_workflow"&&!fJ(M))if(F.current)h("Background tasks dialog dismissed",{display:"system"});else H({mode:"list"})}let N=I.length;if(P>=N&&N>0)w(N-1)},[O,R,P,I,h]);let b=()=>{if(F.current&&I.length<=1)Q("Background tasks dialog dismissed",{display:"system"});else F.current=!1,H({mode:"list"})};if(O.mode!=="list"&&R){let N=R[O.itemId];if(!N)return null;switch(N.type){case"local_bash":return f(eZ,{shell:N,onDone:Q,onKillShell:()=>void m(N.id),onBack:b},`shell-${N.id}`);case"local_agent":return f(OZ,{agent:N,onDone:Q,onKillAgent:()=>void u(N.id),onBack:b},`agent-${N.id}`);case"remote_agent":return f(xZ,{session:N,onDone:Q,toolUseContext:J,onBack:b,onKill:N.status!=="running"?void 0:N.isUltraplan?()=>void LJ(N.id,N.sessionId,G):()=>void d(N.id)},`session-${N.id}`);case"in_process_teammate":return f(gZ,{teammate:N,onDone:Q,onKill:N.status==="running"?()=>void S(N.id):void 0,onBack:b,onForeground:N.status==="running"?()=>{GJ(N.id,G),Q("Viewing teammate",{display:"system"})}:void 0},`teammate-${N.id}`);case"local_workflow":if(!QQ)return null;return f(QQ,{workflow:N,onDone:Q,onKill:N.status==="running"&&XJ?()=>XJ(N.id,G):void 0,onSkipAgent:N.status==="running"&&XQ?(M)=>XQ(N.id,M,G):void 0,onRetryAgent:N.status==="running"&&YQ?(M)=>YQ(N.id,M,G):void 0,onBack:b},`workflow-${N.id}`);case"monitor_mcp":if(!zQ)return null;return f(zQ,{task:N,onKill:N.status==="running"&&YJ?()=>YJ(N.id,G):void 0,onBack:b},`monitor-mcp-${N.id}`);case"dream":return f(DZ,{task:N,onDone:()=>Q("Background tasks dialog dismissed",{display:"system"}),onBack:b,onKill:N.status==="running"?()=>void x(N.id):void 0},`dream-${N.id}`)}}let p=M0(L,(N)=>N.status==="running"),c=M0(U,(N)=>N.status==="running"||N.status==="pending")+M0(K,(N)=>N.status==="running"),_=M0(E,(N)=>N.status==="running"),j=fQ([..._>0?[W(V,{children:[_," ",_!==1?"agents":"agent"]},"teammates")]:[],...p>0?[W(V,{children:[p," ",p!==1?"active shells":"active shell"]},"shells")]:[],...c>0?[W(V,{children:[c," ",c!==1?"active agents":"active agent"]},"agents")]:[]],(N)=>f(V,{children:" · "},`separator-${N}`)),T=[f(l,{shortcut:"↑/↓",action:"select"},"upDown"),f(l,{shortcut:"Enter",action:"view"},"enter"),...y?.type==="in_process_teammate"&&y.status==="running"?[f(l,{shortcut:"f",action:"foreground"},"foreground")]:[],...(y?.type==="local_bash"||y?.type==="local_agent"||y?.type==="in_process_teammate"||y?.type==="local_workflow"||y?.type==="monitor_mcp"||y?.type==="dream"||y?.type==="remote_agent")&&y.status==="running"?[f(l,{shortcut:"x",action:"stop"},"kill")]:[],...K.some((N)=>N.status==="running")?[f(l,{shortcut:q,action:"stop all agents"},"kill-all")]:[],f(l,{shortcut:"←/Esc",action:"close"},"esc")],g=()=>Q("Background tasks dialog dismissed",{display:"system"});function k(N){if(N.pending)return W(V,{children:["Press ",N.keyName," again to exit"]});return f(Z0,{children:T})}return f(C,{flexDirection:"column",tabIndex:0,autoFocus:!0,onKeyDown:B,children:f(n,{title:"Background tasks",subtitle:f(o,{children:j}),onCancel:g,color:"background",inputGuide:k,children:I.length===0?f(V,{dimColor:!0,children:"No tasks currently running"}):W(C,{flexDirection:"column",children:[E.length>0&&W(C,{flexDirection:"column",children:[(L.length>0||U.length>0||K.length>0)&&W(V,{dimColor:!0,children:[W(V,{bold:!0,children:[" ","Agents"]})," (",M0(E,(N)=>N.type!=="leader"),")"]}),f(C,{flexDirection:"column",children:f(cX,{teammateTasks:E,currentSelectionId:y?.id})})]}),L.length>0&&W(C,{flexDirection:"column",marginTop:E.length>0?1:0,children:[(E.length>0||U.length>0||K.length>0)&&W(V,{dimColor:!0,children:[W(V,{bold:!0,children:[" ","Shells"]})," (",L.length,")"]}),f(C,{flexDirection:"column",children:L.map((N)=>f(E0,{item:N,isSelected:N.id===y?.id},N.id))})]}),v.length>0&&W(C,{flexDirection:"column",marginTop:E.length>0||L.length>0?1:0,children:[W(V,{dimColor:!0,children:[W(V,{bold:!0,children:[" ","Monitors"]})," (",v.length,")"]}),f(C,{flexDirection:"column",children:v.map((N)=>f(E0,{item:N,isSelected:N.id===y?.id},N.id))})]}),U.length>0&&W(C,{flexDirection:"column",marginTop:E.length>0||L.length>0||v.length>0?1:0,children:[W(V,{dimColor:!0,children:[W(V,{bold:!0,children:[" ","Remote agents"]})," (",U.length,")"]}),f(C,{flexDirection:"column",children:U.map((N)=>f(E0,{item:N,isSelected:N.id===y?.id},N.id))})]}),K.length>0&&W(C,{flexDirection:"column",marginTop:E.length>0||L.length>0||v.length>0||U.length>0?1:0,children:[W(V,{dimColor:!0,children:[W(V,{bold:!0,children:[" ","Local agents"]})," (",K.length,")"]}),f(C,{flexDirection:"column",children:K.map((N)=>f(E0,{item:N,isSelected:N.id===y?.id},N.id))})]}),A.length>0&&W(C,{flexDirection:"column",marginTop:E.length>0||L.length>0||v.length>0||U.length>0||K.length>0?1:0,children:[W(V,{dimColor:!0,children:[W(V,{bold:!0,children:[" ","Workflows"]})," (",A.length,")"]}),f(C,{flexDirection:"column",children:A.map((N)=>f(E0,{item:N,isSelected:N.id===y?.id},N.id))})]}),D.length>0&&f(C,{flexDirection:"column",marginTop:E.length>0||L.length>0||v.length>0||U.length>0||K.length>0||A.length>0?1:0,children:f(C,{flexDirection:"column",children:D.map((N)=>f(E0,{item:N,isSelected:N.id===y?.id},N.id))})})]})})})}function _X(Q){switch(Q.type){case"local_bash":return{id:Q.id,type:"local_bash",label:Q.kind==="monitor"?Q.description:Q.command,status:Q.status,task:Q};case"remote_agent":return{id:Q.id,type:"remote_agent",label:Q.title,status:Q.status,task:Q};case"local_agent":return{id:Q.id,type:"local_agent",label:Q.description,status:Q.status,task:Q};case"in_process_teammate":return{id:Q.id,type:"in_process_teammate",label:`@${Q.identity.agentName}`,status:Q.status,task:Q};case"local_workflow":return{id:Q.id,type:"local_workflow",label:Q.summary??Q.description,status:Q.status,task:Q};case"monitor_mcp":return{id:Q.id,type:"monitor_mcp",label:Q.description,status:Q.status,task:Q};case"dream":return{id:Q.id,type:"dream",label:Q.description,status:Q.status,task:Q}}}function E0(Q){let J=gJ.c(14),{item:Z,isSelected:X}=Q,{columns:z}=QJ(),Y=Math.max(30,z-26),G;if(J[0]===Symbol.for("react.memo_cache_sentinel"))G=qQ(),J[0]=G;else G=J[0];let q=G,R=q&&X,F=X?t0.pointer+" ":" ",O;if(J[1]!==R||J[2]!==F)O=f(V,{dimColor:R,children:F}),J[1]=R,J[2]=F,J[3]=O;else O=J[3];let H=X&&!q?"suggestion":void 0,P;if(J[4]!==Z.task||J[5]!==Z.type||J[6]!==Y)P=Z.type==="leader"?W(V,{children:["@",hJ]}):f(AZ,{task:Z.task,maxActivityWidth:Y}),J[4]=Z.task,J[5]=Z.type,J[6]=Y,J[7]=P;else P=J[7];let w;if(J[8]!==H||J[9]!==P)w=f(V,{color:H,children:P}),J[8]=H,J[9]=P,J[10]=w;else w=J[10];let L;if(J[11]!==O||J[12]!==w)L=W(C,{flexDirection:"row",children:[O,w]}),J[11]=O,J[12]=w,J[13]=L;else L=J[13];return L}function cX(Q){let J=gJ.c(3),{teammateTasks:Z,currentSelectionId:X}=Q,z;if(J[0]!==X||J[1]!==Z){let Y=Z.filter(uX),G=Z.filter(TX),q=new Map;for(let F of G){let O=F.task.identity.teamName,H=q.get(O);if(H)H.push(F);else q.set(O,[F])}let R=[...q.entries()];z=f(o,{children:R.map((F)=>{let[O,H]=F,P=H.length+Y.length;return W(C,{flexDirection:"column",children:[W(V,{dimColor:!0,children:[" ","Team: ",O," (",P,")"]}),Y.map((w)=>f(E0,{item:w,isSelected:w.id===X},`${w.id}-${O}`)),H.map((w)=>f(E0,{item:w,isSelected:w.id===X},w.id))]},O)})}),J[0]=X,J[1]=Z,J[2]=z}else z=J[2];return z}function TX(Q){return Q.type==="in_process_teammate"}function uX(Q){return Q.type==="leader"}var gJ,P0,QQ=null,SJ=null,XJ,XQ,YQ,SX,YJ,zQ;var dX=a(()=>{cZ();MX();bX();nZ();AX();TJ();vX();CX();hX();KX();PJ();BX();CJ();yX();qZ();gX();f0();g0();EX();CJ();B0();I0();A0();PZ();BZ();vZ();SZ();rZ();tZ();$();gJ=J0(R0(),1),P0=J0(o0(),1),XJ=SJ?.killWorkflowTask??null,XQ=SJ?.skipWorkflowAgent??null,YQ=SJ?.retryWorkflowAgent??null,SX=(DX(),FJ(IX)),YJ=SX?.killMonitorMcp??null,zQ=(ZQ(),FJ(JQ)).MonitorMcpDetailDialog});
|
|
18
|
+
export{GJ as Ue,VJ as Ve,xX as We,TJ as Xe,LJ as Ye,pQ as Ze,qZ as _e,Sf as $e,dX as af};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import{de as c,je as Eq}from"./cli-1.0.13-vd01re4x.mjs";import{$o as s,HL as n,NL as e,OL as P,SL as jq,TL as O,UL as qq,WL as I,XL as Gq,ap as Tq,bM as Cq,dp as t,eM as b,fM as Lq,fp as Mq,iM as Hq,jM as Jq,jp as i,lL as v,lM as vq,lp as Rq,mL as m,mM as y,nM as Qq,oL as Oq,oM as Xq,pM as Yq,pp as A,qM as $q,rM as d,rp as D,rt as l,sp as Aq,st as wq,tp as h,uM as Dq,up as S,vp as Fq}from"./cli-1.0.13-kr3d94dn.mjs";import{Hda as _q,Pca as V,Xca as Kq,qga as a,sda as F,uda as L,yga as Bq}from"./cli-1.0.13-p1nsb8ay.mjs";import{Mja as p,Qja as Wq}from"./cli-1.0.13-4dp5a597.mjs";import{Aka as N,Fka as Uq,xka as o}from"./cli-1.0.13-mazxedqg.mjs";import{Fma as f,yqa as xq}from"./cli-1.0.13-vwmq6bde.mjs";import{hsa as Zq}from"./cli-1.0.13-d9nvpqpw.mjs";import{dirname as Nq,join as u}from"path";function g(q){if(!k.includes(q))throw Error(`Invalid scope "${q}". Must be one of: ${k.join(", ")}`)}function JG(q){return k.includes(q)}function zq(q){return q==="project"||q==="local"?f():void 0}function QG(q){return F("projectSettings")?.enabledPlugins?.[q]===!0}function Vq(q){let H=q.includes("@"),G=["local","project","user"];for(let X of G){let J=F(D(X))?.enabledPlugins;if(!J)continue;for(let Y of Object.keys(J))if(H?Y===q:Y.startsWith(`${q}@`))return{pluginId:Y,scope:X}}return null}function bq(q,H){let{name:G,marketplace:X}=A(q);return H.find((J)=>{if(J.name===q||J.name===G)return!0;if(X&&J.source)return J.name===G&&J.source.includes(`@${X}`);return!1})}function yq(q){let{name:H}=A(q),G=O();if(G.plugins[q]?.length)return{pluginId:q,pluginName:H};let X=Object.keys(G.plugins).find((J)=>{let{name:Y}=A(J);return Y===H&&(G.plugins[J]?.length??0)>0});if(X)return{pluginId:X,pluginName:H};return null}function kq(q){let G=O().plugins[q];if(!G||G.length===0)return{scope:"user"};let X=f(),J=G.find((Z)=>Z.scope==="local"&&Z.projectPath===X);if(J)return{scope:J.scope,projectPath:J.projectPath};let Y=G.find((Z)=>Z.scope==="project"&&Z.projectPath===X);if(Y)return{scope:Y.scope,projectPath:Y.projectPath};let z=G.find((Z)=>Z.scope==="user");if(z)return{scope:z.scope};return{scope:G[0].scope,projectPath:G[0].projectPath}}async function XG(q,H="user"){g(H);let{name:G,marketplace:X}=A(q),J,Y,z;if(X){let $=await P(q);if($)J=$.entry,Y=X,z=$.marketplaceInstallLocation}else{let $=await n();for(let[B,K]of Object.entries($))try{let M=(await e(B)).plugins.find((R)=>R.name===G);if(M){J=M,Y=B,z=K.installLocation;break}}catch(x){a(o(x));continue}}if(!J||!Y){let $=X?`marketplace "${X}"`:"any configured marketplace";return{success:!1,message:`Plugin "${G}" not found in ${$}`}}let Z=J,W=`${Z.name}@${Y}`,Q=await Jq({pluginId:W,entry:Z,scope:H,marketplaceInstallLocation:z});if(!Q.ok)switch(Q.reason){case"local-source-no-location":return{success:!1,message:`Cannot install local plugin "${Q.pluginName}" without marketplace install location`};case"settings-write-failed":return{success:!1,message:`Failed to update settings: ${Q.message}`};case"resolution-failed":return{success:!1,message:Hq(Q.resolution)};case"blocked-by-policy":return{success:!1,message:`Plugin "${Q.pluginName}" is blocked by your organization's policy and cannot be installed`};case"dependency-blocked-by-policy":return{success:!1,message:`Plugin "${Q.pluginName}" depends on "${Q.blockedDependency}", which is blocked by your organization's policy`}}return{success:!0,message:`Successfully installed plugin: ${W} (scope: ${H})${Q.depNote}`,pluginId:W,pluginName:Z.name,scope:H}}async function YG(q,H="user",G=!0){g(H);let{enabled:X,disabled:J}=await d(),Y=[...X,...J],z=bq(q,Y),Z=D(H),W=F(Z),Q,$;if(z)Q=Object.keys(W?.enabledPlugins??{}).find((U)=>U===q||U===z.name||U.startsWith(`${z.name}@`))??(q.includes("@")?q:z.name),$=z.name;else{let U=yq(q);if(!U)return{success:!1,message:`Plugin "${q}" not found in installed plugins`};Q=U.pluginId,$=U.pluginName}let B=zq(H),x=O().plugins[Q],M=x?.find((U)=>U.scope===H&&U.projectPath===B);if(!M){let{scope:U}=kq(Q);if(U!==H&&x&&x.length>0){if(U==="project")return{success:!1,message:`Plugin "${q}" is enabled at project scope (.claudin/settings.json, shared with your team). To disable just for you: claudin plugin disable ${q} --scope local`};return{success:!1,message:`Plugin "${q}" is installed in ${U} scope, not ${H}. Use --scope ${U} to uninstall.`}}return{success:!1,message:`Plugin "${q}" is not installed in ${H} scope. Use --scope to specify the correct scope.`}}let R=M.installPath,_={...W?.enabledPlugins};_[Q]=void 0,L(Z,{enabledPlugins:_}),v(),qq(Q,H,B);let w=O().plugins[Q],j=!w||w.length===0;if(j&&R)await m(R);if(j){if(t(Q),G)await s(Q)}let C=h(Q,Y),E=S(C);return{success:!0,message:`Successfully uninstalled plugin: ${$} (scope: ${H})${E}`,pluginId:Q,pluginName:$,scope:H,reverseDependents:C.length>0?C:void 0}}async function r(q,H,G){let X=H?"enable":"disable";if(i(q)){let{error:_}=L("userSettings",{enabledPlugins:{...F("userSettings")?.enabledPlugins,[q]:H}});if(_)return{success:!1,message:`Failed to ${X} built-in plugin: ${_.message}`};v();let{name:T}=A(q);return{success:!0,message:`Successfully ${X}d built-in plugin: ${T}`,pluginId:q,pluginName:T,scope:"user"}}if(G)g(G);let J,Y,z=Vq(q);if(G)if(Y=G,z)J=z.pluginId;else if(q.includes("@"))J=q;else return{success:!1,message:`Plugin "${q}" not found in settings. Use plugin@marketplace format.`};else if(z)J=z.pluginId,Y=z.scope;else if(q.includes("@"))J=q,Y="user";else return{success:!1,message:`Plugin "${q}" not found in any editable settings scope. Use plugin@marketplace format.`};if(H&&l(J))return{success:!1,message:`Plugin "${J}" is blocked by your organization's policy and cannot be enabled`};let Z=D(Y),W=F(Z)?.enabledPlugins?.[J],Q={user:0,project:1,local:2},$=G&&z&&Q[G]>Q[z.scope];if(G&&W===void 0&&z&&z.scope!==G&&!$)return{success:!1,message:`Plugin "${q}" is installed at ${z.scope} scope, not ${G}. Use --scope ${z.scope} or omit --scope to auto-detect.`};let B=G&&!$?W===!0:c().has(J);if(H===B)return{success:!1,message:`Plugin "${q}" is already ${H?"enabled":"disabled"}${G?` at ${G} scope`:""}`};let K;if(!H){let{enabled:_,disabled:T}=await d(),w=h(J,[..._,...T]);if(w.length>0)K=w}let{error:x}=L(Z,{enabledPlugins:{...F(Z)?.enabledPlugins,[J]:H}});if(x)return{success:!1,message:`Failed to ${X} plugin: ${x.message}`};v();let{name:M}=A(J),R=S(K);return{success:!0,message:`Successfully ${X}d plugin: ${M} (scope: ${Y})${R}`,pluginId:J,pluginName:M,scope:Y,reverseDependents:K}}async function $G(q,H){return r(q,!0,H)}async function zG(q,H){return r(q,!1,H)}async function ZG(){let q=c();if(q.size===0)return{success:!0,message:"No enabled plugins to disable"};let H=[],G=[];for(let[X]of q){let J=await r(X,!1);if(J.success)H.push(X);else G.push(`${X}: ${J.message}`)}if(G.length>0)return{success:!1,message:`Disabled ${H.length} ${V(H.length,"plugin")}, ${G.length} failed:
|
|
2
|
+
${G.join(`
|
|
3
|
+
`)}`};return{success:!0,message:`Disabled ${H.length} ${V(H.length,"plugin")}`}}async function xG(q,H){let{name:G,marketplace:X}=A(q),J=X?`${G}@${X}`:q,Y=await P(q);if(!Y)return{success:!1,message:`Plugin "${G}" not found`,pluginId:J,scope:H};let{entry:z,marketplaceInstallLocation:Z}=Y,Q=I().plugins[J];if(!Q||Q.length===0)return{success:!1,message:`Plugin "${G}" is not installed`,pluginId:J,scope:H};let $=zq(H),B=Q.find((K)=>K.scope===H&&K.projectPath===$);if(!B){let K=$?`${H} (${$})`:H;return{success:!1,message:`Plugin "${G}" is not installed at scope ${K}`,pluginId:J,scope:H}}return fq({pluginId:J,pluginName:G,entry:z,marketplaceInstallLocation:Z,installation:B,scope:H,projectPath:$})}async function fq({pluginId:q,pluginName:H,entry:G,marketplaceInstallLocation:X,installation:J,scope:Y,projectPath:z}){let Z=p(),W=J.version,Q,$,B=!1,K;if(typeof G.source!=="string"){let x=await Yq(G.source,{manifest:{name:G.name}});Q=x.path,B=!0,K=x.gitCommitSha,$=await b(q,G.source,x.manifest,x.path,G.version,x.gitCommitSha)}else{let x;try{x=await Z.stat(X)}catch(T){if(N(T))return{success:!1,message:`Marketplace directory not found at ${X}`,pluginId:q,scope:Y};throw T}let M=x.isDirectory()?X:Nq(X);Q=u(M,G.source);try{await Z.stat(Q)}catch(T){if(N(T))return{success:!1,message:`Plugin source not found at ${Q}`,pluginId:q,scope:Y};throw T}let R,_=u(Q,".claude-plugin","plugin.json");try{R=await $q(_,G.name,G.source)}catch{}$=await b(q,G.source,R,Q,G.version)}try{let x=y(q,$),M=Qq(q,$);if(J.version===$||J.installPath===x||J.installPath===M)return{success:!0,message:`${H} is already at the latest version (${$}).`,pluginId:q,newVersion:$,oldVersion:W,alreadyUpToDate:!0,scope:Y};x=await Xq(Q,q,$,G);let _=J.installPath;if(Gq(q,Y,z,x,$,K),_&&_!==x){let j=I();if(!Object.values(j.plugins).some((E)=>E.some((U)=>U.installPath===_)))await m(_)}let T=z?`${Y} (${z})`:Y;return{success:!0,message:`Plugin "${H}" updated from ${W||"unknown"} to ${$} for scope ${T}. Restart to apply changes.`,pluginId:q,newVersion:$,oldVersion:W,scope:Y}}finally{if(B&&Q!==y(q,$))await Z.rm(Q,{recursive:!0,force:!0})}}var k,HG;var hq=Zq(()=>{xq();Rq();Uq();Wq();Bq();Oq();Fq();Cq();jq();Tq();Aq();vq();Dq();Mq();wq();Eq();Lq();_q();Kq();k=["user","project","local"],HG=["user","project","local","managed"]});
|
|
4
|
+
export{k as Sd,HG as Td,JG as Ud,QG as Vd,kq as Wd,XG as Xd,YG as Yd,$G as Zd,zG as _d,ZG as $d,xG as ae,hq as be};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Hi as W,Ii as B}from"./cli-1.0.13-mtnc53tx.mjs";import{U3 as U,W3 as J}from"./cli-1.0.13-afdk25h0.mjs";import{s4 as V,t4 as v}from"./cli-1.0.13-2z8q1mtz.mjs";import{E8 as $,b5 as N,c5 as _,e8 as Q,j8 as R}from"./cli-1.0.13-h5mwwv8w.mjs";import{qga as K,yga as Z}from"./cli-1.0.13-p1nsb8ay.mjs";import{hsa as Y}from"./cli-1.0.13-d9nvpqpw.mjs";async function w(y,X){try{if(R()){let q=Q(),z=!1;if(q?.subscriptionType&&q?.rateLimitTier)z=q.subscriptionType==="max"&&q.rateLimitTier==="default_claude_max_20x";else if(q?.accessToken){let H=await N(q.accessToken);z=H?.organization?.organization_type==="claude_max"&&H?.organization?.rate_limit_tier==="default_claude_max_20x"}if(z)return setTimeout(y,0,"You are already on the highest Max subscription plan. For additional usage, run /login to switch to an API usage-billed account."),null}return await V("https://claude.ai/upgrade/max"),U(W,{startingMessage:"Starting new login following /upgrade. Exit with Ctrl-C to use existing account.",onDone:(q)=>{X.onChangeAPIKey(),y(q?"Login successful":"Login interrupted")}})}catch(G){K(G),setTimeout(y,0,"Failed to open browser. Please visit https://claude.ai/upgrade/max to upgrade.")}return null}var E=Y(()=>{_();$();v();Z();B();J()});
|
|
2
|
+
export{w as hc,E as ic};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{kZ as f}from"./cli-1.0.13-mv57kk3c.mjs";import{U3 as p,W3 as c}from"./cli-1.0.13-afdk25h0.mjs";import{X3 as M}from"./cli-1.0.13-gsz0cygn.mjs";import{dsa as o}from"./cli-1.0.13-d9nvpqpw.mjs";c();var n=o(f(),1),r=o(M(),1),d=r.createContext(void 0);function a(F){let e=n.c(3),{getFpsMetrics:s,children:i}=F,t;if(e[0]!==i||e[1]!==s)t=p(d.Provider,{value:s,children:i}),e[0]=i,e[1]=s,e[2]=t;else t=e[2];return t}function l(){return r.useContext(d)}
|
|
2
|
+
export{a as sb,l as tb};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{D$ as F,H$ as f,J_ as K,K_ as E,qga as U,yga as m}from"./cli-1.0.13-p1nsb8ay.mjs";import{iia as v,jia as x}from"./cli-1.0.13-kq0mvqax.mjs";import{Mja as D,Qja as g}from"./cli-1.0.13-4dp5a597.mjs";import{hsa as S}from"./cli-1.0.13-d9nvpqpw.mjs";import{basename as H,dirname as b,join as I,sep as O}from"path";function _(q,B){if(!q)return{directory:B||v(),prefix:""};let G=F(q,B);if(q.endsWith("/")||q.endsWith(O))return{directory:G,prefix:""};let N=b(G),J=H(q);return{directory:N,prefix:J}}async function k(q){let B=Z.get(q);if(B)return B;try{let J=(await D().readdir(q)).filter((M)=>M.isDirectory()&&!M.name.startsWith(".")).map((M)=>({name:M.name,path:I(q,M.name),type:"directory"})).slice(0,100);return Z.set(q,J),J}catch(G){return U(G),[]}}async function P(q,B={}){let{basePath:G=v(),maxResults:N=10}=B,{directory:J,prefix:M}=_(q,G),V=await k(J),z=M.toLowerCase();return V.filter((X)=>X.name.toLowerCase().startsWith(z)).slice(0,N).map((X)=>({id:X.path,displayText:X.name+"/",description:"directory",metadata:{type:"directory"}}))}function o(q){return q.startsWith("~/")||q.startsWith("/")||q.startsWith("./")||q.startsWith("../")||q==="~"||q==="."||q===".."}async function u(q,B=!1){let G=`${q}:${B}`,N=A.get(G);if(N)return N;try{let V=(await D().readdir(q)).filter((z)=>B||!z.name.startsWith(".")).map((z)=>({name:z.name,path:I(q,z.name),type:z.isDirectory()?"directory":"file"})).sort((z,W)=>{if(z.type==="directory"&&W.type!=="directory")return-1;if(z.type!=="directory"&&W.type==="directory")return 1;return z.name.localeCompare(W.name)}).slice(0,100);return A.set(G,V),V}catch(J){return U(J),[]}}async function h(q,B={}){let{basePath:G=v(),maxResults:N=10,includeFiles:J=!0,includeHidden:M=!1}=B,{directory:V,prefix:z}=_(q,G),W=await u(V,M),X=z.toLowerCase(),j=W.filter((Q)=>{if(!J&&Q.type==="file")return!1;return Q.name.toLowerCase().startsWith(X)}).slice(0,N),w=q.includes("/")||q.includes(O),Y="";if(w){let Q=q.lastIndexOf("/"),$=q.lastIndexOf(O),L=Math.max(Q,$);Y=q.substring(0,L+1)}if(Y.startsWith("./")||Y.startsWith("."+O))Y=Y.slice(2);return j.map((Q)=>{let $=Y+Q.name;return{id:$,displayText:Q.type==="directory"?$+"/":$,metadata:{type:Q.type}}})}var R=500,T=300000,Z,A;var C=S(()=>{E();x();g();m();f();Z=new K({max:R,ttl:T}),A=new K({max:R,ttl:T})});
|
|
2
|
+
export{P as Ah,o as Bh,h as Ch,C as Dh};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{G0 as g,I0 as h,O0 as RQ,X0 as jQ,Y0 as aQ,a1 as d,kZ as u,l1 as a,t0 as QQ,u0 as uQ}from"./cli-1.0.13-mv57kk3c.mjs";import{U3 as S,V3 as k,W3 as f}from"./cli-1.0.13-afdk25h0.mjs";import{X3 as v}from"./cli-1.0.13-gsz0cygn.mjs";import{j4 as n,l4 as t,q4 as YV}from"./cli-1.0.13-tyhtztew.mjs";import{E8 as XV,j8 as $Q,m8 as P,p8 as bQ}from"./cli-1.0.13-h5mwwv8w.mjs";import{Tda as fQ,Tea as QV,Uda as eQ,qga as CQ,vea as mQ,yea as x,yga as VV}from"./cli-1.0.13-p1nsb8ay.mjs";import{Dga as AQ,Ega as sQ}from"./cli-1.0.13-x4xwa6y3.mjs";import{Via as r,Wia as nQ}from"./cli-1.0.13-y6y32j2s.mjs";import{_ja as D,bka as iQ}from"./cli-1.0.13-4dp5a597.mjs";import{Kra as tQ,sra as i}from"./cli-1.0.13-696y87my.mjs";import{dsa as M,hsa as F}from"./cli-1.0.13-d9nvpqpw.mjs";function XQ(){let X=VQ.useContext(QQ);if(!X)throw Error("useTerminalSize must be used within an Ink App component");return X}var VQ;var YQ=F(()=>{uQ();VQ=M(v(),1)});function ZQ(X,Q){if(Q.escape)return"escape";if(Q.return)return"enter";if(Q.tab)return"tab";if(Q.backspace)return"backspace";if(Q.delete)return"delete";if(Q.upArrow)return"up";if(Q.downArrow)return"down";if(Q.leftArrow)return"left";if(Q.rightArrow)return"right";if(Q.pageUp)return"pageup";if(Q.pageDown)return"pagedown";if(Q.wheelUp)return"wheelup";if(Q.wheelDown)return"wheeldown";if(Q.home)return"home";if(Q.end)return"end";if(X.length===1)return X.toLowerCase();return null}var JQ=()=>{};function GQ(X){let Q=X.split("+"),V={key:"",ctrl:!1,alt:!1,shift:!1,meta:!1,super:!1};for(let Z of Q){let Y=Z.toLowerCase();switch(Y){case"ctrl":case"control":V.ctrl=!0;break;case"alt":case"opt":case"option":V.alt=!0;break;case"shift":V.shift=!0;break;case"meta":V.meta=!0;break;case"cmd":case"command":case"super":case"win":V.super=!0;break;case"esc":V.key="escape";break;case"return":V.key="enter";break;case"space":V.key=" ";break;case"↑":V.key="up";break;case"↓":V.key="down";break;case"←":V.key="left";break;case"→":V.key="right";break;default:V.key=Y;break}}return V}function yQ(X){if(X===" ")return[GQ("space")];return X.trim().split(/\s+/).map(GQ)}function hQ(X){let Q=[];if(X.ctrl)Q.push("ctrl");if(X.alt)Q.push("alt");if(X.shift)Q.push("shift");if(X.meta)Q.push("meta");if(X.super)Q.push("cmd");let V=kQ(X.key);return Q.push(V),Q.join("+")}function kQ(X){switch(X){case"escape":return"Esc";case" ":return"Space";case"tab":return"tab";case"enter":return"Enter";case"backspace":return"Backspace";case"delete":return"Delete";case"up":return"↑";case"down":return"↓";case"left":return"←";case"right":return"→";case"pageup":return"PageUp";case"pagedown":return"PageDown";case"home":return"Home";case"end":return"End";default:return X}}function l(X){return X.map(hQ).join(" ")}function BV(X){let Q=[];for(let V of X)for(let[Z,Y]of Object.entries(V.bindings))Q.push({chord:yQ(Z),action:Y,context:V.context});return Q}var qQ=()=>{};function LQ(X,Q,V){let Z=V.findLast((Y)=>Y.action===X&&Y.context===Q);return Z?l(Z.chord):void 0}function gQ(X,Q){let V=ZQ(X,Q);if(!V)return null;let Z=Q.escape?!1:Q.meta;return{key:V,ctrl:Q.ctrl,alt:Z,shift:Q.shift,meta:Z,super:Q.super}}function HQ(X,Q){return X.key===Q.key&&X.ctrl===Q.ctrl&&X.shift===Q.shift&&(X.alt||X.meta)===(Q.alt||Q.meta)&&X.super===Q.super}function lQ(X,Q){if(X.length>=Q.chord.length)return!1;for(let V=0;V<X.length;V++){let Z=X[V],Y=Q.chord[V];if(!Z||!Y)return!1;if(!HQ(Z,Y))return!1}return!0}function cQ(X,Q){if(X.length!==Q.chord.length)return!1;for(let V=0;V<X.length;V++){let Z=X[V],Y=Q.chord[V];if(!Z||!Y)return!1;if(!HQ(Z,Y))return!1}return!0}function zQ(X,Q,V,Z,Y){if(Q.escape&&Y!==null)return{type:"chord_cancelled"};let J=gQ(X,Q);if(!J){if(Y!==null)return{type:"chord_cancelled"};return{type:"none"}}let G=Y?[...Y,J]:[J],q=new Set(V),B=Z.filter((L)=>q.has(L.context)),z=new Map;for(let L of B)if(L.chord.length>G.length&&lQ(G,L))z.set(l(L.chord),L.action);let N=!1;for(let L of z.values())if(L!==null){N=!0;break}if(N)return{type:"chord_started",pending:G};let H;for(let L of B)if(cQ(G,L))H=L;if(H){if(H.action===null)return{type:"unbound"};return{type:"match",action:H.action}}if(Y!==null)return{type:"chord_cancelled"};return{type:"none"}}var BQ=F(()=>{JQ();qQ()});function MV(X){let Q=c.c(24),{bindings:V,pendingChordRef:Z,pendingChord:Y,setPendingChord:J,activeContexts:G,registerActiveContext:q,unregisterActiveContext:B,handlerRegistryRef:z,children:N}=X,H;if(Q[0]!==V)H=(U,O)=>LQ(U,O,V),Q[0]=V,Q[1]=H;else H=Q[1];let L=H,_;if(Q[2]!==z)_=(U)=>{let O=z.current;if(!O)return dQ;if(!O.has(U.action))O.set(U.action,new Set);return O.get(U.action).add(U),()=>{let I=O.get(U.action);if(I){if(I.delete(U),I.size===0)O.delete(U.action)}}},Q[2]=z,Q[3]=_;else _=Q[3];let b=_,E;if(Q[4]!==G||Q[5]!==z)E=(U)=>{let O=z.current;if(!O)return!1;let I=O.get(U);if(!I||I.size===0)return!1;for(let e of I)if(G.has(e.context))return e.handler(),!0;return!1},Q[4]=G,Q[5]=z,Q[6]=E;else E=Q[6];let K=E,j;if(Q[7]!==V||Q[8]!==Z)j=(U,O,I)=>zQ(U,O,I,V,Z.current),Q[7]=V,Q[8]=Z,Q[9]=j;else j=Q[9];let A;if(Q[10]!==G||Q[11]!==V||Q[12]!==L||Q[13]!==K||Q[14]!==Y||Q[15]!==q||Q[16]!==b||Q[17]!==J||Q[18]!==j||Q[19]!==B)A={resolve:j,setPendingChord:J,getDisplayText:L,bindings:V,pendingChord:Y,activeContexts:G,registerActiveContext:q,unregisterActiveContext:B,registerHandler:b,invokeAction:K},Q[10]=G,Q[11]=V,Q[12]=L,Q[13]=K,Q[14]=Y,Q[15]=q,Q[16]=b,Q[17]=J,Q[18]=j,Q[19]=B,Q[20]=A;else A=Q[20];let w=A,W;if(Q[21]!==N||Q[22]!==w)W=S(NQ.Provider,{value:w,children:N}),Q[21]=N,Q[22]=w,Q[23]=W;else W=Q[23];return W}function dQ(){}function y(){return m.useContext(NQ)}function SV(X,Q){let V=c.c(5),Z=Q===void 0?!0:Q,Y=y(),J,G;if(V[0]!==X||V[1]!==Z||V[2]!==Y)J=()=>{if(!Y||!Z)return;return Y.registerActiveContext(X),()=>{Y.unregisterActiveContext(X)}},G=[X,Y,Z],V[0]=X,V[1]=Z,V[2]=Y,V[3]=J,V[4]=G;else J=V[3],G=V[4];m.useLayoutEffect(J,G)}var c,m,NQ;var UQ=F(()=>{BQ();f();c=M(u(),1),m=M(v(),1),NQ=m.createContext(null)});function TV(X,Q,V={}){let{context:Z="Global",isActive:Y=!0}=V,J=y();C.useEffect(()=>{if(!J||!Y)return;return J.registerHandler({action:X,context:Z,handler:Q})},[X,Z,Q,J,Y]);let G=C.useCallback((q,B,z)=>{if(!J)return;let N=[...J.activeContexts,Z,"Global"],H=[...new Set(N)],L=J.resolve(q,B,H);switch(L.type){case"match":if(J.setPendingChord(null),L.action===X){if(Q()!==!1)z.stopImmediatePropagation()}break;case"chord_started":J.setPendingChord(L.pending),z.stopImmediatePropagation();break;case"chord_cancelled":J.setPendingChord(null);break;case"unbound":J.setPendingChord(null),z.stopImmediatePropagation();break;case"none":break}},[X,Z,Q,J]);d(G,{isActive:Y})}function OQ(X,Q={}){let{context:V="Global",isActive:Z=!0}=Q,Y=y();C.useEffect(()=>{if(!Y||!Z)return;let G=[];for(let[q,B]of Object.entries(X))G.push(Y.registerHandler({action:q,context:V,handler:B}));return()=>{for(let q of G)q()}},[V,X,Y,Z]);let J=C.useCallback((G,q,B)=>{if(!Y)return;let z=[...Y.activeContexts,V,"Global"],N=[...new Set(z)],H=Y.resolve(G,q,N);switch(H.type){case"match":if(Y.setPendingChord(null),H.action in X){let L=X[H.action];if(L&&L()!==!1)B.stopImmediatePropagation()}break;case"chord_started":Y.setPendingChord(H.pending),B.stopImmediatePropagation();break;case"chord_cancelled":Y.setPendingChord(null);break;case"unbound":Y.setPendingChord(null),B.stopImmediatePropagation();break;case"none":break}},[V,X,Y]);d(J,{isActive:Z})}var C;var _Q=F(()=>{a();UQ();C=M(v(),1)});function o(X,Q,V){let Z=R.useRef(0),Y=R.useRef(void 0),J=R.useCallback(()=>{if(Y.current)clearTimeout(Y.current),Y.current=void 0},[]);return R.useEffect(()=>{return()=>{J()}},[J]),R.useCallback(()=>{let G=Date.now();if(G-Z.current<=FQ&&Y.current!==void 0)J(),X(!1),Q();else V?.(),X(!0),J(),Y.current=setTimeout((z,N)=>{z(!1),N.current=void 0},FQ,X,Y);Z.current=G},[X,Q,V,J])}var R,FQ=800;var WQ=F(()=>{R=M(v(),1)});function wQ(X,Q,V,Z=!0){let{exit:Y}=jQ(),[J,G]=T.useState({pending:!1,keyName:null}),q=T.useMemo(()=>V??Y,[V,Y]),B=o((_)=>G({pending:_,keyName:"Ctrl-C"}),q),z=o((_)=>G({pending:_,keyName:"Ctrl-D"}),q),N=T.useCallback(()=>{if(Q?.())return;B()},[B,Q]),H=T.useCallback(()=>{z()},[z]),L=T.useMemo(()=>({"app:interrupt":N,"app:exit":H}),[N,H]);return X(L,{context:"Global",isActive:Z}),J}var T;var MQ=F(()=>{aQ();WQ();T=M(v(),1)});function $V(X,Q,V){return wQ(OQ,Q,X,V)}var oQ=F(()=>{_Q();MQ()});function IQ(){return $.useContext(s)!==null}function pV(X){let Q=SQ.c(3),V=$.useContext(s),Z;if(Q[0]!==V||Q[1]!==X)Z=V?{rows:V.rows,columns:V.columns}:X,Q[0]=V,Q[1]=X,Q[2]=Z;else Z=Q[2];return Z}function xV(){return $.useContext(s)?.scrollRef??null}var SQ,$,s;var KQ=F(()=>{SQ=M(u(),1),$=M(v(),1),s=$.createContext(null)});function EQ(X){let Q=TQ.c(21),{width:V,color:Z,char:Y,padding:J,title:G}=X,q=Y===void 0?"─":Y,B=J===void 0?0:J,{columns:z}=XQ(),N=Math.max(0,(V??z)-B);if(G){let b=AQ(G)+2,E=Math.max(0,N-b),K=Math.floor(E/2),j=E-K,A=!Z,w;if(Q[0]!==q||Q[1]!==K)w=q.repeat(K),Q[0]=q,Q[1]=K,Q[2]=w;else w=Q[2];let W;if(Q[3]!==G)W=S(h,{dimColor:!0,children:S(RQ,{children:G})}),Q[3]=G,Q[4]=W;else W=Q[4];let U;if(Q[5]!==q||Q[6]!==j)U=q.repeat(j),Q[5]=q,Q[6]=j,Q[7]=U;else U=Q[7];let O;if(Q[8]!==Z||Q[9]!==A||Q[10]!==w||Q[11]!==W||Q[12]!==U)O=k(h,{color:Z,dimColor:A,children:[w," ",W," ",U]}),Q[8]=Z,Q[9]=A,Q[10]=w,Q[11]=W,Q[12]=U,Q[13]=O;else O=Q[13];return O}let H=!Z,L;if(Q[14]!==q||Q[15]!==N)L=q.repeat(N),Q[14]=q,Q[15]=N,Q[16]=L;else L=Q[16];let _;if(Q[17]!==Z||Q[18]!==H||Q[19]!==L)_=S(h,{color:Z,dimColor:H,children:L}),Q[17]=Z,Q[18]=H,Q[19]=L,Q[20]=_;else _=Q[20];return _}var TQ;var DQ=F(()=>{YQ();sQ();a();f();TQ=M(u(),1)});function oV(X){let Q=PQ.c(9),{children:V,color:Z}=X;if(IQ()){let q;if(Q[0]!==V)q=S(g,{flexDirection:"column",paddingX:1,flexShrink:0,children:V}),Q[0]=V,Q[1]=q;else q=Q[1];return q}let Y;if(Q[2]!==Z)Y=S(EQ,{color:Z}),Q[2]=Z,Q[3]=Y;else Y=Q[3];let J;if(Q[4]!==V)J=S(g,{flexDirection:"column",paddingX:2,children:V}),Q[4]=V,Q[5]=J;else J=Q[5];let G;if(Q[6]!==Y||Q[7]!==J)G=k(g,{flexDirection:"column",paddingTop:1,children:[Y,J]}),Q[6]=Y,Q[7]=J,Q[8]=G;else G=Q[8];return G}var PQ;var rQ=F(()=>{KQ();a();DQ();f();PQ=M(u(),1)});async function ZV(X="claude_code_guest_pass"){let{accessToken:Q,orgUUID:V}=await n(),Z={...t(Q),"x-organization-uuid":V},Y=`${r().BASE_API_URL}/api/oauth/organizations/${V}/referral/eligibility`;return(await i.get(Y,{headers:Z,params:{campaign:X},timeout:5000})).data}async function ZX(X="claude_code_guest_pass"){let{accessToken:Q,orgUUID:V}=await n(),Z={...t(Q),"x-organization-uuid":V},Y=`${r().BASE_API_URL}/api/oauth/organizations/${V}/referral/redemptions`;return(await i.get(Y,{headers:Z,params:{campaign:X},timeout:1e4})).data}function xQ(){return!!(P()?.organizationUuid&&$Q()&&bQ()==="max")}function JX(){if(!xQ())return{eligible:!1,needsRefresh:!1,hasCache:!1};let X=P()?.organizationUuid;if(!X)return{eligible:!1,needsRefresh:!1,hasCache:!1};let V=x().passesEligibilityCache?.[X];if(!V)return{eligible:!1,needsRefresh:!0,hasCache:!1};let{eligible:Z,timestamp:Y}=V,G=Date.now()-Y>pQ;return{eligible:Z,needsRefresh:G,hasCache:!0}}function GX(X){let Q=JV[X.currency]??`${X.currency} `,V=X.amount_minor_units/100,Z=V%1===0?V.toString():V.toFixed(2);return`${Q}${Z}`}function qX(){let X=P()?.organizationUuid;if(!X)return null;return x().passesEligibilityCache?.[X]?.referrer_reward??null}function LX(){let X=P()?.organizationUuid;if(!X)return null;return x().passesEligibilityCache?.[X]?.remaining_passes??null}async function vQ(){if(p)return D("Passes: Reusing in-flight eligibility fetch"),p;let X=P()?.organizationUuid;if(!X)return null;return p=(async()=>{try{let Q=await ZV(),V={...Q,timestamp:Date.now()};return mQ((Z)=>({...Z,passesEligibilityCache:{...Z.passesEligibilityCache,[X]:V}})),D(`Passes eligibility cached for org ${X}: ${Q.eligible}`),Q}catch(Q){return D("Failed to fetch and cache passes eligibility"),CQ(Q),null}finally{p=null}})(),p}async function GV(){if(!xQ())return null;let X=P()?.organizationUuid;if(!X)return null;let V=x().passesEligibilityCache?.[X],Z=Date.now();if(!V)return D("Passes: No cache, fetching eligibility in background (command unavailable this session)"),vQ(),null;if(Z-V.timestamp>pQ){D("Passes: Cache stale, returning cached data and refreshing in background"),vQ();let{timestamp:G,...q}=V;return q}D("Passes: Using fresh cached eligibility data");let{timestamp:Y,...J}=V;return J}async function HX(){if(fQ())return;GV()}var pQ=86400000,p=null,JV;var qV=F(()=>{tQ();nQ();XV();QV();iQ();VV();eQ();YV();JV={USD:"$",EUR:"€",GBP:"£",BRL:"R$",CAD:"CA$",AUD:"A$",NZD:"NZ$",SGD:"S$"}});
|
|
2
|
+
export{XQ as WX,YQ as XX,GQ as YX,yQ as ZX,l as _X,BV as $X,qQ as aY,LQ as bY,zQ as cY,BQ as dY,MV as eY,y as fY,SV as gY,UQ as hY,TV as iY,OQ as jY,_Q as kY,o as lY,WQ as mY,$V as nY,oQ as oY,s as pY,IQ as qY,pV as rY,xV as sY,KQ as tY,EQ as uY,DQ as vY,oV as wY,rQ as xY,ZX as yY,JX as zY,GX as AY,qX as BY,LX as CY,GV as DY,HX as EY,qV as FY};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Wh as j,Yh as l}from"./cli-1.0.13-5keyjg3e.mjs";import{gi as W,mi as i}from"./cli-1.0.13-rcrh6wfx.mjs";import{Ax as U,Bx as m,FT as G,Mw as B,NO as b,OO as o,Rv as $,Rw as p,ST as r,Sv as D,TC as L,TT as R,Tj as Z,UC as h,UT as f,Uj as P,Uw as N,VT as F,Vw as g,WT as u,XT as t,Xi as Y,YB as d,Yi as A,aC as E,bC as C,fv as _,jQ as x,lz as V,mO as M,nz as S,oO as n,tQ as s}from"./cli-1.0.13-kr3d94dn.mjs";import{S9 as Q,Y9 as k}from"./cli-1.0.13-kc1q3k9n.mjs";import{B_ as O,I_ as I,caa as X,daa as v}from"./cli-1.0.13-p1nsb8ay.mjs";import{$pa as K,Ppa as J,yqa as T}from"./cli-1.0.13-vwmq6bde.mjs";import{hsa as y,isa as w}from"./cli-1.0.13-d9nvpqpw.mjs";function Mq(H=new Set){let z=H.size>0;if(u.cache.clear?.(),F.cache.clear?.(),f.cache.clear?.(),Y.cache.clear?.(),W(),x(),!z)N();if(R(null),K(null),b(),_(),G("session_start"),V(),X.clear(),Z(),!z)B();if(Q(),M(),!z)U();J(H),O(),L(),$(),j(),E(),import("./utils-1.0.13-c5pe460e.mjs").then(({clearWebFetchCache:q})=>q()),import("./ToolSearchTool-1.0.13-n5wg1rcd.mjs").then(({clearToolSearchDescriptionCache:q})=>q()),import("./loadAgentsDir-1.0.13-btkcbfn1.mjs").then(({clearAgentDefinitionsCache:q})=>q()),import("./prompt-1.0.13-z2a6q0v3.mjs").then(({clearPromptCache:q})=>q())}var c=y(()=>{T();s();A();t();i();p();m();g();P();o();D();l();h();d();n();r();k();I();v();S();C()});
|
|
2
|
+
export{Mq as Uh,c as Vh};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import{PR as _,iO as f,ik as J,kO as z,vx as L,wx as k}from"./cli-1.0.13-kr3d94dn.mjs";import{Faa as F,Kaa as A}from"./cli-1.0.13-p1nsb8ay.mjs";import{bia as Y,dia as h,eia as H,fia as X}from"./cli-1.0.13-fb695nhr.mjs";import{Xia as W,_ia as M}from"./cli-1.0.13-vbby2x4m.mjs";import{_ja as D,bka as R}from"./cli-1.0.13-4dp5a597.mjs";import{ooa as q,yqa as C}from"./cli-1.0.13-vwmq6bde.mjs";import{hsa as V}from"./cli-1.0.13-d9nvpqpw.mjs";function S(U){let Q=[];for(let w of U){if(w.type!=="user"&&w.type!=="assistant")continue;if("isMeta"in w&&w.isMeta)continue;if("origin"in w&&w.origin&&w.origin.kind!=="human")continue;let K=w.message.content;if(typeof K==="string")Q.push(K);else if(Array.isArray(K)){for(let B of K)if("type"in B&&B.type==="text"&&"text"in B)Q.push(B.text)}}let G=Q.join(`
|
|
2
|
+
`);return G.length>$?G.slice(-$):G}async function T(U,Q){let G=U.trim();if(!G)return null;try{let w=await f({systemPrompt:L([P]),userPrompt:G,outputFormat:{type:"json_schema",schema:{type:"object",properties:{title:{type:"string"}},required:["title"],additionalProperties:!1}},signal:Q,options:{querySource:"generate_session_title",agents:[],isNonInteractiveSession:q(),hasAppendSystemPrompt:!1,mcpTools:[]}}),K=J(w.message.content),B=v().safeParse(F(K)),Z=B.success?B.data.title.trim()||null:null;return W("tengu_session_title_generated",{success:Z!==null}),Z}catch(w){return D(`generateSessionTitle failed: ${w}`,{level:"error"}),W("tengu_session_title_generated",{success:!1}),"Claudin"}}var $=1000,P=`Generate a concise, sentence-case title (3-7 words) that captures the main topic or goal of this coding session. The title should be clear enough that the user recognizes the session in a list. Use sentence case: capitalize only the first word and proper nouns.
|
|
3
|
+
|
|
4
|
+
Return JSON with a single "title" field.
|
|
5
|
+
|
|
6
|
+
Good examples:
|
|
7
|
+
{"title": "Fix login button on mobile"}
|
|
8
|
+
{"title": "Add OAuth authentication"}
|
|
9
|
+
{"title": "Debug failing CI tests"}
|
|
10
|
+
{"title": "Refactor API client error handling"}
|
|
11
|
+
|
|
12
|
+
Bad (too vague): {"title": "Code changes"}
|
|
13
|
+
Bad (too long): {"title": "Investigate and fix the issue where the login button does not respond on mobile devices"}
|
|
14
|
+
Bad (wrong case): {"title": "Fix Login Button On Mobile"}`,v;var I=V(()=>{h();C();M();z();R();A();X();_();k();v=H(()=>Y.object({title:Y.string()}))});
|
|
15
|
+
export{S as xe,T as ye,I as ze};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{jf as H,mf as A}from"./cli-1.0.13-r9nmkthw.mjs";import{Af as L,Df as P,Ff as _}from"./cli-1.0.13-a5641ktm.mjs";import{Kra as F,sra as U}from"./cli-1.0.13-696y87my.mjs";F();_();A();var R="environments-2025-11-01",O=/^[a-zA-Z0-9_-]+$/;function j(J,K){if(!J||!O.test(J))throw Error(`Invalid ${K}: contains unsafe characters`);return J}class C extends Error{status;errorType;constructor(J,K,$){super(J);this.name="BridgeFatalError",this.status=K,this.errorType=$}}function y(J){function K(q){J.onDebug?.(q)}let $=0,W=100;function Z(q){let z={Authorization:`Bearer ${q}`,"Content-Type":"application/json","anthropic-version":"2023-06-01","anthropic-beta":R,"x-environment-runner-version":J.runnerVersion},X=J.getTrustedDeviceToken?.();if(X)z["X-Trusted-Device-Token"]=X;return z}function D(){let q=J.getAccessToken();if(!q)throw Error(H);return q}async function M(q,z){let X=D(),Q=await q(X);if(Q.status!==401)return Q;if(!J.onAuth401)return K(`[bridge:api] ${z}: 401 received, no refresh handler`),Q;if(K(`[bridge:api] ${z}: 401 received, attempting token refresh`),await J.onAuth401(X)){K(`[bridge:api] ${z}: Token refreshed, retrying request`);let V=D(),N=await q(V);if(N.status!==401)return N;K(`[bridge:api] ${z}: Retry after refresh also got 401`)}else K(`[bridge:api] ${z}: Token refresh failed`);return Q}return{async registerBridgeEnvironment(q){K(`[bridge:api] POST /v1/environments/bridge bridgeId=${q.bridgeId}`);let z=await M((X)=>U.post(`${J.baseUrl}/v1/environments/bridge`,{machine_name:q.machineName,directory:q.dir,branch:q.branch,git_repo_url:q.gitRepoUrl,max_sessions:q.maxSessions,metadata:{worker_type:q.workerType},...q.reuseEnvironmentId&&{environment_id:q.reuseEnvironmentId}},{headers:Z(X),timeout:15000,validateStatus:(Q)=>Q<500}),"Registration");return G(z.status,z.data,"Registration"),K(`[bridge:api] POST /v1/environments/bridge -> ${z.status} environment_id=${z.data.environment_id}`),K(`[bridge:api] >>> ${L({machine_name:q.machineName,directory:q.dir,branch:q.branch,git_repo_url:q.gitRepoUrl,max_sessions:q.maxSessions,metadata:{worker_type:q.workerType}})}`),K(`[bridge:api] <<< ${L(z.data)}`),z.data},async pollForWork(q,z,X,Q){j(q,"environmentId");let Y=$;$=0;let V=await U.get(`${J.baseUrl}/v1/environments/${q}/work/poll`,{headers:Z(z),params:Q!==void 0?{reclaim_older_than_ms:Q}:void 0,timeout:1e4,signal:X,validateStatus:(N)=>N<500});if(G(V.status,V.data,"Poll"),!V.data){if($=Y+1,$===1||$%W===0)K(`[bridge:api] GET .../work/poll -> ${V.status} (no work, ${$} consecutive empty polls)`);return null}return K(`[bridge:api] GET .../work/poll -> ${V.status} workId=${V.data.id} type=${V.data.data?.type}${V.data.data?.id?` sessionId=${V.data.data.id}`:""}`),K(`[bridge:api] <<< ${L(V.data)}`),V.data},async acknowledgeWork(q,z,X){j(q,"environmentId"),j(z,"workId"),K(`[bridge:api] POST .../work/${z}/ack`);let Q=await U.post(`${J.baseUrl}/v1/environments/${q}/work/${z}/ack`,{},{headers:Z(X),timeout:1e4,validateStatus:(Y)=>Y<500});G(Q.status,Q.data,"Acknowledge"),K(`[bridge:api] POST .../work/${z}/ack -> ${Q.status}`)},async stopWork(q,z,X){j(q,"environmentId"),j(z,"workId"),K(`[bridge:api] POST .../work/${z}/stop force=${X}`);let Q=await M((Y)=>U.post(`${J.baseUrl}/v1/environments/${q}/work/${z}/stop`,{force:X},{headers:Z(Y),timeout:1e4,validateStatus:(V)=>V<500}),"StopWork");G(Q.status,Q.data,"StopWork"),K(`[bridge:api] POST .../work/${z}/stop -> ${Q.status}`)},async deregisterEnvironment(q){j(q,"environmentId"),K(`[bridge:api] DELETE /v1/environments/bridge/${q}`);let z=await M((X)=>U.delete(`${J.baseUrl}/v1/environments/bridge/${q}`,{headers:Z(X),timeout:1e4,validateStatus:(Q)=>Q<500}),"Deregister");G(z.status,z.data,"Deregister"),K(`[bridge:api] DELETE /v1/environments/bridge/${q} -> ${z.status}`)},async archiveSession(q){j(q,"sessionId"),K(`[bridge:api] POST /v1/sessions/${q}/archive`);let z=await M((X)=>U.post(`${J.baseUrl}/v1/sessions/${q}/archive`,{},{headers:Z(X),timeout:1e4,validateStatus:(Q)=>Q<500}),"ArchiveSession");if(z.status===409){K(`[bridge:api] POST /v1/sessions/${q}/archive -> 409 (already archived)`);return}G(z.status,z.data,"ArchiveSession"),K(`[bridge:api] POST /v1/sessions/${q}/archive -> ${z.status}`)},async reconnectSession(q,z){j(q,"environmentId"),j(z,"sessionId"),K(`[bridge:api] POST /v1/environments/${q}/bridge/reconnect session_id=${z}`);let X=await M((Q)=>U.post(`${J.baseUrl}/v1/environments/${q}/bridge/reconnect`,{session_id:z},{headers:Z(Q),timeout:1e4,validateStatus:(Y)=>Y<500}),"ReconnectSession");G(X.status,X.data,"ReconnectSession"),K(`[bridge:api] POST .../bridge/reconnect -> ${X.status}`)},async heartbeatWork(q,z,X){j(q,"environmentId"),j(z,"workId"),K(`[bridge:api] POST .../work/${z}/heartbeat`);let Q=await U.post(`${J.baseUrl}/v1/environments/${q}/work/${z}/heartbeat`,{},{headers:Z(X),timeout:1e4,validateStatus:(Y)=>Y<500});return G(Q.status,Q.data,"Heartbeat"),K(`[bridge:api] POST .../work/${z}/heartbeat -> ${Q.status} lease_extended=${Q.data.lease_extended} state=${Q.data.state}`),Q.data},async sendPermissionResponseEvent(q,z,X){j(q,"sessionId"),K(`[bridge:api] POST /v1/sessions/${q}/events type=${z.type}`);let Q=await U.post(`${J.baseUrl}/v1/sessions/${q}/events`,{events:[z]},{headers:Z(X),timeout:1e4,validateStatus:(Y)=>Y<500});G(Q.status,Q.data,"SendPermissionResponseEvent"),K(`[bridge:api] POST /v1/sessions/${q}/events -> ${Q.status}`),K(`[bridge:api] >>> ${L({events:[z]})}`),K(`[bridge:api] <<< ${L(Q.data)}`)}}}function G(J,K,$){if(J===200||J===204)return;let W=P(K),Z=B(K);switch(J){case 401:throw new C(`${$}: Authentication failed (401)${W?`: ${W}`:""}. ${H}`,401,Z);case 403:throw new C(S(Z)?"Remote Control session has expired. Please restart with `claude remote-control` or /remote-control.":`${$}: Access denied (403)${W?`: ${W}`:""}. Check your organization permissions.`,403,Z);case 404:throw new C(W??`${$}: Not found (404). Remote Control may not be available for this organization.`,404,Z);case 410:throw new C(W??"Remote Control session has expired. Please restart with `claude remote-control` or /remote-control.",410,Z??"environment_expired");case 429:throw Error(`${$}: Rate limited (429). Polling too frequently.`);default:throw Error(`${$}: Failed with status ${J}${W?`: ${W}`:""}`)}}function S(J){if(!J)return!1;return J.includes("expired")||J.includes("lifetime")}function h(J){if(J.status!==403)return!1;return J.message.includes("external_poll_sessions")||J.message.includes("environments:manage")}function B(J){if(J&&typeof J==="object"){if("error"in J&&J.error&&typeof J.error==="object"&&"type"in J.error&&typeof J.error.type==="string")return J.error.type}return}function f(J){let K=new AbortController;function $(){K.abort(),K=new AbortController}function W(){let Z=new AbortController,D=()=>Z.abort();if(J.aborted||K.signal.aborted)return Z.abort(),{signal:Z.signal,cleanup:()=>{}};J.addEventListener("abort",D,{once:!0});let M=K.signal;return M.addEventListener("abort",D,{once:!0}),{signal:Z.signal,cleanup:()=>{J.removeEventListener("abort",D),M.removeEventListener("abort",D)}}}return{signal:W,wake:$}}
|
|
2
|
+
export{j as Cb,C as Db,y as Eb,S as Fb,h as Gb,f as Hb};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Ap as n,gx as I,hx as P,lx as t,zp as W}from"./cli-1.0.13-kr3d94dn.mjs";import{a4 as H,b4 as p}from"./cli-1.0.13-a2j673qk.mjs";import{c4 as C,e4 as i}from"./cli-1.0.13-zvemnxrj.mjs";import{E8 as l,F7 as v,M4 as S,S4 as c,e8 as R,k8 as V}from"./cli-1.0.13-h5mwwv8w.mjs";import{Tda as q,Tea as O,Tfa as T,Uda as u,Ufa as Y,_fa as y,bga as k,ega as g,qga as D,vea as E,yea as X,yga as m}from"./cli-1.0.13-p1nsb8ay.mjs";import{bia as G,dia as f,eia as $,fia as h}from"./cli-1.0.13-fb695nhr.mjs";import{Qia as Z,Via as _,Wia as M}from"./cli-1.0.13-y6y32j2s.mjs";import{_ja as x,bka as b}from"./cli-1.0.13-4dp5a597.mjs";import{Kra as A,sra as Q}from"./cli-1.0.13-696y87my.mjs";import{hsa as U}from"./cli-1.0.13-d9nvpqpw.mjs";async function s(){if(q())return x("[Bootstrap] Skipped: Nonessential traffic disabled"),null;if(S()!=="firstParty")return x("[Bootstrap] Skipped: 3P provider"),null;let w=v();if(!(R()?.accessToken&&V())&&!w)return x("[Bootstrap] Skipped: no usable OAuth or API key"),null;let J=`${_().BASE_API_URL}/api/claude_cli/bootstrap`;try{return await H(async()=>{let j=R()?.accessToken,z;if(j&&V())z={Authorization:`Bearer ${j}`,"anthropic-beta":Z};else if(w)z={"x-api-key":w};else return x("[Bootstrap] No auth available on retry, aborting"),null;x("[Bootstrap] Fetching");let N=await Q.get(J,{headers:{"Content-Type":"application/json","User-Agent":C(),...z},timeout:5000}),B=d().safeParse(N.data);if(!B.success)return x(`[Bootstrap] Response failed validation: ${B.error.message}`),null;return x("[Bootstrap] Fetch ok"),B.data})}catch(j){if(Q.isAxiosError(j)){let z=j.response?.status??"no-response",N=j.code??"unknown-code",B=j.config?.method?.toUpperCase()??"UNKNOWN",K=j.config?.url??"unknown-url",L=j.message??"unknown axios error";x(`[Bootstrap] Fetch failed: status=${z} code=${N} method=${B} url=${K} message=${L}`)}else{let z=j instanceof Error?j.message:String(j);x(`[Bootstrap] Fetch failed: ${z}`)}throw j}}async function a(){let w=Y();if(!w?.startsWith("openai:"))return null;let{baseUrl:F}=T(),J=await P({baseUrl:F,apiKey:k()?.apiKey});if(J===null)return x("[Bootstrap] Local OpenAI model discovery failed"),null;let j=I(F);return{clientData:X().clientDataCache??null,additionalModelOptionsScope:w,additionalModelOptions:J.map((z)=>({value:z,label:z,description:`Detected from ${j}`}))}}async function Yj(){try{let w=Y(),F=null;if(w==="firstParty"){let B=await s();if(!B)return;F={clientData:B.client_data??null,additionalModelOptions:B.additional_model_options??[],additionalModelOptionsScope:w}}else if(w?.startsWith("openai:")){if(F=await a(),!F)return}else{x("[Bootstrap] Skipped: no additional model source");return}let{clientData:J,additionalModelOptions:j,additionalModelOptionsScope:z}=F,N=X();if(W(N.clientDataCache,J)&&W(N.additionalModelOptionsCache,j)&&N.additionalModelOptionsCacheScope===z){x("[Bootstrap] Cache unchanged, skipping write");return}x("[Bootstrap] Cache updated, persisting to disk"),E((B)=>({...B,clientDataCache:J,additionalModelOptionsCache:j,additionalModelOptionsCacheScope:z}))}catch(w){D(w)}}var d;var r=U(()=>{A();n();l();f();M();O();b();p();h();m();c();u();t();i();g();y();d=$(()=>G.object({client_data:G.record(G.string(),G.unknown()).nullish(),additional_model_options:G.array(G.object({model:G.string(),name:G.string(),description:G.string()}).transform(({model:w,name:F,description:J})=>({value:w,label:F,description:J}))).nullish()}))});
|
|
2
|
+
export{Yj as vc,r as wc};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Ux as J,Vx as Z,YG as z,ZG as M,oF as L,pF as h}from"./cli-1.0.13-kr3d94dn.mjs";import{kZ as X}from"./cli-1.0.13-mv57kk3c.mjs";import{X3 as W}from"./cli-1.0.13-gsz0cygn.mjs";import{Vpa as H,yqa as V}from"./cli-1.0.13-vwmq6bde.mjs";import{dsa as D,hsa as U}from"./cli-1.0.13-d9nvpqpw.mjs";function v(){let b=P.c(6),{addNotification:k,removeNotification:l}=L(),[j,Q]=x.useState(u),p;if(b[0]===Symbol.for("react.memo_cache_sentinel"))p=()=>{let{errors:y}=z();Q(y)},b[0]=p;else p=b[0];J(p);let q,w;if(b[1]!==k||b[2]!==j||b[3]!==l)q=()=>{if(H())return;if(j.length>0){let y=`Found ${j.length} settings ${j.length===1?"issue":"issues"} · /doctor for details`;k({key:B,text:y,color:"warning",priority:"high",timeoutMs:60000})}else l(B)},w=[j,k,l],b[1]=k,b[2]=j,b[3]=l,b[4]=q,b[5]=w;else q=b[4],w=b[5];return x.useEffect(q,w),j}function u(){let{errors:b}=z();return b}var P,x,B="settings-errors";var A=U(()=>{h();V();M();Z();P=D(X(),1),x=D(W(),1)});
|
|
2
|
+
export{v as vg,A as wg};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import{eka as ZX,hka as y8}from"./cli-1.0.13-frs40s6h.mjs";import{Fka as R8,zka as r}from"./cli-1.0.13-mazxedqg.mjs";import{Ika as $X,Lka as NJ,Vka as j8}from"./cli-1.0.13-6b6kn6sd.mjs";import{Ala as w,Bla as kQ,Ela as yJ,Fla as OX,Gla as h,Hla as vJ,Ila as tJ,Jla as hX,Kla as hJ,Lla as wX,Mla as y,Nla as OJ,Ola as gQ,Pla as m6,Sla as O,Tla as GJ,Wka as dQ,Xka as P6,ala as qJ,bla as oX,ela as eJ,fla as fX,gla as fQ,hla as T6,ila as $Q,jla as cX,mla as JQ,nla as pX,ola as g,pla as oJ,qla as n,rla as LQ,ula as pQ,vla as v6,yla as l,yqa as sQ,zla as wQ,zma as XX}from"./cli-1.0.13-vwmq6bde.mjs";import{Aqa as CX,Fqa as cJ,Gqa as TX,Hqa as HJ,Iqa as J6,Lqa as L,Mqa as XJ,Rqa as LJ,Sqa as zX,Xqa as V,Yqa as xJ,zqa as SJ}from"./cli-1.0.13-thxvtvt4.mjs";import{gsa as uJ,hsa as U,jsa as N,ksa as W}from"./cli-1.0.13-d9nvpqpw.mjs";function zJ({writeFn:J,flushIntervalMs:Q=1000,maxBufferSize:X=100,maxBufferBytes:$=1/0,immediateMode:Y=!1}){let Z=[],q=0,H=null,G=null;function I(){if(H)clearTimeout(H),H=null}function B(){if(G)J(G.join("")),G=null;if(Z.length===0)return;J(Z.join("")),Z=[],q=0,I()}function M(){if(!H)H=setTimeout(B,Q)}function F(){if(G){G.push(...Z),Z=[],q=0,I();return}let x=Z;Z=[],q=0,I(),G=x,setImmediate(()=>{let v=G;if(G=null,v)J(v.join(""))})}return{write(x){if(Y){J(x);return}if(Z.push(x),q+=x.length,M(),Z.length>=X||q>=$)F()},flush:B,dispose(){B()}}}var BJ=()=>{};function IJ(J){return t.add(J),()=>t.delete(J)}async function r8(){await Promise.all(Array.from(t).map((J)=>J()))}var t;var CJ=U(()=>{t=new Set});function WX(J){let Q=[],X=J.match(/^MCP server ["']([^"']+)["']/);if(X&&X[1])Q.push("mcp"),Q.push(X[1].toLowerCase());else{let Z=J.match(/^([^:[]+):/);if(Z&&Z[1])Q.push(Z[1].trim().toLowerCase())}let $=J.match(/^\[([^\]]+)]/);if($&&$[1])Q.push($[1].trim().toLowerCase());if(J.toLowerCase().includes("1p event:"))Q.push("1p");let Y=J.match(/:\s*([^:]+?)(?:\s+(?:type|mode|status|event))?:/);if(Y&&Y[1]){let Z=Y[1].trim().toLowerCase();if(Z.length<30&&!Z.includes(" "))Q.push(Z)}return Array.from(new Set(Q))}function EX(J,Q){if(!Q)return!0;if(J.length===0)return!1;if(Q.isExclusive)return!J.some((X)=>Q.exclude.includes(X));else return J.some((X)=>Q.include.includes(X))}function VJ(J,Q){if(!Q)return!0;let X=WX(J);return EX(X,Q)}var FJ;var DJ=U(()=>{xJ();FJ=V((J)=>{if(!J||J.trim()==="")return null;let Q=J.split(",").map((Z)=>Z.trim()).filter(Boolean);if(Q.length===0)return null;let X=Q.some((Z)=>Z.startsWith("!")),$=Q.some((Z)=>!Z.startsWith("!"));if(X&&$)return null;let Y=Q.map((Z)=>Z.replace(/^!/,"").toLowerCase());return{include:X?[]:Y,exclude:X?Y:[],isExclusive:X}})});function MX(J,Q){var X=-1,$=J==null?0:J.length;while(++X<$)if(Q(J[X],X,J)===!1)break;return J}var RJ;var AJ=U(()=>{RJ=MX});var BX,e;var _J=U(()=>{zX();BX=function(){try{var J=LJ(Object,"defineProperty");return J({},"",{}),J}catch(Q){}}(),e=BX});function IX(J,Q,X){if(Q=="__proto__"&&e)e(J,Q,{configurable:!0,enumerable:!0,value:X,writable:!0});else J[Q]=X}var m;var JJ=U(()=>{_J();m=IX});function VX(J,Q,X){var $=J[Q];if(!(FX.call(J,Q)&&SJ($,X))||X===void 0&&!(Q in J))m(J,Q,X)}var xX,FX,j;var QJ=U(()=>{JJ();CX();xX=Object.prototype,FX=xX.hasOwnProperty;j=VX});function DX(J,Q,X,$){var Y=!X;X||(X={});var Z=-1,q=Q.length;while(++Z<q){var H=Q[Z],G=$?$(X[H],J[H],H,X,J):void 0;if(G===void 0)G=J[H];if(Y)m(X,H,G);else j(X,H,G)}return X}var R;var k=U(()=>{QJ();JJ();R=DX});function RX(J,Q){return J&&R(Q,y(Q),J)}var wJ;var kJ=U(()=>{k();OJ();wJ=RX});function AX(J){var Q=[];if(J!=null)for(var X in Object(J))Q.push(X);return Q}var PJ;var TJ=U(()=>{PJ=AX});function SX(J){if(!L(J))return PJ(J);var Q=h(J),X=[];for(var $ in J)if(!($=="constructor"&&(Q||!_X.call(J,$))))X.push($);return X}var LX,_X,mJ;var jJ=U(()=>{XJ();vJ();TJ();LX=Object.prototype,_X=LX.hasOwnProperty;mJ=SX});function kX(J){return hJ(J)?yJ(J,!0):mJ(J)}var _;var d=U(()=>{OX();jJ();wX();_=kX});function PX(J,Q){return J&&R(Q,_(Q),J)}var dJ;var fJ=U(()=>{k();d();dJ=PX});var p={};uJ(p,{default:()=>$J});function mX(J,Q){if(Q)return J.slice();var X=J.length,$=bJ?bJ(X):new J.constructor(X);return J.copy($),$}var nJ,pJ,vX,gJ,bJ,$J;var lJ=U(()=>{TX();nJ=typeof p=="object"&&p&&!p.nodeType&&p,pJ=nJ&&typeof f=="object"&&f&&!f.nodeType&&f,vX=pJ&&pJ.exports===nJ,gJ=vX?cJ.Buffer:void 0,bJ=gJ?gJ.allocUnsafe:void 0;$J=mX});function jX(J,Q){var X=-1,$=J.length;Q||(Q=Array($));while(++X<$)Q[X]=J[X];return Q}var iJ;var rJ=U(()=>{iJ=jX});function yX(J,Q){return R(J,g(J),Q)}var sJ;var aJ=U(()=>{k();oJ();sJ=yX});var dX,b;var ZJ=U(()=>{hX();dX=tJ(Object.getPrototypeOf,Object),b=dX});var gX,bX,u;var YJ=U(()=>{fX();ZJ();oJ();pX();gX=Object.getOwnPropertySymbols,bX=!gX?JQ:function(J){var Q=[];while(J)eJ(Q,g(J)),J=b(J);return Q},u=bX});function uX(J,Q){return R(J,u(J),Q)}var QQ;var XQ=U(()=>{k();YJ();QQ=uX});function nX(J){return $Q(J,_,u)}var ZQ;var YQ=U(()=>{cX();YJ();d();ZQ=nX});function rX(J){var Q=J.length,X=new J.constructor(Q);if(Q&&typeof J[0]=="string"&&iX.call(J,"index"))X.index=J.index,X.input=J.input;return X}var lX,iX,qQ;var HQ=U(()=>{lX=Object.prototype,iX=lX.hasOwnProperty;qQ=rX});function sX(J){var Q=new J.constructor(J.byteLength);return new qJ(Q).set(new qJ(J)),Q}var S;var c=U(()=>{oX();S=sX});function aX(J,Q){var X=Q?S(J.buffer):J.buffer;return new J.constructor(X,J.byteOffset,J.byteLength)}var GQ;var KQ=U(()=>{c();GQ=aX});function eX(J){var Q=new J.constructor(J.source,tX.exec(J));return Q.lastIndex=J.lastIndex,Q}var tX,UQ;var NQ=U(()=>{tX=/\w*$/;UQ=eX});function Q6(J){return EQ?Object(EQ.call(J)):{}}var WQ,EQ,MQ;var zQ=U(()=>{J6();WQ=HJ?HJ.prototype:void 0,EQ=WQ?WQ.valueOf:void 0;MQ=Q6});function X6(J,Q){var X=Q?S(J.buffer):J.buffer;return new J.constructor(X,J.byteOffset,J.length)}var BQ;var IQ=U(()=>{c();BQ=X6});function D6(J,Q,X){var $=J.constructor;switch(Q){case N6:return S(J);case $6:case Z6:return new $(+J);case W6:return GQ(J,X);case E6:case M6:case z6:case B6:case I6:case C6:case x6:case F6:case V6:return BQ(J,X);case Y6:return new $;case q6:case K6:return new $(J);case H6:return UQ(J);case G6:return new $;case U6:return MQ(J)}}var $6="[object Boolean]",Z6="[object Date]",Y6="[object Map]",q6="[object Number]",H6="[object RegExp]",G6="[object Set]",K6="[object String]",U6="[object Symbol]",N6="[object ArrayBuffer]",W6="[object DataView]",E6="[object Float32Array]",M6="[object Float64Array]",z6="[object Int8Array]",B6="[object Int16Array]",I6="[object Int32Array]",C6="[object Uint8Array]",x6="[object Uint8ClampedArray]",F6="[object Uint16Array]",V6="[object Uint32Array]",CQ;var xQ=U(()=>{c();KQ();NQ();zQ();IQ();CQ=D6});var FQ,R6,VQ;var DQ=U(()=>{XJ();FQ=Object.create,R6=function(){function J(){}return function(Q){if(!L(Q))return{};if(FQ)return FQ(Q);J.prototype=Q;var X=new J;return J.prototype=void 0,X}}(),VQ=R6});function A6(J){return typeof J.constructor=="function"&&!h(J)?VQ(b(J)):{}}var RQ;var AQ=U(()=>{DQ();ZJ();vJ();RQ=A6});function _6(J){return n(J)&&O(J)==L6}var L6="[object Map]",_Q;var SQ=U(()=>{GJ();LQ();_Q=_6});var OQ,S6,PQ;var TQ=U(()=>{SQ();wQ();kQ();OQ=w&&w.isMap,S6=OQ?l(OQ):_Q,PQ=S6});function w6(J){return n(J)&&O(J)==O6}var O6="[object Set]",vQ;var mQ=U(()=>{GJ();LQ();vQ=w6});var jQ,k6,yQ;var hQ=U(()=>{mQ();wQ();kQ();jQ=w&&w.isSet,k6=jQ?l(jQ):vQ,yQ=k6});function i(J,Q,X,$,Y,Z){var q,H=Q&j6,G=Q&y6,I=Q&h6;if(X)q=Y?X(J,$,Y,Z):X(J);if(q!==void 0)return q;if(!L(J))return J;var B=fQ(J);if(B){if(q=qQ(J),!H)return iJ(J,q)}else{var M=O(J),F=M==uQ||M==b6;if(pQ(J))return $J(J,H);if(M==cQ||M==bQ||F&&!Y){if(q=G||F?{}:RQ(J),!H)return G?QQ(J,dJ(q,J)):sJ(J,wJ(q,J))}else{if(!z[M])return Y?J:{};q=CQ(J,M,H)}}Z||(Z=new dQ);var x=Z.get(J);if(x)return x;if(Z.set(J,q),yQ(J))J.forEach(function(D){q.add(i(D,Q,X,D,J,Z))});else if(PQ(J))J.forEach(function(D,A){q.set(A,i(D,Q,X,A,J,Z))});var v=I?G?ZQ:gQ:G?_:y,MJ=B?void 0:v(J);return RJ(MJ||J,function(D,A){if(MJ)A=D,D=J[A];j(q,A,i(D,Q,X,A,J,Z))}),q}var j6=1,y6=2,h6=4,bQ="[object Arguments]",d6="[object Array]",f6="[object Boolean]",p6="[object Date]",g6="[object Error]",uQ="[object Function]",b6="[object GeneratorFunction]",u6="[object Map]",c6="[object Number]",cQ="[object Object]",n6="[object RegExp]",l6="[object Set]",i6="[object String]",r6="[object Symbol]",o6="[object WeakMap]",s6="[object ArrayBuffer]",a6="[object DataView]",t6="[object Float32Array]",e6="[object Float64Array]",J8="[object Int8Array]",Q8="[object Int16Array]",X8="[object Int32Array]",$8="[object Uint8Array]",Z8="[object Uint8ClampedArray]",Y8="[object Uint16Array]",q8="[object Uint32Array]",z,nQ;var lQ=U(()=>{P6();AJ();QJ();kJ();fJ();lJ();rJ();aJ();XQ();m6();YQ();GJ();HQ();xQ();AQ();T6();v6();TQ();XJ();hQ();OJ();d();z={};z[bQ]=z[d6]=z[s6]=z[a6]=z[f6]=z[p6]=z[t6]=z[e6]=z[J8]=z[Q8]=z[X8]=z[u6]=z[c6]=z[cQ]=z[n6]=z[l6]=z[i6]=z[r6]=z[$8]=z[Z8]=z[Y8]=z[q8]=!0;z[g6]=z[uQ]=z[o6]=!1;nQ=i});function K8(J){return nQ(J,H8|G8)}var H8=1,G8=4,iQ;var rQ=U(()=>{lQ();iQ=K8});var V8={};uJ(V8,{writeFileSync_DEPRECATED:()=>F8,slowLogging:()=>E,jsonStringify:()=>KJ,jsonParse:()=>I8,cloneDeep:()=>x8,clone:()=>C8,callerFrame:()=>M8,SLOW_OPERATION_THRESHOLD_MS:()=>E8});import{closeSync as U8,writeFileSync as oQ,fsyncSync as N8,openSync as W8}from"fs";function M8(J){if(!J)return"";for(let Q of J.split(`
|
|
2
|
+
`)){if(Q.includes("slowOperations"))continue;let X=Q.match(/([^/\\]+?):(\d+):\d+\)?$/);if(X)return` @ ${X[1]}:${X[2]}`}return""}function B8(){return z8}function KJ(J,Q,X){let Y=[];try{const $=N(Y,E`JSON.stringify(${J})`,0);return JSON.stringify(J,Q,X)}catch(Z){var q=Z,H=1}finally{W(Y,q,H)}}function C8(J,Q){let $=[];try{const X=N($,E`structuredClone(${J})`,0);return structuredClone(J,Q)}catch(Y){var Z=Y,q=1}finally{W($,Z,q)}}function x8(J){let X=[];try{const Q=N(X,E`cloneDeep(${J})`,0);return iQ(J)}catch($){var Y=$,Z=1}finally{W(X,Y,Z)}}function F8(J,Q,X){let Z=[];try{const $=N(Z,E`fs.writeFileSync(${J}, ${Q})`,0);let Y=X!==null&&typeof X==="object"&&"flush"in X&&X.flush===!0;if(Y){let I=typeof X==="object"&&"encoding"in X?X.encoding:void 0,B=typeof X==="object"&&"mode"in X?X.mode:void 0,M;try{M=W8(J,"w",B),oQ(M,Q,{encoding:I??void 0}),N8(M)}finally{if(M!==void 0)U8(M)}}else oQ(J,Q,X)}catch(q){var H=q,G=1}finally{W(Z,H,G)}}var E8,z8,E,I8=(J,Q)=>{let $=[];try{const X=N($,E`JSON.parse(${J})`,0);return typeof Q>"u"?JSON.parse(J):JSON.parse(J,Q)}catch(Y){var Z=Y,q=1}finally{W($,Z,q)}};var UJ=U(()=>{rQ();sQ();aQ();E8=(()=>{let J=process.env.CLAUDE_CODE_SLOW_OPERATION_THRESHOLD_MS;if(J!==void 0){let Q=Number(J);if(!Number.isNaN(Q)&&Q>=0)return Q}return 1/0})();z8={[Symbol.dispose](){}};E=B8});import*as K from"fs";import{mkdir as A8,open as o,readdir as L8,readFile as tQ,copyFile as _8,rename as S8,rmdir as O8,rm as w8,stat as k8,unlink as P8}from"fs/promises";import{homedir as eQ}from"os";import*as C from"path";function JX(J,Q){if(Q.startsWith("//")||Q.startsWith("\\\\"))return{resolvedPath:Q,isSymlink:!1,isCanonical:!1};try{let X=J.lstatSync(Q);if(X.isFIFO()||X.isSocket()||X.isCharacterDevice()||X.isBlockDevice())return{resolvedPath:Q,isSymlink:!1,isCanonical:!1};let $=J.realpathSync(Q);return{resolvedPath:$,isSymlink:$!==Q,isCanonical:!0}}catch(X){return{resolvedPath:Q,isSymlink:!1,isCanonical:!1}}}function H1(J,Q,X){let{resolvedPath:$}=JX(J,Q);if(X.has($))return!0;return X.add($),!1}function T8(J,Q){let X=Q,$=[];while(X!==C.dirname(X)){let Y;try{Y=J.lstatSync(X)}catch{$.unshift(C.basename(X)),X=C.dirname(X);continue}if(Y.isSymbolicLink())try{let Z=J.realpathSync(X);return $.length===0?Z:C.join(Z,...$)}catch{let Z=J.readlinkSync(X),q=C.isAbsolute(Z)?Z:C.resolve(C.dirname(X),Z);return $.length===0?q:C.join(q,...$)}try{let Z=J.realpathSync(X);if(Z!==X)return $.length===0?Z:C.join(Z,...$)}catch{}return}return}function G1(J){let Q=J;if(Q==="~")Q=eQ().normalize("NFC");else if(Q.startsWith("~/"))Q=C.join(eQ().normalize("NFC"),Q.slice(2));let X=new Set,$=s();if(X.add(Q),Q.startsWith("//")||Q.startsWith("\\\\"))return Array.from(X);try{let q=Q,H=new Set,G=40;for(let I=0;I<G;I++){if(H.has(q))break;if(H.add(q),!$.existsSync(q)){if(q===Q){let x=T8($,Q);if(x!==void 0)X.add(x)}break}let B=$.lstatSync(q);if(B.isFIFO()||B.isSocket()||B.isCharacterDevice()||B.isBlockDevice())break;if(!B.isSymbolicLink())break;let M=$.readlinkSync(q),F=C.isAbsolute(M)?M:C.resolve(C.dirname(q),M);X.add(F),q=F}}catch{}let{resolvedPath:Y,isSymlink:Z}=JX($,Q);if(Z&&Y!==Q)X.add(Y);return Array.from(X)}function s(){return m8}async function K1(J,Q,X){let G=[];try{const $=N(G,await o(J,"r"),1);let Y=(await $.stat()).size;if(Y<=Q)return null;let Z=Math.min(Y-Q,X);let q=Buffer.allocUnsafe(Z);let H=0;while(H<Z){let{bytesRead:x}=await $.read(q,H,Z-H,Q+H);if(x===0)break;H+=x}return{content:q.toString("utf8",0,H),bytesRead:H,bytesTotal:Y}}catch(I){var B=I,M=1}finally{var F=W(G,B,M);F&&await F}}async function U1(J,Q){let G=[];try{const X=N(G,await o(J,"r"),1);let $=(await X.stat()).size;if($===0)return{content:"",bytesRead:0,bytesTotal:0};let Y=Math.max(0,$-Q);let Z=$-Y;let q=Buffer.allocUnsafe(Z);let H=0;while(H<Z){let{bytesRead:x}=await X.read(q,H,Z-H,Y+H);if(x===0)break;H+=x}return{content:q.toString("utf8",0,H),bytesRead:H,bytesTotal:$}}catch(I){var B=I,M=1}finally{var F=W(G,B,M);F&&await F}}async function*N1(J){let X=await o(J,"r");try{let Y=(await X.stat()).size,Z=Buffer.alloc(0),q=Buffer.alloc(4096);while(Y>0){let H=Math.min(4096,Y);Y-=H,await X.read(q,0,H,Y);let G=Buffer.concat([q.subarray(0,H),Z]),I=G.indexOf(10);if(I===-1){Z=G;continue}Z=Buffer.from(G.subarray(0,I));let B=G.toString("utf8",I+1).split(`
|
|
3
|
+
`);for(let M=B.length-1;M>=0;M--){let F=B[M];if(F)yield F}}if(Z.length>0)yield Z.toString("utf8")}finally{await X.close()}}var v8,m8;var QX=U(()=>{R8();UJ();v8={cwd(){return process.cwd()},existsSync(J){let X=[];try{const Q=N(X,E`fs.existsSync(${J})`,0);return K.existsSync(J)}catch($){var Y=$,Z=1}finally{W(X,Y,Z)}},async stat(J){return k8(J)},async readdir(J){return L8(J,{withFileTypes:!0})},async unlink(J){return P8(J)},async rmdir(J){return O8(J)},async rm(J,Q){return w8(J,Q)},async mkdir(J,Q){try{await A8(J,{recursive:!0,...Q})}catch(X){if(r(X)!=="EEXIST")throw X}},async readFile(J,Q){return tQ(J,{encoding:Q.encoding})},async rename(J,Q){return S8(J,Q)},async copyFile(J,Q){let $=[];try{const X=N($,E`fs.copyFile(${J} → ${Q})`,0);return _8(J,Q)}catch(Y){var Z=Y,q=1}finally{W($,Z,q)}},statSync(J){let X=[];try{const Q=N(X,E`fs.statSync(${J})`,0);return K.statSync(J)}catch($){var Y=$,Z=1}finally{W(X,Y,Z)}},lstatSync(J){let X=[];try{const Q=N(X,E`fs.lstatSync(${J})`,0);return K.lstatSync(J)}catch($){var Y=$,Z=1}finally{W(X,Y,Z)}},readFileSync(J,Q){let $=[];try{const X=N($,E`fs.readFileSync(${J})`,0);return K.readFileSync(J,{encoding:Q.encoding})}catch(Y){var Z=Y,q=1}finally{W($,Z,q)}},readFileBytesSync(J){let X=[];try{const Q=N(X,E`fs.readFileBytesSync(${J})`,0);return K.readFileSync(J)}catch($){var Y=$,Z=1}finally{W(X,Y,Z)}},readSync(J,Q){let Y=[];try{const X=N(Y,E`fs.readSync(${J}, ${Q.length} bytes)`,0);let $=void 0;try{$=K.openSync(J,"r");let G=Buffer.alloc(Q.length),I=K.readSync($,G,0,Q.length,0);return{buffer:G,bytesRead:I}}finally{if($)K.closeSync($)}}catch(Z){var q=Z,H=1}finally{W(Y,q,H)}},appendFileSync(J,Q,X){let Y=[];try{const $=N(Y,E`fs.appendFileSync(${J}, ${Q.length} chars)`,0);if(X?.mode!==void 0)try{let G=K.openSync(J,"ax",X.mode);try{K.appendFileSync(G,Q)}finally{K.closeSync(G)}return}catch(G){if(r(G)!=="EEXIST")throw G}K.appendFileSync(J,Q)}catch(Z){var q=Z,H=1}finally{W(Y,q,H)}},copyFileSync(J,Q){let $=[];try{const X=N($,E`fs.copyFileSync(${J} → ${Q})`,0);K.copyFileSync(J,Q)}catch(Y){var Z=Y,q=1}finally{W($,Z,q)}},unlinkSync(J){let X=[];try{const Q=N(X,E`fs.unlinkSync(${J})`,0);K.unlinkSync(J)}catch($){var Y=$,Z=1}finally{W(X,Y,Z)}},renameSync(J,Q){let $=[];try{const X=N($,E`fs.renameSync(${J} → ${Q})`,0);K.renameSync(J,Q)}catch(Y){var Z=Y,q=1}finally{W($,Z,q)}},linkSync(J,Q){let $=[];try{const X=N($,E`fs.linkSync(${J} → ${Q})`,0);K.linkSync(J,Q)}catch(Y){var Z=Y,q=1}finally{W($,Z,q)}},symlinkSync(J,Q,X){let Y=[];try{const $=N(Y,E`fs.symlinkSync(${J} → ${Q})`,0);K.symlinkSync(J,Q,X)}catch(Z){var q=Z,H=1}finally{W(Y,q,H)}},readlinkSync(J){let X=[];try{const Q=N(X,E`fs.readlinkSync(${J})`,0);return K.readlinkSync(J)}catch($){var Y=$,Z=1}finally{W(X,Y,Z)}},realpathSync(J){let X=[];try{const Q=N(X,E`fs.realpathSync(${J})`,0);return K.realpathSync(J).normalize("NFC")}catch($){var Y=$,Z=1}finally{W(X,Y,Z)}},mkdirSync(J,Q){let Y=[];try{const X=N(Y,E`fs.mkdirSync(${J})`,0);let $={recursive:!0};if(Q?.mode!==void 0)$.mode=Q.mode;try{K.mkdirSync(J,$)}catch(G){if(r(G)!=="EEXIST")throw G}}catch(Z){var q=Z,H=1}finally{W(Y,q,H)}},readdirSync(J){let X=[];try{const Q=N(X,E`fs.readdirSync(${J})`,0);return K.readdirSync(J,{withFileTypes:!0})}catch($){var Y=$,Z=1}finally{W(X,Y,Z)}},readdirStringSync(J){let X=[];try{const Q=N(X,E`fs.readdirStringSync(${J})`,0);return K.readdirSync(J)}catch($){var Y=$,Z=1}finally{W(X,Y,Z)}},isDirEmptySync(J){let $=[];try{const Q=N($,E`fs.isDirEmptySync(${J})`,0);let X=this.readdirSync(J);return X.length===0}catch(Y){var Z=Y,q=1}finally{W($,Z,q)}},rmdirSync(J){let X=[];try{const Q=N(X,E`fs.rmdirSync(${J})`,0);K.rmdirSync(J)}catch($){var Y=$,Z=1}finally{W(X,Y,Z)}},rmSync(J,Q){let $=[];try{const X=N($,E`fs.rmSync(${J})`,0);K.rmSync(J,Q)}catch(Y){var Z=Y,q=1}finally{W($,Z,q)}},createWriteStream(J){return K.createWriteStream(J)},async readFileBytes(J,Q){if(Q===void 0)return tQ(J);let X=await o(J,"r");try{let{size:$}=await X.stat(),Y=Math.min($,Q),Z=Buffer.allocUnsafe(Y),q=0;while(q<Y){let{bytesRead:H}=await X.read(Z,q,Y-q,q);if(H===0)break;q+=H}return q<Y?Z.subarray(0,q):Z}finally{await X.close()}}},m8=v8});import{appendFile as h8,mkdir as d8,symlink as f8,unlink as p8}from"fs/promises";import{dirname as YX,join as qX}from"path";function L1(){let J=T();return HX=!0,T.cache.clear?.(),J}function u8(J){if(!T())return!1;if(typeof process>"u"||typeof process.versions>"u"||typeof process.versions.node>"u")return!1;let Q=b8();return VJ(J,Q)}function _1(J){EJ=J}function S1(){return EJ}async function c8(J,Q,X,$){if(J)await d8(Q,{recursive:!0}).catch(()=>{});await h8(X,$),NX()}function n8(){}function l8(){if(!P){let J=null;P=zJ({writeFn:(Q)=>{let X=UX(),$=YX(X),Y=J!==$;if(J=$,T()){if(Y)try{s().mkdirSync($)}catch{}s().appendFileSync(X,Q),NX();return}a=a.then(c8.bind(null,Y,$,X,Q)).catch(n8)},flushIntervalMs:1000,maxBufferSize:100,immediateMode:T()}),IJ(async()=>{P?.dispose(),await a})}return P}async function O1(){P?.flush(),await a}function D8(J,{level:Q}={level:"debug"}){if(WJ[Q]<WJ[g8()])return;if(!u8(J))return;if(EJ&&J.includes(`
|
|
4
|
+
`))J=KJ(J);let $=`${new Date().toISOString()} [${Q.toUpperCase()}] ${J.trim()}
|
|
5
|
+
`;if(GX()){ZX($);return}l8().write($)}function UX(){return KX()??process.env.CLAUDE_CODE_DEBUG_LOGS_DIR??qX($X(),"debug",`${XX()}.txt`)}function w1(J,Q){}var WJ,g8,HX=!1,T,b8,GX,KX,EJ=!1,P=null,a,NX;var aQ=U(()=>{xJ();sQ();BJ();CJ();DJ();j8();QX();y8();UJ();WJ={verbose:0,debug:1,info:2,warn:3,error:4},g8=V(()=>{let J=process.env.CLAUDE_CODE_DEBUG_LOG_LEVEL?.toLowerCase().trim();if(J&&Object.hasOwn(WJ,J))return J;return"debug"}),T=V(()=>{return HX||NJ(process.env.DEBUG)||NJ(process.env.DEBUG_SDK)||process.argv.includes("--debug")||process.argv.includes("-d")||GX()||process.argv.some((J)=>J.startsWith("--debug="))||KX()!==null});b8=V(()=>{let J=process.argv.find((X)=>X.startsWith("--debug="));if(!J)return null;let Q=J.substring(8);return FJ(Q)}),GX=V(()=>{return process.argv.includes("--debug-to-stderr")||process.argv.includes("-D")}),KX=V(()=>{for(let J=0;J<process.argv.length;J++){let Q=process.argv[J];if(Q.startsWith("--debug-file="))return Q.substring(13);if(Q==="--debug-file"&&J+1<process.argv.length)return process.argv[J+1]}return null});a=Promise.resolve();NX=V(async()=>{try{let J=UX(),Q=YX(J),X=qX(Q,"latest");await p8(X).catch(()=>{}),await f8(J,X)}catch{}})});
|
|
6
|
+
export{zJ as $ia,BJ as aja,IJ as bja,r8 as cja,CJ as dja,e as eja,_J as fja,m as gja,JJ as hja,j as ija,QJ as jja,R as kja,k as lja,_ as mja,d as nja,$J as oja,lJ as pja,iJ as qja,rJ as rja,b as sja,ZJ as tja,ZQ as uja,YQ as vja,BQ as wja,IQ as xja,RQ as yja,AQ as zja,nQ as Aja,lQ as Bja,E as Cja,KJ as Dja,I8 as Eja,C8 as Fja,F8 as Gja,V8 as Hja,UJ as Ija,JX as Jja,H1 as Kja,G1 as Lja,s as Mja,K1 as Nja,U1 as Oja,N1 as Pja,QX as Qja,g8 as Rja,T as Sja,L1 as Tja,b8 as Uja,GX as Vja,KX as Wja,_1 as Xja,S1 as Yja,O1 as Zja,D8 as _ja,UX as $ja,w1 as aka,aQ as bka};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{hsa as y}from"./cli-1.0.13-d9nvpqpw.mjs";function $(q){return typeof q==="number"&&Number.isFinite(q)?q:0}function F(q,z){let B=q;for(let K of z){if(B==null||typeof B!=="object")return;B=B[K]}return B}function x(q){if(!q)return!1;let z="";try{z=new URL(q).hostname.toLowerCase()}catch{}if(!z){let W=q.toLowerCase();return W.includes("localhost")||W.includes("127.0.0.1")||W.includes("::1")}let B=z.startsWith("[")&&z.endsWith("]")?z.slice(1,-1):z;if(B==="localhost"||B.endsWith(".localhost")||B.endsWith(".local")||B.endsWith(".lan")||B.endsWith(".internal")||B.endsWith(".intranet")||B.endsWith(".home.arpa"))return!0;let K=B.match(U);if(K){let W=Number(K[1]),j=Number(K[2]);if(W===10)return!0;if(W===172&&j>=16&&j<=31)return!0;if(W===192&&j===168)return!0;if(W===127)return!0;if(W===169&&j===254)return!0;if(W===100&&j>=64&&j<=127)return!0}if(B==="::1"||B==="::")return!0;if(B.startsWith("fe80:")||f.test(B)||A.test(B))return!0;return!1}function N(q,z){if(q==="github")return z?.githubNativeAnthropic?"copilot-claude":"copilot";if(q==="firstParty"||q==="bedrock"||q==="vertex"||q==="foundry")return"anthropic";if(q==="gemini")return"gemini";if(q==="codex")return"codex";if(q==="openai"){let B=z?.openAiBaseUrl??"";if(x(B))return"self-hosted";let K=B.toLowerCase();if(K.includes(":11434"))return"ollama";if(K.includes("moonshot")||K.includes("kimi"))return"kimi";if(K.includes("deepseek"))return"deepseek";return"openai"}return"openai"}function D(q){if(!q||typeof q!=="object")return 0;let z=q,B=$(z.cache_read_input_tokens);if(B>0)return B;let K=$(F(q,["input_tokens_details","cached_tokens"]))||$(F(q,["prompt_tokens_details","cached_tokens"]));if(K>0)return K;let W=$(z.cached_tokens);if(W>0)return W;let j=$(z.prompt_cache_hit_tokens);if(j>0)return j;let Q=$(z.cached_content_token_count);if(Q>0)return Q;return 0}function Y(q){if(!q||typeof q!=="object")return 0;let B=$(q.cache_creation_input_tokens);if(B>0)return B;return $(F(q,["cache_creation","ephemeral_5m_input_tokens"]))+$(F(q,["cache_creation","ephemeral_1h_input_tokens"]))}function P(q){let z=D(q),B=q??{},K=$(B.input_tokens)||$(B.prompt_tokens),W=K>=z?K-z:K,j=$(B.output_tokens)||$(B.completion_tokens);return{input_tokens:W,output_tokens:j,cache_creation_input_tokens:Y(q),cache_read_input_tokens:z}}function M(q,z){if(!q||typeof q!=="object")return X;let B=q,K=$(B.cache_read_input_tokens),W=$(B.cache_creation_input_tokens),j=$(B.input_tokens);if(z==="copilot"||z==="ollama")return X;if(z==="self-hosted"&&K===0&&W===0)return X;let Q=K+W+j;return{read:K,created:W,total:Q,hitRate:Q>0?Math.min(1,K/Q):null,supported:!0}}function C(q){if(!q)return"[Cache: N/A]";if(!q.supported)return"[Cache: N/A]";if(q.read===0&&q.created===0)return"[Cache: cold]";let z=[`${G(q.read)} read`];if(q.hitRate!==null)z.push(`hit ${Math.round(q.hitRate*100)}%`);return`[Cache: ${z.join(" • ")}]`}function I(q){if(!q)return"[Cache: N/A]";if(!q.supported)return"[Cache: N/A]";let z=[`read=${G(q.read)}`,`created=${G(q.created)}`];if(q.hitRate!==null)z.push(`hit=${Math.round(q.hitRate*100)}%`);else z.push("hit=n/a");return`[Cache: ${z.join(" ")}]`}function G(q){if(q<1000)return String(q);if(q<1e6)return`${(q/1000).toFixed(1).replace(Z,"")}k`;return`${(q/1e6).toFixed(1).replace(Z,"")}m`}function H(q,z){if(!q.supported&&!z.supported)return X;if(!q.supported)return z;if(!z.supported)return q;let B=q.read+z.read,K=q.created+z.created,W=q.total+z.total;return{read:B,created:K,total:W,hitRate:W>0?B/W:null,supported:!0}}var X,U,f,A,Z;var L=y(()=>{X={read:0,created:0,total:0,hitRate:null,supported:!1};U=/^(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})$/,f=/^fc[0-9a-f]{0,2}:/,A=/^fd[0-9a-f]{0,2}:/,Z=/\.0$/});function S(q){return{currentTurn:V,session:V,history:Array(q),historyWriteIdx:0,historySize:0,historyMax:q}}function w(q,z){J.currentTurn=H(J.currentTurn,q),J.session=H(J.session,q);let B={timestamp:Date.now(),label:z,metrics:q};if(J.history[J.historyWriteIdx]=B,J.historyWriteIdx=(J.historyWriteIdx+1)%J.historyMax,J.historySize<J.historyMax)J.historySize++}function T(){J.currentTurn=V}function R(){J.currentTurn=V,J.session=V,J.history=Array(J.historyMax),J.historyWriteIdx=0,J.historySize=0}function b(){return J.currentTurn}function g(){return J.session}function l(){if(J.historySize<J.historyMax)return J.history.slice(0,J.historySize);let q=J.history.slice(J.historyWriteIdx),z=J.history.slice(0,J.historyWriteIdx);return q.concat(z)}var O=500,V,J;var k=y(()=>{L();V={read:0,created:0,total:0,hitRate:null,supported:!1};J=S(O)});
|
|
2
|
+
export{N as D2,P as E2,M as F2,C as G2,I as H2,L as I2,w as J2,T as K2,R as L2,b as M2,g as N2,l as O2,k as P2};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Ao as E,Bo as m,Bp as l,Co as Xq,Dp as Rq,Ep as i,Fp as Aq,Xo as S,ap as Zq}from"./cli-1.0.13-kr3d94dn.mjs";import{dca as u,fca as g,ica as h,jca as n,oca as vq,qga as D,yga as Qq}from"./cli-1.0.13-p1nsb8ay.mjs";import{bia as d,dia as Uq}from"./cli-1.0.13-fb695nhr.mjs";import{Dja as P,Eja as v,Ija as f,Mja as M,Qja as y,_ja as V,bka as e}from"./cli-1.0.13-4dp5a597.mjs";import{Aka as C,Fka as _,yka as W,zka as O}from"./cli-1.0.13-mazxedqg.mjs";import{Kra as qq,sra as p}from"./cli-1.0.13-696y87my.mjs";import{hsa as N}from"./cli-1.0.13-d9nvpqpw.mjs";import{homedir as a}from"os";import{resolve as t}from"path";async function Fq(Z){let q=Z.trim(),$=M(),Q=q.match(/^([a-zA-Z0-9._-]+@[^:]+:.+?(?:\.git)?)(#(.+))?$/);if(Q?.[1]){let z=Q[1],G=Q[3];return G?{source:"git",url:z,ref:G}:{source:"git",url:z}}if(q.startsWith("http://")||q.startsWith("https://")){let z=q.match(/^([^#]+)(#(.+))?$/),G=z?.[1]||q,X=z?.[3];if(G.endsWith(".git")||G.includes("/_git/"))return X?{source:"git",url:G,ref:X}:{source:"git",url:G};let Y;try{Y=new URL(G)}catch(J){return{source:"url",url:G}}if(Y.hostname==="github.com"||Y.hostname==="www.github.com"){if(Y.pathname.match(/^\/([^/]+\/[^/]+?)(\/|\.git|$)/)?.[1]){let K=G.endsWith(".git")?G:`${G}.git`;return X?{source:"git",url:K,ref:X}:{source:"git",url:K}}}return{source:"url",url:G}}let x=process.platform==="win32"&&(q.startsWith(".\\")||q.startsWith("..\\")||/^[a-zA-Z]:[/\\]/.test(q));if(q.startsWith("./")||q.startsWith("../")||q.startsWith("/")||q.startsWith("~")||x){let z=t(q.startsWith("~")?q.replace(/^~/,a()):q),G;try{G=await $.stat(z)}catch(X){let Y=O(X);return{error:Y==="ENOENT"?`Path does not exist: ${z}`:`Cannot access path: ${z} (${Y??X})`}}if(G.isFile())if(z.endsWith(".json"))return{source:"file",path:z};else return{error:`File path must point to a .json file (marketplace.json), but got: ${z}`};else if(G.isDirectory())return{source:"directory",path:z};else return{error:`Path is neither a file nor a directory: ${z}`}}if(q.includes("/")&&!q.startsWith("@")){if(q.includes(":"))return null;let z=q.match(/^([^#@]+)(?:[#@](.+))?$/),G=z?.[1]||q,X=z?.[2];return X?{source:"github",repo:G,ref:X}:{source:"github",repo:G}}return null}var r=N(()=>{_();y()});import{randomBytes as $q}from"crypto";import{readFile as Bq,rename as Gq,unlink as Yq,writeFile as Jq}from"fs/promises";import{join as Kq}from"path";function c(){return Kq(S(),xq)}async function Hq(){let Z=c();try{let q=await Bq(Z,{encoding:"utf-8"}),$=v(q);if(typeof $!=="object"||$===null||!("version"in $)||!("fetchedAt"in $)||!("counts"in $))return V("Install counts cache has invalid structure"),null;let Q=$;if(Q.version!==L)return V(`Install counts cache version mismatch (got ${Q.version}, expected ${L})`),null;if(typeof Q.fetchedAt!=="string"||!Array.isArray(Q.counts))return V("Install counts cache has invalid structure"),null;let B=new Date(Q.fetchedAt).getTime();if(Number.isNaN(B))return V("Install counts cache has invalid fetchedAt timestamp"),null;if(!Q.counts.every((G)=>typeof G==="object"&&G!==null&&typeof G.plugin==="string"&&typeof G.unique_installs==="number"))return V("Install counts cache has malformed entries"),null;if(Date.now()-B>zq)return V("Install counts cache is stale (>24h old)"),null;return{version:Q.version,fetchedAt:Q.fetchedAt,counts:Q.counts}}catch(q){if(O(q)!=="ENOENT")V(`Failed to load install counts cache: ${W(q)}`);return null}}async function Vq(Z){let q=c(),$=`${q}.${$q(8).toString("hex")}.tmp`;try{let Q=S();await M().mkdir(Q);let B=P(Z,null,2);await Jq($,B,{encoding:"utf-8",mode:384}),await Gq($,q),V("Install counts cache saved successfully")}catch(Q){D(Q);try{await Yq($)}catch{}}}async function Wq(){V(`Fetching install counts from ${I}`);let Z=performance.now();try{let q=await p.get(I,{timeout:1e4});if(!q.data?.plugins||!Array.isArray(q.data.plugins))throw Error("Invalid response format from install counts API");return E("install_counts",I,"success",performance.now()-Z),q.data.plugins}catch(q){throw E("install_counts",I,"failure",performance.now()-Z,m(q)),q}}async function nq(){let Z=await Hq();if(Z){V("Using cached install counts"),E("install_counts",I,"cache_hit",0);let q=new Map;for(let $ of Z.counts)q.set($.plugin,$.unique_installs);return q}try{let q=await Wq(),$={version:L,fetchedAt:new Date().toISOString(),counts:q};await Vq($);let Q=new Map;for(let B of q)Q.set(B.plugin,B.unique_installs);return Q}catch(q){return D(q),V(`Failed to fetch install counts: ${W(q)}`),null}}function lq(Z){if(Z<1000)return String(Z);if(Z<1e6){let B=(Z/1000).toFixed(1);return B.endsWith(".0")?`${B.slice(0,-2)}K`:`${B}K`}let $=(Z/1e6).toFixed(1);return $.endsWith(".0")?`${$.slice(0,-2)}M`:`${$}M`}var L=1,xq="install-counts-cache.json",I="https://raw.githubusercontent.com/anthropics/claude-plugins-official/refs/heads/stats/stats/plugin-installs.json",zq=86400000;var Oq=N(()=>{qq();e();_();y();Qq();f();Xq();Zq()});import{readdir as Iq,readFile as A,stat as wq}from"fs/promises";import*as H from"path";function Eq(Z){let q=H.basename(Z),$=H.basename(H.dirname(Z));if(q==="plugin.json")return"plugin";if(q==="marketplace.json")return"marketplace";if($===".claude-plugin")return"plugin";return"unknown"}function F(Z){return Z.issues.map((q)=>({path:q.path.join(".")||"root",message:q.message,code:q.code}))}function w(Z,q,$,Q){if(Z.includes(".."))$.push({path:q,message:Q?`Path contains "..": ${Z}. ${Q}`:`Path contains ".." which could be a path traversal attempt: ${Z}`})}function Nq(Z){let q=Z.replace(/^(\.\.\/)+/,"");return`Plugin source paths are resolved relative to the marketplace root (the directory containing .claude-plugin/), not relative to marketplace.json. Use "${q!==Z?`./${q}`:"./plugins/my-plugin"}" instead of "${Z}".`}async function j(Z){let q=[],$=[],Q=H.resolve(Z),B;try{B=await A(Q,{encoding:"utf-8"})}catch(X){let Y=O(X),J;if(Y==="ENOENT")J=`File not found: ${Q}`;else if(Y==="EISDIR")J=`Path is not a file: ${Q}`;else J=`Failed to read file: ${W(X)}`;return{success:!1,errors:[{path:"file",message:J,code:Y}],warnings:[],filePath:Q,fileType:"plugin"}}let x;try{x=v(B)}catch(X){return{success:!1,errors:[{path:"json",message:`Invalid JSON syntax: ${W(X)}`}],warnings:[],filePath:Q,fileType:"plugin"}}if(x&&typeof x==="object"){let X=x;if(X.commands)(Array.isArray(X.commands)?X.commands:[X.commands]).forEach((J,K)=>{if(typeof J==="string")w(J,`commands[${K}]`,q)});if(X.agents)(Array.isArray(X.agents)?X.agents:[X.agents]).forEach((J,K)=>{if(typeof J==="string")w(J,`agents[${K}]`,q)});if(X.skills)(Array.isArray(X.skills)?X.skills:[X.skills]).forEach((J,K)=>{if(typeof J==="string")w(J,`skills[${K}]`,q)})}let z=x;if(typeof x==="object"&&x!==null){let X=x,Y=Object.keys(X).filter((J)=>Mq.has(J));if(Y.length>0){let J={...X};for(let K of Y)delete J[K],$.push({path:K,message:`Field '${K}' belongs in the marketplace entry (marketplace.json), `+"not plugin.json. It's harmless here but unused — Claude Code "+"ignores it at load time."});z=J}}let G=g().strict().safeParse(z);if(!G.success)q.push(...F(G.error));if(G.success){let X=G.data;if(!/^[a-z0-9]+(-[a-z0-9]+)*$/.test(X.name))$.push({path:"name",message:`Plugin name "${X.name}" is not kebab-case. Claude Code accepts it, but the Claude.ai marketplace sync requires kebab-case (lowercase letters, digits, and hyphens only, e.g., "my-plugin").`});if(!X.version)$.push({path:"version",message:'No version specified. Consider adding a version following semver (e.g., "1.0.0")'});if(!X.description)$.push({path:"description",message:"No description provided. Adding a description helps users understand what your plugin does"});if(!X.author)$.push({path:"author",message:"No author information provided. Consider adding author details for plugin attribution"})}return{success:q.length===0,errors:q,warnings:$,filePath:Q,fileType:"plugin"}}async function k(Z){let q=[],$=[],Q=H.resolve(Z),B;try{B=await A(Q,{encoding:"utf-8"})}catch(X){let Y=O(X),J;if(Y==="ENOENT")J=`File not found: ${Q}`;else if(Y==="EISDIR")J=`Path is not a file: ${Q}`;else J=`Failed to read file: ${W(X)}`;return{success:!1,errors:[{path:"file",message:J,code:Y}],warnings:[],filePath:Q,fileType:"marketplace"}}let x;try{x=v(B)}catch(X){return{success:!1,errors:[{path:"json",message:`Invalid JSON syntax: ${W(X)}`}],warnings:[],filePath:Q,fileType:"marketplace"}}if(x&&typeof x==="object"){let X=x;if(Array.isArray(X.plugins))X.plugins.forEach((Y,J)=>{if(Y&&typeof Y==="object"&&"source"in Y){let K=Y.source;if(typeof K==="string")w(K,`plugins[${J}].source`,q,Nq(K));if(K&&typeof K==="object"&&"path"in K&&typeof K.path==="string")w(K.path,`plugins[${J}].source.path`,q)}})}let G=n().extend({plugins:d.array(h().strict())}).strict().safeParse(x);if(!G.success)q.push(...F(G.error));if(G.success){let X=G.data;if(!X.plugins||X.plugins.length===0)$.push({path:"plugins",message:"Marketplace has no plugins defined"});if(X.plugins){X.plugins.forEach((K,U)=>{if(X.plugins.filter((R)=>R.name===K.name).length>1)q.push({path:`plugins[${U}].name`,message:`Duplicate plugin name "${K.name}" found in marketplace`})});let Y=H.dirname(Q),J=H.basename(Y)===".claude-plugin"?H.dirname(Y):Y;for(let[K,U]of X.plugins.entries()){if(!U.version||typeof U.source!=="string"||!U.source.startsWith("./"))continue;let T=H.join(J,U.source,".claude-plugin","plugin.json"),R;try{let s=await A(T,{encoding:"utf-8"}),b=v(s);if(typeof b.version==="string")R=b.version}catch{continue}if(R&&R!==U.version)$.push({path:`plugins[${K}].version`,message:`Entry declares version "${U.version}" but ${U.source}/.claude-plugin/plugin.json says "${R}". `+"At install time, plugin.json wins (calculatePluginVersion precedence) — the entry version is silently ignored. "+`Update this entry to "${R}" to match.`})}}if(!X.metadata?.description)$.push({path:"metadata.description",message:"No marketplace description provided. Adding a description helps users understand what this marketplace offers"})}return{success:q.length===0,errors:q,warnings:$,filePath:Q,fileType:"marketplace"}}function _q(Z,q,$){let Q=[],B=[],x=q.match(i);if(!x)return B.push({path:"frontmatter",message:"No frontmatter block found. Add YAML frontmatter between --- delimiters at the top of the file to set description and other metadata."}),{success:!0,errors:Q,warnings:B,filePath:Z,fileType:$};let z=x[1]||"",G;try{G=l(z)}catch(K){return Q.push({path:"frontmatter",message:`YAML frontmatter failed to parse: ${W(K)}. At runtime this ${$} loads with empty metadata (all frontmatter fields silently dropped).`}),{success:!1,errors:Q,warnings:B,filePath:Z,fileType:$}}if(G===null||typeof G!=="object"||Array.isArray(G))return Q.push({path:"frontmatter",message:`Frontmatter must be a YAML mapping (key: value pairs), got ${Array.isArray(G)?"an array":G===null?"null":typeof G}.`}),{success:!1,errors:Q,warnings:B,filePath:Z,fileType:$};let X=G;if(X.description!==void 0){let K=X.description;if(typeof K!=="string"&&typeof K!=="number"&&typeof K!=="boolean"&&K!==null)Q.push({path:"description",message:`description must be a string, got ${Array.isArray(K)?"array":typeof K}. At runtime this value is dropped.`})}else B.push({path:"description",message:`No description in frontmatter. A description helps users and Claude understand when to use this ${$}.`});if(X.name!==void 0&&X.name!==null&&typeof X.name!=="string")Q.push({path:"name",message:`name must be a string, got ${typeof X.name}.`});let Y=X["allowed-tools"];if(Y!==void 0&&Y!==null){if(typeof Y!=="string"&&!Array.isArray(Y))Q.push({path:"allowed-tools",message:`allowed-tools must be a string or array of strings, got ${typeof Y}.`});else if(Array.isArray(Y)&&Y.some((K)=>typeof K!=="string"))Q.push({path:"allowed-tools",message:"allowed-tools array must contain only strings."})}let J=X.shell;if(J!==void 0&&J!==null)if(typeof J!=="string")Q.push({path:"shell",message:`shell must be a string, got ${typeof J}.`});else{let K=J.trim().toLowerCase();if(K!=="bash"&&K!=="powershell")Q.push({path:"shell",message:`shell must be 'bash' or 'powershell', got '${J}'.`})}return{success:Q.length===0,errors:Q,warnings:B,filePath:Z,fileType:$}}async function Lq(Z){let q;try{q=await A(Z,{encoding:"utf-8"})}catch(B){if(O(B)==="ENOENT")return{success:!0,errors:[],warnings:[],filePath:Z,fileType:"hooks"};return{success:!1,errors:[{path:"file",message:`Failed to read file: ${W(B)}`}],warnings:[],filePath:Z,fileType:"hooks"}}let $;try{$=v(q)}catch(B){return{success:!1,errors:[{path:"json",message:`Invalid JSON syntax: ${W(B)}. At runtime this breaks the entire plugin load.`}],warnings:[],filePath:Z,fileType:"hooks"}}let Q=u().safeParse($);if(!Q.success)return{success:!1,errors:F(Q.error),warnings:[],filePath:Z,fileType:"hooks"};return{success:!0,errors:[],warnings:[],filePath:Z,fileType:"hooks"}}async function o(Z,q){let $;try{$=await Iq(Z,{withFileTypes:!0})}catch(B){let x=O(B);if(x==="ENOENT"||x==="ENOTDIR")return[];throw B}if(q)return $.filter((B)=>B.isDirectory()).map((B)=>H.join(Z,B.name,"SKILL.md"));let Q=[];for(let B of $){let x=H.join(Z,B.name);if(B.isDirectory())Q.push(...await o(x,!1));else if(B.isFile()&&B.name.toLowerCase().endsWith(".md"))Q.push(x)}return Q}async function QQ(Z){let q=[],$=[["skill",H.join(Z,"skills")],["agent",H.join(Z,"agents")],["command",H.join(Z,"commands")]];for(let[B,x]of $){let z=await o(x,B==="skill");for(let G of z){let X;try{X=await A(G,{encoding:"utf-8"})}catch(J){if(C(J))continue;q.push({success:!1,errors:[{path:"file",message:`Failed to read: ${W(J)}`}],warnings:[],filePath:G,fileType:B});continue}let Y=_q(G,X,B);if(Y.errors.length>0||Y.warnings.length>0)q.push(Y)}}let Q=await Lq(H.join(Z,"hooks","hooks.json"));if(Q.errors.length>0||Q.warnings.length>0)q.push(Q);return q}async function XQ(Z){let q=H.resolve(Z),$=null;try{$=await wq(q)}catch(B){if(!C(B))throw B}if($?.isDirectory()){let B=H.join(q,".claude-plugin","marketplace.json"),x=await k(B);if(x.errors[0]?.code!=="ENOENT")return x;let z=H.join(q,".claude-plugin","plugin.json"),G=await j(z);if(G.errors[0]?.code!=="ENOENT")return G;return{success:!1,errors:[{path:"directory",message:"No manifest found in directory. Expected .claude-plugin/marketplace.json or .claude-plugin/plugin.json"}],warnings:[],filePath:q,fileType:"plugin"}}switch(Eq(Z)){case"plugin":return j(Z);case"marketplace":return k(Z);case"unknown":{try{let B=await A(q,{encoding:"utf-8"}),x=v(B);if(Array.isArray(x.plugins))return k(Z)}catch(B){if(O(B)==="ENOENT")return{success:!1,errors:[{path:"file",message:`File not found: ${q}`}],warnings:[],filePath:q,fileType:"plugin"}}return j(Z)}}}var Mq;var Dq=N(()=>{Uq();_();Aq();f();Rq();vq();Mq=new Set(["category","source","tags","strict","id"])});
|
|
2
|
+
export{Fq as qd,r as rd,nq as sd,lq as td,Oq as ud,QQ as vd,XQ as wd,Dq as xd};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{d2 as d,e2 as X,i2 as N}from"./cli-1.0.13-ecv0stcf.mjs";import{Tda as O,Tea as p,Uda as f,qga as B,vea as U,yea as G,yga as y}from"./cli-1.0.13-p1nsb8ay.mjs";import{Fka as b,xka as x}from"./cli-1.0.13-mazxedqg.mjs";import{Ika as H,Vka as E}from"./cli-1.0.13-6b6kn6sd.mjs";import{ooa as w,yqa as P}from"./cli-1.0.13-vwmq6bde.mjs";import{Kra as S,sra as k}from"./cli-1.0.13-696y87my.mjs";import{dsa as M,hsa as R}from"./cli-1.0.13-d9nvpqpw.mjs";import{mkdir as _,readFile as V,writeFile as A}from"fs/promises";import{dirname as L,join as m}from"path";function W(){return m(H(),"cache","changelog.md")}async function Jq(){let J=G();if(!J.cachedChangelog)return;let q=W();try{await _(L(q),{recursive:!0}),await A(q,J.cachedChangelog,{encoding:"utf-8",flag:"wx"})}catch{}U(({cachedChangelog:Y,...z})=>z)}async function C(){if(w())return;if(O())return;let J=await k.get(v);if(J.status===200){let q=J.data;if(q===$)return;let Y=W();await _(L(Y),{recursive:!0}),await A(Y,q,{encoding:"utf-8"}),$=q;let z=Date.now();U((K)=>({...K,changelogLastFetched:z}))}}async function h(){if($!==null)return $;let J=W();try{let q=await V(J,"utf-8");return $=q,q}catch{return $="",""}}function j(){return $??""}function F(J){try{if(!J)return{};let q={},Y=J.split(/^## /gm).slice(1);for(let z of Y){let K=z.trim().split(`
|
|
2
|
+
`);if(K.length===0)continue;let Q=K[0];if(!Q)continue;let Z=Q.split(" - ")[0]?.trim()||"";if(!Z)continue;let D=K.slice(1).filter((I)=>I.trim().startsWith("- ")).map((I)=>I.trim().substring(2).trim()).filter(Boolean);if(D.length>0)q[Z]=D}return q}catch(q){return B(x(q)),{}}}function l(J,q,Y=j()){try{let z=F(Y),K=T.coerce(J),Q=q?T.coerce(q):null;if(!Q||K&&X(K.version,Q.version))return Object.entries(z).filter(([Z])=>!Q||X(Z,Q.version)).sort(([Z],[D])=>X(Z,D)?-1:1).flatMap(([Z,D])=>D).filter(Boolean).slice(0,u)}catch(z){return B(x(z)),[]}return[]}function Kq(J=j()){try{let q=F(J);return Object.keys(q).sort((z,K)=>X(z,K)?1:-1).map((z)=>{let K=q[z];if(!K||K.length===0)return null;let Q=K.filter(Boolean);if(Q.length===0)return null;return[z,Q]}).filter((z)=>z!==null)}catch(q){return B(x(q)),[]}}async function Qq(J,q="99.0.0"){let Y=await h();if(J!==q||!Y)C().catch((Q)=>B(x(Q)));let z=l(q,J,Y);return{hasReleaseNotes:z.length>0,releaseNotes:z}}var T,u=5,zq="https://github.com/anthropics/claude-code/blob/main/CHANGELOG.md",v="https://raw.githubusercontent.com/anthropics/claude-code/refs/heads/main/CHANGELOG.md",$=null;var g=R(()=>{S();P();p();E();b();y();f();N();T=M(d(),1)});
|
|
3
|
+
export{zq as nf,Jq as of,C as pf,h as qf,Kq as rf,Qq as sf,g as tf};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import{csa as Z}from"./cli-1.0.13-tfd5mr15.mjs";import{fsa as Y,isa as O}from"./cli-1.0.13-d9nvpqpw.mjs";var ye=Y((he)=>{var R=O("node:https"),$=Z(),z=O("node:stream"),D=O("node:http2");function H(e){let t=e&&typeof e==="object"&&"reason"in e?e.reason:void 0;if(t){if(t instanceof Error){let s=Error("Request aborted");return s.name="AbortError",s.cause=t,s}let o=Error(String(t));return o.name="AbortError",o}let n=Error("Request aborted");return n.name="AbortError",n}var ee=["ECONNRESET","EPIPE","ETIMEDOUT"],Q=(e)=>{let t={};for(let n in e){let o=e[n];t[n]=Array.isArray(o)?o.join(","):o}return t},d={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:(e)=>clearTimeout(e)},F=1000,te=(e,t,n=0)=>{if(!n)return-1;let o=(s)=>{let r=d.setTimeout(()=>{e.destroy(),t(Object.assign(Error(`@smithy/node-http-handler - the request socket did not establish a connection with the server within the configured timeout of ${n} ms.`),{name:"TimeoutError"}))},n-s),c=(u)=>{if(u?.connecting)u.on("connect",()=>{d.clearTimeout(r)});else d.clearTimeout(r)};if(e.socket)c(e.socket);else e.on("socket",c)};if(n<2000)return o(0),0;return d.setTimeout(o.bind(null,F),F)},oe=(e,t,n=0,o,s)=>{if(n)return d.setTimeout(()=>{let r=`@smithy/node-http-handler - [${o?"ERROR":"WARN"}] a request has exceeded the configured ${n} ms requestTimeout.`;if(o){let c=Object.assign(Error(r),{name:"TimeoutError",code:"ETIMEDOUT"});e.destroy(c),t(c)}else r+=" Init client requestHandler with throwOnRequestTimeout=true to turn this into an error.",s?.warn?.(r)},n);return-1},ne=3000,se=(e,{keepAlive:t,keepAliveMsecs:n},o=ne)=>{if(t!==!0)return-1;let s=()=>{if(e.socket)e.socket.setKeepAlive(t,n||0);else e.on("socket",(r)=>{r.setKeepAlive(t,n||0)})};if(o===0)return s(),0;return d.setTimeout(s,o)},W=3000,re=(e,t,n=0)=>{let o=(s)=>{let r=n-s,c=()=>{e.destroy(),t(Object.assign(Error(`@smithy/node-http-handler - the request socket timed out after ${n} ms of inactivity (configured by client requestHandler).`),{name:"TimeoutError"}))};if(e.socket)e.socket.setTimeout(r,c),e.on("close",()=>e.socket?.removeListener("timeout",c));else e.setTimeout(r,c)};if(0<n&&n<6000)return o(0),0;return d.setTimeout(o.bind(null,n===0?0:W),W)},j=6000;async function V(e,t,n=j,o=!1){let s=t.headers,r=s?s.Expect||s.expect:void 0,c=-1,u=!0;if(!o&&r==="100-continue")u=await Promise.race([new Promise((f)=>{c=Number(d.setTimeout(()=>f(!0),Math.max(j,n)))}),new Promise((f)=>{e.on("continue",()=>{d.clearTimeout(c),f(!0)}),e.on("response",()=>{d.clearTimeout(c),f(!1)}),e.on("error",()=>{d.clearTimeout(c),f(!1)})})]);if(u)ie(e,t.body)}function ie(e,t){if(t instanceof z.Readable){t.pipe(e);return}if(t){let n=Buffer.isBuffer(t);if(n||typeof t==="string"){if(n&&t.byteLength===0)e.end();else e.end(t);return}let s=t;if(typeof s==="object"&&s.buffer&&typeof s.byteOffset==="number"&&typeof s.byteLength==="number"){e.end(Buffer.from(s.buffer,s.byteOffset,s.byteLength));return}e.end(Buffer.from(t));return}e.end()}var ce=0,_=void 0,q=void 0;class I{config;configProvider;socketWarningTimestamp=0;externalAgent=!1;metadata={handlerProtocol:"http/1.1"};static create(e){if(typeof e?.handle==="function")return e;return new I(e)}static checkSocketUsage(e,t,n=console){let{sockets:o,requests:s,maxSockets:r}=e;if(typeof r!=="number"||r===1/0)return t;let c=15000;if(Date.now()-c<t)return t;if(o&&s)for(let u in o){let f=o[u]?.length??0,l=s[u]?.length??0;if(f>=r&&l>=2*r)return n?.warn?.(`@smithy/node-http-handler:WARN - socket usage at capacity=${f} and ${l} additional requests are enqueued.
|
|
2
|
+
See https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/node-configuring-maxsockets.html
|
|
3
|
+
or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler config.`),Date.now()}return t}constructor(e){this.configProvider=new Promise((t,n)=>{if(typeof e==="function")e().then((o)=>{t(this.resolveDefaultConfig(o))}).catch(n);else t(this.resolveDefaultConfig(e))})}destroy(){this.config?.httpAgent?.destroy(),this.config?.httpsAgent?.destroy()}async handle(e,{abortSignal:t,requestTimeout:n}={}){if(!this.config)this.config=await this.configProvider;let o=this.config,s=e.protocol==="https:";if(!s&&!this.config.httpAgent)this.config.httpAgent=await this.config.httpAgentProvider();return new Promise((r,c)=>{let u=void 0,f=-1,l=-1,m=-1,y=-1,A=-1,b=()=>{d.clearTimeout(f),d.clearTimeout(l),d.clearTimeout(m),d.clearTimeout(y),d.clearTimeout(A)},U=async(i)=>{await u,b(),r(i)},p=async(i)=>{await u,b(),c(i)};if(t?.aborted){let i=H(t);p(i);return}let x=e.headers,M=x?(x.Expect??x.expect)==="100-continue":!1,C=s?o.httpsAgent:o.httpAgent;if(M&&!this.externalAgent)C=new(s?R.Agent:_)({keepAlive:!1,maxSockets:1/0});f=d.setTimeout(()=>{this.socketWarningTimestamp=I.checkSocketUsage(C,this.socketWarningTimestamp,o.logger)},o.socketAcquisitionWarningTimeout??(o.requestTimeout??2000)+(o.connectionTimeout??1000));let P=e.query?$.buildQueryString(e.query):"",S=void 0;if(e.username!=null||e.password!=null){let i=e.username??"",a=e.password??"";S=`${i}:${a}`}let w=e.path;if(P)w+=`?${P}`;if(e.fragment)w+=`#${e.fragment}`;let T=e.hostname??"";if(T[0]==="["&&T.endsWith("]"))T=e.hostname.slice(1,-1);else T=e.hostname;let v={headers:e.headers,host:T,method:e.method,path:w,port:e.port,agent:C,auth:S},h=(s?R.request:q)(v,(i)=>{let a=new $.HttpResponse({statusCode:i.statusCode||-1,reason:i.statusMessage,headers:Q(i.headers),body:i});U({response:a})});if(h.on("error",(i)=>{if(ee.includes(i.code))p(Object.assign(i,{name:"TimeoutError"}));else p(i)}),t){let i=()=>{h.destroy();let a=H(t);p(a)};if(typeof t.addEventListener==="function"){let a=t;a.addEventListener("abort",i,{once:!0}),h.once("close",()=>a.removeEventListener("abort",i))}else t.onabort=i}let k=n??o.requestTimeout;l=te(h,p,o.connectionTimeout),m=oe(h,p,k,o.throwOnRequestTimeout,o.logger??console),y=re(h,p,o.socketTimeout);let E=v.agent;if(typeof E==="object"&&"keepAlive"in E)A=se(h,{keepAlive:E.keepAlive,keepAliveMsecs:E.keepAliveMsecs});u=V(h,e,k,this.externalAgent).catch((i)=>{return b(),c(i)})})}updateHttpClientConfig(e,t){this.config=void 0,this.configProvider=this.configProvider.then((n)=>{return{...n,[e]:t}})}httpHandlerConfigs(){return this.config??{}}resolveDefaultConfig(e){let{requestTimeout:t,connectionTimeout:n,socketTimeout:o,socketAcquisitionWarningTimeout:s,httpAgent:r,httpsAgent:c,throwOnRequestTimeout:u,logger:f}=e||{},l=!0,m=50;return{connectionTimeout:n,requestTimeout:t,socketTimeout:o,socketAcquisitionWarningTimeout:s,throwOnRequestTimeout:u,httpAgentProvider:async()=>{let{Agent:y,request:A}=await import("node:http");if(q=A,_=y,r instanceof _||typeof r?.destroy==="function")return this.externalAgent=!0,r;return new _({keepAlive:!0,maxSockets:50,...r})},httpsAgent:(()=>{if(c instanceof R.Agent||typeof c?.destroy==="function")return this.externalAgent=!0,c;return new R.Agent({keepAlive:!0,maxSockets:50,...c})})(),logger:f}}}var ae=new Uint16Array(1);class L{id=ae[0]++;total=0;max=0;session;refs=0;constructor(e){e.unref(),this.session=e}retain(){if(this.session.destroyed)throw Error("@smithy/node-http-handler - cannot acquire reference to destroyed session.");this.refs+=1,this.total+=1,this.max=Math.max(this.refs,this.max),this.session.ref()}free(){if(this.session.destroyed)return;if(this.refs-=1,this.refs===0)this.session.unref();if(this.refs<0)throw Error("@smithy/node-http-handler - ClientHttp2Session refcount at zero, cannot decrement.")}deref(){return this.session}close(){if(!this.session.closed)this.session.close()}destroy(){if(this.refs=0,!this.session.destroyed)this.session.destroy()}useCount(){return this.refs}}class K{sessions=[];maxConcurrency=0;constructor(e){this.sessions=(e??[]).map((t)=>new L(t))}poll(){let e=!1;for(let t of this.sessions){if(t.deref().destroyed){e=!0;continue}if(!this.maxConcurrency||t.useCount()<this.maxConcurrency)return t}if(e){for(let t of this.sessions)if(t.deref().destroyed)this.remove(t)}}offerLast(e){this.sessions.push(e)}remove(e){let t=this.sessions.indexOf(e);if(t>-1)this.sessions.splice(t,1)}[Symbol.iterator](){return this.sessions[Symbol.iterator]()}setMaxConcurrency(e){this.maxConcurrency=e}destroy(e){this.remove(e),e.destroy()}}class J{config;connectOptions;connectionPools=new Map;constructor(e){if(this.config=e,this.config.maxConcurrency&&this.config.maxConcurrency<=0)throw RangeError("maxConcurrency must be greater than zero.")}lease(e,t){let n=this.getUrlString(e),o=this.getPool(n);if(!this.config.disableConcurrency&&!t.isEventStream){let f=o.poll();if(f)return f.retain(),f}let s=new L(this.connect(n)),r=s.deref();if(this.config.maxConcurrency)r.settings({maxConcurrentStreams:this.config.maxConcurrency},(f)=>{if(f)throw Error("Fail to set maxConcurrentStreams to "+this.config.maxConcurrency+"when creating new session for "+e.destination.toString())});let c=()=>{this.removeFromPoolAndClose(n,s)},u=()=>{this.removeFromPoolAndCheckedDestroy(n,s)};if(r.on("goaway",c),r.on("error",u),r.on("frameError",u),r.on("close",u),t.requestTimeout)r.setTimeout(t.requestTimeout,u);return o.offerLast(s),s.retain(),s}release(e,t){t.free()}createIsolatedSession(e,t){let n=this.getUrlString(e),o=new L(this.connect(n)),s=o.deref();s.settings({maxConcurrentStreams:1});let r=()=>{o.destroy()};if(s.on("error",r),s.on("frameError",r),s.on("close",r),t.requestTimeout)s.setTimeout(t.requestTimeout,r);return o.retain(),o}destroy(){for(let[e,t]of this.connectionPools){for(let n of[...t])n.destroy();this.connectionPools.delete(e)}}setMaxConcurrentStreams(e){if(e&&e<=0)throw RangeError("maxConcurrentStreams must be greater than zero.");this.config.maxConcurrency=e;for(let t of this.connectionPools.values())t.setMaxConcurrency(e)}setDisableConcurrentStreams(e){this.config.disableConcurrency=e}setNodeHttp2ConnectOptions(e){this.connectOptions=e}debug(){let e={};for(let[t,n]of this.connectionPools){let o=[];for(let s of n)o.push({id:s.id,active:s.useCount(),maxConcurrent:s.max,totalRequests:s.total});e[t]={sessions:o}}return e}removeFromPoolAndClose(e,t){this.connectionPools.get(e)?.remove(t),t.close()}removeFromPoolAndCheckedDestroy(e,t){this.connectionPools.get(e)?.remove(t),t.destroy()}getPool(e){if(!this.connectionPools.has(e)){let t=new K;if(this.config.maxConcurrency)t.setMaxConcurrency(this.config.maxConcurrency);this.connectionPools.set(e,t)}return this.connectionPools.get(e)}getUrlString(e){return e.destination.toString()}connect(e){return this.connectOptions===void 0?D.connect(e):D.connect(e,this.connectOptions)}}class B{config;configProvider;metadata={handlerProtocol:"h2"};connectionManager=new J({});static create(e){if(typeof e?.handle==="function")return e;return new B(e)}constructor(e){this.configProvider=new Promise((t,n)=>{if(typeof e==="function")e().then((o)=>{t(o||{})}).catch(n);else t(e||{})})}destroy(){this.connectionManager.destroy()}async handle(e,{abortSignal:t,requestTimeout:n,isEventStream:o}={}){if(!this.config){this.config=await this.configProvider;let{disableConcurrentStreams:f,maxConcurrentStreams:l,nodeHttp2ConnectOptions:m}=this.config;if(this.connectionManager.setDisableConcurrentStreams(f??!1),l)this.connectionManager.setMaxConcurrentStreams(l);if(m)this.connectionManager.setNodeHttp2ConnectOptions(m)}let{requestTimeout:s,disableConcurrentStreams:r}=this.config,c=r||o,u=n??s;return new Promise((f,l)=>{let m=!1,y=void 0,A=async(a)=>{await y,f(a)},b=async(a)=>{await y,l(a)};if(t?.aborted){m=!0;let a=H(t);b(a);return}let{hostname:U,method:p,port:x,protocol:M,query:C}=e,P="";if(e.username!=null||e.password!=null){let a=e.username??"",g=e.password??"";P=`${a}:${g}@`}let S=`${M}//${P}${U}${x?`:${x}`:""}`,w={destination:new URL(S)},T={requestTimeout:this.config?.sessionTimeout,isEventStream:o},v=c?this.connectionManager.createIsolatedSession(w,T):this.connectionManager.lease(w,T),N=v.deref(),h=(a)=>{if(c)v.destroy();m=!0,b(a)},k=C?$.buildQueryString(C):"",E=e.path;if(k)E+=`?${k}`;if(e.fragment)E+=`#${e.fragment}`;let i=N.request({...e.headers,[D.constants.HTTP2_HEADER_PATH]:E,[D.constants.HTTP2_HEADER_METHOD]:p});if(u)i.setTimeout(u,()=>{i.close();let a=Error(`Stream timed out because of no activity for ${u} ms`);a.name="TimeoutError",h(a)});if(t){let a=()=>{i.close();let g=H(t);h(g)};if(typeof t.addEventListener==="function"){let g=t;g.addEventListener("abort",a,{once:!0}),i.once("close",()=>g.removeEventListener("abort",a))}else t.onabort=a}i.on("frameError",(a,g,X)=>{h(Error(`Frame type id ${a} in stream id ${X} has failed with code ${g}.`))}),i.on("error",h),i.on("aborted",()=>{h(Error(`HTTP/2 stream is abnormally aborted in mid-communication with result code ${i.rstCode}.`))}),i.on("response",(a)=>{let g=new $.HttpResponse({statusCode:a[":status"]??-1,headers:Q(a),body:i});if(m=!0,A({response:g}),c)N.close()}),i.on("close",()=>{if(c)v.destroy();else this.connectionManager.release(w,v);if(!m)h(Error("Unexpected error: http2 request did not get a response"))}),y=V(i,e,u)})}updateHttpClientConfig(e,t){this.config=void 0,this.configProvider=this.configProvider.then((n)=>{return{...n,[e]:t}})}httpHandlerConfigs(){return this.config??{}}}class G extends z.Writable{bufferedBytes=[];_write(e,t,n){this.bufferedBytes.push(e),n()}}var ue=(e)=>{if(fe(e))return de(e);return new Promise((t,n)=>{let o=new G;e.pipe(o),e.on("error",(s)=>{o.end(),n(s)}),o.on("error",n),o.on("finish",function(){let s=new Uint8Array(Buffer.concat(this.bufferedBytes));t(s)})})},fe=(e)=>typeof ReadableStream==="function"&&e instanceof ReadableStream;async function de(e){let t=[],n=e.getReader(),o=!1,s=0;while(!o){let{done:u,value:f}=await n.read();if(f)t.push(f),s+=f.length;o=u}let r=new Uint8Array(s),c=0;for(let u of t)r.set(u,c),c+=u.length;return r}he.DEFAULT_REQUEST_TIMEOUT=ce;he.NodeHttp2Handler=B;he.NodeHttpHandler=I;he.streamCollector=ue});
|
|
4
|
+
export{ye as Xra};
|