@namzu/cli 44.1.1 → 45.0.0
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/CHANGELOG.md +179 -0
- package/README.md +4 -2
- package/dist/bin.js +1 -1
- package/dist/chunks/acp-XSAUUT2D.js +7648 -0
- package/dist/chunks/acp-XSAUUT2D.js.map +6 -0
- package/dist/chunks/{activity-command-Y5ZLCQ63.js → activity-command-DB4DREW7.js} +16 -15
- package/dist/chunks/activity-command-DB4DREW7.js.map +6 -0
- package/dist/chunks/{add-F7M57FGR.js → add-NVXRVUGY.js} +27 -21
- package/dist/chunks/add-NVXRVUGY.js.map +6 -0
- package/dist/chunks/{agent-AFX2UZU5.js → agent-6TD66IMV.js} +43 -34
- package/dist/chunks/agent-session-3A5K5VK3.js +69 -0
- package/dist/chunks/{archive-6NM6DYAT.js → archive-A3X7KX2U.js} +11 -10
- package/dist/chunks/archive-A3X7KX2U.js.map +6 -0
- package/dist/chunks/{bin-main-I6CHRYYQ.js → bin-main-5PYV7WYI.js} +11 -11
- package/dist/chunks/binding-EMMG5PAE.js +17 -0
- package/dist/chunks/{browser-OPMOTWTV.js → browser-FUFFJBRR.js} +6 -6
- package/dist/chunks/{chat-KGVPXQS6.js → chat-M653DEAF.js} +20 -19
- package/dist/chunks/chat-M653DEAF.js.map +6 -0
- package/dist/chunks/{chunk-TX2PUHTP.js → chunk-24FBGXYR.js} +3 -3
- package/dist/chunks/{chunk-2NGXQQPP.js → chunk-2OAD3CZE.js} +3 -3
- package/dist/chunks/chunk-2YCPLLUW.js +61 -0
- package/dist/chunks/chunk-2YCPLLUW.js.map +6 -0
- package/dist/chunks/{chunk-JCUPTKQY.js → chunk-325X27UO.js} +4 -4
- package/dist/chunks/{chunk-REDD2WY7.js → chunk-43HR3AF5.js} +2 -2
- package/dist/chunks/{chunk-DESOZLEL.js → chunk-43PTHA5N.js} +2 -2
- package/dist/chunks/{chunk-T5POXPXY.js → chunk-46OOPRR6.js} +3 -3
- package/dist/chunks/chunk-4DVCHAWN.js +219 -0
- package/dist/chunks/chunk-4DVCHAWN.js.map +6 -0
- package/dist/chunks/chunk-667W6Z5W.js +309 -0
- package/dist/chunks/chunk-667W6Z5W.js.map +6 -0
- package/dist/chunks/chunk-6HTC5TQ3.js +89 -0
- package/dist/chunks/chunk-6HTC5TQ3.js.map +6 -0
- package/dist/chunks/chunk-6PDIDZGX.js +363 -0
- package/dist/chunks/chunk-6PDIDZGX.js.map +6 -0
- package/dist/chunks/{chunk-UHPRMPWX.js → chunk-6TT7NXLP.js} +182 -139
- package/dist/chunks/chunk-6TT7NXLP.js.map +6 -0
- package/dist/chunks/{chunk-EFQ6FUFZ.js → chunk-6ZEHXLF7.js} +2 -2
- package/dist/chunks/{chunk-RSRJQB6Q.js → chunk-7DR7EU3J.js} +2078 -850
- package/dist/chunks/chunk-7DR7EU3J.js.map +6 -0
- package/dist/chunks/chunk-7NJAEWFK.js +153 -0
- package/dist/chunks/chunk-7NJAEWFK.js.map +6 -0
- package/dist/chunks/{chunk-I32JTWDW.js → chunk-7TBETDTX.js} +2 -2
- package/dist/chunks/{chunk-465CVUN4.js → chunk-ADCVLGQO.js} +3 -3
- package/dist/chunks/{chunk-W5QFVC74.js → chunk-AHNXQAYZ.js} +91 -56
- package/dist/chunks/chunk-AHNXQAYZ.js.map +6 -0
- package/dist/chunks/{chunk-W4E2N7TY.js → chunk-ANHFJD66.js} +4 -4
- package/dist/chunks/{chunk-UGAT33T5.js → chunk-B6INWHLR.js} +3 -3
- package/dist/chunks/{chunk-Y44FAVKA.js → chunk-BICC735N.js} +3 -3
- package/dist/chunks/{chunk-UC3ZACVN.js → chunk-BOM64EUQ.js} +2 -2
- package/dist/chunks/{chunk-RFMODICJ.js → chunk-C4MAQ64X.js} +84 -42
- package/dist/chunks/chunk-C4MAQ64X.js.map +6 -0
- package/dist/chunks/chunk-CDDS3UKB.js +425 -0
- package/dist/chunks/chunk-CDDS3UKB.js.map +6 -0
- package/dist/chunks/{chunk-CTN4O42X.js → chunk-D23EJNO5.js} +3 -3
- package/dist/chunks/{chunk-G5RAECIB.js → chunk-E2MNVA3X.js} +2 -2
- package/dist/chunks/{chunk-BR6EWAKQ.js → chunk-E3FA5H3Q.js} +5 -5
- package/dist/chunks/{chunk-LUSUJZR2.js → chunk-EFU2OFEK.js} +2 -2
- package/dist/chunks/chunk-EXFSMYH4.js +83 -0
- package/dist/chunks/chunk-EXFSMYH4.js.map +6 -0
- package/dist/chunks/{chunk-EFEZWLZC.js → chunk-FUJSGQYW.js} +17 -13
- package/dist/chunks/chunk-FUJSGQYW.js.map +6 -0
- package/dist/chunks/{chunk-FPLDTTM2.js → chunk-FZR4XULA.js} +6 -6
- package/dist/chunks/{chunk-YAEHAYI4.js → chunk-G5FWVYK2.js} +47 -9
- package/dist/chunks/chunk-G5FWVYK2.js.map +6 -0
- package/dist/chunks/{chunk-6LLJQ3KY.js → chunk-G6YSAHKC.js} +4 -3
- package/dist/chunks/chunk-G6YSAHKC.js.map +6 -0
- package/dist/chunks/{chunk-JSFF2HGX.js → chunk-GAEZQRQI.js} +3 -3
- package/dist/chunks/{chunk-UP3SWACV.js → chunk-GCFXQSN6.js} +2 -2
- package/dist/chunks/{chunk-XPS3W7FC.js → chunk-GMUWAUKQ.js} +2 -2
- package/dist/chunks/chunk-GWGIAZLZ.js +5853 -0
- package/dist/chunks/chunk-GWGIAZLZ.js.map +6 -0
- package/dist/chunks/chunk-H6AUN2YD.js +290 -0
- package/dist/chunks/chunk-H6AUN2YD.js.map +6 -0
- package/dist/chunks/{chunk-KHM2XON5.js → chunk-HFD2VRQP.js} +18 -4
- package/dist/chunks/chunk-HFD2VRQP.js.map +6 -0
- package/dist/chunks/{chunk-CRWNJ62V.js → chunk-HGIIAAEG.js} +5 -6
- package/dist/chunks/chunk-HGIIAAEG.js.map +6 -0
- package/dist/chunks/{chunk-WLAI3VCE.js → chunk-HH3NBBBE.js} +2 -2
- package/dist/chunks/{chunk-WPNT6IGU.js → chunk-HV2JFRSE.js} +2 -2
- package/dist/chunks/{chunk-ZXKN4TWP.js → chunk-IRUDNBAR.js} +242 -447
- package/dist/chunks/chunk-IRUDNBAR.js.map +6 -0
- package/dist/chunks/chunk-IYEDXZQZ.js +4322 -0
- package/dist/chunks/chunk-IYEDXZQZ.js.map +6 -0
- package/dist/chunks/{chunk-AE4LOPZF.js → chunk-J2FGTLZV.js} +2 -2
- package/dist/chunks/{chunk-T2PF65KB.js → chunk-JAB62RI5.js} +2 -2
- package/dist/chunks/{chunk-HXZ2JXCO.js → chunk-JKPUOSDC.js} +2 -2
- package/dist/chunks/{chunk-GSYPRZZU.js → chunk-K5FQ4G64.js} +2 -2
- package/dist/chunks/{chunk-NS7EU37U.js → chunk-KVCYYXCS.js} +2 -2
- package/dist/chunks/{chunk-PWOG3OMH.js → chunk-KZ5WYSA6.js} +9 -9
- package/dist/chunks/chunk-L2WEBN6A.js +49 -0
- package/dist/chunks/chunk-L2WEBN6A.js.map +6 -0
- package/dist/chunks/{chunk-7U36A4WQ.js → chunk-L6QJZZCJ.js} +55 -5
- package/dist/chunks/chunk-L6QJZZCJ.js.map +6 -0
- package/dist/chunks/{chunk-ORVWGSLG.js → chunk-LHZSSQ6K.js} +4 -4
- package/dist/chunks/{chunk-2NFPIARP.js → chunk-LR4QQMJH.js} +4 -4
- package/dist/chunks/{chunk-3NJPNX6V.js → chunk-LVVD32KJ.js} +14 -4
- package/dist/chunks/chunk-LVVD32KJ.js.map +6 -0
- package/dist/chunks/{chunk-JAYPFJGZ.js → chunk-M7LCVDP3.js} +9 -2
- package/dist/chunks/chunk-M7LCVDP3.js.map +6 -0
- package/dist/chunks/{chunk-JV3LONAU.js → chunk-MDK4RMBQ.js} +9 -3
- package/dist/chunks/{chunk-JV3LONAU.js.map → chunk-MDK4RMBQ.js.map} +1 -1
- package/dist/chunks/{chunk-QNTR7X7D.js → chunk-MKRYUMLP.js} +6 -6
- package/dist/chunks/{chunk-O4MFP726.js → chunk-MMZHUQZQ.js} +4427 -1413
- package/dist/chunks/chunk-MMZHUQZQ.js.map +6 -0
- package/dist/chunks/{chunk-WKUTR7YW.js → chunk-MYSU54EZ.js} +86 -21
- package/dist/chunks/chunk-MYSU54EZ.js.map +6 -0
- package/dist/chunks/{chunk-5UB2LLPG.js → chunk-NUNOIP4Y.js} +2 -2
- package/dist/chunks/{chunk-ZRBGY4SL.js → chunk-NXX6C3WS.js} +2 -2
- package/dist/chunks/{chunk-ZNYKZ3MI.js → chunk-OENL667J.js} +2 -2
- package/dist/chunks/{chunk-LS75R55C.js → chunk-OMRU22BQ.js} +4 -4
- package/dist/chunks/{chunk-BLM6IQS4.js → chunk-P6FEQPES.js} +5 -5
- package/dist/chunks/{chunk-BIGRB2H4.js → chunk-P6RUYL3F.js} +3 -3
- package/dist/chunks/chunk-P7MNE6YP.js +456 -0
- package/dist/chunks/chunk-P7MNE6YP.js.map +6 -0
- package/dist/chunks/{chunk-6Z2ZJ4BA.js → chunk-RJQ6WQYX.js} +358 -32
- package/dist/chunks/chunk-RJQ6WQYX.js.map +6 -0
- package/dist/chunks/{chunk-YPRKTJ5P.js → chunk-S2UDKXWH.js} +2 -2
- package/dist/chunks/chunk-S766UWAQ.js +227 -0
- package/dist/chunks/chunk-S766UWAQ.js.map +6 -0
- package/dist/chunks/chunk-S7WRWA25.js +33 -0
- package/dist/chunks/chunk-S7WRWA25.js.map +6 -0
- package/dist/chunks/{chunk-XFNCCDJK.js → chunk-TFOIA3U3.js} +2 -2
- package/dist/chunks/{chunk-NPZY5OJ5.js → chunk-THJQXERD.js} +8 -8
- package/dist/chunks/{chunk-ZUN2WRCB.js → chunk-THQAGFMO.js} +17 -17
- package/dist/chunks/{chunk-FKIO77IY.js → chunk-THUX2WOG.js} +12 -12
- package/dist/chunks/{chunk-AY7B43MK.js → chunk-TKIWAXRU.js} +13 -13
- package/dist/chunks/{chunk-QV43JSBP.js → chunk-TUF4NNJV.js} +2 -2
- package/dist/chunks/{chunk-KK2L4FD2.js → chunk-U33GIKBK.js} +4 -4
- package/dist/chunks/{chunk-WLUGKIYQ.js → chunk-U3EQTU4G.js} +4 -4
- package/dist/chunks/{chunk-VR4MTSMH.js → chunk-U6U472VN.js} +3 -3
- package/dist/chunks/chunk-VAP6YMB6.js +362 -0
- package/dist/chunks/chunk-VAP6YMB6.js.map +6 -0
- package/dist/chunks/{chunk-RV5QY3IY.js → chunk-VGUU6E6X.js} +6 -6
- package/dist/chunks/chunk-VHFPIYVY.js +63 -0
- package/dist/chunks/chunk-VHFPIYVY.js.map +6 -0
- package/dist/chunks/{chunk-LN26A356.js → chunk-VY377HAA.js} +4 -4
- package/dist/chunks/{chunk-HYFX32Y3.js → chunk-WG32TSVL.js} +3 -3
- package/dist/chunks/{chunk-ZATO2QOS.js → chunk-WSIMHBEQ.js} +2 -2
- package/dist/chunks/{chunk-JH3SDABI.js → chunk-X4WCRRZV.js} +6 -6
- package/dist/chunks/chunk-X7WLWVR7.js +189 -0
- package/dist/chunks/chunk-X7WLWVR7.js.map +6 -0
- package/dist/chunks/{chunk-2OVZNENW.js → chunk-XH5YF2YX.js} +2 -2
- package/dist/chunks/chunk-Y2PZNQH5.js +413 -0
- package/dist/chunks/chunk-Y2PZNQH5.js.map +6 -0
- package/dist/chunks/{chunk-CMAZ3DYB.js → chunk-YLNQLDMP.js} +5 -5
- package/dist/chunks/chunk-YOWYTBJS.js +96 -0
- package/dist/chunks/chunk-YOWYTBJS.js.map +6 -0
- package/dist/chunks/{cli-runtime-HTTDQPEZ.js → cli-runtime-QWBGE2VF.js} +16 -15
- package/dist/chunks/cli-runtime-QWBGE2VF.js.map +6 -0
- package/dist/chunks/{commands-ZD2L5QMI.js → commands-LVUUZ6LF.js} +5 -5
- package/dist/chunks/{crash-report-2IRIZSBD.js → crash-report-PGXMRS5P.js} +8 -8
- package/dist/chunks/{dist-NL7WG7PX.js → dist-6HN2ZMLV.js} +2 -2
- package/dist/chunks/{dist-45IFTDJW.js → dist-JJANJMY5.js} +162 -13
- package/dist/chunks/dist-JJANJMY5.js.map +6 -0
- package/dist/chunks/{dist-GSYFGRQT.js → dist-JRBSW53E.js} +2 -2
- package/dist/chunks/{dist-OJTB6QLR.js → dist-NSCNMOX7.js} +2 -2
- package/dist/chunks/{dist-FNGLTQIG.js → dist-TC6H7TPQ.js} +78 -2
- package/dist/chunks/{dist-TWYNAZDN.js → dist-V4SNHHMB.js} +2 -2
- package/dist/chunks/{dist-RQJEJN3Z.js → dist-VON3NRHE.js} +35 -6
- package/dist/chunks/dist-VON3NRHE.js.map +6 -0
- package/dist/chunks/{dist-OCZJJFHF.js → dist-VV3V36IP.js} +2 -2
- package/dist/chunks/{doctor-NKPCWPB4.js → doctor-P7L35KGN.js} +20 -16
- package/dist/chunks/{drain-YTSVAQP5.js → drain-HOHRXIYY.js} +14 -14
- package/dist/chunks/entry-L7XZIE7J.js +233 -0
- package/dist/chunks/entry-L7XZIE7J.js.map +6 -0
- package/dist/chunks/{eval-ILFXDQUQ.js → eval-2F473JAC.js} +2 -2
- package/dist/chunks/{exec-3JDAB34N.js → exec-VCM4AL2S.js} +65 -51
- package/dist/chunks/exec-VCM4AL2S.js.map +6 -0
- package/dist/chunks/{github-FH7PPWVW.js → github-OFCHQMQQ.js} +5 -5
- package/dist/chunks/{home-5OIZIDIT.js → home-R6WCBSOT.js} +3 -3
- package/dist/chunks/host-JGPJVLTC.js +28 -0
- package/dist/chunks/{host-queries-SO2NOQRR.js → host-queries-QWV47CFK.js} +17 -16
- package/dist/chunks/host-queries-QWV47CFK.js.map +6 -0
- package/dist/chunks/{learn-RHNMJ4BD.js → learn-3UPHM5OI.js} +14 -14
- package/dist/chunks/{learn-builtin-UQ3MWGK6.js → learn-builtin-3Q4BJFCF.js} +20 -20
- package/dist/chunks/{lifecycle-RTDYXKBW.js → lifecycle-EJLVISCU.js} +37 -30
- package/dist/chunks/{list-G6OA34RL.js → list-DQJBF4AB.js} +18 -17
- package/dist/chunks/list-DQJBF4AB.js.map +6 -0
- package/dist/chunks/{live-44HBQCQY.js → live-IWDOVSLG.js} +18 -14
- package/dist/chunks/login-B2PHE6IL.js +34 -0
- package/dist/chunks/{logs-22QAEH2Q.js → logs-5UTV3FMG.js} +4 -4
- package/dist/chunks/{mcp-EXFVIHPJ.js → mcp-JN36OQLX.js} +32 -26
- package/dist/chunks/mcp-JN36OQLX.js.map +6 -0
- package/dist/chunks/{message-command-B4L2W4YZ.js → message-command-RMLQ2PU5.js} +54 -45
- package/dist/chunks/message-command-RMLQ2PU5.js.map +6 -0
- package/dist/chunks/mouse-WFSJSLQD.js +22 -0
- package/dist/chunks/open-LDBJL43A.js +20 -0
- package/dist/chunks/{operator-tools-TEP4UTI6.js → operator-tools-NA7PLRIP.js} +15 -14
- package/dist/chunks/operator-tools-NA7PLRIP.js.map +6 -0
- package/dist/chunks/{output-schema-FZXJ7V33.js → output-schema-UKYWRZPS.js} +3 -3
- package/dist/chunks/{pal-BUDEBIBJ.js → pal-MAVUNYMB.js} +20 -15
- package/dist/chunks/pal-MAVUNYMB.js.map +6 -0
- package/dist/chunks/palette-WDPS7W6Q.js +15 -0
- package/dist/chunks/peers-FBTQW2SY.js +18 -0
- package/dist/chunks/prefix-MLAG4KTK.js +14 -0
- package/dist/chunks/{providers-EQ32NZAT.js → providers-M75ET3GT.js} +45 -26
- package/dist/chunks/pty-VMUEEJRN.js +29 -0
- package/dist/chunks/pty-VMUEEJRN.js.map +6 -0
- package/dist/chunks/{resident-FSUGNG56.js → resident-URNRPE2S.js} +35 -33
- package/dist/chunks/resident-URNRPE2S.js.map +6 -0
- package/dist/chunks/resume-7B3EHDJ7.js +24 -0
- package/dist/chunks/resume-7B3EHDJ7.js.map +6 -0
- package/dist/chunks/{resume-command-DHPXCZVL.js → resume-command-5QGHV6WR.js} +4 -4
- package/dist/chunks/resume-command-5QGHV6WR.js.map +6 -0
- package/dist/chunks/{schedule-OJMZEWJG.js → schedule-BK3WF2VK.js} +8 -8
- package/dist/chunks/{service-EP2QHCK7.js → service-VWASFP3R.js} +38 -31
- package/dist/chunks/service-VWASFP3R.js.map +6 -0
- package/dist/chunks/{session-step-44XBOUDV.js → session-step-DORV5FER.js} +16 -16
- package/dist/chunks/session-step-DORV5FER.js.map +6 -0
- package/dist/chunks/{skills-YHAQXVP2.js → skills-TDDPMTQI.js} +12 -12
- package/dist/chunks/spaces-AEOU6MSZ.js +241 -0
- package/dist/chunks/spaces-AEOU6MSZ.js.map +6 -0
- package/dist/chunks/{start-check-KVZFDBD3.js → start-check-N4TPV2TM.js} +2 -2
- package/dist/chunks/start-check-N4TPV2TM.js.map +6 -0
- package/dist/chunks/{state-NXFKMBOX.js → state-SHLWYVZU.js} +2 -2
- package/dist/chunks/{store-JLTSSGKL.js → store-75YZOOZI.js} +4 -4
- package/dist/chunks/store-75YZOOZI.js.map +6 -0
- package/dist/chunks/{store-QNY242NN.js → store-CQVUIU7K.js} +6 -6
- package/dist/chunks/store-CQVUIU7K.js.map +6 -0
- package/dist/chunks/{store-KFJWAELA.js → store-GUSFCKJA.js} +13 -10
- package/dist/chunks/store-GUSFCKJA.js.map +6 -0
- package/dist/chunks/store-Z5H6LYVE.js +17 -0
- package/dist/chunks/store-Z5H6LYVE.js.map +6 -0
- package/dist/chunks/{tui-L5GKR237.js → tui-PGHWYFN4.js} +9702 -7547
- package/dist/chunks/tui-PGHWYFN4.js.map +6 -0
- package/dist/chunks/{upgrade-PROVWX55.js → upgrade-RHPZQ33L.js} +6 -6
- package/dist/chunks/{worktree-ELHDXX4X.js → worktree-5IYFN33C.js} +13 -12
- package/dist/chunks/worktree-5IYFN33C.js.map +6 -0
- package/dist/cli.d.ts.map +1 -1
- package/dist/commands/exec-json.d.ts.map +1 -1
- package/dist/commands/login.d.ts +2 -2
- package/dist/commands/login.d.ts.map +1 -1
- package/dist/commands/manifest.d.ts +1 -0
- package/dist/commands/manifest.d.ts.map +1 -1
- package/dist/commands/spaces.d.ts +46 -0
- package/dist/commands/spaces.d.ts.map +1 -0
- package/dist/config/load.d.ts +6 -1
- package/dist/config/load.d.ts.map +1 -1
- package/dist/config/model-environment.d.ts.map +1 -1
- package/dist/config/schema.d.ts +27 -0
- package/dist/config/schema.d.ts.map +1 -1
- package/dist/context/environment.d.ts.map +1 -1
- package/dist/doctor/checks/index.d.ts +2 -1
- package/dist/doctor/checks/index.d.ts.map +1 -1
- package/dist/doctor/checks/terminal.d.ts +12 -0
- package/dist/doctor/checks/terminal.d.ts.map +1 -0
- package/dist/index.js +28 -23
- package/dist/integrations/accounts/activity.d.ts +39 -0
- package/dist/integrations/accounts/activity.d.ts.map +1 -0
- package/dist/integrations/accounts/binding.d.ts +30 -0
- package/dist/integrations/accounts/binding.d.ts.map +1 -0
- package/dist/integrations/accounts/codex-login.d.ts +33 -0
- package/dist/integrations/accounts/codex-login.d.ts.map +1 -0
- package/dist/integrations/accounts/host-facts.d.ts +22 -0
- package/dist/integrations/accounts/host-facts.d.ts.map +1 -0
- package/dist/integrations/accounts/open.d.ts +23 -0
- package/dist/integrations/accounts/open.d.ts.map +1 -0
- package/dist/integrations/accounts/rows.d.ts +45 -0
- package/dist/integrations/accounts/rows.d.ts.map +1 -0
- package/dist/integrations/clipboard/copy.d.ts +94 -0
- package/dist/integrations/clipboard/copy.d.ts.map +1 -0
- package/dist/integrations/clipboard/image-fit.d.ts +91 -0
- package/dist/integrations/clipboard/image-fit.d.ts.map +1 -0
- package/dist/integrations/clipboard/image-paths.d.ts +56 -0
- package/dist/integrations/clipboard/image-paths.d.ts.map +1 -0
- package/dist/integrations/clipboard/image.d.ts +80 -15
- package/dist/integrations/clipboard/image.d.ts.map +1 -1
- package/dist/integrations/clipboard/text-read.d.ts +28 -0
- package/dist/integrations/clipboard/text-read.d.ts.map +1 -0
- package/dist/integrations/clipboard/text.d.ts +16 -1
- package/dist/integrations/clipboard/text.d.ts.map +1 -1
- package/dist/integrations/clipboard/wsl.d.ts +38 -0
- package/dist/integrations/clipboard/wsl.d.ts.map +1 -0
- package/dist/integrations/outstanding/collect.d.ts +51 -0
- package/dist/integrations/outstanding/collect.d.ts.map +1 -0
- package/dist/integrations/outstanding/facts.d.ts +23 -0
- package/dist/integrations/outstanding/facts.d.ts.map +1 -0
- package/dist/integrations/outstanding/note.d.ts +26 -0
- package/dist/integrations/outstanding/note.d.ts.map +1 -0
- package/dist/integrations/outstanding/progress-notices.d.ts +66 -0
- package/dist/integrations/outstanding/progress-notices.d.ts.map +1 -0
- package/dist/integrations/outstanding/status.d.ts +104 -0
- package/dist/integrations/outstanding/status.d.ts.map +1 -0
- package/dist/integrations/peers/runtime.d.ts +12 -0
- package/dist/integrations/peers/runtime.d.ts.map +1 -1
- package/dist/integrations/providers/anthropic-endpoint.d.ts +34 -0
- package/dist/integrations/providers/anthropic-endpoint.d.ts.map +1 -0
- package/dist/integrations/providers/codex-account.d.ts +30 -0
- package/dist/integrations/providers/codex-account.d.ts.map +1 -0
- package/dist/integrations/providers/codex-oauth.d.ts +12 -0
- package/dist/integrations/providers/codex-oauth.d.ts.map +1 -1
- package/dist/integrations/providers/connections.d.ts +8 -0
- package/dist/integrations/providers/connections.d.ts.map +1 -1
- package/dist/integrations/providers/credential-store.d.ts +2 -0
- package/dist/integrations/providers/credential-store.d.ts.map +1 -1
- package/dist/integrations/providers/index.d.ts +3 -1
- package/dist/integrations/providers/index.d.ts.map +1 -1
- package/dist/integrations/providers/key-migration.d.ts +22 -0
- package/dist/integrations/providers/key-migration.d.ts.map +1 -0
- package/dist/integrations/providers/model-reasoning.d.ts +1 -1
- package/dist/integrations/providers/model-reasoning.d.ts.map +1 -1
- package/dist/integrations/providers/preferences.d.ts +8 -0
- package/dist/integrations/providers/preferences.d.ts.map +1 -1
- package/dist/integrations/providers/registry.d.ts.map +1 -1
- package/dist/integrations/resident/runner-worker.js +25 -24
- package/dist/integrations/resident/runner-worker.js.map +1 -1
- package/dist/integrations/sessions/store.d.ts +13 -1
- package/dist/integrations/sessions/store.d.ts.map +1 -1
- package/dist/integrations/subagents/activity.d.ts +6 -0
- package/dist/integrations/subagents/activity.d.ts.map +1 -1
- package/dist/integrations/subagents/idle-watch.d.ts +30 -0
- package/dist/integrations/subagents/idle-watch.d.ts.map +1 -0
- package/dist/integrations/subagents/runtime.d.ts +23 -0
- package/dist/integrations/subagents/runtime.d.ts.map +1 -1
- package/dist/integrations/subagents/saved-agents.d.ts +3 -1
- package/dist/integrations/subagents/saved-agents.d.ts.map +1 -1
- package/dist/integrations/subagents/task-observation.d.ts +20 -0
- package/dist/integrations/subagents/task-observation.d.ts.map +1 -0
- package/dist/integrations/workflows/doctrine.d.ts.map +1 -1
- package/dist/integrations/workflows/host.d.ts +8 -1
- package/dist/integrations/workflows/host.d.ts.map +1 -1
- package/dist/integrations/workflows/notice.d.ts +1 -1
- package/dist/integrations/workflows/notice.d.ts.map +1 -1
- package/dist/integrations/workflows/offering.d.ts.map +1 -1
- package/dist/integrations/workflows/orphans.d.ts +38 -0
- package/dist/integrations/workflows/orphans.d.ts.map +1 -0
- package/dist/integrations/workflows/registry.d.ts +12 -1
- package/dist/integrations/workflows/registry.d.ts.map +1 -1
- package/dist/integrations/workflows/resume.d.ts +93 -0
- package/dist/integrations/workflows/resume.d.ts.map +1 -0
- package/dist/integrations/workflows/view.d.ts +13 -0
- package/dist/integrations/workflows/view.d.ts.map +1 -1
- package/dist/permissions/image-read.d.ts +20 -0
- package/dist/permissions/image-read.d.ts.map +1 -0
- package/dist/permissions/path-rules.d.ts.map +1 -1
- package/dist/rounds/gates.d.ts +63 -0
- package/dist/rounds/gates.d.ts.map +1 -0
- package/dist/rounds/goal-admission.d.ts +55 -0
- package/dist/rounds/goal-admission.d.ts.map +1 -0
- package/dist/rounds/queue.d.ts +39 -0
- package/dist/rounds/queue.d.ts.map +1 -0
- package/dist/rounds/types.d.ts +105 -0
- package/dist/rounds/types.d.ts.map +1 -0
- package/dist/rounds/wake-ledger.d.ts +126 -0
- package/dist/rounds/wake-ledger.d.ts.map +1 -0
- package/dist/spaces/git.d.ts +27 -0
- package/dist/spaces/git.d.ts.map +1 -0
- package/dist/spaces/goto.d.ts +31 -0
- package/dist/spaces/goto.d.ts.map +1 -0
- package/dist/spaces/host.d.ts +446 -0
- package/dist/spaces/host.d.ts.map +1 -0
- package/dist/spaces/input.d.ts +87 -0
- package/dist/spaces/input.d.ts.map +1 -0
- package/dist/spaces/keymap.d.ts +30 -0
- package/dist/spaces/keymap.d.ts.map +1 -0
- package/dist/spaces/layout.d.ts +34 -0
- package/dist/spaces/layout.d.ts.map +1 -0
- package/dist/spaces/mouse.d.ts +34 -0
- package/dist/spaces/mouse.d.ts.map +1 -0
- package/dist/spaces/overlay.d.ts +105 -0
- package/dist/spaces/overlay.d.ts.map +1 -0
- package/dist/spaces/palette.d.ts +35 -0
- package/dist/spaces/palette.d.ts.map +1 -0
- package/dist/spaces/peers.d.ts +19 -0
- package/dist/spaces/peers.d.ts.map +1 -0
- package/dist/spaces/prefix.d.ts +19 -0
- package/dist/spaces/prefix.d.ts.map +1 -0
- package/dist/spaces/roster.d.ts +111 -0
- package/dist/spaces/roster.d.ts.map +1 -0
- package/dist/spaces/selection.d.ts +52 -0
- package/dist/spaces/selection.d.ts.map +1 -0
- package/dist/spaces/session.d.ts +83 -0
- package/dist/spaces/session.d.ts.map +1 -0
- package/dist/spaces/sidebar.d.ts +99 -0
- package/dist/spaces/sidebar.d.ts.map +1 -0
- package/dist/spaces/signal.d.ts +28 -0
- package/dist/spaces/signal.d.ts.map +1 -0
- package/dist/spaces/status.d.ts +20 -0
- package/dist/spaces/status.d.ts.map +1 -0
- package/dist/spaces/store.d.ts +69 -0
- package/dist/spaces/store.d.ts.map +1 -0
- package/dist/spaces/tabbar.d.ts +36 -0
- package/dist/spaces/tabbar.d.ts.map +1 -0
- package/dist/spaces/tiling.d.ts +90 -0
- package/dist/spaces/tiling.d.ts.map +1 -0
- package/dist/terminal/host/cell.d.ts +35 -0
- package/dist/terminal/host/cell.d.ts.map +1 -0
- package/dist/terminal/host/frame.d.ts +64 -0
- package/dist/terminal/host/frame.d.ts.map +1 -0
- package/dist/terminal/host/index.d.ts +5 -0
- package/dist/terminal/host/index.d.ts.map +1 -0
- package/dist/terminal/host/writer.d.ts +21 -0
- package/dist/terminal/host/writer.d.ts.map +1 -0
- package/dist/terminal/host/xterm-source.d.ts +18 -0
- package/dist/terminal/host/xterm-source.d.ts.map +1 -0
- package/dist/terminal/pty.d.ts.map +1 -1
- package/dist/terminal/screen.d.ts +26 -0
- package/dist/terminal/screen.d.ts.map +1 -1
- package/dist/tui/App.d.ts +66 -15
- package/dist/tui/App.d.ts.map +1 -1
- package/dist/tui/BackgroundJobsPanel.d.ts +9 -7
- package/dist/tui/BackgroundJobsPanel.d.ts.map +1 -1
- package/dist/tui/Composer.d.ts +14 -1
- package/dist/tui/Composer.d.ts.map +1 -1
- package/dist/tui/LiveActivity.d.ts.map +1 -1
- package/dist/tui/PermissionOverlay.d.ts.map +1 -1
- package/dist/tui/Picker.d.ts.map +1 -1
- package/dist/tui/ResumePicker.d.ts.map +1 -1
- package/dist/tui/StatusBar.d.ts +9 -7
- package/dist/tui/StatusBar.d.ts.map +1 -1
- package/dist/tui/TaskList.d.ts +15 -2
- package/dist/tui/TaskList.d.ts.map +1 -1
- package/dist/tui/TextPrompt.d.ts +5 -1
- package/dist/tui/TextPrompt.d.ts.map +1 -1
- package/dist/tui/account-flow.d.ts +126 -0
- package/dist/tui/account-flow.d.ts.map +1 -0
- package/dist/tui/agent.d.ts +38 -10
- package/dist/tui/agent.d.ts.map +1 -1
- package/dist/tui/background-view.d.ts +46 -0
- package/dist/tui/background-view.d.ts.map +1 -0
- package/dist/tui/compaction-rows.d.ts.map +1 -1
- package/dist/tui/computer-use-screen-approval.d.ts +10 -0
- package/dist/tui/computer-use-screen-approval.d.ts.map +1 -0
- package/dist/tui/context-grid.d.ts +2 -0
- package/dist/tui/context-grid.d.ts.map +1 -1
- package/dist/tui/context-usage.d.ts +18 -0
- package/dist/tui/context-usage.d.ts.map +1 -1
- package/dist/tui/credential-entry.d.ts +7 -6
- package/dist/tui/credential-entry.d.ts.map +1 -1
- package/dist/tui/hypermode.d.ts +1 -3
- package/dist/tui/hypermode.d.ts.map +1 -1
- package/dist/tui/index.d.ts.map +1 -1
- package/dist/tui/keymap.d.ts +10 -1
- package/dist/tui/keymap.d.ts.map +1 -1
- package/dist/tui/launch-settings.d.ts +5 -2
- package/dist/tui/launch-settings.d.ts.map +1 -1
- package/dist/tui/login-prompt.d.ts +4 -2
- package/dist/tui/login-prompt.d.ts.map +1 -1
- package/dist/tui/model-switch.d.ts.map +1 -1
- package/dist/tui/permission-review.d.ts +5 -0
- package/dist/tui/permission-review.d.ts.map +1 -1
- package/dist/tui/plain-interruption.d.ts +3 -1
- package/dist/tui/plain-interruption.d.ts.map +1 -1
- package/dist/tui/resume-picker-state.d.ts +7 -0
- package/dist/tui/resume-picker-state.d.ts.map +1 -1
- package/dist/tui/slashCommands.d.ts +22 -26
- package/dist/tui/slashCommands.d.ts.map +1 -1
- package/dist/tui/system-rows.d.ts +0 -6
- package/dist/tui/system-rows.d.ts.map +1 -1
- package/dist/tui/tidy-tool-output.d.ts +3 -1
- package/dist/tui/tidy-tool-output.d.ts.map +1 -1
- package/dist/tui/tool-end-rows.d.ts +2 -0
- package/dist/tui/tool-end-rows.d.ts.map +1 -1
- package/dist/tui/typed-key-save.d.ts +27 -0
- package/dist/tui/typed-key-save.d.ts.map +1 -0
- package/dist/tui/zoom/entry.d.ts +37 -0
- package/dist/tui/zoom/entry.d.ts.map +1 -0
- package/dist/tui/zoom/gesture.d.ts +51 -0
- package/dist/tui/zoom/gesture.d.ts.map +1 -0
- package/dist/tui/zoom/leave.d.ts +11 -0
- package/dist/tui/zoom/leave.d.ts.map +1 -0
- package/dist/tui/zoom/local.d.ts +55 -0
- package/dist/tui/zoom/local.d.ts.map +1 -0
- package/dist/tui/zoom/proxy.d.ts +40 -0
- package/dist/tui/zoom/proxy.d.ts.map +1 -0
- package/package.json +10 -8
- package/dist/chunks/acp-P3S54TTC.js +0 -13601
- package/dist/chunks/acp-P3S54TTC.js.map +0 -6
- package/dist/chunks/activity-command-Y5ZLCQ63.js.map +0 -6
- package/dist/chunks/add-F7M57FGR.js.map +0 -6
- package/dist/chunks/agent-session-CFWQHSYT.js +0 -60
- package/dist/chunks/archive-6NM6DYAT.js.map +0 -6
- package/dist/chunks/chat-KGVPXQS6.js.map +0 -6
- package/dist/chunks/chunk-3NJPNX6V.js.map +0 -6
- package/dist/chunks/chunk-43PPWWYD.js +0 -1415
- package/dist/chunks/chunk-43PPWWYD.js.map +0 -6
- package/dist/chunks/chunk-6LLJQ3KY.js.map +0 -6
- package/dist/chunks/chunk-6Z2ZJ4BA.js.map +0 -6
- package/dist/chunks/chunk-7U36A4WQ.js.map +0 -6
- package/dist/chunks/chunk-CRWNJ62V.js.map +0 -6
- package/dist/chunks/chunk-EFEZWLZC.js.map +0 -6
- package/dist/chunks/chunk-JAYPFJGZ.js.map +0 -6
- package/dist/chunks/chunk-KHM2XON5.js.map +0 -6
- package/dist/chunks/chunk-O4MFP726.js.map +0 -6
- package/dist/chunks/chunk-RFMODICJ.js.map +0 -6
- package/dist/chunks/chunk-RSRJQB6Q.js.map +0 -6
- package/dist/chunks/chunk-UHPRMPWX.js.map +0 -6
- package/dist/chunks/chunk-W5QFVC74.js.map +0 -6
- package/dist/chunks/chunk-WKUTR7YW.js.map +0 -6
- package/dist/chunks/chunk-YAEHAYI4.js.map +0 -6
- package/dist/chunks/chunk-ZXKN4TWP.js.map +0 -6
- package/dist/chunks/cli-runtime-HTTDQPEZ.js.map +0 -6
- package/dist/chunks/dist-45IFTDJW.js.map +0 -6
- package/dist/chunks/dist-RQJEJN3Z.js.map +0 -6
- package/dist/chunks/exec-3JDAB34N.js.map +0 -6
- package/dist/chunks/host-queries-SO2NOQRR.js.map +0 -6
- package/dist/chunks/list-G6OA34RL.js.map +0 -6
- package/dist/chunks/login-J4PWR4FM.js +0 -29
- package/dist/chunks/mcp-EXFVIHPJ.js.map +0 -6
- package/dist/chunks/message-command-B4L2W4YZ.js.map +0 -6
- package/dist/chunks/operator-tools-TEP4UTI6.js.map +0 -6
- package/dist/chunks/pal-BUDEBIBJ.js.map +0 -6
- package/dist/chunks/resident-FSUGNG56.js.map +0 -6
- package/dist/chunks/resume-VXHGE5GC.js +0 -23
- package/dist/chunks/service-EP2QHCK7.js.map +0 -6
- package/dist/chunks/tui-L5GKR237.js.map +0 -6
- package/dist/chunks/worktree-ELHDXX4X.js.map +0 -6
- package/dist/integrations/subagents/batches.d.ts +0 -91
- package/dist/integrations/subagents/batches.d.ts.map +0 -1
- package/dist/integrations/subagents/slash.d.ts +0 -55
- package/dist/integrations/subagents/slash.d.ts.map +0 -1
- /package/dist/chunks/{agent-AFX2UZU5.js.map → agent-6TD66IMV.js.map} +0 -0
- /package/dist/chunks/{agent-session-CFWQHSYT.js.map → agent-session-3A5K5VK3.js.map} +0 -0
- /package/dist/chunks/{bin-main-I6CHRYYQ.js.map → bin-main-5PYV7WYI.js.map} +0 -0
- /package/dist/chunks/{commands-ZD2L5QMI.js.map → binding-EMMG5PAE.js.map} +0 -0
- /package/dist/chunks/{browser-OPMOTWTV.js.map → browser-FUFFJBRR.js.map} +0 -0
- /package/dist/chunks/{chunk-TX2PUHTP.js.map → chunk-24FBGXYR.js.map} +0 -0
- /package/dist/chunks/{chunk-2NGXQQPP.js.map → chunk-2OAD3CZE.js.map} +0 -0
- /package/dist/chunks/{chunk-JCUPTKQY.js.map → chunk-325X27UO.js.map} +0 -0
- /package/dist/chunks/{chunk-REDD2WY7.js.map → chunk-43HR3AF5.js.map} +0 -0
- /package/dist/chunks/{chunk-DESOZLEL.js.map → chunk-43PTHA5N.js.map} +0 -0
- /package/dist/chunks/{chunk-T5POXPXY.js.map → chunk-46OOPRR6.js.map} +0 -0
- /package/dist/chunks/{chunk-EFQ6FUFZ.js.map → chunk-6ZEHXLF7.js.map} +0 -0
- /package/dist/chunks/{chunk-I32JTWDW.js.map → chunk-7TBETDTX.js.map} +0 -0
- /package/dist/chunks/{chunk-465CVUN4.js.map → chunk-ADCVLGQO.js.map} +0 -0
- /package/dist/chunks/{chunk-W4E2N7TY.js.map → chunk-ANHFJD66.js.map} +0 -0
- /package/dist/chunks/{chunk-UGAT33T5.js.map → chunk-B6INWHLR.js.map} +0 -0
- /package/dist/chunks/{chunk-Y44FAVKA.js.map → chunk-BICC735N.js.map} +0 -0
- /package/dist/chunks/{chunk-UC3ZACVN.js.map → chunk-BOM64EUQ.js.map} +0 -0
- /package/dist/chunks/{chunk-CTN4O42X.js.map → chunk-D23EJNO5.js.map} +0 -0
- /package/dist/chunks/{chunk-G5RAECIB.js.map → chunk-E2MNVA3X.js.map} +0 -0
- /package/dist/chunks/{chunk-BR6EWAKQ.js.map → chunk-E3FA5H3Q.js.map} +0 -0
- /package/dist/chunks/{chunk-LUSUJZR2.js.map → chunk-EFU2OFEK.js.map} +0 -0
- /package/dist/chunks/{chunk-FPLDTTM2.js.map → chunk-FZR4XULA.js.map} +0 -0
- /package/dist/chunks/{chunk-JSFF2HGX.js.map → chunk-GAEZQRQI.js.map} +0 -0
- /package/dist/chunks/{chunk-UP3SWACV.js.map → chunk-GCFXQSN6.js.map} +0 -0
- /package/dist/chunks/{chunk-XPS3W7FC.js.map → chunk-GMUWAUKQ.js.map} +0 -0
- /package/dist/chunks/{chunk-WLAI3VCE.js.map → chunk-HH3NBBBE.js.map} +0 -0
- /package/dist/chunks/{chunk-WPNT6IGU.js.map → chunk-HV2JFRSE.js.map} +0 -0
- /package/dist/chunks/{chunk-AE4LOPZF.js.map → chunk-J2FGTLZV.js.map} +0 -0
- /package/dist/chunks/{chunk-T2PF65KB.js.map → chunk-JAB62RI5.js.map} +0 -0
- /package/dist/chunks/{chunk-HXZ2JXCO.js.map → chunk-JKPUOSDC.js.map} +0 -0
- /package/dist/chunks/{chunk-GSYPRZZU.js.map → chunk-K5FQ4G64.js.map} +0 -0
- /package/dist/chunks/{chunk-NS7EU37U.js.map → chunk-KVCYYXCS.js.map} +0 -0
- /package/dist/chunks/{chunk-PWOG3OMH.js.map → chunk-KZ5WYSA6.js.map} +0 -0
- /package/dist/chunks/{chunk-ORVWGSLG.js.map → chunk-LHZSSQ6K.js.map} +0 -0
- /package/dist/chunks/{chunk-2NFPIARP.js.map → chunk-LR4QQMJH.js.map} +0 -0
- /package/dist/chunks/{chunk-QNTR7X7D.js.map → chunk-MKRYUMLP.js.map} +0 -0
- /package/dist/chunks/{chunk-5UB2LLPG.js.map → chunk-NUNOIP4Y.js.map} +0 -0
- /package/dist/chunks/{chunk-ZRBGY4SL.js.map → chunk-NXX6C3WS.js.map} +0 -0
- /package/dist/chunks/{chunk-ZNYKZ3MI.js.map → chunk-OENL667J.js.map} +0 -0
- /package/dist/chunks/{chunk-LS75R55C.js.map → chunk-OMRU22BQ.js.map} +0 -0
- /package/dist/chunks/{chunk-BLM6IQS4.js.map → chunk-P6FEQPES.js.map} +0 -0
- /package/dist/chunks/{chunk-BIGRB2H4.js.map → chunk-P6RUYL3F.js.map} +0 -0
- /package/dist/chunks/{chunk-YPRKTJ5P.js.map → chunk-S2UDKXWH.js.map} +0 -0
- /package/dist/chunks/{chunk-XFNCCDJK.js.map → chunk-TFOIA3U3.js.map} +0 -0
- /package/dist/chunks/{chunk-NPZY5OJ5.js.map → chunk-THJQXERD.js.map} +0 -0
- /package/dist/chunks/{chunk-ZUN2WRCB.js.map → chunk-THQAGFMO.js.map} +0 -0
- /package/dist/chunks/{chunk-FKIO77IY.js.map → chunk-THUX2WOG.js.map} +0 -0
- /package/dist/chunks/{chunk-AY7B43MK.js.map → chunk-TKIWAXRU.js.map} +0 -0
- /package/dist/chunks/{chunk-QV43JSBP.js.map → chunk-TUF4NNJV.js.map} +0 -0
- /package/dist/chunks/{chunk-KK2L4FD2.js.map → chunk-U33GIKBK.js.map} +0 -0
- /package/dist/chunks/{chunk-WLUGKIYQ.js.map → chunk-U3EQTU4G.js.map} +0 -0
- /package/dist/chunks/{chunk-VR4MTSMH.js.map → chunk-U6U472VN.js.map} +0 -0
- /package/dist/chunks/{chunk-RV5QY3IY.js.map → chunk-VGUU6E6X.js.map} +0 -0
- /package/dist/chunks/{chunk-LN26A356.js.map → chunk-VY377HAA.js.map} +0 -0
- /package/dist/chunks/{chunk-HYFX32Y3.js.map → chunk-WG32TSVL.js.map} +0 -0
- /package/dist/chunks/{chunk-ZATO2QOS.js.map → chunk-WSIMHBEQ.js.map} +0 -0
- /package/dist/chunks/{chunk-JH3SDABI.js.map → chunk-X4WCRRZV.js.map} +0 -0
- /package/dist/chunks/{chunk-2OVZNENW.js.map → chunk-XH5YF2YX.js.map} +0 -0
- /package/dist/chunks/{chunk-CMAZ3DYB.js.map → chunk-YLNQLDMP.js.map} +0 -0
- /package/dist/chunks/{crash-report-2IRIZSBD.js.map → commands-LVUUZ6LF.js.map} +0 -0
- /package/dist/chunks/{dist-FNGLTQIG.js.map → crash-report-PGXMRS5P.js.map} +0 -0
- /package/dist/chunks/{dist-NL7WG7PX.js.map → dist-6HN2ZMLV.js.map} +0 -0
- /package/dist/chunks/{dist-GSYFGRQT.js.map → dist-JRBSW53E.js.map} +0 -0
- /package/dist/chunks/{dist-OJTB6QLR.js.map → dist-NSCNMOX7.js.map} +0 -0
- /package/dist/chunks/{doctor-NKPCWPB4.js.map → dist-TC6H7TPQ.js.map} +0 -0
- /package/dist/chunks/{dist-TWYNAZDN.js.map → dist-V4SNHHMB.js.map} +0 -0
- /package/dist/chunks/{dist-OCZJJFHF.js.map → dist-VV3V36IP.js.map} +0 -0
- /package/dist/chunks/{home-5OIZIDIT.js.map → doctor-P7L35KGN.js.map} +0 -0
- /package/dist/chunks/{drain-YTSVAQP5.js.map → drain-HOHRXIYY.js.map} +0 -0
- /package/dist/chunks/{eval-ILFXDQUQ.js.map → eval-2F473JAC.js.map} +0 -0
- /package/dist/chunks/{github-FH7PPWVW.js.map → github-OFCHQMQQ.js.map} +0 -0
- /package/dist/chunks/{lifecycle-RTDYXKBW.js.map → home-R6WCBSOT.js.map} +0 -0
- /package/dist/chunks/{live-44HBQCQY.js.map → host-JGPJVLTC.js.map} +0 -0
- /package/dist/chunks/{learn-RHNMJ4BD.js.map → learn-3UPHM5OI.js.map} +0 -0
- /package/dist/chunks/{learn-builtin-UQ3MWGK6.js.map → learn-builtin-3Q4BJFCF.js.map} +0 -0
- /package/dist/chunks/{login-J4PWR4FM.js.map → lifecycle-EJLVISCU.js.map} +0 -0
- /package/dist/chunks/{output-schema-FZXJ7V33.js.map → live-IWDOVSLG.js.map} +0 -0
- /package/dist/chunks/{providers-EQ32NZAT.js.map → login-B2PHE6IL.js.map} +0 -0
- /package/dist/chunks/{logs-22QAEH2Q.js.map → logs-5UTV3FMG.js.map} +0 -0
- /package/dist/chunks/{resume-VXHGE5GC.js.map → mouse-WFSJSLQD.js.map} +0 -0
- /package/dist/chunks/{resume-command-DHPXCZVL.js.map → open-LDBJL43A.js.map} +0 -0
- /package/dist/chunks/{session-step-44XBOUDV.js.map → output-schema-UKYWRZPS.js.map} +0 -0
- /package/dist/chunks/{start-check-KVZFDBD3.js.map → palette-WDPS7W6Q.js.map} +0 -0
- /package/dist/chunks/{store-JLTSSGKL.js.map → peers-FBTQW2SY.js.map} +0 -0
- /package/dist/chunks/{store-KFJWAELA.js.map → prefix-MLAG4KTK.js.map} +0 -0
- /package/dist/chunks/{store-QNY242NN.js.map → providers-M75ET3GT.js.map} +0 -0
- /package/dist/chunks/{schedule-OJMZEWJG.js.map → schedule-BK3WF2VK.js.map} +0 -0
- /package/dist/chunks/{skills-YHAQXVP2.js.map → skills-TDDPMTQI.js.map} +0 -0
- /package/dist/chunks/{state-NXFKMBOX.js.map → state-SHLWYVZU.js.map} +0 -0
- /package/dist/chunks/{upgrade-PROVWX55.js.map → upgrade-RHPZQ33L.js.map} +0 -0
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What the CLI adds to resuming a workflow run: where the editable copy of a
|
|
3
|
+
* script lives and how a script file is read back, the rules a script's text
|
|
4
|
+
* must meet, the secret that signs a run's journal, and the plain-language
|
|
5
|
+
* summary the operator reviews before a resume starts.
|
|
6
|
+
*/
|
|
7
|
+
import { type WorkflowResumeState } from '@namzu/sdk';
|
|
8
|
+
/** Longest script, in bytes, that a tool call or a saved file may carry. */
|
|
9
|
+
export declare const MAX_SCRIPT_BYTES = 262144;
|
|
10
|
+
/** The shape of a run id. */
|
|
11
|
+
export declare const RUN_ID_PATTERN: RegExp;
|
|
12
|
+
/** A script's problem with the review, or `undefined` when it can be shown whole. */
|
|
13
|
+
export declare function controlCharacterProblem(script: string): string | undefined;
|
|
14
|
+
/** Where the editable copies of this conversation's workflow scripts are kept. */
|
|
15
|
+
export declare function scriptsDirectory(runsDirectory: string): string;
|
|
16
|
+
/** `<scripts>/<name>-<runId>.js`: named after the script and the run it belongs to. */
|
|
17
|
+
export declare function editableCopyPath(runsDirectory: string, name: string, runId: string): string;
|
|
18
|
+
/** Write the editable copy (mode 0600 in a 0700 directory). Reports whether it was written. */
|
|
19
|
+
export declare function writeEditableCopy(path: string, script: string): Promise<boolean>;
|
|
20
|
+
export type SavedScript = {
|
|
21
|
+
readonly ok: true;
|
|
22
|
+
readonly text: string;
|
|
23
|
+
readonly path: string;
|
|
24
|
+
} | {
|
|
25
|
+
readonly ok: false;
|
|
26
|
+
readonly error: string;
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* Read a script the model saved earlier, fresh on every call. Only a regular
|
|
30
|
+
* file (no link, no second name) inside the conversation's scripts directory
|
|
31
|
+
* is read, so the path cannot be used to read anything else.
|
|
32
|
+
*/
|
|
33
|
+
export declare function readSavedScript(path: string, directory: string): SavedScript;
|
|
34
|
+
/**
|
|
35
|
+
* The scripts the operator was shown for approval, by file, as a hash of the
|
|
36
|
+
* text. The review records what it showed; the run takes the record and
|
|
37
|
+
* refuses to start if the file now reads differently, so what runs is what
|
|
38
|
+
* was reviewed even when something else wrote the file in between.
|
|
39
|
+
*/
|
|
40
|
+
export declare class ReviewedScripts {
|
|
41
|
+
private readonly hashes;
|
|
42
|
+
record(path: string, text: string): void;
|
|
43
|
+
/**
|
|
44
|
+
* Consume the record for `path`. `unreviewed` when no review showed it (an allow
|
|
45
|
+
* rule or a mode that does not ask), `changed` when the text is not the one shown.
|
|
46
|
+
* The record is spent either way, so a refusal is followed by a fresh review.
|
|
47
|
+
*/
|
|
48
|
+
take(path: string, text: string): 'same' | 'changed' | 'unreviewed';
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* The secret that signs every line of a run's journal. It lives beside the
|
|
52
|
+
* conversation store, outside the folders the file-editing tools write in, and
|
|
53
|
+
* is made on first use. `undefined` when it cannot be read or made: journals
|
|
54
|
+
* are then chained but not signed. The signature finds accidental damage and
|
|
55
|
+
* edits made with the file tools; it does not stop a shell the model runs on
|
|
56
|
+
* the same machine, which can read this file like any other of the user's.
|
|
57
|
+
*/
|
|
58
|
+
export declare function workflowJournalKey(home: string): string | undefined;
|
|
59
|
+
/**
|
|
60
|
+
* Whether a journal that yields no trusted record is only unverifiable because
|
|
61
|
+
* its lines were signed with another key than `key`: it chains without the key
|
|
62
|
+
* and does not with it.
|
|
63
|
+
*/
|
|
64
|
+
export declare function journalKeyMismatch(text: string, runId: string, key: string): boolean;
|
|
65
|
+
/** What the person is told when a journal's signature does not match this machine's key. */
|
|
66
|
+
export declare const KEY_MISMATCH_MESSAGE = "The journal was signed with a different key than the one this machine has now (the key file was replaced, moved or cannot be read), so none of its saved results can be trusted.";
|
|
67
|
+
/** What the operator reads before a resume starts. */
|
|
68
|
+
export interface ResumeReview {
|
|
69
|
+
readonly runId: string;
|
|
70
|
+
readonly pass: number;
|
|
71
|
+
readonly previousFinish: WorkflowResumeState['previousFinish'];
|
|
72
|
+
readonly resumable: boolean;
|
|
73
|
+
readonly legacy: boolean;
|
|
74
|
+
/** Agents whose result is saved. */
|
|
75
|
+
readonly saved: number;
|
|
76
|
+
/** Agents that started in an earlier pass and did not finish. */
|
|
77
|
+
readonly unfinished: number;
|
|
78
|
+
/** Agents that failed or were skipped. */
|
|
79
|
+
readonly failed: number;
|
|
80
|
+
/** `true`/`false` once the script is compared with the one the run started from. */
|
|
81
|
+
readonly scriptChanged?: boolean;
|
|
82
|
+
readonly brokenAt?: number;
|
|
83
|
+
readonly problems: readonly string[];
|
|
84
|
+
}
|
|
85
|
+
/** Read a run's journal and say what a resume would reuse. Synchronous: the review draws it at once. */
|
|
86
|
+
export declare function describeResume(runsDirectory: string, runId: string, script: string | undefined, key?: string): ResumeReview;
|
|
87
|
+
/** The lines of the review block. Figures are forecasts unless the script is unchanged. */
|
|
88
|
+
export declare function resumeReviewLines(review: ResumeReview): string[];
|
|
89
|
+
/** The call a model makes to resume a run, as text for a notice. */
|
|
90
|
+
export declare function resumeCallText(scriptPath: string | undefined, runId: string): string;
|
|
91
|
+
/** The file name only, for a line a person reads. */
|
|
92
|
+
export declare function shortName(path: string): string;
|
|
93
|
+
//# sourceMappingURL=resume.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resume.d.ts","sourceRoot":"","sources":["../../../src/integrations/workflows/resume.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAeH,OAAO,EACN,KAAK,mBAAmB,EAGxB,MAAM,YAAY,CAAA;AAEnB,4EAA4E;AAC5E,eAAO,MAAM,gBAAgB,SAAU,CAAA;AAEvC,6BAA6B;AAC7B,eAAO,MAAM,cAAc,QAAmB,CAAA;AAM9C,qFAAqF;AACrF,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAI1E;AAED,kFAAkF;AAClF,wBAAgB,gBAAgB,CAAC,aAAa,EAAE,MAAM,GAAG,MAAM,CAE9D;AAYD,uFAAuF;AACvF,wBAAgB,gBAAgB,CAAC,aAAa,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAE3F;AAED,+FAA+F;AAC/F,wBAAsB,iBAAiB,CAAC,IAAI,EAAE,MAAM,EAAE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,CAAC,MAAM,EAAE,OAAO,CAAA;IACxB,oCAAoC;IACpC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,iEAAiE;IACjE,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAA;IAC3B,0CAA0C;IAC1C,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;IACvB,oFAAoF;IACpF,QAAQ,CAAC,aAAa,CAAC,EAAE,OAAO,CAAA;IAChC,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;IAC1B,QAAQ,CAAC,QAAQ,EAAE,SAAS,MAAM,EAAE,CAAA;CACpC;AAED,wGAAwG;AACxG,wBAAgB,cAAc,CAC7B,aAAa,EAAE,MAAM,EACrB,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,GAAG,SAAS,EAC1B,GAAG,CAAC,EAAE,MAAM,GACV,YAAY,CA0Dd;AAaD,2FAA2F;AAC3F,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,YAAY,GAAG,MAAM,EAAE,CA+BhE;AAED,oEAAoE;AACpE,wBAAgB,cAAc,CAAC,UAAU,EAAE,MAAM,GAAG,SAAS,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAIpF;AAED,qDAAqD;AACrD,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAE9C"}
|
|
@@ -29,6 +29,8 @@ export interface WorkflowAgentView {
|
|
|
29
29
|
readonly error?: string;
|
|
30
30
|
/** The agent's own row in the subagent monitor, once it exists. */
|
|
31
31
|
readonly viewId?: string;
|
|
32
|
+
/** The agent did not run in this pass: it returned the result a pass before saved. */
|
|
33
|
+
readonly cached?: boolean;
|
|
32
34
|
}
|
|
33
35
|
export interface WorkflowPhaseView {
|
|
34
36
|
/** 1-based first-seen order; declared titles come first. */
|
|
@@ -55,6 +57,14 @@ export interface WorkflowRunView {
|
|
|
55
57
|
readonly error?: string;
|
|
56
58
|
readonly result?: unknown;
|
|
57
59
|
readonly usage?: WorkflowUsage;
|
|
60
|
+
/** 1 for a run that was never resumed; the number of the latest pass otherwise. */
|
|
61
|
+
readonly pass?: number;
|
|
62
|
+
/** Whether the run can be picked up again; only known for a run read from its journal. */
|
|
63
|
+
readonly resumable?: 'yes' | 'legacy';
|
|
64
|
+
/** The script file the latest pass was started from, when it was read from one. */
|
|
65
|
+
readonly scriptPath?: string;
|
|
66
|
+
/** The journal file holding every agent's saved result. */
|
|
67
|
+
readonly journalPath?: string;
|
|
58
68
|
}
|
|
59
69
|
/** The monitor's `workflowId` for a run's agents. */
|
|
60
70
|
export declare function workflowRunWorkflowId(runId: string): string;
|
|
@@ -70,6 +80,9 @@ export declare function initialRunView(input: {
|
|
|
70
80
|
readonly description: string;
|
|
71
81
|
readonly phases: readonly WorkflowPhaseMeta[];
|
|
72
82
|
readonly at: number;
|
|
83
|
+
readonly pass?: number;
|
|
84
|
+
readonly scriptPath?: string;
|
|
85
|
+
readonly journalPath?: string;
|
|
73
86
|
}): WorkflowRunView;
|
|
74
87
|
/** Fold one SDK event into the run. Events of another run are ignored. */
|
|
75
88
|
export declare function reduceRunView(view: WorkflowRunView, event: WorkflowEvent): WorkflowRunView;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"view.d.ts","sourceRoot":"","sources":["../../../src/integrations/workflows/view.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EACX,aAAa,EACb,qBAAqB,EACrB,iBAAiB,EACjB,aAAa,EACb,MAAM,YAAY,CAAA;AAEnB,MAAM,MAAM,iBAAiB,GAAG,SAAS,GAAG,WAAW,GAAG,QAAQ,GAAG,SAAS,CAAA;AAE9E,MAAM,MAAM,mBAAmB,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM,GAAG,QAAQ,GAAG,SAAS,CAAA;AAEtF,MAAM,WAAW,iBAAiB;IACjC,8CAA8C;IAC9C,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,KAA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GAGG;AACH,wBAAgB,eAAe,CAC9B,OAAO,EAAE,SAAS,qBAAqB,EAAE,GACvC,eAAe,GAAG,SAAS,CAoH7B"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* May a pasted or dropped image file be read?
|
|
3
|
+
*
|
|
4
|
+
* The operator put the path in the composer themself, so the file is read
|
|
5
|
+
* wherever it lives: a screenshot on the Windows desktop, reached through
|
|
6
|
+
* `/mnt/c`, is as welcome as one in the project. The one thing that stops the
|
|
7
|
+
* read is a `deny` rule for the path, checked on the path as written and on
|
|
8
|
+
* the file a link leads to. Any deny wins, however specific an allow beside it is. A rule that only asks does not refuse it (the
|
|
9
|
+
* operator already chose this file), and the folders the session reaches do
|
|
10
|
+
* not matter. A refused path is never read and never sent anywhere.
|
|
11
|
+
*/
|
|
12
|
+
import { type AuthorizationRule } from '@namzu/sdk';
|
|
13
|
+
export interface ImageReadPolicyOptions {
|
|
14
|
+
/** The operator's permission rules, read at each check. */
|
|
15
|
+
readonly rules?: () => readonly AuthorizationRule[] | undefined;
|
|
16
|
+
}
|
|
17
|
+
/** `null` when the path may be read, otherwise a plain sentence saying why not. */
|
|
18
|
+
export type ImageReadPolicy = (path: string) => Promise<string | null>;
|
|
19
|
+
export declare function createImageReadPolicy(options: ImageReadPolicyOptions): ImageReadPolicy;
|
|
20
|
+
//# sourceMappingURL=image-read.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"image-read.d.ts","sourceRoot":"","sources":["../../src/permissions/image-read.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAqB,KAAK,iBAAiB,EAAe,MAAM,YAAY,CAAA;AAEnF,MAAM,WAAW,sBAAsB;IACtC,2DAA2D;IAC3D,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,SAAS,iBAAiB,EAAE,GAAG,SAAS,CAAA;CAC/D;AAED,mFAAmF;AACnF,MAAM,MAAM,eAAe,GAAG,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAAA;AAEtE,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,sBAAsB,GAAG,eAAe,CAyBtF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"path-rules.d.ts","sourceRoot":"","sources":["../../src/permissions/path-rules.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAKH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA;AAEnD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAElD,2FAA2F;AAC3F,MAAM,WAAW,eAAe;IAC/B,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAA;IACtB,iEAAiE;IACjE,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;CAC1B;AAiBD,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAEpD;AAwFD;;;;GAIG;AACH,wBAAgB,QAAQ,CACvB,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,gBAAgB,EACxB,OAAO,GAAE,eAAoB,GAC3B,iBAAiB,CAqCnB;AAED;;;;;;GAMG;AACH,wBAAgB,sBAAsB,CACrC,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,OAAO,CAAC,gBAAgB,EAAE,OAAO,CAAC,EAC1C,OAAO,GAAE,eAAoB,GAC3B,iBAAiB,GAAG,SAAS,
|
|
1
|
+
{"version":3,"file":"path-rules.d.ts","sourceRoot":"","sources":["../../src/permissions/path-rules.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAKH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA;AAEnD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAElD,2FAA2F;AAC3F,MAAM,WAAW,eAAe;IAC/B,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAA;IACtB,iEAAiE;IACjE,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;CAC1B;AAiBD,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAEpD;AAwFD;;;;GAIG;AACH,wBAAgB,QAAQ,CACvB,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,gBAAgB,EACxB,OAAO,GAAE,eAAoB,GAC3B,iBAAiB,CAqCnB;AAED;;;;;;GAMG;AACH,wBAAgB,sBAAsB,CACrC,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,OAAO,CAAC,gBAAgB,EAAE,OAAO,CAAC,EAC1C,OAAO,GAAE,eAAoB,GAC3B,iBAAiB,GAAG,SAAS,CA2C/B"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Who may start a model turn right now, as data.
|
|
3
|
+
*
|
|
4
|
+
* Four things can start a turn with no person typing: the next queued prompt,
|
|
5
|
+
* an admitted goal round, a peer's mail and a notice for work that ended while
|
|
6
|
+
* nobody was talking. Each used to carry its own hand-copied list of
|
|
7
|
+
* conditions. The lists agree on a core (the screen is idle and ready, nothing
|
|
8
|
+
* is running or unwinding, and nothing is touching the conversation) and differ
|
|
9
|
+
* on four points, which are the rows of {@link SOURCE_GATES}. The differences
|
|
10
|
+
* are kept exactly as they were: unifying them would change what the person
|
|
11
|
+
* sees, so a change to a row is a decision of its own, made on purpose.
|
|
12
|
+
*/
|
|
13
|
+
export type RoundSource = 'queue' | 'goal' | 'peer' | 'notice';
|
|
14
|
+
/** Everything a gate reads, taken at one instant. */
|
|
15
|
+
export interface RoundGateFacts {
|
|
16
|
+
/** The screen shows no turn in progress. */
|
|
17
|
+
readonly idle: boolean;
|
|
18
|
+
/** The session finished starting up. */
|
|
19
|
+
readonly ready: boolean;
|
|
20
|
+
/** A provider is configured. */
|
|
21
|
+
readonly hasProvider: boolean;
|
|
22
|
+
/** A turn holds the abort handle: it is running, or aborting and not yet released. */
|
|
23
|
+
readonly turnRunning: boolean;
|
|
24
|
+
/** A turn that was aborted has not finished unwinding. */
|
|
25
|
+
readonly unsettledTurn: boolean;
|
|
26
|
+
readonly pendingModelSwitch: boolean;
|
|
27
|
+
/** A fork, edit or rewind owns the conversation. */
|
|
28
|
+
readonly conversationMutation: boolean;
|
|
29
|
+
readonly exporting: boolean;
|
|
30
|
+
readonly compacting: boolean;
|
|
31
|
+
/** A prompt for text, a choice or a copy is open on the screen. */
|
|
32
|
+
readonly textPrompt: boolean;
|
|
33
|
+
readonly choicePicker: boolean;
|
|
34
|
+
readonly copyPicker: boolean;
|
|
35
|
+
/** A /goal command is still writing. */
|
|
36
|
+
readonly goalCommandInFlight: boolean;
|
|
37
|
+
/** The goal driver already has an admission on disk. */
|
|
38
|
+
readonly goalAdmissionInFlight: boolean;
|
|
39
|
+
readonly queueLength: number;
|
|
40
|
+
/** The queue is held after a failed or stopped reply. */
|
|
41
|
+
readonly queuePaused: boolean;
|
|
42
|
+
/** A wake notice is already waiting in the queue. */
|
|
43
|
+
readonly noticeQueued: boolean;
|
|
44
|
+
}
|
|
45
|
+
/** What differs between the sources. Everything not listed here is the shared core. */
|
|
46
|
+
export interface SourceGate {
|
|
47
|
+
/** Runs although the queue is held. */
|
|
48
|
+
readonly ignoresPause: boolean;
|
|
49
|
+
/** Only runs when nothing is queued (a human prompt always goes first). */
|
|
50
|
+
readonly needsEmptyQueue: boolean;
|
|
51
|
+
/** Only runs when something is queued. */
|
|
52
|
+
readonly needsQueuedItem: boolean;
|
|
53
|
+
/** Needs a configured provider before it may even reserve a turn. */
|
|
54
|
+
readonly needsProvider: boolean;
|
|
55
|
+
/** Not again while a notice of its own kind is already waiting. */
|
|
56
|
+
readonly onePendingNotice: boolean;
|
|
57
|
+
/** Not again while its own previous reservation is still being written. */
|
|
58
|
+
readonly oneInFlight: boolean;
|
|
59
|
+
}
|
|
60
|
+
export declare const SOURCE_GATES: Readonly<Record<RoundSource, SourceGate>>;
|
|
61
|
+
/** Why `source` may not start a turn now, or `null` when it may. */
|
|
62
|
+
export declare function admissionBlocked(source: RoundSource, facts: RoundGateFacts): string | null;
|
|
63
|
+
//# sourceMappingURL=gates.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gates.d.ts","sourceRoot":"","sources":["../../src/rounds/gates.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,MAAM,MAAM,WAAW,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,QAAQ,CAAA;AAE9D,qDAAqD;AACrD,MAAM,WAAW,cAAc;IAC9B,4CAA4C;IAC5C,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAA;IACtB,wCAAwC;IACxC,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAA;IACvB,gCAAgC;IAChC,QAAQ,CAAC,WAAW,EAAE,OAAO,CAAA;IAC7B,sFAAsF;IACtF,QAAQ,CAAC,WAAW,EAAE,OAAO,CAAA;IAC7B,0DAA0D;IAC1D,QAAQ,CAAC,aAAa,EAAE,OAAO,CAAA;IAC/B,QAAQ,CAAC,kBAAkB,EAAE,OAAO,CAAA;IACpC,oDAAoD;IACpD,QAAQ,CAAC,oBAAoB,EAAE,OAAO,CAAA;IACtC,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAA;IAC3B,QAAQ,CAAC,UAAU,EAAE,OAAO,CAAA;IAC5B,mEAAmE;IACnE,QAAQ,CAAC,UAAU,EAAE,OAAO,CAAA;IAC5B,QAAQ,CAAC,YAAY,EAAE,OAAO,CAAA;IAC9B,QAAQ,CAAC,UAAU,EAAE,OAAO,CAAA;IAC5B,wCAAwC;IACxC,QAAQ,CAAC,mBAAmB,EAAE,OAAO,CAAA;IACrC,wDAAwD;IACxD,QAAQ,CAAC,qBAAqB,EAAE,OAAO,CAAA;IACvC,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAA;IAC5B,yDAAyD;IACzD,QAAQ,CAAC,WAAW,EAAE,OAAO,CAAA;IAC7B,qDAAqD;IACrD,QAAQ,CAAC,YAAY,EAAE,OAAO,CAAA;CAC9B;AAED,uFAAuF;AACvF,MAAM,WAAW,UAAU;IAC1B,uCAAuC;IACvC,QAAQ,CAAC,YAAY,EAAE,OAAO,CAAA;IAC9B,2EAA2E;IAC3E,QAAQ,CAAC,eAAe,EAAE,OAAO,CAAA;IACjC,0CAA0C;IAC1C,QAAQ,CAAC,eAAe,EAAE,OAAO,CAAA;IACjC,qEAAqE;IACrE,QAAQ,CAAC,aAAa,EAAE,OAAO,CAAA;IAC/B,mEAAmE;IACnE,QAAQ,CAAC,gBAAgB,EAAE,OAAO,CAAA;IAClC,2EAA2E;IAC3E,QAAQ,CAAC,WAAW,EAAE,OAAO,CAAA;CAC7B;AAED,eAAO,MAAM,YAAY,EAAE,QAAQ,CAAC,MAAM,CAAC,WAAW,EAAE,UAAU,CAAC,CAiClE,CAAA;AAED,oEAAoE;AACpE,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,WAAW,EAAE,KAAK,EAAE,cAAc,GAAG,MAAM,GAAG,IAAI,CAqB1F"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Admitting one automatic goal round.
|
|
3
|
+
*
|
|
4
|
+
* This reserves a round on disk and says what to do about it; it never starts a
|
|
5
|
+
* turn. The caller queues the result behind any person's message that arrived
|
|
6
|
+
* while the disk write was pending, which is what keeps a human prompt ahead of
|
|
7
|
+
* an automatic round. Every `await` is followed by a check that the boundary the
|
|
8
|
+
* reservation was made for still stands, because the person may have started a
|
|
9
|
+
* new conversation, a goal command or a model switch meanwhile.
|
|
10
|
+
*/
|
|
11
|
+
import { type GoalRoundAuthority, type SessionGoalActivation, type SessionGoalStore, type SessionId, type TenantId } from '@namzu/sdk';
|
|
12
|
+
import { type QueuedPrompt } from './types.js';
|
|
13
|
+
export type GoalAdmission<Trigger extends string = string> =
|
|
14
|
+
/** Nothing to run: the goal moved on, or the boundary changed, or consent was withdrawn. */
|
|
15
|
+
{
|
|
16
|
+
readonly kind: 'none';
|
|
17
|
+
}
|
|
18
|
+
/** A round was reserved; queue it. */
|
|
19
|
+
| {
|
|
20
|
+
readonly kind: 'admitted';
|
|
21
|
+
readonly round: QueuedPrompt<Trigger>;
|
|
22
|
+
}
|
|
23
|
+
/** The round limit was reached; say so in one plain sentence. */
|
|
24
|
+
| {
|
|
25
|
+
readonly kind: 'blocked';
|
|
26
|
+
readonly message: string;
|
|
27
|
+
}
|
|
28
|
+
/** The admission failed; say so in one plain sentence. */
|
|
29
|
+
| {
|
|
30
|
+
readonly kind: 'failed';
|
|
31
|
+
readonly message: string;
|
|
32
|
+
};
|
|
33
|
+
export interface GoalAdmissionDeps {
|
|
34
|
+
readonly goals: SessionGoalStore;
|
|
35
|
+
readonly tenantId: TenantId;
|
|
36
|
+
readonly sessionId: SessionId;
|
|
37
|
+
/** The conversation generation the reservation is made for. */
|
|
38
|
+
readonly generation: number;
|
|
39
|
+
readonly activation: SessionGoalActivation;
|
|
40
|
+
/** What the person armed: the goal id and revision automatic work may continue. */
|
|
41
|
+
readonly armed: {
|
|
42
|
+
readonly id: GoalRoundAuthority['id'];
|
|
43
|
+
readonly revision: number;
|
|
44
|
+
};
|
|
45
|
+
/** Resolves once earlier conversation writes are durable. */
|
|
46
|
+
readonly persistenceTail: () => Promise<unknown>;
|
|
47
|
+
/** After the persistence wait: true when a turn or the screen's state now forbids a new round. */
|
|
48
|
+
readonly boundaryChanged: () => boolean;
|
|
49
|
+
/** After the disk reservation: true when a conversation, command or switch revoked this boundary. */
|
|
50
|
+
readonly revokedMeanwhile: () => boolean;
|
|
51
|
+
/** One plain sentence for an error, ending the first part of "Automatic goal continuation stopped.". */
|
|
52
|
+
readonly explainFailure: (error: unknown) => string;
|
|
53
|
+
}
|
|
54
|
+
export declare function admitGoalRound<Trigger extends string = string>(deps: GoalAdmissionDeps): Promise<GoalAdmission<Trigger>>;
|
|
55
|
+
//# sourceMappingURL=goal-admission.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"goal-admission.d.ts","sourceRoot":"","sources":["../../src/rounds/goal-admission.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EACN,KAAK,kBAAkB,EAEvB,KAAK,qBAAqB,EAC1B,KAAK,gBAAgB,EACrB,KAAK,SAAS,EAEd,KAAK,QAAQ,EACb,MAAM,YAAY,CAAA;AAEnB,OAAO,EAAE,KAAK,YAAY,EAAmB,MAAM,YAAY,CAAA;AAE/D,MAAM,MAAM,aAAa,CAAC,OAAO,SAAS,MAAM,GAAG,MAAM;AACxD,4FAA4F;AAC1F;IAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;CAAE;AAC3B,sCAAsC;GACpC;IAAE,QAAQ,CAAC,IAAI,EAAE,UAAU,CAAC;IAAC,QAAQ,CAAC,KAAK,EAAE,YAAY,CAAC,OAAO,CAAC,CAAA;CAAE;AACtE,iEAAiE;GAC/D;IAAE,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAC;IAAC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;CAAE;AACxD,0DAA0D;GACxD;IAAE,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC;IAAC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAAA;AAExD,MAAM,WAAW,iBAAiB;IACjC,QAAQ,CAAC,KAAK,EAAE,gBAAgB,CAAA;IAChC,QAAQ,CAAC,QAAQ,EAAE,QAAQ,CAAA;IAC3B,QAAQ,CAAC,SAAS,EAAE,SAAS,CAAA;IAC7B,+DAA+D;IAC/D,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAA;IAC3B,QAAQ,CAAC,UAAU,EAAE,qBAAqB,CAAA;IAC1C,mFAAmF;IACnF,QAAQ,CAAC,KAAK,EAAE;QAAE,QAAQ,CAAC,EAAE,EAAE,kBAAkB,CAAC,IAAI,CAAC,CAAC;QAAC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,CAAA;IACpF,6DAA6D;IAC7D,QAAQ,CAAC,eAAe,EAAE,MAAM,OAAO,CAAC,OAAO,CAAC,CAAA;IAChD,kGAAkG;IAClG,QAAQ,CAAC,eAAe,EAAE,MAAM,OAAO,CAAA;IACvC,qGAAqG;IACrG,QAAQ,CAAC,gBAAgB,EAAE,MAAM,OAAO,CAAA;IACxC,wGAAwG;IACxG,QAAQ,CAAC,cAAc,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,MAAM,CAAA;CACnD;AAED,wBAAsB,cAAc,CAAC,OAAO,SAAS,MAAM,GAAG,MAAM,EACnE,IAAI,EAAE,iBAAiB,GACrB,OAAO,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC,CAiDjC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The prompts waiting for the one place that may start a model turn.
|
|
3
|
+
*
|
|
4
|
+
* Every model-bound prompt enters this FIFO, including one submitted while
|
|
5
|
+
* nothing is running: a prompt that bypassed it could start ahead of an older
|
|
6
|
+
* queued one in the gap between a turn ending and the next start. The queue is
|
|
7
|
+
* synchronous, so a turn that settles can ask "is anything waiting" and get the
|
|
8
|
+
* answer the last caller left, not the one a render captured earlier.
|
|
9
|
+
*
|
|
10
|
+
* It also carries the pause. A failed or interrupted person's turn holds
|
|
11
|
+
* automatic work until the person continues explicitly, and `epoch` counts
|
|
12
|
+
* those explicit continuations so a failure that lands after one is told apart
|
|
13
|
+
* from one that came before it.
|
|
14
|
+
*/
|
|
15
|
+
import type { QueuePause, QueuedPrompt } from './types.js';
|
|
16
|
+
export declare class RoundQueue<Trigger extends string = string> {
|
|
17
|
+
#private;
|
|
18
|
+
/** What is waiting now, in order. The same array until something changes. */
|
|
19
|
+
readonly items: () => readonly QueuedPrompt<Trigger>[];
|
|
20
|
+
/** Why the queue is held, or `null` while it may run. */
|
|
21
|
+
readonly pause: () => QueuePause | null;
|
|
22
|
+
/**
|
|
23
|
+
* Advanced by an explicit, model-bound human continuation. It also covers the
|
|
24
|
+
* interval after an error row is painted but before the failed turn settles,
|
|
25
|
+
* where a pause has not been installed yet.
|
|
26
|
+
*/
|
|
27
|
+
readonly epoch: () => number;
|
|
28
|
+
readonly replace: (next: readonly QueuedPrompt<Trigger>[]) => void;
|
|
29
|
+
readonly enqueue: (prompt: QueuedPrompt<Trigger>) => void;
|
|
30
|
+
readonly dequeue: () => QueuedPrompt<Trigger> | undefined;
|
|
31
|
+
readonly setPause: (next: QueuePause | null) => void;
|
|
32
|
+
/** Empties the queue and lifts any hold. */
|
|
33
|
+
readonly discard: () => void;
|
|
34
|
+
/** A person's explicit "go on": counts it and lifts the hold. */
|
|
35
|
+
readonly advanceContinuation: () => void;
|
|
36
|
+
/** For `useSyncExternalStore`. */
|
|
37
|
+
readonly subscribe: (listener: () => void) => (() => void);
|
|
38
|
+
}
|
|
39
|
+
//# sourceMappingURL=queue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"queue.d.ts","sourceRoot":"","sources":["../../src/rounds/queue.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAE1D,qBAAa,UAAU,CAAC,OAAO,SAAS,MAAM,GAAG,MAAM;;IAMtD,6EAA6E;IAC7E,QAAQ,CAAC,KAAK,QAAO,SAAS,YAAY,CAAC,OAAO,CAAC,EAAE,CAAe;IAEpE,yDAAyD;IACzD,QAAQ,CAAC,KAAK,QAAO,UAAU,GAAG,IAAI,CAAe;IAErD;;;;OAIG;IACH,QAAQ,CAAC,KAAK,QAAO,MAAM,CAAe;IAE1C,QAAQ,CAAC,OAAO,GAAI,MAAM,SAAS,YAAY,CAAC,OAAO,CAAC,EAAE,KAAG,IAAI,CAGhE;IAED,QAAQ,CAAC,OAAO,GAAI,QAAQ,YAAY,CAAC,OAAO,CAAC,KAAG,IAAI,CAA0C;IAElG,QAAQ,CAAC,OAAO,QAAO,YAAY,CAAC,OAAO,CAAC,GAAG,SAAS,CAIvD;IAED,QAAQ,CAAC,QAAQ,GAAI,MAAM,UAAU,GAAG,IAAI,KAAG,IAAI,CAGlD;IAED,4CAA4C;IAC5C,QAAQ,CAAC,OAAO,QAAO,IAAI,CAG1B;IAED,iEAAiE;IACjE,QAAQ,CAAC,mBAAmB,QAAO,IAAI,CAGtC;IAED,kCAAkC;IAClC,QAAQ,CAAC,SAAS,GAAI,UAAU,MAAM,IAAI,KAAG,CAAC,MAAM,IAAI,CAAC,CAKxD;CAKD"}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What a round is made of, and the pure rules about it.
|
|
3
|
+
*
|
|
4
|
+
* A round is one model turn the screen is about to start: a person's message,
|
|
5
|
+
* a peer's mail, a wake notice for work that ended while nobody was talking,
|
|
6
|
+
* or an admitted goal round. These types and rules are the vocabulary of the
|
|
7
|
+
* queue and the round driver; nothing here touches React, the terminal or a
|
|
8
|
+
* clock.
|
|
9
|
+
*/
|
|
10
|
+
import type { GoalRoundAuthority, Message, MessageAttachment } from '@namzu/sdk';
|
|
11
|
+
import type { PeerMail } from '../integrations/peers/runtime.js';
|
|
12
|
+
/**
|
|
13
|
+
* One complete composer submission waiting for the active turn to settle.
|
|
14
|
+
*
|
|
15
|
+
* A queue of strings is not a queue of prompts. The composer can submit image
|
|
16
|
+
* attachments with its text, and dropping that second field here makes the
|
|
17
|
+
* later turn look successful while asking the model a different question from
|
|
18
|
+
* the one the operator composed.
|
|
19
|
+
*/
|
|
20
|
+
export type QueuedPrompt<Trigger extends string = string> = {
|
|
21
|
+
readonly kind: 'human';
|
|
22
|
+
readonly text: string;
|
|
23
|
+
readonly attachments?: readonly MessageAttachment[];
|
|
24
|
+
/** Composed by `/skills save` or `/skills new`; see `StreamState.skillFlow`. */
|
|
25
|
+
readonly skillFlow?: true;
|
|
26
|
+
/** Server-selected data attached as host context, never reparsed for mentions or slash commands. */
|
|
27
|
+
readonly mcpContext?: string;
|
|
28
|
+
/** Only an operator-composed message can be returned to the composer. */
|
|
29
|
+
readonly recallable?: true;
|
|
30
|
+
/** The typed command when a slash action expanded it into `text` for the model. */
|
|
31
|
+
readonly recallText?: string;
|
|
32
|
+
/**
|
|
33
|
+
* Composer triggers armed when the operator sent it (`./triggers/`).
|
|
34
|
+
* Only the composer's own submit sets this; see `SubmitMeta`.
|
|
35
|
+
*/
|
|
36
|
+
readonly triggers?: readonly Trigger[];
|
|
37
|
+
} | {
|
|
38
|
+
readonly kind: 'peer';
|
|
39
|
+
readonly text: string;
|
|
40
|
+
readonly mail: PeerMail;
|
|
41
|
+
readonly generation: number;
|
|
42
|
+
} | {
|
|
43
|
+
/**
|
|
44
|
+
* What ended while nobody was talking to the model: a workflow run, a
|
|
45
|
+
* background command. The text is built when the turn is admitted,
|
|
46
|
+
* from what is still undelivered then, so it never repeats a notice a
|
|
47
|
+
* running turn already took.
|
|
48
|
+
*/
|
|
49
|
+
readonly kind: 'notice';
|
|
50
|
+
readonly text: string;
|
|
51
|
+
readonly generation: number;
|
|
52
|
+
} | {
|
|
53
|
+
readonly kind: 'goal';
|
|
54
|
+
readonly text: string;
|
|
55
|
+
readonly goalRound: GoalRoundAuthority;
|
|
56
|
+
readonly generation: number;
|
|
57
|
+
};
|
|
58
|
+
export type HumanQueuedPrompt<Trigger extends string = string> = Extract<QueuedPrompt<Trigger>, {
|
|
59
|
+
readonly kind: 'human';
|
|
60
|
+
}>;
|
|
61
|
+
export declare function isRecallableHumanPrompt<Trigger extends string>(prompt: QueuedPrompt<Trigger> | undefined): prompt is HumanQueuedPrompt<Trigger>;
|
|
62
|
+
export interface LiveInput<Trigger extends string = string> {
|
|
63
|
+
readonly prompt: HumanQueuedPrompt<Trigger>;
|
|
64
|
+
readonly message: Message;
|
|
65
|
+
readonly attachedFiles: number;
|
|
66
|
+
/** Queue identities present at acceptance; recalls may remove any of them. */
|
|
67
|
+
readonly queuedBefore: readonly QueuedPrompt<Trigger>[];
|
|
68
|
+
}
|
|
69
|
+
export interface ActiveTurnInbox<Trigger extends string = string> {
|
|
70
|
+
notify(): void;
|
|
71
|
+
accept(input: LiveInput<Trigger>): boolean;
|
|
72
|
+
drain(): Message[];
|
|
73
|
+
waitForInbound(signal: AbortSignal): Promise<void>;
|
|
74
|
+
/** Resolves when the operator wrote; a notice or peer mail does not wake it. */
|
|
75
|
+
waitForOperator(signal: AbortSignal): Promise<void>;
|
|
76
|
+
close(): readonly LiveInput<Trigger>[];
|
|
77
|
+
}
|
|
78
|
+
/** Put an undelivered steer back where it occurred among Tab-queued prompts. */
|
|
79
|
+
export declare function mergeUndeliveredLiveInput<Trigger extends string>(queued: readonly QueuedPrompt<Trigger>[], undelivered: readonly LiveInput<Trigger>[]): readonly QueuedPrompt<Trigger>[];
|
|
80
|
+
export declare function humanPromptMeta(attachedFiles: number, attachments: readonly MessageAttachment[] | undefined, live?: boolean): string | undefined;
|
|
81
|
+
export type QueuePauseOutcome = 'failed' | 'stopped' | 'paused';
|
|
82
|
+
/** A reply parked for the person; `autoResume` is set when it tries again by itself. */
|
|
83
|
+
export interface HandoffPark<Trigger extends string = string> {
|
|
84
|
+
readonly turnId: string;
|
|
85
|
+
readonly reason?: string;
|
|
86
|
+
/**
|
|
87
|
+
* The reply stopped because the account used up its allowance. Enter opens
|
|
88
|
+
* the account list and runs the same reply again on the one chosen.
|
|
89
|
+
*/
|
|
90
|
+
readonly spentAllowance?: {
|
|
91
|
+
readonly resubmit: QueuedPrompt<Trigger> | null;
|
|
92
|
+
readonly label: string;
|
|
93
|
+
};
|
|
94
|
+
readonly autoResume?: {
|
|
95
|
+
readonly attempt: number;
|
|
96
|
+
readonly at: number;
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
export interface QueuePause {
|
|
100
|
+
readonly outcome: QueuePauseOutcome;
|
|
101
|
+
/** Esc pauses the queue so the next explicit Enter can run before it. */
|
|
102
|
+
readonly source?: 'operator-interrupt';
|
|
103
|
+
}
|
|
104
|
+
export declare function goalRoundPrompt(authority: GoalRoundAuthority): string;
|
|
105
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/rounds/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,kBAAkB,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA;AAEhF,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAA;AAEhE;;;;;;;GAOG;AACH,MAAM,MAAM,YAAY,CAAC,OAAO,SAAS,MAAM,GAAG,MAAM,IACrD;IACA,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAA;IACtB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,WAAW,CAAC,EAAE,SAAS,iBAAiB,EAAE,CAAA;IACnD,gFAAgF;IAChF,QAAQ,CAAC,SAAS,CAAC,EAAE,IAAI,CAAA;IACzB,oGAAoG;IACpG,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAA;IAC5B,yEAAyE;IACzE,QAAQ,CAAC,UAAU,CAAC,EAAE,IAAI,CAAA;IAC1B,mFAAmF;IACnF,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAA;IAC5B;;;OAGG;IACH,QAAQ,CAAC,QAAQ,CAAC,EAAE,SAAS,OAAO,EAAE,CAAA;CACrC,GACD;IACA,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,IAAI,EAAE,MAA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B,QAAQ,CAAC,OAAO,EAAE,iBAAiB,CAAA;IACnC,yEAAyE;IACzE,QAAQ,CAAC,MAAM,CAAC,EAAE,oBAAoB,CAAA;CACtC;AAED,wBAAgB,eAAe,CAAC,SAAS,EAAE,kBAAkB,GAAG,MAAM,CAerE"}
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What ended while nobody was talking to the model, and has not been told yet.
|
|
3
|
+
*
|
|
4
|
+
* Five kinds of news can wait here: a background command that exited, a
|
|
5
|
+
* workflow run that ended, a message a running agent sent to the conversation,
|
|
6
|
+
* a note about something the person did to an agent, and (kept on the session
|
|
7
|
+
* itself) what a monitor said. Each is told to the model exactly once.
|
|
8
|
+
*
|
|
9
|
+
* That guarantee is a protocol with three parties. The kernel may deliver a
|
|
10
|
+
* piece of news inside a running turn, at a request boundary; the host takes a
|
|
11
|
+
* snapshot of what is still waiting when it admits a turn; and the snapshot is
|
|
12
|
+
* committed only when that turn completes, because an early throw or an abort
|
|
13
|
+
* never proves the model received it. This class holds the waiting news and the
|
|
14
|
+
* three operations; the host decides when to call them.
|
|
15
|
+
*/
|
|
16
|
+
import type { RuntimeContextMessageKind } from '@namzu/sdk';
|
|
17
|
+
/** A note for the model about something the person did to a running agent. */
|
|
18
|
+
export interface DirectChildNotice {
|
|
19
|
+
/** What the model is told. */
|
|
20
|
+
readonly context: string;
|
|
21
|
+
/** What the conversation shows. */
|
|
22
|
+
readonly label: string;
|
|
23
|
+
readonly kind: RuntimeContextMessageKind;
|
|
24
|
+
}
|
|
25
|
+
/** Background command exits for one session; replaced when the session is. */
|
|
26
|
+
export interface JobNotices<Owner> {
|
|
27
|
+
readonly ownerSession: Owner | null;
|
|
28
|
+
/** Exits the model has not been told. */
|
|
29
|
+
readonly pending: Map<string, string>;
|
|
30
|
+
/** Exits the kernel already delivered; a late UI event for one is dropped. */
|
|
31
|
+
readonly delivered: Set<string>;
|
|
32
|
+
/** Exits already painted as a row, so none is painted twice. */
|
|
33
|
+
readonly shown: Set<string>;
|
|
34
|
+
}
|
|
35
|
+
/** What a turn took at admission and may commit when it completes. */
|
|
36
|
+
export interface WakeSnapshot {
|
|
37
|
+
readonly idleJobs: {
|
|
38
|
+
readonly ids: readonly string[];
|
|
39
|
+
readonly text?: string;
|
|
40
|
+
};
|
|
41
|
+
readonly directChild: ReadonlyMap<number, DirectChildNotice>;
|
|
42
|
+
readonly workflows: ReadonlyMap<string, string>;
|
|
43
|
+
readonly childMessages: ReadonlyMap<number, string>;
|
|
44
|
+
}
|
|
45
|
+
export declare const EMPTY_WAKE_SNAPSHOT: WakeSnapshot;
|
|
46
|
+
/** News a running turn takes at a request boundary. */
|
|
47
|
+
export interface InTurnNews {
|
|
48
|
+
readonly childNotices: ReadonlyArray<readonly [number, DirectChildNotice]>;
|
|
49
|
+
readonly workflowEnds: ReadonlyArray<readonly [string, string]>;
|
|
50
|
+
readonly childMessages: ReadonlyArray<readonly [number, string]>;
|
|
51
|
+
}
|
|
52
|
+
/** What an idle wake turn takes at admission. */
|
|
53
|
+
export interface WakeTake {
|
|
54
|
+
/** Ids of the workflow news taken, so the host can mark unfinished-run notices delivered. */
|
|
55
|
+
readonly workflowIds: readonly string[];
|
|
56
|
+
readonly ended: readonly string[];
|
|
57
|
+
readonly jobLines: ReadonlyArray<readonly [string, string]>;
|
|
58
|
+
}
|
|
59
|
+
/** The prefix of a notice about runs a previous process left unfinished: told with the next turn, never waking an idle model. */
|
|
60
|
+
export declare const ORPHAN_NOTICE_PREFIX = "orphan:";
|
|
61
|
+
export declare class WakeLedger<Owner = unknown> {
|
|
62
|
+
#private;
|
|
63
|
+
/** The exits kept for the current session. Compare by identity to know a session changed. */
|
|
64
|
+
jobs(): JobNotices<Owner>;
|
|
65
|
+
/** A new session: its exits start empty. Returns them, so a listener can tell it is stale. */
|
|
66
|
+
startJobs(owner: Owner | null): JobNotices<Owner>;
|
|
67
|
+
/**
|
|
68
|
+
* A background command exited. Kept for the model unless the kernel already
|
|
69
|
+
* delivered it; `wakes` is false for a stop the person asked for. Returns
|
|
70
|
+
* whether it was kept (so the idle session may wake).
|
|
71
|
+
*/
|
|
72
|
+
noteJobExit(jobs: JobNotices<Owner>, id: string, text: string, wakes: boolean): boolean;
|
|
73
|
+
/** The kernel put these exits in front of the model during a turn. */
|
|
74
|
+
jobNoticesDelivered(owner: Owner | null, ids: readonly string[]): void;
|
|
75
|
+
/** Painted once: true the first time for this id, false afterwards. */
|
|
76
|
+
markJobShown(id: string): boolean;
|
|
77
|
+
/** A new session: workflow news starts empty. */
|
|
78
|
+
resetWorkflows(): void;
|
|
79
|
+
noteWorkflowEnd(runId: string, text: string): void;
|
|
80
|
+
/** A run ended: its phase notes (progress, not news) are dropped; the completion message says the rest. */
|
|
81
|
+
dropPhaseNotes(runId: string): void;
|
|
82
|
+
/** Ids of the workflow news waiting. */
|
|
83
|
+
workflowIds(): string[];
|
|
84
|
+
/** That news no longer needs telling (for instance a run resumed before the model heard of it). */
|
|
85
|
+
dropWorkflow(id: string): void;
|
|
86
|
+
/** A new session: agent messages start empty. */
|
|
87
|
+
resetChildMessages(): void;
|
|
88
|
+
/** What a running agent said, or that a background agent ended; told once. */
|
|
89
|
+
noteChildMessage(text: string): void;
|
|
90
|
+
noteDirectChild(notice: DirectChildNotice): void;
|
|
91
|
+
/** The conversation changed: notes about the old one's agents are not news. */
|
|
92
|
+
clearDirectChild(): void;
|
|
93
|
+
/** True when a running turn has a note about an agent it was not handed at admission. */
|
|
94
|
+
hasUnsnapshottedDirectChild(snapshot: WakeSnapshot): boolean;
|
|
95
|
+
/**
|
|
96
|
+
* Whether an idle session has news worth waking for (`jobsCanWake` is false once the opt-in cap on automatic job wakes is spent). A monitor's own ledger is
|
|
97
|
+
* on the session, so its answer comes in.
|
|
98
|
+
*/
|
|
99
|
+
wakes(owner: Owner | null, monitorsWake: boolean, jobsCanWake?: boolean): boolean;
|
|
100
|
+
/**
|
|
101
|
+
* The idle wake turn takes everything waiting, now, at admission: a turn that
|
|
102
|
+
* was already running has had its chance to take it first, so nothing is said
|
|
103
|
+
* twice. Exits are marked delivered so a late event for them is dropped.
|
|
104
|
+
*/
|
|
105
|
+
takeForWake(owner: Owner | null): WakeTake;
|
|
106
|
+
/**
|
|
107
|
+
* What a turn is about to carry. Everything stays pending until
|
|
108
|
+
* {@link commit}: an early throw or an abort never proves the model got it.
|
|
109
|
+
*/
|
|
110
|
+
snapshot(owner: Owner | null): WakeSnapshot;
|
|
111
|
+
/**
|
|
112
|
+
* A running turn reached a request boundary: it takes the news that arrived
|
|
113
|
+
* after its snapshot and removes the workflow and agent-message news (the
|
|
114
|
+
* notes about agents are removed only once the host has shown them).
|
|
115
|
+
*/
|
|
116
|
+
takeInTurn(snapshot: WakeSnapshot): InTurnNews;
|
|
117
|
+
/** The host showed these notes about agents; they are told once. */
|
|
118
|
+
dropDirectChild(ids: Iterable<number>): void;
|
|
119
|
+
/**
|
|
120
|
+
* The turn completed, so what it carried is told. `sameConversation` is false
|
|
121
|
+
* when the conversation changed under it; the agent, workflow and message
|
|
122
|
+
* news then belongs to nobody and is left alone.
|
|
123
|
+
*/
|
|
124
|
+
commit(snapshot: WakeSnapshot, owner: Owner | null, sameConversation: boolean): void;
|
|
125
|
+
}
|
|
126
|
+
//# sourceMappingURL=wake-ledger.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wake-ledger.d.ts","sourceRoot":"","sources":["../../src/rounds/wake-ledger.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,YAAY,CAAA;AAI3D,8EAA8E;AAC9E,MAAM,WAAW,iBAAiB;IACjC,8BAA8B;IAC9B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;IACxB,mCAAmC;IACnC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,IAAI,EAAE,yBAAyB,CAAA;CACxC;AAED,8EAA8E;AAC9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AIxB,yFAAyF;IACzF,2BAA2B,CAAC,QAAQ,EAAE,YAAY,GAAG,OAAO;IAI5D;;;OAGG;IACH,KAAK,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI,EAAE,YAAY,EAAE,OAAO,EAAE,WAAW,UAAO,GAAG,OAAO;IAe9E;;;;OAIG;IACH,WAAW,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI,GAAG,QAAQ;IAkB1C;;;OAGG;IACH,QAAQ,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI,GAAG,YAAY;IAkB3C;;;;OAIG;IACH,UAAU,CAAC,QAAQ,EAAE,YAAY,GAAG,UAAU;IAS9C,oEAAoE;IACpE,eAAe,CAAC,GAAG,EAAE,QAAQ,CAAC,MAAM,CAAC,GAAG,IAAI;IAI5C;;;;OAIG;IACH,MAAM,CAAC,QAAQ,EAAE,YAAY,EAAE,KAAK,EAAE,KAAK,GAAG,IAAI,EAAE,gBAAgB,EAAE,OAAO,GAAG,IAAI;CAUpF"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/** What a space's second line says about its folder. */
|
|
2
|
+
export interface GitStatus {
|
|
3
|
+
readonly branch: string;
|
|
4
|
+
/** Commits ahead of the upstream, when there is one. */
|
|
5
|
+
readonly ahead: number;
|
|
6
|
+
/** Commits behind the upstream, when there is one. */
|
|
7
|
+
readonly behind: number;
|
|
8
|
+
}
|
|
9
|
+
/** Reads a folder's branch and how far it is from its upstream; undefined outside a repository. */
|
|
10
|
+
export type GitLookup = (cwd: string) => Promise<GitStatus | undefined>;
|
|
11
|
+
/** The real lookup: two cheap git commands that read refs only and never scan the work tree. */
|
|
12
|
+
export declare const gitLookup: GitLookup;
|
|
13
|
+
/** The newest answer per folder. Asking never blocks: a lookup in flight is not repeated, and a change asks for a redraw. */
|
|
14
|
+
export declare class GitCache {
|
|
15
|
+
private readonly lookup;
|
|
16
|
+
private readonly changed;
|
|
17
|
+
private readonly now;
|
|
18
|
+
private readonly known;
|
|
19
|
+
private readonly started;
|
|
20
|
+
private readonly running;
|
|
21
|
+
constructor(lookup: GitLookup, changed: () => void, now: () => number);
|
|
22
|
+
get(cwd: string): GitStatus | undefined;
|
|
23
|
+
/** Looks again at a folder unless a lookup is running or one started within `within` ms. */
|
|
24
|
+
refresh(cwd: string, within?: number): void;
|
|
25
|
+
refreshAll(cwds: Iterable<string>): void;
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=git.d.ts.map
|