@claudiolabs/claudin 0.5.7 → 0.5.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/AgentTool-0.5.8-161prcqd.mjs +1 -0
- package/dist/chunks/App-0.5.8-s4939y9q.mjs +1 -0
- package/dist/chunks/ApproveApiKey-0.5.8-kyzt3tyh.mjs +1 -0
- package/dist/chunks/AssistantSessionChooser-0.5.8-0fws1s48.mjs +1 -0
- package/dist/chunks/AutoModeOptInDialog-0.5.8-v373fzha.mjs +1 -0
- package/dist/chunks/BypassPermissionsModeDialog-0.5.8-pbv15kg8.mjs +1 -0
- package/dist/chunks/ClaudeMdExternalIncludesDialog-0.5.8-rmcm4b5v.mjs +1 -0
- package/dist/chunks/ConsoleOAuthFlow-0.5.8-q3djee4h.mjs +1 -0
- package/dist/chunks/DiffDialog-0.5.8-1gvdqrt3.mjs +3 -0
- package/dist/chunks/Doctor-0.5.8-5k5vqf8q.mjs +1 -0
- package/dist/chunks/Grove-0.5.8-g2xzefay.mjs +1 -0
- package/dist/chunks/ITermBackend-0.5.8-j209yx9z.mjs +1 -0
- package/dist/chunks/InvalidConfigDialog-0.5.8-98nc303h.mjs +1 -0
- package/dist/chunks/InvalidSettingsDialog-0.5.8-p5qzw710.mjs +1 -0
- package/dist/chunks/MigrationDialog-0.5.8-gp57r21r.mjs +1 -0
- package/dist/chunks/Onboarding-0.5.8-m0r6a4s2.mjs +1 -0
- package/dist/chunks/ProviderManager-0.5.8-6tfnxyse.mjs +1 -0
- package/dist/chunks/REPL-0.5.8-sf0q46pa.mjs +1 -0
- package/dist/chunks/ResumeConversation-0.5.8-0j8mw0eh.mjs +1 -0
- package/dist/chunks/SnapshotUpdateDialog-0.5.8-13b725ee.mjs +1 -0
- package/dist/chunks/TeleportProgress-0.5.8-3fxrymde.mjs +1 -0
- package/dist/chunks/TeleportRepoMismatchDialog-0.5.8-1dqx0hnb.mjs +1 -0
- package/dist/chunks/TeleportResumeWrapper-0.5.8-84pek3s7.mjs +1 -0
- package/dist/chunks/TmuxBackend-0.5.8-rcwm1j6z.mjs +9 -0
- package/dist/chunks/ToolSearchTool-0.5.8-fp493kvp.mjs +1 -0
- package/dist/chunks/TrustDialog-0.5.8-j0h8y92c.mjs +1 -0
- package/dist/chunks/activeProvider-0.5.8-y1zsxh1g.mjs +1 -0
- package/dist/chunks/add-dir-0.5.8-sz3kyvkz.mjs +1 -0
- package/dist/chunks/agents-0.5.8-cm3hzc60.mjs +3 -0
- package/dist/chunks/agents-0.5.8-qg1s69va.mjs +110 -0
- package/dist/chunks/api-0.5.8-pcde65dc.mjs +1 -0
- package/dist/chunks/asciicast-0.5.8-tgmb7g4m.mjs +1 -0
- package/dist/chunks/assistant-0.5.8-4mak6nq9.mjs +1 -0
- package/dist/chunks/auth-0.5.8-70ks8nc4.mjs +1 -0
- package/dist/chunks/auth-0.5.8-82vx5hkw.mjs +1 -0
- package/dist/chunks/autoMode-0.5.8-xjwjh2k5.mjs +48 -0
- package/dist/chunks/autoUpdater-0.5.8-rf164ggm.mjs +1 -0
- package/dist/chunks/backgroundHousekeeping-0.5.8-ak5ca2cx.mjs +1 -0
- package/dist/chunks/branch-0.5.8-n82xbsmg.mjs +4 -0
- package/dist/chunks/bridgePointer-0.5.8-m7nwe7sd.mjs +1 -0
- package/dist/chunks/btw-0.5.8-0yftty6m.mjs +1 -0
- package/dist/chunks/buddy-0.5.8-4dvkprbs.mjs +3 -0
- package/dist/chunks/cacache-0.5.8-vj95fs26.mjs +1 -0
- package/dist/chunks/cache-probe-0.5.8-944hef3p.mjs +21 -0
- package/dist/chunks/cacheStats-0.5.8-jdya51jg.mjs +4 -0
- package/dist/chunks/caches-0.5.8-xkrjxp25.mjs +1 -0
- package/dist/chunks/claudeDesktop-0.5.8-fpb40wzd.mjs +1 -0
- package/dist/chunks/claudemd-0.5.8-eyztrzk8.mjs +1 -0
- package/dist/chunks/clear-0.5.8-kgvzdkgq.mjs +1 -0
- package/dist/chunks/clearTerminal-0.5.8-xv1faw7c.mjs +1 -0
- package/dist/chunks/cli-0.5.8-01yjahnz.mjs +2 -0
- package/dist/chunks/cli-0.5.8-07dyymev.mjs +2 -0
- package/dist/chunks/cli-0.5.8-0a4sdrgm.mjs +2 -0
- package/dist/chunks/cli-0.5.8-0bys4xae.mjs +2 -0
- package/dist/chunks/cli-0.5.8-0cmtavcs.mjs +2 -0
- package/dist/chunks/cli-0.5.8-0dkx0fh2.mjs +2 -0
- package/dist/chunks/cli-0.5.8-0hybhk72.mjs +2 -0
- package/dist/chunks/cli-0.5.8-0we2hm7d.mjs +2 -0
- package/dist/chunks/cli-0.5.8-1bp61y3p.mjs +2 -0
- package/dist/chunks/cli-0.5.8-1gm5vdye.mjs +2 -0
- package/dist/chunks/cli-0.5.8-1heha1zs.mjs +2 -0
- package/dist/chunks/cli-0.5.8-1x4w18nq.mjs +2 -0
- package/dist/chunks/cli-0.5.8-20gjzt7v.mjs +2 -0
- package/dist/chunks/cli-0.5.8-221e7v67.mjs +2 -0
- package/dist/chunks/cli-0.5.8-23ep6z70.mjs +2 -0
- package/dist/chunks/cli-0.5.8-2bq72da9.mjs +2 -0
- package/dist/chunks/cli-0.5.8-2f1ewq8w.mjs +2 -0
- package/dist/chunks/cli-0.5.8-2g8p9sae.mjs +2 -0
- package/dist/chunks/cli-0.5.8-2nr7eh5e.mjs +2 -0
- package/dist/chunks/cli-0.5.8-396k3ymm.mjs +25 -0
- package/dist/chunks/cli-0.5.8-3a6g7wmx.mjs +58 -0
- package/dist/chunks/cli-0.5.8-3fnpjffd.mjs +2 -0
- package/dist/chunks/cli-0.5.8-3ndh3gtc.mjs +2 -0
- package/dist/chunks/cli-0.5.8-3p5h46hv.mjs +2 -0
- package/dist/chunks/cli-0.5.8-3qjtx8w8.mjs +2 -0
- package/dist/chunks/cli-0.5.8-3y8x0dx3.mjs +2 -0
- package/dist/chunks/cli-0.5.8-3zg1gkde.mjs +2 -0
- package/dist/chunks/cli-0.5.8-402vctdy.mjs +2 -0
- package/dist/chunks/cli-0.5.8-42eyjvs8.mjs +2 -0
- package/dist/chunks/cli-0.5.8-4hvxb5dp.mjs +5286 -0
- package/dist/chunks/cli-0.5.8-4jrb4x7b.mjs +9 -0
- package/dist/chunks/cli-0.5.8-4mn881k7.mjs +2 -0
- package/dist/chunks/cli-0.5.8-4n26wzd5.mjs +2 -0
- package/dist/chunks/cli-0.5.8-4rgg1zqd.mjs +6 -0
- package/dist/chunks/cli-0.5.8-4xn4yjaa.mjs +8 -0
- package/dist/chunks/cli-0.5.8-4yyy85fr.mjs +2 -0
- package/dist/chunks/cli-0.5.8-510vqc09.mjs +4 -0
- package/dist/chunks/cli-0.5.8-57qan5v8.mjs +2 -0
- package/dist/chunks/cli-0.5.8-5a9k7mja.mjs +2 -0
- package/dist/chunks/cli-0.5.8-5bdfv4z2.mjs +2 -0
- package/dist/chunks/cli-0.5.8-5gzkph9c.mjs +2 -0
- package/dist/chunks/cli-0.5.8-5h92528m.mjs +4 -0
- package/dist/chunks/cli-0.5.8-5zqpfyqq.mjs +2 -0
- package/dist/chunks/cli-0.5.8-60e57smp.mjs +2 -0
- package/dist/chunks/cli-0.5.8-665mfjfq.mjs +5 -0
- package/dist/chunks/cli-0.5.8-69frkjjq.mjs +2 -0
- package/dist/chunks/cli-0.5.8-69swpyae.mjs +2 -0
- package/dist/chunks/cli-0.5.8-6epmns99.mjs +2 -0
- package/dist/chunks/cli-0.5.8-6nc6hmng.mjs +3 -0
- package/dist/chunks/cli-0.5.8-6t480jt6.mjs +2 -0
- package/dist/chunks/cli-0.5.8-6tfvmmwd.mjs +2 -0
- package/dist/chunks/cli-0.5.8-78y711gq.mjs +7 -0
- package/dist/chunks/cli-0.5.8-7fm71y20.mjs +2 -0
- package/dist/chunks/cli-0.5.8-7t6q11qp.mjs +3 -0
- package/dist/chunks/cli-0.5.8-7teqphwt.mjs +2 -0
- package/dist/chunks/cli-0.5.8-7w4sv41z.mjs +2 -0
- package/dist/chunks/cli-0.5.8-7wzh55d5.mjs +2 -0
- package/dist/chunks/cli-0.5.8-8b40nd32.mjs +3 -0
- package/dist/chunks/cli-0.5.8-8c0hade9.mjs +2 -0
- package/dist/chunks/cli-0.5.8-8h4z9e0a.mjs +2 -0
- package/dist/chunks/cli-0.5.8-8jfx4hd4.mjs +24 -0
- package/dist/chunks/cli-0.5.8-8jzc3wsz.mjs +2 -0
- package/dist/chunks/cli-0.5.8-8n05q2cg.mjs +4 -0
- package/dist/chunks/cli-0.5.8-903jgg2t.mjs +2 -0
- package/dist/chunks/cli-0.5.8-959n5v33.mjs +44 -0
- package/dist/chunks/cli-0.5.8-96p83b7z.mjs +2 -0
- package/dist/chunks/cli-0.5.8-99pnpzq7.mjs +2 -0
- package/dist/chunks/cli-0.5.8-9ffdsmw1.mjs +2 -0
- package/dist/chunks/cli-0.5.8-9fpm1ms3.mjs +2 -0
- package/dist/chunks/cli-0.5.8-9jzc13yp.mjs +2 -0
- package/dist/chunks/cli-0.5.8-a03sqccb.mjs +2 -0
- package/dist/chunks/cli-0.5.8-at01jfw3.mjs +2 -0
- package/dist/chunks/cli-0.5.8-axp2p1sa.mjs +2 -0
- package/dist/chunks/cli-0.5.8-bfynw1rm.mjs +2 -0
- package/dist/chunks/cli-0.5.8-bhc8vwxd.mjs +2 -0
- package/dist/chunks/cli-0.5.8-bjqx8j31.mjs +67 -0
- package/dist/chunks/cli-0.5.8-bnqvgx16.mjs +18 -0
- package/dist/chunks/cli-0.5.8-brnwv1s4.mjs +2 -0
- package/dist/chunks/cli-0.5.8-bv6qegpr.mjs +2 -0
- package/dist/chunks/cli-0.5.8-bv8mzvsr.mjs +2 -0
- package/dist/chunks/cli-0.5.8-bwsasv3j.mjs +12 -0
- package/dist/chunks/cli-0.5.8-cc6m9nm7.mjs +2 -0
- package/dist/chunks/cli-0.5.8-cctz1t07.mjs +2 -0
- package/dist/chunks/cli-0.5.8-cgt1fvs7.mjs +2 -0
- package/dist/chunks/cli-0.5.8-chb0m9py.mjs +17 -0
- package/dist/chunks/cli-0.5.8-chdp8e1b.mjs +15 -0
- package/dist/chunks/cli-0.5.8-cm551a1y.mjs +2 -0
- package/dist/chunks/cli-0.5.8-cv8hrynt.mjs +2 -0
- package/dist/chunks/cli-0.5.8-d3t3qcax.mjs +2 -0
- package/dist/chunks/cli-0.5.8-dn2c6x2n.mjs +2 -0
- package/dist/chunks/cli-0.5.8-dtn5ax3v.mjs +2 -0
- package/dist/chunks/cli-0.5.8-e5dnz0q6.mjs +2 -0
- package/dist/chunks/cli-0.5.8-e6gpyhnf.mjs +39 -0
- package/dist/chunks/cli-0.5.8-edf7e65a.mjs +2 -0
- package/dist/chunks/cli-0.5.8-eq34z9xf.mjs +133 -0
- package/dist/chunks/cli-0.5.8-erk0zvwn.mjs +3 -0
- package/dist/chunks/cli-0.5.8-et8r95zv.mjs +15 -0
- package/dist/chunks/cli-0.5.8-etf1n11s.mjs +2 -0
- package/dist/chunks/cli-0.5.8-ex39bk3p.mjs +3 -0
- package/dist/chunks/cli-0.5.8-f0cc21nk.mjs +34 -0
- package/dist/chunks/cli-0.5.8-f1znt77k.mjs +2 -0
- package/dist/chunks/cli-0.5.8-f54hhqdn.mjs +4 -0
- package/dist/chunks/cli-0.5.8-fbja9vc0.mjs +2 -0
- package/dist/chunks/cli-0.5.8-fhebd13f.mjs +12 -0
- package/dist/chunks/cli-0.5.8-fmyr9f7x.mjs +18 -0
- package/dist/chunks/cli-0.5.8-fr90cgpy.mjs +4 -0
- package/dist/chunks/cli-0.5.8-gf6svxra.mjs +27 -0
- package/dist/chunks/cli-0.5.8-gm4jqzfs.mjs +2 -0
- package/dist/chunks/cli-0.5.8-gnw67m2e.mjs +3 -0
- package/dist/chunks/cli-0.5.8-gp6x9qmw.mjs +2 -0
- package/dist/chunks/cli-0.5.8-gr2yrqhs.mjs +21 -0
- package/dist/chunks/cli-0.5.8-haddssvq.mjs +17 -0
- package/dist/chunks/cli-0.5.8-he3sfaey.mjs +2 -0
- package/dist/chunks/cli-0.5.8-hkfwdsmy.mjs +2 -0
- package/dist/chunks/cli-0.5.8-hz85a3w7.mjs +2 -0
- package/dist/chunks/cli-0.5.8-j5n54z7y.mjs +2 -0
- package/dist/chunks/cli-0.5.8-j5nn8m2r.mjs +2 -0
- package/dist/chunks/cli-0.5.8-j77twbsq.mjs +2 -0
- package/dist/chunks/cli-0.5.8-jcm5hsqp.mjs +6 -0
- package/dist/chunks/cli-0.5.8-je6yq94p.mjs +2 -0
- package/dist/chunks/cli-0.5.8-jjmb10ns.mjs +10 -0
- package/dist/chunks/cli-0.5.8-jtqyf6nz.mjs +9 -0
- package/dist/chunks/cli-0.5.8-kbjtm14d.mjs +2 -0
- package/dist/chunks/cli-0.5.8-kdatn7ch.mjs +2 -0
- package/dist/chunks/cli-0.5.8-kegk7gdp.mjs +3 -0
- package/dist/chunks/cli-0.5.8-kmzftyt4.mjs +2 -0
- package/dist/chunks/cli-0.5.8-m3186fr3.mjs +5 -0
- package/dist/chunks/cli-0.5.8-m7f68vhz.mjs +2 -0
- package/dist/chunks/cli-0.5.8-m9yn90fe.mjs +4 -0
- package/dist/chunks/cli-0.5.8-mf9m22v5.mjs +2 -0
- package/dist/chunks/cli-0.5.8-mgzx32hk.mjs +3 -0
- package/dist/chunks/cli-0.5.8-ntjmzc72.mjs +4 -0
- package/dist/chunks/cli-0.5.8-nwe7yne9.mjs +59 -0
- package/dist/chunks/cli-0.5.8-p2n1sz9e.mjs +2 -0
- package/dist/chunks/cli-0.5.8-p596xr80.mjs +2 -0
- package/dist/chunks/cli-0.5.8-p72phgsn.mjs +2 -0
- package/dist/chunks/cli-0.5.8-p84q1yp2.mjs +2 -0
- package/dist/chunks/cli-0.5.8-p9vc4jd4.mjs +2 -0
- package/dist/chunks/cli-0.5.8-pbvqqyq3.mjs +133 -0
- package/dist/chunks/cli-0.5.8-pmsd92jp.mjs +2 -0
- package/dist/chunks/cli-0.5.8-ppmhyhcf.mjs +2 -0
- package/dist/chunks/cli-0.5.8-pwcy1yf9.mjs +2 -0
- package/dist/chunks/cli-0.5.8-qdnr3r07.mjs +2 -0
- package/dist/chunks/cli-0.5.8-qf19nfhv.mjs +193 -0
- package/dist/chunks/cli-0.5.8-qgd7he6r.mjs +3 -0
- package/dist/chunks/cli-0.5.8-qrbzvxe2.mjs +2 -0
- package/dist/chunks/cli-0.5.8-qvy0n26p.mjs +2 -0
- package/dist/chunks/cli-0.5.8-r3r9r1x8.mjs +2 -0
- package/dist/chunks/cli-0.5.8-r3zjfgs5.mjs +2 -0
- package/dist/chunks/cli-0.5.8-r88abafr.mjs +15 -0
- package/dist/chunks/cli-0.5.8-rddkqxh8.mjs +16 -0
- package/dist/chunks/cli-0.5.8-rjn66mdx.mjs +4 -0
- package/dist/chunks/cli-0.5.8-rtmc93gs.mjs +2 -0
- package/dist/chunks/cli-0.5.8-rvxqss4v.mjs +12 -0
- package/dist/chunks/cli-0.5.8-s3j6qsck.mjs +3 -0
- package/dist/chunks/cli-0.5.8-s7px34xg.mjs +2 -0
- package/dist/chunks/cli-0.5.8-sbqgh2ca.mjs +2 -0
- package/dist/chunks/cli-0.5.8-t3x9v2fr.mjs +2 -0
- package/dist/chunks/cli-0.5.8-tc6ssmvg.mjs +2 -0
- package/dist/chunks/cli-0.5.8-tknpvwjq.mjs +24 -0
- package/dist/chunks/cli-0.5.8-tp8vvk8a.mjs +4 -0
- package/dist/chunks/cli-0.5.8-v274erpp.mjs +2 -0
- package/dist/chunks/cli-0.5.8-v5gbzf09.mjs +2 -0
- package/dist/chunks/cli-0.5.8-vax2sw0y.mjs +2 -0
- package/dist/chunks/cli-0.5.8-vck50j66.mjs +2 -0
- package/dist/chunks/cli-0.5.8-vhpgdwvb.mjs +45 -0
- package/dist/chunks/cli-0.5.8-w36atn94.mjs +2 -0
- package/dist/chunks/cli-0.5.8-w75qbypx.mjs +2 -0
- package/dist/chunks/cli-0.5.8-w7g735pf.mjs +2 -0
- package/dist/chunks/cli-0.5.8-was67jgw.mjs +2 -0
- package/dist/chunks/cli-0.5.8-wcjp9e8f.mjs +50 -0
- package/dist/chunks/cli-0.5.8-wcyjzsha.mjs +2 -0
- package/dist/chunks/cli-0.5.8-wdyh9mqa.mjs +3 -0
- package/dist/chunks/cli-0.5.8-wkcmqhde.mjs +2 -0
- package/dist/chunks/cli-0.5.8-wm9jby2t.mjs +2 -0
- package/dist/chunks/cli-0.5.8-wtz636rz.mjs +20 -0
- package/dist/chunks/cli-0.5.8-x8fzgqvs.mjs +2 -0
- package/dist/chunks/cli-0.5.8-x9q7q10d.mjs +2 -0
- package/dist/chunks/cli-0.5.8-xs1gy1tk.mjs +6 -0
- package/dist/chunks/cli-0.5.8-xvf56w0z.mjs +2 -0
- package/dist/chunks/cli-0.5.8-xwpp4ts7.mjs +2 -0
- package/dist/chunks/cli-0.5.8-xwzk13b3.mjs +2 -0
- package/dist/chunks/cli-0.5.8-yfpy2mmj.mjs +2 -0
- package/dist/chunks/cli-0.5.8-ywfvs57d.mjs +2 -0
- package/dist/chunks/cli-0.5.8-z14ncgt9.mjs +2 -0
- package/dist/chunks/cli-0.5.8-z3ev1ken.mjs +3 -0
- package/dist/chunks/cli-0.5.8-z447z8t0.mjs +2 -0
- package/dist/chunks/cli-0.5.8-zervw1k3.mjs +5 -0
- package/dist/chunks/cli-0.5.8-zf5yzqn5.mjs +1 -0
- package/dist/chunks/cli-0.5.8-zhydxkm6.mjs +2 -0
- package/dist/chunks/cli-0.5.8-zkn5gecs.mjs +2 -0
- package/dist/chunks/cli-0.5.8-zy590bkh.mjs +2 -0
- package/dist/chunks/client-0.5.8-9axd4w58.mjs +1 -0
- package/dist/chunks/color-0.5.8-resv1z9m.mjs +1 -0
- package/dist/chunks/compact-0.5.8-4rtxsg5x.mjs +3 -0
- package/dist/chunks/config-0.5.8-1j4xyj57.mjs +1 -0
- package/dist/chunks/config-0.5.8-ettscama.mjs +1 -0
- package/dist/chunks/context-0.5.8-fpg3fcmt.mjs +1 -0
- package/dist/chunks/context-noninteractive-0.5.8-zaspwvjm.mjs +1 -0
- package/dist/chunks/conversation-0.5.8-hfvm0eqb.mjs +1 -0
- package/dist/chunks/copy-0.5.8-wzb7pjzr.mjs +9 -0
- package/dist/chunks/cost-0.5.8-f2m9t7ye.mjs +1 -0
- package/dist/chunks/createSSHSession-0.5.8-615sh7tx.mjs +1 -0
- package/dist/chunks/createSession-0.5.8-v7srm5ea.mjs +1 -0
- package/dist/chunks/debug-0.5.8-c84dbamw.mjs +1 -0
- package/dist/chunks/defaultActionDeps-0.5.8-b94dtwtd.mjs +1177 -0
- package/dist/chunks/desktop-0.5.8-46z10hnt.mjs +1 -0
- package/dist/chunks/detectRepository-0.5.8-rwc4rjfg.mjs +1 -0
- package/dist/chunks/detection-0.5.8-hydnvzf4.mjs +1 -0
- package/dist/chunks/diff-0.5.8-p7d54hn7.mjs +1 -0
- package/dist/chunks/doctor-0.5.8-894mdsxc.mjs +1 -0
- package/dist/chunks/doctorDiagnostic-0.5.8-c12xcayk.mjs +1 -0
- package/dist/chunks/earlyInput-0.5.8-fwa1r2va.mjs +1 -0
- package/dist/chunks/effort-0.5.8-7gcwya2k.mjs +10 -0
- package/dist/chunks/envUtils-0.5.8-20c2f8v3.mjs +1 -0
- package/dist/chunks/environmentSelection-0.5.8-t6hzsc8z.mjs +1 -0
- package/dist/chunks/environments-0.5.8-fcp8bfe3.mjs +1 -0
- package/dist/chunks/errors-0.5.8-ev3jqbjj.mjs +1 -0
- package/dist/chunks/exampleCommands-0.5.8-d38qs6k2.mjs +1 -0
- package/dist/chunks/exit-0.5.8-f5v7cstg.mjs +1 -0
- package/dist/chunks/export-0.5.8-a8fg7991.mjs +2 -0
- package/dist/chunks/extra-usage-0.5.8-r5qs5fjk.mjs +1 -0
- package/dist/chunks/extra-usage-noninteractive-0.5.8-f8mch55k.mjs +1 -0
- package/dist/chunks/fast-0.5.8-5yfvbb7d.mjs +1 -0
- package/dist/chunks/feedback-0.5.8-j9xstj5q.mjs +14 -0
- package/dist/chunks/firstPartyEventLogger-0.5.8-tmpw0mgj.mjs +1 -0
- package/dist/chunks/git-0.5.8-vvd1b8x0.mjs +1 -0
- package/dist/chunks/githubModelsCredentials-0.5.8-de9f7e7s.mjs +1 -0
- package/dist/chunks/grove-0.5.8-rewcpbks.mjs +1 -0
- package/dist/chunks/growthbook-0.5.8-tt3wbrct.mjs +1 -0
- package/dist/chunks/headless-0.5.8-h1tn9ee3.mjs +2 -0
- package/dist/chunks/heapdump-0.5.8-e0vshas9.mjs +6 -0
- package/dist/chunks/help-0.5.8-mhhgyvqz.mjs +1 -0
- package/dist/chunks/hookChains-0.5.8-ewzfdp91.mjs +3 -0
- package/dist/chunks/hooks-0.5.8-mgp708m9.mjs +1 -0
- package/dist/chunks/hooks-0.5.8-p1mz2zy1.mjs +79 -0
- package/dist/chunks/ide-0.5.8-pzfhr27w.mjs +3 -0
- package/dist/chunks/image-processor-napi-0.5.8-1skckgt6.mjs +1 -0
- package/dist/chunks/index-0.5.8-0dkn7rr7.mjs +9 -0
- package/dist/chunks/index-0.5.8-26yrjbk0.mjs +1 -0
- package/dist/chunks/index-0.5.8-5cr4y9wx.mjs +1 -0
- package/dist/chunks/index-0.5.8-5mgzpm7c.mjs +1 -0
- package/dist/chunks/index-0.5.8-b4p3af9y.mjs +1 -0
- package/dist/chunks/index-0.5.8-b7tvbbzv.mjs +2 -0
- package/dist/chunks/index-0.5.8-bk6ejev9.mjs +1 -0
- package/dist/chunks/index-0.5.8-cmyhdm8s.mjs +9 -0
- package/dist/chunks/index-0.5.8-egkksjaj.mjs +1 -0
- package/dist/chunks/index-0.5.8-hr8aqgvc.mjs +1 -0
- package/dist/chunks/index-0.5.8-jf20nzsg.mjs +1 -0
- package/dist/chunks/index-0.5.8-m6exk6z6.mjs +30 -0
- package/dist/chunks/index-0.5.8-mpm6xxk3.mjs +5 -0
- package/dist/chunks/index-0.5.8-nt058ay0.mjs +1 -0
- package/dist/chunks/index-0.5.8-qdwcg9cv.mjs +10 -0
- package/dist/chunks/index-0.5.8-rdk757cq.mjs +1 -0
- package/dist/chunks/index-0.5.8-red1reev.mjs +1 -0
- package/dist/chunks/index-0.5.8-rehfpmcw.mjs +1 -0
- package/dist/chunks/index-0.5.8-s3k17n65.mjs +1 -0
- package/dist/chunks/index-0.5.8-xpaaycp7.mjs +1 -0
- package/dist/chunks/index-0.5.8-ydqh8xbm.mjs +2 -0
- package/dist/chunks/index-0.5.8-yp0fpaqf.mjs +1 -0
- package/dist/chunks/init-0.5.8-kmfn7vay.mjs +1 -0
- package/dist/chunks/initReplBridge-0.5.8-f9ezc1jk.mjs +1 -0
- package/dist/chunks/ink-0.5.8-y01565nf.mjs +1 -0
- package/dist/chunks/insights-0.5.8-mwq5z31x.mjs +870 -0
- package/dist/chunks/install-0.5.8-se0j5qte.mjs +1 -0
- package/dist/chunks/install-github-app-0.5.8-zqhhg1fw.mjs +149 -0
- package/dist/chunks/install-slack-app-0.5.8-9qpwy0z9.mjs +1 -0
- package/dist/chunks/instrumentation-0.5.8-gbnaaqp3.mjs +1 -0
- package/dist/chunks/interactiveHelpers-0.5.8-wrn95m3j.mjs +1 -0
- package/dist/chunks/keybindings-0.5.8-j070t67n.mjs +2 -0
- package/dist/chunks/knowledge-0.5.8-fhr55cqh.mjs +2 -0
- package/dist/chunks/latestVersionCache-0.5.8-rmkxtaea.mjs +1 -0
- package/dist/chunks/loadAgentsDir-0.5.8-f3j27p5s.mjs +1 -0
- package/dist/chunks/loadPluginHooks-0.5.8-7401ty3k.mjs +1 -0
- package/dist/chunks/loadPluginHooks-0.5.8-yhhkejwz.mjs +1 -0
- package/dist/chunks/log-0.5.8-78h0x7qg.mjs +1 -0
- package/dist/chunks/main-0.5.8-4ddjgz4x.mjs +1 -0
- package/dist/chunks/managedEnv-0.5.8-rxnh3nhr.mjs +1 -0
- package/dist/chunks/mcp-0.5.8-9ts7qrcv.mjs +4 -0
- package/dist/chunks/mcp-0.5.8-hhnpsgvh.mjs +17 -0
- package/dist/chunks/mcp-0.5.8-md6hzter.mjs +1 -0
- package/dist/chunks/mcpb-0.5.8-ebcb4nn4.mjs +1 -0
- package/dist/chunks/memory-0.5.8-ph5hb81n.mjs +3 -0
- package/dist/chunks/mobile-0.5.8-f04nmet1.mjs +2 -0
- package/dist/chunks/model-0.5.8-aqzt03nd.mjs +1 -0
- package/dist/chunks/model-0.5.8-nmcrv393.mjs +2 -0
- package/dist/chunks/oauth-0.5.8-n75mrvf3.mjs +1 -0
- package/dist/chunks/openaiShim-0.5.8-95kwrgpv.mjs +14 -0
- package/dist/chunks/output-style-0.5.8-zy932aj1.mjs +1 -0
- package/dist/chunks/package-APBHZ5F3-0.5.8-c4xw21z8.mjs +1 -0
- package/dist/chunks/parseConnectUrl-0.5.8-0dgzrde4.mjs +1 -0
- package/dist/chunks/parser-0.5.8-g6wgq5z2.mjs +1 -0
- package/dist/chunks/passes-0.5.8-jkdncmr5.mjs +1 -0
- package/dist/chunks/permissions-0.5.8-tesg1fmt.mjs +3 -0
- package/dist/chunks/plan-0.5.8-4h4wazbm.mjs +1 -0
- package/dist/chunks/plist-0.5.8-ygsvkws5.mjs +1 -0
- package/dist/chunks/plugin-0.5.8-meszp93t.mjs +29 -0
- package/dist/chunks/pluginStartupCheck-0.5.8-8c49aq53.mjs +1 -0
- package/dist/chunks/plugins-0.5.8-zh9wq5by.mjs +9 -0
- package/dist/chunks/preActionHook-0.5.8-r8zrjby2.mjs +2 -0
- package/dist/chunks/print-0.5.8-dbcfsrdg.mjs +57 -0
- package/dist/chunks/privacy-settings-0.5.8-zj36f0ve.mjs +1 -0
- package/dist/chunks/process-0.5.8-1yf78q4y.mjs +1 -0
- package/dist/chunks/processBashCommand-0.5.8-pdnzd9ry.mjs +1 -0
- package/dist/chunks/processSlashCommand-0.5.8-kmv9fs8d.mjs +9 -0
- package/dist/chunks/prompt-0.5.8-aa1v4zh0.mjs +1 -0
- package/dist/chunks/prompt-0.5.8-wabf0exz.mjs +1 -0
- package/dist/chunks/prompts-0.5.8-n865vxaw.mjs +1 -0
- package/dist/chunks/protocolHandler-0.5.8-6k7ma4yf.mjs +13 -0
- package/dist/chunks/provider-0.5.8-qsr51mc2.mjs +2 -0
- package/dist/chunks/providerProfiles-0.5.8-he8tbnf5.mjs +1 -0
- package/dist/chunks/providerValidation-0.5.8-6cjh43zv.mjs +6 -0
- package/dist/chunks/rate-limit-options-0.5.8-pvbwwt4v.mjs +1 -0
- package/dist/chunks/registerSubcommands-0.5.8-8jq52atf.mjs +34 -0
- package/dist/chunks/registry-0.5.8-ynn6qxq6.mjs +1 -0
- package/dist/chunks/release-notes-0.5.8-yydjz710.mjs +5 -0
- package/dist/chunks/reload-plugins-0.5.8-64ybz2n4.mjs +2 -0
- package/dist/chunks/remote-env-0.5.8-1f4tf3ch.mjs +1 -0
- package/dist/chunks/remoteBridgeCore-0.5.8-qnrtc8aw.mjs +1 -0
- package/dist/chunks/remoteSession-0.5.8-kxsfx9gd.mjs +1 -0
- package/dist/chunks/rename-0.5.8-j4c6dg9n.mjs +1 -0
- package/dist/chunks/replBridgeHandle-0.5.8-w33fvpqt.mjs +1 -0
- package/dist/chunks/replLauncher-0.5.8-7jzc54fq.mjs +1 -0
- package/dist/chunks/resume-0.5.8-373epwyd.mjs +2 -0
- package/dist/chunks/rewind-0.5.8-b9qe0mwn.mjs +1 -0
- package/dist/chunks/rootOptions-0.5.8-h1ddt4ry.mjs +1 -0
- package/dist/chunks/sandbox-adapter-0.5.8-ma6nv5dg.mjs +1 -0
- package/dist/chunks/sandbox-toggle-0.5.8-1cc5m303.mjs +1 -0
- package/dist/chunks/session-0.5.8-rxft524k.mjs +2 -0
- package/dist/chunks/sessionDiscovery-0.5.8-r4eg8g3r.mjs +1 -0
- package/dist/chunks/sessionFileAccessHooks-0.5.8-jm3bmvt7.mjs +1 -0
- package/dist/chunks/sessionStorage-0.5.8-kfghwskw.mjs +1 -0
- package/dist/chunks/settings-0.5.8-qxr7dgzb.mjs +1 -0
- package/dist/chunks/setup-0.5.8-769vnffz.mjs +5 -0
- package/dist/chunks/sinks-0.5.8-jcq0kgny.mjs +1 -0
- package/dist/chunks/skills-0.5.8-5qxr2p94.mjs +1 -0
- package/dist/chunks/startupProfiler-0.5.8-cpbf91zs.mjs +1 -0
- package/dist/chunks/startupUpdateCheck-0.5.8-bctkpcea.mjs +1 -0
- package/dist/chunks/state-0.5.8-cppqmrbf.mjs +1 -0
- package/dist/chunks/stats-0.5.8-zcfm59db.mjs +6 -0
- package/dist/chunks/status-0.5.8-5v4y485z.mjs +1 -0
- package/dist/chunks/stickers-0.5.8-9gr6e2xg.mjs +1 -0
- package/dist/chunks/subprocessEnv-0.5.8-wf4cta06.mjs +1 -0
- package/dist/chunks/tasks-0.5.8-30z30sqv.mjs +1 -0
- package/dist/chunks/teamHelpers-0.5.8-vcng2y7m.mjs +1 -0
- package/dist/chunks/teammateModeSnapshot-0.5.8-48p5p451.mjs +1 -0
- package/dist/chunks/teleport-0.5.8-650m4rks.mjs +1 -0
- package/dist/chunks/terminalSetup-0.5.8-ew1ax86g.mjs +1 -0
- package/dist/chunks/theme-0.5.8-7a06760x.mjs +1 -0
- package/dist/chunks/thinkback-0.5.8-xrvqhj8w.mjs +1 -0
- package/dist/chunks/thinkback-play-0.5.8-vkpn13f3.mjs +1 -0
- package/dist/chunks/toolPool-0.5.8-ntbr808f.mjs +1 -0
- package/dist/chunks/toolSearch-0.5.8-ybxz2f7f.mjs +1 -0
- package/dist/chunks/tools-0.5.8-egnmkxt7.mjs +1 -0
- package/dist/chunks/trustedDevice-0.5.8-422swdjw.mjs +1 -0
- package/dist/chunks/turndown.cjs-0.5.8-tkat2x5p.mjs +69 -0
- package/dist/chunks/ultrareviewCommand-0.5.8-e7b2408n.mjs +4 -0
- package/dist/chunks/update-0.5.8-a285y5j4.mjs +86 -0
- package/dist/chunks/upgrade-0.5.8-8nxejvyv.mjs +1 -0
- package/dist/chunks/upstreamproxy-0.5.8-6a2g1s50.mjs +14 -0
- package/dist/chunks/url-handler-napi-0.5.8-83a2qhsf.mjs +1 -0
- package/dist/chunks/usage-0.5.8-9dha8gsc.mjs +1 -0
- package/dist/chunks/util-0.5.8-c7zdhrd1.mjs +1 -0
- package/dist/chunks/utils-0.5.8-e8pfjkrb.mjs +1 -0
- package/dist/chunks/vim-0.5.8-pgsav8je.mjs +1 -0
- package/dist/chunks/watcher-0.5.8-w3q8518m.mjs +1 -0
- package/dist/chunks/wiki-0.5.8-1sa2h258.mjs +132 -0
- package/dist/chunks/worktree-0.5.8-59wmpecg.mjs +1 -0
- package/dist/chunks/worktreeModeEnabled-0.5.8-pexygrty.mjs +1 -0
- package/dist/chunks/wrapper-0.5.8-kmv5mk0m.mjs +7 -0
- package/dist/claudin-vscode.vsix +0 -0
- package/dist/cli.mjs +2 -7
- package/dist/help-agents.txt +8 -0
- package/dist/help-auth.txt +12 -0
- package/dist/help-auto-mode.txt +14 -0
- package/dist/help-doctor.txt +8 -0
- package/dist/help-install.txt +8 -0
- package/dist/help-mcp.txt +31 -0
- package/dist/help-plugin.txt +20 -0
- package/dist/help-plugins.txt +20 -0
- package/dist/help-setup-token.txt +6 -0
- package/dist/help-update.txt +6 -0
- package/dist/help-upgrade.txt +6 -0
- package/dist/help.txt +68 -0
- package/package.json +4 -1
- package/scripts/postinstall-warmup.mjs +70 -0
- package/dist/chunks/AgentTool-0.5.7-0krqsszm.mjs +0 -1
- package/dist/chunks/App-0.5.7-k8c6xsbz.mjs +0 -1
- package/dist/chunks/ApproveApiKey-0.5.7-djmd358f.mjs +0 -1
- package/dist/chunks/AssistantSessionChooser-0.5.7-40f5p134.mjs +0 -1
- package/dist/chunks/AutoModeOptInDialog-0.5.7-dgpfkf7n.mjs +0 -1
- package/dist/chunks/BypassPermissionsModeDialog-0.5.7-m2n3zekg.mjs +0 -1
- package/dist/chunks/ClaudeMdExternalIncludesDialog-0.5.7-8p2b9258.mjs +0 -1
- package/dist/chunks/ConsoleOAuthFlow-0.5.7-e11rkgsy.mjs +0 -1
- package/dist/chunks/DiffDialog-0.5.7-df3q0dyx.mjs +0 -3
- package/dist/chunks/Doctor-0.5.7-996gqph8.mjs +0 -1
- package/dist/chunks/Grove-0.5.7-7xphv8qp.mjs +0 -1
- package/dist/chunks/ITermBackend-0.5.7-rv5t26my.mjs +0 -1
- package/dist/chunks/InvalidConfigDialog-0.5.7-76awdeqe.mjs +0 -1
- package/dist/chunks/InvalidSettingsDialog-0.5.7-d59ky2sv.mjs +0 -1
- package/dist/chunks/MigrationDialog-0.5.7-nkkcryn5.mjs +0 -1
- package/dist/chunks/Onboarding-0.5.7-v3jtvbkn.mjs +0 -1
- package/dist/chunks/ProviderManager-0.5.7-92navbez.mjs +0 -1
- package/dist/chunks/REPL-0.5.7-6zag11mg.mjs +0 -1
- package/dist/chunks/ResumeConversation-0.5.7-hpgm4f1s.mjs +0 -1
- package/dist/chunks/SnapshotUpdateDialog-0.5.7-xrverbhp.mjs +0 -1
- package/dist/chunks/TeleportProgress-0.5.7-xn5z7dt4.mjs +0 -1
- package/dist/chunks/TeleportRepoMismatchDialog-0.5.7-s29rrsak.mjs +0 -1
- package/dist/chunks/TeleportResumeWrapper-0.5.7-3r5mn1za.mjs +0 -1
- package/dist/chunks/TmuxBackend-0.5.7-k3c0537z.mjs +0 -9
- package/dist/chunks/ToolSearchTool-0.5.7-mybq3qz5.mjs +0 -1
- package/dist/chunks/TrustDialog-0.5.7-r4dhznyf.mjs +0 -1
- package/dist/chunks/activeProvider-0.5.7-8emdm8j8.mjs +0 -1
- package/dist/chunks/add-dir-0.5.7-jwaavdc7.mjs +0 -1
- package/dist/chunks/agents-0.5.7-e7dajmrs.mjs +0 -110
- package/dist/chunks/agents-0.5.7-q2vtj7pt.mjs +0 -3
- package/dist/chunks/api-0.5.7-j8bn129y.mjs +0 -1
- package/dist/chunks/asciicast-0.5.7-rp1h8swq.mjs +0 -1
- package/dist/chunks/assistant-0.5.7-sfk22b3z.mjs +0 -1
- package/dist/chunks/auth-0.5.7-ez3n1qpx.mjs +0 -1
- package/dist/chunks/auth-0.5.7-khssh83t.mjs +0 -1
- package/dist/chunks/autoMode-0.5.7-ezn856pd.mjs +0 -48
- package/dist/chunks/autoUpdater-0.5.7-dkw2aw1e.mjs +0 -1
- package/dist/chunks/backgroundHousekeeping-0.5.7-9ejvx75r.mjs +0 -1
- package/dist/chunks/branch-0.5.7-cjbtbwg1.mjs +0 -4
- package/dist/chunks/bridgePointer-0.5.7-5z0vqchx.mjs +0 -1
- package/dist/chunks/btw-0.5.7-p3kbd1wf.mjs +0 -1
- package/dist/chunks/buddy-0.5.7-pa55rfb4.mjs +0 -3
- package/dist/chunks/cacache-0.5.7-anq54jwq.mjs +0 -1
- package/dist/chunks/cache-probe-0.5.7-6j5hzxc4.mjs +0 -21
- package/dist/chunks/cacheStats-0.5.7-e1byp2n2.mjs +0 -4
- package/dist/chunks/caches-0.5.7-w8n6wxaj.mjs +0 -1
- package/dist/chunks/claudeDesktop-0.5.7-5kkyx4pz.mjs +0 -1
- package/dist/chunks/claudemd-0.5.7-jb7byep9.mjs +0 -1
- package/dist/chunks/clear-0.5.7-tkh04z2c.mjs +0 -1
- package/dist/chunks/clearTerminal-0.5.7-mbqev32s.mjs +0 -1
- package/dist/chunks/cli-0.5.7-023jpnwm.mjs +0 -2
- package/dist/chunks/cli-0.5.7-08mn1pmc.mjs +0 -5
- package/dist/chunks/cli-0.5.7-0bv1xcbe.mjs +0 -21
- package/dist/chunks/cli-0.5.7-0df5m6td.mjs +0 -2
- package/dist/chunks/cli-0.5.7-0rvzfmhb.mjs +0 -2
- package/dist/chunks/cli-0.5.7-0s7wtvbz.mjs +0 -2
- package/dist/chunks/cli-0.5.7-1fmgwk5c.mjs +0 -2
- package/dist/chunks/cli-0.5.7-1kmeaqmc.mjs +0 -2
- package/dist/chunks/cli-0.5.7-20cz322w.mjs +0 -2
- package/dist/chunks/cli-0.5.7-23hg3t0h.mjs +0 -2
- package/dist/chunks/cli-0.5.7-258ytmbr.mjs +0 -2
- package/dist/chunks/cli-0.5.7-26pwg6gg.mjs +0 -2
- package/dist/chunks/cli-0.5.7-2h4rgwc9.mjs +0 -2
- package/dist/chunks/cli-0.5.7-2qxsy7jq.mjs +0 -12
- package/dist/chunks/cli-0.5.7-2tnvc3ka.mjs +0 -2
- package/dist/chunks/cli-0.5.7-2xm61gkr.mjs +0 -5
- package/dist/chunks/cli-0.5.7-2ytftsg5.mjs +0 -2
- package/dist/chunks/cli-0.5.7-31969syr.mjs +0 -2
- package/dist/chunks/cli-0.5.7-31hdc2nc.mjs +0 -2
- package/dist/chunks/cli-0.5.7-35yf0b84.mjs +0 -2
- package/dist/chunks/cli-0.5.7-3jrq7w6x.mjs +0 -2
- package/dist/chunks/cli-0.5.7-3xssm25z.mjs +0 -2
- package/dist/chunks/cli-0.5.7-469r2a5r.mjs +0 -193
- package/dist/chunks/cli-0.5.7-4eg4pktt.mjs +0 -2
- package/dist/chunks/cli-0.5.7-4gmpny6k.mjs +0 -133
- package/dist/chunks/cli-0.5.7-4zv4np07.mjs +0 -2
- package/dist/chunks/cli-0.5.7-500c5b8m.mjs +0 -4
- package/dist/chunks/cli-0.5.7-52mwnwy6.mjs +0 -58
- package/dist/chunks/cli-0.5.7-55zn2cct.mjs +0 -4
- package/dist/chunks/cli-0.5.7-5736yt36.mjs +0 -2
- package/dist/chunks/cli-0.5.7-5aghfr8k.mjs +0 -3
- package/dist/chunks/cli-0.5.7-5by4fby4.mjs +0 -2
- package/dist/chunks/cli-0.5.7-5e5xfeq6.mjs +0 -2
- package/dist/chunks/cli-0.5.7-5jaayymr.mjs +0 -17
- package/dist/chunks/cli-0.5.7-5jms2g5g.mjs +0 -2
- package/dist/chunks/cli-0.5.7-5kv9dgvn.mjs +0 -2
- package/dist/chunks/cli-0.5.7-5mrw857q.mjs +0 -4
- package/dist/chunks/cli-0.5.7-5q6tfz39.mjs +0 -2
- package/dist/chunks/cli-0.5.7-650e2qk4.mjs +0 -18
- package/dist/chunks/cli-0.5.7-67xxeffj.mjs +0 -2
- package/dist/chunks/cli-0.5.7-6d26vvaa.mjs +0 -2
- package/dist/chunks/cli-0.5.7-6g3w68ks.mjs +0 -2
- package/dist/chunks/cli-0.5.7-6gfay8ap.mjs +0 -2
- package/dist/chunks/cli-0.5.7-6gkpb0vw.mjs +0 -2
- package/dist/chunks/cli-0.5.7-6pssgqdn.mjs +0 -2
- package/dist/chunks/cli-0.5.7-6thqe6p4.mjs +0 -3
- package/dist/chunks/cli-0.5.7-73er78b7.mjs +0 -15
- package/dist/chunks/cli-0.5.7-7a9gq9ff.mjs +0 -2
- package/dist/chunks/cli-0.5.7-7hm7dxyp.mjs +0 -2
- package/dist/chunks/cli-0.5.7-7k456xwn.mjs +0 -3
- package/dist/chunks/cli-0.5.7-7mmyazqh.mjs +0 -34
- package/dist/chunks/cli-0.5.7-7rgsmfw7.mjs +0 -3
- package/dist/chunks/cli-0.5.7-7wyhqw17.mjs +0 -2
- package/dist/chunks/cli-0.5.7-82x8qaxx.mjs +0 -2
- package/dist/chunks/cli-0.5.7-89fcvfy0.mjs +0 -2
- package/dist/chunks/cli-0.5.7-8ac9d7r6.mjs +0 -2
- package/dist/chunks/cli-0.5.7-8ap24w7a.mjs +0 -2
- package/dist/chunks/cli-0.5.7-8e61g5bq.mjs +0 -10
- package/dist/chunks/cli-0.5.7-8sbq2qed.mjs +0 -2
- package/dist/chunks/cli-0.5.7-8sqyymdb.mjs +0 -2
- package/dist/chunks/cli-0.5.7-8ychjqct.mjs +0 -16
- package/dist/chunks/cli-0.5.7-93eaxn9a.mjs +0 -2
- package/dist/chunks/cli-0.5.7-93k1z52y.mjs +0 -2
- package/dist/chunks/cli-0.5.7-9acdh8nc.mjs +0 -2
- package/dist/chunks/cli-0.5.7-9jck3vts.mjs +0 -15
- package/dist/chunks/cli-0.5.7-9rbmn26q.mjs +0 -24
- package/dist/chunks/cli-0.5.7-9sysdak3.mjs +0 -2
- package/dist/chunks/cli-0.5.7-9ysat94v.mjs +0 -2
- package/dist/chunks/cli-0.5.7-9z55nm22.mjs +0 -3
- package/dist/chunks/cli-0.5.7-9zwbnq8g.mjs +0 -2
- package/dist/chunks/cli-0.5.7-a47hzz3r.mjs +0 -2
- package/dist/chunks/cli-0.5.7-aq7a3646.mjs +0 -2
- package/dist/chunks/cli-0.5.7-ayjrdmrk.mjs +0 -2
- package/dist/chunks/cli-0.5.7-b51h487f.mjs +0 -2
- package/dist/chunks/cli-0.5.7-bkptgahs.mjs +0 -4
- package/dist/chunks/cli-0.5.7-bnapjxz4.mjs +0 -2
- package/dist/chunks/cli-0.5.7-bzrvdrq4.mjs +0 -2
- package/dist/chunks/cli-0.5.7-c1mv1399.mjs +0 -2
- package/dist/chunks/cli-0.5.7-c9dtw94k.mjs +0 -2
- package/dist/chunks/cli-0.5.7-cakvh73p.mjs +0 -2
- package/dist/chunks/cli-0.5.7-d19d4v07.mjs +0 -2
- package/dist/chunks/cli-0.5.7-d4gtv7f7.mjs +0 -2
- package/dist/chunks/cli-0.5.7-de90yre1.mjs +0 -2
- package/dist/chunks/cli-0.5.7-dntg9qbj.mjs +0 -133
- package/dist/chunks/cli-0.5.7-dp3z7wkh.mjs +0 -2
- package/dist/chunks/cli-0.5.7-dr7n1fyv.mjs +0 -20
- package/dist/chunks/cli-0.5.7-e8eqdfnf.mjs +0 -2
- package/dist/chunks/cli-0.5.7-eer6xagb.mjs +0 -2
- package/dist/chunks/cli-0.5.7-esx85d2g.mjs +0 -2
- package/dist/chunks/cli-0.5.7-eyemfxtz.mjs +0 -2
- package/dist/chunks/cli-0.5.7-fx3gesdm.mjs +0 -2
- package/dist/chunks/cli-0.5.7-g2dd5t6j.mjs +0 -2
- package/dist/chunks/cli-0.5.7-g4n7dg2d.mjs +0 -9
- package/dist/chunks/cli-0.5.7-g7k0r0ea.mjs +0 -5
- package/dist/chunks/cli-0.5.7-g8dqk0se.mjs +0 -2
- package/dist/chunks/cli-0.5.7-gcnk0vke.mjs +0 -6
- package/dist/chunks/cli-0.5.7-gnq8vh0c.mjs +0 -2
- package/dist/chunks/cli-0.5.7-gy4csxb5.mjs +0 -2
- package/dist/chunks/cli-0.5.7-h9v4tqbs.mjs +0 -24
- package/dist/chunks/cli-0.5.7-hdcnw5y4.mjs +0 -2
- package/dist/chunks/cli-0.5.7-hhre0h51.mjs +0 -2
- package/dist/chunks/cli-0.5.7-hp25yk8y.mjs +0 -2
- package/dist/chunks/cli-0.5.7-hq4wbper.mjs +0 -11
- package/dist/chunks/cli-0.5.7-hw11qa05.mjs +0 -3
- package/dist/chunks/cli-0.5.7-hw3pyj8g.mjs +0 -2
- package/dist/chunks/cli-0.5.7-j7h72bgz.mjs +0 -2
- package/dist/chunks/cli-0.5.7-j8q5bja8.mjs +0 -2
- package/dist/chunks/cli-0.5.7-jf3f8gen.mjs +0 -2
- package/dist/chunks/cli-0.5.7-jga8kgpr.mjs +0 -2
- package/dist/chunks/cli-0.5.7-jptzskw1.mjs +0 -2
- package/dist/chunks/cli-0.5.7-jw2te6th.mjs +0 -2
- package/dist/chunks/cli-0.5.7-k11mzgcb.mjs +0 -2
- package/dist/chunks/cli-0.5.7-kctf48t4.mjs +0 -7
- package/dist/chunks/cli-0.5.7-knkzkqbw.mjs +0 -2
- package/dist/chunks/cli-0.5.7-kp9pg4sr.mjs +0 -2
- package/dist/chunks/cli-0.5.7-kvazvrra.mjs +0 -2
- package/dist/chunks/cli-0.5.7-ky5khwx2.mjs +0 -2
- package/dist/chunks/cli-0.5.7-m0841vt9.mjs +0 -2
- package/dist/chunks/cli-0.5.7-m4ekdyhj.mjs +0 -2
- package/dist/chunks/cli-0.5.7-m4wwfa6q.mjs +0 -2
- package/dist/chunks/cli-0.5.7-m5q27x96.mjs +0 -2
- package/dist/chunks/cli-0.5.7-m82d23hf.mjs +0 -2
- package/dist/chunks/cli-0.5.7-mdcw5fyw.mjs +0 -4
- package/dist/chunks/cli-0.5.7-mz4njeb9.mjs +0 -39
- package/dist/chunks/cli-0.5.7-mzfr99sc.mjs +0 -67
- package/dist/chunks/cli-0.5.7-p381d4sx.mjs +0 -3
- package/dist/chunks/cli-0.5.7-p4mv49ab.mjs +0 -25
- package/dist/chunks/cli-0.5.7-pse9qff7.mjs +0 -2
- package/dist/chunks/cli-0.5.7-pzjz115k.mjs +0 -2
- package/dist/chunks/cli-0.5.7-q0pq4367.mjs +0 -9
- package/dist/chunks/cli-0.5.7-q2e6xpch.mjs +0 -5281
- package/dist/chunks/cli-0.5.7-q6sgd9ng.mjs +0 -12
- package/dist/chunks/cli-0.5.7-q8v8naf8.mjs +0 -2
- package/dist/chunks/cli-0.5.7-qdcp748z.mjs +0 -2
- package/dist/chunks/cli-0.5.7-qdqrgv1q.mjs +0 -2
- package/dist/chunks/cli-0.5.7-qk0n5hqa.mjs +0 -9
- package/dist/chunks/cli-0.5.7-r4cdt1b9.mjs +0 -50
- package/dist/chunks/cli-0.5.7-ra5kv4tw.mjs +0 -2
- package/dist/chunks/cli-0.5.7-rb75eq83.mjs +0 -2
- package/dist/chunks/cli-0.5.7-rggstqv6.mjs +0 -2
- package/dist/chunks/cli-0.5.7-rr1yd8f3.mjs +0 -4
- package/dist/chunks/cli-0.5.7-rzts2ke3.mjs +0 -2
- package/dist/chunks/cli-0.5.7-s09knvta.mjs +0 -3
- package/dist/chunks/cli-0.5.7-s5nd54ga.mjs +0 -3
- package/dist/chunks/cli-0.5.7-sb3fjts4.mjs +0 -2
- package/dist/chunks/cli-0.5.7-sjd6g3n6.mjs +0 -15
- package/dist/chunks/cli-0.5.7-sjx0wm99.mjs +0 -2
- package/dist/chunks/cli-0.5.7-skfm51ta.mjs +0 -44
- package/dist/chunks/cli-0.5.7-sx7pr75m.mjs +0 -2
- package/dist/chunks/cli-0.5.7-t6mtpr04.mjs +0 -2
- package/dist/chunks/cli-0.5.7-t8z48kc2.mjs +0 -4
- package/dist/chunks/cli-0.5.7-tbga87q3.mjs +0 -2
- package/dist/chunks/cli-0.5.7-tc3vm4ra.mjs +0 -2
- package/dist/chunks/cli-0.5.7-tgq7dtyz.mjs +0 -2
- package/dist/chunks/cli-0.5.7-tpjjm1z2.mjs +0 -45
- package/dist/chunks/cli-0.5.7-tqn2ged5.mjs +0 -2
- package/dist/chunks/cli-0.5.7-twqt7rxq.mjs +0 -6
- package/dist/chunks/cli-0.5.7-vgc7nzef.mjs +0 -2
- package/dist/chunks/cli-0.5.7-vk8p3n59.mjs +0 -2
- package/dist/chunks/cli-0.5.7-vn5aht50.mjs +0 -2
- package/dist/chunks/cli-0.5.7-vvrg78m6.mjs +0 -2
- package/dist/chunks/cli-0.5.7-vy4r02pg.mjs +0 -4
- package/dist/chunks/cli-0.5.7-vyxaeh82.mjs +0 -2
- package/dist/chunks/cli-0.5.7-w024nwsf.mjs +0 -2
- package/dist/chunks/cli-0.5.7-w16wj21h.mjs +0 -2
- package/dist/chunks/cli-0.5.7-w1bf9y93.mjs +0 -3
- package/dist/chunks/cli-0.5.7-w2fb8g6y.mjs +0 -2
- package/dist/chunks/cli-0.5.7-w50j12vv.mjs +0 -2
- package/dist/chunks/cli-0.5.7-w6nex68w.mjs +0 -2
- package/dist/chunks/cli-0.5.7-wz2cbwxt.mjs +0 -4
- package/dist/chunks/cli-0.5.7-x0n9mq65.mjs +0 -2
- package/dist/chunks/cli-0.5.7-x1azmh1g.mjs +0 -2
- package/dist/chunks/cli-0.5.7-x1w96j6d.mjs +0 -59
- package/dist/chunks/cli-0.5.7-x7dabprd.mjs +0 -2
- package/dist/chunks/cli-0.5.7-x8t1aeey.mjs +0 -2
- package/dist/chunks/cli-0.5.7-xepvraxn.mjs +0 -2
- package/dist/chunks/cli-0.5.7-xn6deh04.mjs +0 -6
- package/dist/chunks/cli-0.5.7-y2vc4xb6.mjs +0 -12
- package/dist/chunks/cli-0.5.7-y3pa8ttm.mjs +0 -2
- package/dist/chunks/cli-0.5.7-yaywev87.mjs +0 -2
- package/dist/chunks/cli-0.5.7-ycj2xr53.mjs +0 -3
- package/dist/chunks/cli-0.5.7-yzncgfs4.mjs +0 -18
- package/dist/chunks/cli-0.5.7-z1n09m4p.mjs +0 -2
- package/dist/chunks/cli-0.5.7-z97pranc.mjs +0 -2
- package/dist/chunks/cli-0.5.7-za19q18c.mjs +0 -2
- package/dist/chunks/cli-0.5.7-zb8ztx8p.mjs +0 -2
- package/dist/chunks/cli-0.5.7-zkw2fx86.mjs +0 -2
- package/dist/chunks/client-0.5.7-bqw74z29.mjs +0 -1
- package/dist/chunks/color-0.5.7-v1s3bvcj.mjs +0 -1
- package/dist/chunks/compact-0.5.7-7kxsprp5.mjs +0 -3
- package/dist/chunks/config-0.5.7-e41nnxnm.mjs +0 -1
- package/dist/chunks/config-0.5.7-q40ykcbb.mjs +0 -1
- package/dist/chunks/context-0.5.7-qvcehmj5.mjs +0 -1
- package/dist/chunks/context-noninteractive-0.5.7-02tkje0w.mjs +0 -1
- package/dist/chunks/conversation-0.5.7-h7r20gzw.mjs +0 -1
- package/dist/chunks/copy-0.5.7-p3xxq9b3.mjs +0 -9
- package/dist/chunks/cost-0.5.7-s3rzm0vd.mjs +0 -1
- package/dist/chunks/createSSHSession-0.5.7-s9fc5f1h.mjs +0 -1
- package/dist/chunks/createSession-0.5.7-4e64teqm.mjs +0 -1
- package/dist/chunks/debug-0.5.7-v8bqkmzm.mjs +0 -1
- package/dist/chunks/desktop-0.5.7-tna0yskx.mjs +0 -1
- package/dist/chunks/detectRepository-0.5.7-3dy7yz89.mjs +0 -1
- package/dist/chunks/detection-0.5.7-39zsjy8t.mjs +0 -1
- package/dist/chunks/diff-0.5.7-9ywmnxmx.mjs +0 -1
- package/dist/chunks/doctor-0.5.7-ty5zxpem.mjs +0 -1
- package/dist/chunks/doctorDiagnostic-0.5.7-g458bh9g.mjs +0 -1
- package/dist/chunks/earlyInput-0.5.7-x73yj3dn.mjs +0 -1
- package/dist/chunks/effort-0.5.7-h76k43fj.mjs +0 -10
- package/dist/chunks/envUtils-0.5.7-w1t7akfc.mjs +0 -1
- package/dist/chunks/environmentSelection-0.5.7-5dsnr0sv.mjs +0 -1
- package/dist/chunks/environments-0.5.7-pqh2gnjb.mjs +0 -1
- package/dist/chunks/errors-0.5.7-pa0hz043.mjs +0 -1
- package/dist/chunks/exampleCommands-0.5.7-3dtjxdad.mjs +0 -1
- package/dist/chunks/exit-0.5.7-0wrw77gk.mjs +0 -1
- package/dist/chunks/export-0.5.7-zw9rbf4j.mjs +0 -2
- package/dist/chunks/extra-usage-0.5.7-rfya84j0.mjs +0 -1
- package/dist/chunks/extra-usage-noninteractive-0.5.7-a1b9ndnm.mjs +0 -1
- package/dist/chunks/fast-0.5.7-2p6srbep.mjs +0 -1
- package/dist/chunks/feedback-0.5.7-181z18rn.mjs +0 -14
- package/dist/chunks/firstPartyEventLogger-0.5.7-xndd9dd0.mjs +0 -1
- package/dist/chunks/git-0.5.7-7gyptyxn.mjs +0 -1
- package/dist/chunks/githubModelsCredentials-0.5.7-9zhn44n6.mjs +0 -1
- package/dist/chunks/growthbook-0.5.7-1mynkk8j.mjs +0 -1
- package/dist/chunks/headless-0.5.7-9f87m6f5.mjs +0 -2
- package/dist/chunks/heapdump-0.5.7-ns6mqawv.mjs +0 -6
- package/dist/chunks/help-0.5.7-px56h6fs.mjs +0 -1
- package/dist/chunks/hookChains-0.5.7-1a6qvexe.mjs +0 -3
- package/dist/chunks/hooks-0.5.7-azm2m6rs.mjs +0 -79
- package/dist/chunks/hooks-0.5.7-fyp8e3f5.mjs +0 -1
- package/dist/chunks/ide-0.5.7-v9hbn8cp.mjs +0 -3
- package/dist/chunks/image-processor-napi-0.5.7-e41p58ef.mjs +0 -1
- package/dist/chunks/index-0.5.7-0tncgnn3.mjs +0 -1
- package/dist/chunks/index-0.5.7-30mrmtkn.mjs +0 -1
- package/dist/chunks/index-0.5.7-62s7cp1b.mjs +0 -1
- package/dist/chunks/index-0.5.7-69akvbm4.mjs +0 -1
- package/dist/chunks/index-0.5.7-6y6f5cws.mjs +0 -1
- package/dist/chunks/index-0.5.7-7w3agvzm.mjs +0 -10
- package/dist/chunks/index-0.5.7-8jwymzr6.mjs +0 -1
- package/dist/chunks/index-0.5.7-8m53gyr6.mjs +0 -9
- package/dist/chunks/index-0.5.7-ct6jw15p.mjs +0 -2
- package/dist/chunks/index-0.5.7-dr470b86.mjs +0 -1
- package/dist/chunks/index-0.5.7-e4rvp0fn.mjs +0 -1
- package/dist/chunks/index-0.5.7-fkw6rn8z.mjs +0 -1
- package/dist/chunks/index-0.5.7-h1xjcbtb.mjs +0 -1
- package/dist/chunks/index-0.5.7-ma3xmxv3.mjs +0 -2
- package/dist/chunks/index-0.5.7-qn7zmh31.mjs +0 -9
- package/dist/chunks/index-0.5.7-rd44m0e6.mjs +0 -30
- package/dist/chunks/index-0.5.7-te1s21zz.mjs +0 -5
- package/dist/chunks/index-0.5.7-vm9zmzmr.mjs +0 -1
- package/dist/chunks/index-0.5.7-wpffxvtn.mjs +0 -1
- package/dist/chunks/index-0.5.7-wwfn7x53.mjs +0 -1
- package/dist/chunks/index-0.5.7-ybcvbcjt.mjs +0 -1
- package/dist/chunks/index-0.5.7-yw3tp60c.mjs +0 -1
- package/dist/chunks/initReplBridge-0.5.7-xpy8ap8n.mjs +0 -1
- package/dist/chunks/ink-0.5.7-dwmx157s.mjs +0 -1
- package/dist/chunks/insights-0.5.7-5fpd27dr.mjs +0 -870
- package/dist/chunks/install-0.5.7-6sc73ew8.mjs +0 -1
- package/dist/chunks/install-github-app-0.5.7-jcyktynf.mjs +0 -149
- package/dist/chunks/install-slack-app-0.5.7-mk4a14ww.mjs +0 -1
- package/dist/chunks/instrumentation-0.5.7-116w6tf4.mjs +0 -1
- package/dist/chunks/interactiveHelpers-0.5.7-zbfkwcsb.mjs +0 -1
- package/dist/chunks/keybindings-0.5.7-k2s0bryc.mjs +0 -2
- package/dist/chunks/knowledge-0.5.7-55b2ckth.mjs +0 -2
- package/dist/chunks/latestVersionCache-0.5.7-k9pyxzrk.mjs +0 -1
- package/dist/chunks/loadAgentsDir-0.5.7-9bmbg04z.mjs +0 -1
- package/dist/chunks/loadPluginHooks-0.5.7-bcdwwerp.mjs +0 -1
- package/dist/chunks/loadPluginHooks-0.5.7-mdt3yvfc.mjs +0 -1
- package/dist/chunks/log-0.5.7-wcft0eyv.mjs +0 -1
- package/dist/chunks/main-0.5.7-9sxhszx9.mjs +0 -1236
- package/dist/chunks/managedEnv-0.5.7-k4gyyt60.mjs +0 -1
- package/dist/chunks/mcp-0.5.7-9z74evcf.mjs +0 -1
- package/dist/chunks/mcp-0.5.7-djz3mjw4.mjs +0 -4
- package/dist/chunks/mcp-0.5.7-n62qd49c.mjs +0 -17
- package/dist/chunks/mcpb-0.5.7-bqt73vjr.mjs +0 -1
- package/dist/chunks/memory-0.5.7-chxjrvf2.mjs +0 -3
- package/dist/chunks/mobile-0.5.7-y0cn32br.mjs +0 -2
- package/dist/chunks/model-0.5.7-7mt2xn7w.mjs +0 -1
- package/dist/chunks/model-0.5.7-fdhr0cwa.mjs +0 -2
- package/dist/chunks/oauth-0.5.7-xf0qbv6v.mjs +0 -1
- package/dist/chunks/openaiShim-0.5.7-0cejk3sb.mjs +0 -14
- package/dist/chunks/output-style-0.5.7-t5qc5jxe.mjs +0 -1
- package/dist/chunks/package-APBHZ5F3-0.5.7-7bp8s9sg.mjs +0 -1
- package/dist/chunks/parseConnectUrl-0.5.7-903apk0t.mjs +0 -1
- package/dist/chunks/parser-0.5.7-jnq01hth.mjs +0 -1
- package/dist/chunks/passes-0.5.7-nk3fgxyh.mjs +0 -1
- package/dist/chunks/permissions-0.5.7-q7whkp76.mjs +0 -3
- package/dist/chunks/plan-0.5.7-w5hgy3s7.mjs +0 -1
- package/dist/chunks/plist-0.5.7-jwz5qjtz.mjs +0 -1
- package/dist/chunks/plugin-0.5.7-x7xcey6d.mjs +0 -29
- package/dist/chunks/pluginStartupCheck-0.5.7-gy2e0dge.mjs +0 -1
- package/dist/chunks/plugins-0.5.7-2ehzph1a.mjs +0 -9
- package/dist/chunks/print-0.5.7-mjx6j0dk.mjs +0 -57
- package/dist/chunks/privacy-settings-0.5.7-rkmc34t8.mjs +0 -1
- package/dist/chunks/process-0.5.7-8c0qwpv6.mjs +0 -1
- package/dist/chunks/processBashCommand-0.5.7-czwzjsj9.mjs +0 -1
- package/dist/chunks/processSlashCommand-0.5.7-512rz16m.mjs +0 -9
- package/dist/chunks/prompt-0.5.7-r8ewyzer.mjs +0 -1
- package/dist/chunks/prompt-0.5.7-z98k679g.mjs +0 -1
- package/dist/chunks/prompts-0.5.7-g8mh8as5.mjs +0 -1
- package/dist/chunks/protocolHandler-0.5.7-p86as7s6.mjs +0 -13
- package/dist/chunks/provider-0.5.7-x4t1g0nh.mjs +0 -2
- package/dist/chunks/providerProfiles-0.5.7-dz70g8ys.mjs +0 -1
- package/dist/chunks/rate-limit-options-0.5.7-n282sweb.mjs +0 -1
- package/dist/chunks/registry-0.5.7-h8q8eay6.mjs +0 -1
- package/dist/chunks/release-notes-0.5.7-2h20frk0.mjs +0 -5
- package/dist/chunks/reload-plugins-0.5.7-z50apk74.mjs +0 -2
- package/dist/chunks/remote-env-0.5.7-08abe77m.mjs +0 -1
- package/dist/chunks/remoteBridgeCore-0.5.7-jdasqn18.mjs +0 -1
- package/dist/chunks/remoteSession-0.5.7-nq05jhdv.mjs +0 -1
- package/dist/chunks/rename-0.5.7-812j1w4d.mjs +0 -1
- package/dist/chunks/replBridgeHandle-0.5.7-aa3cp3ea.mjs +0 -1
- package/dist/chunks/resume-0.5.7-weq0rn3m.mjs +0 -2
- package/dist/chunks/rewind-0.5.7-y54y78kx.mjs +0 -1
- package/dist/chunks/sandbox-adapter-0.5.7-tb5qenm4.mjs +0 -1
- package/dist/chunks/sandbox-toggle-0.5.7-nxcpekeq.mjs +0 -1
- package/dist/chunks/session-0.5.7-ky2s0856.mjs +0 -2
- package/dist/chunks/sessionDiscovery-0.5.7-wr82xcxs.mjs +0 -1
- package/dist/chunks/sessionFileAccessHooks-0.5.7-0j8f4we0.mjs +0 -1
- package/dist/chunks/sessionStorage-0.5.7-qghsxmr2.mjs +0 -1
- package/dist/chunks/settings-0.5.7-xa4hccmb.mjs +0 -1
- package/dist/chunks/setup-0.5.7-s4yfpbyd.mjs +0 -5
- package/dist/chunks/sinks-0.5.7-feq030bq.mjs +0 -1
- package/dist/chunks/skills-0.5.7-h2r9d209.mjs +0 -1
- package/dist/chunks/startupProfiler-0.5.7-f44bsnqn.mjs +0 -1
- package/dist/chunks/startupUpdateCheck-0.5.7-7ff14fag.mjs +0 -1
- package/dist/chunks/state-0.5.7-cwk8b4cx.mjs +0 -1
- package/dist/chunks/stats-0.5.7-wd077xj7.mjs +0 -6
- package/dist/chunks/status-0.5.7-5qy7pnk9.mjs +0 -1
- package/dist/chunks/stickers-0.5.7-7s145w6d.mjs +0 -1
- package/dist/chunks/subprocessEnv-0.5.7-5dv3w3xn.mjs +0 -1
- package/dist/chunks/tasks-0.5.7-q79z0h3e.mjs +0 -1
- package/dist/chunks/teamHelpers-0.5.7-b8qf5f0d.mjs +0 -1
- package/dist/chunks/teammateModeSnapshot-0.5.7-kvmjwag8.mjs +0 -1
- package/dist/chunks/teleport-0.5.7-x740q45r.mjs +0 -1
- package/dist/chunks/terminalSetup-0.5.7-z8ytqt6q.mjs +0 -1
- package/dist/chunks/theme-0.5.7-9asaqpc9.mjs +0 -1
- package/dist/chunks/thinkback-0.5.7-6bzqdm8h.mjs +0 -1
- package/dist/chunks/thinkback-play-0.5.7-5m54zaez.mjs +0 -1
- package/dist/chunks/toolPool-0.5.7-5rd6jp71.mjs +0 -1
- package/dist/chunks/toolSearch-0.5.7-wgqasfmq.mjs +0 -1
- package/dist/chunks/trustedDevice-0.5.7-5qbzragc.mjs +0 -1
- package/dist/chunks/turndown.cjs-0.5.7-3fjybn8j.mjs +0 -69
- package/dist/chunks/ultrareviewCommand-0.5.7-98p7mn4r.mjs +0 -4
- package/dist/chunks/update-0.5.7-2jgnt5gj.mjs +0 -86
- package/dist/chunks/upgrade-0.5.7-1fa84f4g.mjs +0 -1
- package/dist/chunks/upstreamproxy-0.5.7-1p7vn612.mjs +0 -14
- package/dist/chunks/url-handler-napi-0.5.7-312p1719.mjs +0 -1
- package/dist/chunks/usage-0.5.7-qrsabcka.mjs +0 -1
- package/dist/chunks/util-0.5.7-tpzcah5j.mjs +0 -1
- package/dist/chunks/utils-0.5.7-8a2ekyr5.mjs +0 -1
- package/dist/chunks/vim-0.5.7-w4e8vpjf.mjs +0 -1
- package/dist/chunks/watcher-0.5.7-cj50b60x.mjs +0 -1
- package/dist/chunks/wiki-0.5.7-ccjdtg8v.mjs +0 -132
- package/dist/chunks/worktree-0.5.7-g8wrf9zf.mjs +0 -1
- package/dist/chunks/worktreeModeEnabled-0.5.7-w4jdaq8p.mjs +0 -1
- package/dist/chunks/wrapper-0.5.7-8k82xd0n.mjs +0 -7
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{$e as VP,Ye as N0,Ze as U0}from"./cli-0.5.8-221e7v67.mjs";import{Bt as J0,Ct as QP,Et as j0,NJ as ZP,OJ as m0,QJ as qP,TI as WP,VJ as CP,aJ as cP,bJ as fP,cm as h,dJ as M0,dm as c0,eJ as h0,em as p,fF as G0,fJ as T0,fm as w0,gF as YP,gJ as d0,gm as r,hm as W0,jJ as R0,kD as XP,kK as C0,km as O0,lD as mP,lm as EP,oK as pP,qJ as u0,uD as L0,wD as i0}from"./cli-0.5.8-4hvxb5dp.mjs";import{fU as D0,gU as LP}from"./cli-0.5.8-3fnpjffd.mjs";import{GU as JP,HU as hP,UU as z0,WU as TP}from"./cli-0.5.8-60e57smp.mjs";import{HV as k0,PW as C,RW as X,TW as L,XW as F0,lX as GP,sV as PP,wX as q0,xV as AP,yV as I0}from"./cli-0.5.8-nwe7yne9.mjs";import{WY as n,XY as J,YY as Q,ZY as a}from"./cli-0.5.8-zkn5gecs.mjs";import{_Y as $0}from"./cli-0.5.8-6epmns99.mjs";import{vZ as A0,wZ as dP}from"./cli-0.5.8-cm551a1y.mjs";import{C3 as gP,k3 as e0}from"./cli-0.5.8-rddkqxh8.mjs";import{K5 as _,L5 as r0,Pba as s0,Sba as SP,W9 as y0,X9 as B0,Y9 as KP,m_ as H0,n_ as zP,v_ as p0}from"./cli-0.5.8-qf19nfhv.mjs";import{kea as g0,lea as _P}from"./cli-0.5.8-qdnr3r07.mjs";import{mea as m,oea as IP}from"./cli-0.5.8-9fpm1ms3.mjs";import{Rfa as f0,Yfa as t0}from"./cli-0.5.8-959n5v33.mjs";import{vna as e,zna as P0}from"./cli-0.5.8-hkfwdsmy.mjs";function K0(G){let P=o0.c(9),{serverToolsCount:Y,serverPromptsCount:z,serverResourcesCount:Z}=G,f;if(P[0]!==z||P[1]!==Z||P[2]!==Y){if(f=[],Y>0)f.push("tools");if(Z>0)f.push("resources");if(z>0)f.push("prompts");P[0]=z,P[1]=Z,P[2]=Y,P[3]=f}else f=P[3];let H;if(P[4]===Symbol.for("react.memo_cache_sentinel"))H=J(L,{bold:!0,children:"Capabilities: "}),P[4]=H;else H=P[4];let W;if(P[5]!==f)W=f.length>0?J(r,{children:f}):"none",P[5]=f,P[6]=W;else W=P[6];let k;if(P[7]!==W)k=Q(X,{children:[H,J(L,{color:"text",children:W})]}),P[7]=W,P[8]=k;else k=P[8];return k}var o0;var _0=P0(()=>{q0();W0();a();o0=e(I0(),1)});function E0(G,P){switch(G.client.type){case"connected":return{message:`Reconnected to ${P}.`,success:!0};case"needs-auth":return{message:`${P} requires authentication. Use the 'Authenticate' option.`,success:!1};case"failed":return{message:`Failed to reconnect to ${P}.`,success:!1};default:return{message:`Unknown result when reconnecting to ${P}.`,success:!1}}}function V0(G,P){let Y=G instanceof Error?G.message:String(G);return`Error reconnecting to ${P}: ${Y}`}var S0=()=>{};function bG({server:G,serverToolsCount:P,onViewTools:Y,onCancel:z,onComplete:Z,borderless:f=!1}){let[H]=k0(),W=D0(),{columns:k}=JP(),[B,N]=E.default.useState(!1),[$,U]=E.default.useState(null),S=J0((q)=>q.mcp),M=QP(),[b,K]=E.default.useState(null),[V,D]=E.useState(!1),R=E.useRef(null),[g,c]=E.useState(!1),[j,T]=E.useState(null),[A,y]=E.useState(!1),[i,u]=E.useState(null),[l,v]=E.useState(!1),[o,s]=E.useState(!1),x=E.useRef(void 0),O=E.useRef(!1),[x0,Q0]=E.useState(""),[kP,DP]=E.useState(0),[a0,n0]=E.useState(null);E.useEffect(()=>()=>{if(O.current=!0,R.current?.abort(),x.current!==void 0)clearTimeout(x.current)},[]);let X0=G.isAuthenticated||G.client.type==="connected"&&P>0,Y0=N0(),wP=E.default.useCallback(async()=>{c(!1),T(null),D(!0);try{let q=await Y0(G.name),F=q.client.type==="connected";if(m("tengu_claudeai_mcp_auth_completed",{success:F}),F)Z?.(`Authentication successful. Connected to ${G.name}.`);else if(q.client.type==="needs-auth")Z?.("Authentication successful, but server still requires authentication. You may need to manually restart Claude Code.");else Z?.("Authentication successful, but server reconnection failed. You may need to manually restart Claude Code for the changes to take effect.")}catch(q){m("tengu_claudeai_mcp_auth_completed",{success:!1}),Z?.(V0(q,G.name))}finally{D(!1)}},[Y0,G.name,Z]),MP=E.default.useCallback(async()=>{await C0(G.name,{...G.config,scope:G.scope}),M((q)=>{let F=q.mcp.clients.map((t)=>t.name===G.name?{...t,type:"needs-auth"}:t),w=h0(q.mcp.tools,G.name),d=T0(q.mcp.commands,G.name),Z0=d0(q.mcp.resources,G.name);return{...q,mcp:{...q.mcp,clients:F,tools:w,commands:d,resources:Z0}}}),m("tengu_claudeai_mcp_clear_auth_completed",{}),Z?.(`Disconnected from ${G.name}.`),y(!1),u(null),v(!1)},[G.name,G.config,G.scope,M,Z]);z0("confirm:no",()=>{R.current?.abort(),R.current=null,N(!1),K(null)},{context:"Confirmation",isActive:B}),z0("confirm:no",()=>{c(!1),T(null)},{context:"Confirmation",isActive:g}),z0("confirm:no",()=>{y(!1),u(null),v(!1)},{context:"Confirmation",isActive:A}),GP((q,F)=>{if(F.return&&g)wP();if(F.return&&A)if(l)MP();else{let w=`${g0().CLAUDE_AI_ORIGIN}/settings/connectors`;u(w),v(!0),A0(w)}if(q==="c"&&!o){let w=b||j||i;if(w)PP(w).then((d)=>{if(O.current)return;if(d)process.stdout.write(d);if(s(!0),x.current!==void 0)clearTimeout(x.current);x.current=setTimeout(s,2000,!1)})}});let RP=H0(String(G.name)),NP=M0(S.commands,G.name).length,l0=U0(),UP=E.default.useCallback(async()=>{let q=g0().CLAUDE_AI_ORIGIN,w=e0()?.organizationUuid,d;if(w&&G.config.type==="claudeai-proxy"&&G.config.id){let Z0=G.config.id.startsWith("mcprs")?"mcpsrv"+G.config.id.slice(5):G.config.id,t=encodeURIComponent(process.env.CLAUDE_CODE_ENTRYPOINT||"cli");d=`${q}/api/organizations/${w}/mcp/start-auth/${Z0}?product_surface=${t}`}else d=`${q}/settings/connectors`;T(d),c(!0),m("tengu_claudeai_mcp_auth_started",{}),await A0(d)},[G.config]),bP=E.default.useCallback(()=>{y(!0),m("tengu_claudeai_mcp_clear_auth_started",{})},[]),yP=E.default.useCallback(async()=>{let q=G.client.type!=="disabled";try{if(await l0(G.name),G.config.type==="claudeai-proxy")m("tengu_claudeai_mcp_toggle",{new_state:q?"disabled":"enabled"});z()}catch(F){Z?.(`Failed to ${q?"disable":"enable"} MCP server '${G.name}': ${f0(F)}`)}},[G.client.type,G.config.type,G.name,l0,z,Z]),BP=E.default.useCallback(async()=>{if(G.config.type==="claudeai-proxy")return;N(!0),U(null);let q=new AbortController;R.current=q;try{if(G.isAuthenticated&&G.config)await m0(G.name,G.config,{preserveStepUpState:!0});if(G.config){await qP(G.name,G.config,K,q.signal,{onWaitingForCallback:(w)=>{n0(()=>w)}}),m("tengu_mcp_auth_config_authenticate",{wasAuthenticated:G.isAuthenticated});let F=await Y0(G.name);if(F.client.type==="connected"){let w=X0?`Authentication successful. Reconnected to ${G.name}.`:`Authentication successful. Connected to ${G.name}.`;Z?.(w)}else if(F.client.type==="needs-auth")Z?.("Authentication successful, but server still requires authentication. You may need to manually restart Claude Code.");else s0(G.name,"Reconnection failed after authentication"),Z?.("Authentication successful, but server reconnection failed. You may need to manually restart Claude Code for the changes to take effect.")}}catch(F){if(F instanceof Error&&!(F instanceof ZP))U(F.message)}finally{N(!1),R.current=null,n0(null),Q0("")}},[G.isAuthenticated,G.config,G.name,Z,Y0,X0]),OP=async()=>{if(G.config.type==="claudeai-proxy")return;if(G.config)await m0(G.name,G.config),m("tengu_mcp_auth_config_clear",{}),await C0(G.name,{...G.config,scope:G.scope}),M((q)=>{let F=q.mcp.clients.map((t)=>t.name===G.name?{...t,type:"failed"}:t),w=h0(q.mcp.tools,G.name),d=T0(q.mcp.commands,G.name),Z0=d0(q.mcp.resources,G.name);return{...q,mcp:{...q.mcp,clients:F,tools:w,commands:d,resources:Z0}}}),Z?.(`Authentication cleared for ${G.name}.`)};if(B){let q=G.config.type!=="claudeai-proxy"&&G.config.oauth?.xaa?" Authenticating via your identity provider":" A browser window will open for authentication";return Q(X,{flexDirection:"column",gap:1,padding:1,children:[Q(L,{color:"claude",children:["Authenticating with ",G.name,"…"]}),Q(X,{children:[J(G0,{}),J(L,{children:q})]}),b&&Q(X,{flexDirection:"column",children:[Q(X,{children:[Q(L,{dimColor:!0,children:["If your browser doesn't open automatically, copy this URL manually"," "]}),o?J(L,{color:"success",children:"(Copied!)"}):J(L,{dimColor:!0,children:J(h,{shortcut:"c",action:"copy",parens:!0})})]}),J(F0,{url:b})]}),B&&b&&a0&&Q(X,{flexDirection:"column",marginTop:1,children:[J(L,{dimColor:!0,children:"If the redirect page shows a connection error, paste the URL from your browser's address bar:"}),Q(X,{children:[Q(L,{dimColor:!0,children:["URL ",">"," "]}),J(XP,{value:x0,onChange:Q0,onSubmit:(F)=>{a0(F.trim()),Q0("")},cursorOffset:kP,onChangeCursorOffset:DP,columns:k-8})]})]}),J(X,{marginLeft:3,children:J(L,{dimColor:!0,children:"Return here after authenticating in your browser. Press Esc to go back."})})]})}if(g)return Q(X,{flexDirection:"column",gap:1,padding:1,children:[Q(L,{color:"claude",children:["Authenticating with ",G.name,"…"]}),Q(X,{children:[J(G0,{}),J(L,{children:" A browser window will open for authentication"})]}),j&&Q(X,{flexDirection:"column",children:[Q(X,{children:[Q(L,{dimColor:!0,children:["If your browser doesn't open automatically, copy this URL manually"," "]}),o?J(L,{color:"success",children:"(Copied!)"}):J(L,{dimColor:!0,children:J(h,{shortcut:"c",action:"copy",parens:!0})})]}),J(F0,{url:j})]}),Q(X,{marginLeft:3,flexDirection:"column",children:[Q(L,{color:"permission",children:["Press ",J(L,{bold:!0,children:"Enter"})," after authenticating in your browser."]}),J(L,{dimColor:!0,italic:!0,children:J(p,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"})})]})]});if(A)return Q(X,{flexDirection:"column",gap:1,padding:1,children:[Q(L,{color:"claude",children:["Clear authentication for ",G.name]}),l?Q(n,{children:[J(L,{children:'Find the MCP server in the browser and click "Disconnect".'}),i&&Q(X,{flexDirection:"column",children:[Q(X,{children:[Q(L,{dimColor:!0,children:["If your browser didn't open automatically, copy this URL manually"," "]}),o?J(L,{color:"success",children:"(Copied!)"}):J(L,{dimColor:!0,children:J(h,{shortcut:"c",action:"copy",parens:!0})})]}),J(F0,{url:i})]}),Q(X,{marginLeft:3,flexDirection:"column",children:[Q(L,{color:"permission",children:["Press ",J(L,{bold:!0,children:"Enter"})," when done."]}),J(L,{dimColor:!0,italic:!0,children:J(p,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"})})]})]}):Q(n,{children:[J(L,{children:'This will open claude.ai in the browser. Find the MCP server in the list and click "Disconnect".'}),Q(X,{marginLeft:3,flexDirection:"column",children:[Q(L,{color:"permission",children:["Press ",J(L,{bold:!0,children:"Enter"})," to open the browser."]}),J(L,{dimColor:!0,italic:!0,children:J(p,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"})})]})]})]});if(V)return Q(X,{flexDirection:"column",gap:1,padding:1,children:[Q(L,{color:"text",children:["Connecting to ",J(L,{bold:!0,children:G.name}),"…"]}),Q(X,{children:[J(G0,{}),J(L,{children:" Establishing connection to MCP server"})]}),J(L,{dimColor:!0,children:"This may take a few moments."})]});let I=[];if(G.client.type==="disabled")I.push({label:"Enable",value:"toggle-enabled"});if(G.client.type==="connected"&&P>0)I.push({label:"View tools",value:"tools"});if(G.config.type==="claudeai-proxy"){if(G.client.type==="connected")I.push({label:"Clear authentication",value:"claudeai-clear-auth"});else if(G.client.type!=="disabled")I.push({label:"Authenticate",value:"claudeai-auth"})}else{if(X0)I.push({label:"Re-authenticate",value:"reauth"}),I.push({label:"Clear authentication",value:"clear-auth"});if(!X0)I.push({label:"Authenticate",value:"auth"})}if(G.client.type!=="disabled"){if(G.client.type!=="needs-auth")I.push({label:"Reconnect",value:"reconnectMcpServer"});I.push({label:"Disable",value:"toggle-enabled"})}if(I.length===0)I.push({label:"Back",value:"back"});return Q(X,{flexDirection:"column",children:[Q(X,{flexDirection:"column",paddingX:1,borderStyle:f?void 0:"round",children:[J(X,{marginBottom:1,children:Q(L,{bold:!0,children:[RP," MCP Server"]})}),Q(X,{flexDirection:"column",gap:0,children:[Q(X,{children:[J(L,{bold:!0,children:"Status: "}),G.client.type==="disabled"?Q(L,{children:[C("inactive",H)(_.radioOff)," disabled"]}):G.client.type==="connected"?Q(L,{children:[C("success",H)(_.tick)," connected"]}):G.client.type==="pending"?Q(n,{children:[J(L,{dimColor:!0,children:_.radioOff}),J(L,{children:" connecting…"})]}):G.client.type==="needs-auth"?Q(L,{children:[C("warning",H)(_.triangleUpOutline)," needs authentication"]}):Q(L,{children:[C("error",H)(_.cross)," failed"]})]}),G.transport!=="claudeai-proxy"&&Q(X,{children:[J(L,{bold:!0,children:"Auth: "}),X0?Q(L,{children:[C("success",H)(_.tick)," authenticated"]}):Q(L,{children:[C("error",H)(_.cross)," not authenticated"]})]}),Q(X,{children:[J(L,{bold:!0,children:"URL: "}),J(L,{dimColor:!0,children:G.config.url})]}),Q(X,{children:[J(L,{bold:!0,children:"Config location: "}),J(L,{dimColor:!0,children:R0(G.scope)})]}),G.client.type==="connected"&&J(K0,{serverToolsCount:P,serverPromptsCount:NP,serverResourcesCount:S.resources[G.name]?.length||0}),G.client.type==="connected"&&P>0&&Q(X,{children:[J(L,{bold:!0,children:"Tools: "}),Q(L,{dimColor:!0,children:[P," tools"]})]})]}),$&&J(X,{marginTop:1,children:Q(L,{color:"error",children:["Error: ",$]})}),I.length>0&&J(X,{marginTop:1,children:J(L0,{options:I,onChange:async(q)=>{switch(q){case"tools":Y();break;case"auth":case"reauth":await BP();break;case"clear-auth":await OP();break;case"claudeai-auth":await UP();break;case"claudeai-clear-auth":bP();break;case"reconnectMcpServer":D(!0);try{let F=await Y0(G.name);if(G.config.type==="claudeai-proxy")m("tengu_claudeai_mcp_reconnect",{success:F.client.type==="connected"});let{message:w}=E0(F,G.name);Z?.(w)}catch(F){if(G.config.type==="claudeai-proxy")m("tengu_claudeai_mcp_reconnect",{success:!1});Z?.(V0(F,G.name))}finally{D(!1)}break;case"toggle-enabled":await yP();break;case"back":z();break}},onCancel:z})})]}),J(X,{marginTop:1,children:J(L,{dimColor:!0,italic:!0,children:W.pending?Q(n,{children:["Press ",W.keyName," again to exit"]}):Q(r,{children:[J(h,{shortcut:"↑↓",action:"navigate"}),J(h,{shortcut:"Enter",action:"select"}),J(p,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"})]})})})]})}var E;var $P=P0(()=>{r0();IP();_P();LP();hP();AP();q0();TP();CP();pP();VP();u0();j0();gP();dP();t0();SP();p0();w0();i0();W0();c0();YP();mP();_0();S0();a();E=e($0(),1)});function uG({server:G,serverToolsCount:P,onViewTools:Y,onCancel:z,onComplete:Z,borderless:f=!1}){let[H]=k0(),W=D0(),k=J0((V)=>V.mcp),B=N0(),N=U0(),[$,U]=b0.useState(!1),S=b0.default.useCallback(async()=>{let V=G.client.type!=="disabled";try{await N(G.name),z()}catch(D){Z(`Failed to ${V?"disable":"enable"} MCP server '${G.name}': ${f0(D)}`)}},[G.client.type,G.name,N,z,Z]),M=H0(String(G.name)),b=M0(k.commands,G.name).length,K=[];if(G.client.type!=="disabled"&&P>0)K.push({label:"View tools",value:"tools"});if(G.client.type!=="disabled")K.push({label:"Reconnect",value:"reconnectMcpServer"});if(K.push({label:G.client.type!=="disabled"?"Disable":"Enable",value:"toggle-enabled"}),K.length===0)K.push({label:"Back",value:"back"});if($)return Q(X,{flexDirection:"column",gap:1,padding:1,children:[Q(L,{color:"text",children:["Reconnecting to ",J(L,{bold:!0,children:G.name})]}),Q(X,{children:[J(G0,{}),J(L,{children:" Restarting MCP server process"})]}),J(L,{dimColor:!0,children:"This may take a few moments."})]});return Q(X,{flexDirection:"column",children:[Q(X,{flexDirection:"column",paddingX:1,borderStyle:f?void 0:"round",children:[J(X,{marginBottom:1,children:Q(L,{bold:!0,children:[M," MCP Server"]})}),Q(X,{flexDirection:"column",gap:0,children:[Q(X,{children:[J(L,{bold:!0,children:"Status: "}),G.client.type==="disabled"?Q(L,{children:[C("inactive",H)(_.radioOff)," disabled"]}):G.client.type==="connected"?Q(L,{children:[C("success",H)(_.tick)," connected"]}):G.client.type==="pending"?Q(n,{children:[J(L,{dimColor:!0,children:_.radioOff}),J(L,{children:" connecting…"})]}):Q(L,{children:[C("error",H)(_.cross)," failed"]})]}),Q(X,{children:[J(L,{bold:!0,children:"Command: "}),J(L,{dimColor:!0,children:G.config.command})]}),G.config.args&&G.config.args.length>0&&Q(X,{children:[J(L,{bold:!0,children:"Args: "}),J(L,{dimColor:!0,children:G.config.args.join(" ")})]}),Q(X,{children:[J(L,{bold:!0,children:"Config location: "}),J(L,{dimColor:!0,children:R0(WP(G.name)?.scope??"dynamic")})]}),G.client.type==="connected"&&J(K0,{serverToolsCount:P,serverPromptsCount:b,serverResourcesCount:k.resources[G.name]?.length||0}),G.client.type==="connected"&&P>0&&Q(X,{children:[J(L,{bold:!0,children:"Tools: "}),Q(L,{dimColor:!0,children:[P," tools"]})]})]}),K.length>0&&J(X,{marginTop:1,children:J(L0,{options:K,onChange:async(V)=>{if(V==="tools")Y();else if(V==="reconnectMcpServer"){U(!0);try{let D=await B(G.name),{message:R}=E0(D,G.name);Z?.(R)}catch(D){Z?.(V0(D,G.name))}finally{U(!1)}}else if(V==="toggle-enabled")await S();else if(V==="back")z()},onCancel:z})})]}),J(X,{marginTop:1,children:J(L,{dimColor:!0,italic:!0,children:W.pending?Q(n,{children:["Press ",W.keyName," again to exit"]}):Q(r,{children:[J(h,{shortcut:"↑↓",action:"navigate"}),J(h,{shortcut:"Enter",action:"select"}),J(p,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"})]})})})]})}var b0;var jP=P0(()=>{r0();LP();q0();cP();VP();u0();j0();t0();p0();w0();i0();W0();c0();YP();_0();S0();a();b0=e($0(),1)});function tG(G){let P=FP.c(44),{tool:Y,server:z,onBack:Z}=G,[f,H]=v0.default.useState(""),W,k;if(P[0]!==z.name||P[1]!==Y){k=y0(Y.name,z.name);let s=Y.userFacingName?Y.userFacingName({}):k;W=B0(s),P[0]=z.name,P[1]=Y,P[2]=W,P[3]=k}else W=P[2],k=P[3];let B=W,N;if(P[4]!==Y)N=Y.isReadOnly?.({})??!1,P[4]=Y,P[5]=N;else N=P[5];let $=N,U;if(P[6]!==Y)U=Y.isDestructive?.({})??!1,P[6]=Y,P[7]=U;else U=P[7];let S=U,M;if(P[8]!==Y)M=Y.isOpenWorld?.({})??!1,P[8]=Y,P[9]=M;else M=P[9];let b=M,K,V;if(P[10]!==Y)K=()=>{(async function(){try{let O=await Y.description({},{isNonInteractiveSession:!1,toolPermissionContext:{mode:"default",additionalWorkingDirectories:new Map,alwaysAllowRules:{},alwaysDenyRules:{},alwaysAskRules:{},isBypassPermissionsModeAvailable:!1},tools:[]});H(O)}catch{H("Failed to load description")}})()},V=[Y],P[10]=Y,P[11]=K,P[12]=V;else K=P[11],V=P[12];v0.default.useEffect(K,V);let D;if(P[13]!==$)D=$&&J(L,{color:"success",children:" [read-only]"}),P[13]=$,P[14]=D;else D=P[14];let R;if(P[15]!==S)R=S&&J(L,{color:"error",children:" [destructive]"}),P[15]=S,P[16]=R;else R=P[16];let g;if(P[17]!==b)g=b&&J(L,{dimColor:!0,children:" [open-world]"}),P[17]=b,P[18]=g;else g=P[18];let c;if(P[19]!==B||P[20]!==D||P[21]!==R||P[22]!==g)c=Q(n,{children:[B,D,R,g]}),P[19]=B,P[20]=D,P[21]=R,P[22]=g,P[23]=c;else c=P[23];let j=c,T;if(P[24]===Symbol.for("react.memo_cache_sentinel"))T=J(L,{bold:!0,children:"Tool name: "}),P[24]=T;else T=P[24];let A;if(P[25]!==k)A=Q(X,{children:[T,J(L,{dimColor:!0,children:k})]}),P[25]=k,P[26]=A;else A=P[26];let y;if(P[27]===Symbol.for("react.memo_cache_sentinel"))y=J(L,{bold:!0,children:"Full name: "}),P[27]=y;else y=P[27];let i;if(P[28]!==Y.name)i=Q(X,{children:[y,J(L,{dimColor:!0,children:Y.name})]}),P[28]=Y.name,P[29]=i;else i=P[29];let u;if(P[30]!==f)u=f&&Q(X,{flexDirection:"column",marginTop:1,children:[J(L,{bold:!0,children:"Description:"}),J(L,{wrap:"wrap",children:f})]}),P[30]=f,P[31]=u;else u=P[31];let l;if(P[32]!==Y.inputJSONSchema)l=Y.inputJSONSchema&&Y.inputJSONSchema.properties&&Object.keys(Y.inputJSONSchema.properties).length>0&&Q(X,{flexDirection:"column",marginTop:1,children:[J(L,{bold:!0,children:"Parameters:"}),J(X,{marginLeft:2,flexDirection:"column",children:Object.entries(Y.inputJSONSchema.properties).map((s)=>{let[x,O]=s,Q0=Y.inputJSONSchema?.required?.includes(x);return Q(L,{children:["• ",x,Q0&&J(L,{dimColor:!0,children:" (required)"}),":"," ",J(L,{dimColor:!0,children:typeof O==="object"&&O&&"type"in O?String(O.type):"unknown"}),typeof O==="object"&&O&&"description"in O&&Q(L,{dimColor:!0,children:[" - ",String(O.description)]})]},x)})})]}),P[32]=Y.inputJSONSchema,P[33]=l;else l=P[33];let v;if(P[34]!==A||P[35]!==i||P[36]!==u||P[37]!==l)v=Q(X,{flexDirection:"column",children:[A,i,u,l]}),P[34]=A,P[35]=i,P[36]=u,P[37]=l,P[38]=v;else v=P[38];let o;if(P[39]!==Z||P[40]!==z.name||P[41]!==v||P[42]!==j)o=J(O0,{title:j,subtitle:z.name,onCancel:Z,inputGuide:iP,children:v}),P[39]=Z,P[40]=z.name,P[41]=v,P[42]=j,P[43]=o;else o=P[43];return o}function iP(G){return G.pending?Q(L,{children:["Press ",G.keyName," again to exit"]}):J(p,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"go back"})}var FP,v0;var uP=P0(()=>{q0();KP();w0();EP();a();FP=e(I0(),1),v0=e($0(),1)});function VJ(G){let P=HP.c(21),{server:Y,onSelectTool:z,onBack:Z}=G,f=J0(xP),H;P:{if(Y.client.type!=="connected"){let V;if(P[0]===Symbol.for("react.memo_cache_sentinel"))V=[],P[0]=V;else V=P[0];H=V;break P}let K;if(P[1]!==f||P[2]!==Y.name)K=fP(f,Y.name),P[1]=f,P[2]=Y.name,P[3]=K;else K=P[3];H=K}let W=H,k;if(P[4]!==Y.name||P[5]!==W){let K;if(P[7]!==Y.name)K=(V,D)=>{let R=y0(V.name,Y.name),g=V.userFacingName?V.userFacingName({}):R,c=B0(g),j=V.isReadOnly?.({})??!1,T=V.isDestructive?.({})??!1,A=V.isOpenWorld?.({})??!1,y=[];if(j)y.push("read-only");if(T)y.push("destructive");if(A)y.push("open-world");return{label:c,value:D.toString(),description:y.length>0?y.join(", "):void 0,descriptionColor:T?"error":j?"success":void 0}},P[7]=Y.name,P[8]=K;else K=P[8];k=W.map(K),P[4]=Y.name,P[5]=W,P[6]=k}else k=P[6];let B=k,N=`Tools for ${Y.name}`,$=W.length,U;if(P[9]!==W.length)U=zP(W.length,"tool"),P[9]=W.length,P[10]=U;else U=P[10];let S=`${$} ${U}`,M;if(P[11]!==Z||P[12]!==z||P[13]!==W||P[14]!==B)M=W.length===0?J(L,{dimColor:!0,children:"No tools available"}):J(L0,{options:B,onChange:(K)=>{let V=parseInt(K),D=W[V];if(D)z(D,V)},onCancel:Z}),P[11]=Z,P[12]=z,P[13]=W,P[14]=B,P[15]=M;else M=P[15];let b;if(P[16]!==Z||P[17]!==N||P[18]!==S||P[19]!==M)b=J(O0,{title:N,subtitle:S,onCancel:Z,inputGuide:vP,children:M}),P[16]=Z,P[17]=N,P[18]=S,P[19]=M,P[20]=b;else b=P[20];return b}function vP(G){return G.pending?Q(L,{children:["Press ",G.keyName," again to exit"]}):Q(r,{children:[J(h,{shortcut:"↑↓",action:"navigate"}),J(h,{shortcut:"Enter",action:"select"}),J(p,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"})]})}function xP(G){return G.mcp.tools}var HP;var aP=P0(()=>{q0();KP();u0();j0();p0();w0();i0();W0();EP();c0();a();HP=e(I0(),1)});
|
|
2
|
+
export{bG as Pe,$P as Qe,uG as Re,jP as Se,tG as Te,uP as Ue,VJ as Ve,aP as We};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{mh as R,oh as y,ph as v}from"./cli-0.5.8-r3r9r1x8.mjs";import{TW as K,wX as E,yV as c}from"./cli-0.5.8-nwe7yne9.mjs";import{WY as O,XY as N,YY as M,ZY as U}from"./cli-0.5.8-zkn5gecs.mjs";import{_Y as G}from"./cli-0.5.8-6epmns99.mjs";import{X$ as L,paa as b}from"./cli-0.5.8-qf19nfhv.mjs";import{bca as Z,nca as W}from"./cli-0.5.8-5h92528m.mjs";import{oea as p}from"./cli-0.5.8-9fpm1ms3.mjs";import{vna as F,zna as j}from"./cli-0.5.8-hkfwdsmy.mjs";function f(){let q=R();if(!q||!q.available||q.granted)return!1;return y(q)!==null}function r(){if(!f())return!1;let q=L();if(q.hasVisitedExtraUsage)return!1;if((q.overageCreditUpsellSeenCount??0)>=T)return!1;return!0}function C(q){return`${q} in extra usage for third-party apps · /extra-usage`}function w(q){return`${q} in extra usage`}function n(q){let k=S.c(8),{maxWidth:z,twoLine:P}=q,Q,H;if(k[0]!==z||k[1]!==P){H=Symbol.for("react.early_return_sentinel");k:{let A=R();if(!A){H=null;break k}let V=y(A);if(!V){H=null;break k}if(P){let I=w(V),J;if(k[4]!==z)J=z?Z(_,z):_,k[4]=z,k[5]=J;else J=k[5];let Y;if(k[6]!==J)Y=N(K,{dimColor:!0,children:J}),k[6]=J,k[7]=Y;else Y=k[7];H=M(O,{children:[N(K,{color:"claude",children:z?Z(I,z):I}),Y]});break k}let B=C(V),X=z?Z(B,z):B,D=Math.min(w(V).length,X.length);Q=M(K,{dimColor:!0,children:[N(K,{color:"claude",children:X.slice(0,D)}),X.slice(D)]})}k[0]=z,k[1]=P,k[2]=Q,k[3]=H}else Q=k[2],H=k[3];if(H!==Symbol.for("react.early_return_sentinel"))return H;return Q}var S,$,T=3,_="On us. Works on third-party apps · /extra-usage";var l=j(()=>{E();p();v();b();W();U();S=F(c(),1),$=F(G(),1)});
|
|
2
|
+
export{f as Mf,r as Nf,n as Of,l as Pf};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{Ek as X,Jk as Af,Mz as Z,Nz as $f,OP as Bf,PP as Hf,Yj as m,fF as v,gF as zf,hO as n,hk as R,jO as Xf,kk as N,km as c,lk as M,lm as Yf,rk as yf,uD as S,vD as qf}from"./cli-0.5.8-4hvxb5dp.mjs";import{jR as a,kR as Jf}from"./cli-0.5.8-f1znt77k.mjs";import{RW as T,TW as d,wX as _f,yV as If}from"./cli-0.5.8-nwe7yne9.mjs";import{XY as Y,YY as D,ZY as P}from"./cli-0.5.8-zkn5gecs.mjs";import{_Y as Of}from"./cli-0.5.8-6epmns99.mjs";import{$5 as b,b6 as Gf}from"./cli-0.5.8-qf19nfhv.mjs";import{mea as L,oea as e}from"./cli-0.5.8-9fpm1ms3.mjs";import{ofa as W,rfa as ff}from"./cli-0.5.8-xs1gy1tk.mjs";import{vna as g,wna as s,zna as k}from"./cli-0.5.8-hkfwdsmy.mjs";function E(){(Hf(),s(Bf)).saveWorktreeState(null)}function l({onDone:K,onCancel:_}){let[$,y]=q.useState("loading"),[O,I]=q.useState([]),[G,z]=q.useState(0),[p,A]=q.useState(),f=m();if(q.useEffect(()=>{async function B(){let J=[],H=await b("git",["status","--porcelain"]);if(H.stdout)J=H.stdout.split(`
|
|
2
|
+
`).filter((V)=>V.trim()!==""),I(J);if(f){let{stdout:V}=await b("git",["rev-list","--count",`${f.originalHeadCommit}..HEAD`]),w=parseInt(V.trim())||0;if(z(w),J.length===0&&w===0){y("removing"),M().then(()=>{process.chdir(f.originalCwd),Z(f.originalCwd),E(),X.cache.clear?.(),A("Worktree removed (no changes)")}).catch((t)=>{W(`Failed to clean up worktree: ${t}`,{level:"error"}),A("Worktree cleanup failed, exiting anyway")}).then(()=>{y("done")});return}else y("asking")}}B()},[f]),q.useEffect(()=>{if($==="done")K(p)},[$,K,p]),!f)return K("No active worktree session found",{display:"system"}),null;if($==="loading"||$==="done")return null;async function j(B){if(!f)return;let J=Boolean(f.tmuxSessionName);if(B==="keep"||B==="keep-with-tmux"){if(y("keeping"),L("tengu_worktree_kept",{commits:G,changed_files:O.length}),await N(),process.chdir(f.originalCwd),Z(f.originalCwd),E(),X.cache.clear?.(),J)A(`Worktree kept. Your work is saved at ${f.worktreePath} on branch ${f.worktreeBranch}. Reattach to tmux session with: tmux attach -t ${f.tmuxSessionName}`);else A(`Worktree kept. Your work is saved at ${f.worktreePath} on branch ${f.worktreeBranch}`);y("done")}else if(B==="keep-kill-tmux"){if(y("keeping"),L("tengu_worktree_kept",{commits:G,changed_files:O.length}),f.tmuxSessionName)await R(f.tmuxSessionName);await N(),process.chdir(f.originalCwd),Z(f.originalCwd),E(),X.cache.clear?.(),A(`Worktree kept at ${f.worktreePath} on branch ${f.worktreeBranch}. Tmux session terminated.`),y("done")}else if(B==="remove"||B==="remove-with-tmux"){if(y("removing"),L("tengu_worktree_removed",{commits:G,changed_files:O.length}),f.tmuxSessionName)await R(f.tmuxSessionName);try{await M(),process.chdir(f.originalCwd),Z(f.originalCwd),E(),X.cache.clear?.()}catch(V){W(`Failed to clean up worktree: ${V}`,{level:"error"}),A("Worktree cleanup failed, exiting anyway"),y("done");return}let H=J?" Tmux session terminated.":"";if(G>0&&O.length>0)A(`Worktree removed. ${G} ${G===1?"commit":"commits"} and uncommitted changes were discarded.${H}`);else if(G>0)A(`Worktree removed. ${G} ${G===1?"commit":"commits"} on ${f.worktreeBranch} ${G===1?"was":"were"} discarded.${H}`);else if(O.length>0)A(`Worktree removed. Uncommitted changes were discarded.${H}`);else A(`Worktree removed.${H}`);y("done")}}if($==="keeping")return D(T,{flexDirection:"row",marginY:1,children:[Y(v,{}),Y(d,{children:"Keeping worktree…"})]});if($==="removing")return D(T,{flexDirection:"row",marginY:1,children:[Y(v,{}),Y(d,{children:"Removing worktree…"})]});let x=f.worktreeBranch,U=O.length>0,F=G>0,Q="";if(U&&F)Q=`You have ${O.length} uncommitted ${O.length===1?"file":"files"} and ${G} ${G===1?"commit":"commits"} on ${x}. All will be lost if you remove.`;else if(U)Q=`You have ${O.length} uncommitted ${O.length===1?"file":"files"}. These will be lost if you remove the worktree.`;else if(F)Q=`You have ${G} ${G===1?"commit":"commits"} on ${x}. The branch will be deleted if you remove the worktree.`;else Q="You are working in a worktree. Keep it to continue working there, or remove it to clean up.";function r(){if(_){_();return}j("keep")}let h=U||F?"All changes and commits will be lost.":"Clean up the worktree directory.",C=Boolean(f.tmuxSessionName),o=C?[{label:"Keep worktree and tmux session",value:"keep-with-tmux",description:`Stays at ${f.worktreePath}. Reattach with: tmux attach -t ${f.tmuxSessionName}`},{label:"Keep worktree, kill tmux session",value:"keep-kill-tmux",description:`Keeps worktree at ${f.worktreePath}, terminates tmux session.`},{label:"Remove worktree and tmux session",value:"remove-with-tmux",description:h}]:[{label:"Keep worktree",value:"keep",description:`Stays at ${f.worktreePath}`},{label:"Remove worktree",value:"remove",description:h}];return Y(c,{title:"Exiting worktree session",subtitle:Q,onCancel:r,children:Y(S,{defaultFocusValue:C?"keep-with-tmux":"keep",options:o,onChange:j})})}var q;var u=k(()=>{e();ff();_f();Gf();Af();$f();yf();qf();Yf();zf();P();q=g(Of(),1)});function Qf(){return a(Kf)??"Goodbye!"}function xf(K){let _=i.c(5),{showWorktree:$,onDone:y,onCancel:O}=K,I;if(_[0]!==y)I=async function(p){y(p??Qf()),await n(0,"prompt_input_exit")},_[0]=y,_[1]=I;else I=_[1];let G=I;if($){let z;if(_[2]!==O||_[3]!==G)z=Y(l,{onDone:G,onCancel:O}),_[2]=O,_[3]=G,_[4]=z;else z=_[4];return z}return null}var i,Kf;var Vf=k(()=>{Jf();Xf();u();P();i=g(If(),1),Kf=["Goodbye!","See ya!","Bye!","Catch you later!"]});
|
|
3
|
+
export{xf as lc,Vf as mc};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{TW as K,wX as k,yV as Z}from"./cli-0.5.8-nwe7yne9.mjs";import{YY as J,ZY as H}from"./cli-0.5.8-zkn5gecs.mjs";import{K5 as v,L5 as Y}from"./cli-0.5.8-qf19nfhv.mjs";import{vna as V,zna as X}from"./cli-0.5.8-hkfwdsmy.mjs";function N(M){let b=L.c(5),{status:P,withSpace:D}=M,Q=D===void 0?!1:D,q=A[P],z=!q.color,B=Q&&" ",y;if(b[0]!==q.color||b[1]!==q.icon||b[2]!==z||b[3]!==B)y=J(K,{color:q.color,dimColor:z,children:[q.icon,B]}),b[0]=q.color,b[1]=q.icon,b[2]=z,b[3]=B,b[4]=y;else y=b[4];return y}var L,A;var C=X(()=>{Y();k();H();L=V(Z(),1),A={success:{icon:v.tick,color:"success"},error:{icon:v.cross,color:"error"},warning:{icon:v.warning,color:"warning"},info:{icon:v.info,color:"suggestion"},pending:{icon:v.circle,color:void 0},loading:{icon:"…",color:void 0}}});
|
|
2
|
+
export{N as gg,C as hg};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{zna as V}from"./cli-0.5.8-hkfwdsmy.mjs";var k0,b;var T=V(()=>{k0=typeof global=="object"&&global&&global.Object===Object&&global,b=k0});var m0,y0,K;var z=V(()=>{T();m0=typeof self=="object"&&self&&self.Object===Object&&self,y0=b||m0||Function("return this")(),K=y0});var l0,B;var x=V(()=>{z();l0=K.Symbol,B=l0});function c0(q){var Z=v0.call(q,N),Q=q[N];try{q[N]=void 0;var Y=!0}catch(L){}var A=u0.call(q);if(Y)if(Z)q[N]=Q;else delete q[N];return A}var j,v0,u0,N,C;var f=V(()=>{x();j=Object.prototype,v0=j.hasOwnProperty,u0=j.toString,N=B?B.toStringTag:void 0;C=c0});function i0(q){return o0.call(q)}var h0,o0,g;var d=V(()=>{h0=Object.prototype,o0=h0.toString;g=i0});function s0(q){if(q==null)return q===void 0?r0:n0;return p&&p in Object(q)?C(q):g(q)}var n0="[object Null]",r0="[object Undefined]",p,k;var m=V(()=>{x();f();d();p=B?B.toStringTag:void 0;k=s0});function t0(q){var Z=typeof q;return q!=null&&(Z=="object"||Z=="function")}var G;var O=V(()=>{G=t0});function Qq(q){if(!G(q))return!1;var Z=k(q);return Z==e0||Z==qq||Z==a0||Z==Zq}var a0="[object AsyncFunction]",e0="[object Function]",qq="[object GeneratorFunction]",Zq="[object Proxy]",y;var l=V(()=>{m();O();y=Qq});var Vq,I;var v=V(()=>{z();Vq=K["__core-js_shared__"],I=Vq});function Yq(q){return!!u&&u in q}var u,c;var h=V(()=>{v();u=function(){var q=/[^.]+$/.exec(I&&I.keys&&I.keys.IE_PROTO||"");return q?"Symbol(src)_1."+q:""}();c=Yq});function Xq(q){if(q!=null){try{return Wq.call(q)}catch(Z){}try{return q+""}catch(Z){}}return""}var $q,Wq,o;var i=V(()=>{$q=Function.prototype,Wq=$q.toString;o=Xq});function Nq(q){if(!G(q)||c(q))return!1;var Z=y(q)?Lq:Bq;return Z.test(o(q))}var Kq,Bq,Jq,Uq,Eq,Aq,Lq,n;var r=V(()=>{l();h();O();i();Kq=/[\\^$.*+?()[\]{}|]/g,Bq=/^\[object .+?Constructor\]$/,Jq=Function.prototype,Uq=Object.prototype,Eq=Jq.toString,Aq=Uq.hasOwnProperty,Lq=RegExp("^"+Eq.call(Aq).replace(Kq,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");n=Nq});function wq(q,Z){return q==null?void 0:q[Z]}var s;var t=V(()=>{s=wq});function Fq(q,Z){var Q=s(q,Z);return n(Q)?Q:void 0}var D;var R=V(()=>{r();t();D=Fq});var Pq,$;var w=V(()=>{R();Pq=D(Object,"create"),$=Pq});function zq(){this.__data__=$?$(null):{},this.size=0}var a;var e=V(()=>{w();a=zq});function Gq(q){var Z=this.has(q)&&delete this.__data__[q];return this.size-=Z?1:0,Z}var q0;var Z0=V(()=>{q0=Gq});function Oq(q){var Z=this.__data__;if($){var Q=Z[q];return Q===Iq?void 0:Q}return xq.call(Z,q)?Z[q]:void 0}var Iq="__lodash_hash_undefined__",Dq,xq,Q0;var V0=V(()=>{w();Dq=Object.prototype,xq=Dq.hasOwnProperty;Q0=Oq});function Mq(q){var Z=this.__data__;return $?Z[q]!==void 0:Hq.call(Z,q)}var Rq,Hq,Y0;var $0=V(()=>{w();Rq=Object.prototype,Hq=Rq.hasOwnProperty;Y0=Mq});function Sq(q,Z){var Q=this.__data__;return this.size+=this.has(q)?0:1,Q[q]=$&&Z===void 0?_q:Z,this}var _q="__lodash_hash_undefined__",W0;var X0=V(()=>{w();W0=Sq});function J(q){var Z=-1,Q=q==null?0:q.length;this.clear();while(++Z<Q){var Y=q[Z];this.set(Y[0],Y[1])}}var H;var K0=V(()=>{e();Z0();V0();$0();X0();J.prototype.clear=a;J.prototype.delete=q0;J.prototype.get=Q0;J.prototype.has=Y0;J.prototype.set=W0;H=J});function bq(){this.__data__=[],this.size=0}var B0;var J0=V(()=>{B0=bq});function Tq(q,Z){return q===Z||q!==q&&Z!==Z}var U0;var E0=V(()=>{U0=Tq});function jq(q,Z){var Q=q.length;while(Q--)if(U0(q[Q][0],Z))return Q;return-1}var W;var F=V(()=>{E0();W=jq});function gq(q){var Z=this.__data__,Q=W(Z,q);if(Q<0)return!1;var Y=Z.length-1;if(Q==Y)Z.pop();else fq.call(Z,Q,1);return--this.size,!0}var Cq,fq,A0;var L0=V(()=>{F();Cq=Array.prototype,fq=Cq.splice;A0=gq});function dq(q){var Z=this.__data__,Q=W(Z,q);return Q<0?void 0:Z[Q][1]}var N0;var w0=V(()=>{F();N0=dq});function pq(q){return W(this.__data__,q)>-1}var F0;var P0=V(()=>{F();F0=pq});function kq(q,Z){var Q=this.__data__,Y=W(Q,q);if(Y<0)++this.size,Q.push([q,Z]);else Q[Y][1]=Z;return this}var z0;var G0=V(()=>{F();z0=kq});function U(q){var Z=-1,Q=q==null?0:q.length;this.clear();while(++Z<Q){var Y=q[Z];this.set(Y[0],Y[1])}}var I0;var D0=V(()=>{J0();L0();w0();P0();G0();U.prototype.clear=B0;U.prototype.delete=A0;U.prototype.get=N0;U.prototype.has=F0;U.prototype.set=z0;I0=U});var mq,x0;var O0=V(()=>{R();z();mq=D(K,"Map"),x0=mq});function yq(){this.size=0,this.__data__={hash:new H,map:new(x0||I0),string:new H}}var R0;var H0=V(()=>{K0();D0();O0();R0=yq});function lq(q){var Z=typeof q;return Z=="string"||Z=="number"||Z=="symbol"||Z=="boolean"?q!=="__proto__":q===null}var M0;var _0=V(()=>{M0=lq});function vq(q,Z){var Q=q.__data__;return M0(Z)?Q[typeof Z=="string"?"string":"hash"]:Q.map}var X;var P=V(()=>{_0();X=vq});function uq(q){var Z=X(this,q).delete(q);return this.size-=Z?1:0,Z}var S0;var b0=V(()=>{P();S0=uq});function cq(q){return X(this,q).get(q)}var T0;var j0=V(()=>{P();T0=cq});function hq(q){return X(this,q).has(q)}var C0;var f0=V(()=>{P();C0=hq});function oq(q,Z){var Q=X(this,q),Y=Q.size;return Q.set(q,Z),this.size+=Q.size==Y?0:1,this}var g0;var d0=V(()=>{P();g0=oq});function E(q){var Z=-1,Q=q==null?0:q.length;this.clear();while(++Z<Q){var Y=q[Z];this.set(Y[0],Y[1])}}var M;var p0=V(()=>{H0();b0();j0();f0();d0();E.prototype.clear=R0;E.prototype.delete=S0;E.prototype.get=T0;E.prototype.has=C0;E.prototype.set=g0;M=E});function _(q,Z){if(typeof q!="function"||Z!=null&&typeof Z!="function")throw TypeError(iq);var Q=function(){var Y=arguments,A=Z?Z.apply(this,Y):Y[0],L=Q.cache;if(L.has(A))return L.get(A);var S=q.apply(this,Y);return Q.cache=L.set(A,S)||L,S};return Q.cache=new(_.Cache||M),Q}var iq="Expected a function",j6;var nq=V(()=>{p0();_.Cache=M;j6=_});
|
|
2
|
+
export{U0 as Kla,E0 as Lla,I0 as Mla,D0 as Nla,b as Ola,T as Pla,K as Qla,z as Rla,B as Sla,x as Tla,k as Ula,m as Vla,G as Wla,O as Xla,y as Yla,l as Zla,o as _la,i as $la,D as ama,R as bma,x0 as cma,O0 as dma,M as ema,p0 as fma,j6 as gma,nq as hma};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import{Wa as LY}from"./cli-0.5.8-96p83b7z.mjs";import{Wc as HY,Zc as lQ}from"./cli-0.5.8-cc6m9nm7.mjs";import{wh as kY,xh as zW}from"./cli-0.5.8-bv8mzvsr.mjs";import{$A as HW,$k as EZ,$n as qY,Aj as L9,Ar as VY,Bj as z9,Br as mQ,Bt as F0,Bx as BW,Cj as iY,Cr as fY,DN as wZ,Di as RY,Et as l9,Kn as O9,LA as KY,LK as JY,LL as uY,Ln as dW,MA as cQ,NK as dQ,Nq as $0,PN as lY,Qq as j0,Rq as TZ,TH as U9,UL as mY,VH as E9,Vq as d9,WL as cY,XA as GY,XM as s,YA as gQ,YN as aY,Yk as UZ,ZA as IY,ZH as y9,_L as AW,_n as nZ,aO as NY,al as o0,ao as $Z,ay as hY,bN as gY,bo as DY,cy as LW,dB as i,dO as BY,dv as R0,eI as lW,ev as kZ,fB as vW,fF as b0,fv as f0,gF as n9,gv as S0,gz as xY,hN as dY,hv as h0,hz as qW,iN as SZ,iv as k0,iy as MY,jH as yY,jv as xZ,jy as bY,kv as pZ,ky as JW,lv as x0,lz as pY,mH as XW,mN as hZ,mv as p0,mz as DW,nv as u0,ov as m0,pv as c0,qv as g0,rj as J9,rv as d0,sj as SW,sv as l0,tj as H9,tv as a0,uD as M0,uj as N9,uv as WQ,vD as a9,vi as XZ,vj as FZ,wj as eZ,xj as B9,yi as w0,yj as WZ,yr as s0,yx as SY,zj as Z0,zr as fQ}from"./cli-0.5.8-4hvxb5dp.mjs";import{vT as eY,zT as bW}from"./cli-0.5.8-tknpvwjq.mjs";import{fU as y0,gU as c9}from"./cli-0.5.8-3fnpjffd.mjs";import{GU as O0,HU as u9,UU as U0,VU as E0,WU as m9,aV as P0,bV as g9}from"./cli-0.5.8-60e57smp.mjs";import{RW as p,TW as F,wX as p9,yV as x9}from"./cli-0.5.8-nwe7yne9.mjs";import{WY as a,XY as E,YY as M,ZY as V0}from"./cli-0.5.8-zkn5gecs.mjs";import{_Y as k9}from"./cli-0.5.8-6epmns99.mjs";import{C3 as WW,F2 as EY,a1 as UY,e1 as QW}from"./cli-0.5.8-rddkqxh8.mjs";import{B7 as IZ,D7 as f9,Dba as A0,G7 as _9,Gba as h9,H9 as w9,K5 as vZ,Kba as e,L5 as R9,O9 as gW,Sba as _0,W6 as mW,X5 as XY,Y_ as OY,Z5 as uQ,Z9 as _Y,_9 as wY,a8 as cW,a_ as ZW,d8 as tY,f$ as YW,i8 as MW,x6 as A9}from"./cli-0.5.8-qf19nfhv.mjs";import{bca as J0,jca as H0,nca as T9}from"./cli-0.5.8-5h92528m.mjs";import{$ca as OZ,Xca as Y,Yca as k,Zca as KZ,_ca as q}from"./cli-0.5.8-bjqx8j31.mjs";import{kda as nY,vda as OW}from"./cli-0.5.8-7fm71y20.mjs";import{Bda as CZ,Eda as N0,Fda as B0,Gda as L0,Hda as z0,Kda as q0,Lda as D0,Xda as v0,bea as S9,yda as AY,zda as eQ}from"./cli-0.5.8-w7g735pf.mjs";import{mea as d,oea as _Z}from"./cli-0.5.8-9fpm1ms3.mjs";import{Tea as ZZ,Uea as QY,Yea as PZ,ofa as b,rea as sY,rfa as GZ,tea as FW}from"./cli-0.5.8-xs1gy1tk.mjs";import{tfa as WY,xfa as pQ}from"./cli-0.5.8-qvy0n26p.mjs";import{Jfa as YY,Rfa as v9,Sfa as oZ,Yfa as gZ}from"./cli-0.5.8-959n5v33.mjs";import{Bka as G9,Gla as FY,Jla as HZ,Sha as JZ,Yha as Y0,Zha as oY,fja as vY,xka as V9,yka as zZ,zka as K9}from"./cli-0.5.8-bhc8vwxd.mjs";import{Ana as aZ,vna as G0,yna as fZ,zna as AZ}from"./cli-0.5.8-hkfwdsmy.mjs";var YQ={};fZ(YQ,{selectableUserMessagesFilter:()=>T0,messagesAfterAreOnlySynthetic:()=>ZQ,MessageSelector:()=>r9});import{randomUUID as i9}from"crypto";import*as QZ from"path";function I0(Q){return Q.type==="text"}function RZ(Q){return Q==="summarize"||Q==="summarize_up_to"}function r9({messages:Q,onPreRestore:Z,onRestoreMessage:W,onRestoreCode:X,onSummarize:V,onClose:J,preselectedMessage:K}){let H=F0((U)=>U.fileHistory),[B,z]=I.useState(void 0),G=$0(),L=I.useMemo(i9,[]),w=I.useMemo(()=>[...Q.filter(T0),{...s({content:""}),uuid:L}],[Q,L]),[v,_]=I.useState(w.length-1),P=Math.max(0,Math.min(v-Math.floor(bZ/2),w.length-bZ)),C=w.length>1,[D,$]=I.useState(K),[y,T]=I.useState(void 0);I.useEffect(()=>{if(!K||!G)return;let U=!1;return TZ(H,K.uuid).then((f)=>{if(!U)T(f)}),()=>{U=!0}},[K,G,H]);let[O,j]=I.useState(!1),[l,n]=I.useState(null),[S,m]=I.useState("both"),[g,x]=I.useState(""),[A,N]=I.useState("");function R(U){let f=U?[{value:"both",label:"Restore code and conversation"},{value:"conversation",label:"Restore conversation"},{value:"code",label:"Restore code"}]:[{value:"conversation",label:"Restore conversation"}],u={type:"input",placeholder:"add context (optional)",initialValue:"",allowEmptySubmitToCancel:!0,showLabelWithValue:!0,labelValueSeparator:": "};return f.push({value:"summarize",label:"Summarize from here",...u,onChange:x}),f.push({value:"nevermind",label:"Never mind"}),f}I.useEffect(()=>{d("tengu_message_selector_opened",{})},[]);async function h(U){Z(),j(!0);try{await W(U),j(!1),J()}catch(f){e(f),j(!1),z(`Failed to restore the conversation:
|
|
2
|
+
${f}`)}}async function r(U){let f=Q.indexOf(U),u=Q.length-1-f;if(d("tengu_message_selector_selected",{index_from_end:u,message_type:U.type,is_current_prompt:!1}),!Q.includes(U)){J();return}if(!G){await h(U);return}let c=await TZ(H,U.uuid);$(U),T(c)}async function t(U){if(d("tengu_message_selector_restore_option_selected",{option:U}),!D){z("Message not found.");return}if(U==="nevermind"){if(K)J();else $(void 0);return}if(RZ(U)){Z(),j(!0),n(U),z(void 0);try{let c=U==="summarize_up_to"?"up_to":"from",YZ=(c==="up_to"?A:g).trim()||void 0;await V(D,YZ,c),j(!1),n(null),$(void 0),J()}catch(c){e(c),j(!1),n(null),$(void 0),z(`Failed to summarize:
|
|
3
|
+
${c}`)}return}Z(),j(!0),z(void 0);let f=null,u=null;if(U==="code"||U==="both")try{await X(D)}catch(c){f=c,e(f)}if(U==="conversation"||U==="both")try{await W(D)}catch(c){u=c,e(u)}if(j(!1),$(void 0),u&&f)z(`Failed to restore the conversation and code:
|
|
4
|
+
${u}
|
|
5
|
+
${f}`);else if(u)z(`Failed to restore the conversation:
|
|
6
|
+
${u}`);else if(f)z(`Failed to restore the code:
|
|
7
|
+
${f}`);else J()}let Q0=y0(),$9=I.useCallback(()=>{if(D&&!K){$(void 0);return}d("tengu_message_selector_cancelled",{}),J()},[J,D,K]),j9=I.useCallback(()=>_((U)=>Math.max(0,U-1)),[]),F9=I.useCallback(()=>_((U)=>Math.min(w.length-1,U+1)),[w.length]),M9=I.useCallback(()=>_(0),[]),b9=I.useCallback(()=>_(w.length-1),[w.length]),I9=I.useCallback(()=>{let U=w[v];if(U)r(U)},[w,v,r]);U0("confirm:no",$9,{context:"Confirmation",isActive:!D}),E0({"messageSelector:up":j9,"messageSelector:down":F9,"messageSelector:top":M9,"messageSelector:bottom":b9,"messageSelector:select":I9},{context:"MessageSelector",isActive:!O&&!B&&!D&&C});let[W0,X0]=I.useState({});I.useEffect(()=>{async function U(){if(!G)return;Promise.all(w.map(async(f,u)=>{if(f.uuid!==L){let c=j0(H,f.uuid),YZ=w.at(u+1),DZ=c?e9(Q,f.uuid,YZ?.uuid!==L?YZ?.uuid:void 0):void 0;if(DZ!==void 0)X0((o)=>({...o,[u]:DZ}));else X0((o)=>({...o,[u]:void 0}))}}))}U()},[w,Q,L,H,G]);let qZ=G&&y?.filesChanged&&y.filesChanged.length>0,C9=!B&&!D&&!K&&C;return M(p,{flexDirection:"column",width:"100%",children:[E(P0,{color:"suggestion"}),M(p,{flexDirection:"column",marginX:1,gap:1,children:[E(F,{bold:!0,color:"suggestion",children:"Rewind"}),B&&E(a,{children:M(F,{color:"error",children:["Error: ",B]})}),!C&&E(a,{children:E(F,{children:"Nothing to rewind to yet."})}),!B&&D&&C&&M(a,{children:[M(F,{children:["Confirm you want to restore"," ",!y&&"the conversation ","to the point before you sent this message:"]}),M(p,{flexDirection:"column",paddingLeft:1,borderStyle:"single",borderRight:!1,borderTop:!1,borderBottom:!1,borderLeft:!0,borderLeftDimColor:!0,children:[E(K0,{userMessage:D,color:"text",isCurrent:!1}),M(F,{dimColor:!0,children:["(",H0(new Date(D.timestamp)),")"]})]}),E(s9,{selectedRestoreOption:S,canRestoreCode:!!qZ,diffStatsForRestore:y}),O&&RZ(l)?M(p,{flexDirection:"row",gap:1,children:[E(b0,{}),E(F,{children:"Summarizing…"})]}):E(M0,{isDisabled:O,options:R(!!qZ),defaultFocusValue:qZ?"both":"conversation",onFocus:(U)=>m(U),onChange:(U)=>t(U),onCancel:()=>K?J():$(void 0)}),qZ&&E(p,{marginBottom:1,children:M(F,{dimColor:!0,children:[vZ.warning," Rewinding does not affect files edited manually or via bash."]})})]}),C9&&M(a,{children:[G?E(F,{children:"Restore the code and/or conversation to the point before…"}):E(F,{children:"Restore and fork the conversation to the point before…"}),E(p,{width:"100%",flexDirection:"column",children:w.slice(P,P+bZ).map((U,f)=>{let u=P+f,c=u===v,YZ=U.uuid===L,DZ=u in W0,o=W0[u],MZ=o?.filesChanged&&o.filesChanged.length;return M(p,{height:G?3:2,overflow:"hidden",width:"100%",flexDirection:"row",children:[E(p,{width:2,minWidth:2,children:c?M(F,{color:"permission",bold:!0,children:[vZ.pointer," "]}):E(F,{children:" "})}),M(p,{flexDirection:"column",children:[E(p,{flexShrink:1,height:1,overflow:"hidden",children:E(K0,{userMessage:U,color:c?"suggestion":void 0,isCurrent:YZ,paddingRight:10})}),G&&DZ&&E(p,{height:1,flexDirection:"row",children:o?E(a,{children:E(F,{dimColor:!c,color:"inactive",children:MZ?M(a,{children:[MZ===1&&o.filesChanged[0]?`${QZ.basename(o.filesChanged[0])} `:`${MZ} files changed `,E(C0,{diffStats:o})]}):E(a,{children:"No code changes"})})}):M(F,{dimColor:!0,color:"warning",children:[vZ.warning," No code restore"]})})]})]},U.uuid)})})]}),!D&&E(F,{dimColor:!0,italic:!0,children:Q0.pending?M(a,{children:["Press ",Q0.keyName," again to exit"]}):M(a,{children:[!B&&C&&"Enter to continue · ","Esc to exit"]})})]})]})}function o9(Q){switch(Q){case"summarize":return"Messages after this point will be summarized.";case"summarize_up_to":return"Preceding messages will be summarized. This and subsequent messages will remain unchanged — you will stay at the end of the conversation.";case"both":case"conversation":return"The conversation will be forked.";case"code":case"nevermind":return"The conversation will be unchanged."}}function s9(Q){let Z=VZ.c(11),{selectedRestoreOption:W,canRestoreCode:X,diffStatsForRestore:V}=Q,J=X&&(W==="both"||W==="code"),K;if(Z[0]!==W)K=o9(W),Z[0]=W,Z[1]=K;else K=Z[1];let H;if(Z[2]!==K)H=E(F,{dimColor:!0,children:K}),Z[2]=K,Z[3]=H;else H=Z[3];let B;if(Z[4]!==V||Z[5]!==W||Z[6]!==J)B=!RZ(W)&&(J?E(t9,{diffStatsForRestore:V}):E(F,{dimColor:!0,children:"The code will be unchanged."})),Z[4]=V,Z[5]=W,Z[6]=J,Z[7]=B;else B=Z[7];let z;if(Z[8]!==H||Z[9]!==B)z=M(p,{flexDirection:"column",children:[H,B]}),Z[8]=H,Z[9]=B,Z[10]=z;else z=Z[10];return z}function t9(Q){let Z=VZ.c(14),{diffStatsForRestore:W}=Q;if(W===void 0)return;if(!W.filesChanged||!W.filesChanged[0]){let H;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))H=E(F,{dimColor:!0,children:"The code has not changed (nothing will be restored)."}),Z[0]=H;else H=Z[0];return H}let X=W.filesChanged.length,V;if(X===1){let H;if(Z[1]!==W.filesChanged[0])H=QZ.basename(W.filesChanged[0]||""),Z[1]=W.filesChanged[0],Z[2]=H;else H=Z[2];V=H}else if(X===2){let H;if(Z[3]!==W.filesChanged[0])H=QZ.basename(W.filesChanged[0]||""),Z[3]=W.filesChanged[0],Z[4]=H;else H=Z[4];let B=H,z;if(Z[5]!==W.filesChanged[1])z=QZ.basename(W.filesChanged[1]||""),Z[5]=W.filesChanged[1],Z[6]=z;else z=Z[6];V=`${B} and ${z}`}else{let H;if(Z[7]!==W.filesChanged[0])H=QZ.basename(W.filesChanged[0]||""),Z[7]=W.filesChanged[0],Z[8]=H;else H=Z[8];V=`${H} and ${W.filesChanged.length-1} other files`}let J;if(Z[9]!==W)J=E(C0,{diffStats:W}),Z[9]=W,Z[10]=J;else J=Z[10];let K;if(Z[11]!==V||Z[12]!==J)K=E(a,{children:M(F,{dimColor:!0,children:["The code will be restored"," ",J," in ",V,"."]})}),Z[11]=V,Z[12]=J,Z[13]=K;else K=Z[13];return K}function C0(Q){let Z=VZ.c(7),{diffStats:W}=Q;if(!W||!W.filesChanged)return;let X;if(Z[0]!==W.insertions)X=M(F,{color:"diffAddedWord",children:["+",W.insertions," "]}),Z[0]=W.insertions,Z[1]=X;else X=Z[1];let V;if(Z[2]!==W.deletions)V=M(F,{color:"diffRemovedWord",children:["-",W.deletions]}),Z[2]=W.deletions,Z[3]=V;else V=Z[3];let J;if(Z[4]!==X||Z[5]!==V)J=M(a,{children:[X,V]}),Z[4]=X,Z[5]=V,Z[6]=J;else J=Z[6];return J}function K0(Q){let Z=VZ.c(31),{userMessage:W,color:X,dimColor:V,isCurrent:J,paddingRight:K}=Q,{columns:H}=O0();if(J){let T;if(Z[0]!==X||Z[1]!==V)T=E(p,{width:"100%",children:E(F,{italic:!0,color:X,dimColor:V,children:"(current)"})}),Z[0]=X,Z[1]=V,Z[2]=T;else T=Z[2];return T}let B=W.message.content,z=typeof B==="string"?null:B[B.length-1],G,L,w,v,_,P,C,D;if(Z[3]!==X||Z[4]!==H||Z[5]!==B||Z[6]!==V||Z[7]!==z||Z[8]!==K){D=Symbol.for("react.early_return_sentinel");Z:{let T=typeof B==="string"?B.trim():z&&I0(z)?z.text.trim():"(no prompt)",O=A0(T);if(w0(O)){let j;if(Z[17]!==X||Z[18]!==V)j=E(p,{flexDirection:"row",width:"100%",children:E(F,{italic:!0,color:X,dimColor:V,children:"((empty message))"})}),Z[17]=X,Z[18]=V,Z[19]=j;else j=Z[19];D=j;break Z}if(O.includes("<bash-input>")){let j=XZ(O,"bash-input");if(j){let l;if(Z[20]===Symbol.for("react.memo_cache_sentinel"))l=E(F,{color:"bashBorder",children:"!"}),Z[20]=l;else l=Z[20];D=M(p,{flexDirection:"row",width:"100%",children:[l,M(F,{color:X,dimColor:V,children:[" ",j]})]});break Z}}if(O.includes(`<${CZ}>`)){let j=XZ(O,CZ),l=XZ(O,"command-args"),n=XZ(O,"skill-format")==="true";if(j)if(n){D=E(p,{flexDirection:"row",width:"100%",children:M(F,{color:X,dimColor:V,children:["Skill(",j,")"]})});break Z}else{D=E(p,{flexDirection:"row",width:"100%",children:M(F,{color:X,dimColor:V,children:["/",j," ",l]})});break Z}}L=p,P="row",C="100%",G=F,w=X,v=V,_=K?J0(O,H-K,!0):O.slice(0,500).split(`
|
|
8
|
+
`).slice(0,4).join(`
|
|
9
|
+
`)}Z[3]=X,Z[4]=H,Z[5]=B,Z[6]=V,Z[7]=z,Z[8]=K,Z[9]=G,Z[10]=L,Z[11]=w,Z[12]=v,Z[13]=_,Z[14]=P,Z[15]=C,Z[16]=D}else G=Z[9],L=Z[10],w=Z[11],v=Z[12],_=Z[13],P=Z[14],C=Z[15],D=Z[16];if(D!==Symbol.for("react.early_return_sentinel"))return D;let $;if(Z[21]!==G||Z[22]!==w||Z[23]!==v||Z[24]!==_)$=E(G,{color:w,dimColor:v,children:_}),Z[21]=G,Z[22]=w,Z[23]=v,Z[24]=_,Z[25]=$;else $=Z[25];let y;if(Z[26]!==L||Z[27]!==P||Z[28]!==C||Z[29]!==$)y=E(L,{flexDirection:P,width:C,children:$}),Z[26]=L,Z[27]=P,Z[28]=C,Z[29]=$,Z[30]=y;else y=Z[30];return y}function e9(Q,Z,W){let X=Q.findIndex((B)=>B.uuid===Z);if(X===-1)return;let V=W?Q.findIndex((B)=>B.uuid===W):Q.length;if(V===-1)V=Q.length;let J=[],K=0,H=0;for(let B=X+1;B<V;B++){let z=Q[B];if(!z||!hZ(z))continue;let G=z.toolUseResult;if(!G||!G.filePath||!G.structuredPatch)continue;if(!J.includes(G.filePath))J.push(G.filePath);try{if("type"in G&&G.type==="create")K+=G.content.split(/\r?\n/).length;else for(let L of G.structuredPatch){let w=IZ(L.lines,(_)=>_.startsWith("+")),v=IZ(L.lines,(_)=>_.startsWith("-"));K+=w,H+=v}}catch{continue}}return{filesChanged:J,insertions:K,deletions:H}}function T0(Q){if(Q.type!=="user")return!1;if(Array.isArray(Q.message.content)&&Q.message.content[0]?.type==="tool_result")return!1;if(SZ(Q))return!1;if(Q.isMeta)return!1;if(Q.isCompactSummary||Q.isVisibleInTranscriptOnly)return!1;let Z=Q.message.content,W=typeof Z==="string"?null:Z[Z.length-1],X=typeof Z==="string"?Z.trim():W&&I0(W)?W.text.trim():"";if(X.indexOf(`<${L0}>`)!==-1||X.indexOf(`<${z0}>`)!==-1||X.indexOf(`<${N0}>`)!==-1||X.indexOf(`<${B0}>`)!==-1||X.indexOf(`<${D0}>`)!==-1||X.indexOf(`<${q0}>`)!==-1||X.indexOf(`<${v0}`)!==-1)return!1;return!0}function ZQ(Q,Z){for(let W=Z+1;W<Q.length;W++){let X=Q[W];if(!X)continue;if(SZ(X))continue;if(hZ(X))continue;if(X.type==="progress")continue;if(X.type==="system")continue;if(X.type==="attachment")continue;if(X.type==="user"&&X.isMeta)continue;if(X.type==="assistant"){let V=X.message.content;if(Array.isArray(V)){if(V.some((K)=>K.type==="text"&&K.text.trim()||K.type==="tool_use"))return!1}continue}if(X.type==="user")return!1}return!0}var VZ,I,bZ=7;var QQ=AZ(()=>{R9();_Z();l9();d9();_0();c9();p9();m9();h9();wZ();a9();n9();u9();S9();f9();T9();g9();V0();VZ=G0(x9(),1),I=G0(k9(),1)});var $W={};fZ($W,{getCronJitterConfig:()=>PW});function PW(){let Q=nY("tengu_kairos_cron_config",WZ,UW),Z=yW().safeParse(Q);return Z.success?Z.data:WZ}var UW=60000,iZ=1800000,EW=2592000000,yW;var jW=AZ(()=>{KZ();OW();iY();OZ();yW=q(()=>Y.object({recurringFrac:Y.number().min(0).max(1),recurringCapMs:Y.number().int().min(0).max(iZ),oneShotMaxMs:Y.number().int().min(0).max(iZ),oneShotFloorMs:Y.number().int().min(0).max(iZ),oneShotMinuteMod:Y.number().int().min(1).max(60),recurringMaxAgeMs:Y.number().int().min(0).max(EW).default(WZ.recurringMaxAgeMs)}).refine((Q)=>Q.oneShotFloorMs<=Q.oneShotMaxMs))});import{mkdir as IW,readFile as CW,unlink as Z9,writeFile as sZ}from"fs/promises";import{dirname as TW,join as Y9}from"path";function BZ(Q){return Y9(Q??oY(),RW)}async function Q9(Q){let Z;try{Z=await CW(BZ(Q),"utf8")}catch{return}let W=fW().safeParse(tY(Z,!1));return W.success?W.data:void 0}async function rY(Q,Z){let W=BZ(Z),X=ZZ(Q);try{return await sZ(W,X,{flag:"wx"}),!0}catch(V){let J=oZ(V);if(J==="EEXIST")return!1;if(J==="ENOENT"){await IW(TW(W),{recursive:!0});try{return await sZ(W,X,{flag:"wx"}),!0}catch(K){if(oZ(K)==="EEXIST")return!1;throw K}}throw V}}function rZ(Q){jZ?.(),jZ=sY(async()=>{await LZ(Q)})}async function tZ(Q){let Z=Q?.dir,W=Q?.lockIdentity??JZ(),X={sessionId:W,pid:process.pid,acquiredAt:Date.now()};if(await rY(X,Z))return NZ=void 0,rZ(Q),b(`[ScheduledTasks] acquired scheduler lock (PID ${process.pid})`),!0;let V=await Q9(Z);if(V?.sessionId===W){if(V.pid!==process.pid)await sZ(BZ(Z),ZZ(X)),rZ(Q);return!0}if(V&&eY(V.pid)){if(NZ!==V.sessionId)NZ=V.sessionId,b(`[ScheduledTasks] scheduler lock held by session ${V.sessionId} (PID ${V.pid})`);return!1}if(V)b(`[ScheduledTasks] recovering stale scheduler lock from PID ${V.pid}`);if(await Z9(BZ(Z)).catch(()=>{}),await rY(X,Z))return NZ=void 0,rZ(Q),!0;return!1}async function LZ(Q){jZ?.(),jZ=void 0,NZ=void 0;let Z=Q?.dir,W=Q?.lockIdentity??JZ(),X=await Q9(Z);if(!X||X.sessionId!==W)return;try{await Z9(BZ(Z)),b("[ScheduledTasks] released scheduler lock")}catch{}}var RW,fW,jZ,NZ;var W9=AZ(()=>{KZ();HZ();FW();GZ();gZ();bW();MW();OZ();PZ();RW=Y9(".claudin","scheduled_tasks.lock"),fW=q(()=>Y.object({sessionId:Y.string(),pid:Y.number(),acquiredAt:Y.number()}))});var pW={};fZ(pW,{isRecurringTaskAged:()=>q9,createCronScheduler:()=>xW,buildMissedTaskNotification:()=>D9});function q9(Q,Z,W){if(W===0)return!1;return Boolean(Q.recurring&&!Q.permanent&&Z-Q.createdAt>=W)}function xW(Q){let{onFire:Z,isLoading:W,assistantMode:X=!1,onFireTask:V,onMissed:J,dir:K,lockIdentity:H,getJitterConfig:B,isKilled:z,filter:G}=Q,L=K||H?{dir:K,lockIdentity:H}:void 0,w=[],v=new Map,_=new Set,P=new Set,C=null,D=null,$=null,y=null,T=!1,O=!1;async function j(S){let m=await N9(K);if(T)return;if(w=m,!S)return;let g=Date.now(),x=z9(m,g).filter((A)=>!A.recurring&&!_.has(A.id)&&(!G||G(A)));if(x.length>0){for(let A of x)_.add(A.id),v.set(A.id,1/0);if(d("tengu_scheduled_task_missed",{count:x.length,taskIds:x.map((A)=>A.id).join(",")}),J)J(x);else Z(D9(x));eZ(x.map((A)=>A.id),K).catch((A)=>b(`[ScheduledTasks] failed to remove missed tasks: ${A}`)),b(`[ScheduledTasks] surfaced ${x.length} missed one-shot task(s)`)}}function l(){if(z?.())return;if(W()&&!X)return;let S=Date.now(),m=new Set,g=[],x=B?.()??WZ;function A(N,R){if(G&&!G(N))return;if(m.add(N.id),P.has(N.id))return;let h=v.get(N.id);if(h===void 0)h=N.recurring?Z0(N.cron,N.lastFiredAt??N.createdAt,N.id,x)??1/0:L9(N.cron,N.createdAt,N.id,x)??1/0,v.set(N.id,h),b(`[ScheduledTasks] scheduled ${N.id} for ${h===1/0?"never":new Date(h).toISOString()}`);if(S<h)return;if(b(`[ScheduledTasks] firing ${N.id}${N.recurring?" (recurring)":""}`),d("tengu_scheduled_task_fire",{recurring:N.recurring??!1,taskId:N.id}),V)V(N);else Z(N.prompt);let r=q9(N,S,x.recurringMaxAgeMs);if(r){let t=Math.floor((S-N.createdAt)/1000/60/60);b(`[ScheduledTasks] recurring task ${N.id} aged out (${t}h since creation), deleting after final fire`),d("tengu_scheduled_task_expired",{taskId:N.id,ageHours:t})}if(N.recurring&&!r){let t=Z0(N.cron,S,N.id,x)??1/0;if(v.set(N.id,t),!R)g.push(N.id)}else if(R)G9([N.id]),v.delete(N.id);else P.add(N.id),eZ([N.id],K).catch((t)=>b(`[ScheduledTasks] failed to remove task ${N.id}: ${t}`)).finally(()=>P.delete(N.id)),v.delete(N.id)}if(O){for(let N of w)A(N,!1);if(g.length>0){for(let N of g)P.add(N);B9(g,S,K).catch((N)=>b(`[ScheduledTasks] failed to persist lastFiredAt: ${N}`)).finally(()=>{for(let N of g)P.delete(N)})}}if(K===void 0)for(let N of K9())A(N,!0);if(m.size===0){v.clear();return}for(let N of v.keys())if(!m.has(N))v.delete(N)}async function n(){if(T)return;if(C)clearInterval(C),C=null;let{default:S}=await import("./index-0.5.8-egkksjaj.mjs");if(T)return;if(O=await tZ(L).catch(()=>!1),T){if(O)O=!1,LZ(L);return}if(!O)$=setInterval(()=>{tZ(L).then((g)=>{if(T){if(g)LZ(L);return}if(g){if(O=!0,$)clearInterval($),$=null}}).catch((g)=>b(String(g),{level:"error"}))},kW),$.unref?.();j(!0);let m=H9(K);y=S.watch(m,{persistent:!1,ignoreInitial:!0,awaitWriteFinish:{stabilityThreshold:hW},ignorePermissionErrors:!0}),y.on("add",()=>void j(!1)),y.on("change",()=>void j(!1)),y.on("unlink",()=>{if(!T)w=[],v.clear()}),D=setInterval(l,X9),D.unref?.()}return{start(){if(T=!1,K!==void 0){b(`[ScheduledTasks] scheduler start() — dir=${K}, hasTasks=${FZ(K)}`),n();return}if(b(`[ScheduledTasks] scheduler start() — enabled=${zZ()}, hasTasks=${FZ()}`),!zZ()&&(X||FZ()))V9(!0);if(zZ()){n();return}C=setInterval((S)=>{if(zZ())S()},X9,n),C.unref?.()},stop(){if(T=!0,C)clearInterval(C),C=null;if(D)clearInterval(D),D=null;if($)clearInterval($),$=null;if(y?.close(),y=null,O)O=!1,LZ(L)},getNextFireTime(){let S=1/0;for(let m of v.values())if(m<S)S=m;return S===1/0?null:S}}}function D9(Q){let Z=Q.length>1,W=`The following one-shot scheduled task${Z?"s were":" was"} missed while Claude was not running. ${Z?"They have":"It has"} already been removed from .claudin/scheduled_tasks.json.
|
|
10
|
+
|
|
11
|
+
Do NOT execute ${Z?"these prompts":"this prompt"} yet. First use the AskUserQuestion tool to ask whether to run ${Z?"each one":"it"} now. Only execute if the user confirms.`,X=Q.map((V)=>{let J=`[${J9(V.cron)}, created ${new Date(V.createdAt).toLocaleString()}]`,K=(V.prompt.match(/`+/g)??[]).reduce((B,z)=>Math.max(B,z.length),0),H="`".repeat(Math.max(3,K+1));return`${J}
|
|
12
|
+
${H}
|
|
13
|
+
${V.prompt}
|
|
14
|
+
${H}`});return`${W}
|
|
15
|
+
|
|
16
|
+
${X.join(`
|
|
17
|
+
|
|
18
|
+
`)}`}var X9=1000,hW=300,kW=5000;var uW=AZ(()=>{HZ();_Z();SW();iY();W9();GZ()});import{randomUUID as cZ}from"crypto";KZ();OZ();WQ();var XQ=q(()=>Y.unknown()),VQ=q(()=>Y.object({matcher:Y.string().optional(),hookCallbackIds:Y.array(Y.string()),timeout:Y.number().optional()}).describe("Configuration for matching and routing hook callbacks.")),KQ=q(()=>Y.object({subtype:Y.literal("initialize"),hooks:Y.record(h0(),Y.array(VQ())).optional(),sdkMcpServers:Y.array(Y.string()).optional(),jsonSchema:Y.record(Y.string(),Y.unknown()).optional(),systemPrompt:Y.string().optional(),appendSystemPrompt:Y.string().optional(),agents:Y.record(Y.string(),u0()).optional(),promptSuggestions:Y.boolean().optional(),agentProgressSummaries:Y.boolean().optional()}).describe("Initializes the SDK session with hooks, MCP servers, and agent configuration.")),A6=q(()=>Y.object({commands:Y.array(xZ()),agents:Y.array(pZ()),output_style:Y.string(),available_output_styles:Y.array(Y.string()),models:Y.array(x0()),account:p0(),pid:Y.number().optional().describe("@internal CLI process PID for tmux socket isolation"),fast_mode_state:a0().optional()}).describe("Response from session initialization with available commands, models, and account info.")),GQ=q(()=>Y.object({subtype:Y.literal("interrupt")}).describe("Interrupts the currently running conversation turn.")),JQ=q(()=>Y.object({subtype:Y.literal("can_use_tool"),tool_name:Y.string(),input:Y.record(Y.string(),Y.unknown()),permission_suggestions:Y.array(f0()).optional(),blocked_path:Y.string().optional(),decision_reason:Y.string().optional(),title:Y.string().optional(),display_name:Y.string().optional(),tool_use_id:Y.string(),agent_id:Y.string().optional(),description:Y.string().optional()}).describe("Requests permission to use a tool with the given input.")),HQ=q(()=>Y.object({subtype:Y.literal("set_permission_mode"),mode:S0(),ultraplan:Y.boolean().optional().describe("@internal CCR ultraplan session marker.")}).describe("Sets the permission mode for tool execution handling.")),NQ=q(()=>Y.object({subtype:Y.literal("set_model"),model:Y.string().optional()}).describe("Sets the model to use for subsequent conversation turns.")),BQ=q(()=>Y.object({subtype:Y.literal("set_max_thinking_tokens"),max_thinking_tokens:Y.number().nullable()}).describe("Sets the maximum number of thinking tokens for extended thinking.")),LQ=q(()=>Y.object({subtype:Y.literal("mcp_status")}).describe("Requests the current status of all MCP server connections.")),_6=q(()=>Y.object({mcpServers:Y.array(kZ())}).describe("Response containing the current status of all MCP server connections.")),zQ=q(()=>Y.object({subtype:Y.literal("get_context_usage")}).describe("Requests a breakdown of current context window usage by category.")),qQ=q(()=>Y.object({name:Y.string(),tokens:Y.number(),color:Y.string(),isDeferred:Y.boolean().optional()})),DQ=q(()=>Y.object({color:Y.string(),isFilled:Y.boolean(),categoryName:Y.string(),tokens:Y.number(),percentage:Y.number(),squareFullness:Y.number()})),w6=q(()=>Y.object({categories:Y.array(qQ()),totalTokens:Y.number(),maxTokens:Y.number(),rawMaxTokens:Y.number(),percentage:Y.number(),gridRows:Y.array(Y.array(DQ())),model:Y.string(),memoryFiles:Y.array(Y.object({path:Y.string(),type:Y.string(),tokens:Y.number()})),mcpTools:Y.array(Y.object({name:Y.string(),serverName:Y.string(),tokens:Y.number(),isLoaded:Y.boolean().optional()})),deferredBuiltinTools:Y.array(Y.object({name:Y.string(),tokens:Y.number(),isLoaded:Y.boolean()})).optional(),systemTools:Y.array(Y.object({name:Y.string(),tokens:Y.number()})).optional(),systemPromptSections:Y.array(Y.object({name:Y.string(),tokens:Y.number()})).optional(),agents:Y.array(Y.object({agentType:Y.string(),source:Y.string(),tokens:Y.number()})),slashCommands:Y.object({totalCommands:Y.number(),includedCommands:Y.number(),tokens:Y.number()}).optional(),skills:Y.object({totalSkills:Y.number(),includedSkills:Y.number(),tokens:Y.number(),skillFrontmatter:Y.array(Y.object({name:Y.string(),source:Y.string(),tokens:Y.number()}))}).optional(),autoCompactThreshold:Y.number().optional(),isAutoCompactEnabled:Y.boolean(),messageBreakdown:Y.object({toolCallTokens:Y.number(),toolResultTokens:Y.number(),attachmentTokens:Y.number(),assistantMessageTokens:Y.number(),userMessageTokens:Y.number(),toolCallsByType:Y.array(Y.object({name:Y.string(),callTokens:Y.number(),resultTokens:Y.number()})),attachmentsByType:Y.array(Y.object({name:Y.string(),tokens:Y.number()}))}).optional(),apiUsage:Y.object({input_tokens:Y.number(),output_tokens:Y.number(),cache_creation_input_tokens:Y.number(),cache_read_input_tokens:Y.number()}).nullable()}).describe("Breakdown of current context window usage by category (system prompt, tools, messages, etc.).")),vQ=q(()=>Y.object({subtype:Y.literal("rewind_files"),user_message_id:Y.string(),dry_run:Y.boolean().optional()}).describe("Rewinds file changes made since a specific user message.")),O6=q(()=>Y.object({canRewind:Y.boolean(),error:Y.string().optional(),filesChanged:Y.array(Y.string()).optional(),insertions:Y.number().optional(),deletions:Y.number().optional()}).describe("Result of a rewindFiles operation.")),AQ=q(()=>Y.object({subtype:Y.literal("cancel_async_message"),message_uuid:Y.string()}).describe("Drops a pending async user message from the command queue by uuid. No-op if already dequeued for execution.")),U6=q(()=>Y.object({cancelled:Y.boolean()}).describe("Result of a cancel_async_message operation. cancelled=false means the message was not in the queue (already dequeued or never enqueued).")),_Q=q(()=>Y.object({subtype:Y.literal("seed_read_state"),path:Y.string(),mtime:Y.number()}).describe("Seeds the readFileState cache with a path+mtime entry. Use when a prior Read was removed from context (e.g. by snip) so Edit validation would fail despite the client having observed the Read. The mtime lets the CLI detect if the file changed since the seeded Read — same staleness check as the normal path.")),wQ=q(()=>Y.object({subtype:Y.literal("hook_callback"),callback_id:Y.string(),input:k0(),tool_use_id:Y.string().optional()}).describe("Delivers a hook callback with its input data.")),OQ=q(()=>Y.object({subtype:Y.literal("mcp_message"),server_name:Y.string(),message:XQ()}).describe("Sends a JSON-RPC message to a specific MCP server.")),UQ=q(()=>Y.object({subtype:Y.literal("mcp_set_servers"),servers:Y.record(Y.string(),R0())}).describe("Replaces the set of dynamically managed MCP servers.")),E6=q(()=>Y.object({added:Y.array(Y.string()),removed:Y.array(Y.string()),errors:Y.record(Y.string(),Y.string())}).describe("Result of replacing the set of dynamically managed MCP servers.")),EQ=q(()=>Y.object({subtype:Y.literal("reload_plugins")}).describe("Reloads plugins from disk and returns the refreshed session components.")),y6=q(()=>Y.object({commands:Y.array(xZ()),agents:Y.array(pZ()),plugins:Y.array(Y.object({name:Y.string(),path:Y.string(),source:Y.string().optional()})),mcpServers:Y.array(kZ()),error_count:Y.number()}).describe("Refreshed commands, agents, plugins, and MCP server status after reload.")),yQ=q(()=>Y.object({subtype:Y.literal("mcp_reconnect"),serverName:Y.string()}).describe("Reconnects a disconnected or failed MCP server.")),PQ=q(()=>Y.object({subtype:Y.literal("mcp_toggle"),serverName:Y.string(),enabled:Y.boolean()}).describe("Enables or disables an MCP server.")),$Q=q(()=>Y.object({subtype:Y.literal("stop_task"),task_id:Y.string()}).describe("Stops a running task.")),jQ=q(()=>Y.object({subtype:Y.literal("apply_flag_settings"),settings:Y.record(Y.string(),Y.unknown())}).describe("Merges the provided settings into the flag settings layer, updating the active configuration.")),FQ=q(()=>Y.object({subtype:Y.literal("get_settings")}).describe("Returns the effective merged settings and the raw per-source settings.")),P6=q(()=>Y.object({effective:Y.record(Y.string(),Y.unknown()),sources:Y.array(Y.object({source:Y.enum(["userSettings","projectSettings","localSettings","flagSettings","policySettings"]),settings:Y.record(Y.string(),Y.unknown())})).describe("Ordered low-to-high priority — later entries override earlier ones."),applied:Y.object({model:Y.string(),effort:Y.enum(["low","medium","high","max"]).nullable()}).optional().describe("Runtime-resolved values after env overrides, session state, and model-specific defaults are applied. Unlike `effective` (disk merge), these reflect what will actually be sent to the API.")}).describe("Effective merged settings plus raw per-source settings in merge order.")),MQ=q(()=>Y.object({subtype:Y.literal("elicitation"),mcp_server_name:Y.string(),message:Y.string(),mode:Y.enum(["form","url"]).optional(),url:Y.string().optional(),elicitation_id:Y.string().optional(),requested_schema:Y.record(Y.string(),Y.unknown()).optional()}).describe("Requests the SDK consumer to handle an MCP elicitation (user input request).")),n0=q(()=>Y.object({action:Y.enum(["accept","decline","cancel"]),content:Y.record(Y.string(),Y.unknown()).optional()}).describe("Response from the SDK consumer for an elicitation request.")),bQ=q(()=>Y.union([GQ(),JQ(),KQ(),HQ(),NQ(),BQ(),LQ(),zQ(),wQ(),OQ(),vQ(),AQ(),_Q(),UQ(),EQ(),yQ(),PQ(),$Q(),jQ(),FQ(),MQ()])),uZ=q(()=>Y.object({type:Y.literal("control_request"),request_id:Y.string(),request:bQ()})),IQ=q(()=>Y.object({subtype:Y.literal("success"),request_id:Y.string(),response:Y.record(Y.string(),Y.unknown()).optional()})),CQ=q(()=>Y.object({subtype:Y.literal("error"),request_id:Y.string(),error:Y.string(),pending_permission_requests:Y.array(Y.lazy(()=>uZ())).optional()})),i0=q(()=>Y.object({type:Y.literal("control_response"),response:Y.union([IQ(),CQ()])})),TQ=q(()=>Y.object({type:Y.literal("control_cancel_request"),request_id:Y.string()}).describe("Cancels a currently open control request.")),r0=q(()=>Y.object({type:Y.literal("keep_alive")}).describe("Keep-alive message to maintain WebSocket connection.")),RQ=q(()=>Y.object({type:Y.literal("update_environment_variables"),variables:Y.record(Y.string(),Y.string())}).describe("Updates environment variables at runtime.")),$6=q(()=>Y.union([l0(),c0(),g0(),d0(),i0(),uZ(),TQ(),r0()])),j6=q(()=>Y.union([m0(),uZ(),i0(),r0(),RQ()]));mQ();GZ();uQ();gZ();KZ();GZ();OZ();o0();fQ();var R6=q(()=>k.object({tool_name:k.string().describe("The name of the tool requesting permission"),input:k.record(k.string(),k.unknown()).describe("The input for the tool"),tool_use_id:k.string().optional().describe("The unique tool use request ID")})),t0=q(()=>k.enum(["user_temporary","user_permanent","user_reject"]).optional().catch(void 0)),SQ=q(()=>k.object({behavior:k.literal("allow"),updatedInput:k.record(k.string(),k.unknown()),updatedPermissions:k.array(s0()).optional().catch((Q)=>{b(`Malformed updatedPermissions from SDK host ignored: ${Q.error.issues[0]?.message??"unknown"}`,{level:"warn"});return}),toolUseID:k.string().optional(),decisionClassification:t0()})),hQ=q(()=>k.object({behavior:k.literal("deny"),message:k.string(),interrupt:k.boolean().optional(),toolUseID:k.string().optional(),decisionClassification:t0()})),mZ=q(()=>k.union([SQ(),hQ()]));function yZ(Q,Z,W,X){let V={type:"permissionPromptTool",permissionPromptToolName:Z.name,toolResult:Q};if(Q.behavior==="allow"){let J=Q.updatedPermissions;if(J)X.setAppState((H)=>({...H,toolPermissionContext:UZ(H.toolPermissionContext,J)})),EZ(J);let K=Object.keys(Q.updatedInput).length>0?Q.updatedInput:W;return{...Q,updatedInput:K,decisionReason:V}}else if(Q.behavior==="deny"&&Q.interrupt)b(`SDK permission prompt deny+interrupt: tool=${Z.name} message=${Q.message}`),X.abortController.abort();return{...Q,decisionReason:V}}dQ();pQ();PZ();KZ();cQ();BY();o0();lQ();PZ();gQ();PZ();var kQ=/\u2028|\u2029/g;function xQ(Q){return Q.replace(kQ,(Z)=>Z==="\u2028"?"\\u2028":"\\u2029")}function e0(Q){return xQ(ZZ(Q))}var aQ="SandboxNetworkAccess";function nQ(Q){if(!Q)return;if(Q.type==="classifier")return Q.reason;switch(Q.type){case"rule":case"mode":case"subcommandResults":case"permissionPromptTool":return;case"hook":case"asyncAgent":case"sandboxOverride":case"workingDir":case"safetyCheck":case"other":return Q.reason}}function iQ(Q,Z,W,X){let V;try{V=Q.getActivityDescription?.(Z)??Q.getToolUseSummary?.(Z)??Q.userFacingName(Z)}catch{V=Q.name}return{tool_name:Q.name,action_description:V,tool_use_id:W,request_id:X,input:Z}}var rQ=1000;class oQ{input;replayUserMessages;structuredInput;pendingRequests=new Map;restoredWorkerState=Promise.resolve(null);inputClosed=!1;unexpectedResponseCallback;resolvedToolUseIds=new Set;prependedLines=[];onControlRequestSent;onControlRequestResolved;outbound=new GY;constructor(Q,Z){this.input=Q;this.replayUserMessages=Z;this.input=Q,this.structuredInput=this.read()}trackResolvedToolUseId(Q){if(Q.request.subtype==="can_use_tool"){if(this.resolvedToolUseIds.add(Q.request.tool_use_id),this.resolvedToolUseIds.size>rQ){let Z=this.resolvedToolUseIds.values().next().value;if(Z!==void 0)this.resolvedToolUseIds.delete(Z)}}}flushInternalEvents(){return Promise.resolve()}get internalEventsPending(){return 0}prependUserMessage(Q){this.prependedLines.push(ZZ({type:"user",session_id:"",message:{role:"user",content:Q},parent_tool_use_id:null})+`
|
|
19
|
+
`)}async*read(){let Q="",Z=async function*(){for(;;){if(this.prependedLines.length>0)Q=this.prependedLines.join("")+Q,this.prependedLines=[];let W=Q.indexOf(`
|
|
20
|
+
`);if(W===-1)break;let X=Q.slice(0,W);Q=Q.slice(W+1);let V=await this.processLine(X);if(V)XY("info","cli_stdin_message_parsed",{type:V.type}),yield V}}.bind(this);yield*Z();for await(let W of this.input)Q+=W,yield*Z();if(Q){let W=await this.processLine(Q);if(W)yield W}this.inputClosed=!0;for(let W of this.pendingRequests.values())W.reject(Error("Tool permission stream closed before response received"))}getPendingPermissionRequests(){return Array.from(this.pendingRequests.values()).map((Q)=>Q.request).filter((Q)=>Q.request.subtype==="can_use_tool")}setUnexpectedResponseCallback(Q){this.unexpectedResponseCallback=Q}injectControlResponse(Q){let Z=Q.response?.request_id;if(!Z)return;let W=this.pendingRequests.get(Z);if(!W)return;if(this.trackResolvedToolUseId(W.request),this.pendingRequests.delete(Z),this.write({type:"control_cancel_request",request_id:Z}),Q.response.subtype==="error")W.reject(Error(Q.response.error));else{let X=Q.response.response;if(W.schema)try{W.resolve(W.schema.parse(X))}catch(V){W.reject(V)}else W.resolve({})}}setOnControlRequestSent(Q){this.onControlRequestSent=Q}setOnControlRequestResolved(Q){this.onControlRequestResolved=Q}async processLine(Q){if(!Q)return;try{let Z=LY(QY(Q));if(Z.type==="keep_alive")return;if(Z.type==="update_environment_variables"){let W=Object.keys(Z.variables);for(let[X,V]of Object.entries(Z.variables))process.env[X]=V;b(`[structuredIO] applied update_environment_variables: ${W.join(", ")}`);return}if(Z.type==="control_response"){let W="uuid"in Z&&typeof Z.uuid==="string"?Z.uuid:void 0;if(W)KY(W,"completed");let X=this.pendingRequests.get(Z.response.request_id);if(!X){let K=(Z.response.subtype==="success"?Z.response.response:void 0)?.toolUseID;if(typeof K==="string"&&this.resolvedToolUseIds.has(K)){b(`Ignoring duplicate control_response for already-resolved toolUseID=${K} request_id=${Z.response.request_id}`);return}if(this.unexpectedResponseCallback)await this.unexpectedResponseCallback(Z);return}if(this.trackResolvedToolUseId(X.request),this.pendingRequests.delete(Z.response.request_id),X.request.request.subtype==="can_use_tool"&&this.onControlRequestResolved)this.onControlRequestResolved(Z.response.request_id);if(Z.response.subtype==="error"){X.reject(Error(Z.response.error));return}let V=Z.response.response;if(X.schema)try{X.resolve(X.schema.parse(V))}catch(J){X.reject(J)}else X.resolve({});if(this.replayUserMessages)return Z;return}if(Z.type!=="user"&&Z.type!=="control_request"&&Z.type!=="assistant"&&Z.type!=="system"){b(`Ignoring unknown message type: ${Z.type}`,{level:"warn"});return}if(Z.type==="control_request"){if(!Z.request)ZY("Error: Missing request on control_request");return Z}if(Z.type==="assistant"||Z.type==="system")return Z;if(Z.message.role!=="user")ZY(`Error: Expected message role 'user', got '${Z.message.role}'`);return Z}catch(Z){console.error(`Error parsing streaming input line: ${Q}: ${Z}`),process.exit(1)}}async write(Q){WY(e0(Q)+`
|
|
21
|
+
`)}async sendRequest(Q,Z,W,X=cZ()){let V={type:"control_request",request_id:X,request:Q};if(this.inputClosed)throw Error("Stream closed");if(W?.aborted)throw Error("Request aborted");if(this.outbound.enqueue(V),Q.subtype==="can_use_tool"&&this.onControlRequestSent)this.onControlRequestSent(V);let J=()=>{this.outbound.enqueue({type:"control_cancel_request",request_id:X});let K=this.pendingRequests.get(X);if(K)this.trackResolvedToolUseId(K.request),K.reject(new YY)};if(W)W.addEventListener("abort",J,{once:!0});try{return await new Promise((K,H)=>{this.pendingRequests.set(X,{request:{type:"control_request",request_id:X,request:Q},resolve:(B)=>{K(B)},reject:H,schema:Z})})}finally{if(W)W.removeEventListener("abort",J);this.pendingRequests.delete(X)}}createCanUseTool(Q){return async(Z,W,X,V,J,K)=>{let H=K??await JY(Z,W,X,V,J);if(H.behavior==="allow"||H.behavior==="deny")return H;let B=new AbortController,z=X.abortController.signal,G=()=>B.abort();z.addEventListener("abort",G,{once:!0});try{let L=sQ(Z.name,J,W,X,H.suggestions).then((P)=>({source:"hook",decision:P})),w=cZ();Q?.(iQ(Z,W,J,w));let v=this.sendRequest({subtype:"can_use_tool",tool_name:Z.name,input:W,permission_suggestions:H.suggestions,blocked_path:H.blockedPath,decision_reason:nQ(H.decisionReason),tool_use_id:J,agent_id:X.agentId},mZ(),B.signal,w).then((P)=>({source:"sdk",result:P})),_=await Promise.race([L,v]);if(_.source==="hook"){if(_.decision)return v.catch(()=>{}),B.abort(),_.decision;let P=await v;return yZ(P.result,Z,W,X)}return yZ(_.result,Z,W,X)}catch(L){return yZ({behavior:"deny",message:`Tool permission request failed: ${L}`,toolUseID:J},Z,W,X)}finally{if(this.getPendingPermissionRequests().length===0)HY("running");z.removeEventListener("abort",G)}}}createHookCallback(Q,Z){return{type:"callback",timeout:Z,callback:async(W,X,V)=>{try{return await this.sendRequest({subtype:"hook_callback",callback_id:Q,input:W,tool_use_id:X||void 0},VY(),V)}catch(J){return console.error(`Error in hook callback ${Q}:`,J),{}}}}}async handleElicitation(Q,Z,W,X,V,J,K){try{return await this.sendRequest({subtype:"elicitation",mcp_server_name:Q,message:Z,mode:V,url:J,elicitation_id:K,requested_schema:W},n0(),X)}catch{return{action:"cancel"}}}createSandboxAskCallback(){return async(Q)=>{try{return(await this.sendRequest({subtype:"can_use_tool",tool_name:aQ,input:{host:Q.host},tool_use_id:cZ(),description:`Allow network connection to ${Q.host}?`},mZ())).behavior==="allow"}catch{return!1}}}async sendMcpMessage(Q,Z){return(await this.sendRequest({subtype:"mcp_message",server_name:Q,message:Z},Y.object({mcp_response:Y.any()}))).mcp_response}}function ZY(Q){console.error(Q),process.exit(1)}async function sQ(Q,Z,W,X,V){let K=X.getAppState().toolPermissionContext.mode,H=NY(Q,Z,W,X,K,V,X.abortController.signal);for await(let B of H)if(B.permissionRequestResult&&(B.permissionRequestResult.behavior==="allow"||B.permissionRequestResult.behavior==="deny")){let z=B.permissionRequestResult;if(z.behavior==="allow"){let G=z.updatedInput||W,L=z.updatedPermissions??[];if(L.length>0){EZ(L);let w=X.getAppState(),v=UZ(w.toolPermissionContext,L);X.setAppState((_)=>{if(_.toolPermissionContext===v)return _;return{..._,toolPermissionContext:v}})}return{behavior:"allow",updatedInput:G,userModified:!1,decisionReason:{type:"hook",hookName:"PermissionRequest"}}}else return{behavior:"deny",message:z.message||"Permission denied by PermissionRequest hook",decisionReason:{type:"hook",hookName:"PermissionRequest"}}}return}DY();function XX(Q){if(Q.type!=="user")return;let Z=Q.message?.content;if(!Z)return;if(Array.isArray(Z)&&Z.length===0)return;let W="uuid"in Q&&typeof Q.uuid==="string"?Q.uuid:void 0;return{content:Array.isArray(Z)?tQ(Z):Z,uuid:W}}function tQ(Q){if(!Q.some(zY))return Q;return Q.map((Z)=>{if(!zY(Z))return Z;let W=Z.source,X=typeof W.mediaType==="string"&&W.mediaType?W.mediaType:qY(Z.source.data);return{...Z,source:{type:"base64",media_type:X,data:Z.source.data}}})}function zY(Q){if(Q.type!=="image"||Q.source?.type!=="base64")return!1;return!Q.source.media_type}HZ();XW();ZW();WW();eQ();QW();YW();import{randomUUID as VW}from"crypto";function KW(Q){return Q===_Y?wY:Q}function qX(Q){let W=OY()?.outputStyle??yY,X={type:"system",subtype:"init",cwd:AY(),session_id:JZ(),tools:Q.tools.map((V)=>KW(V.name)),mcp_servers:Q.mcpClients.map((V)=>({name:V.name,status:V.type})),model:Q.model,permissionMode:Q.permissionMode,slash_commands:Q.commands.filter((V)=>V.userInvocable!==!1).map((V)=>V.name),apiKeySource:EY().source,betas:vY(),claude_code_version:"99.0.0",output_style:W,agents:Q.agents.map((V)=>V.agentType),skills:Q.skills.filter((V)=>V.userInvocable!==!1).map((V)=>V.name),plugins:Q.plugins.map((V)=>({name:V.name,path:V.path,source:V.source})),uuid:VW()};return X.fast_mode_state=UY(Q.model,Q.fastMode),X}var PY={"`":"`",'"':'"',"<":">","{":"}","[":"]","(":")","'":"'"};function GW(Q,Z){if(!new RegExp(Z,"i").test(Q))return[];if(Q.startsWith("/"))return[];let X=[],V=null,J=0,K=(G)=>!!G&&/[\p{L}\p{N}_]/u.test(G);for(let G=0;G<Q.length;G++){let L=Q[G];if(V){if(V==="["&&L==="["){J=G;continue}if(L!==PY[V])continue;if(V==="'"&&K(Q[G+1]))continue;X.push({start:J,end:G+1}),V=null}else if(L==="<"&&G+1<Q.length&&/[a-zA-Z/]/.test(Q[G+1])||L==="'"&&!K(Q[G-1])||L!=="<"&&L!=="'"&&L in PY)V=L,J=G}let H=[],B=new RegExp(`\\b${Z}\\b`,"gi"),z=Q.matchAll(B);for(let G of z){if(G.index===void 0)continue;let L=G.index,w=L+G[0].length;if(X.some((P)=>L>=P.start&&L<P.end))continue;let v=Q[L-1],_=Q[w];if(v==="/"||v==="\\"||v==="-")continue;if(_==="/"||_==="\\"||_==="-"||_==="?")continue;if(_==="."&&K(Q[w+1]))continue;H.push({word:G[0],start:L,end:w})}return H}function vX(Q){return GW(Q,"ultrareview")}_Z();wZ();AW();qW();DW();LW();BY();DY();BW();wZ();vW();zW();import{randomUUID as _W}from"crypto";HZ();_Z();wZ();JW();HW();import{randomUUID as NW}from"crypto";function $Y(Q){let Z=Q.toLowerCase();return/\b(wtf|wth|ffs|omfg|shit(ty|tiest)?|dumbass|horrible|awful|piss(ed|ing)? off|piece of (shit|crap|junk)|what the (fuck|hell)|fucking? (broken|useless|terrible|awful|horrible)|fuck you|screw (this|you)|so frustrating|this sucks|damn it)\b/.test(Z)}function jY(Q){let Z=Q.toLowerCase().trim();if(Z==="continue")return!0;return/\b(keep going|go on)\b/.test(Z)}function CY(Q,Z,W,X,V,J,K){let H=NW();FY(H);let B=typeof Q==="string"?Q:Q.find((v)=>v.type==="text")?.text||"";IY(B);let z=typeof Q==="string"?Q:Q.findLast((v)=>v.type==="text")?.text||"";if(z)bY("user_prompt",{prompt_length:String(z.length),prompt:MY(z),"prompt.id":H});let G=$Y(B),L=jY(B);if(d("tengu_input_prompt",{is_negative:G,is_keep_going:L}),Z.length>0){let v=typeof Q==="string"?Q.trim()?[{type:"text",text:Q}]:[]:Q;return{messages:[s({content:[...v,...Z],uuid:V,imagePasteIds:W.length>0?W:void 0,permissionMode:J,isMeta:K||void 0}),...X],shouldQuery:!0}}return{messages:[s({content:Q,uuid:V,permissionMode:J,isMeta:K||void 0}),...X],shouldQuery:!0}}async function dX({input:Q,preExpansionInput:Z,mode:W,setToolJSX:X,context:V,pastedContents:J,ideSelection:K,messages:H,setUserInputOnProcessing:B,uuid:z,isAlreadyProcessing:G,querySource:L,canUseTool:w,skipSlashCommands:v,bridgeOrigin:_,isMeta:P,skipAttachments:C}){let D=typeof Q==="string"?Q:null;if(W==="prompt"&&D!==null&&!P)B?.(D);i("query_process_user_input_base_start");let $=V.getAppState(),y=await wW(Q,W,X,V,J,K,H,z,G,L,w,$.toolPermissionContext.mode,v,_,P,C,Z);if(i("query_process_user_input_base_end"),!y.shouldQuery)return y;i("query_hooks_start");let T=RY(Q)||"";for await(let O of aY(T,$.toolPermissionContext.mode,V,V.requestPrompt)){if(O.message?.type==="progress")continue;if(O.blockingError){let j=lY(O.blockingError);return{messages:[gY(`${j}
|
|
22
|
+
|
|
23
|
+
Original prompt: ${Q}`,"warning")],shouldQuery:!1,allowedTools:y.allowedTools}}if(O.preventContinuation){let j=O.stopReason?`Operation stopped by hook: ${O.stopReason}`:"Operation stopped by hook";return y.messages.push(s({content:j})),y.shouldQuery=!1,y}if(O.additionalContexts&&O.additionalContexts.length>0)y.messages.push(fY({type:"hook_additional_context",content:O.additionalContexts.map(TY),hookName:"UserPromptSubmit",toolUseID:`hook-${_W()}`,hookEvent:"UserPromptSubmit"}));if(O.message)switch(O.message.attachment.type){case"hook_success":if(!O.message.attachment.content)break;y.messages.push({...O.message,attachment:{...O.message.attachment,content:TY(O.message.attachment.content)}});break;default:y.messages.push(O.message);break}}return i("query_hooks_end"),y}var dZ=1e4;function TY(Q){if(Q.length>dZ)return`${Q.substring(0,dZ)}… [output truncated - exceeded ${dZ} characters]`;return Q}async function wW(Q,Z,W,X,V,J,K,H,B,z,G,L,w,v,_,P,C){let D=null,$=[],y=[],T=Q;if(typeof Q==="string")D=Q;else if(Q.length>0){i("query_image_processing_start");let A=[];for(let R of Q)if(R.type==="image"){let h=await nZ(R);if(h.dimensions){let r=$Z(h.dimensions);if(r)y.push(r)}A.push(h.block)}else A.push(R);T=A,i("query_image_processing_end");let N=A[A.length-1];if(N?.type==="text")D=N.text,$=A.slice(0,-1);else $=A}if(D===null&&Z!=="prompt")throw Error(`Mode: ${Z} requires a string input.`);let O=V?Object.values(V).filter(xY):[],j=O.map((A)=>A.id),l=V?await SY(V):new Map;i("query_pasted_image_processing_start");let n=await Promise.all(O.map(async(A)=>{let N={type:"image",source:{type:"base64",media_type:A.mediaType||"image/png",data:A.content}};return d("tengu_pasted_image_resize_attempt",{original_size_bytes:A.content.length}),{resized:await nZ(N),originalDimensions:A.dimensions,sourcePath:A.sourcePath??l.get(A.id)}})),S=[];for(let{resized:A,originalDimensions:N,sourcePath:R}of n){if(A.dimensions){let h=$Z(A.dimensions,R);if(h)y.push(h)}else if(N){let h=$Z(N,R);if(h)y.push(h)}else if(R)y.push(`[Image source: ${R}]`);S.push(A.block)}i("query_pasted_image_processing_end");let m=w;if(v&&D!==null&&D.startsWith("/")){let A=kY(D),N=A?cY(A.commandName,X.options.commands):void 0;if(N)if(mY(N))m=!1;else{let R=`/${uY(N)} isn't available over Remote Control.`;return{messages:[s({content:D,uuid:H}),dY(`<local-command-stdout>${R}</local-command-stdout>`)],shouldQuery:!1,resultText:R}}}let g=!P&&D!==null&&(Z!=="prompt"||m||!D.startsWith("/"));i("query_attachment_loading_start");let x=g?await hY(pY(D,X,J??null,[],K,z)):[];if(i("query_attachment_loading_end"),D!==null&&Z==="bash"){let{processBashCommand:A}=await import("./processBashCommand-0.5.8-pdnzd9ry.mjs");return lZ(await A(D,$,x,X,W),y)}if(D!==null&&!m&&D.startsWith("/")){let{processSlashCommand:A}=await import("./processSlashCommand-0.5.8-kmv9fs8d.mjs"),N=await A(D,$,S,x,X,W,H,B,G);return lZ(N,y)}if(D!==null&&Z==="prompt"){let A=D.trim(),N=x.find((R)=>R.attachment.type==="agent_mention");if(N){let R=`@agent-${N.attachment.agentType}`,h=A===R,r=A.startsWith(R)&&!h;d("tengu_subagent_at_mention",{is_subagent_only:h,is_prefix:r})}}return lZ(CY(T,S,j,x,H,L,_),y)}function lZ(Q,Z){if(Z.length>0)Q.messages.push(s({content:Z.map((W)=>({type:"text",text:W})),isMeta:!0}));return Q}dW();HZ();GZ();gZ();cW();mW();_0();lW();gW();import{isAbsolute as aW,resolve as nW}from"path";function iW(Q,Z,W){let X=[],V=[],J=[];for(let[K,H]of Object.entries(Q)){let B=Z[K],z=P9(H.source,W?.projectRoot);if(!B)X.push(K);else if(H.sourceIsFallback)J.push(K);else if(!O9(z,B.source))V.push({name:K,declaredSource:z,materializedSource:B.source});else J.push(K)}return{missing:X,sourceChanged:V,upToDate:J}}async function PV(Q){let Z=U9();if(Object.keys(Z).length===0)return{installed:[],updated:[],failed:[],upToDate:[],skipped:[]};let W;try{W=await E9()}catch(G){e(G),W={}}let X=iW(Z,W,{projectRoot:Y0()}),V=[...X.missing.map((G)=>({name:G,source:P9(Z[G].source),action:"install"})),...X.sourceChanged.map(({name:G,declaredSource:L})=>({name:G,source:L,action:"update"}))],J=[],K=[];for(let G of V){if(Q?.skip?.(G.name,G.source)){J.push(G.name);continue}if(G.action==="update"&&w9(G.source)&&!await _9(G.source.path)){b(`[reconcile] '${G.name}' declared path does not exist; keeping materialized entry`),J.push(G.name);continue}K.push(G)}if(K.length===0)return{installed:[],updated:[],failed:[],upToDate:X.upToDate,skipped:J};b(`[reconcile] ${K.length} marketplace(s): ${K.map((G)=>`${G.name}(${G.action})`).join(", ")}`);let H=[],B=[],z=[];for(let G=0;G<K.length;G++){let{name:L,source:w,action:v}=K[G];Q?.onProgress?.({type:"installing",name:L,action:v,index:G+1,total:K.length});try{let _=await y9(w);if(v==="install")H.push(L);else B.push(L);Q?.onProgress?.({type:"installed",name:L,alreadyMaterialized:_.alreadyMaterialized})}catch(_){let P=v9(_);z.push({name:L,error:P}),Q?.onProgress?.({type:"failed",name:L,error:P}),e(_)}}return{installed:H,updated:B,failed:z,upToDate:X.upToDate,skipped:J}}function P9(Q,Z){if((Q.source==="directory"||Q.source==="file")&&!aW(Q.path)){let W=Z??Y0(),X=A9(W);return{...Q,path:nW(X??W,Q.path)}}return Q}
|
|
24
|
+
export{XX as ia,KW as ja,qX as ka,r9 as la,T0 as ma,ZQ as na,YQ as oa,QQ as pa,vX as qa,dX as ra,mZ as sa,yZ as ta,e0 as ua,oQ as va,iW as wa,PV as xa,PW as ya,$W as za,jW as Aa,xW as Ba,pW as Ca,uW as Da};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{lna as p,mna as a}from"./cli-0.5.8-4jrb4x7b.mjs";import{xna as i}from"./cli-0.5.8-hkfwdsmy.mjs";var u=i((V)=>{var v=p(),T=a(),_="AWS_ACCESS_KEY_ID",N="AWS_SECRET_ACCESS_KEY",S="AWS_SESSION_TOKEN",C="AWS_CREDENTIAL_EXPIRATION",A="AWS_CREDENTIAL_SCOPE",I="AWS_ACCOUNT_ID",d=(e)=>async()=>{e?.logger?.debug("@aws-sdk/credential-provider-env - fromEnv");let r=process.env[_],s=process.env[N],E=process.env[S],o=process.env[C],n=process.env[A],t=process.env[I];if(r&&s){let c={accessKeyId:r,secretAccessKey:s,...E&&{sessionToken:E},...o&&{expiration:new Date(o)},...n&&{credentialScope:n},...t&&{accountId:t}};return v.setCredentialFeature(c,"CREDENTIALS_ENV_VARS","g"),c}throw new T.CredentialsProviderError("Unable to find environment variable credentials.",{logger:e?.logger})};V.ENV_ACCOUNT_ID=I;V.ENV_CREDENTIAL_SCOPE=A;V.ENV_EXPIRATION=C;V.ENV_KEY=_;V.ENV_SECRET=N;V.ENV_SESSION=S;V.fromEnv=d});
|
|
2
|
+
export{u as t5};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import{An as G,Dn as a,MB as k,NB as HJ,Ql as R,Rl as BJ,tq as D,uq as hJ}from"./cli-0.5.8-4hvxb5dp.mjs";import{C3 as bJ,c3 as ZJ,n3 as $J}from"./cli-0.5.8-rddkqxh8.mjs";import{S_ as WJ,f$ as jJ,k7 as C,l7 as GJ,m7 as h,n7 as FJ,o7 as u,p7 as kJ}from"./cli-0.5.8-qf19nfhv.mjs";import{$ca as r,Xca as q,Zca as s,_ca as Y}from"./cli-0.5.8-bjqx8j31.mjs";import{jda as x,vda as gJ}from"./cli-0.5.8-7fm71y20.mjs";import{Yda as M,bea as yJ}from"./cli-0.5.8-w7g735pf.mjs";import{Aea as o,Bea as CJ,Kea as n,Lea as EJ,Qea as l,Rea as TJ}from"./cli-0.5.8-xs1gy1tk.mjs";import{Aga as wJ,Jla as mJ,Lga as f,Mga as PJ,pha as c,qha as OJ,sla as QJ,tha as H,uha as F,vha as I,wha as YJ,xga as g,xha as P,yga as zJ,yha as XJ,zga as A}from"./cli-0.5.8-bhc8vwxd.mjs";import{Sla as K,Tla as DJ}from"./cli-0.5.8-8h4z9e0a.mjs";import{zna as B}from"./cli-0.5.8-hkfwdsmy.mjs";function UJ(J,Q){return Q.length<2?J:P(J,R(Q,0,-1))}var z;var L=B(()=>{XJ();BJ();z=UJ});function xJ(J,Q){Q=H(Q,J);var W=-1,$=Q.length;if(!$)return!0;while(++W<$){var Z=I(Q[W]);if(Z==="__proto__"&&!KJ.call(J,"__proto__"))return!1;if((Z==="constructor"||Z==="prototype")&&W<$-1)return!1}var X=z(J,Q);return X==null||delete X[I(k(Q))]}var IJ,KJ,N;var O=B(()=>{F();HJ();L();YJ();IJ=Object.prototype,KJ=IJ.hasOwnProperty;N=xJ});function MJ(J){return C(J)?void 0:J}var E;var T=B(()=>{GJ();E=MJ});function RJ(J){return A(J)||f(J)||!!(S&&J&&J[S])}var S,d;var _=B(()=>{DJ();PJ();wJ();S=K?K.isConcatSpreadable:void 0;d=RJ});function v(J,Q,W,$,Z){var X=-1,V=J.length;W||(W=d),Z||(Z=[]);while(++X<V){var U=J[X];if(Q>0&&W(U))if(Q>1)v(U,Q-1,W,$,Z);else g(Z,U);else if(!$)Z[Z.length]=U}return Z}var m;var j=B(()=>{zJ();_();m=v});function LJ(J){var Q=J==null?0:J.length;return Q?m(J,1):[]}var y;var b=B(()=>{j();y=LJ});function NJ(J){return u(h(J,void 0,y),J+"")}var i;var p=B(()=>{b();FJ();kJ();i=NJ});var SJ=1,AJ=2,fJ=4,dJ,NQ;var _J=B(()=>{OJ();TJ();O();F();CJ();T();p();EJ();dJ=i(function(J,Q){var W={};if(J==null)return W;var $=!1;if(Q=c(Q,function(X){return X=H(X,J),$||($=X.length>1),X}),o(J,n(J),W),$)W=l(W,SJ|AJ|fJ,E);var Z=Q.length;while(Z--)N(W,Q[Z]);return W}),NQ=dJ});function t(){let J=x("tengu_harbor_ledger",[]),Q=vJ().safeParse(J);return Q.success?Q.data:[]}function e(){return x("tengu_harbor",!1)}var vJ;var JJ=B(()=>{s();r();a();gJ();vJ=Y(()=>q.array(q.object({marketplace:q.string(),plugin:q.string()})))});function uQ(J,Q,W){let $=Object.entries(W??{}).filter(([Z])=>iJ.test(Z)).map(([Z,X])=>` ${Z}="${D(X)}"`).join("");return`<${M} source="${D(J)}"${$}>
|
|
2
|
+
${Q}
|
|
3
|
+
</${M}>`}function pJ(J,Q){if((J==="team"||J==="enterprise")&&Q)return{entries:Q,source:"org"};return{entries:t(),source:"ledger"}}function cJ(J,Q){let W=J.split(":");return Q.find(($)=>$.kind==="server"?J===$.name:W[0]==="plugin"&&W[1]===$.name)}function iQ(J,Q,W){if(!Q?.experimental?.["claude/channel"])return{action:"skip",kind:"capability",reason:"server did not declare claude/channel capability"};if(!e())return{action:"skip",kind:"disabled",reason:"channels feature is not currently available"};if(!ZJ()?.accessToken)return{action:"skip",kind:"auth",reason:"channels requires claude.ai authentication (run /login)"};let $=$J(),Z=$==="team"||$==="enterprise",X=Z?WJ("policySettings"):void 0;if(Z&&X?.channelsEnabled!==!0)return{action:"skip",kind:"policy",reason:"channels not enabled by org policy (set channelsEnabled: true in managed settings)"};let V=cJ(J,QJ());if(!V)return{action:"skip",kind:"session",reason:`server ${J} not in --channels list for this session`};if(V.kind==="plugin"){let U=W?G(W).marketplace:void 0;if(U!==V.marketplace)return{action:"skip",kind:"marketplace",reason:`you asked for plugin:${V.name}@${V.marketplace} but the installed ${V.name} plugin is from ${U??"an unknown source"}`};if(!V.dev){let{entries:qJ,source:VJ}=pJ($,X?.allowedChannelPlugins);if(!qJ.some((w)=>w.plugin===V.name&&w.marketplace===V.marketplace))return{action:"skip",kind:"allowlist",reason:VJ==="org"?`plugin ${V.name}@${V.marketplace} is not on your org's approved channels list (set allowedChannelPlugins in managed settings)`:`plugin ${V.name}@${V.marketplace} is not on the approved channels allowlist (use --dangerously-load-development-channels for local dev)`}}}else if(!V.dev)return{action:"skip",kind:"allowlist",reason:`server ${V.name} is not on the approved channels allowlist (use --dangerously-load-development-channels for local dev)`};return{action:"register"}}var bQ,uJ="notifications/claude/channel/permission",hQ,iJ;var oJ=B(()=>{s();mJ();yJ();bJ();r();a();jJ();hJ();JJ();bQ=Y(()=>q.object({method:q.literal("notifications/claude/channel"),params:q.object({content:q.string(),meta:q.record(q.string(),q.string()).optional()})})),hQ=Y(()=>q.object({method:q.literal(uJ),params:q.object({request_id:q.string(),behavior:q.enum(["allow","deny"])})})),iJ=/^[a-zA-Z_][a-zA-Z0-9_]*$/});
|
|
4
|
+
export{NQ as af,_J as bf,JJ as cf,bQ as df,uQ as ef,cJ as ff,iQ as gf,oJ as hf};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{yV as O}from"./cli-0.5.8-nwe7yne9.mjs";import{XY as X,ZY as Q}from"./cli-0.5.8-zkn5gecs.mjs";import{_Y as b}from"./cli-0.5.8-6epmns99.mjs";import{caa as W,paa as P}from"./cli-0.5.8-qf19nfhv.mjs";import{vna as U}from"./cli-0.5.8-hkfwdsmy.mjs";P();Q();var Y=U(O(),1),J=U(b(),1);function L(D,z){let F=z/100*(D.length-1),q=Math.floor(F),k=Math.ceil(F);if(q===k)return D[q];return D[q]+(D[k]-D[q])*(F-q)}var T=1024;function V(){let D=new Map,z=new Map,F=new Map;return{increment(q,k=1){D.set(q,(D.get(q)??0)+k)},set(q,k){D.set(q,k)},observe(q,k){let y=z.get(q);if(!y)y={reservoir:[],count:0,sum:0,min:k,max:k},z.set(q,y);if(y.count++,y.sum+=k,k<y.min)y.min=k;if(k>y.max)y.max=k;if(y.reservoir.length<T)y.reservoir.push(k);else{let B=Math.floor(Math.random()*y.count);if(B<T)y.reservoir[B]=k}},add(q,k){let y=F.get(q);if(!y)y=new Set,F.set(q,y);y.add(k)},getAll(){let q=Object.fromEntries(D);for(let[k,y]of z){if(y.count===0)continue;q[`${k}_count`]=y.count,q[`${k}_min`]=y.min,q[`${k}_max`]=y.max,q[`${k}_avg`]=y.sum/y.count;let B=[...y.reservoir].sort((G,H)=>G-H);q[`${k}_p50`]=L(B,50),q[`${k}_p95`]=L(B,95),q[`${k}_p99`]=L(B,99)}for(let[k,y]of F)q[k]=y.size;return q}}}var Z=J.createContext(null);function C(D){let z=Y.c(7),{store:F,children:q}=D,k;if(z[0]===Symbol.for("react.memo_cache_sentinel"))k=V(),z[0]=k;else k=z[0];let B=F??k,G,H;if(z[1]!==B)G=()=>{let M=()=>{let N=B.getAll();if(Object.keys(N).length>0)W((A)=>({...A,lastSessionMetrics:N}))};return process.on("exit",M),()=>{process.off("exit",M)}},H=[B],z[1]=B,z[2]=G,z[3]=H;else G=z[2],H=z[3];J.useEffect(G,H);let K;if(z[4]!==q||z[5]!==B)K=X(Z.Provider,{value:B,children:q}),z[4]=q,z[5]=B,z[6]=K;else K=z[6];return K}
|
|
2
|
+
export{V as Cb,C as Db};
|