@claudiolabs/claudin 0.6.2 → 0.6.3
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.6.3-w39w1tm9.mjs +1 -0
- package/dist/chunks/App-0.6.3-bf23q7fe.mjs +1 -0
- package/dist/chunks/ApproveApiKey-0.6.3-kmctgnz2.mjs +1 -0
- package/dist/chunks/AssistantSessionChooser-0.6.3-0ep3n5s0.mjs +1 -0
- package/dist/chunks/AutoModeOptInDialog-0.6.3-vxra859t.mjs +1 -0
- package/dist/chunks/BypassPermissionsModeDialog-0.6.3-sw13k2p8.mjs +1 -0
- package/dist/chunks/ClaudeMdExternalIncludesDialog-0.6.3-60awaqwr.mjs +1 -0
- package/dist/chunks/ConsoleOAuthFlow-0.6.3-kk7w26bg.mjs +1 -0
- package/dist/chunks/DiffDialog-0.6.3-xvx07sv4.mjs +3 -0
- package/dist/chunks/Doctor-0.6.3-4jwxgrk8.mjs +1 -0
- package/dist/chunks/Grove-0.6.3-g8cwnttq.mjs +1 -0
- package/dist/chunks/ITermBackend-0.6.3-jdkqh9bh.mjs +1 -0
- package/dist/chunks/InvalidConfigDialog-0.6.3-0k9mawc3.mjs +1 -0
- package/dist/chunks/InvalidSettingsDialog-0.6.3-j8rff6m8.mjs +1 -0
- package/dist/chunks/MigrationDialog-0.6.3-car6y4n7.mjs +1 -0
- package/dist/chunks/Onboarding-0.6.3-m7danhhz.mjs +1 -0
- package/dist/chunks/ProviderManager-0.6.3-pwe3440b.mjs +1 -0
- package/dist/chunks/REPL-0.6.3-fgapj6pt.mjs +1 -0
- package/dist/chunks/ResumeConversation-0.6.3-8m1y0n85.mjs +1 -0
- package/dist/chunks/SnapshotUpdateDialog-0.6.3-btb0czta.mjs +1 -0
- package/dist/chunks/TeleportProgress-0.6.3-0cvtw4gc.mjs +1 -0
- package/dist/chunks/TeleportRepoMismatchDialog-0.6.3-3ns6hahg.mjs +1 -0
- package/dist/chunks/TeleportResumeWrapper-0.6.3-82jmwxw0.mjs +1 -0
- package/dist/chunks/TmuxBackend-0.6.3-ampabjvv.mjs +9 -0
- package/dist/chunks/ToolSearchTool-0.6.3-8nqsgt07.mjs +1 -0
- package/dist/chunks/TrustDialog-0.6.3-vd2hj09s.mjs +1 -0
- package/dist/chunks/activeProvider-0.6.3-b2vqxf8h.mjs +1 -0
- package/dist/chunks/add-dir-0.6.3-g1q6rzd5.mjs +1 -0
- package/dist/chunks/agents-0.6.3-q5xaz38q.mjs +3 -0
- package/dist/chunks/agents-0.6.3-x369fczx.mjs +110 -0
- package/dist/chunks/api-0.6.3-c8cpd5e4.mjs +1 -0
- package/dist/chunks/asciicast-0.6.3-ph0g3j31.mjs +1 -0
- package/dist/chunks/assistant-0.6.3-zzx692bw.mjs +1 -0
- package/dist/chunks/auth-0.6.3-4t0t2nkn.mjs +1 -0
- package/dist/chunks/auth-0.6.3-s9a1xnxb.mjs +1 -0
- package/dist/chunks/autoMode-0.6.3-aha41tt9.mjs +48 -0
- package/dist/chunks/autoUpdater-0.6.3-nknpfabv.mjs +1 -0
- package/dist/chunks/backgroundHousekeeping-0.6.3-t18m5mxn.mjs +1 -0
- package/dist/chunks/branch-0.6.3-mm6nsq5m.mjs +4 -0
- package/dist/chunks/bridgePointer-0.6.3-96b73p4h.mjs +1 -0
- package/dist/chunks/btw-0.6.3-3ad5s4cs.mjs +1 -0
- package/dist/chunks/buddy-0.6.3-fv2jmxew.mjs +3 -0
- package/dist/chunks/cacache-0.6.3-8n06prq8.mjs +1 -0
- package/dist/chunks/cache-probe-0.6.3-vwte845g.mjs +21 -0
- package/dist/chunks/cacheStats-0.6.3-3knz38ev.mjs +4 -0
- package/dist/chunks/caches-0.6.3-ab262f7m.mjs +1 -0
- package/dist/chunks/claudeDesktop-0.6.3-sw2jgmfw.mjs +1 -0
- package/dist/chunks/claudemd-0.6.3-ppznmrv5.mjs +1 -0
- package/dist/chunks/clear-0.6.3-q5ygewg2.mjs +1 -0
- package/dist/chunks/clearTerminal-0.6.3-k13xzp29.mjs +1 -0
- package/dist/chunks/cli-0.6.3-0cpgmzyt.mjs +2 -0
- package/dist/chunks/cli-0.6.3-0d5cxdkq.mjs +2 -0
- package/dist/chunks/cli-0.6.3-0f2ybbnq.mjs +2 -0
- package/dist/chunks/cli-0.6.3-0xzsm005.mjs +2 -0
- package/dist/chunks/cli-0.6.3-1hr1gfgx.mjs +2 -0
- package/dist/chunks/cli-0.6.3-20mtfrec.mjs +2 -0
- package/dist/chunks/cli-0.6.3-2seqm104.mjs +4 -0
- package/dist/chunks/cli-0.6.3-2znr1dn6.mjs +2 -0
- package/dist/chunks/cli-0.6.3-307m09be.mjs +3 -0
- package/dist/chunks/cli-0.6.3-32ma4ryx.mjs +58 -0
- package/dist/chunks/cli-0.6.3-3k3fr10v.mjs +2 -0
- package/dist/chunks/cli-0.6.3-3sga01kt.mjs +2 -0
- package/dist/chunks/cli-0.6.3-40mx2zxs.mjs +2 -0
- package/dist/chunks/cli-0.6.3-4jyjt985.mjs +2 -0
- package/dist/chunks/cli-0.6.3-4n393st8.mjs +2 -0
- package/dist/chunks/cli-0.6.3-4tqk3dby.mjs +12 -0
- package/dist/chunks/cli-0.6.3-4y6pfyfp.mjs +2 -0
- package/dist/chunks/cli-0.6.3-4z9781g7.mjs +2 -0
- package/dist/chunks/cli-0.6.3-4zj0d42m.mjs +18 -0
- package/dist/chunks/cli-0.6.3-5nfphar2.mjs +3 -0
- package/dist/chunks/cli-0.6.3-5pxyd9b0.mjs +4 -0
- package/dist/chunks/cli-0.6.3-5rwq19xb.mjs +2 -0
- package/dist/chunks/cli-0.6.3-5t2m3g99.mjs +2 -0
- package/dist/chunks/cli-0.6.3-6a21y020.mjs +2 -0
- package/dist/chunks/cli-0.6.3-6ax8m5hv.mjs +6 -0
- package/dist/chunks/cli-0.6.3-6cgyr2zy.mjs +4 -0
- package/dist/chunks/cli-0.6.3-6cvpnccg.mjs +4 -0
- package/dist/chunks/cli-0.6.3-6ee9dyyg.mjs +3 -0
- package/dist/chunks/cli-0.6.3-6h30fzt5.mjs +17 -0
- package/dist/chunks/cli-0.6.3-6n6gtkcy.mjs +2 -0
- package/dist/chunks/cli-0.6.3-6njpepxe.mjs +2 -0
- package/dist/chunks/cli-0.6.3-6yfw5hn3.mjs +2 -0
- package/dist/chunks/cli-0.6.3-7adzjn5q.mjs +34 -0
- package/dist/chunks/cli-0.6.3-7g460zkw.mjs +2 -0
- package/dist/chunks/cli-0.6.3-7qg9g8tc.mjs +2 -0
- package/dist/chunks/cli-0.6.3-81rrwwcp.mjs +2 -0
- package/dist/chunks/cli-0.6.3-8cn32ma4.mjs +2 -0
- package/dist/chunks/cli-0.6.3-8dsgn7hp.mjs +2 -0
- package/dist/chunks/cli-0.6.3-8ea1a14z.mjs +2 -0
- package/dist/chunks/cli-0.6.3-8ggghhkx.mjs +2 -0
- package/dist/chunks/cli-0.6.3-8qad2cfe.mjs +3 -0
- package/dist/chunks/cli-0.6.3-8syjpqfr.mjs +4 -0
- package/dist/chunks/cli-0.6.3-92dx7xfh.mjs +2 -0
- package/dist/chunks/cli-0.6.3-92mddczk.mjs +2 -0
- package/dist/chunks/cli-0.6.3-97118c51.mjs +2 -0
- package/dist/chunks/cli-0.6.3-99kq55gd.mjs +2 -0
- package/dist/chunks/cli-0.6.3-99tcx5qw.mjs +2 -0
- package/dist/chunks/cli-0.6.3-9swe2gr2.mjs +45 -0
- package/dist/chunks/cli-0.6.3-a9z41xw7.mjs +2 -0
- package/dist/chunks/cli-0.6.3-aa0b2a2r.mjs +2 -0
- package/dist/chunks/cli-0.6.3-aazxr34f.mjs +2 -0
- package/dist/chunks/cli-0.6.3-aexkp8kj.mjs +2 -0
- package/dist/chunks/cli-0.6.3-ajqkhkc8.mjs +3 -0
- package/dist/chunks/cli-0.6.3-apnw4sqn.mjs +2 -0
- package/dist/chunks/cli-0.6.3-ar7px1cs.mjs +3 -0
- package/dist/chunks/cli-0.6.3-aw337kkj.mjs +3 -0
- package/dist/chunks/cli-0.6.3-b773k4ts.mjs +2 -0
- package/dist/chunks/cli-0.6.3-b8vfg8at.mjs +2 -0
- package/dist/chunks/cli-0.6.3-bcqjyxwt.mjs +2 -0
- package/dist/chunks/cli-0.6.3-be9988sa.mjs +67 -0
- package/dist/chunks/cli-0.6.3-bm4fb040.mjs +2 -0
- package/dist/chunks/cli-0.6.3-bv459f1w.mjs +50 -0
- package/dist/chunks/cli-0.6.3-cbyjhbhd.mjs +2 -0
- package/dist/chunks/cli-0.6.3-ce093xrt.mjs +2 -0
- package/dist/chunks/cli-0.6.3-cfgaczs0.mjs +9 -0
- package/dist/chunks/cli-0.6.3-cn73stdt.mjs +2 -0
- package/dist/chunks/cli-0.6.3-cry1qz3j.mjs +2 -0
- package/dist/chunks/cli-0.6.3-ct7rzynk.mjs +25 -0
- package/dist/chunks/cli-0.6.3-cz70v0dc.mjs +193 -0
- package/dist/chunks/cli-0.6.3-dcddpada.mjs +2 -0
- package/dist/chunks/cli-0.6.3-djx10r48.mjs +2 -0
- package/dist/chunks/cli-0.6.3-dv7ypjqm.mjs +42 -0
- package/dist/chunks/cli-0.6.3-dx1n041e.mjs +4 -0
- package/dist/chunks/cli-0.6.3-e56v1kt5.mjs +2 -0
- package/dist/chunks/cli-0.6.3-ee53b5tf.mjs +2 -0
- package/dist/chunks/cli-0.6.3-efydy6w2.mjs +2 -0
- package/dist/chunks/cli-0.6.3-ejr47y1x.mjs +2 -0
- package/dist/chunks/cli-0.6.3-eqnnyg8r.mjs +10 -0
- package/dist/chunks/cli-0.6.3-es8pf0wd.mjs +5 -0
- package/dist/chunks/cli-0.6.3-eytmae68.mjs +2 -0
- package/dist/chunks/cli-0.6.3-f2hnrcvv.mjs +2 -0
- package/dist/chunks/cli-0.6.3-f6vwjwer.mjs +2 -0
- package/dist/chunks/cli-0.6.3-fdr38m0k.mjs +2 -0
- package/dist/chunks/cli-0.6.3-fdye25f4.mjs +21 -0
- package/dist/chunks/cli-0.6.3-fhets69t.mjs +2 -0
- package/dist/chunks/cli-0.6.3-fws87r5f.mjs +2 -0
- package/dist/chunks/cli-0.6.3-fz79skca.mjs +133 -0
- package/dist/chunks/cli-0.6.3-g48fakzt.mjs +4 -0
- package/dist/chunks/cli-0.6.3-g4gt6qj9.mjs +18 -0
- package/dist/chunks/cli-0.6.3-g4y759q5.mjs +2 -0
- package/dist/chunks/cli-0.6.3-g7nc10fr.mjs +2 -0
- package/dist/chunks/cli-0.6.3-g7yry9cm.mjs +2 -0
- package/dist/chunks/cli-0.6.3-gcncppqh.mjs +2 -0
- package/dist/chunks/cli-0.6.3-gm6gpvcp.mjs +2 -0
- package/dist/chunks/cli-0.6.3-gmb75jnx.mjs +2 -0
- package/dist/chunks/cli-0.6.3-grerfrmn.mjs +2 -0
- package/dist/chunks/cli-0.6.3-gywe2011.mjs +2 -0
- package/dist/chunks/cli-0.6.3-gz3mwtfc.mjs +15 -0
- package/dist/chunks/cli-0.6.3-h1yy6vwa.mjs +3 -0
- package/dist/chunks/cli-0.6.3-h9dw5s07.mjs +2 -0
- package/dist/chunks/cli-0.6.3-h9pgh5g6.mjs +3 -0
- package/dist/chunks/cli-0.6.3-hccmsmnq.mjs +2 -0
- package/dist/chunks/cli-0.6.3-hz8r1b9m.mjs +2 -0
- package/dist/chunks/cli-0.6.3-jc158pav.mjs +3 -0
- package/dist/chunks/cli-0.6.3-jh5sabys.mjs +2 -0
- package/dist/chunks/cli-0.6.3-jwkcjnvk.mjs +2 -0
- package/dist/chunks/cli-0.6.3-k2n0q631.mjs +39 -0
- package/dist/chunks/cli-0.6.3-k5rdtkfr.mjs +3 -0
- package/dist/chunks/cli-0.6.3-kay5e0jz.mjs +2 -0
- package/dist/chunks/cli-0.6.3-kfn8srsd.mjs +2 -0
- package/dist/chunks/cli-0.6.3-kwnp45kq.mjs +2 -0
- package/dist/chunks/cli-0.6.3-kz9egvgw.mjs +5323 -0
- package/dist/chunks/cli-0.6.3-m74nx2m5.mjs +2 -0
- package/dist/chunks/cli-0.6.3-mc6kp3j9.mjs +18 -0
- package/dist/chunks/cli-0.6.3-mcmskrq3.mjs +7 -0
- package/dist/chunks/cli-0.6.3-mwmvdr0y.mjs +2 -0
- package/dist/chunks/cli-0.6.3-mwvq805r.mjs +2 -0
- package/dist/chunks/cli-0.6.3-n0nvqsep.mjs +2 -0
- package/dist/chunks/cli-0.6.3-n2d97bhc.mjs +2 -0
- package/dist/chunks/cli-0.6.3-n3f5zh7x.mjs +2 -0
- package/dist/chunks/cli-0.6.3-n95caxs7.mjs +6 -0
- package/dist/chunks/cli-0.6.3-nawttnnp.mjs +16 -0
- package/dist/chunks/cli-0.6.3-ny9veqgk.mjs +2 -0
- package/dist/chunks/cli-0.6.3-p3cb5wr9.mjs +4 -0
- package/dist/chunks/cli-0.6.3-p6tkk7cq.mjs +2 -0
- package/dist/chunks/cli-0.6.3-pj26ahpb.mjs +15 -0
- package/dist/chunks/cli-0.6.3-pqq8j8h2.mjs +2 -0
- package/dist/chunks/cli-0.6.3-przsjt5w.mjs +2 -0
- package/dist/chunks/cli-0.6.3-pt8n31ph.mjs +2 -0
- package/dist/chunks/cli-0.6.3-q35m6zsh.mjs +2 -0
- package/dist/chunks/cli-0.6.3-qh59pqrb.mjs +2 -0
- package/dist/chunks/cli-0.6.3-qj1bfrer.mjs +15 -0
- package/dist/chunks/cli-0.6.3-qse47680.mjs +5 -0
- package/dist/chunks/cli-0.6.3-qt063vx3.mjs +2 -0
- package/dist/chunks/cli-0.6.3-r08n6yst.mjs +2 -0
- package/dist/chunks/cli-0.6.3-r0chaj0m.mjs +2 -0
- package/dist/chunks/cli-0.6.3-r0pavcpp.mjs +2 -0
- package/dist/chunks/cli-0.6.3-r8snnnev.mjs +2 -0
- package/dist/chunks/cli-0.6.3-r9spk5d9.mjs +2 -0
- package/dist/chunks/cli-0.6.3-razq4hma.mjs +2 -0
- package/dist/chunks/cli-0.6.3-rbhgbyc8.mjs +24 -0
- package/dist/chunks/cli-0.6.3-rcd74wx6.mjs +9 -0
- package/dist/chunks/cli-0.6.3-rha5x3b1.mjs +2 -0
- package/dist/chunks/cli-0.6.3-rm69szc5.mjs +2 -0
- package/dist/chunks/cli-0.6.3-rxzhhezk.mjs +2 -0
- package/dist/chunks/cli-0.6.3-ry8ff2h4.mjs +4 -0
- package/dist/chunks/cli-0.6.3-rz3jyy54.mjs +133 -0
- package/dist/chunks/cli-0.6.3-rzva33s6.mjs +2 -0
- package/dist/chunks/cli-0.6.3-s12drscf.mjs +2 -0
- package/dist/chunks/cli-0.6.3-sxj65pz4.mjs +2 -0
- package/dist/chunks/cli-0.6.3-syb9w8h5.mjs +2 -0
- package/dist/chunks/cli-0.6.3-sz0yt1ax.mjs +59 -0
- package/dist/chunks/cli-0.6.3-te71cc6c.mjs +8 -0
- package/dist/chunks/cli-0.6.3-tjykjtxh.mjs +6 -0
- package/dist/chunks/cli-0.6.3-v3fjzj8a.mjs +12 -0
- package/dist/chunks/cli-0.6.3-vcpzn6r6.mjs +2 -0
- package/dist/chunks/cli-0.6.3-vdzjz0qm.mjs +2 -0
- package/dist/chunks/cli-0.6.3-ve8f981m.mjs +3 -0
- package/dist/chunks/cli-0.6.3-vp1zy3b1.mjs +2 -0
- package/dist/chunks/cli-0.6.3-vsvcyfnd.mjs +17 -0
- package/dist/chunks/cli-0.6.3-w038em13.mjs +2 -0
- package/dist/chunks/cli-0.6.3-w3rq9jx1.mjs +2 -0
- package/dist/chunks/cli-0.6.3-wfrn6z2y.mjs +24 -0
- package/dist/chunks/cli-0.6.3-whtn6spz.mjs +2 -0
- package/dist/chunks/cli-0.6.3-wr2sys6k.mjs +2 -0
- package/dist/chunks/cli-0.6.3-wvdzc276.mjs +1 -0
- package/dist/chunks/cli-0.6.3-wwmrkyrs.mjs +20 -0
- package/dist/chunks/cli-0.6.3-wws3zqpm.mjs +2 -0
- package/dist/chunks/cli-0.6.3-x6f1pr27.mjs +2 -0
- package/dist/chunks/cli-0.6.3-x78bwn0g.mjs +5 -0
- package/dist/chunks/cli-0.6.3-xe5mxfxe.mjs +2 -0
- package/dist/chunks/cli-0.6.3-xewp168m.mjs +2 -0
- package/dist/chunks/cli-0.6.3-y1aakb6y.mjs +2 -0
- package/dist/chunks/cli-0.6.3-y1mm0v8x.mjs +2 -0
- package/dist/chunks/cli-0.6.3-y30hptm0.mjs +2 -0
- package/dist/chunks/cli-0.6.3-y61armem.mjs +2 -0
- package/dist/chunks/cli-0.6.3-y8ymw6ed.mjs +2 -0
- package/dist/chunks/cli-0.6.3-yk56wjb7.mjs +2 -0
- package/dist/chunks/cli-0.6.3-ym6dcvjc.mjs +2 -0
- package/dist/chunks/cli-0.6.3-ymhjs7dc.mjs +2 -0
- package/dist/chunks/cli-0.6.3-ysazbe18.mjs +2 -0
- package/dist/chunks/cli-0.6.3-ywk23cbf.mjs +2 -0
- package/dist/chunks/cli-0.6.3-z19b5v43.mjs +2 -0
- package/dist/chunks/cli-0.6.3-z6sz55zd.mjs +2 -0
- package/dist/chunks/cli-0.6.3-z8vc44s1.mjs +2 -0
- package/dist/chunks/cli-0.6.3-zd6bnvyc.mjs +4 -0
- package/dist/chunks/cli-0.6.3-zmn1fgaa.mjs +2 -0
- package/dist/chunks/cli-0.6.3-zqvgfprs.mjs +2 -0
- package/dist/chunks/cli-0.6.3-zy0jc7vm.mjs +12 -0
- package/dist/chunks/cli-0.6.3-zyrsvq59.mjs +2 -0
- package/dist/chunks/client-0.6.3-6pn9sb4n.mjs +1 -0
- package/dist/chunks/color-0.6.3-2hpfj774.mjs +1 -0
- package/dist/chunks/compact-0.6.3-dnwdmmz1.mjs +3 -0
- package/dist/chunks/config-0.6.3-tjhtvb07.mjs +1 -0
- package/dist/chunks/config-0.6.3-z2wgyz10.mjs +1 -0
- package/dist/chunks/constants-0.6.3-qha9fz15.mjs +1 -0
- package/dist/chunks/context-0.6.3-vka61j1y.mjs +1 -0
- package/dist/chunks/context-noninteractive-0.6.3-eztt7zsf.mjs +1 -0
- package/dist/chunks/conversation-0.6.3-2ek3hdrq.mjs +1 -0
- package/dist/chunks/copilotHeaders-0.6.3-62c0y07g.mjs +1 -0
- package/dist/chunks/copy-0.6.3-gekdww8z.mjs +9 -0
- package/dist/chunks/cost-0.6.3-a2yhjbn3.mjs +1 -0
- package/dist/chunks/createSSHSession-0.6.3-5tn04mse.mjs +1 -0
- package/dist/chunks/createSession-0.6.3-kyn5dc4w.mjs +1 -0
- package/dist/chunks/debug-0.6.3-66czfwwr.mjs +1 -0
- package/dist/chunks/defaultActionDeps-0.6.3-x9wk9j9m.mjs +1365 -0
- package/dist/chunks/desktop-0.6.3-p8kgbeab.mjs +1 -0
- package/dist/chunks/detectRepository-0.6.3-8698wvb5.mjs +1 -0
- package/dist/chunks/detection-0.6.3-1y7661gd.mjs +1 -0
- package/dist/chunks/diff-0.6.3-mk0y1bzd.mjs +1 -0
- package/dist/chunks/doctor-0.6.3-xvwcr7dp.mjs +1 -0
- package/dist/chunks/doctorDiagnostic-0.6.3-th9mec17.mjs +1 -0
- package/dist/chunks/earlyInput-0.6.3-642zt7fp.mjs +1 -0
- package/dist/chunks/effort-0.6.3-zvkntxpn.mjs +10 -0
- package/dist/chunks/envUtils-0.6.3-yazqghf2.mjs +1 -0
- package/dist/chunks/environmentSelection-0.6.3-0bcr6rhg.mjs +1 -0
- package/dist/chunks/environments-0.6.3-2tyy264w.mjs +1 -0
- package/dist/chunks/errors-0.6.3-65brz247.mjs +1 -0
- package/dist/chunks/exampleCommands-0.6.3-ktqksq57.mjs +1 -0
- package/dist/chunks/exit-0.6.3-0ce6gh5m.mjs +1 -0
- package/dist/chunks/export-0.6.3-e2mjekav.mjs +2 -0
- package/dist/chunks/extra-usage-0.6.3-hqp8h6yy.mjs +1 -0
- package/dist/chunks/extra-usage-noninteractive-0.6.3-rfyx9kw2.mjs +1 -0
- package/dist/chunks/fast-0.6.3-1jg7ysjx.mjs +1 -0
- package/dist/chunks/feedback-0.6.3-1tb6qds2.mjs +14 -0
- package/dist/chunks/firstPartyEventLogger-0.6.3-c9kfz0k1.mjs +1 -0
- package/dist/chunks/git-0.6.3-vzgvhd0s.mjs +1 -0
- package/dist/chunks/githubModelsCredentials-0.6.3-9qcrf80c.mjs +1 -0
- package/dist/chunks/goal-0.6.3-mf91z3fg.mjs +4 -0
- package/dist/chunks/grove-0.6.3-mmn276sp.mjs +1 -0
- package/dist/chunks/growthbook-0.6.3-4p9xew93.mjs +1 -0
- package/dist/chunks/headless-0.6.3-qgmxgj70.mjs +2 -0
- package/dist/chunks/heapdump-0.6.3-2w4fe2zs.mjs +6 -0
- package/dist/chunks/help-0.6.3-wf4xf793.mjs +1 -0
- package/dist/chunks/hookChains-0.6.3-q342m95f.mjs +3 -0
- package/dist/chunks/hooks-0.6.3-0r48akk8.mjs +79 -0
- package/dist/chunks/hooks-0.6.3-r14ya7wn.mjs +1 -0
- package/dist/chunks/ide-0.6.3-ad8afpp9.mjs +3 -0
- package/dist/chunks/image-processor-napi-0.6.3-tva04ya1.mjs +1 -0
- package/dist/chunks/index-0.6.3-0hyrtrrm.mjs +9 -0
- package/dist/chunks/index-0.6.3-0vhzk5yx.mjs +5 -0
- package/dist/chunks/index-0.6.3-1ykp8wv0.mjs +2 -0
- package/dist/chunks/index-0.6.3-2bzz31fe.mjs +1 -0
- package/dist/chunks/index-0.6.3-55v75g6w.mjs +1 -0
- package/dist/chunks/index-0.6.3-6rpbscw7.mjs +17 -0
- package/dist/chunks/index-0.6.3-7mch7z3a.mjs +1 -0
- package/dist/chunks/index-0.6.3-858y11er.mjs +1 -0
- package/dist/chunks/index-0.6.3-a40sh9ap.mjs +1 -0
- package/dist/chunks/index-0.6.3-aj0c98mr.mjs +1 -0
- package/dist/chunks/index-0.6.3-b9fkqrrw.mjs +1 -0
- package/dist/chunks/index-0.6.3-f5732qxw.mjs +1 -0
- package/dist/chunks/index-0.6.3-f5w18za6.mjs +1 -0
- package/dist/chunks/index-0.6.3-f6h116cn.mjs +2 -0
- package/dist/chunks/index-0.6.3-htq5dpvs.mjs +30 -0
- package/dist/chunks/index-0.6.3-hv4mfh2n.mjs +1 -0
- package/dist/chunks/index-0.6.3-kadhv0zg.mjs +9 -0
- package/dist/chunks/index-0.6.3-tsd8ykv3.mjs +1 -0
- package/dist/chunks/index-0.6.3-w2hywyvr.mjs +1 -0
- package/dist/chunks/index-0.6.3-wk9kzbcz.mjs +1 -0
- package/dist/chunks/index-0.6.3-ygqhtfnf.mjs +1 -0
- package/dist/chunks/index-0.6.3-yvah3e6g.mjs +1 -0
- package/dist/chunks/init-0.6.3-xaeb8hxb.mjs +1 -0
- package/dist/chunks/initReplBridge-0.6.3-nmmr7v8v.mjs +1 -0
- package/dist/chunks/ink-0.6.3-6m2sw7dq.mjs +1 -0
- package/dist/chunks/insights-0.6.3-6b93b8nm.mjs +870 -0
- package/dist/chunks/install-0.6.3-y9zek66z.mjs +1 -0
- package/dist/chunks/install-github-app-0.6.3-899pnvtd.mjs +149 -0
- package/dist/chunks/install-slack-app-0.6.3-f8saspck.mjs +1 -0
- package/dist/chunks/instrumentation-0.6.3-defghs68.mjs +1 -0
- package/dist/chunks/interactiveHelpers-0.6.3-7ec0qnvv.mjs +1 -0
- package/dist/chunks/keybindings-0.6.3-eh7rjbha.mjs +2 -0
- package/dist/chunks/knowledge-0.6.3-a7pn2e1w.mjs +2 -0
- package/dist/chunks/latestVersionCache-0.6.3-vf3mkz2d.mjs +1 -0
- package/dist/chunks/loadAgentsDir-0.6.3-ykqa9b2g.mjs +1 -0
- package/dist/chunks/loadPluginHooks-0.6.3-jxaehczd.mjs +1 -0
- package/dist/chunks/loadPluginHooks-0.6.3-mfka3vhj.mjs +1 -0
- package/dist/chunks/log-0.6.3-g789gq0t.mjs +1 -0
- package/dist/chunks/main-0.6.3-50ac806r.mjs +1 -0
- package/dist/chunks/managedEnv-0.6.3-q5zxn368.mjs +1 -0
- package/dist/chunks/mcp-0.6.3-4x3akzq5.mjs +4 -0
- package/dist/chunks/mcp-0.6.3-e3me04x4.mjs +17 -0
- package/dist/chunks/mcp-0.6.3-z1ebxf4w.mjs +1 -0
- package/dist/chunks/mcpb-0.6.3-sh1jp60e.mjs +1 -0
- package/dist/chunks/memory-0.6.3-03636fpt.mjs +3 -0
- package/dist/chunks/mobile-0.6.3-xz0z3r1b.mjs +2 -0
- package/dist/chunks/model-0.6.3-s0ftwaqt.mjs +1 -0
- package/dist/chunks/model-0.6.3-yzwee2pm.mjs +2 -0
- package/dist/chunks/node-0.6.3-ne7h3hdm.mjs +12 -0
- package/dist/chunks/oauth-0.6.3-vxgkeqfx.mjs +1 -0
- package/dist/chunks/openaiShim-0.6.3-4y4sanm3.mjs +14 -0
- package/dist/chunks/output-style-0.6.3-y1p13wj7.mjs +1 -0
- package/dist/chunks/package-D6422PQU-0.6.3-x4wa2xz2.mjs +1 -0
- package/dist/chunks/parseConnectUrl-0.6.3-her0fmnw.mjs +1 -0
- package/dist/chunks/parser-0.6.3-c46sjdq2.mjs +1 -0
- package/dist/chunks/passes-0.6.3-egz6jv5r.mjs +1 -0
- package/dist/chunks/permissions-0.6.3-8bgzzv8a.mjs +3 -0
- package/dist/chunks/plan-0.6.3-2fftma7h.mjs +1 -0
- package/dist/chunks/plist-0.6.3-h310zzhq.mjs +1 -0
- package/dist/chunks/plugin-0.6.3-5vjh0ct6.mjs +29 -0
- package/dist/chunks/pluginStartupCheck-0.6.3-jqsmye9d.mjs +1 -0
- package/dist/chunks/plugins-0.6.3-feg1sfss.mjs +9 -0
- package/dist/chunks/preActionHook-0.6.3-7zkaatsy.mjs +2 -0
- package/dist/chunks/print-0.6.3-q8j3mpqd.mjs +57 -0
- package/dist/chunks/privacy-settings-0.6.3-7td307c8.mjs +1 -0
- package/dist/chunks/process-0.6.3-xfesfn5r.mjs +1 -0
- package/dist/chunks/processBashCommand-0.6.3-jh7fc2p4.mjs +1 -0
- package/dist/chunks/processSlashCommand-0.6.3-bf00222w.mjs +9 -0
- package/dist/chunks/prompt-0.6.3-2n702z0c.mjs +1 -0
- package/dist/chunks/prompt-0.6.3-61gvwdqd.mjs +1 -0
- package/dist/chunks/prompts-0.6.3-gctcm2tt.mjs +1 -0
- package/dist/chunks/protocolHandler-0.6.3-nkgq5zh2.mjs +13 -0
- package/dist/chunks/provider-0.6.3-dz35mvz8.mjs +2 -0
- package/dist/chunks/providerProfiles-0.6.3-sc68wn0p.mjs +1 -0
- package/dist/chunks/providerValidation-0.6.3-tz2xs2w2.mjs +6 -0
- package/dist/chunks/rate-limit-options-0.6.3-q18p5fyf.mjs +1 -0
- package/dist/chunks/registerSubcommands-0.6.3-68qc2fq7.mjs +34 -0
- package/dist/chunks/registry-0.6.3-ftde6jbj.mjs +1 -0
- package/dist/chunks/release-notes-0.6.3-sape6p4t.mjs +5 -0
- package/dist/chunks/reload-plugins-0.6.3-1ww9raz4.mjs +2 -0
- package/dist/chunks/remote-env-0.6.3-3ck8cv8d.mjs +1 -0
- package/dist/chunks/remoteBridgeCore-0.6.3-5s27069y.mjs +1 -0
- package/dist/chunks/remoteSession-0.6.3-h9rgyr6h.mjs +1 -0
- package/dist/chunks/rename-0.6.3-f6d3tb9q.mjs +1 -0
- package/dist/chunks/replBridgeHandle-0.6.3-03kbs579.mjs +1 -0
- package/dist/chunks/replLauncher-0.6.3-m72mhx4g.mjs +1 -0
- package/dist/chunks/resume-0.6.3-ddb3xb3e.mjs +2 -0
- package/dist/chunks/rewind-0.6.3-rr4jn9nq.mjs +1 -0
- package/dist/chunks/rootOptions-0.6.3-z0z2w1ta.mjs +1 -0
- package/dist/chunks/sandbox-adapter-0.6.3-h9z3rn4v.mjs +1 -0
- package/dist/chunks/sandbox-toggle-0.6.3-1z9yck8k.mjs +1 -0
- package/dist/chunks/session-0.6.3-697bvb39.mjs +2 -0
- package/dist/chunks/sessionDiscovery-0.6.3-k3n13gqg.mjs +1 -0
- package/dist/chunks/sessionFileAccessHooks-0.6.3-kgecz2s9.mjs +1 -0
- package/dist/chunks/sessionStorage-0.6.3-04ceqntr.mjs +1 -0
- package/dist/chunks/settings-0.6.3-1wnc9skg.mjs +1 -0
- package/dist/chunks/setup-0.6.3-7eq77dy4.mjs +5 -0
- package/dist/chunks/sinks-0.6.3-ph10xa21.mjs +1 -0
- package/dist/chunks/skills-0.6.3-sk53kf9f.mjs +1 -0
- package/dist/chunks/startupProfiler-0.6.3-mmnjxrje.mjs +1 -0
- package/dist/chunks/startupUpdateCheck-0.6.3-0hwcpdc7.mjs +1 -0
- package/dist/chunks/state-0.6.3-e3zvped3.mjs +1 -0
- package/dist/chunks/stats-0.6.3-8wqbhpqy.mjs +6 -0
- package/dist/chunks/status-0.6.3-xjt0xtzy.mjs +1 -0
- package/dist/chunks/stickers-0.6.3-vs74c03z.mjs +1 -0
- package/dist/chunks/subprocessEnv-0.6.3-5dg03vx3.mjs +1 -0
- package/dist/chunks/tasks-0.6.3-dxy60zkj.mjs +1 -0
- package/dist/chunks/teamHelpers-0.6.3-jqpd5tn3.mjs +1 -0
- package/dist/chunks/teammateModeSnapshot-0.6.3-fpdghs7t.mjs +1 -0
- package/dist/chunks/teleport-0.6.3-46bbcspy.mjs +1 -0
- package/dist/chunks/terminalSetup-0.6.3-ww94vcqs.mjs +1 -0
- package/dist/chunks/theme-0.6.3-kjdtgstr.mjs +1 -0
- package/dist/chunks/thinkback-0.6.3-1txnapj2.mjs +1 -0
- package/dist/chunks/thinkback-play-0.6.3-96tda7vb.mjs +1 -0
- package/dist/chunks/toolPool-0.6.3-0e12cvy1.mjs +1 -0
- package/dist/chunks/toolSearch-0.6.3-d1pppx0c.mjs +1 -0
- package/dist/chunks/tools-0.6.3-w0rtmt3t.mjs +1 -0
- package/dist/chunks/trustedDevice-0.6.3-qap15xhb.mjs +1 -0
- package/dist/chunks/turndown.cjs-0.6.3-9pgbeyf6.mjs +69 -0
- package/dist/chunks/ultrareviewCommand-0.6.3-v4wvkr58.mjs +4 -0
- package/dist/chunks/update-0.6.3-6tah7v14.mjs +86 -0
- package/dist/chunks/upgrade-0.6.3-mtpg4ynr.mjs +1 -0
- package/dist/chunks/upstreamproxy-0.6.3-fg6qwves.mjs +14 -0
- package/dist/chunks/url-handler-napi-0.6.3-4zzkq08v.mjs +1 -0
- package/dist/chunks/usage-0.6.3-1b3cmsnk.mjs +1 -0
- package/dist/chunks/util-0.6.3-e72k34ck.mjs +1 -0
- package/dist/chunks/utils-0.6.3-ahkqyjmy.mjs +1 -0
- package/dist/chunks/vim-0.6.3-r0f9g732.mjs +1 -0
- package/dist/chunks/watcher-0.6.3-5xzd92av.mjs +1 -0
- package/dist/chunks/wiki-0.6.3-ytee2j21.mjs +132 -0
- package/dist/chunks/worktree-0.6.3-cmybg2s4.mjs +1 -0
- package/dist/chunks/worktreeModeEnabled-0.6.3-8k06dfjq.mjs +1 -0
- package/dist/chunks/wrapper-0.6.3-hct87zwr.mjs +7 -0
- package/dist/claudin-vscode.vsix +0 -0
- package/dist/cli.mjs +2 -2
- package/package.json +1 -1
- package/dist/chunks/AgentTool-0.6.2-he5a0dam.mjs +0 -1
- package/dist/chunks/App-0.6.2-81hq55t1.mjs +0 -1
- package/dist/chunks/ApproveApiKey-0.6.2-08hjmc7a.mjs +0 -1
- package/dist/chunks/AssistantSessionChooser-0.6.2-0r37ejyw.mjs +0 -1
- package/dist/chunks/AutoModeOptInDialog-0.6.2-k5q2wq69.mjs +0 -1
- package/dist/chunks/BypassPermissionsModeDialog-0.6.2-q2vnf20c.mjs +0 -1
- package/dist/chunks/ClaudeMdExternalIncludesDialog-0.6.2-nsje6vp4.mjs +0 -1
- package/dist/chunks/ConsoleOAuthFlow-0.6.2-0td2rsrs.mjs +0 -1
- package/dist/chunks/DiffDialog-0.6.2-6yg14gsy.mjs +0 -3
- package/dist/chunks/Doctor-0.6.2-3wbjtm02.mjs +0 -1
- package/dist/chunks/Grove-0.6.2-baqbhjjj.mjs +0 -1
- package/dist/chunks/ITermBackend-0.6.2-zmtwee85.mjs +0 -1
- package/dist/chunks/InvalidConfigDialog-0.6.2-yxzmem78.mjs +0 -1
- package/dist/chunks/InvalidSettingsDialog-0.6.2-fp9sq2qx.mjs +0 -1
- package/dist/chunks/MigrationDialog-0.6.2-yvf4s2y6.mjs +0 -1
- package/dist/chunks/Onboarding-0.6.2-y1rgs60d.mjs +0 -1
- package/dist/chunks/ProviderManager-0.6.2-cp0pxj1c.mjs +0 -1
- package/dist/chunks/REPL-0.6.2-ab1c9240.mjs +0 -1
- package/dist/chunks/ResumeConversation-0.6.2-sc3b5r7q.mjs +0 -1
- package/dist/chunks/SnapshotUpdateDialog-0.6.2-8sv3ddk7.mjs +0 -1
- package/dist/chunks/TeleportProgress-0.6.2-wa2hgv37.mjs +0 -1
- package/dist/chunks/TeleportRepoMismatchDialog-0.6.2-a3a7fv1a.mjs +0 -1
- package/dist/chunks/TeleportResumeWrapper-0.6.2-2n1ktp6n.mjs +0 -1
- package/dist/chunks/TmuxBackend-0.6.2-qbc4yk54.mjs +0 -9
- package/dist/chunks/ToolSearchTool-0.6.2-384g3ky4.mjs +0 -1
- package/dist/chunks/TrustDialog-0.6.2-egpnc3w1.mjs +0 -1
- package/dist/chunks/activeProvider-0.6.2-w0ja3pnw.mjs +0 -1
- package/dist/chunks/add-dir-0.6.2-srcrq97m.mjs +0 -1
- package/dist/chunks/agents-0.6.2-pwkawpda.mjs +0 -110
- package/dist/chunks/agents-0.6.2-v40vzjvy.mjs +0 -3
- package/dist/chunks/api-0.6.2-r9z30232.mjs +0 -1
- package/dist/chunks/asciicast-0.6.2-dtanhyb8.mjs +0 -1
- package/dist/chunks/assistant-0.6.2-29e26n3s.mjs +0 -1
- package/dist/chunks/auth-0.6.2-azq9yv0m.mjs +0 -1
- package/dist/chunks/auth-0.6.2-ndpcgcx5.mjs +0 -1
- package/dist/chunks/autoMode-0.6.2-w921k0xq.mjs +0 -48
- package/dist/chunks/autoUpdater-0.6.2-gwvkqpt8.mjs +0 -1
- package/dist/chunks/backgroundHousekeeping-0.6.2-7p2jxjem.mjs +0 -1
- package/dist/chunks/branch-0.6.2-tx9vvnkh.mjs +0 -4
- package/dist/chunks/bridgePointer-0.6.2-vm11xngr.mjs +0 -1
- package/dist/chunks/btw-0.6.2-s76cg2fz.mjs +0 -1
- package/dist/chunks/buddy-0.6.2-0ck2kabw.mjs +0 -3
- package/dist/chunks/cacache-0.6.2-c87f0fw9.mjs +0 -1
- package/dist/chunks/cache-probe-0.6.2-nhq6d99v.mjs +0 -21
- package/dist/chunks/cacheStats-0.6.2-wjqpder6.mjs +0 -4
- package/dist/chunks/caches-0.6.2-ckpe4m10.mjs +0 -1
- package/dist/chunks/claudeDesktop-0.6.2-9xry3zxj.mjs +0 -1
- package/dist/chunks/claudemd-0.6.2-eevm7pz1.mjs +0 -1
- package/dist/chunks/clear-0.6.2-301n503a.mjs +0 -1
- package/dist/chunks/clearTerminal-0.6.2-qgg50hxe.mjs +0 -1
- package/dist/chunks/cli-0.6.2-0cpmb5wg.mjs +0 -42
- package/dist/chunks/cli-0.6.2-0f9sh5z8.mjs +0 -4
- package/dist/chunks/cli-0.6.2-0p39svq8.mjs +0 -2
- package/dist/chunks/cli-0.6.2-1acc8mpr.mjs +0 -2
- package/dist/chunks/cli-0.6.2-1ahapm20.mjs +0 -2
- package/dist/chunks/cli-0.6.2-1b9hx344.mjs +0 -2
- package/dist/chunks/cli-0.6.2-1g0gmdck.mjs +0 -2
- package/dist/chunks/cli-0.6.2-1hrabb68.mjs +0 -3
- package/dist/chunks/cli-0.6.2-1wj8sm5y.mjs +0 -9
- package/dist/chunks/cli-0.6.2-1y907j57.mjs +0 -2
- package/dist/chunks/cli-0.6.2-22zkw0rp.mjs +0 -2
- package/dist/chunks/cli-0.6.2-26qywcgz.mjs +0 -2
- package/dist/chunks/cli-0.6.2-2aj7wfhk.mjs +0 -2
- package/dist/chunks/cli-0.6.2-2ewwghbe.mjs +0 -3
- package/dist/chunks/cli-0.6.2-2jg2f49s.mjs +0 -2
- package/dist/chunks/cli-0.6.2-2z19ppek.mjs +0 -15
- package/dist/chunks/cli-0.6.2-334vw6ys.mjs +0 -2
- package/dist/chunks/cli-0.6.2-3mpd0wjn.mjs +0 -2
- package/dist/chunks/cli-0.6.2-3r8vgmhb.mjs +0 -2
- package/dist/chunks/cli-0.6.2-3rgtxc9f.mjs +0 -2
- package/dist/chunks/cli-0.6.2-40pc2aj2.mjs +0 -2
- package/dist/chunks/cli-0.6.2-42d88f3r.mjs +0 -2
- package/dist/chunks/cli-0.6.2-43f0sknv.mjs +0 -2
- package/dist/chunks/cli-0.6.2-43qjtqa5.mjs +0 -2
- package/dist/chunks/cli-0.6.2-4a5t390f.mjs +0 -2
- package/dist/chunks/cli-0.6.2-4drhcx9k.mjs +0 -15
- package/dist/chunks/cli-0.6.2-4kcvb5en.mjs +0 -2
- package/dist/chunks/cli-0.6.2-4ke2trrq.mjs +0 -39
- package/dist/chunks/cli-0.6.2-4p9wa0p6.mjs +0 -5323
- package/dist/chunks/cli-0.6.2-4py7r63v.mjs +0 -2
- package/dist/chunks/cli-0.6.2-4r69ge5f.mjs +0 -59
- package/dist/chunks/cli-0.6.2-5d05m4xc.mjs +0 -2
- package/dist/chunks/cli-0.6.2-5jempndm.mjs +0 -133
- package/dist/chunks/cli-0.6.2-657fbmws.mjs +0 -2
- package/dist/chunks/cli-0.6.2-6bacgc39.mjs +0 -3
- package/dist/chunks/cli-0.6.2-6g0t3j91.mjs +0 -5
- package/dist/chunks/cli-0.6.2-6g8yfn0m.mjs +0 -2
- package/dist/chunks/cli-0.6.2-6kn7z0zj.mjs +0 -3
- package/dist/chunks/cli-0.6.2-6wk99hh1.mjs +0 -3
- package/dist/chunks/cli-0.6.2-73vnf2t2.mjs +0 -4
- package/dist/chunks/cli-0.6.2-74x1d5s0.mjs +0 -2
- package/dist/chunks/cli-0.6.2-7egesyh9.mjs +0 -4
- package/dist/chunks/cli-0.6.2-7rmm482v.mjs +0 -12
- package/dist/chunks/cli-0.6.2-7rmymgpp.mjs +0 -2
- package/dist/chunks/cli-0.6.2-7z82z1hp.mjs +0 -25
- package/dist/chunks/cli-0.6.2-83ennmm8.mjs +0 -21
- package/dist/chunks/cli-0.6.2-8ka8msyf.mjs +0 -2
- package/dist/chunks/cli-0.6.2-8ksqzwe8.mjs +0 -5
- package/dist/chunks/cli-0.6.2-8v8sktjd.mjs +0 -10
- package/dist/chunks/cli-0.6.2-8y3j75c7.mjs +0 -2
- package/dist/chunks/cli-0.6.2-974c5e67.mjs +0 -9
- package/dist/chunks/cli-0.6.2-9j01vvqt.mjs +0 -2
- package/dist/chunks/cli-0.6.2-9mwrq250.mjs +0 -3
- package/dist/chunks/cli-0.6.2-9n2g6k9w.mjs +0 -2
- package/dist/chunks/cli-0.6.2-9n9cpja7.mjs +0 -2
- package/dist/chunks/cli-0.6.2-9qtj477e.mjs +0 -2
- package/dist/chunks/cli-0.6.2-9w9nmx9s.mjs +0 -2
- package/dist/chunks/cli-0.6.2-9ybnhjj8.mjs +0 -4
- package/dist/chunks/cli-0.6.2-a8atyp18.mjs +0 -2
- package/dist/chunks/cli-0.6.2-ahaj5z3h.mjs +0 -2
- package/dist/chunks/cli-0.6.2-aq30pg47.mjs +0 -2
- package/dist/chunks/cli-0.6.2-aqxemf9h.mjs +0 -6
- package/dist/chunks/cli-0.6.2-b34y2qb7.mjs +0 -2
- package/dist/chunks/cli-0.6.2-b88e6p6d.mjs +0 -2
- package/dist/chunks/cli-0.6.2-b8r77v7s.mjs +0 -2
- package/dist/chunks/cli-0.6.2-bkff60ff.mjs +0 -2
- package/dist/chunks/cli-0.6.2-br678d1b.mjs +0 -8
- package/dist/chunks/cli-0.6.2-bvyhf16r.mjs +0 -2
- package/dist/chunks/cli-0.6.2-c05pfwbs.mjs +0 -2
- package/dist/chunks/cli-0.6.2-c3h0j3ad.mjs +0 -2
- package/dist/chunks/cli-0.6.2-c8bf5gfw.mjs +0 -4
- package/dist/chunks/cli-0.6.2-c9adbzc9.mjs +0 -2
- package/dist/chunks/cli-0.6.2-cvr4dbfz.mjs +0 -2
- package/dist/chunks/cli-0.6.2-d3evezft.mjs +0 -1
- package/dist/chunks/cli-0.6.2-d3y2w089.mjs +0 -2
- package/dist/chunks/cli-0.6.2-d3ykxc81.mjs +0 -2
- package/dist/chunks/cli-0.6.2-dbw96fj0.mjs +0 -12
- package/dist/chunks/cli-0.6.2-dr4gmq77.mjs +0 -2
- package/dist/chunks/cli-0.6.2-drm9vdbc.mjs +0 -2
- package/dist/chunks/cli-0.6.2-dv8abe56.mjs +0 -7
- package/dist/chunks/cli-0.6.2-dx6qfese.mjs +0 -2
- package/dist/chunks/cli-0.6.2-dy4zwces.mjs +0 -2
- package/dist/chunks/cli-0.6.2-e0x7vgkh.mjs +0 -2
- package/dist/chunks/cli-0.6.2-e26khw0m.mjs +0 -6
- package/dist/chunks/cli-0.6.2-e66qz53g.mjs +0 -2
- package/dist/chunks/cli-0.6.2-ea8z1e2e.mjs +0 -16
- package/dist/chunks/cli-0.6.2-erkq6kmj.mjs +0 -45
- package/dist/chunks/cli-0.6.2-ezn7w7ae.mjs +0 -5
- package/dist/chunks/cli-0.6.2-f8wbscq8.mjs +0 -2
- package/dist/chunks/cli-0.6.2-ffwsaj8h.mjs +0 -2
- package/dist/chunks/cli-0.6.2-fm1d3kkg.mjs +0 -2
- package/dist/chunks/cli-0.6.2-g1m1mc2w.mjs +0 -2
- package/dist/chunks/cli-0.6.2-g5akhdzk.mjs +0 -2
- package/dist/chunks/cli-0.6.2-g6c6hjc6.mjs +0 -6
- package/dist/chunks/cli-0.6.2-gjc0cfpe.mjs +0 -2
- package/dist/chunks/cli-0.6.2-gjcarfd4.mjs +0 -2
- package/dist/chunks/cli-0.6.2-gqbd9ax6.mjs +0 -2
- package/dist/chunks/cli-0.6.2-grf75vb7.mjs +0 -2
- package/dist/chunks/cli-0.6.2-h18w4nmy.mjs +0 -2
- package/dist/chunks/cli-0.6.2-h72p44ws.mjs +0 -24
- package/dist/chunks/cli-0.6.2-ha8qy3b0.mjs +0 -2
- package/dist/chunks/cli-0.6.2-hhjx89cr.mjs +0 -193
- package/dist/chunks/cli-0.6.2-hhyenxhe.mjs +0 -2
- package/dist/chunks/cli-0.6.2-hp1pwe62.mjs +0 -2
- package/dist/chunks/cli-0.6.2-hqmcear6.mjs +0 -2
- package/dist/chunks/cli-0.6.2-hs0y8na1.mjs +0 -34
- package/dist/chunks/cli-0.6.2-j05kmd43.mjs +0 -2
- package/dist/chunks/cli-0.6.2-j1nazgzc.mjs +0 -2
- package/dist/chunks/cli-0.6.2-jgh80hr1.mjs +0 -2
- package/dist/chunks/cli-0.6.2-jrb4f391.mjs +0 -15
- package/dist/chunks/cli-0.6.2-jrpted0b.mjs +0 -2
- package/dist/chunks/cli-0.6.2-jv7awz9n.mjs +0 -2
- package/dist/chunks/cli-0.6.2-k56bbmdp.mjs +0 -2
- package/dist/chunks/cli-0.6.2-k9v931hm.mjs +0 -2
- package/dist/chunks/cli-0.6.2-kbz4gdv0.mjs +0 -2
- package/dist/chunks/cli-0.6.2-kcf9h23h.mjs +0 -2
- package/dist/chunks/cli-0.6.2-kk5rmpf2.mjs +0 -4
- package/dist/chunks/cli-0.6.2-ky1drj50.mjs +0 -2
- package/dist/chunks/cli-0.6.2-mabejxsw.mjs +0 -4
- package/dist/chunks/cli-0.6.2-majp93c4.mjs +0 -2
- package/dist/chunks/cli-0.6.2-mqcsy5k1.mjs +0 -2
- package/dist/chunks/cli-0.6.2-n4v3wxhj.mjs +0 -3
- package/dist/chunks/cli-0.6.2-n9610c8k.mjs +0 -2
- package/dist/chunks/cli-0.6.2-ntj0k6z8.mjs +0 -2
- package/dist/chunks/cli-0.6.2-nw08h6z2.mjs +0 -2
- package/dist/chunks/cli-0.6.2-nwzye174.mjs +0 -2
- package/dist/chunks/cli-0.6.2-p0jszyht.mjs +0 -3
- package/dist/chunks/cli-0.6.2-p6w7n0bx.mjs +0 -58
- package/dist/chunks/cli-0.6.2-ptm65j7w.mjs +0 -2
- package/dist/chunks/cli-0.6.2-q45wdma3.mjs +0 -3
- package/dist/chunks/cli-0.6.2-q4pmjk86.mjs +0 -2
- package/dist/chunks/cli-0.6.2-qa6qbf36.mjs +0 -2
- package/dist/chunks/cli-0.6.2-qec7nrgw.mjs +0 -2
- package/dist/chunks/cli-0.6.2-qezxrvkk.mjs +0 -2
- package/dist/chunks/cli-0.6.2-qkzrj9jv.mjs +0 -2
- package/dist/chunks/cli-0.6.2-qpnzszt1.mjs +0 -2
- package/dist/chunks/cli-0.6.2-r4p904h3.mjs +0 -67
- package/dist/chunks/cli-0.6.2-r7j7h4hj.mjs +0 -2
- package/dist/chunks/cli-0.6.2-rde30n8x.mjs +0 -2
- package/dist/chunks/cli-0.6.2-rdfwysaf.mjs +0 -2
- package/dist/chunks/cli-0.6.2-red287ya.mjs +0 -2
- package/dist/chunks/cli-0.6.2-rjqa4vcn.mjs +0 -2
- package/dist/chunks/cli-0.6.2-rkp36r0y.mjs +0 -2
- package/dist/chunks/cli-0.6.2-rpxhzchp.mjs +0 -17
- package/dist/chunks/cli-0.6.2-rsw5s54e.mjs +0 -24
- package/dist/chunks/cli-0.6.2-s3xefpk2.mjs +0 -2
- package/dist/chunks/cli-0.6.2-s73x3nqc.mjs +0 -2
- package/dist/chunks/cli-0.6.2-sb3gjggk.mjs +0 -2
- package/dist/chunks/cli-0.6.2-sbjpxvg6.mjs +0 -2
- package/dist/chunks/cli-0.6.2-sbvnj6xm.mjs +0 -2
- package/dist/chunks/cli-0.6.2-sr4xyjmx.mjs +0 -133
- package/dist/chunks/cli-0.6.2-st7jwd3e.mjs +0 -2
- package/dist/chunks/cli-0.6.2-t038jmme.mjs +0 -3
- package/dist/chunks/cli-0.6.2-t3e59m32.mjs +0 -2
- package/dist/chunks/cli-0.6.2-t74yr8e7.mjs +0 -2
- package/dist/chunks/cli-0.6.2-t8yezjtz.mjs +0 -2
- package/dist/chunks/cli-0.6.2-tbbfz84c.mjs +0 -2
- package/dist/chunks/cli-0.6.2-tqq6q5x7.mjs +0 -2
- package/dist/chunks/cli-0.6.2-tqt8xgww.mjs +0 -50
- package/dist/chunks/cli-0.6.2-v1hjbt4b.mjs +0 -20
- package/dist/chunks/cli-0.6.2-v9brbf1x.mjs +0 -2
- package/dist/chunks/cli-0.6.2-vfdaj8xa.mjs +0 -2
- package/dist/chunks/cli-0.6.2-vg43sy4j.mjs +0 -2
- package/dist/chunks/cli-0.6.2-vqas2mhg.mjs +0 -2
- package/dist/chunks/cli-0.6.2-vqt5hqzr.mjs +0 -2
- package/dist/chunks/cli-0.6.2-vrv3r8v9.mjs +0 -18
- package/dist/chunks/cli-0.6.2-vys7e4x0.mjs +0 -2
- package/dist/chunks/cli-0.6.2-w0nwtgnn.mjs +0 -3
- package/dist/chunks/cli-0.6.2-w9trxbjc.mjs +0 -2
- package/dist/chunks/cli-0.6.2-wbg54yyk.mjs +0 -2
- package/dist/chunks/cli-0.6.2-wdtqrg29.mjs +0 -12
- package/dist/chunks/cli-0.6.2-wryj4wnr.mjs +0 -2
- package/dist/chunks/cli-0.6.2-x7zpbnzj.mjs +0 -2
- package/dist/chunks/cli-0.6.2-xnn1c5kd.mjs +0 -18
- package/dist/chunks/cli-0.6.2-y8g2xkqa.mjs +0 -2
- package/dist/chunks/cli-0.6.2-yep449sd.mjs +0 -17
- package/dist/chunks/cli-0.6.2-yjbsdf10.mjs +0 -2
- package/dist/chunks/cli-0.6.2-ymnp9sv9.mjs +0 -2
- package/dist/chunks/cli-0.6.2-ynamhrtk.mjs +0 -4
- package/dist/chunks/cli-0.6.2-yysvdabq.mjs +0 -2
- package/dist/chunks/cli-0.6.2-z00mtdgp.mjs +0 -4
- package/dist/chunks/cli-0.6.2-z1njvrn7.mjs +0 -3
- package/dist/chunks/cli-0.6.2-z2ftrcke.mjs +0 -4
- package/dist/chunks/cli-0.6.2-z3vr6hxb.mjs +0 -2
- package/dist/chunks/cli-0.6.2-z9kadqm6.mjs +0 -18
- package/dist/chunks/cli-0.6.2-zaahyems.mjs +0 -2
- package/dist/chunks/cli-0.6.2-zftyh47j.mjs +0 -2
- package/dist/chunks/cli-0.6.2-zqj8dk7m.mjs +0 -2
- package/dist/chunks/cli-0.6.2-zs4qp487.mjs +0 -2
- package/dist/chunks/client-0.6.2-8b0s065m.mjs +0 -1
- package/dist/chunks/color-0.6.2-jza3jez4.mjs +0 -1
- package/dist/chunks/compact-0.6.2-2jy7t4f4.mjs +0 -3
- package/dist/chunks/config-0.6.2-qjwjrd75.mjs +0 -1
- package/dist/chunks/config-0.6.2-xac3sjb7.mjs +0 -1
- package/dist/chunks/constants-0.6.2-gwzfwz81.mjs +0 -1
- package/dist/chunks/context-0.6.2-w965073f.mjs +0 -1
- package/dist/chunks/context-noninteractive-0.6.2-fcjaexgs.mjs +0 -1
- package/dist/chunks/conversation-0.6.2-19c4vdvz.mjs +0 -1
- package/dist/chunks/copilotHeaders-0.6.2-pad0tejv.mjs +0 -1
- package/dist/chunks/copy-0.6.2-p4jw9gbt.mjs +0 -9
- package/dist/chunks/cost-0.6.2-vhwgeqym.mjs +0 -1
- package/dist/chunks/createSSHSession-0.6.2-j2yf2qm6.mjs +0 -1
- package/dist/chunks/createSession-0.6.2-axgp009k.mjs +0 -1
- package/dist/chunks/debug-0.6.2-g2n0fqva.mjs +0 -1
- package/dist/chunks/defaultActionDeps-0.6.2-28650cn6.mjs +0 -1365
- package/dist/chunks/desktop-0.6.2-g4c5xzgr.mjs +0 -1
- package/dist/chunks/detectRepository-0.6.2-d1chqsq7.mjs +0 -1
- package/dist/chunks/detection-0.6.2-rtsr38x3.mjs +0 -1
- package/dist/chunks/diff-0.6.2-md180qh9.mjs +0 -1
- package/dist/chunks/doctor-0.6.2-g7yz0erc.mjs +0 -1
- package/dist/chunks/doctorDiagnostic-0.6.2-a82fkq4t.mjs +0 -1
- package/dist/chunks/earlyInput-0.6.2-7j71psy0.mjs +0 -1
- package/dist/chunks/effort-0.6.2-n6mb1qca.mjs +0 -10
- package/dist/chunks/envUtils-0.6.2-cgk2t66d.mjs +0 -1
- package/dist/chunks/environmentSelection-0.6.2-jxz6pef4.mjs +0 -1
- package/dist/chunks/environments-0.6.2-fe197syt.mjs +0 -1
- package/dist/chunks/errors-0.6.2-qwc8na5z.mjs +0 -1
- package/dist/chunks/exampleCommands-0.6.2-ts5qp1zd.mjs +0 -1
- package/dist/chunks/exit-0.6.2-ejt9v4r5.mjs +0 -1
- package/dist/chunks/export-0.6.2-7xzrp9f7.mjs +0 -2
- package/dist/chunks/extra-usage-0.6.2-4xbsq144.mjs +0 -1
- package/dist/chunks/extra-usage-noninteractive-0.6.2-dbw7cdb9.mjs +0 -1
- package/dist/chunks/fast-0.6.2-trs3hdhf.mjs +0 -1
- package/dist/chunks/feedback-0.6.2-ssmy63tw.mjs +0 -14
- package/dist/chunks/firstPartyEventLogger-0.6.2-8h0fye4z.mjs +0 -1
- package/dist/chunks/git-0.6.2-nt9s7t3d.mjs +0 -1
- package/dist/chunks/githubModelsCredentials-0.6.2-24hacezm.mjs +0 -1
- package/dist/chunks/goal-0.6.2-y7sqebpb.mjs +0 -4
- package/dist/chunks/grove-0.6.2-a2wgccag.mjs +0 -1
- package/dist/chunks/growthbook-0.6.2-0rhkaa7d.mjs +0 -1
- package/dist/chunks/headless-0.6.2-mqs7zsvy.mjs +0 -2
- package/dist/chunks/heapdump-0.6.2-4n8atcks.mjs +0 -6
- package/dist/chunks/help-0.6.2-c49svpae.mjs +0 -1
- package/dist/chunks/hookChains-0.6.2-44ps20xa.mjs +0 -3
- package/dist/chunks/hooks-0.6.2-27hpvpxf.mjs +0 -1
- package/dist/chunks/hooks-0.6.2-7ze1m2wq.mjs +0 -79
- package/dist/chunks/ide-0.6.2-4v9fdhr6.mjs +0 -3
- package/dist/chunks/image-processor-napi-0.6.2-a92myehv.mjs +0 -1
- package/dist/chunks/index-0.6.2-1kk3erm5.mjs +0 -9
- package/dist/chunks/index-0.6.2-21nak3ad.mjs +0 -1
- package/dist/chunks/index-0.6.2-2vns8v9p.mjs +0 -1
- package/dist/chunks/index-0.6.2-2wg5fkyq.mjs +0 -1
- package/dist/chunks/index-0.6.2-3g92ew8z.mjs +0 -1
- package/dist/chunks/index-0.6.2-4wsxzfzg.mjs +0 -1
- package/dist/chunks/index-0.6.2-88m8k4cp.mjs +0 -1
- package/dist/chunks/index-0.6.2-93bh3w93.mjs +0 -1
- package/dist/chunks/index-0.6.2-9e0qz384.mjs +0 -1
- package/dist/chunks/index-0.6.2-emm65q8h.mjs +0 -17
- package/dist/chunks/index-0.6.2-ff57yvh3.mjs +0 -1
- package/dist/chunks/index-0.6.2-g6xy97jv.mjs +0 -1
- package/dist/chunks/index-0.6.2-h37g7n0s.mjs +0 -9
- package/dist/chunks/index-0.6.2-h8jkf613.mjs +0 -5
- package/dist/chunks/index-0.6.2-jcsv5kp3.mjs +0 -1
- package/dist/chunks/index-0.6.2-jw83xhc8.mjs +0 -2
- package/dist/chunks/index-0.6.2-mehn31e3.mjs +0 -30
- package/dist/chunks/index-0.6.2-naw1d8mg.mjs +0 -2
- package/dist/chunks/index-0.6.2-qjs3rrrc.mjs +0 -1
- package/dist/chunks/index-0.6.2-qn0re7sj.mjs +0 -1
- package/dist/chunks/index-0.6.2-tftj6wdh.mjs +0 -1
- package/dist/chunks/index-0.6.2-ww1qy3cg.mjs +0 -1
- package/dist/chunks/init-0.6.2-47k2caay.mjs +0 -1
- package/dist/chunks/initReplBridge-0.6.2-sn29sxg9.mjs +0 -1
- package/dist/chunks/ink-0.6.2-dhg7s7qq.mjs +0 -1
- package/dist/chunks/insights-0.6.2-st861yg4.mjs +0 -870
- package/dist/chunks/install-0.6.2-webkhwz9.mjs +0 -1
- package/dist/chunks/install-github-app-0.6.2-dyf38saf.mjs +0 -149
- package/dist/chunks/install-slack-app-0.6.2-mkhq39jq.mjs +0 -1
- package/dist/chunks/instrumentation-0.6.2-8enws6w1.mjs +0 -1
- package/dist/chunks/interactiveHelpers-0.6.2-h3c63932.mjs +0 -1
- package/dist/chunks/keybindings-0.6.2-b4h5gr36.mjs +0 -2
- package/dist/chunks/knowledge-0.6.2-r7wzchg7.mjs +0 -2
- package/dist/chunks/latestVersionCache-0.6.2-29wtfvgy.mjs +0 -1
- package/dist/chunks/loadAgentsDir-0.6.2-6tmzy9fs.mjs +0 -1
- package/dist/chunks/loadPluginHooks-0.6.2-1qx97351.mjs +0 -1
- package/dist/chunks/loadPluginHooks-0.6.2-c4wpqz2j.mjs +0 -1
- package/dist/chunks/log-0.6.2-h02k5q0p.mjs +0 -1
- package/dist/chunks/main-0.6.2-51xvrsbq.mjs +0 -1
- package/dist/chunks/managedEnv-0.6.2-ma1dx63x.mjs +0 -1
- package/dist/chunks/mcp-0.6.2-j3m0e0bk.mjs +0 -17
- package/dist/chunks/mcp-0.6.2-n8yv335k.mjs +0 -4
- package/dist/chunks/mcp-0.6.2-zebf4vwt.mjs +0 -1
- package/dist/chunks/mcpb-0.6.2-egn2wk5t.mjs +0 -1
- package/dist/chunks/memory-0.6.2-vy2ka09s.mjs +0 -3
- package/dist/chunks/mobile-0.6.2-s8f6z7dq.mjs +0 -2
- package/dist/chunks/model-0.6.2-49f9g2vz.mjs +0 -2
- package/dist/chunks/model-0.6.2-pcd5ta0c.mjs +0 -1
- package/dist/chunks/node-0.6.2-40bknjza.mjs +0 -12
- package/dist/chunks/oauth-0.6.2-newhjxdv.mjs +0 -1
- package/dist/chunks/openaiShim-0.6.2-rjs9w27t.mjs +0 -14
- package/dist/chunks/output-style-0.6.2-n76v4e26.mjs +0 -1
- package/dist/chunks/package-D6422PQU-0.6.2-cymw10eg.mjs +0 -1
- package/dist/chunks/parseConnectUrl-0.6.2-qy2dp99f.mjs +0 -1
- package/dist/chunks/parser-0.6.2-xgg5gh3g.mjs +0 -1
- package/dist/chunks/passes-0.6.2-kadygcw6.mjs +0 -1
- package/dist/chunks/permissions-0.6.2-hv22h5gm.mjs +0 -3
- package/dist/chunks/plan-0.6.2-hzbsezab.mjs +0 -1
- package/dist/chunks/plist-0.6.2-hkq2x0x5.mjs +0 -1
- package/dist/chunks/plugin-0.6.2-pr48413e.mjs +0 -29
- package/dist/chunks/pluginStartupCheck-0.6.2-zfb8qack.mjs +0 -1
- package/dist/chunks/plugins-0.6.2-hx8jrngg.mjs +0 -9
- package/dist/chunks/preActionHook-0.6.2-pac7p55h.mjs +0 -2
- package/dist/chunks/print-0.6.2-ng7p0m66.mjs +0 -57
- package/dist/chunks/privacy-settings-0.6.2-awj1k33j.mjs +0 -1
- package/dist/chunks/process-0.6.2-7k26fk4b.mjs +0 -1
- package/dist/chunks/processBashCommand-0.6.2-379q2wr4.mjs +0 -1
- package/dist/chunks/processSlashCommand-0.6.2-7zk4c0n0.mjs +0 -9
- package/dist/chunks/prompt-0.6.2-c2vevj59.mjs +0 -1
- package/dist/chunks/prompt-0.6.2-szkc5jgm.mjs +0 -1
- package/dist/chunks/prompts-0.6.2-s8z9fmgq.mjs +0 -1
- package/dist/chunks/protocolHandler-0.6.2-wc5pcv21.mjs +0 -13
- package/dist/chunks/provider-0.6.2-nbcrfwt5.mjs +0 -2
- package/dist/chunks/providerProfiles-0.6.2-r9j184kz.mjs +0 -1
- package/dist/chunks/providerValidation-0.6.2-4h7yr0x2.mjs +0 -6
- package/dist/chunks/rate-limit-options-0.6.2-dbvvmtas.mjs +0 -1
- package/dist/chunks/registerSubcommands-0.6.2-w8y8efwa.mjs +0 -34
- package/dist/chunks/registry-0.6.2-8xcdw66w.mjs +0 -1
- package/dist/chunks/release-notes-0.6.2-xtnhsjps.mjs +0 -5
- package/dist/chunks/reload-plugins-0.6.2-hhgdgy2j.mjs +0 -2
- package/dist/chunks/remote-env-0.6.2-9tdvzj0q.mjs +0 -1
- package/dist/chunks/remoteBridgeCore-0.6.2-y9spfxbw.mjs +0 -1
- package/dist/chunks/remoteSession-0.6.2-pb3185rt.mjs +0 -1
- package/dist/chunks/rename-0.6.2-z5pwd75p.mjs +0 -1
- package/dist/chunks/replBridgeHandle-0.6.2-epcyvrf1.mjs +0 -1
- package/dist/chunks/replLauncher-0.6.2-yk4q9w0s.mjs +0 -1
- package/dist/chunks/resume-0.6.2-wwmdq5gh.mjs +0 -2
- package/dist/chunks/rewind-0.6.2-keb5hdgr.mjs +0 -1
- package/dist/chunks/rootOptions-0.6.2-hprbxscd.mjs +0 -1
- package/dist/chunks/sandbox-adapter-0.6.2-4ntc8ewv.mjs +0 -1
- package/dist/chunks/sandbox-toggle-0.6.2-5zdhe1qf.mjs +0 -1
- package/dist/chunks/session-0.6.2-k41jbqwf.mjs +0 -2
- package/dist/chunks/sessionDiscovery-0.6.2-x9rwtkey.mjs +0 -1
- package/dist/chunks/sessionFileAccessHooks-0.6.2-0ska7d2r.mjs +0 -1
- package/dist/chunks/sessionStorage-0.6.2-0brgsadt.mjs +0 -1
- package/dist/chunks/settings-0.6.2-cgwa4c0s.mjs +0 -1
- package/dist/chunks/setup-0.6.2-vqm3xhrr.mjs +0 -5
- package/dist/chunks/sinks-0.6.2-p6ftcdrs.mjs +0 -1
- package/dist/chunks/skills-0.6.2-87j1kdxj.mjs +0 -1
- package/dist/chunks/startupProfiler-0.6.2-173hw815.mjs +0 -1
- package/dist/chunks/startupUpdateCheck-0.6.2-4364mejf.mjs +0 -1
- package/dist/chunks/state-0.6.2-nymhw7ey.mjs +0 -1
- package/dist/chunks/stats-0.6.2-skm9nakv.mjs +0 -6
- package/dist/chunks/status-0.6.2-wfm0ahb8.mjs +0 -1
- package/dist/chunks/stickers-0.6.2-nze85ck5.mjs +0 -1
- package/dist/chunks/subprocessEnv-0.6.2-vktss3j3.mjs +0 -1
- package/dist/chunks/tasks-0.6.2-hfy99qn9.mjs +0 -1
- package/dist/chunks/teamHelpers-0.6.2-ep254ybc.mjs +0 -1
- package/dist/chunks/teammateModeSnapshot-0.6.2-ecyswt3z.mjs +0 -1
- package/dist/chunks/teleport-0.6.2-ve5pmdye.mjs +0 -1
- package/dist/chunks/terminalSetup-0.6.2-wxnysmg4.mjs +0 -1
- package/dist/chunks/theme-0.6.2-r6cak2qv.mjs +0 -1
- package/dist/chunks/thinkback-0.6.2-9svbgrtq.mjs +0 -1
- package/dist/chunks/thinkback-play-0.6.2-22rfv6x5.mjs +0 -1
- package/dist/chunks/toolPool-0.6.2-znz9vm50.mjs +0 -1
- package/dist/chunks/toolSearch-0.6.2-nsf80s0q.mjs +0 -1
- package/dist/chunks/tools-0.6.2-wcxfbgtv.mjs +0 -1
- package/dist/chunks/trustedDevice-0.6.2-ab0ftpnm.mjs +0 -1
- package/dist/chunks/turndown.cjs-0.6.2-g0zf33kq.mjs +0 -69
- package/dist/chunks/ultrareviewCommand-0.6.2-8c0jzztb.mjs +0 -4
- package/dist/chunks/update-0.6.2-p8edrwg4.mjs +0 -86
- package/dist/chunks/upgrade-0.6.2-wkscvr1z.mjs +0 -1
- package/dist/chunks/upstreamproxy-0.6.2-0bdt5gtr.mjs +0 -14
- package/dist/chunks/url-handler-napi-0.6.2-rgywhzs5.mjs +0 -1
- package/dist/chunks/usage-0.6.2-mkckbqy2.mjs +0 -1
- package/dist/chunks/util-0.6.2-yet75ms4.mjs +0 -1
- package/dist/chunks/utils-0.6.2-pedaa5s8.mjs +0 -1
- package/dist/chunks/vim-0.6.2-m8vm39s8.mjs +0 -1
- package/dist/chunks/watcher-0.6.2-apxj1t3y.mjs +0 -1
- package/dist/chunks/wiki-0.6.2-wztzwvgx.mjs +0 -132
- package/dist/chunks/worktree-0.6.2-jvbqmswq.mjs +0 -1
- package/dist/chunks/worktreeModeEnabled-0.6.2-bq8z3zp7.mjs +0 -1
- package/dist/chunks/wrapper-0.6.2-wwg8e756.mjs +0 -7
- /package/dist/chunks/{cli-0.6.2-qk6j042k.mjs → cli-0.6.3-1h3a97cb.mjs} +0 -0
- /package/dist/chunks/{cli-0.6.2-hb4fz4pd.mjs → cli-0.6.3-29t031py.mjs} +0 -0
- /package/dist/chunks/{cli-0.6.2-hkgnx8g7.mjs → cli-0.6.3-4k4zf43b.mjs} +0 -0
- /package/dist/chunks/{cli-0.6.2-7p1ykg1m.mjs → cli-0.6.3-94pqfzn3.mjs} +0 -0
- /package/dist/chunks/{cli-0.6.2-3eaaj6e5.mjs → cli-0.6.3-dvsz6151.mjs} +0 -0
- /package/dist/chunks/{cli-0.6.2-adegz2m3.mjs → cli-0.6.3-ecnnpsad.mjs} +0 -0
- /package/dist/chunks/{cli-0.6.2-1e5p6hw6.mjs → cli-0.6.3-v522ej7z.mjs} +0 -0
|
@@ -1,1365 +0,0 @@
|
|
|
1
|
-
import"./cli-0.6.2-d3evezft.mjs";import{C as a,E as DG,F as IG,G as _B,H as aB}from"./cli-0.6.2-9mwrq250.mjs";import"./cli-0.6.2-b8r77v7s.mjs";import"./cli-0.6.2-7p1ykg1m.mjs";import{O as _I,Q as QZ,R as wZ,S as NZ,X as jZ,Y as PG,Z as KG}from"./cli-0.6.2-br678d1b.mjs";import"./cli-0.6.2-6kn7z0zj.mjs";import{Na as MI,Oa as AZ,Qa as vZ}from"./cli-0.6.2-0p39svq8.mjs";import{Wa as TG}from"./cli-0.6.2-kbz4gdv0.mjs";import"./cli-0.6.2-c8bf5gfw.mjs";import"./cli-0.6.2-1acc8mpr.mjs";import"./cli-0.6.2-qk6j042k.mjs";import{pb as WG}from"./cli-0.6.2-vg43sy4j.mjs";import{tb as nZ,ub as sZ}from"./cli-0.6.2-jgh80hr1.mjs";import"./cli-0.6.2-rde30n8x.mjs";import"./cli-0.6.2-hb4fz4pd.mjs";import{Nb as FZ,Ob as RW}from"./cli-0.6.2-qezxrvkk.mjs";import"./cli-0.6.2-rjqa4vcn.mjs";import"./cli-0.6.2-9n9cpja7.mjs";import{hc as hB,ic as $C}from"./cli-0.6.2-x7zpbnzj.mjs";import"./cli-0.6.2-h18w4nmy.mjs";import"./cli-0.6.2-qkzrj9jv.mjs";import"./cli-0.6.2-6wk99hh1.mjs";import"./cli-0.6.2-q45wdma3.mjs";import"./cli-0.6.2-r7j7h4hj.mjs";import"./cli-0.6.2-qpnzszt1.mjs";import{Yg as tg,Zg as eg,_g as JI,bh as QC}from"./cli-0.6.2-vrv3r8v9.mjs";import"./cli-0.6.2-ahaj5z3h.mjs";import{$F as OG,$G as rg,$l as xI,AJ as yb,Ai as DZ,CD as lZ,CH as bg,CM as zI,Ci as wW,Ck as gb,DJ as rG,ED as cW,EQ as oZ,FH as Cg,Ft as Tg,GQ as nG,Gt as IC,HH as Wg,Ht as pg,IJ as Vg,It as Eg,JM as uI,Jt as _g,KJ as yg,LJ as cg,Lt as gC,Lv as sI,MJ as tG,Mt as ag,Mv as Zb,NJ as Hg,NN as $G,OM as QI,Oj as ig,Pj as og,QJ as cb,Qj as dI,Qt as BC,Rj as ng,Rp as ZZ,SH as Yg,Sp as ZW,TC as OZ,TN as jG,Tj as FC,Tp as QG,UC as PZ,Um as Bg,Us as KI,VH as Vb,Vm as Yb,WC as PB,XC as TB,Xs as NB,YK as mI,YO as zZ,Yi as hg,ZG,_G as sg,_O as f,_i as db,_s as FI,aG as mZ,aH as zC,aP as hG,aQ as vB,am as NW,aq as bZ,bG as rI,bQ as mB,bo as vI,bt as jB,cG as tI,cL as lW,cj as Mg,co as gW,cq as CZ,dG as bb,dR as UB,dj as ib,do as BG,dx as VZ,eG as TZ,eR as LB,ej as Fg,eo as iG,et as AB,ex as YW,fG as pZ,fR as OC,fj as Jb,ft as WZ,gG as EZ,gL as KZ,gj as zg,gq as jg,gt as bW,hG as _Z,hL as dW,hj as Rb,ii as qg,iq as Ag,jG as aZ,kB as yZ,lM as fZ,mM as vW,mq as vg,nB as XW,nE as SB,nt as YZ,oE as EC,oG as AW,oQ as iZ,ok as iI,ot as CW,ox as lG,pC as cZ,pk as oI,qi as rb,qk as nI,qx as oG,rt as XZ,tM as $,tO as NG,uC as VW,uM as e,ut as WW,vC as HZ,vE as pB,wE as iC,wj as Qg,xC as yW,xJ as Xg,xi as aI,xj as Kb,yA as $Z,yp as BZ,zA as jW,zp as BW}from"./cli-0.6.2-4p9wa0p6.mjs";import{gR as fG,hR as Bb}from"./cli-0.6.2-dr4gmq77.mjs";import{HR as Xb,vR as Zg}from"./cli-0.6.2-jrb4f391.mjs";import{IR as fI,LR as Ib}from"./cli-0.6.2-zftyh47j.mjs";import"./cli-0.6.2-n9610c8k.mjs";import"./cli-0.6.2-s73x3nqc.mjs";import{iS as EB,kS as oC}from"./cli-0.6.2-k56bbmdp.mjs";import"./cli-0.6.2-c3h0j3ad.mjs";import{BS as wB,tS as qG,uS as RI,wS as FB,xS as zB,yS as QB}from"./cli-0.6.2-rpxhzchp.mjs";import"./cli-0.6.2-40pc2aj2.mjs";import"./cli-0.6.2-y8g2xkqa.mjs";import"./cli-0.6.2-t74yr8e7.mjs";import"./cli-0.6.2-b88e6p6d.mjs";import"./cli-0.6.2-ymnp9sv9.mjs";import{VT as dZ,WT as JZ,YT as RZ,ZT as HW}from"./cli-0.6.2-h72p44ws.mjs";import"./cli-0.6.2-yjbsdf10.mjs";import"./cli-0.6.2-43qjtqa5.mjs";import"./cli-0.6.2-b34y2qb7.mjs";import{eV as hZ,fV as JW}from"./cli-0.6.2-4py7r63v.mjs";import"./cli-0.6.2-hs0y8na1.mjs";import"./cli-0.6.2-g1m1mc2w.mjs";import"./cli-0.6.2-z3vr6hxb.mjs";import"./cli-0.6.2-t8yezjtz.mjs";import"./cli-0.6.2-vfdaj8xa.mjs";import"./cli-0.6.2-4r69ge5f.mjs";import{WY as OI,YY as Gb}from"./cli-0.6.2-p0jszyht.mjs";import"./cli-0.6.2-tbbfz84c.mjs";import"./cli-0.6.2-3mpd0wjn.mjs";import"./cli-0.6.2-e26khw0m.mjs";import"./cli-0.6.2-sbvnj6xm.mjs";import"./cli-0.6.2-6g8yfn0m.mjs";import"./cli-0.6.2-rdfwysaf.mjs";import"./cli-0.6.2-6g0t3j91.mjs";import{p0 as cG,r0 as kB}from"./cli-0.6.2-jrpted0b.mjs";import{s0 as fC}from"./cli-0.6.2-d3y2w089.mjs";import"./cli-0.6.2-1y907j57.mjs";import"./cli-0.6.2-4a5t390f.mjs";import{G0 as SI,J0 as qZ,N0 as LZ}from"./cli-0.6.2-1b9hx344.mjs";import"./cli-0.6.2-2ewwghbe.mjs";import{A2 as GZ,B2 as GW,J4 as gZ,R2 as RB,W4 as $B,Y4 as OB,Z2 as MG,e1 as tB,g1 as eC,i3 as uG,m2 as eB,n3 as KB,o1 as JB,p1 as qC,p3 as DC,t3 as IZ,u3 as IW,z2 as AI}from"./cli-0.6.2-ea8z1e2e.mjs";import"./cli-0.6.2-1wj8sm5y.mjs";import{s5 as w,t5 as UG}from"./cli-0.6.2-aqxemf9h.mjs";import"./cli-0.6.2-5jempndm.mjs";import"./cli-0.6.2-k9v931hm.mjs";import"./cli-0.6.2-rkp36r0y.mjs";import"./cli-0.6.2-wbg54yyk.mjs";import{$$ as dG,Ada as GG,Caa as SG,Gba as UI,I8 as Kg,Ida as xG,J7 as NI,Jaa as RG,Jba as VG,K8 as PI,Kba as rB,L$ as t,L7 as rC,L8 as TI,Maa as sB,O$ as eG,R9 as LG,Taa as YI,W9 as Ig,cca as pI,haa as gg,l8 as Rg,laa as CB,lda as HG,m_ as nB,n9 as xZ,n_ as tC,o9 as jI,oda as EI,p9 as oB,paa as LC,q8 as MZ}from"./cli-0.6.2-hhjx89cr.mjs";import{Vda as ug,dea as fb,iea as CG,nea as aC}from"./cli-0.6.2-73vnf2t2.mjs";import"./cli-0.6.2-zs4qp487.mjs";import{Lea as bB,Nea as o,Pea as $g,Qea as XI,Rea as eb}from"./cli-0.6.2-r4p904h3.mjs";import{$ea as wG,efa as DB,lfa as wI}from"./cli-0.6.2-9w9nmx9s.mjs";import{ofa as hI,pfa as xC}from"./cli-0.6.2-d3ykxc81.mjs";import{aga as $I,bga as eZ}from"./cli-0.6.2-qec7nrgw.mjs";import{cga as m,ega as XG}from"./cli-0.6.2-vqt5hqzr.mjs";import{Jga as yG,Oga as Pg,Zga as kg,eha as k,fha as Sg,hga as iB,hha as JG,jga as sC}from"./cli-0.6.2-g6c6hjc6.mjs";import{kha as sG,nha as Wb}from"./cli-0.6.2-cvr4dbfz.mjs";import{Aha as Lg,Fha as FG,uha as EG,xha as uZ,yha as s,zha as aG}from"./cli-0.6.2-0f9sh5z8.mjs";import{Lha as _G,Nha as zG,Vha as mG}from"./cli-0.6.2-gqbd9ax6.mjs";import{Cja as kZ,Fja as LI,Hja as pG,Jma as SZ,Lka as cB,Mka as HB,Nka as lB,Uma as dB,Wma as kI,bna as Gg,cma as eI,mla as vG,yna as r,zja as DI}from"./cli-0.6.2-42d88f3r.mjs";import"./cli-0.6.2-wryj4wnr.mjs";import"./cli-0.6.2-0cpmb5wg.mjs";import"./cli-0.6.2-xnn1c5kd.mjs";import"./cli-0.6.2-dbw96fj0.mjs";import"./cli-0.6.2-5d05m4xc.mjs";import{dpa as _C,ipa as E}from"./cli-0.6.2-3rgtxc9f.mjs";UG();eZ();r();bb();EI();XG();iG();pI();Gb();mG();FG();Zb();TI();Ib();nG();oG();gb();Bb();import{readFileSync as qI}from"fs";import{resolve as AG}from"path";async function Cb(I,G,g,B){let{teammate:Z,assistant:C}=B,b=I;if(G.bare)process.env.CLAUDE_CODE_SIMPLE="1";if(b==="code")m("tengu_code_prompt_ignored",{}),console.warn(w.yellow("Tip: You can launch Claude Code with just `claude`")),b=void 0;if(b&&typeof b==="string"&&!/\s/.test(b)&&b.length>0)m("tengu_single_word_prompt",{length:b.length});let{debug:y=!1,debugToStderr:h=!1,dangerouslySkipPermissions:H,allowDangerouslySkipPermissions:R=!1,tools:d=[],allowedTools:c=[],disallowedTools:J=[],mcpConfig:V=[],permissionMode:F,addDir:Q=[],fallbackModel:K,betas:Y=[],ide:N=!1,sessionId:S,includeHookEvents:u,includePartialMessages:U}=G;if(G.prefill)OI(G.prefill);let{agents:l,agent:A,outputFormat:X,inputFormat:z}=G,O=G.verbose??VG().verbose,j=G.print,P=G.init??!1,x=G.initOnly??!1,L=G.maintenance??!1;if(g.disableSlashCommands=G.disableSlashCommands||!1,g.taskListId=void 0,g.worktreeOption=fG()?G.worktree:void 0,g.worktreeName=typeof g.worktreeOption==="string"?g.worktreeOption:void 0,g.worktreeEnabled=g.worktreeOption!==void 0,g.worktreeName){let W=iI(g.worktreeName);if(W!==null)g.worktreePRNumber=W,g.worktreeName=void 0}if(g.tmuxEnabled=fG()&&G.tmux===!0,g.tmuxEnabled){if(!g.worktreeEnabled)process.stderr.write(w.red(`Error: --tmux requires --worktree
|
|
2
|
-
`)),process.exit(1);if(PI()==="windows")process.stderr.write(w.red(`Error: --tmux is not supported on Windows
|
|
3
|
-
`)),process.exit(1);if(!await oI())process.stderr.write(w.red(`Error: tmux is not installed.
|
|
4
|
-
${nI()}
|
|
5
|
-
`)),process.exit(1)}if(BG()){let W=_I(G);g.storedTeammateOpts=W;let i=W.agentId||W.agentName||W.teamName,p=W.agentId&&W.agentName&&W.teamName;if(i&&!p)process.stderr.write(w.red(`Error: --agent-id, --agent-name, and --team-name must all be provided together
|
|
6
|
-
`)),process.exit(1);if(W.agentId&&W.agentName&&W.teamName)Z.getTeammateUtils().setDynamicTeamContext?.({agentId:W.agentId,agentName:W.agentName,teamName:W.teamName,color:W.agentColor,planModeRequired:W.planModeRequired??!1,parentSessionId:W.parentSessionId});if(W.teammateMode)Z.getTeammateModeSnapshot().setCliTeammateModeOverride?.(W.teammateMode)}if(g.sdkUrl=G.sdkUrl??void 0,g.effectiveIncludePartialMessages=!!U||_G(process.env.CLAUDE_CODE_INCLUDE_PARTIAL_MESSAGES),u||_G(process.env.CLAUDE_CODE_REMOTE))sI(!0);if(g.sdkUrl){if(!z)z="stream-json";if(!X)X="stream-json";if(G.verbose===void 0)O=!0;if(!G.print)j=!0}let v=G.teleport??null,M=G.remote,q=M===!0?"":M??null,T=G.remoteControl??G.rc,n=typeof T==="string"&&T.length>0?T:void 0;if(S){if((G.continue||G.resume)&&!G.forkSession)process.stderr.write(w.red(`Error: --session-id can only be used with --continue or --resume if --fork-session is also specified.
|
|
7
|
-
`)),process.exit(1);if(!g.sdkUrl){let W=lG(S);if(!W)process.stderr.write(w.red(`Error: Invalid session ID. Must be a valid UUID.
|
|
8
|
-
`)),process.exit(1);if(aI(W))process.stderr.write(w.red(`Error: Session ID ${W} is already in use.
|
|
9
|
-
`)),process.exit(1)}}if(g.fileSpecs=G.file,g.fileSpecs&&g.fileSpecs.length>0){let W=fI();if(!W)process.stderr.write(w.red(`Error: Session token required for file downloads. CLAUDE_CODE_SESSION_ACCESS_TOKEN must be set.
|
|
10
|
-
`)),process.exit(1);let i=process.env.CLAUDE_CODE_REMOTE_SESSION_ID||DI(),p=tI(g.fileSpecs);if(p.length>0){let tZ={baseUrl:(HG()?.transport==="anthropic"?HG()?.baseUrl:void 0)||$I().BASE_API_URL,oauthToken:W,sessionId:i};g.fileDownloadPromise=rI(p,tZ)}}let _=vG();if(K&&G.model&&K===G.model)process.stderr.write(w.red(`Error: Fallback model cannot be the same as the main model. Please specify a different model for --fallback-model.
|
|
11
|
-
`)),process.exit(1);let D=G.systemPrompt;if(G.systemPromptFile){if(G.systemPrompt)process.stderr.write(w.red(`Error: Cannot use both --system-prompt and --system-prompt-file. Please use only one.
|
|
12
|
-
`)),process.exit(1);try{let W=AG(G.systemPromptFile);D=qI(W,"utf8")}catch(W){if(aG(W)==="ENOENT")process.stderr.write(w.red(`Error: System prompt file not found: ${AG(G.systemPromptFile)}
|
|
13
|
-
`)),process.exit(1);process.stderr.write(w.red(`Error reading system prompt file: ${s(W)}
|
|
14
|
-
`)),process.exit(1)}}let gG=G.appendSystemPrompt;if(G.appendSystemPromptFile){if(G.appendSystemPrompt)process.stderr.write(w.red(`Error: Cannot use both --append-system-prompt and --append-system-prompt-file. Please use only one.
|
|
15
|
-
`)),process.exit(1);try{let W=AG(G.appendSystemPromptFile);gG=qI(W,"utf8")}catch(W){if(aG(W)==="ENOENT")process.stderr.write(w.red(`Error: Append system prompt file not found: ${AG(G.appendSystemPromptFile)}
|
|
16
|
-
`)),process.exit(1);process.stderr.write(w.red(`Error reading append system prompt file: ${s(W)}
|
|
17
|
-
`)),process.exit(1)}}if(BG()&&g.storedTeammateOpts?.agentId&&g.storedTeammateOpts?.agentName&&g.storedTeammateOpts?.teamName){let W=Z.getTeammatePromptAddendum().TEAMMATE_SYSTEM_PROMPT_ADDENDUM;gG=gG?`${gG}
|
|
18
|
-
|
|
19
|
-
${W}`:W}return{prompt:b,debug:y,debugToStderr:h,dangerouslySkipPermissions:H,allowDangerouslySkipPermissions:R,baseTools:d,allowedTools:c,disallowedTools:J,mcpConfig:V,permissionModeCli:F,addDir:Q,fallbackModel:K,betas:Y,ide:N,sessionId:S,includeHookEvents:u,includePartialMessages:U,outputFormat:X,inputFormat:z,verbose:O,print:j,init:P,initOnly:x,maintenance:L,agentsJson:l,agentCli:A,systemPrompt:D,appendSystemPrompt:gG,teleport:v,remote:q,remoteControlOption:T,remoteControlName:n,isNonInteractiveSession:_}}UG();Yb();r();XG();yb();cb();r();Xb();JG();mG();FG();Ig();Vb();TI();Wb();r();gg();import{resolve as Hb}from"path";async function lb(I,G){let{options:g,ctx:B,permissionModeCli:Z,dangerouslySkipPermissions:C,allowDangerouslySkipPermissions:b,baseTools:y,allowedTools:h,disallowedTools:H,mcpConfig:R,addDir:d,isNonInteractiveSession:c,inputFormat:J,outputFormat:V}=I,{autoModeStateModule:F}=G,{mode:Q,notification:K}=Cg({permissionModeCli:Z,dangerouslySkipPermissions:C});if(eI(Q==="bypassPermissions"),g.enableAutoMode||Z==="auto"||Q==="auto"||!Z&&Yg())F?.setAutoModeFlagCli(!0);let Y={};if(R&&R.length>0){let x=R.map((M)=>M.trim()).filter((M)=>M.length>0),L={},v=[];for(let M of x){let q=null,T=[],n=LG(M);if(n){let _=yg({configObject:n,filePath:"command line",expandVars:!0,scope:"dynamic"});if(_.config)q=_.config.mcpServers;else T=_.errors}else{let _=Hb(M),D=cg({filePath:_,expandVars:!0,scope:"dynamic"});if(D.config)q=D.config.mcpServers;else T=D.errors}if(T.length>0)v.push(...T);else if(q)L={...L,...q}}if(v.length>0){let M=v.map((q)=>`${q.path?q.path+": ":""}${q.message}`).join(`
|
|
20
|
-
`);k(`--mcp-config validation failed (${v.length} errors): ${M}`,{level:"error"}),process.stderr.write(`Error: Invalid MCP configuration:
|
|
21
|
-
${M}
|
|
22
|
-
`),process.exit(1)}if(Object.keys(L).length>0){let M=Object.entries(L).filter(([,D])=>D.type!=="sdk").map(([D])=>D),q=null;if(q)process.stderr.write(`Error: ${q}
|
|
23
|
-
`),process.exit(1);let T=Bg(L,(D)=>({...D,scope:"dynamic"})),{allowed:n,blocked:_}=rG(T);if(_.length>0)process.stderr.write(`Warning: MCP ${dG(_.length,"server")} blocked by enterprise policy: ${_.join(", ")}
|
|
24
|
-
`);Y={...Y,...n}}}let N=g.strictMcpConfig||!1;if(tG()){if(N)process.stderr.write(w.red("You cannot use --strict-mcp-config when an enterprise MCP config is present")),process.exit(1);if(Y&&!Hg(Y))process.stderr.write(w.red("You cannot dynamically configure MCP servers when an enterprise MCP config is present")),process.exit(1)}Gg(d);let S,u=await Wg({allowedToolsCli:h,disallowedToolsCli:H,baseToolsCli:y,permissionMode:Q,allowDangerouslySkipPermissions:b,addDirs:d}),U=u.toolPermissionContext,{warnings:l,dangerousPermissions:A,overlyBroadBashPermissions:X}=u;if(A.length>0)U=bg(U);l.forEach((x)=>{console.error(x)}),Zg();let z=c&&!N&&!tG()&&!zG()?Xg().then((x)=>{let{allowed:L,blocked:v}=rG(x);if(v.length>0)process.stderr.write(`Warning: claude.ai MCP ${dG(v.length,"server")} blocked by enterprise policy: ${v.join(", ")}
|
|
25
|
-
`);return L}):Promise.resolve({});k("[STARTUP] Loading MCP configs...");let O=Date.now(),j={current:void 0},P=(N||zG()?Promise.resolve({servers:{},errors:[]}):Vg(Y)).then((x)=>{return j.current=Date.now()-O,x});if(J&&J!=="text"&&J!=="stream-json")console.error(`Error: Invalid input format "${J}".`),process.exit(1);if(J==="stream-json"&&V!=="stream-json")console.error("Error: --input-format=stream-json requires output-format=stream-json."),process.exit(1);if(B.sdkUrl){if(J!=="stream-json"||V!=="stream-json")console.error("Error: --sdk-url requires both --input-format=stream-json and --output-format=stream-json."),process.exit(1)}if(g.replayUserMessages){if(J!=="stream-json"||V!=="stream-json")console.error("Error: --replay-user-messages requires both --input-format=stream-json and --output-format=stream-json."),process.exit(1)}if(B.effectiveIncludePartialMessages){if(!c||V!=="stream-json")sG("Error: --include-partial-messages requires --print and --output-format=stream-json."),process.exit(1)}if(g.sessionPersistence===!1&&!c)sG("Error: --no-session-persistence can only be used with --print mode."),process.exit(1);return{permissionMode:Q,permissionModeNotification:K,dynamicMcpConfig:Y,strictMcpConfig:N,devChannels:S,toolPermissionContext:U,overlyBroadBashPermissions:X,claudeaiConfigPromise:z,mcpConfigPromise:P,mcpConfigResolvedRef:j}}UG();r();QI();OC();AB();wB();iG();XG();xC();JG();mG();Ig();xG();$C();DC();qC();r();nG();YI();oG();function lg(){}eG();Rb();Jb();db();Kb();Kg();e();var dg=5,Jg=30,hb=`After you finish implementing the change:
|
|
26
|
-
1. **Code review** — Invoke the \`${Qg}\` tool with \`skill: "code-review"\` and \`args: "medium"\` to get a correctness-bug report on your changes, then fix every reported bug before moving on.
|
|
27
|
-
2. **Run unit tests** — Run the project's test suite (check for package.json scripts, Makefile targets, or common commands like \`npm test\`, \`bun test\`, \`pytest\`, \`go test\`). If tests fail, fix them.
|
|
28
|
-
3. **Test end-to-end** — Follow the e2e test recipe from the coordinator's prompt (below). If the recipe says to skip e2e for this unit, skip it.
|
|
29
|
-
4. **Commit and push** — Commit all changes with a clear message, push the branch, and create a PR with \`gh pr create\`. Use a descriptive title. If \`gh\` is not available or the push fails, note it in your final message.
|
|
30
|
-
5. **Report** — End with a single line: \`PR: <url>\` so the coordinator can track it. If no PR was created, end with \`PR: none — <reason>\`.`;function Fb(I){return`# Batch: Parallel Work Orchestration
|
|
31
|
-
|
|
32
|
-
You are orchestrating a large, parallelizable change across this codebase.
|
|
33
|
-
|
|
34
|
-
## User Instruction
|
|
35
|
-
|
|
36
|
-
${I}
|
|
37
|
-
|
|
38
|
-
## Phase 1: Research and Plan (Plan Mode)
|
|
39
|
-
|
|
40
|
-
Call the \`${Fg}\` tool now to enter plan mode, then:
|
|
41
|
-
|
|
42
|
-
1. **Understand the scope.** Launch one or more subagents (in the foreground — you need their results) to deeply research what this instruction touches. Find all the files, patterns, and call sites that need to change. Understand the existing conventions so the migration is consistent.
|
|
43
|
-
|
|
44
|
-
2. **Decompose into independent units.** Break the work into ${dg}–${Jg} self-contained units. Each unit must:
|
|
45
|
-
- Be independently implementable in an isolated git worktree (no shared state with sibling units)
|
|
46
|
-
- Be mergeable on its own without depending on another unit's PR landing first
|
|
47
|
-
- Be roughly uniform in size (split large units, merge trivial ones)
|
|
48
|
-
|
|
49
|
-
Scale the count to the actual work: few files → closer to ${dg}; hundreds of files → closer to ${Jg}. Prefer per-directory or per-module slicing over arbitrary file lists.
|
|
50
|
-
|
|
51
|
-
3. **Determine the e2e test recipe.** Figure out how a worker can verify its change actually works end-to-end — not just that unit tests pass. Look for:
|
|
52
|
-
- A \`claude-in-chrome\` skill or browser-automation tool (for UI changes: click through the affected flow, screenshot the result)
|
|
53
|
-
- A \`tmux\` or CLI-verifier skill (for CLI changes: launch the app interactively, exercise the changed behavior)
|
|
54
|
-
- A dev-server + curl pattern (for API changes: start the server, hit the affected endpoints)
|
|
55
|
-
- An existing e2e/integration test suite the worker can run
|
|
56
|
-
|
|
57
|
-
If you cannot find a concrete e2e path, use the \`${zg}\` tool to ask the user how to verify this change end-to-end. Offer 2–3 specific options based on what you found (e.g., "Screenshot via chrome extension", "Run \`bun run dev\` and curl the endpoint", "No e2e — unit tests are sufficient"). Do not skip this — the workers cannot ask the user themselves.
|
|
58
|
-
|
|
59
|
-
Write the recipe as a short, concrete set of steps that a worker can execute autonomously. Include any setup (start a dev server, build first) and the exact command/interaction to verify.
|
|
60
|
-
|
|
61
|
-
4. **Write the plan.** In your plan file, include:
|
|
62
|
-
- A summary of what you found during research
|
|
63
|
-
- A numbered list of work units — for each: a short title, the list of files/directories it covers, and a one-line description of the change
|
|
64
|
-
- The e2e test recipe (or "skip e2e because …" if the user chose that)
|
|
65
|
-
- The exact worker instructions you will give each agent (the shared template)
|
|
66
|
-
|
|
67
|
-
5. Call \`${hg}\` to present the plan for approval.
|
|
68
|
-
|
|
69
|
-
## Phase 2: Spawn Workers (After Plan Approval)
|
|
70
|
-
|
|
71
|
-
Once the plan is approved, spawn one background agent per work unit using the \`${t}\` tool. **All agents must use \`isolation: "worktree"\` and \`run_in_background: true\`.** Launch them all in a single message block so they run in parallel.
|
|
72
|
-
|
|
73
|
-
For each agent, the prompt must be fully self-contained. Include:
|
|
74
|
-
- The overall goal (the user's instruction)
|
|
75
|
-
- This unit's specific task (title, file list, change description — copied verbatim from your plan)
|
|
76
|
-
- Any codebase conventions you discovered that the worker needs to follow
|
|
77
|
-
- The e2e test recipe from your plan (or "skip e2e because …")
|
|
78
|
-
- The worker instructions below, copied verbatim:
|
|
79
|
-
|
|
80
|
-
\`\`\`
|
|
81
|
-
${hb}
|
|
82
|
-
\`\`\`
|
|
83
|
-
|
|
84
|
-
Use \`subagent_type: "Code"\` unless a more specific agent type fits.
|
|
85
|
-
|
|
86
|
-
## Phase 3: Track Progress
|
|
87
|
-
|
|
88
|
-
After launching all workers, render an initial status table:
|
|
89
|
-
|
|
90
|
-
| # | Unit | Status | PR |
|
|
91
|
-
|---|------|--------|----|
|
|
92
|
-
| 1 | <title> | running | — |
|
|
93
|
-
| 2 | <title> | running | — |
|
|
94
|
-
|
|
95
|
-
As background-agent completion notifications arrive, parse the \`PR: <url>\` line from each agent's result and re-render the table with updated status (\`done\` / \`failed\`) and PR links. Keep a brief failure note for any agent that did not produce a PR.
|
|
96
|
-
|
|
97
|
-
When all agents have reported, render the final table and a one-line summary (e.g., "22/24 units landed as PRs").
|
|
98
|
-
`}var zb="This is not a git repository. The `/batch` command requires a git repo because it spawns agents in isolated git worktrees and creates PRs from each. Initialize a repo first, or run this from inside an existing one.",Qb=`Provide an instruction describing the batch change you want to make.
|
|
99
|
-
|
|
100
|
-
Examples:
|
|
101
|
-
/batch migrate from react to vue
|
|
102
|
-
/batch replace all uses of lodash with native equivalents
|
|
103
|
-
/batch add type annotations to all untyped function parameters`;function wg(){$({name:"batch",description:"Research and plan a large-scale change, then execute it in parallel across 5–30 isolated worktree agents that each open a PR.",whenToUse:"Use when the user wants to make a sweeping, mechanical change across many files (migrations, refactors, bulk renames) that can be decomposed into independent parallel units.",argumentHint:"<instruction>",userInvocable:!0,disableModelInvocation:!0,async getPromptForCommand(I){let G=I.trim();if(!G)return[{type:"text",text:Qb}];if(!await Rg())return[{type:"text",text:zb}];return[{type:"text",text:Fb(G)}]}})}eG();vg();e();var wb={med:"medium"},Nb=new RegExp(`^(${QG.map((I)=>I.slice(0,3)).join("|")})[a-z]*$`,"i");function jb(I){let G=I.trim().toLowerCase(),g=wb[G]??G;return QG.includes(g)?g:void 0}function Ab(I){let G=I.trim().split(/\s+/).filter(Boolean),g=G[0]??"",B=!1,Z=!1,C=[];for(let h of G)if(/^--comment$/i.test(h))B=!0;else if(/^--fix$/i.test(h))Z=!0;else C.push(h);if(g.toLowerCase()==="ultra")return{explicit:void 0,target:C.slice(1).join(" "),comment:B,fix:Z,unrecognizedLevel:void 0,ultraFallback:!0};let b=C[0]??"",y=jb(b);if(y!==void 0)return{explicit:y,target:C.slice(1).join(" "),comment:B,fix:Z,unrecognizedLevel:void 0,ultraFallback:!1};return{explicit:void 0,target:C.join(" "),comment:B,fix:Z,unrecognizedLevel:b&&Nb.test(b)?b:void 0,ultraFallback:!1}}function vb(I,G){let g=I.ultraFallback?"max":I.explicit,B=G?.options?.mainLoopModel,Z=G?.getAppState?.().effortValue,C=B?jg(B,g??Z):g??Z;if(C===void 0)return"medium";return Ag(C)}var GI="## Phase 0 — Gather the diff\n\nRun `git diff @{upstream}...HEAD` (or `git diff main...HEAD` / `git diff HEAD~1`\nif there's no upstream) to get the unified diff under review. If there are\nuncommitted changes, or the range diff is empty, also run `git diff HEAD` and\ninclude the working-tree changes in scope — the review often runs before the\ncommit. If a PR number, branch name, or file path was passed as an argument,\nreview that target instead. Treat this diff as the review scope.\n",mb=`### Angle A — line-by-line diff scan
|
|
104
|
-
|
|
105
|
-
Read every hunk in the diff, line by line. Then Read the enclosing function for
|
|
106
|
-
each hunk — bugs in unchanged lines of a touched function are in scope (the PR
|
|
107
|
-
re-exposes or fails to fix them). For every line ask: what input, state, timing,
|
|
108
|
-
or platform makes this line wrong? Look for inverted/wrong conditions,
|
|
109
|
-
off-by-one, null/undefined deref, missing \`await\`, falsy-zero checks,
|
|
110
|
-
wrong-variable copy-paste, error swallowed in catch, unescaped regex metachars.
|
|
111
|
-
`,Ub=`### Angle B — removed-behavior auditor
|
|
112
|
-
|
|
113
|
-
For every line the diff DELETES or replaces, name the invariant or behavior it
|
|
114
|
-
enforced, then search the new code for where that invariant is re-established.
|
|
115
|
-
If you can't find it, that's a candidate: a removed guard, a dropped error
|
|
116
|
-
path, a narrowed validation, a deleted test that was covering a real case.
|
|
117
|
-
`,Lb=`### Angle C — cross-file tracer
|
|
118
|
-
|
|
119
|
-
For each function the diff changes, find its callers (Grep for the symbol) and
|
|
120
|
-
check whether the change breaks any call site: a new precondition, a changed
|
|
121
|
-
return shape, a new exception, a timing/ordering dependency. Also check callees:
|
|
122
|
-
does a parallel change in the same PR make a call unsafe?
|
|
123
|
-
`,kb=`### Angle D — language-pitfall specialist
|
|
124
|
-
|
|
125
|
-
Scan for the classic pitfalls of the diff's language/framework — for example:
|
|
126
|
-
JS falsy-zero, \`==\` coercion, closure-captured loop var; Python mutable default
|
|
127
|
-
args, late-binding closures; Go nil-map write, range-var capture; SQL injection;
|
|
128
|
-
timezone/DST drift; float equality. Flag any instance the diff introduces.
|
|
129
|
-
`,Sb=`### Angle E — wrapper/proxy correctness
|
|
130
|
-
|
|
131
|
-
When the PR adds or modifies a type that wraps another (cache, proxy, decorator,
|
|
132
|
-
adapter): check that every method routes to the wrapped instance and not back
|
|
133
|
-
through a registry/session/global — e.g. a caching provider holding a
|
|
134
|
-
\`delegate\` field that resolves IDs via \`session.get(...)\` instead of
|
|
135
|
-
\`delegate.get(...)\` will re-enter the cache or recurse. Also check that the
|
|
136
|
-
wrapper forwards all the methods the callers actually use.
|
|
137
|
-
`,II=`${mb}
|
|
138
|
-
${Ub}
|
|
139
|
-
${Lb}`,ub=`${II}
|
|
140
|
-
${kb}
|
|
141
|
-
${Sb}`,gI=`### Reuse
|
|
142
|
-
|
|
143
|
-
The angles above hunt for bugs; this one and the next two hunt for cleanup in
|
|
144
|
-
the changed code. Flag new code that re-implements something the codebase
|
|
145
|
-
already has — Grep shared/utility modules and files adjacent to the change,
|
|
146
|
-
and name the existing helper to call instead.
|
|
147
|
-
`,BI=`### Simplification
|
|
148
|
-
|
|
149
|
-
Flag unnecessary complexity the diff adds: redundant or derivable state,
|
|
150
|
-
copy-paste with slight variation, deep nesting, dead code left behind. Name
|
|
151
|
-
the simpler form that does the same job.
|
|
152
|
-
`,ZI=`### Efficiency
|
|
153
|
-
|
|
154
|
-
Flag wasted work the diff introduces: redundant computation or repeated I/O,
|
|
155
|
-
independent operations run sequentially, blocking work added to startup or
|
|
156
|
-
hot paths. Also flag long-lived objects built from closures or captured
|
|
157
|
-
environments — they keep the entire enclosing scope alive for the object's
|
|
158
|
-
lifetime (a memory leak when that scope holds large values); prefer a
|
|
159
|
-
class/struct that copies only the fields it needs. Name the cheaper
|
|
160
|
-
alternative.
|
|
161
|
-
`,bI=`### Altitude
|
|
162
|
-
|
|
163
|
-
Check that each change is implemented at the right depth, not as a fragile
|
|
164
|
-
bandaid. Special cases layered on shared infrastructure are a sign the fix
|
|
165
|
-
isn't deep enough — prefer generalizing the underlying mechanism over adding
|
|
166
|
-
special cases.
|
|
167
|
-
`,CI="Cleanup and altitude candidates use the same `file`/`line`/`summary` shape; in\n`failure_scenario`, state the concrete cost (what is duplicated, wasted, or\nharder to maintain) instead of a crash. Correctness bugs always outrank\ncleanup and altitude findings when the output cap forces a cut.\n",Mb=`- **CONFIRMED** — can name the inputs/state that trigger it and the wrong
|
|
168
|
-
output or crash. Quote the line.
|
|
169
|
-
- **PLAUSIBLE** — mechanism is real, trigger is uncertain (timing, env,
|
|
170
|
-
config). State what would confirm it.
|
|
171
|
-
- **REFUTED** — factually wrong (code doesn't say that) or guarded elsewhere.
|
|
172
|
-
Quote the line that proves it.`,xb=`**PLAUSIBLE by default** — do not refute a candidate for being "speculative" or
|
|
173
|
-
"depends on runtime state" when the state is realistic: concurrency races,
|
|
174
|
-
nil/undefined on a rare-but-reachable path (error handler, cold cache, missing
|
|
175
|
-
optional field), falsy-zero treated as missing, off-by-one on a boundary the
|
|
176
|
-
code does not exclude, retry storms / partial failures, regex/allowlist that
|
|
177
|
-
lost an anchor. These are PLAUSIBLE.
|
|
178
|
-
|
|
179
|
-
**REFUTED** only when constructible from the code: factually wrong (quote the
|
|
180
|
-
actual line); provably impossible (type/constant/invariant — show it); already
|
|
181
|
-
handled in this diff (cite the guard); or pure style with no observable effect.`,mg=`## Phase 2 — Verify (1-vote, 3-state)
|
|
182
|
-
|
|
183
|
-
Dedup candidates that point at the same line/mechanism, keeping the one with
|
|
184
|
-
the most concrete failure scenario. For each remaining candidate, run **one
|
|
185
|
-
verifier** via the ${t} tool: give it the diff, the relevant
|
|
186
|
-
file(s), and the candidate, and have it return exactly one of:
|
|
187
|
-
|
|
188
|
-
${Mb}
|
|
189
|
-
|
|
190
|
-
Keep candidates where the vote is CONFIRMED or PLAUSIBLE.
|
|
191
|
-
`,qb=`## Phase 2 — Verify (1-vote, recall-biased)
|
|
192
|
-
|
|
193
|
-
Dedup near-duplicates (same defect, same location, same reason → keep one). For
|
|
194
|
-
each remaining candidate, run **one verifier** via the ${t} tool:
|
|
195
|
-
give it the diff, the relevant file(s), and the candidate; it returns exactly
|
|
196
|
-
one of **CONFIRMED / PLAUSIBLE / REFUTED**.
|
|
197
|
-
|
|
198
|
-
${xb}
|
|
199
|
-
|
|
200
|
-
Keep **CONFIRMED and PLAUSIBLE**. Drop REFUTED.
|
|
201
|
-
`,Db=`moved/extracted code that dropped a guard
|
|
202
|
-
or anchor; second-tier footguns (dataclass default evaluated once, \`hash()\`
|
|
203
|
-
non-determinism, lock-scope shrink, predicate methods with side effects);
|
|
204
|
-
setup/teardown asymmetry in tests; config defaults flipped.`,$b=`## Phase 3 — Sweep for gaps
|
|
205
|
-
|
|
206
|
-
Run **one more finder** as a fresh reviewer who has the verified list. Re-read
|
|
207
|
-
the diff and enclosing functions looking ONLY for defects not already listed.
|
|
208
|
-
Do not re-derive or re-confirm anything already there — the job is gaps. Focus
|
|
209
|
-
on what the first pass tends to miss: ${Db}
|
|
210
|
-
|
|
211
|
-
Surface **up to 8 additional candidates**, each naming a defect not already on
|
|
212
|
-
the list. If nothing new, return an empty sweep — do not pad.
|
|
213
|
-
`,WI=(I)=>`## Output
|
|
214
|
-
|
|
215
|
-
Return findings as a JSON array of at most ${I} objects:
|
|
216
|
-
|
|
217
|
-
\`\`\`json
|
|
218
|
-
[
|
|
219
|
-
{
|
|
220
|
-
"file": "path/to/file.ext",
|
|
221
|
-
"line": 123,
|
|
222
|
-
"summary": "one-sentence statement of the bug",
|
|
223
|
-
"failure_scenario": "concrete inputs/state → wrong output/crash"
|
|
224
|
-
}
|
|
225
|
-
]
|
|
226
|
-
\`\`\`
|
|
227
|
-
|
|
228
|
-
Ranked most-severe first. If more than ${I} survive, keep the ${I} most
|
|
229
|
-
severe. If nothing survives verification, return \`[]\`.
|
|
230
|
-
`,Ob=`\`low effort → 1 diff pass → no verify → ≤4 findings\`
|
|
231
|
-
|
|
232
|
-
## Turn 1 — read
|
|
233
|
-
|
|
234
|
-
One tool call: read the unified diff (\`git diff @{upstream}...HEAD; git diff HEAD\`
|
|
235
|
-
to cover both committed and uncommitted changes, or \`git diff main...HEAD\` /
|
|
236
|
-
the target passed as an argument). Skip test/fixture
|
|
237
|
-
hunks (\`test/\`, \`spec/\`, \`__tests__/\`, \`*_test.*\`, \`*.test.*\`,
|
|
238
|
-
\`fixtures/\`, \`testdata/\`) — test-file changes are not reviewed at this level.
|
|
239
|
-
No subagents, no full-file reads.
|
|
240
|
-
|
|
241
|
-
## Turn 2 — findings
|
|
242
|
-
|
|
243
|
-
Flag runtime-correctness bugs visible from the hunk alone: inverted/wrong
|
|
244
|
-
condition, off-by-one, null/undefined deref where adjacent lines show the value
|
|
245
|
-
can be absent, removed guard, falsy-zero check, missing \`await\`,
|
|
246
|
-
wrong-variable copy-paste, error swallowed in a catch that should propagate.
|
|
247
|
-
Also flag — still from the hunk alone — new code that duplicates an existing
|
|
248
|
-
helper visible in the diff context, and dead code the diff leaves behind.
|
|
249
|
-
|
|
250
|
-
Do **not** flag style, naming, perf, missing tests, or anything outside the
|
|
251
|
-
hunk.
|
|
252
|
-
|
|
253
|
-
Output at most **4 findings**, most-severe first, one line each:
|
|
254
|
-
\`path/to/file.ext:123 — what's wrong and the concrete failure\`. If nothing
|
|
255
|
-
qualifies, output exactly \`(none)\`.
|
|
256
|
-
`,Pb=`\`medium effort → 3+4 angles × 6 candidates → 1-vote verify → ≤8 findings\`
|
|
257
|
-
|
|
258
|
-
You are reviewing for **precision** at medium effort: every finding you surface
|
|
259
|
-
should be one a maintainer would act on.
|
|
260
|
-
|
|
261
|
-
${GI}
|
|
262
|
-
## Phase 1 — Find candidates (3 correctness angles + 3 cleanup angles + 1 altitude angle, up to 6 each)
|
|
263
|
-
|
|
264
|
-
Run **7 independent finder angles** via the ${t} tool. Each
|
|
265
|
-
surfaces **up to 6 candidate findings** with \`file\`, \`line\`, a one-line
|
|
266
|
-
\`summary\`, and a concrete \`failure_scenario\`.
|
|
267
|
-
|
|
268
|
-
${II}
|
|
269
|
-
${gI}
|
|
270
|
-
${BI}
|
|
271
|
-
${ZI}
|
|
272
|
-
${bI}
|
|
273
|
-
${CI}
|
|
274
|
-
Pass every candidate with a nameable failure scenario through — finders that
|
|
275
|
-
silently drop half-believed candidates bypass the verify step and are the
|
|
276
|
-
dominant cause of misses.
|
|
277
|
-
|
|
278
|
-
${mg}
|
|
279
|
-
${WI(8)}`,Tb=`\`high effort → 3+4 angles × 6 candidates → 1-vote verify (recall-biased) → ≤10 findings\`
|
|
280
|
-
|
|
281
|
-
You are reviewing for **recall** at high effort: catch every real bug a careful
|
|
282
|
-
reviewer would catch in one sitting. At this level, catching real bugs matters
|
|
283
|
-
more than avoiding false positives. Err on the side of surfacing.
|
|
284
|
-
|
|
285
|
-
${GI}
|
|
286
|
-
## Phase 1 — Find candidates (3 correctness angles + 3 cleanup angles + 1 altitude angle, up to 6 each)
|
|
287
|
-
|
|
288
|
-
Run **7 independent finder angles** via the ${t} tool. Each
|
|
289
|
-
surfaces **up to 6 candidate findings** with \`file\`, \`line\`, a one-line
|
|
290
|
-
\`summary\`, and a concrete \`failure_scenario\`.
|
|
291
|
-
|
|
292
|
-
${II}
|
|
293
|
-
${gI}
|
|
294
|
-
${BI}
|
|
295
|
-
${ZI}
|
|
296
|
-
${bI}
|
|
297
|
-
${CI}
|
|
298
|
-
Pass every candidate with a nameable failure scenario through — finders that
|
|
299
|
-
silently drop half-believed candidates bypass the verify step and are the
|
|
300
|
-
dominant cause of misses.
|
|
301
|
-
|
|
302
|
-
${qb}
|
|
303
|
-
${WI(10)}`,Ng=(I)=>`\`${I} effort → 5+4 angles × 8 candidates → 1-vote verify → sweep → ≤15 findings\`
|
|
304
|
-
|
|
305
|
-
You are reviewing for **recall** at ${I==="max"?"maximum":"extra-high"} effort: catch every real bug. At
|
|
306
|
-
this level, catching real bugs matters more than avoiding false positives — a
|
|
307
|
-
missed bug ships. Err on the side of surfacing.
|
|
308
|
-
|
|
309
|
-
${GI}
|
|
310
|
-
## Phase 1 — Find candidates (5 correctness angles + 3 cleanup angles + 1 altitude angle, up to 8 each)
|
|
311
|
-
|
|
312
|
-
Run **9 independent finder angles** via the ${t} tool. Each
|
|
313
|
-
surfaces **up to 8 candidate findings**. Do NOT let one angle's conclusions
|
|
314
|
-
suppress another's — if two angles flag the same line for different reasons,
|
|
315
|
-
record both.
|
|
316
|
-
|
|
317
|
-
${ub}
|
|
318
|
-
${gI}
|
|
319
|
-
${BI}
|
|
320
|
-
${ZI}
|
|
321
|
-
${bI}
|
|
322
|
-
${CI}
|
|
323
|
-
${mg}
|
|
324
|
-
This is recall mode — a single non-REFUTED vote carries the finding. Do NOT
|
|
325
|
-
drop on uncertainty.
|
|
326
|
-
|
|
327
|
-
${$b}
|
|
328
|
-
${WI(15)}`,pb={low:Ob,medium:Pb,high:Tb,xhigh:Ng("xhigh"),max:Ng("max")},Eb=`
|
|
329
|
-
|
|
330
|
-
## Posting to GitHub (--comment)
|
|
331
|
-
|
|
332
|
-
The \`--comment\` flag was passed. After producing the findings list, if the
|
|
333
|
-
review target is a GitHub PR, post each finding as an inline PR comment via
|
|
334
|
-
\`gh api\` (repos/{owner}/{repo}/pulls/{pr}/comments; one call per finding;
|
|
335
|
-
include a suggestion block only when it fully fixes the issue). If \`gh\` is
|
|
336
|
-
not available in this session, print the findings instead. If the target is
|
|
337
|
-
not a PR, print the findings to the terminal and note that \`--comment\` was
|
|
338
|
-
ignored.
|
|
339
|
-
`,_b=`
|
|
340
|
-
|
|
341
|
-
## Applying fixes (--fix)
|
|
342
|
-
|
|
343
|
-
The \`--fix\` flag was passed. After producing the findings list, apply the
|
|
344
|
-
findings to the working tree instead of stopping at the report: fix each one
|
|
345
|
-
directly — correctness bugs and reuse/simplification/efficiency cleanups alike.
|
|
346
|
-
Skip any finding whose fix would change intended behavior, require changes well
|
|
347
|
-
outside the reviewed diff, or that you judge to be a false positive — note the
|
|
348
|
-
skip rather than arguing with it. Finish with a brief summary of what was fixed
|
|
349
|
-
and what was skipped.
|
|
350
|
-
`;function ab(I,G){let g=vb(I,G),B="";if(I.ultraFallback)B=`(ultra (cloud review) isn't available in Claudin — running a local ${g}-effort review${I.fix?" and applying its findings":""}.)
|
|
351
|
-
`;else if(I.unrecognizedLevel!==void 0)B=`(Ignoring unrecognized effort "${I.unrecognizedLevel}"; valid: ${QG.join(", ")}. Using ${g}.)
|
|
352
|
-
`;let Z=I.target?`Review target: \`${I.target}\`
|
|
353
|
-
`:"";return`${B}${Z}${pb[g]}${I.comment?Eb:""}${I.fix?_b:""}`}function Ug(){$({name:"code-review",description:"Review the current diff for correctness bugs and reuse/simplification/efficiency cleanups at the given effort level (low/medium: fewer, high-confidence findings; high→max: broader coverage, may include uncertain findings). Pass --comment to post findings as inline PR comments, or --fix to apply the findings to the working tree after the review.",whenToUse:"When the user wants changed/recent code reviewed for correctness bugs and reuse/simplification/efficiency cleanups.",argumentHint:`[${QG.join("|")}] [--fix] [--comment] [<target>]`,userInvocable:!0,disableModelInvocation:!1,allowedTools:[t,"Read","Grep","Glob","Bash(git diff:*)","Bash(git status:*)","Bash(git log:*)","Bash(gh pr view:*)","Bash(gh pr diff:*)"],async getPromptForCommand(I,G){let g=Ab(I);return[{type:"text",text:ab(g,G)}]}})}ib();YI();JG();FG();fb();e();import{open as ob,stat as nb}from"fs/promises";var kG=20,sb=65536;function xg(){$({name:"debug",description:"Enable debug logging for this session and help diagnose issues",allowedTools:["Read","Grep","Glob"],argumentHint:"[issue description]",disableModelInvocation:!0,userInvocable:!0,async getPromptForCommand(I){let G=kg(),g=Sg(),B;try{let b=await nb(g),y=Math.min(b.size,sb),h=b.size-y,H=await ob(g,"r");try{let{buffer:R,bytesRead:d}=await H.read({buffer:Buffer.alloc(y),position:h}),c=R.toString("utf-8",0,d).split(`
|
|
354
|
-
`).slice(-kG).join(`
|
|
355
|
-
`);B=`Log size: ${ug(b.size)}
|
|
356
|
-
|
|
357
|
-
### Last ${kG} lines
|
|
358
|
-
|
|
359
|
-
\`\`\`
|
|
360
|
-
${c}
|
|
361
|
-
\`\`\``}finally{await H.close()}}catch(b){B=Lg(b)?"No debug log exists yet — logging was just enabled.":`Failed to read last ${kG} lines of debug log: ${s(b)}`}return[{type:"text",text:`# Debug Skill
|
|
362
|
-
|
|
363
|
-
Help the user debug an issue they're encountering in this current Claude Code session.
|
|
364
|
-
${G?"":`
|
|
365
|
-
## Debug Logging Just Enabled
|
|
366
|
-
|
|
367
|
-
Debug logging was OFF for this session until now. Nothing prior to this /debug invocation was captured.
|
|
368
|
-
|
|
369
|
-
Tell the user that debug logging is now active at \`${g}\`, ask them to reproduce the issue, then re-read the log. If they can't reproduce, they can also restart with \`claude --debug\` to capture logs from startup.
|
|
370
|
-
`}
|
|
371
|
-
## Session Debug Log
|
|
372
|
-
|
|
373
|
-
The debug log for the current session is at: \`${g}\`
|
|
374
|
-
|
|
375
|
-
${B}
|
|
376
|
-
|
|
377
|
-
For additional context, grep for [ERROR] and [WARN] lines across the full file.
|
|
378
|
-
|
|
379
|
-
## Issue Description
|
|
380
|
-
|
|
381
|
-
${I||"The user did not describe a specific issue. Read the debug log and summarize any errors, warnings, or notable issues."}
|
|
382
|
-
|
|
383
|
-
## Settings
|
|
384
|
-
|
|
385
|
-
Remember that settings are in:
|
|
386
|
-
* user - ${SG("userSettings")}
|
|
387
|
-
* project - ${SG("projectSettings")}
|
|
388
|
-
* local - ${SG("localSettings")}
|
|
389
|
-
|
|
390
|
-
## Instructions
|
|
391
|
-
|
|
392
|
-
1. Review the user's issue description
|
|
393
|
-
2. The last ${kG} lines show the debug file format. Look for [ERROR] and [WARN] entries, stack traces, and failure patterns across the file
|
|
394
|
-
3. Consider launching the ${Mg} subagent to understand the relevant Claude Code features
|
|
395
|
-
4. Explain what you found in plain language
|
|
396
|
-
5. Suggest concrete fixes or next steps
|
|
397
|
-
`}]}})}rb();e();function tb(){return`# Fewer Permission Prompts
|
|
398
|
-
|
|
399
|
-
Look through my transcripts' MCP and bash tool calls, and based on those, make a prioritized list of patterns that I should add to my permission allowlist to reduce permission prompts. Focus on read-only commands.
|
|
400
|
-
|
|
401
|
-
The format for permissions is: \`Bash(foo*)\`, \`Bash(foo)\`, \`Bash(foo bar *)\`, \`mcp__slack__slack_read_thread\`, etc.
|
|
402
|
-
|
|
403
|
-
Then, add these to the project \`.claudin/settings.json\` under \`permissions.allow\`.
|
|
404
|
-
|
|
405
|
-
## Steps
|
|
406
|
-
|
|
407
|
-
1. **Locate transcripts.** Session transcripts live under \`${qg()}/<sanitized-cwd>/*.jsonl\` (this is Claudin's projects dir, honoring \`CLAUDIN_CONFIG_DIR\`). Each line is a JSON object. Tool calls appear as \`assistant\` messages with \`message.content[]\` entries of \`type: "tool_use"\`. The \`name\` field identifies the tool (e.g. \`"Bash"\`, \`"mcp__slack__slack_read_thread"\`); for Bash, \`input.command\` is the shell string.
|
|
408
|
-
|
|
409
|
-
Scan the recent transcripts across the projects dir — not just the current project — so the allowlist reflects their actual usage. Cap the scan at a reasonable number of recent sessions (e.g. 50 most-recently-modified JSONL files) so this stays fast.
|
|
410
|
-
|
|
411
|
-
2. **Extract tool-call frequencies.**
|
|
412
|
-
- For \`Bash\` calls: parse \`input.command\`, take the leading command token (handling \`sudo\`, \`timeout\`, pipes, \`&&\`, env-var prefixes). Record the command + first subcommand pair (e.g. \`git status\`, \`gh pr view\`, \`ls\`, \`cat\`).
|
|
413
|
-
- For MCP calls: record the full tool name (e.g. \`mcp__slack__slack_read_thread\`).
|
|
414
|
-
- Count occurrences across the scanned transcripts.
|
|
415
|
-
|
|
416
|
-
3. **Filter to read-only.** Keep only commands that don't mutate state. Examples of read-only: \`ls\`, \`cat\`, \`pwd\`, \`git status\`, \`git log\`, \`git diff\`, \`git show\`, \`git branch\`, \`rg\`, \`grep\`, \`find\`, \`head\`, \`tail\`, \`wc\`, \`file\`, \`which\`, \`echo\`, \`date\`, \`gh pr view\`, \`gh pr list\`, \`gh pr diff\`, \`gh issue view\`, \`gh issue list\`, \`gh run list\`, \`gh run view\`, \`gh api\` (GET), \`bun run typecheck\`, \`bun run lint\`, \`bun run test\` (for tests that don't mutate), \`docker ps\`, \`docker logs\`, \`kubectl get\`, \`kubectl describe\`, \`ps\`, \`top\`, \`df\`, \`du\`, \`env\`, \`printenv\`, any MCP tool with \`read\`/\`get\`/\`list\`/\`search\`/\`view\` in its name.
|
|
417
|
-
|
|
418
|
-
Drop anything that writes, deletes, renames, pushes, merges, installs, or runs a build/test that has side effects. When in doubt, leave it out.
|
|
419
|
-
|
|
420
|
-
**Never allowlist a pattern that grants arbitrary code execution.** A wildcard rule for any of these (e.g. \`Bash(python3:*)\`) is equivalent to allowing arbitrary code execution. This list is not exhaustive — apply the same rule to anything in the same category:
|
|
421
|
-
- Interpreters: \`python\`/\`python3\`, \`node\`, \`bun\`, \`deno\`, \`ruby\`, \`perl\`, \`php\`, \`lua\`, etc.
|
|
422
|
-
- Shells: \`bash\`, \`sh\`, \`zsh\`, \`fish\`, \`eval\`, \`exec\`, \`ssh\`, etc.
|
|
423
|
-
- Package runners: \`npx\`, \`bunx\`, \`uvx\`, \`uv run\`, etc.
|
|
424
|
-
- Task-runner wildcards: \`npm run *\`, \`yarn run *\`, \`pnpm run *\`, \`bun run *\`, \`make *\`, \`just *\`, \`cargo run *\`, \`go run *\`, etc. — an exact \`Bash(bun run typecheck)\` is fine, \`Bash(bun run *)\` is not
|
|
425
|
-
- \`gh api *\`, \`docker run\`/\`exec\`, \`kubectl exec\`, \`sudo\`, and similar
|
|
426
|
-
|
|
427
|
-
4. **Drop commands Claudin already auto-allows.** These don't need an allowlist entry — they never prompt. If you see any of these in the transcripts, skip them; don't suggest them to the user.
|
|
428
|
-
|
|
429
|
-
- **Always auto-allowed (any args):** \`cal\`, \`uptime\`, \`cat\`, \`head\`, \`tail\`, \`wc\`, \`stat\`, \`strings\`, \`hexdump\`, \`od\`, \`nl\`, \`id\`, \`uname\`, \`free\`, \`df\`, \`du\`, \`locale\`, \`groups\`, \`nproc\`, \`basename\`, \`dirname\`, \`realpath\`, \`cut\`, \`paste\`, \`tr\`, \`column\`, \`tac\`, \`rev\`, \`fold\`, \`expand\`, \`unexpand\`, \`fmt\`, \`comm\`, \`cmp\`, \`numfmt\`, \`readlink\`, \`diff\`, \`true\`, \`false\`, \`sleep\`, \`which\`, \`type\`, \`expr\`, \`test\`, \`getconf\`, \`seq\`, \`tsort\`, \`pr\`, \`echo\`, \`printf\`, \`ls\`, \`cd\`, \`find\`.
|
|
430
|
-
- **Auto-allowed with zero args only:** \`pwd\`, \`whoami\`, \`alias\`.
|
|
431
|
-
- **Auto-allowed exact forms:** \`node -v\`, \`node --version\`, \`python --version\`, \`python3 --version\`, \`ip addr\`.
|
|
432
|
-
- **Auto-allowed with safe flags only (validated):** \`xargs\`, \`file\`, \`sed\` (read-only expressions), \`sort\`, \`man\`, \`help\`, \`netstat\`, \`ps\`, \`base64\`, \`grep\`, \`egrep\`, \`fgrep\`, \`sha256sum\`, \`sha1sum\`, \`md5sum\`, \`tree\`, \`date\`, \`hostname\`, \`info\`, \`lsof\`, \`pgrep\`, \`tput\`, \`ss\`, \`fd\`, \`fdfind\`, \`rg\`, \`jq\`, \`uniq\`, \`history\`, \`arch\`, \`ifconfig\`, \`pyright\`.
|
|
433
|
-
- **All git read-only subcommands:** \`git status\`, \`git log\`, \`git diff\`, \`git show\`, \`git blame\`, \`git branch\`, \`git tag\`, \`git remote\`, \`git ls-files\`, \`git ls-remote\`, \`git config --get\`, \`git rev-parse\`, \`git describe\`, \`git stash list\`, \`git reflog\`, \`git shortlog\`, \`git cat-file\`, \`git for-each-ref\`, \`git worktree list\`, etc.
|
|
434
|
-
- **All gh read-only subcommands:** \`gh pr view\`, \`gh pr list\`, \`gh pr diff\`, \`gh pr checks\`, \`gh pr status\`, \`gh issue view\`, \`gh issue list\`, \`gh issue status\`, \`gh run view\`, \`gh run list\`, \`gh workflow list\`, \`gh workflow view\`, \`gh repo view\`, \`gh release view\`, \`gh release list\`, \`gh api\` (GET), \`gh auth status\`, etc.
|
|
435
|
-
- **Docker read-only subcommands:** \`docker ps\`, \`docker images\`, \`docker logs\`, \`docker inspect\`.
|
|
436
|
-
|
|
437
|
-
Source of truth: \`src/tools/BashTool/readOnlyValidation.ts\` (\`COMMAND_ALLOWLIST\`, \`READONLY_COMMANDS\`, \`READONLY_COMMAND_REGEXES\`) and \`src/utils/shell/readOnlyCommandValidation.ts\` (\`GIT_READ_ONLY_COMMANDS\`, \`GH_READ_ONLY_COMMANDS\`, \`DOCKER_READ_ONLY_COMMANDS\`, \`RIPGREP_READ_ONLY_COMMANDS\`, \`PYRIGHT_READ_ONLY_COMMANDS\`). If you're in this repo and unsure whether a command is covered, grep these files rather than guessing.
|
|
438
|
-
|
|
439
|
-
5. **Pick the pattern form.** Use the narrowest pattern that still covers the observed usage:
|
|
440
|
-
- If the user runs many variants (\`git log\`, \`git log --oneline\`, \`git log main..HEAD\`): use \`Bash(git log *)\` — note the space before \`*\`, which is required for prefix matching to work correctly.
|
|
441
|
-
- If a single exact invocation is common: use \`Bash(foo)\` with no wildcard.
|
|
442
|
-
- For MCP: use the full tool name verbatim (no wildcard needed; they're already specific).
|
|
443
|
-
- Never widen a pattern to the point that it conflicts with the rules above (no arbitrary code execution, no mutation/side effects).
|
|
444
|
-
|
|
445
|
-
6. **Prioritize.** Rank by count descending. Drop anything that appeared fewer than ~3 times — not worth the allowlist entry. Cap the list at the top ~20 so the user can skim it.
|
|
446
|
-
|
|
447
|
-
7. **Present the prioritized list to the user** as a markdown table with columns: rank, pattern, count, one-line description. Example:
|
|
448
|
-
|
|
449
|
-
| # | Pattern | Count | Notes |
|
|
450
|
-
|---|---------|-------|-------|
|
|
451
|
-
| 1 | \`Bash(git status *)\` | 142 | repo status checks |
|
|
452
|
-
| 2 | \`Bash(gh pr view *)\` | 87 | PR inspection |
|
|
453
|
-
| 3 | \`mcp__slack__slack_read_thread\` | 54 | Slack thread reads |
|
|
454
|
-
|
|
455
|
-
8. **Merge into \`.claudin/settings.json\`** in the current project (not the user-level \`settings.json\`, not \`.claudin/settings.local.json\`). Create the file if it doesn't exist. Preserve existing keys and existing entries in \`permissions.allow\`; de-duplicate against what's already there; don't remove anything; don't reorder unrelated fields.
|
|
456
|
-
|
|
457
|
-
9. **Report back.** Tell the user what you added (count + a few examples), what was already in the allowlist, and what you skipped and why (e.g. "dropped \`rm\` and \`git push\` — not read-only; dropped \`cat\`/\`ls\`/\`git status\` — already auto-allowed, no rule needed").
|
|
458
|
-
|
|
459
|
-
Do not add anything to \`permissions.deny\` or \`permissions.ask\`. Do not touch any other settings field.`}function Dg(){$({name:"fewer-permission-prompts",description:"Scan recent transcripts for common read-only Bash/MCP calls and add a prioritized allowlist to the project's .claudin/settings.json to reduce permission prompts.",whenToUse:"When the user wants to cut down on permission prompts by allowlisting their frequent read-only commands.",userInvocable:!0,disableModelInvocation:!1,allowedTools:["Read","Grep","Glob","Edit","Write","Bash(ls:*)"],async getPromptForCommand(){return[{type:"text",text:tb()}]}})}IC();BC();gC();$g();eb();var VI=["Global","Chat","Autocomplete","Confirmation","Help","Transcript","HistorySearch","Task","ThemePicker","Settings","Tabs","Attachments","Footer","MessageSelector","DiffDialog","ModelPicker","Select","Plugin"],Og={Global:"Active everywhere, regardless of focus",Chat:"When the chat input is focused",Autocomplete:"When autocomplete menu is visible",Confirmation:"When a confirmation/permission dialog is shown",Help:"When the help overlay is open",Transcript:"When viewing the transcript",HistorySearch:"When searching command history (ctrl+r)",Task:"When a task/agent is running in the foreground",ThemePicker:"When the theme picker is open",Settings:"When the settings menu is open",Tabs:"When tab navigation is active",Attachments:"When navigating image attachments in a select dialog",Footer:"When footer indicators are focused",MessageSelector:"When the message selector (rewind) is open",DiffDialog:"When the diff dialog is open",ModelPicker:"When the model picker is open",Select:"When a select/list component is focused",Plugin:"When the plugin dialog is open"},yI=["app:interrupt","app:exit","app:toggleTodos","app:toggleTranscript","app:toggleBrief","app:toggleTeammatePreview","app:toggleTerminal","app:redraw","app:globalSearch","app:quickOpen","history:search","history:previous","history:next","chat:cancel","chat:killAgents","chat:cycleMode","chat:modelPicker","chat:fastMode","chat:thinkingToggle","chat:increaseEffort","chat:decreaseEffort","chat:submit","chat:newline","chat:undo","chat:externalEditor","chat:stash","chat:imagePaste","chat:messageActions","autocomplete:accept","autocomplete:dismiss","autocomplete:previous","autocomplete:next","confirm:yes","confirm:no","confirm:previous","confirm:next","confirm:nextField","confirm:previousField","confirm:cycleMode","confirm:toggle","confirm:toggleExplanation","tabs:next","tabs:previous","transcript:toggleShowAll","transcript:exit","historySearch:next","historySearch:accept","historySearch:cancel","historySearch:execute","task:background","theme:toggleSyntaxHighlighting","help:dismiss","attachments:next","attachments:previous","attachments:remove","attachments:exit","footer:up","footer:down","footer:next","footer:previous","footer:openSelected","footer:clearSelection","footer:close","messageSelector:up","messageSelector:down","messageSelector:top","messageSelector:bottom","messageSelector:select","diff:dismiss","diff:previousSource","diff:nextSource","diff:back","diff:viewDetails","diff:previousFile","diff:nextFile","modelPicker:decreaseEffort","modelPicker:increaseEffort","select:next","select:previous","select:accept","select:cancel","plugin:toggle","plugin:install","permission:toggleDebug","settings:search","settings:retry","settings:close","voice:pushToTalk"],GC=XI(()=>o.object({context:o.enum(VI).describe("UI context where these bindings apply. Global bindings work everywhere."),bindings:o.record(o.string().describe('Keystroke pattern (e.g., "ctrl+k", "shift+tab")'),o.union([o.enum(yI),o.string().regex(/^command:[a-zA-Z0-9:\-_]+$/).describe('Command binding (e.g., "command:help", "command:compact"). Executes the slash command as if typed.'),o.null().describe("Set to null to unbind a default shortcut")]).describe("Action to trigger, command to invoke, or null to unbind")).describe("Map of keystroke patterns to actions")}).describe("A block of keybindings for a specific context")),rY=XI(()=>o.object({$schema:o.string().optional().describe("JSON Schema URL for editor validation"),$docs:o.string().optional().describe("Documentation URL"),bindings:o.array(GC()).describe("Array of keybinding blocks by context")}).describe("Claude Code keybindings configuration. Customize keyboard shortcuts by context."));Pg();e();function ZC(){return cI(["Context","Description"],VI.map((I)=>[`\`${I}\``,Og[I]]))}function bC(){let I={};for(let G of Tg)for(let[g,B]of Object.entries(G.bindings))if(B){if(!I[B])I[B]={keys:[],context:G.context};I[B].keys.push(g)}return cI(["Action","Default Key(s)","Context"],yI.map((G)=>{let g=I[G],B=g?g.keys.map((C)=>`\`${C}\``).join(", "):"(none)",Z=g?g.context:CC(G);return[`\`${G}\``,B,Z]}))}function CC(I){let G=I.split(":")[0];return{app:"Global",history:"Global or Chat",chat:"Chat",autocomplete:"Autocomplete",confirm:"Confirmation",tabs:"Tabs",transcript:"Transcript",historySearch:"HistorySearch",task:"Task",theme:"ThemePicker",help:"Help",attachments:"Attachments",footer:"Footer",messageSelector:"MessageSelector",diff:"DiffDialog",modelPicker:"ModelPicker",select:"Select",permission:"Confirmation"}[G??""]??"Unknown"}function WC(){let I=[];I.push("### Non-rebindable (errors)");for(let G of pg)I.push(`- \`${G.key}\` — ${G.reason}`);I.push(""),I.push("### Terminal reserved (errors/warnings)");for(let G of Eg)I.push(`- \`${G.key}\` — ${G.reason} (${G.severity==="error"?"will not work":"may conflict"})`);I.push(""),I.push("### macOS reserved (errors)");for(let G of _g)I.push(`- \`${G.key}\` — ${G.reason}`);return I.join(`
|
|
460
|
-
`)}var YC={$schema:"https://www.schemastore.org/claude-code-keybindings.json",$docs:"https://code.claude.com/docs/en/keybindings",bindings:[{context:"Chat",bindings:{"ctrl+e":"chat:externalEditor"}}]},XC={context:"Chat",bindings:{"ctrl+s":null}},VC={context:"Chat",bindings:{"ctrl+g":null,"ctrl+e":"chat:externalEditor"}},yC={context:"Global",bindings:{"ctrl+k ctrl+t":"app:toggleTodos"}},cC=["# Keybindings Skill","","Create or modify `~/.claudin/keybindings.json` to customize keyboard shortcuts.","","## CRITICAL: Read Before Write","","**Always read `~/.claudin/keybindings.json` first** (it may not exist yet). Merge changes with existing bindings — never replace the entire file.","","- Use **Edit** tool for modifications to existing files","- Use **Write** tool only if the file does not exist yet"].join(`
|
|
461
|
-
`),HC=["## File Format","","```json",yG(YC,null,2),"```","","Always include the `$schema` and `$docs` fields."].join(`
|
|
462
|
-
`),lC=["## Keystroke Syntax","","**Modifiers** (combine with `+`):","- `ctrl` (alias: `control`)","- `alt` (aliases: `opt`, `option`) — note: `alt` and `meta` are identical in terminals","- `shift`","- `meta` (aliases: `cmd`, `command`)","","**Special keys**: `escape`/`esc`, `enter`/`return`, `tab`, `space`, `backspace`, `delete`, `up`, `down`, `left`, `right`","","**Chords**: Space-separated keystrokes, e.g. `ctrl+k ctrl+s` (1-second timeout between keystrokes)","","**Examples**: `ctrl+shift+p`, `alt+enter`, `ctrl+k ctrl+n`"].join(`
|
|
463
|
-
`),dC=["## Unbinding Default Shortcuts","","Set a key to `null` to remove its default binding:","","```json",yG(XC,null,2),"```"].join(`
|
|
464
|
-
`),JC=["## How User Bindings Interact with Defaults","","- User bindings are **additive** — they are appended after the default bindings","- To **move** a binding to a different key: unbind the old key (`null`) AND add the new binding","- A context only needs to appear in the user's file if they want to change something in that context"].join(`
|
|
465
|
-
`),RC=["## Common Patterns","","### Rebind a key","To change the external editor shortcut from `ctrl+g` to `ctrl+e`:","```json",yG(VC,null,2),"```","","### Add a chord binding","```json",yG(yC,null,2),"```"].join(`
|
|
466
|
-
`),KC=["## Behavioral Rules","","1. Only include contexts the user wants to change (minimal overrides)","2. Validate that actions and contexts are from the known lists below","3. Warn the user proactively if they choose a key that conflicts with reserved shortcuts or common tools like tmux (`ctrl+b`) and screen (`ctrl+a`)","4. When adding a new binding for an existing action, the new binding is additive (existing default still works unless explicitly unbound)","5. To fully replace a default binding, unbind the old key AND add the new one"].join(`
|
|
467
|
-
`),hC=["## Validation with /doctor","",'The `/doctor` command includes a "Keybinding Configuration Issues" section that validates `~/.claudin/keybindings.json`.',"","### Common Issues and Fixes","",cI(["Issue","Cause","Fix"],[['`keybindings.json must have a "bindings" array`',"Missing wrapper object",'Wrap bindings in `{ "bindings": [...] }`'],['`"bindings" must be an array`',"`bindings` is not an array",'Set `"bindings"` to an array: `[{ context: ..., bindings: ... }]`'],['`Unknown context "X"`',"Typo or invalid context name","Use exact context names from the Available Contexts table"],['`Duplicate key "X" in Y bindings`',"Same key defined twice in one context","Remove the duplicate; JSON uses only the last value"],['`"X" may not work: ...`',"Key conflicts with terminal/OS reserved shortcut","Choose a different key (see Reserved Shortcuts section)"],['`Could not parse keystroke "X"`',"Invalid key syntax","Check syntax: use `+` between modifiers, valid key names"],['`Invalid action for "X"`',"Action value is not a string or null",'Actions must be strings like `"app:help"` or `null` to unbind']]),"","### Example /doctor Output","","```","Keybinding Configuration Issues","Location: ~/.claudin/keybindings.json",' └ [Error] Unknown context "chat"'," → Valid contexts: Global, Chat, Autocomplete, ...",' └ [Warning] "ctrl+c" may not work: Terminal interrupt (SIGINT)',"```","","**Errors** prevent bindings from working and must be fixed. **Warnings** indicate potential conflicts but the binding may still work."].join(`
|
|
468
|
-
`);function fg(){$({name:"keybindings-help",description:'Use when the user wants to customize keyboard shortcuts, rebind keys, add chord bindings, or modify ~/.claudin/keybindings.json. Examples: "rebind ctrl+s", "add a chord shortcut", "change the submit key", "customize keybindings".',allowedTools:["Read"],userInvocable:!1,isEnabled:ag,async getPromptForCommand(I){let G=ZC(),g=bC(),B=WC(),Z=[cC,HC,lC,dC,JC,RC,KC,hC,`## Reserved Shortcuts
|
|
469
|
-
|
|
470
|
-
${B}`,`## Available Contexts
|
|
471
|
-
|
|
472
|
-
${G}`,`## Available Actions
|
|
473
|
-
|
|
474
|
-
${g}`];if(I)Z.push(`## User Request
|
|
475
|
-
|
|
476
|
-
${I}`);return[{type:"text",text:Z.join(`
|
|
477
|
-
|
|
478
|
-
`)}]}})}function cI(I,G){let g=I.map(()=>"---");return[`| ${I.join(" | ")} |`,`| ${g.join(" | ")} |`,...G.map((B)=>`| ${B.join(" | ")} |`)].join(`
|
|
479
|
-
`)}FC();zC();QC();e();var HI="Monitor";function wC(I){let G=I.toLowerCase();if(["s","sec","secs","second","seconds"].includes(G))return"s";if(["m","min","mins","minute","minutes"].includes(G))return"m";if(["h","hr","hrs","hour","hours"].includes(G))return"h";if(["d","day","days"].includes(G))return"d";return null}function lI(I){let G=I.trim().match(/^(\d+)\s*([a-zA-Z]+)$/);if(!G)return null;let g=Number.parseInt(G[1],10);if(!Number.isFinite(g)||g<1)return null;let B=wC(G[2]);if(!B)return null;return`${g}${B}`}function NC(I){let G=I.match(/^(.*?)(?:\s+every\s+)(\d+)\s*([a-zA-Z]+)\s*$/i);if(!G)return null;let g=lI(`${G[2]}${G[3]}`);if(!g)return null;return{prompt:G[1].trim(),interval:g}}function jC(I){let G=I.trim();if(!G)return{mode:"dynamic-maintenance"};let g=lI(G);if(g)return{mode:"fixed-maintenance",interval:g};let[B,...Z]=G.split(/\s+/),C=lI(B??"");if(C){let y=Z.join(" ").trim();if(!y)return{mode:"fixed-maintenance",interval:C};return{mode:"fixed-prompt",interval:C,prompt:y}}let b=NC(G);if(b){if(!b.prompt)return{mode:"fixed-maintenance",interval:b.interval};return{mode:"fixed-prompt",interval:b.interval,prompt:b.prompt}}return{mode:"dynamic-prompt",prompt:G}}function AC(I){let G=I.prompt?`Use this prompt verbatim for both the immediate run and the recurring scheduled task:
|
|
480
|
-
|
|
481
|
-
--- BEGIN PROMPT ---
|
|
482
|
-
${I.prompt}
|
|
483
|
-
--- END PROMPT ---
|
|
484
|
-
`:`This is a maintenance loop with no explicit prompt.
|
|
485
|
-
|
|
486
|
-
For the recurring scheduled task, use this exact one-line prompt body. It is a sentinel the runtime expands at delivery time (full maintenance instructions on the first fire and whenever loop.md changes, a short reminder afterwards), which keeps the long instruction text in the cached prefix. Pass it exactly — do not inline the instructions:
|
|
487
|
-
|
|
488
|
-
--- BEGIN SCHEDULED PROMPT ---
|
|
489
|
-
${tg}
|
|
490
|
-
--- END SCHEDULED PROMPT ---
|
|
491
|
-
|
|
492
|
-
For the immediate run in step 4, follow this maintenance prompt:
|
|
493
|
-
|
|
494
|
-
--- BEGIN MAINTENANCE PROMPT ---
|
|
495
|
-
${JI}
|
|
496
|
-
--- END MAINTENANCE PROMPT ---
|
|
497
|
-
`;return`# /loop — fixed recurring interval
|
|
498
|
-
|
|
499
|
-
The user invoked /loop with a fixed interval.
|
|
500
|
-
|
|
501
|
-
Requested interval: ${I.interval}
|
|
502
|
-
|
|
503
|
-
${G}
|
|
504
|
-
## Instructions
|
|
505
|
-
|
|
506
|
-
1. Convert the requested interval to a recurring cron expression.
|
|
507
|
-
- Supported suffixes: s, m, h, d.
|
|
508
|
-
- Seconds must be rounded up to the nearest minute because cron has minute granularity.
|
|
509
|
-
- If the requested interval does not map cleanly to cron cadence, choose the nearest clean recurring interval and tell the user what you picked.
|
|
510
|
-
2. Call ${dI} with:
|
|
511
|
-
- the recurring cron expression
|
|
512
|
-
- the scheduled prompt body above (for maintenance loops, the one-line sentinel exactly as given)
|
|
513
|
-
- recurring: true
|
|
514
|
-
- durable: false
|
|
515
|
-
3. Briefly confirm what was scheduled, the cron expression, the human cadence, that recurring tasks auto-expire after ${ig} days, and that the user can cancel sooner with ${ng} using the returned job ID.
|
|
516
|
-
4. Immediately execute the effective prompt now — do not wait for the first cron fire.
|
|
517
|
-
- If the effective prompt starts with a slash command, invoke it via the Skill tool.
|
|
518
|
-
- Otherwise, act on it directly.
|
|
519
|
-
`}function vC(I){let G=I.prompt?`Use this prompt verbatim as the effective prompt for this iteration:
|
|
520
|
-
|
|
521
|
-
--- BEGIN PROMPT ---
|
|
522
|
-
${I.prompt}
|
|
523
|
-
--- END PROMPT ---
|
|
524
|
-
`:`This is a maintenance loop with no explicit prompt.
|
|
525
|
-
|
|
526
|
-
Determine the effective prompt in this order:
|
|
527
|
-
1. If .claudin/loop.md exists, read it and use it.
|
|
528
|
-
2. Otherwise, if ~/.claudin/loop.md exists, read it and use it.
|
|
529
|
-
3. Otherwise, use this built-in maintenance prompt:
|
|
530
|
-
|
|
531
|
-
--- BEGIN MAINTENANCE PROMPT ---
|
|
532
|
-
${JI}
|
|
533
|
-
--- END MAINTENANCE PROMPT ---
|
|
534
|
-
`,g=I.prompt?`/loop ${I.prompt}`:eg,B=I.prompt?"":" (a sentinel the runtime expands at delivery time — pass it exactly, do not inline the maintenance instructions)";return`# /loop — dynamic rescheduling
|
|
535
|
-
|
|
536
|
-
The user invoked /loop without a fixed interval — you pace the iterations yourself with ${ZG}.
|
|
537
|
-
|
|
538
|
-
${G}
|
|
539
|
-
## Instructions
|
|
540
|
-
|
|
541
|
-
1. Execute the effective prompt now.
|
|
542
|
-
- If it starts with a slash command, invoke it via the Skill tool.
|
|
543
|
-
- Otherwise, act on it directly.
|
|
544
|
-
2. Then, as the LAST action of this turn, call ${ZG} exactly once to schedule the next iteration:
|
|
545
|
-
- delaySeconds: choose it yourself per the pacing guidance in the ${ZG} tool description. The runtime clamps to [${sg}, ${rg}] seconds.
|
|
546
|
-
- reason: one short sentence telling the user what delay you picked and why.
|
|
547
|
-
- prompt: set it to this exact text${B} so the next iteration stays in dynamic mode:
|
|
548
|
-
|
|
549
|
-
--- BEGIN SCHEDULED PROMPT ---
|
|
550
|
-
${g}
|
|
551
|
-
--- END SCHEDULED PROMPT ---
|
|
552
|
-
|
|
553
|
-
3. Only one wakeup is alive at a time — calling ${ZG} again replaces the pending one. Do not use ${dI} in this mode.
|
|
554
|
-
4. If the next iteration is gated on an external event the ${HI} tool can watch (a CI run, a deploy, an endpoint or file changing) and ${HI} is available in this session, arm a persistent ${HI} as the primary wake signal and use ${ZG} only as a 1200–1800s fallback heartbeat.
|
|
555
|
-
5. To end the loop (the task is complete, you are blocked on the user, or the user asked to stop), do not call ${ZG} — and briefly tell the user the loop ended and why. If a wakeup is already pending from a previous turn (e.g. the user interrupted to ask you to stop), call ${ZG} with cancel: true to kill it.
|
|
556
|
-
`}function GB(){$({name:"loop",description:"Run a prompt on a fixed interval or dynamically reschedule it, including bare maintenance-mode loops.",whenToUse:"When the user wants to poll for status, babysit a workflow, run recurring maintenance, or keep re-running a prompt within the current session.",argumentHint:"[interval] [prompt]",userInvocable:!0,isEnabled:og,async getPromptForCommand(I){let G=jC(I);return[{type:"text",text:G.mode==="fixed-prompt"||G.mode==="fixed-maintenance"?AC(G):vC(G)}]}})}e();function bG(I){return Buffer.from(I,"base64").toString("utf8")}var IB={"examples/cli.md":bG("IyBWZXJpZnlpbmcgYSBDTEkgY2hhbmdlCgpUaGUgaGFuZGxlIGlzIGRpcmVjdCBpbnZvY2F0aW9uLiBUaGUgZXZpZGVuY2UgaXMgc3Rkb3V0L3N0ZGVyci9leGl0IGNvZGUuCgojIyBQYXR0ZXJuCgoxLiBCdWlsZCAoaWYgdGhlIENMSSBuZWVkcyBidWlsZGluZykKMi4gUnV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LXBhbmUgfCBncmVwIC1xIFhgKQogIHJhdGhlciB0aGFuIGEgZml4ZWQgYHNsZWVwIE5gIOKAlCByZXR1cm5zIHRoZSBpbnN0YW50IHRoZSBhcHAgaXMgdXAsIGFuZCBmYWlscwogIHVzZWZ1bGx5IHdoZW4gaXQgbmV2ZXIgZG9lcy4gU2F5IHdoYXQgc3RyaW5nIG1lYW5zIHJlYWR5LgotICoqS2V5YmluZGluZyByZWZlcmVuY2UuKiogQSB0YWJsZSBvZiB0aGUgbWFpbiBrZXlzLiBUaGlzIGlzIHRoZSAiQVBJIgogIG9mIGEgVFVJIOKAlCBhbiBhZ2VudCBuZWVkcyBpdCB0byBkcml2ZSB0aGUgYXBwLgotICoqRXhpdCBjbGVhbmx5LioqIFNob3cgdGhlIHF1aXQga2V5c3Ryb2tlICphbmQqIGB0bXV4IGtpbGwtc2Vzc2lvbmAgYXMKICBhIGZhbGxiYWNrLgotICoqQ29sb3IvdW5pY29kZSBxdWlya3MuKiogSWYgYGNhcHR1cmUtcGFuZWAgb3V0cHV0IGlzIGhhcmQgdG8gcmVhZCwKICBub3RlIGZsYWdzIHRoYXQgaGVscCAoYC1lYCBmb3IgZXNjYXBlIHNlcXVlbmNlcywgYC1KYCB0byBqb2luIHdyYXBwZWQKICBsaW5lcykuCgojIyBBbHNvIGRvY3VtZW50IHRoZSBkaXJlY3QgaW52b2NhdGlvbgoKRm9yIGEgaHVtYW4gcnVubmluZyB0aGUgYXBwIGludGVyYWN0aXZlbHksIHRtdXggaXMgb3ZlcmtpbGwuIEluY2x1ZGUKdGhlIG9uZS1saW5lciB0b286Cgo+ICMjIFJ1biAoZGlyZWN0LCBmb3IgaHVtYW5zKQo+Cj4gYGBgYmFzaAo+IC4vbXlhcHAKPiBgYGAKPgo+IFByZXNzIGBxYCB0byBxdWl0Lgo=")};var mC=`**Running means launching the actual app and interacting with it** —
|
|
557
|
-
not the test suite, not an \`import\` of an internal function and a
|
|
558
|
-
\`console.log\`. The app as a user (human or programmatic) would meet
|
|
559
|
-
it: the CLI at its command, the server at its socket, the GUI at its
|
|
560
|
-
window.
|
|
561
|
-
|
|
562
|
-
## First: does a project skill already cover this?
|
|
563
|
-
|
|
564
|
-
A project skill that launches this app is the repo's verified path —
|
|
565
|
-
its author already cold-started from a Linux container and committed
|
|
566
|
-
what worked: the exact \`apt-get\` line, the env vars, the patches, the
|
|
567
|
-
driver. Use it instead of rediscovering.
|
|
568
|
-
|
|
569
|
-
\`\`\`bash
|
|
570
|
-
d=$PWD; while :; do
|
|
571
|
-
grep -Hm1 '^description:' "$d"/.claudin/skills/*/SKILL.md 2>/dev/null
|
|
572
|
-
[ -e "$d/.git" ] || [ "$d" = / ] && break
|
|
573
|
-
d=$(dirname "$d")
|
|
574
|
-
done
|
|
575
|
-
\`\`\`
|
|
576
|
-
|
|
577
|
-
- **One describes launching/driving this app** → read that SKILL.md
|
|
578
|
-
and follow it verbatim. Don't paraphrase; don't skip the patches.
|
|
579
|
-
- **Mega-repo, several plausible, no clear match** → ask the user
|
|
580
|
-
which unit to run.
|
|
581
|
-
- **Stale** (fails on mechanics unrelated to your task) → tell the
|
|
582
|
-
user.
|
|
583
|
-
- **Nothing about running** → fall back to the patterns below.
|
|
584
|
-
|
|
585
|
-
## Otherwise: match the shape, use the pattern
|
|
586
|
-
|
|
587
|
-
Pick the row closest to your project. Each example walks through
|
|
588
|
-
launch + first interaction; ignore any trailing "write the skill"
|
|
589
|
-
section — you're using the recipe, not authoring one.
|
|
590
|
-
|
|
591
|
-
| Project type | Handle | Example |
|
|
592
|
-
|---|---|---|
|
|
593
|
-
| CLI tool | direct invocation, exit code, stdin/stdout | [examples/cli.md](examples/cli.md) |
|
|
594
|
-
| Web server / API | background launch + \`curl\` smoke | [examples/server.md](examples/server.md) |
|
|
595
|
-
| TUI / interactive terminal | tmux \`send-keys\` / \`capture-pane\` | [examples/tui.md](examples/tui.md) |
|
|
596
|
-
| Electron / desktop GUI | Playwright \`_electron\` REPL under xvfb | [examples/electron.md](examples/electron.md) |
|
|
597
|
-
| Browser-driven | dev server + \`chromium-cli\` script | [examples/playwright.md](examples/playwright.md) |
|
|
598
|
-
| Library / SDK | import-and-call smoke script at the package boundary | [examples/library.md](examples/library.md) |
|
|
599
|
-
|
|
600
|
-
If nothing fits, start from the closest match and adapt. For a web
|
|
601
|
-
app, [examples/playwright.md](examples/playwright.md) — drive it with
|
|
602
|
-
\`chromium-cli\`, no custom driver needed. For a desktop app,
|
|
603
|
-
[examples/electron.md](examples/electron.md) — it has the \`_electron\`
|
|
604
|
-
REPL driver skeleton and the tmux wrapping.
|
|
605
|
-
|
|
606
|
-
## Drive it, don't just launch it
|
|
607
|
-
|
|
608
|
-
Launching with no interaction proves the entrypoint resolves. That's
|
|
609
|
-
not running the app — it's typechecking with extra steps. Drive it to
|
|
610
|
-
a point where a user would see something:
|
|
611
|
-
|
|
612
|
-
- CLI → type a representative command, check the exit code and output.
|
|
613
|
-
- Server → hit the route the diff touches with \`curl\`, read the body.
|
|
614
|
-
- TUI → \`send-keys\` a navigation, \`capture-pane\` the result.
|
|
615
|
-
- GUI → click the button, screenshot the window. **Look at the
|
|
616
|
-
screenshot.** A blank frame is a failure to launch.
|
|
617
|
-
|
|
618
|
-
If the fallback pattern didn't work out of the box — you had to
|
|
619
|
-
install packages, set env vars, patch config, or write a driver —
|
|
620
|
-
note that in your report so the work can be captured as a project
|
|
621
|
-
skill for next time. If it just worked, don't.`;function BB(){$({name:"run",description:"Launch this project's app and drive it to confirm a change works in the real app (not just tests).",whenToUse:"When the user wants to run/start/screenshot the app, or confirm a change works end-to-end in the running app.",userInvocable:!0,disableModelInvocation:!1,files:gB,async getPromptForCommand(){return[{type:"text",text:mC}]}})}eG();e();function UC(I){let G=I.trim(),g=G?`
|
|
622
|
-
|
|
623
|
-
## Additional Focus
|
|
624
|
-
|
|
625
|
-
${G}
|
|
626
|
-
`:"";return`# Simplify: Quality Cleanup of Changed Code
|
|
627
|
-
|
|
628
|
-
You are improving the quality of the changed code, not hunting for bugs. Review
|
|
629
|
-
it for reuse, simplification, efficiency, and altitude issues, then fix what you
|
|
630
|
-
find. Do not look for correctness bugs — that is what \`/code-review\` is for.
|
|
631
|
-
|
|
632
|
-
## Phase 0 — Gather the diff
|
|
633
|
-
|
|
634
|
-
Run \`git diff @{upstream}...HEAD\` (or \`git diff main...HEAD\` / \`git diff HEAD~1\`
|
|
635
|
-
if there's no upstream) to get the unified diff under review. If there are
|
|
636
|
-
uncommitted changes, or the range diff is empty, also run \`git diff HEAD\` and
|
|
637
|
-
include the working-tree changes in scope — the review often runs before the
|
|
638
|
-
commit. If a PR number, branch name, or file path was passed as an argument,
|
|
639
|
-
review that target instead. Treat this diff as the review scope.
|
|
640
|
-
|
|
641
|
-
## Phase 1 — Review (4 cleanup agents in parallel)
|
|
642
|
-
|
|
643
|
-
Use the ${t} tool to launch **4 independent review agents**, all in
|
|
644
|
-
a single message so they run concurrently. Pass each agent the diff and one of
|
|
645
|
-
the four angles below. Each returns its findings with \`file\`, \`line\`, a
|
|
646
|
-
one-line \`summary\`, and the concrete cost (what is duplicated, wasted, or
|
|
647
|
-
harder to maintain).
|
|
648
|
-
|
|
649
|
-
### Reuse
|
|
650
|
-
|
|
651
|
-
Flag new code that re-implements something the codebase
|
|
652
|
-
already has — Grep shared/utility modules and files adjacent to the change,
|
|
653
|
-
and name the existing helper to call instead.
|
|
654
|
-
|
|
655
|
-
### Simplification
|
|
656
|
-
|
|
657
|
-
Flag unnecessary complexity the diff adds: redundant or derivable state,
|
|
658
|
-
copy-paste with slight variation, deep nesting, dead code left behind. Name
|
|
659
|
-
the simpler form that does the same job.
|
|
660
|
-
|
|
661
|
-
### Efficiency
|
|
662
|
-
|
|
663
|
-
Flag wasted work the diff introduces: redundant computation or repeated I/O,
|
|
664
|
-
independent operations run sequentially, blocking work added to startup or
|
|
665
|
-
hot paths. Name the cheaper alternative.
|
|
666
|
-
|
|
667
|
-
### Altitude
|
|
668
|
-
|
|
669
|
-
Check that each change is implemented at the right depth, not as a fragile
|
|
670
|
-
bandaid. Special cases layered on shared infrastructure are a sign the fix
|
|
671
|
-
isn't deep enough — prefer generalizing the underlying mechanism over adding
|
|
672
|
-
special cases.
|
|
673
|
-
|
|
674
|
-
## Phase 2 — Apply the fixes
|
|
675
|
-
|
|
676
|
-
Wait for all four agents to complete, dedup findings that point at the same
|
|
677
|
-
line or mechanism, and fix each remaining one directly. Skip any finding whose
|
|
678
|
-
fix would change intended behavior, require changes well outside the reviewed
|
|
679
|
-
diff, or that you judge to be a false positive — note the skip rather than
|
|
680
|
-
arguing with it. Finish with a brief summary of what was fixed and what was
|
|
681
|
-
skipped (or confirm the code was already clean).${g}`}function ZB(){$({name:"simplify",description:"Clean up changed code for reuse, simplification, efficiency, and altitude, then apply the fixes. Quality only — use /code-review for correctness bugs.",whenToUse:"When the user wants the changed/recent code refactored for clarity and reuse (not bug-hunting).",argumentHint:"[focus]",userInvocable:!0,disableModelInvocation:!1,allowedTools:["Read","Grep","Glob","Edit","Bash(git diff:*)","Bash(git status:*)","Bash(git log:*)"],async getPromptForCommand(I){return[{type:"text",text:UC(I)}]}})}$g();LC();Pg();e();function kC(){let I=bB(CB(),{io:"input"});return yG(I,null,2)}var SC=`## Settings File Locations
|
|
682
|
-
|
|
683
|
-
Choose the appropriate file based on scope:
|
|
684
|
-
|
|
685
|
-
| File | Scope | Git | Use For |
|
|
686
|
-
|------|-------|-----|---------|
|
|
687
|
-
| \`~/.claudin/settings.json\` | Global | N/A | Personal preferences for all projects |
|
|
688
|
-
| \`.claudin/settings.json\` | Project | Commit | Team-wide hooks, permissions, plugins |
|
|
689
|
-
| \`.claudin/settings.local.json\` | Project | Gitignore | Personal overrides for this project |
|
|
690
|
-
|
|
691
|
-
Settings load in order: user → project → local (later overrides earlier).
|
|
692
|
-
|
|
693
|
-
## Settings Schema Reference
|
|
694
|
-
|
|
695
|
-
### Permissions
|
|
696
|
-
\`\`\`json
|
|
697
|
-
{
|
|
698
|
-
"permissions": {
|
|
699
|
-
"allow": ["Bash(npm:*)", "Edit(.claudin)", "Read"],
|
|
700
|
-
"deny": ["Bash(rm -rf:*)"],
|
|
701
|
-
"ask": ["Write(/etc/*)"],
|
|
702
|
-
"defaultMode": "default" | "plan" | "acceptEdits" | "dontAsk",
|
|
703
|
-
"additionalDirectories": ["/extra/dir"]
|
|
704
|
-
}
|
|
705
|
-
}
|
|
706
|
-
\`\`\`
|
|
707
|
-
|
|
708
|
-
**Permission Rule Syntax:**
|
|
709
|
-
- Exact match: \`"Bash(npm run test)"\`
|
|
710
|
-
- Prefix wildcard: \`"Bash(git:*)"\` - matches \`git status\`, \`git commit\`, etc.
|
|
711
|
-
- Tool only: \`"Read"\` - allows all Read operations
|
|
712
|
-
|
|
713
|
-
### Environment Variables
|
|
714
|
-
\`\`\`json
|
|
715
|
-
{
|
|
716
|
-
"env": {
|
|
717
|
-
"DEBUG": "true",
|
|
718
|
-
"MY_API_KEY": "value"
|
|
719
|
-
}
|
|
720
|
-
}
|
|
721
|
-
\`\`\`
|
|
722
|
-
|
|
723
|
-
### Model & Agent
|
|
724
|
-
\`\`\`json
|
|
725
|
-
{
|
|
726
|
-
"model": "sonnet", // or "opus", "haiku", full model ID
|
|
727
|
-
"agent": "agent-name",
|
|
728
|
-
"alwaysThinkingEnabled": true
|
|
729
|
-
}
|
|
730
|
-
\`\`\`
|
|
731
|
-
|
|
732
|
-
### Attribution (Commits & PRs)
|
|
733
|
-
\`\`\`json
|
|
734
|
-
{
|
|
735
|
-
"attribution": {
|
|
736
|
-
"commit": "Custom commit trailer text",
|
|
737
|
-
"pr": "Custom PR description text"
|
|
738
|
-
}
|
|
739
|
-
}
|
|
740
|
-
\`\`\`
|
|
741
|
-
Set \`commit\` or \`pr\` to empty string \`""\` to hide that attribution.
|
|
742
|
-
|
|
743
|
-
### MCP Server Management
|
|
744
|
-
\`\`\`json
|
|
745
|
-
{
|
|
746
|
-
"enableAllProjectMcpServers": true,
|
|
747
|
-
"enabledMcpjsonServers": ["server1", "server2"],
|
|
748
|
-
"disabledMcpjsonServers": ["blocked-server"]
|
|
749
|
-
}
|
|
750
|
-
\`\`\`
|
|
751
|
-
|
|
752
|
-
### Plugins
|
|
753
|
-
\`\`\`json
|
|
754
|
-
{
|
|
755
|
-
"enabledPlugins": {
|
|
756
|
-
"formatter@anthropic-tools": true
|
|
757
|
-
}
|
|
758
|
-
}
|
|
759
|
-
\`\`\`
|
|
760
|
-
Plugin syntax: \`plugin-name@source\` where source is \`claude-code-marketplace\`, \`claude-plugins-official\`, or \`builtin\`.
|
|
761
|
-
|
|
762
|
-
### Other Settings
|
|
763
|
-
- \`language\`: Preferred response language (e.g., "japanese")
|
|
764
|
-
- \`cleanupPeriodDays\`: Days to keep transcripts (default: 30; 0 disables persistence entirely)
|
|
765
|
-
- \`respectGitignore\`: Whether to respect .gitignore (default: true)
|
|
766
|
-
- \`spinnerTipsEnabled\`: Show tips in spinner
|
|
767
|
-
- \`spinnerVerbs\`: Customize spinner verbs (\`{ "mode": "append" | "replace", "verbs": [...] }\`)
|
|
768
|
-
- \`spinnerTipsOverride\`: Override spinner tips (\`{ "excludeDefault": true, "tips": ["Custom tip"] }\`)
|
|
769
|
-
- \`syntaxHighlightingDisabled\`: Disable diff highlighting
|
|
770
|
-
`,WB=`## Hooks Configuration
|
|
771
|
-
|
|
772
|
-
Hooks run commands at specific points in Claude Code's lifecycle.
|
|
773
|
-
|
|
774
|
-
### Hook Structure
|
|
775
|
-
\`\`\`json
|
|
776
|
-
{
|
|
777
|
-
"hooks": {
|
|
778
|
-
"EVENT_NAME": [
|
|
779
|
-
{
|
|
780
|
-
"matcher": "ToolName|OtherTool",
|
|
781
|
-
"hooks": [
|
|
782
|
-
{
|
|
783
|
-
"type": "command",
|
|
784
|
-
"command": "your-command-here",
|
|
785
|
-
"timeout": 60,
|
|
786
|
-
"statusMessage": "Running..."
|
|
787
|
-
}
|
|
788
|
-
]
|
|
789
|
-
}
|
|
790
|
-
]
|
|
791
|
-
}
|
|
792
|
-
}
|
|
793
|
-
\`\`\`
|
|
794
|
-
|
|
795
|
-
### Hook Events
|
|
796
|
-
|
|
797
|
-
| Event | Matcher | Purpose |
|
|
798
|
-
|-------|---------|---------|
|
|
799
|
-
| PermissionRequest | Tool name | Run before permission prompt |
|
|
800
|
-
| PreToolUse | Tool name | Run before tool, can block |
|
|
801
|
-
| PostToolUse | Tool name | Run after successful tool |
|
|
802
|
-
| PostToolUseFailure | Tool name | Run after tool fails |
|
|
803
|
-
| Notification | Notification type | Run on notifications |
|
|
804
|
-
| Stop | - | Run when Claude stops (including clear, resume, compact) |
|
|
805
|
-
| PreCompact | "manual"/"auto" | Before compaction |
|
|
806
|
-
| PostCompact | "manual"/"auto" | After compaction (receives summary) |
|
|
807
|
-
| UserPromptSubmit | - | When user submits |
|
|
808
|
-
| SessionStart | - | When session starts |
|
|
809
|
-
|
|
810
|
-
**Common tool matchers:** \`Bash\`, \`Write\`, \`Edit\`, \`Read\`, \`Glob\`, \`Grep\`
|
|
811
|
-
|
|
812
|
-
### Hook Types
|
|
813
|
-
|
|
814
|
-
**1. Command Hook** - Runs a shell command:
|
|
815
|
-
\`\`\`json
|
|
816
|
-
{ "type": "command", "command": "prettier --write $FILE", "timeout": 30 }
|
|
817
|
-
\`\`\`
|
|
818
|
-
|
|
819
|
-
**2. Prompt Hook** - Evaluates a condition with LLM:
|
|
820
|
-
\`\`\`json
|
|
821
|
-
{ "type": "prompt", "prompt": "Is this safe? $ARGUMENTS" }
|
|
822
|
-
\`\`\`
|
|
823
|
-
Only available for tool events: PreToolUse, PostToolUse, PermissionRequest.
|
|
824
|
-
|
|
825
|
-
**3. Agent Hook** - Runs an agent with tools:
|
|
826
|
-
\`\`\`json
|
|
827
|
-
{ "type": "agent", "prompt": "Verify tests pass: $ARGUMENTS" }
|
|
828
|
-
\`\`\`
|
|
829
|
-
Only available for tool events: PreToolUse, PostToolUse, PermissionRequest.
|
|
830
|
-
|
|
831
|
-
### Hook Input (stdin JSON)
|
|
832
|
-
\`\`\`json
|
|
833
|
-
{
|
|
834
|
-
"session_id": "abc123",
|
|
835
|
-
"tool_name": "Write",
|
|
836
|
-
"tool_input": { "file_path": "/path/to/file.txt", "content": "..." },
|
|
837
|
-
"tool_response": { "success": true } // PostToolUse only
|
|
838
|
-
}
|
|
839
|
-
\`\`\`
|
|
840
|
-
|
|
841
|
-
### Hook JSON Output
|
|
842
|
-
|
|
843
|
-
Hooks can return JSON to control behavior:
|
|
844
|
-
|
|
845
|
-
\`\`\`json
|
|
846
|
-
{
|
|
847
|
-
"systemMessage": "Warning shown to user in UI",
|
|
848
|
-
"continue": false,
|
|
849
|
-
"stopReason": "Message shown when blocking",
|
|
850
|
-
"suppressOutput": false,
|
|
851
|
-
"decision": "block",
|
|
852
|
-
"reason": "Explanation for decision",
|
|
853
|
-
"hookSpecificOutput": {
|
|
854
|
-
"hookEventName": "PostToolUse",
|
|
855
|
-
"additionalContext": "Context injected back to model"
|
|
856
|
-
}
|
|
857
|
-
}
|
|
858
|
-
\`\`\`
|
|
859
|
-
|
|
860
|
-
**Fields:**
|
|
861
|
-
- \`systemMessage\` - Display a message to the user (all hooks)
|
|
862
|
-
- \`continue\` - Set to \`false\` to block/stop (default: true)
|
|
863
|
-
- \`stopReason\` - Message shown when \`continue\` is false
|
|
864
|
-
- \`suppressOutput\` - Hide stdout from transcript (default: false)
|
|
865
|
-
- \`decision\` - "block" for PostToolUse/Stop/UserPromptSubmit hooks (deprecated for PreToolUse, use hookSpecificOutput.permissionDecision instead)
|
|
866
|
-
- \`reason\` - Explanation for decision
|
|
867
|
-
- \`hookSpecificOutput\` - Event-specific output (must include \`hookEventName\`):
|
|
868
|
-
- \`additionalContext\` - Text injected into model context
|
|
869
|
-
- \`permissionDecision\` - "allow", "deny", or "ask" (PreToolUse only)
|
|
870
|
-
- \`permissionDecisionReason\` - Reason for the permission decision (PreToolUse only)
|
|
871
|
-
- \`updatedInput\` - Modified tool input (PreToolUse only)
|
|
872
|
-
|
|
873
|
-
### Common Patterns
|
|
874
|
-
|
|
875
|
-
**Auto-format after writes:**
|
|
876
|
-
\`\`\`json
|
|
877
|
-
{
|
|
878
|
-
"hooks": {
|
|
879
|
-
"PostToolUse": [{
|
|
880
|
-
"matcher": "Write|Edit",
|
|
881
|
-
"hooks": [{
|
|
882
|
-
"type": "command",
|
|
883
|
-
"command": "jq -r '.tool_response.filePath // .tool_input.file_path' | { read -r f; prettier --write \\"$f\\"; } 2>/dev/null || true"
|
|
884
|
-
}]
|
|
885
|
-
}]
|
|
886
|
-
}
|
|
887
|
-
}
|
|
888
|
-
\`\`\`
|
|
889
|
-
|
|
890
|
-
**Log all bash commands:**
|
|
891
|
-
\`\`\`json
|
|
892
|
-
{
|
|
893
|
-
"hooks": {
|
|
894
|
-
"PreToolUse": [{
|
|
895
|
-
"matcher": "Bash",
|
|
896
|
-
"hooks": [{
|
|
897
|
-
"type": "command",
|
|
898
|
-
"command": "jq -r '.tool_input.command' >> ~/.claudin/bash-log.txt"
|
|
899
|
-
}]
|
|
900
|
-
}]
|
|
901
|
-
}
|
|
902
|
-
}
|
|
903
|
-
\`\`\`
|
|
904
|
-
|
|
905
|
-
**Stop hook that displays message to user:**
|
|
906
|
-
|
|
907
|
-
Command must output JSON with \`systemMessage\` field:
|
|
908
|
-
\`\`\`bash
|
|
909
|
-
# Example command that outputs: {"systemMessage": "Session complete!"}
|
|
910
|
-
echo '{"systemMessage": "Session complete!"}'
|
|
911
|
-
\`\`\`
|
|
912
|
-
|
|
913
|
-
**Run tests after code changes:**
|
|
914
|
-
\`\`\`json
|
|
915
|
-
{
|
|
916
|
-
"hooks": {
|
|
917
|
-
"PostToolUse": [{
|
|
918
|
-
"matcher": "Write|Edit",
|
|
919
|
-
"hooks": [{
|
|
920
|
-
"type": "command",
|
|
921
|
-
"command": "jq -r '.tool_input.file_path // .tool_response.filePath' | grep -E '\\\\.(ts|js)$' && npm test || true"
|
|
922
|
-
}]
|
|
923
|
-
}]
|
|
924
|
-
}
|
|
925
|
-
}
|
|
926
|
-
\`\`\`
|
|
927
|
-
`,YB=`## Constructing a Hook (with verification)
|
|
928
|
-
|
|
929
|
-
Given an event, matcher, target file, and desired behavior, follow this flow. Each step catches a different failure class — a hook that silently does nothing is worse than no hook.
|
|
930
|
-
|
|
931
|
-
1. **Dedup check.** Read the target file. If a hook already exists on the same event+matcher, show the existing command and ask: keep it, replace it, or add alongside.
|
|
932
|
-
|
|
933
|
-
2. **Construct the command for THIS project — don't assume.** The hook receives JSON on stdin. Build a command that:
|
|
934
|
-
- Extracts any needed payload safely — use \`jq -r\` into a quoted variable or \`{ read -r f; ... "$f"; }\`, NOT unquoted \`| xargs\` (splits on spaces)
|
|
935
|
-
- Invokes the underlying tool the way this project runs it (npx/bunx/yarn/pnpm? Makefile target? globally-installed?)
|
|
936
|
-
- Skips inputs the tool doesn't handle (formatters often have \`--ignore-unknown\`; if not, guard by extension)
|
|
937
|
-
- Stays RAW for now — no \`|| true\`, no stderr suppression. You'll wrap it after the pipe-test passes.
|
|
938
|
-
|
|
939
|
-
3. **Pipe-test the raw command.** Synthesize the stdin payload the hook will receive and pipe it directly:
|
|
940
|
-
- \`Pre|PostToolUse\` on \`Write|Edit\`: \`echo '{"tool_name":"Edit","tool_input":{"file_path":"<a real file from this repo>"}}' | <cmd>\`
|
|
941
|
-
- \`Pre|PostToolUse\` on \`Bash\`: \`echo '{"tool_name":"Bash","tool_input":{"command":"ls"}}' | <cmd>\`
|
|
942
|
-
- \`Stop\`/\`UserPromptSubmit\`/\`SessionStart\`: most commands don't read stdin, so \`echo '{}' | <cmd>\` suffices
|
|
943
|
-
|
|
944
|
-
Check exit code AND side effect (file actually formatted, test actually ran). If it fails you get a real error — fix (wrong package manager? tool not installed? jq path wrong?) and retest. Once it works, wrap with \`2>/dev/null || true\` (unless the user wants a blocking check).
|
|
945
|
-
|
|
946
|
-
4. **Write the JSON.** Merge into the target file (schema shape in the "Hook Structure" section above). If this creates \`.claudin/settings.local.json\` for the first time, add it to .gitignore — the Write tool doesn't auto-gitignore it.
|
|
947
|
-
|
|
948
|
-
5. **Validate syntax + schema in one shot:**
|
|
949
|
-
|
|
950
|
-
\`jq -e '.hooks.<event>[] | select(.matcher == "<matcher>") | .hooks[] | select(.type == "command") | .command' <target-file>\`
|
|
951
|
-
|
|
952
|
-
Exit 0 + prints your command = correct. Exit 4 = matcher doesn't match. Exit 5 = malformed JSON or wrong nesting. A broken settings.json silently disables ALL settings from that file — fix any pre-existing malformation too.
|
|
953
|
-
|
|
954
|
-
6. **Prove the hook fires** — only for \`Pre|PostToolUse\` on a matcher you can trigger in-turn (\`Write|Edit\` via Edit, \`Bash\` via Bash). \`Stop\`/\`UserPromptSubmit\`/\`SessionStart\` fire outside this turn — skip to step 7.
|
|
955
|
-
|
|
956
|
-
For a **formatter** on \`PostToolUse\`/\`Write|Edit\`: introduce a detectable violation via Edit (two consecutive blank lines, bad indentation, missing semicolon — something this formatter corrects; NOT trailing whitespace, Edit strips that before writing), re-read, confirm the hook **fixed** it. For **anything else**: temporarily prefix the command in settings.json with \`echo "$(date) hook fired" >> /tmp/claude-hook-check.txt; \`, trigger the matching tool (Edit for \`Write|Edit\`, a harmless \`true\` for \`Bash\`), read the sentinel file.
|
|
957
|
-
|
|
958
|
-
**Always clean up** — revert the violation, strip the sentinel prefix — whether the proof passed or failed.
|
|
959
|
-
|
|
960
|
-
**If proof fails but pipe-test passed and \`jq -e\` passed**: the settings watcher isn't watching \`.claudin/\` — it only watches directories that had a settings file when this session started. The hook is written correctly. Tell the user to open \`/hooks\` once (reloads config) or restart — you can't do this yourself; \`/hooks\` is a user UI menu and opening it ends this turn.
|
|
961
|
-
|
|
962
|
-
7. **Handoff.** Tell the user the hook is live (or needs \`/hooks\`/restart per the watcher caveat). Point them at \`/hooks\` to review, edit, or disable it later. The UI only shows "Ran N hooks" if a hook errors or is slow — silent success is invisible by design.
|
|
963
|
-
`,uC=`# Update Config Skill
|
|
964
|
-
|
|
965
|
-
Modify Claude Code configuration by updating settings.json files.
|
|
966
|
-
|
|
967
|
-
## When Hooks Are Required (Not Memory)
|
|
968
|
-
|
|
969
|
-
If the user wants something to happen automatically in response to an EVENT, they need a **hook** configured in settings.json. Memory/preferences cannot trigger automated actions.
|
|
970
|
-
|
|
971
|
-
**These require hooks:**
|
|
972
|
-
- "Before compacting, ask me what to preserve" → PreCompact hook
|
|
973
|
-
- "After writing files, run prettier" → PostToolUse hook with Write|Edit matcher
|
|
974
|
-
- "When I run bash commands, log them" → PreToolUse hook with Bash matcher
|
|
975
|
-
- "Always run tests after code changes" → PostToolUse hook
|
|
976
|
-
|
|
977
|
-
**Hook events:** PreToolUse, PostToolUse, PreCompact, PostCompact, Stop, Notification, SessionStart
|
|
978
|
-
|
|
979
|
-
## CRITICAL: Read Before Write
|
|
980
|
-
|
|
981
|
-
**Always read the existing settings file before making changes.** Merge new settings with existing ones - never replace the entire file.
|
|
982
|
-
|
|
983
|
-
## CRITICAL: Use AskUserQuestion for Ambiguity
|
|
984
|
-
|
|
985
|
-
When the user's request is ambiguous, use AskUserQuestion to clarify:
|
|
986
|
-
- Which settings file to modify (user/project/local)
|
|
987
|
-
- Whether to add to existing arrays or replace them
|
|
988
|
-
- Specific values when multiple options exist
|
|
989
|
-
|
|
990
|
-
## Decision: Config Tool vs Direct Edit
|
|
991
|
-
|
|
992
|
-
**Use the Config tool** for these simple settings:
|
|
993
|
-
- \`theme\`, \`editorMode\`, \`verbose\`, \`model\`
|
|
994
|
-
- \`language\`, \`alwaysThinkingEnabled\`
|
|
995
|
-
- \`permissions.defaultMode\`
|
|
996
|
-
|
|
997
|
-
**Edit settings.json directly** for:
|
|
998
|
-
- Hooks (PreToolUse, PostToolUse, etc.)
|
|
999
|
-
- Complex permission rules (allow/deny arrays)
|
|
1000
|
-
- Environment variables
|
|
1001
|
-
- MCP server configuration
|
|
1002
|
-
- Plugin configuration
|
|
1003
|
-
|
|
1004
|
-
## Workflow
|
|
1005
|
-
|
|
1006
|
-
1. **Clarify intent** - Ask if the request is ambiguous
|
|
1007
|
-
2. **Read existing file** - Use Read tool on the target settings file
|
|
1008
|
-
3. **Merge carefully** - Preserve existing settings, especially arrays
|
|
1009
|
-
4. **Edit file** - Use Edit tool (if file doesn't exist, ask user to create it first)
|
|
1010
|
-
5. **Confirm** - Tell user what was changed
|
|
1011
|
-
|
|
1012
|
-
## Merging Arrays (Important!)
|
|
1013
|
-
|
|
1014
|
-
When adding to permission arrays or hook arrays, **merge with existing**, don't replace:
|
|
1015
|
-
|
|
1016
|
-
**WRONG** (replaces existing permissions):
|
|
1017
|
-
\`\`\`json
|
|
1018
|
-
{ "permissions": { "allow": ["Bash(npm:*)"] } }
|
|
1019
|
-
\`\`\`
|
|
1020
|
-
|
|
1021
|
-
**RIGHT** (preserves existing + adds new):
|
|
1022
|
-
\`\`\`json
|
|
1023
|
-
{
|
|
1024
|
-
"permissions": {
|
|
1025
|
-
"allow": [
|
|
1026
|
-
"Bash(git:*)", // existing
|
|
1027
|
-
"Edit(.claudin)", // existing
|
|
1028
|
-
"Bash(npm:*)" // new
|
|
1029
|
-
]
|
|
1030
|
-
}
|
|
1031
|
-
}
|
|
1032
|
-
\`\`\`
|
|
1033
|
-
|
|
1034
|
-
${SC}
|
|
1035
|
-
|
|
1036
|
-
${WB}
|
|
1037
|
-
|
|
1038
|
-
${YB}
|
|
1039
|
-
|
|
1040
|
-
## Example Workflows
|
|
1041
|
-
|
|
1042
|
-
### Adding a Hook
|
|
1043
|
-
|
|
1044
|
-
User: "Format my code after Claude writes it"
|
|
1045
|
-
|
|
1046
|
-
1. **Clarify**: Which formatter? (prettier, gofmt, etc.)
|
|
1047
|
-
2. **Read**: \`.claudin/settings.json\` (or create if missing)
|
|
1048
|
-
3. **Merge**: Add to existing hooks, don't replace
|
|
1049
|
-
4. **Result**:
|
|
1050
|
-
\`\`\`json
|
|
1051
|
-
{
|
|
1052
|
-
"hooks": {
|
|
1053
|
-
"PostToolUse": [{
|
|
1054
|
-
"matcher": "Write|Edit",
|
|
1055
|
-
"hooks": [{
|
|
1056
|
-
"type": "command",
|
|
1057
|
-
"command": "jq -r '.tool_response.filePath // .tool_input.file_path' | { read -r f; prettier --write \\"$f\\"; } 2>/dev/null || true"
|
|
1058
|
-
}]
|
|
1059
|
-
}]
|
|
1060
|
-
}
|
|
1061
|
-
}
|
|
1062
|
-
\`\`\`
|
|
1063
|
-
|
|
1064
|
-
### Adding Permissions
|
|
1065
|
-
|
|
1066
|
-
User: "Allow npm commands without prompting"
|
|
1067
|
-
|
|
1068
|
-
1. **Read**: Existing permissions
|
|
1069
|
-
2. **Merge**: Add \`Bash(npm:*)\` to allow array
|
|
1070
|
-
3. **Result**: Combined with existing allows
|
|
1071
|
-
|
|
1072
|
-
### Environment Variables
|
|
1073
|
-
|
|
1074
|
-
User: "Set DEBUG=true"
|
|
1075
|
-
|
|
1076
|
-
1. **Decide**: User settings (global) or project settings?
|
|
1077
|
-
2. **Read**: Target file
|
|
1078
|
-
3. **Merge**: Add to env object
|
|
1079
|
-
\`\`\`json
|
|
1080
|
-
{ "env": { "DEBUG": "true" } }
|
|
1081
|
-
\`\`\`
|
|
1082
|
-
|
|
1083
|
-
## Common Mistakes to Avoid
|
|
1084
|
-
|
|
1085
|
-
1. **Replacing instead of merging** - Always preserve existing settings
|
|
1086
|
-
2. **Wrong file** - Ask user if scope is unclear
|
|
1087
|
-
3. **Invalid JSON** - Validate syntax after changes
|
|
1088
|
-
4. **Forgetting to read first** - Always read before write
|
|
1089
|
-
|
|
1090
|
-
## Troubleshooting Hooks
|
|
1091
|
-
|
|
1092
|
-
If a hook isn't running:
|
|
1093
|
-
1. **Check the settings file** - Read ~/.claudin/settings.json or .claudin/settings.json
|
|
1094
|
-
2. **Verify JSON syntax** - Invalid JSON silently fails
|
|
1095
|
-
3. **Check the matcher** - Does it match the tool name? (e.g., "Bash", "Write", "Edit")
|
|
1096
|
-
4. **Check hook type** - Is it "command", "prompt", or "agent"?
|
|
1097
|
-
5. **Test the command** - Run the hook command manually to see if it works
|
|
1098
|
-
6. **Use --debug** - Run \`claude --debug\` to see hook execution logs
|
|
1099
|
-
`;function XB(){$({name:"update-config",description:'Use this skill to configure the Claude Code harness via settings.json. Automated behaviors ("from now on when X", "each time X", "whenever X", "before/after X") require hooks configured in settings.json - the harness executes these, not Claude, so memory/preferences cannot fulfill them. Also use for: permissions ("allow X", "add permission", "move permission to"), env vars ("set X=Y"), hook troubleshooting, or any changes to settings.json/settings.local.json files. Examples: "allow npm commands", "add bq permission to global settings", "move permission to user settings", "set DEBUG=true", "when claude stops show X". For simple settings like theme/model, use Config tool.',allowedTools:["Read"],userInvocable:!0,async getPromptForCommand(I){if(I.startsWith("[hooks-only]")){let B=I.slice(12).trim(),Z=WB+`
|
|
1100
|
-
|
|
1101
|
-
`+YB;if(B)Z+=`
|
|
1102
|
-
|
|
1103
|
-
## Task
|
|
1104
|
-
|
|
1105
|
-
${B}`;return[{type:"text",text:Z}]}let G=kC(),g=uC;if(g+=`
|
|
1106
|
-
|
|
1107
|
-
## Full Settings JSON Schema
|
|
1108
|
-
|
|
1109
|
-
\`\`\`json
|
|
1110
|
-
${G}
|
|
1111
|
-
\`\`\``,I)g+=`
|
|
1112
|
-
|
|
1113
|
-
## User Request
|
|
1114
|
-
|
|
1115
|
-
${I}`;return[{type:"text",text:g}]}})}e();var MC=`**Verification is runtime observation.** You build the app, run it,
|
|
1116
|
-
drive it to where the changed code executes, and capture what you
|
|
1117
|
-
see. That capture is your evidence. Nothing else is.
|
|
1118
|
-
|
|
1119
|
-
**Don't run tests. Don't typecheck.** Running them here proves you
|
|
1120
|
-
can run CI — not that the change works. Not as a warm-up,
|
|
1121
|
-
not "just to be sure," not as a regression sweep after. The time
|
|
1122
|
-
goes to running the app instead.
|
|
1123
|
-
|
|
1124
|
-
**Don't import-and-call.** \`import { foo } from './src/...'\` then
|
|
1125
|
-
\`console.log(foo(x))\` is a unit test you wrote. The function did what
|
|
1126
|
-
the function does — you knew that from reading it. The app never ran.
|
|
1127
|
-
Whatever calls \`foo\` in the real codebase ends at a CLI, a socket, or
|
|
1128
|
-
a window. Go there.
|
|
1129
|
-
|
|
1130
|
-
## Find the change
|
|
1131
|
-
|
|
1132
|
-
The scope is what you're verifying — usually a diff, sometimes just
|
|
1133
|
-
"does X work." In a git repo, establish the full range (a branch may
|
|
1134
|
-
be many commits, or the change may still be uncommitted):
|
|
1135
|
-
|
|
1136
|
-
\`\`\`bash
|
|
1137
|
-
git log --oneline @{u}.. # count commits (if upstream set)
|
|
1138
|
-
git diff @{u}.. --stat # full range, not HEAD~1
|
|
1139
|
-
git diff origin/HEAD... --stat # no upstream: committed vs base
|
|
1140
|
-
git diff HEAD --stat # uncommitted: working tree vs HEAD
|
|
1141
|
-
gh pr diff # if in a PR context
|
|
1142
|
-
\`\`\`
|
|
1143
|
-
|
|
1144
|
-
State the commit count. Large diff truncating? Redirect to a file
|
|
1145
|
-
then Read it. Repo but no diff from any of these → say so, stop.
|
|
1146
|
-
**No repo → the scope is whatever the user named; ask if they
|
|
1147
|
-
didn't.**
|
|
1148
|
-
|
|
1149
|
-
**The diff is ground truth. Any description is a claim about it.**
|
|
1150
|
-
Read both. If they disagree, that's a finding.
|
|
1151
|
-
|
|
1152
|
-
## Surface
|
|
1153
|
-
|
|
1154
|
-
The surface is where a user — human or programmatic — meets the
|
|
1155
|
-
change. That's where you observe.
|
|
1156
|
-
|
|
1157
|
-
| Change reaches | Surface | You |
|
|
1158
|
-
|---|---|---|
|
|
1159
|
-
| CLI / TUI | terminal | type the command, capture the pane — [example](examples/cli.md) |
|
|
1160
|
-
| Server / API | socket | send the request, capture the response — [example](examples/server.md) |
|
|
1161
|
-
| GUI | pixels | drive it under xvfb/Playwright, screenshot |
|
|
1162
|
-
| Library | package boundary | sample code through the public export — \`import pkg\`, not \`import ./src/...\` |
|
|
1163
|
-
| Prompt / agent config | the agent | run the agent, capture its behavior |
|
|
1164
|
-
| CI workflow | Actions | dispatch it, read the run |
|
|
1165
|
-
|
|
1166
|
-
**Internal function? Not a surface.** Something in the repo calls it
|
|
1167
|
-
and that caller ends at one of the rows above. Follow it there. A
|
|
1168
|
-
bash security gate's surface isn't the function's return value — it's
|
|
1169
|
-
the CLI prompting or auto-allowing when you type the command.
|
|
1170
|
-
|
|
1171
|
-
**No runtime surface at all** — docs-only, type declarations with no
|
|
1172
|
-
emit, build config that produces no behavioral diff — report
|
|
1173
|
-
**SKIP — no runtime surface: (reason).** Don't run tests to fill
|
|
1174
|
-
the space.
|
|
1175
|
-
|
|
1176
|
-
**Tests in the diff are the author's evidence, not a surface.** CI
|
|
1177
|
-
runs them. You'd be re-running CI. Tests-only PR → SKIP, one line.
|
|
1178
|
-
Mixed src+tests → verify the src, ignore the test files. Reading a
|
|
1179
|
-
test to learn what to check is fine — it's a spec. But then go run
|
|
1180
|
-
the app. Checking that assertions match source is code review.
|
|
1181
|
-
|
|
1182
|
-
## Get a handle
|
|
1183
|
-
|
|
1184
|
-
**Check \`.claudin/skills/\` first — even if you already know how to
|
|
1185
|
-
build and run.** A matching \`verifier-*\` skill is the repo's
|
|
1186
|
-
evidence-capture protocol: it wraps the session so a reviewer can
|
|
1187
|
-
replay what you saw (recording, screenshots). Drive the surface
|
|
1188
|
-
without it and you get a verdict with no replay.
|
|
1189
|
-
|
|
1190
|
-
\`\`\`bash
|
|
1191
|
-
ls .claudin/skills/
|
|
1192
|
-
\`\`\`
|
|
1193
|
-
|
|
1194
|
-
- **\`verifier-*\` matching your surface** (CLI verifier for a CLI
|
|
1195
|
-
change, etc.) → invoke it with the Skill tool and follow its
|
|
1196
|
-
setup. Mismatched surface → skip that one, try the next. Stale
|
|
1197
|
-
verifier (fails on mechanics unrelated to the change) → ask the
|
|
1198
|
-
user whether to patch it; don't FAIL the change for verifier rot.
|
|
1199
|
-
- **\`run-*\` but no matching verifier** → use its build/launch
|
|
1200
|
-
primitives as your handle.
|
|
1201
|
-
- **Neither** → cold start from README/package.json/Makefile. Timebox
|
|
1202
|
-
~15min. Stuck → BLOCKED with exactly where it stopped. Got through →
|
|
1203
|
-
note the working build/launch recipe so it can become a
|
|
1204
|
-
\`verifier-*\` skill.
|
|
1205
|
-
|
|
1206
|
-
## Drive it
|
|
1207
|
-
|
|
1208
|
-
Smallest path that makes the changed code execute:
|
|
1209
|
-
|
|
1210
|
-
- Changed a flag? Run with it.
|
|
1211
|
-
- Changed a handler? Hit that route.
|
|
1212
|
-
- Changed error handling? Trigger the error.
|
|
1213
|
-
- Changed an internal function? Find the CLI command / request / render
|
|
1214
|
-
that reaches it. Run that.
|
|
1215
|
-
|
|
1216
|
-
**Read your plan back before running.** If every step is build /
|
|
1217
|
-
typecheck / run test file — you've planned a CI rerun, not a
|
|
1218
|
-
verification. Find a step that reaches the surface or report BLOCKED.
|
|
1219
|
-
|
|
1220
|
-
**The verdict is table stakes. Your observations are the signal.**
|
|
1221
|
-
A PASS with three sharp "hey, I noticed…" lines is worth more than a
|
|
1222
|
-
bare PASS. You're the only reviewer who actually *ran* the thing —
|
|
1223
|
-
anything that made you pause, work around, or go "huh" is information
|
|
1224
|
-
the author doesn't have. Don't filter for "is this a bug." Filter for
|
|
1225
|
-
"would I mention this if they were sitting next to me."
|
|
1226
|
-
|
|
1227
|
-
**End-to-end, through the real interface.** Pieces passing in
|
|
1228
|
-
isolation doesn't mean the flow works — seams are where bugs hide.
|
|
1229
|
-
If users click buttons, test by clicking buttons, not by curling the
|
|
1230
|
-
API underneath.
|
|
1231
|
-
|
|
1232
|
-
**Destructive path?** If the change touches code that deletes,
|
|
1233
|
-
publishes, sends, or writes outside the workspace and there's no
|
|
1234
|
-
dry-run or safe target, don't drive it live. Verify what you can
|
|
1235
|
-
around it and say which path you didn't exercise and why.
|
|
1236
|
-
|
|
1237
|
-
## Push on it
|
|
1238
|
-
|
|
1239
|
-
The claim checked out — that's the first half. Confirming is step
|
|
1240
|
-
one, not the job. The description is what the author intended;
|
|
1241
|
-
your value is what they didn't.
|
|
1242
|
-
|
|
1243
|
-
You know exactly what changed. Probe *around* it, at the same
|
|
1244
|
-
surface you just drove:
|
|
1245
|
-
|
|
1246
|
-
- **New flag / option** → empty value, passed twice, combined with a
|
|
1247
|
-
conflicting flag, typo'd (does the error name it?)
|
|
1248
|
-
- **New handler / route** → wrong method, malformed body, missing
|
|
1249
|
-
required field, oversized payload
|
|
1250
|
-
- **Changed error path** → the adjacent errors it didn't touch —
|
|
1251
|
-
did the refactor catch them too, or only the one in the diff?
|
|
1252
|
-
- **Interactive / TUI** → Ctrl-C mid-op, resize the pane, paste
|
|
1253
|
-
garbage, rapid-fire the key, Esc at the wrong moment
|
|
1254
|
-
- **State / persistence** → do it twice, do it with stale state
|
|
1255
|
-
underneath, do it in two sessions at once
|
|
1256
|
-
- **Wander** → what's adjacent? What looked off while you were
|
|
1257
|
-
confirming? Go back to it.
|
|
1258
|
-
|
|
1259
|
-
These aren't a checklist — pick the ones the change points at. Stop
|
|
1260
|
-
when you've covered the obvious adjacents or hit something worth a
|
|
1261
|
-
⚠️. A probe that finds nothing is still a step: "\uD83D\uDD0D passed \`--from ''\`
|
|
1262
|
-
→ clean \`error: --from requires a value\`, exit 2." That the author
|
|
1263
|
-
didn't test it is exactly why it's worth knowing it holds.
|
|
1264
|
-
|
|
1265
|
-
Still not a test run. You're at the surface, typing what a user
|
|
1266
|
-
would type wrong.
|
|
1267
|
-
|
|
1268
|
-
## Capture
|
|
1269
|
-
|
|
1270
|
-
Stdout, response bodies, screenshots, pane dumps. Captured output is
|
|
1271
|
-
evidence; your memory isn't. Something unexpected? Don't route around
|
|
1272
|
-
it — capture, note, decide if it's the change or the environment.
|
|
1273
|
-
Unrelated breakage is a finding, not noise.
|
|
1274
|
-
|
|
1275
|
-
Shared process state (tmux, ports, lockfiles) — isolate. \`tmux -L
|
|
1276
|
-
name\`, bind \`:0\`, \`mktemp -d\`. You share a namespace with your host.
|
|
1277
|
-
|
|
1278
|
-
## Report
|
|
1279
|
-
|
|
1280
|
-
Inline, final message:
|
|
1281
|
-
|
|
1282
|
-
\`\`\`
|
|
1283
|
-
## Verification: <one-line what changed>
|
|
1284
|
-
|
|
1285
|
-
**Verdict:** PASS | FAIL | BLOCKED | SKIP
|
|
1286
|
-
|
|
1287
|
-
**Claim:** <what it's supposed to do — your read of the diff and/or
|
|
1288
|
-
the stated claim; note any mismatch>
|
|
1289
|
-
|
|
1290
|
-
**Method:** <how you got a handle — which verifier/run skill, or
|
|
1291
|
-
cold start; what you launched>
|
|
1292
|
-
|
|
1293
|
-
### Steps
|
|
1294
|
-
|
|
1295
|
-
Each step is one thing you did to the **running app** and what it
|
|
1296
|
-
showed. Build/install/checkout are setup, not steps. Test runs and
|
|
1297
|
-
typecheck don't belong here — they're CI's output.
|
|
1298
|
-
|
|
1299
|
-
1. ✅/❌/⚠️/\uD83D\uDD0D <what you did to the running app> → <what you observed>
|
|
1300
|
-
<evidence: the app's own output — pane capture, response body,
|
|
1301
|
-
screenshot path>
|
|
1302
|
-
|
|
1303
|
-
\uD83D\uDD0D marks a probe — a step off the claim's happy path, trying to
|
|
1304
|
-
break it. At least one. A Steps list that's all ✅ and no \uD83D\uDD0D is a
|
|
1305
|
-
happy-path replay: still PASS, but you stopped at the first half.
|
|
1306
|
-
|
|
1307
|
-
**Screenshot / sample:** <the one frame a reviewer looks at to see
|
|
1308
|
-
the feature — image path for GUI/TUI, code block for library/API;
|
|
1309
|
-
omit for build/types-only>
|
|
1310
|
-
|
|
1311
|
-
### Findings
|
|
1312
|
-
<Things you noticed. Not just bugs — friction, surprises, anything
|
|
1313
|
-
a first-time user would trip on. "Took three tries to find the right
|
|
1314
|
-
flag." "Error message on typo was unhelpful." "Default seems odd for
|
|
1315
|
-
the common case." "Works, but slower than I expected." Lower the bar:
|
|
1316
|
-
if it made you pause, it goes here. But the pause has to be yours,
|
|
1317
|
-
from running the app — not from reading the PR page. A red CI check,
|
|
1318
|
-
a review comment, someone else's bot: visible to anyone already, and
|
|
1319
|
-
you relaying it isn't an observation. Claim/diff mismatch, pre-existing
|
|
1320
|
-
breakage, and env notes also belong.
|
|
1321
|
-
|
|
1322
|
-
Each probe gets a line here even when it held — "\uD83D\uDD0D empty \`--from\`
|
|
1323
|
-
→ clean error" tells the author what *was* covered, which they
|
|
1324
|
-
can't see from a bare PASS.
|
|
1325
|
-
|
|
1326
|
-
Lead with ⚠️ for lines worth interrupting the reviewer for; plain
|
|
1327
|
-
bullets are context. Empty is fine if nothing stuck out — but nothing
|
|
1328
|
-
sticking out is itself rare.>
|
|
1329
|
-
\`\`\`
|
|
1330
|
-
|
|
1331
|
-
**Verdicts:**
|
|
1332
|
-
- **PASS** — you ran the app, the change did what it should at its
|
|
1333
|
-
surface. Not: tests pass, builds clean, code looks right.
|
|
1334
|
-
- **FAIL** — you ran it and it doesn't. Or it breaks something else.
|
|
1335
|
-
Or claim and diff disagree materially.
|
|
1336
|
-
- **BLOCKED** — couldn't reach a state where the change is observable.
|
|
1337
|
-
Build broke, env missing a dep, handle wouldn't come up. Not a
|
|
1338
|
-
verdict on the change. Say exactly where it stopped.
|
|
1339
|
-
- **SKIP** — no runtime surface exists. Docs-only, types-only,
|
|
1340
|
-
tests-only. Nothing went wrong; there's just nothing here to run.
|
|
1341
|
-
One line why.
|
|
1342
|
-
|
|
1343
|
-
No partial pass. "3 of 4 passed" is FAIL until 4 passes or is
|
|
1344
|
-
explained away.
|
|
1345
|
-
|
|
1346
|
-
**When in doubt, FAIL.** False PASS ships broken code; false FAIL
|
|
1347
|
-
costs one more human look. Ambiguous output is FAIL with the raw
|
|
1348
|
-
capture attached — don't interpret.`;function VB(){$({name:"verify",description:"Verify a change works by building the app, running it, driving it to the changed code, and capturing what you observe.",whenToUse:"When the user wants to confirm a fix/feature actually works at runtime (not just that tests pass).",userInvocable:!0,disableModelInvocation:!1,files:IB,async getPromptForCommand(){return[{type:"text",text:MC}]}})}function yB(){XB(),fg(),xg(),Ug(),wg(),ZB(),VB(),BB(),Dg(),GB()}async function PC(I){let{options:G,ctx:g,permissionMode:B,allowDangerouslySkipPermissions:Z,sessionId:C}=I;k("[STARTUP] Running setup()...");let b=Date.now(),{setup:y}=await import("./setup-0.6.2-vqm3xhrr.mjs"),h=void 0,H=hI();if(process.env.CLAUDE_CODE_ENTRYPOINT!=="local-agent")lg(),yB();let R=y(H,B,Z,g.worktreeEnabled,g.worktreeName,g.tmuxEnabled,C?lG(C):void 0,g.worktreePRNumber,h),d=g.worktreeEnabled?null:zI(H),c=g.worktreeEnabled?null:FI(H);return d?.catch(()=>{}),c?.catch(()=>{}),await R,k(`[STARTUP] setup() completed in ${Date.now()-b}ms`),{preSetupCwd:H,commandsPromise:d,agentDefsPromise:c}}async function TC(I){let{options:G,ctx:g,outputFormat:B,fallbackModel:Z,preSetupCwd:C,commandsPromise:b,agentDefsPromise:y}=I,h=!!G.replayUserMessages;if(vG())hB(),UB(),LB(),JB();let H=G.name?.trim();if(H)mB(H);let R=G.model==="default"?MG():G.model,d=Z==="default"?MG():Z,c=g.worktreeEnabled?hI():C;k("[STARTUP] Loading commands and agents...");let J=Date.now(),[V,F]=await Promise.all([b??zI(c),y??FI(c)]);return k(`[STARTUP] Commands and agents loaded in ${Date.now()-J}ms`),{effectiveReplayUserMessages:h,sessionNameArg:H,userSpecifiedModel:R,userSpecifiedFallbackModel:d,currentCwd:c,commands:V,agentDefinitionsResult:F}}async function pC(I,G){let{options:g,ctx:B,isNonInteractiveSession:Z,agentCli:C,agentsJson:b,userSpecifiedModel:y,agentDefinitionsResult:h}=I,{systemPrompt:H,appendSystemPrompt:R,inputPrompt:d}=I,{coordinatorModeModule:c,assistantModule:J}=G,V=[];if(b)try{let l=LG(b);if(l)V=jB(l,"flagSettings")}catch(l){GG(l)}let F=[...h.allAgents,...V],Q={...h,allAgents:F,activeAgents:NB(F)},K=C??RG().agent,Y;if(K){if(Y=Q.activeAgents.find((l)=>l.agentType===K),!Y)k(`Warning: agent "${K}" not found. Available agents: ${Q.activeAgents.map((l)=>l.agentType).join(", ")}. Using default behavior.`)}if(dB(Y?.agentType),Y)m("tengu_agent_flag",{agentType:KI(Y)?Y.agentType:"custom",...C&&{source:"cli"}});if(Y?.agentType)vB(Y.agentType);if(Z&&Y&&!H&&!KI(Y)){let l=Y.getSystemPrompt();if(l)H=l}if(Y?.initialPrompt){if(typeof d==="string")d=d?`${Y.initialPrompt}
|
|
1349
|
-
|
|
1350
|
-
${d}`:Y.initialPrompt;else if(!d)d=Y.initialPrompt}let N=y;if(!N&&Y?.model&&Y.model!=="inherit")N=uG(Y.model);HB(N),lB(RB()||null);let S=cB(),u=uG(S??MG()),U;if(qG()){let l=RI()?g.advisor:void 0;if(l){if(k(`[AdvisorTool] --advisor ${l}`),!FB(u))process.stderr.write(w.red(`Error: The model "${u}" does not support the advisor tool.
|
|
1351
|
-
`)),process.exit(1);let A=KB(uG(l));if(!zB(A))process.stderr.write(w.red(`Error: The model "${l}" cannot be used as an advisor.
|
|
1352
|
-
`)),process.exit(1)}if(U=RI()?l??QB():l,U)k(`[AdvisorTool] Advisor model: ${U}`)}if(BG()&&B.storedTeammateOpts?.agentId&&B.storedTeammateOpts?.agentName&&B.storedTeammateOpts?.teamName&&B.storedTeammateOpts?.agentType){let l=Q.activeAgents.find((A)=>A.agentType===B.storedTeammateOpts?.agentType);if(l){let A;if(l.source==="built-in")k(`[teammate] Built-in agent ${B.storedTeammateOpts.agentType} - skipping custom prompt (not supported)`);else A=l.getSystemPrompt();if(l.memory)m("tengu_agent_memory_loaded",{scope:l.memory,source:"teammate"});if(A){let X=`
|
|
1353
|
-
# Custom Agent Instructions
|
|
1354
|
-
${A}`;R=R?`${R}
|
|
1355
|
-
|
|
1356
|
-
${X}`:X}}else k(`[teammate] Custom agent ${B.storedTeammateOpts.agentType} not found in available agents`)}return KG(g),{agentDefinitions:Q,mainThreadAgentDefinition:Y,cliAgents:V,agentSetting:K,effectiveModel:N,initialMainLoopModel:S,resolvedInitialModel:u,advisorModel:U,systemPrompt:H,appendSystemPrompt:R,inputPrompt:d}}XG();wI();TB();iC();AB();OB();JG();oC();var fB=_C(fC(),1);EC();kB();async function uB(I,G){let{InvalidSettingsDialog:g}=await import("./InvalidSettingsDialog-0.6.2-fp9sq2qx.mjs");return DG(I,(B)=>cG(g,{settingsErrors:G.settingsErrors,onContinue:B,onExit:G.onExit}))}async function MB(I){let{TeleportResumeWrapper:G}=await import("./TeleportResumeWrapper-0.6.2-2n1ktp6n.mjs");return DG(I,(g)=>cG(G,{onComplete:g,onCancel:()=>g(null),source:"cliArg"}))}async function xB(I,G){let{TeleportRepoMismatchDialog:g}=await import("./TeleportRepoMismatchDialog-0.6.2-a3a7fv1a.mjs");return DG(I,(B)=>cG(g,{targetRepo:G.targetRepo,initialPaths:G.initialPaths,onSelectPath:B,onCancel:()=>B(null)}))}async function qB(I,G,g,B){let[Z,{ResumeConversation:C},{App:b}]=await Promise.all([g,import("./ResumeConversation-0.6.2-sc3b5r7q.mjs"),import("./App-0.6.2-81hq55t1.mjs")]);await IG(I,cG(b,{getFpsMetrics:G.getFpsMetrics,stats:G.stats,initialState:G.initialState,children:cG(SB,{children:cG(C,{...B,worktreePaths:Z})})}))}aC();async function nC(I){let{permissionMode:G,allowDangerouslySkipPermissions:g,commands:B,devChannels:Z,remoteControlOption:C,mainThreadAgentDefinition:b}=I,y=I.prompt,h=I.inputPrompt;CG("trust_onboarding_start");let H=aB(!1),R=H.getFpsMetrics,d=H.stats;CG("trust_render_ctx_ready");let{createRoot:c}=await import("./ink-0.6.2-dhg7s7qq.mjs");CG("trust_ink_imported");let J=await c(H.renderOptions);CG("trust_ink_root_created"),m("tengu_timer",{event:"startup",durationMs:Math.round(process.uptime()*1000)});let V=await _B(J,G,g,B,Z);CG("trust_setup_screens_done");let F=!1;if(V&&typeof y==="string"&&y.trim().toLowerCase()==="/login")y="";if(V)pB(),PB(),EB(),DB(),import("./trustedDevice-0.6.2-ab0ftpnm.mjs").then((K)=>{return K.clearTrustedDeviceToken(),K.enrollTrustedDevice()});try{let{getActiveProviderProfile:K,getProviderProfiles:Y}=await import("./providerProfiles-0.6.2-r9j184kz.mjs");if(!(Y().length>0||Boolean(K()))&&!V){let{showSetupDialog:S}=await import("./interactiveHelpers-0.6.2-h3c63932.mjs"),{ProviderManager:u}=await import("./ProviderManager-0.6.2-cp0pxj1c.mjs");await S(J,(U)=>fB.default.createElement(u,{mode:"first-run",onDone:()=>U()}))}}catch(K){k(`[provider-wizard] auto-wizard failed: ${K instanceof Error?K.message:String(K)}`)}try{let{tryGetActiveProvider:K}=await import("./activeProvider-0.6.2-w0ja3pnw.mjs");if(K()&&process.stdout.isTTY&&process.env.CLAUDIN_CLEAR_ON_START==="1"){let{clearTerminal:Y}=await import("./clearTerminal-0.6.2-qgg50hxe.mjs");process.stdout.write(Y)}}catch(K){k(`[startup-clear] failed: ${K instanceof Error?K.message:String(K)}`)}CG("trust_before_org_validation");let Q=await $B();if(CG("trust_after_org_validation"),!Q.valid)await a(J,Q.message);return{root:J,getFpsMetrics:R,stats:d,remoteControl:F,prompt:y,inputPrompt:h}}cW();XG();OB();pI();JG();mG();wI();BW();RW();JW();CW();WW();lW();EI();wB();iG();xG();dW();oB();r();HW();sC();bW();rC();vg();GW();hG();tC();NG();XW();eC();YW();IW();YI();gg();VW();ZW();yW();gW();async function KW(I){let{ctx:G,root:g,isNonInteractiveSession:B,dynamicMcpConfig:Z,mcpConfigPromise:C}=I;if(process.exitCode!==void 0)return k("Graceful shutdown initiated, skipping further initialization"),{exited:!0};if(YZ())XZ();if(!B){let{errors:J}=sB(),V=J.filter((Q)=>!Q.mcpErrorMetadata),F=HG()?.transport;if(V.length>0&&F!=="openai_compat"&&F!=="codex_responses"&&F!=="github_copilot")await uB(g,{settingsErrors:V,onExit:()=>zZ(1)})}let b=wG("tengu_cicada_nap_ms",0),y=VG().startupPrefetchedAt??0,h=zG()||b>0&&Date.now()-y<b;if(VZ(),IZ(),tB(),!h){let J=y>0?` last ran ${Math.round((Date.now()-y)/1000)}s ago`:"";if(k(`Starting background startup prefetches${J}`),BZ().catch((V)=>GG(V)),FZ(),hZ(),!wG("tengu_miraculo_the_bard",!1))GZ();else AI();if(b>0)UI((V)=>({...V,startupPrefetchedAt:Date.now()}))}else k(`Skipping startup prefetches, last ran ${Math.round((Date.now()-y)/1000)}s ago`),AI();if(!B){let{refreshExampleCommands:J}=await import("./exampleCommands-0.6.2-ts5qp1zd.mjs");J()}let{servers:H}=await C,R={...H,...Z},d={},c={};for(let[J,V]of Object.entries(R)){let F=V;if(F.type==="sdk")d[J]=F;else c[J]=F}return{exited:!1,allMcpConfigs:R,sdkMcpConfigs:d,regularMcpConfigs:c}}function hW(I,G){let{options:g,ctx:B,isNonInteractiveSession:Z,regularMcpConfigs:C,claudeaiConfigPromise:b,mainThreadAgentDefinition:y,resolvedInitialModel:h,initOnly:H,init:R,maintenance:d,prompt:c,inputPrompt:J,verbose:V,debug:F,debugToStderr:Q,print:K,outputFormat:Y,inputFormat:N,allowedTools:S,disallowedTools:u,allMcpConfigs:U,dangerouslySkipPermissions:l,permissionMode:A,allowDangerouslySkipPermissions:X,systemPrompt:z,appendSystemPrompt:O,toolPermissionContext:j,sessionNameArg:P}=I,{assistantModule:x,coordinatorModeModule:L}=G,v=Z?Promise.resolve({clients:[],tools:[],commands:[]}):mI(C),M=Z?Promise.resolve({clients:[],tools:[],commands:[]}):b.then((p)=>Object.keys(p).length>0?mI(p):{clients:[],tools:[],commands:[]}),q=Promise.all([v,M]).then(([p,YG])=>({clients:[...p.clients,...YG.clients],tools:vI([...p.tools,...YG.tools],"name"),commands:vI([...p.commands,...YG.commands],"name")})),T=H||R||d||Z||g.continue||g.resume?null:yZ("startup",{agentType:y?.agentType,model:h}),n=[];q.catch(()=>{});let _=[],D=[],gG=[],W=ZZ(),i=W!==!1?{type:"adaptive"}:{type:"disabled"};if(g.thinking==="adaptive"||g.thinking==="enabled")W=!0,i={type:"adaptive"};else if(g.thinking==="disabled")W=!1,i={type:"disabled"};else{let p=process.env.MAX_THINKING_TOKENS?parseInt(process.env.MAX_THINKING_TOKENS,10):g.maxThinkingTokens;if(p!==void 0){if(p>0)W=!0,i={type:"enabled",budgetTokens:p};else if(p===0)W=!1,i={type:"disabled"}}}return NI("info","started",{version:"99.0.0",is_native_binary:nB()}),iB(async()=>{NI("info","exited")}),jZ({hasInitialPrompt:Boolean(c),hasStdin:Boolean(J),verbose:V,debug:F,debugToStderr:Q,print:K??!1,outputFormat:Y??"text",inputFormat:N??"text",numAllowedTools:S.length,numDisallowedTools:u.length,mcpClientCount:Object.keys(U).length,worktreeEnabled:B.worktreeEnabled,skipWebFetchPreflight:RG().skipWebFetchPreflight,githubActionInputs:process.env.GITHUB_ACTION_INPUTS,dangerouslySkipPermissionsPassed:l??!1,permissionMode:A,modeIsBypass:A==="bypassPermissions",allowDangerouslySkipPermissionsPassed:X,systemPromptFlag:z?g.systemPromptFile?"file":"flag":void 0,appendSystemPromptFlag:O?g.appendSystemPromptFile?"file":"flag":void 0,thinkingConfig:i,assistantActivationPath:void 0,isCoordinator:L?.isCoordinatorMode()===!0}),KZ(C,j),QZ(),dZ().then((p)=>{if(!p)return;if(P)JZ(P);RZ().then((YG)=>{if(YG>=2)m("tengu_concurrent_sessions",{num_sessions:YG})})}),{mcpPromise:q,hooksPromise:T,hookMessages:n,mcpClients:_,mcpTools:D,mcpCommands:gG,thinkingEnabled:W,thinkingConfig:i}}function FW(I,G){let{options:g,ctx:B,agentSetting:Z,resolvedInitialModel:C,permissionModeNotification:b,overlyBroadBashPermissions:y,toolPermissionContext:h,initialMainLoopModel:H,agentDefinitions:R,mainThreadAgentDefinition:d,verbose:c,remoteControl:J,remoteControlName:V,advisorModel:F,inputPrompt:Q,thinkingEnabled:K,mcpTools:Y}=I,{getTeammateUtils:N}=G;m("tengu_startup_manual_model_config",{cli_flag:g.model,env_var:HG()?.model,settings_file:(RG()||{}).model,subscriptionType:gZ(),agent:Z});let S=vZ(C),u=[];if(b)u.push({key:"permission-mode-notification",text:b,priority:"high"});if(S)u.push({key:"model-deprecation-warning",text:S,color:"warning",priority:"high"});if(y.length>0){let j=jI(y.map((v)=>v.ruleDisplay)),P=j.join(", "),x=jI(y.map((v)=>v.sourceDisplay)).join(", "),L=j.length;u.push({key:"overly-broad-bash-notification",text:`${P} allow ${dG(L,"rule")} from ${x} ${dG(L,"was","were")} ignored — not available for Ants, please use auto-mode instead`,color:"warning",priority:"high"})}let U={...h,mode:BG()&&N().isPlanModeRequired()?"plan":h.mode},l=!1,A=J||rB()||B.kairosEnabled,X=!1,z={settings:RG(),tasks:{},agentNameRegistry:new Map,verbose:c??VG().verbose??!1,mainLoopModel:H,mainLoopModelForSession:null,isBriefOnly:l,expandedView:VG().showSpinnerTree?"teammates":VG().showExpandedTodos?"tasks":"none",showTeammateMessagePreview:BG()?!1:void 0,selectedIPAgentIndex:-1,coordinatorTaskIndex:-1,viewSelectionMode:"none",footerSelection:null,toolPermissionContext:U,agent:d?.agentType,agentDefinitions:R,mcp:{clients:[],tools:[],commands:[],resources:{},pluginReconnectKey:0},plugins:{enabled:[],disabled:[],commands:[],errors:[],installationStatus:{marketplaces:[],plugins:[]},needsRefresh:!1},statusLineText:void 0,kairosEnabled:B.kairosEnabled,remoteSessionUrl:void 0,remoteConnectionStatus:"connecting",remoteBackgroundTaskCount:0,replBridgeEnabled:A||X,replBridgeExplicit:J,replBridgeOutboundOnly:X,replBridgeConnected:!1,replBridgeSessionActive:!1,replBridgeReconnecting:!1,replBridgeConnectUrl:void 0,replBridgeSessionUrl:void 0,replBridgeEnvironmentId:void 0,replBridgeSessionId:void 0,replBridgeError:void 0,replBridgeInitialName:V,showRemoteCallout:!1,notifications:{current:null,queue:u},elicitation:{queue:[]},todos:{},remoteAgentTaskSuggestions:[],fileHistory:{snapshots:[],trackedFiles:new Set,snapshotSequence:0},attribution:WZ(),thinkingEnabled:K,promptSuggestionEnabled:cZ(),sessionHooks:new Map,inbox:{messages:[]},promptSuggestion:{text:null,promptId:null,shownAt:0,acceptedAt:0,generationRequestId:null},speculation:HZ,speculationSessionTimeSavedMs:0,skillImprovement:{suggestion:null},workerSandboxPermissions:{queue:[],selectedIndex:0},pendingWorkerRequest:null,pendingSandboxRequest:null,authVersion:0,initialMessage:Q?{message:$G({content:String(Q)})}:null,effortValue:bZ(g.effort)??CZ(),activeOverlays:new Set,fastMode:eB(C),...qG()&&F&&{advisorModel:F},teamContext:AZ?.()};if(Q)lZ(String(Q));let O=Y;return UI((j)=>({...j,numStartups:(j.numStartups??0)+1})),setImmediate(()=>{NZ(),wZ()}),{initialState:z,initialTools:O}}xG();FG();XG();mZ();hG();async function UZ(I){let{root:G,options:g,sessionConfig:B,resumeContext:Z,mainThreadAgentDefinitionRef:C,getFpsMetrics:b,stats:y}=I,h=!1;try{let H=performance.now(),{clearSessionCaches:R}=await import("./caches-0.6.2-ckpe4m10.mjs");R();let d=await OG(void 0,void 0);if(!d)return m("tengu_continue",{success:!1}),await a(G,"No conversation found to continue");let c=await TG(d,{forkSession:!!g.forkSession,includeAttribution:!0,transcriptPath:d.fullPath},Z);if(c.restoredAgentDef)C.current=c.restoredAgentDef;PG(g),KG(g),m("tengu_continue",{success:!0,resume_duration_ms:Math.round(performance.now()-H)}),h=!0,await WG(G,{getFpsMetrics:b,stats:y,initialState:c.initialState},{...B,mainThreadAgentDefinition:c.restoredAgentDef??C.current,initialMessages:c.messages,initialFileHistorySnapshots:c.fileHistorySnapshots,initialContentReplacements:c.contentReplacements,initialAgentName:c.agentName,initialAgentColor:c.agentColor},IG)}catch(H){if(!h)m("tengu_continue",{success:!1});return GG(H),await a(G,s(H),()=>f(1))}}r();hG();NG();r();hG();NG();r();QI();hG();NG();LZ();UG();NW();r();QI();wI();XG();wW();oB();mZ();FG();Kg();vW();hG();JG();xG();NG();nG();jW();LZ();AW();oG();TB();async function rZ(I){let{root:G,ctx:g,options:B,teleport:Z,remote:C,debug:b,debugToStderr:y,commands:h,ide:H,mainThreadAgentDefinitionRef:R,thinkingConfig:d,sessionConfig:c,resumeContext:J,getFpsMetrics:V,stats:F,initialState:Q}=I,{clearSessionCaches:K}=await import("./caches-0.6.2-ckpe4m10.mjs");K();let Y=null,N=void 0,S=lG(B.resume),u=void 0,U=null,l=void 0;if(B.fromPr){if(B.fromPr===!0)l=!0;else if(typeof B.fromPr==="string")l=B.fromPr}if(B.resume&&typeof B.resume==="string"&&!S){let X=B.resume.trim();if(X){let z=await oZ(X,{exact:!0});if(z.length===1)U=z[0],S=iZ(U)??null;else u=X}}if(C!==null||Z){if(await OZ(),!PZ("allow_remote_sessions"))return await a(G,"Error: Remote sessions are disabled by your organization's policy.",()=>f(1))}if(C!==null){let X=C.length>0,z=wG("tengu_remote_backend",!1);if(!z&&!X)return await a(G,`Error: --remote requires a description.
|
|
1357
|
-
Usage: claude --remote "your task description"`,()=>f(1));m("tengu_remote_create_session",{has_initial_prompt:String(X)});let O=await MZ(),j=await aZ(G,X?C:null,new AbortController().signal,O||void 0);if(!j)return m("tengu_remote_create_session_error",{error:"unable_to_create_session"}),await a(G,"Error: Unable to create remote session",()=>f(1));if(m("tengu_remote_create_session_success",{session_id:j.id}),!z)process.stdout.write(`Created remote session: ${j.title}
|
|
1358
|
-
`),process.stdout.write(`View: ${xI(j.id)}?m=0
|
|
1359
|
-
`),process.stdout.write(`Resume with: claude --teleport ${j.id}
|
|
1360
|
-
`),await f(0),process.exit(0);kI(!0),kZ(DZ(j.id));let P;try{P=await SI()}catch(D){return GG(uZ(D)),await a(G,`Error: ${s(D)||"Failed to authenticate"}`,()=>f(1))}let{getClaudeAIOAuthTokens:x}=await import("./auth-0.6.2-ndpcgcx5.mjs"),L=()=>x()?.accessToken??P.accessToken,v=MI(j.id,L,P.orgUUID,X),M=`${xI(j.id)}?m=0`,q=jG(`/remote-control is active. Code in CLI or at ${M}`,"info"),T=X?$G({content:C}):null,n={...Q,remoteSessionUrl:M},_=uI(h);await WG(G,{getFpsMetrics:V,stats:F,initialState:n},{debug:b||y,commands:_,initialTools:[],initialMessages:T?[q,T]:[q],mcpClients:[],autoConnectIdeFlag:H,mainThreadAgentDefinition:R.current,disableSlashCommands:g.disableSlashCommands,remoteSessionConfig:v,thinkingConfig:d},IG);return}else if(Z){if(Z===!0||Z===""){m("tengu_teleport_interactive_mode",{}),k("selectAndResumeTeleportTask: Starting teleport flow...");let X=await MB(G);if(!X)await f(0),process.exit(0);let{branchError:z}=await EZ(X.branch);Y=pZ(X.log,z)}else if(typeof Z==="string"){m("tengu_teleport_resume_session",{mode:"direct"});try{let X=await qZ(Z),z=await _Z(X);if(z.status==="mismatch"||z.status==="not_in_repo"){let P=z.sessionRepo;if(P){let x=nZ(P),L=await sZ(x);if(L.length>0){let v=await xB(G,{targetRepo:P,initialPaths:L});if(v)process.chdir(v),$Z(v),pG(v);else await f(0)}else throw new EG(`You must run claude --teleport ${Z} from a checkout of ${P}.`,w.red(`You must run claude --teleport ${Z} from a checkout of ${w.bold(P)}.
|
|
1361
|
-
`))}}else if(z.status==="error")throw new EG(z.errorMessage||"Failed to validate session",w.red(`Error: ${z.errorMessage||"Failed to validate session"}
|
|
1362
|
-
`));await TZ();let{teleportWithProgress:O}=await import("./TeleportProgress-0.6.2-wa2hgv37.mjs"),j=await O(G,Z);SZ({sessionId:Z}),Y=j.messages}catch(X){if(X instanceof EG)process.stderr.write(X.formattedMessage+`
|
|
1363
|
-
`);else GG(X),process.stderr.write(w.red(`Error: ${s(X)}
|
|
1364
|
-
`));await f(1)}}}if(S){let X=S;try{let z=performance.now(),O=await OG(U??X,void 0);if(!O)return m("tengu_session_resumed",{entrypoint:"cli_flag",success:!1}),await a(G,`No conversation found with session ID: ${X}`);let j=U?.fullPath??O.fullPath;if(N=await TG(O,{forkSession:!!B.forkSession,sessionIdOverride:X,transcriptPath:j},J),N.restoredAgentDef)R.current=N.restoredAgentDef;m("tengu_session_resumed",{entrypoint:"cli_flag",success:!0,resume_duration_ms:Math.round(performance.now()-z)})}catch(z){m("tengu_session_resumed",{entrypoint:"cli_flag",success:!1}),GG(z),await a(G,s(z))}}if(g.fileDownloadPromise)try{let X=await g.fileDownloadPromise,z=xZ(X,(O)=>!O.success);if(z>0)process.stderr.write(w.yellow(`Warning: ${z}/${X.length} file(s) failed to download.
|
|
1365
|
-
`))}catch(X){return await a(G,`Error downloading files: ${s(X)}`)}let A=N??(Array.isArray(Y)?{messages:Y,fileHistorySnapshots:void 0,agentName:void 0,agentColor:void 0,restoredAgentDef:R.current,initialState:Q,contentReplacements:void 0}:void 0);if(A)PG(B),KG(B),await WG(G,{getFpsMetrics:V,stats:F,initialState:A.initialState},{...c,mainThreadAgentDefinition:A.restoredAgentDef??R.current,initialMessages:A.messages,initialFileHistorySnapshots:A.fileHistorySnapshots,initialContentReplacements:A.contentReplacements,initialAgentName:A.agentName,initialAgentColor:A.agentColor},IG);else await qB(G,{getFpsMetrics:V,stats:F,initialState:Q},fZ(LI()),{...c,initialSearchQuery:u,forkSession:B.forkSession,filterByPr:l})}function mW(I){let G={debug:I.debug||I.debugToStderr,commands:[...I.commands,...I.mcpCommands],initialTools:I.initialTools,mcpClients:I.mcpClients,autoConnectIdeFlag:I.ide,mainThreadAgentDefinition:I.mainThreadAgentDefinition,disableSlashCommands:I.ctx.disableSlashCommands,dynamicMcpConfig:I.dynamicMcpConfig,strictMcpConfig:I.strictMcpConfig,systemPrompt:I.systemPrompt,appendSystemPrompt:I.appendSystemPrompt,taskListId:I.ctx.taskListId,thinkingConfig:I.thinkingConfig},g={modeApi:I.coordinatorModeModule,mainThreadAgentDefinition:I.mainThreadAgentDefinition,agentDefinitions:I.agentDefinitions,currentCwd:I.currentCwd,cliAgents:I.cliAgents,initialState:I.initialState};return{sessionConfig:G,resumeContext:g}}async function UW(I){let{root:G,ctx:g,options:B,debug:Z,debugToStderr:C,commands:b,ide:y,teleport:h,remote:H,thinkingConfig:R,initialState:d,getFpsMetrics:c,stats:J}=I,V=I.mainThreadAgentDefinition,{sessionConfig:F,resumeContext:Q}=mW({ctx:g,debug:Z,debugToStderr:C,commands:b,initialTools:I.initialTools,mcpClients:I.mcpClients,mcpCommands:I.mcpCommands,ide:y,mainThreadAgentDefinition:V,dynamicMcpConfig:I.dynamicMcpConfig,strictMcpConfig:I.strictMcpConfig,systemPrompt:I.systemPrompt,appendSystemPrompt:I.appendSystemPrompt,thinkingConfig:R,coordinatorModeModule:I.coordinatorModeModule,agentDefinitions:I.agentDefinitions,currentCwd:I.currentCwd,cliAgents:I.cliAgents,initialState:d});if(B.continue){let N={current:V};return await UZ({root:G,options:B,sessionConfig:F,resumeContext:Q,mainThreadAgentDefinitionRef:N,getFpsMetrics:c,stats:J}),V=N.current,{handled:!0,mainThreadAgentDefinition:V,sessionConfig:F}}let K=Z,Y=C;if(B.resume||B.fromPr||h||H!==null){let N={current:V};return await rZ({root:G,ctx:g,options:B,teleport:h,remote:H,debug:K,debugToStderr:Y,commands:b,ide:y,mainThreadAgentDefinitionRef:N,thinkingConfig:R,sessionConfig:F,resumeContext:Q,getFpsMetrics:c,stats:J,initialState:d}),V=N.current,{handled:!0,mainThreadAgentDefinition:V,sessionConfig:F}}return{handled:!1,mainThreadAgentDefinition:V,sessionConfig:F}}export{nC as runTrustAndOnboarding,KW as runPostHeadlessGuards,hW as runMcpHooksAndTelemetry,lb as runMcpAndPerms,FW as runInteractiveStartupBlock,UW as runDefaultActionDispatch,PC as runActionSetup,TC as runActionPostSetup,pC as runActionAgentSetup,Cb as parseActionOptions};
|