@namzu/cli 39.2.0 → 40.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 +80 -0
- package/dist/bin.js +1 -1
- package/dist/checkpoints/manifest.d.ts +7 -0
- package/dist/checkpoints/manifest.d.ts.map +1 -1
- package/dist/checkpoints/rewind-stats.d.ts +31 -0
- package/dist/checkpoints/rewind-stats.d.ts.map +1 -0
- package/dist/checkpoints/store.d.ts +24 -3
- package/dist/checkpoints/store.d.ts.map +1 -1
- package/dist/chunks/{acp-OOJ6EBDV.js → acp-E7XNZWFV.js} +40 -39
- package/dist/chunks/acp-E7XNZWFV.js.map +6 -0
- package/dist/chunks/{activity-command-H7YPFJXX.js → activity-command-QANVT2PA.js} +13 -12
- package/dist/chunks/activity-command-QANVT2PA.js.map +6 -0
- package/dist/chunks/{add-E46I4MLS.js → add-VDRMBSNZ.js} +20 -18
- package/dist/chunks/add-VDRMBSNZ.js.map +6 -0
- package/dist/chunks/{agent-A3IFU43K.js → agent-PPQJZWBO.js} +31 -30
- package/dist/chunks/agent-session-PISYPFO2.js +54 -0
- package/dist/chunks/{archive-FWKUN3JD.js → archive-SH4IG6KC.js} +11 -10
- package/dist/chunks/archive-SH4IG6KC.js.map +6 -0
- package/dist/chunks/{bin-main-YOWKMTAT.js → bin-main-D45Q7FMM.js} +5 -4
- package/dist/chunks/bin-main-D45Q7FMM.js.map +6 -0
- package/dist/chunks/{browser-ZISCIIZG.js → browser-EUFWHKYD.js} +6 -6
- package/dist/chunks/{chat-JNYLC4XC.js → chat-QDWGHEEL.js} +14 -14
- package/dist/chunks/{chunk-D24BFQ2R.js → chunk-2I3Z65TV.js} +13 -13
- package/dist/chunks/{chunk-62GB6STC.js → chunk-4HUZHYCY.js} +4 -4
- package/dist/chunks/{chunk-2SPJH5HF.js → chunk-53GEER6F.js} +3 -3
- package/dist/chunks/{chunk-7T6O6HZO.js → chunk-5HSG2XFD.js} +2 -2
- package/dist/chunks/{chunk-JPWIGZJ4.js → chunk-6PAE7AWD.js} +2 -2
- package/dist/chunks/{chunk-SN4RRU3A.js → chunk-6UDJ3PVE.js} +7 -7
- package/dist/chunks/{chunk-D57LFZYV.js → chunk-73G5WDGM.js} +3 -3
- package/dist/chunks/{chunk-BD7DGINR.js → chunk-7M6IZGAK.js} +58 -12
- package/dist/chunks/chunk-7M6IZGAK.js.map +6 -0
- package/dist/chunks/{chunk-JBI7VU5W.js → chunk-AHPIP5IE.js} +2 -2
- package/dist/chunks/{chunk-JC37Z4C2.js → chunk-AQL5A442.js} +10 -4
- package/dist/chunks/{chunk-JC37Z4C2.js.map → chunk-AQL5A442.js.map} +1 -1
- package/dist/chunks/{chunk-FEANPQH4.js → chunk-AUFSSABF.js} +3 -3
- package/dist/chunks/{chunk-5ED3H3C7.js → chunk-BJNHDKU6.js} +2 -2
- package/dist/chunks/{chunk-ARILZQYC.js → chunk-BQ7PN64G.js} +10 -10
- package/dist/chunks/{chunk-ARILZQYC.js.map → chunk-BQ7PN64G.js.map} +1 -1
- package/dist/chunks/{chunk-5Y3XJ2QD.js → chunk-BZ4U5L7N.js} +9 -9
- package/dist/chunks/{chunk-XJMHPZGJ.js → chunk-BZJNXGWW.js} +5 -5
- package/dist/chunks/{chunk-K2WHGUA7.js → chunk-C3APHRQB.js} +2 -2
- package/dist/chunks/{chunk-5WZ63LBF.js → chunk-C3ZJQLUX.js} +2 -2
- package/dist/chunks/{chunk-J3JUC6J6.js → chunk-C723P7SP.js} +6 -6
- package/dist/chunks/{chunk-RKMGVFLZ.js → chunk-D63T5UQN.js} +584 -45
- package/dist/chunks/chunk-D63T5UQN.js.map +6 -0
- package/dist/chunks/{chunk-YN5PDLFB.js → chunk-DGV5W2BU.js} +3 -3
- package/dist/chunks/{chunk-DJCBJ4D2.js → chunk-DWSATEAY.js} +2 -2
- package/dist/chunks/{chunk-ZGL3HYDE.js → chunk-EKFNDKPO.js} +3 -3
- package/dist/chunks/{chunk-KONYGNG6.js → chunk-EUBCYTOK.js} +3 -152
- package/dist/chunks/chunk-EUBCYTOK.js.map +6 -0
- package/dist/chunks/{chunk-LNANLHGE.js → chunk-FBY4LGL7.js} +3 -3
- package/dist/chunks/chunk-G6LK7V7F.js +440 -0
- package/dist/chunks/chunk-G6LK7V7F.js.map +6 -0
- package/dist/chunks/{chunk-XRLM7PL2.js → chunk-GDVYFXOR.js} +12 -12
- package/dist/chunks/{chunk-P5GCOEET.js → chunk-GTWNJ7GL.js} +4 -4
- package/dist/chunks/{chunk-UJ7NTALX.js → chunk-HBDBVQ3R.js} +12 -12
- package/dist/chunks/{chunk-BTSYFCBK.js → chunk-HLYTSH5W.js} +2 -2
- package/dist/chunks/{chunk-TAWI7GF2.js → chunk-HPLVGTBH.js} +2 -2
- package/dist/chunks/{chunk-FCM3BH55.js → chunk-I7LUF577.js} +11 -5
- package/dist/chunks/chunk-I7LUF577.js.map +6 -0
- package/dist/chunks/{chunk-KG5YQMJ7.js → chunk-IAL3F2OI.js} +8 -8
- package/dist/chunks/{chunk-KYEHKRUB.js → chunk-ILTHOMHL.js} +4 -4
- package/dist/chunks/{chunk-EEDZOGV4.js → chunk-IYUW2RAA.js} +27 -2
- package/dist/chunks/chunk-IYUW2RAA.js.map +6 -0
- package/dist/chunks/{chunk-CWFDC3IX.js → chunk-JAHVXTO4.js} +2 -2
- package/dist/chunks/{chunk-L4M6ZSF6.js → chunk-KKYIGLKI.js} +4 -4
- package/dist/chunks/{chunk-A2PPMNCN.js → chunk-KOYEUNX7.js} +5 -5
- package/dist/chunks/{chunk-S7HFDW5W.js → chunk-KWRJTEV5.js} +3 -3
- package/dist/chunks/{chunk-EWD65LWA.js → chunk-L2GX4GAQ.js} +2 -2
- package/dist/chunks/{chunk-M3TJHQF7.js → chunk-LFI6O7WL.js} +5 -5
- package/dist/chunks/{chunk-6E2F73CY.js → chunk-LM3W6AEK.js} +2 -2
- package/dist/chunks/{chunk-IYPP6HSK.js → chunk-O2B3B2TM.js} +1 -6
- package/dist/chunks/chunk-O2B3B2TM.js.map +6 -0
- package/dist/chunks/{chunk-DEYB7GQW.js → chunk-O3L5C2WT.js} +2 -2
- package/dist/chunks/{chunk-AJMJHLWZ.js → chunk-PXKXXNFU.js} +2 -2
- package/dist/chunks/{chunk-KVYTZCCO.js → chunk-QPEGCKRA.js} +2 -2
- package/dist/chunks/{chunk-TQ2PH66J.js → chunk-R7XQP4PZ.js} +3 -3
- package/dist/chunks/{chunk-COI6QKBD.js → chunk-RAS4ZA5C.js} +5 -5
- package/dist/chunks/chunk-RLMKDLGK.js +3604 -0
- package/dist/chunks/chunk-RLMKDLGK.js.map +6 -0
- package/dist/chunks/{chunk-FZZU6FGO.js → chunk-RVNLS4BN.js} +2 -2
- package/dist/chunks/{chunk-DQIPEDOM.js → chunk-RVSGU3JS.js} +2 -2
- package/dist/chunks/{chunk-MD7SYK6K.js → chunk-SOE4Q55L.js} +2 -2
- package/dist/chunks/{chunk-2ZRQG2PH.js → chunk-SUDXOGE6.js} +29 -29
- package/dist/chunks/{chunk-DK6MIKJ5.js → chunk-T6INV7EZ.js} +7 -7
- package/dist/chunks/{chunk-AZCFI7C6.js → chunk-TTDBVPB2.js} +4240 -3641
- package/dist/chunks/chunk-TTDBVPB2.js.map +6 -0
- package/dist/chunks/{chunk-OIRKBC2L.js → chunk-U5KONGAN.js} +3 -3
- package/dist/chunks/{chunk-RGCA3YZA.js → chunk-U5PL5D27.js} +3 -3
- package/dist/chunks/{chunk-AXCOWIIH.js → chunk-U5UV2YRE.js} +2 -139
- package/dist/chunks/chunk-U5UV2YRE.js.map +6 -0
- package/dist/chunks/{chunk-65L26A6S.js → chunk-WYULBUCG.js} +4 -4
- package/dist/chunks/{chunk-AWDFNOGP.js → chunk-X54VNEWE.js} +2 -2
- package/dist/chunks/{chunk-VPDXH3ZZ.js → chunk-XDGIOXTU.js} +156 -3
- package/dist/chunks/chunk-XDGIOXTU.js.map +6 -0
- package/dist/chunks/{chunk-Q733LA67.js → chunk-XLGTH7JD.js} +4 -4
- package/dist/chunks/chunk-XPS3W7FC.js +147 -0
- package/dist/chunks/chunk-XPS3W7FC.js.map +6 -0
- package/dist/chunks/chunk-XSCT3DLE.js +161 -0
- package/dist/chunks/chunk-XSCT3DLE.js.map +6 -0
- package/dist/chunks/{chunk-52NW6KXV.js → chunk-YTEGBYGL.js} +4 -4
- package/dist/chunks/{chunk-U4A4C4GE.js → chunk-ZPIHARMI.js} +4 -4
- package/dist/chunks/{cli-runtime-KFHNZS4M.js → cli-runtime-YD7OZGEU.js} +16 -14
- package/dist/chunks/cli-runtime-YD7OZGEU.js.map +6 -0
- package/dist/chunks/{commands-7FSE67S7.js → commands-5P4RLRXG.js} +5 -5
- package/dist/chunks/{crash-report-5S6I2H4P.js → crash-report-F5G32A7S.js} +9 -8
- package/dist/chunks/{dist-BMP4NVQA.js → dist-6O3HSFZP.js} +2 -2
- package/dist/chunks/{dist-VMJECBAZ.js → dist-7B6PZO7C.js} +2 -2
- package/dist/chunks/{dist-ZHD7MSXC.js → dist-DFLFYX3A.js} +2 -2
- package/dist/chunks/{dist-MLM3PBXB.js → dist-SX66KAH4.js} +2 -2
- package/dist/chunks/{dist-KGS4QDJL.js → dist-WB355CNL.js} +44 -16
- package/dist/chunks/dist-WB355CNL.js.map +6 -0
- package/dist/chunks/{dist-2QEEO2BO.js → dist-Y6SGSSMO.js} +2 -2
- package/dist/chunks/{dist-EC2S5MA6.js → dist-ZAGIMP7N.js} +2 -2
- package/dist/chunks/{doctor-P67RCEDL.js → doctor-2AOB47IO.js} +8 -8
- package/dist/chunks/{drain-GXTL5M2V.js → drain-M6AGCMJX.js} +10 -10
- package/dist/chunks/{eval-TGCAUXM6.js → eval-YHY3VO7B.js} +2 -2
- package/dist/chunks/{exec-KGTWE4LA.js → exec-KCISQ4M7.js} +33 -28
- package/dist/chunks/exec-KCISQ4M7.js.map +6 -0
- package/dist/chunks/{home-PZO47UU7.js → home-AC5LQKDR.js} +3 -3
- package/dist/chunks/{host-queries-QOFBCKMJ.js → host-queries-YQVRKUWC.js} +14 -14
- package/dist/chunks/{lifecycle-DPH2KOCH.js → lifecycle-CQXCTLAZ.js} +28 -26
- package/dist/chunks/{list-ILFBHQS7.js → list-LNKKJZSZ.js} +16 -14
- package/dist/chunks/list-LNKKJZSZ.js.map +6 -0
- package/dist/chunks/{login-EUEB5HLK.js → login-YA652CIL.js} +8 -8
- package/dist/chunks/{logs-F2II4CCT.js → logs-2PREHSOD.js} +4 -4
- package/dist/chunks/{mcp-KPJ7KVE4.js → mcp-WJB2UVQW.js} +21 -19
- package/dist/chunks/mcp-WJB2UVQW.js.map +6 -0
- package/dist/chunks/{message-command-I3J5NA35.js → message-command-IXUASFZO.js} +37 -36
- package/dist/chunks/message-command-IXUASFZO.js.map +6 -0
- package/dist/chunks/{operator-tools-2SI6AFFF.js → operator-tools-QOZZZVEC.js} +12 -12
- package/dist/chunks/{output-schema-PJNYSOO5.js → output-schema-JTPOC3NL.js} +3 -3
- package/dist/chunks/{pal-7ILZQGYB.js → pal-FNSNP47Q.js} +13 -12
- package/dist/chunks/pal-FNSNP47Q.js.map +6 -0
- package/dist/chunks/{providers-MD4HAS6J.js → providers-M5HWW7DH.js} +6 -6
- package/dist/chunks/{resident-HVI3YGHH.js → resident-R2RCAHYR.js} +24 -22
- package/dist/chunks/resident-R2RCAHYR.js.map +6 -0
- package/dist/chunks/resume-UKK4HVCO.js +22 -0
- package/dist/chunks/{resume-command-EVY3VMMM.js → resume-command-LPN33FIF.js} +6 -5
- package/dist/chunks/{schedule-QCGOB5T2.js → schedule-J2IY3SVE.js} +8 -8
- package/dist/chunks/{service-MVQA56RE.js → service-LEAVOYGP.js} +27 -25
- package/dist/chunks/service-LEAVOYGP.js.map +6 -0
- package/dist/chunks/session-step-2B46NVE7.js +30 -0
- package/dist/chunks/{skills-MTR3YGWW.js → skills-X2V3TNTK.js} +10 -9
- package/dist/chunks/skills-X2V3TNTK.js.map +6 -0
- package/dist/chunks/{state-5GSLSGR2.js → state-VDTYWZ5S.js} +4 -3
- package/dist/chunks/state-VDTYWZ5S.js.map +6 -0
- package/dist/chunks/{store-P2I5OF2S.js → store-C27Q22UV.js} +4 -4
- package/dist/chunks/{store-SQUUV4YQ.js → store-DRPRQLDD.js} +9 -9
- package/dist/chunks/{store-UMSGE2UE.js → store-S4QRR5DH.js} +6 -6
- package/dist/chunks/{tui-5EKXXN5S.js → tui-RU6CRMLX.js} +13396 -11956
- package/dist/chunks/tui-RU6CRMLX.js.map +6 -0
- package/dist/chunks/{upgrade-OZE2Z2OV.js → upgrade-I2GMLDWZ.js} +3 -4
- package/dist/chunks/upgrade-I2GMLDWZ.js.map +6 -0
- package/dist/chunks/{worktree-452AXJPV.js → worktree-F632OJNE.js} +13 -12
- package/dist/chunks/worktree-F632OJNE.js.map +6 -0
- package/dist/config/load.d.ts +6 -1
- package/dist/config/load.d.ts.map +1 -1
- package/dist/config/schema.d.ts +45 -0
- package/dist/config/schema.d.ts.map +1 -1
- package/dist/config/user-config.d.ts.map +1 -1
- package/dist/index.js +16 -14
- package/dist/integrations/compaction/idle-compaction.d.ts +84 -0
- package/dist/integrations/compaction/idle-compaction.d.ts.map +1 -0
- package/dist/integrations/providers/prompt-cache-ttl.d.ts +14 -0
- package/dist/integrations/providers/prompt-cache-ttl.d.ts.map +1 -0
- package/dist/integrations/resident/runner-worker.js +20 -19
- package/dist/integrations/resident/runner-worker.js.map +1 -1
- package/dist/integrations/sessions/recap.d.ts +56 -0
- package/dist/integrations/sessions/recap.d.ts.map +1 -0
- package/dist/integrations/sessions/store.d.ts +7 -1
- package/dist/integrations/sessions/store.d.ts.map +1 -1
- package/dist/integrations/subagents/runtime.d.ts.map +1 -1
- package/dist/memory/typed.d.ts +11 -0
- package/dist/memory/typed.d.ts.map +1 -1
- package/dist/tui/App.d.ts +17 -1
- package/dist/tui/App.d.ts.map +1 -1
- package/dist/tui/BrandHeader.d.ts.map +1 -1
- package/dist/tui/Checklist.d.ts +2 -0
- package/dist/tui/Checklist.d.ts.map +1 -1
- package/dist/tui/ChoicePicker.d.ts +4 -1
- package/dist/tui/ChoicePicker.d.ts.map +1 -1
- package/dist/tui/Composer.d.ts +15 -3
- package/dist/tui/Composer.d.ts.map +1 -1
- package/dist/tui/ComposerFrame.d.ts.map +1 -1
- package/dist/tui/ContextGridRow.d.ts +6 -0
- package/dist/tui/ContextGridRow.d.ts.map +1 -0
- package/dist/tui/LiveActivity.d.ts +9 -1
- package/dist/tui/LiveActivity.d.ts.map +1 -1
- package/dist/tui/Markdown.d.ts.map +1 -1
- package/dist/tui/ReadSearchGroup.d.ts +14 -0
- package/dist/tui/ReadSearchGroup.d.ts.map +1 -0
- package/dist/tui/RewindPicker.d.ts +14 -0
- package/dist/tui/RewindPicker.d.ts.map +1 -0
- package/dist/tui/StatusBar.d.ts +31 -12
- package/dist/tui/StatusBar.d.ts.map +1 -1
- package/dist/tui/ThemeSample.d.ts +5 -0
- package/dist/tui/ThemeSample.d.ts.map +1 -0
- package/dist/tui/Transcript.d.ts +13 -0
- package/dist/tui/Transcript.d.ts.map +1 -1
- package/dist/tui/TranscriptScreen.d.ts +24 -0
- package/dist/tui/TranscriptScreen.d.ts.map +1 -0
- package/dist/tui/agent-transcript-rows.d.ts.map +1 -1
- package/dist/tui/agent-view-commands.d.ts.map +1 -1
- package/dist/tui/agent.d.ts +62 -1
- package/dist/tui/agent.d.ts.map +1 -1
- package/dist/tui/away-recap.d.ts +73 -0
- package/dist/tui/away-recap.d.ts.map +1 -0
- package/dist/tui/context-grid.d.ts +121 -0
- package/dist/tui/context-grid.d.ts.map +1 -0
- package/dist/tui/context-meter.d.ts +9 -0
- package/dist/tui/context-meter.d.ts.map +1 -1
- package/dist/tui/context-usage.d.ts +70 -0
- package/dist/tui/context-usage.d.ts.map +1 -0
- package/dist/tui/diff-view.d.ts +1 -1
- package/dist/tui/edit-prompts.d.ts.map +1 -1
- package/dist/tui/focus-reporting.d.ts +45 -0
- package/dist/tui/focus-reporting.d.ts.map +1 -0
- package/dist/tui/group-rows.d.ts +10 -0
- package/dist/tui/group-rows.d.ts.map +1 -0
- package/dist/tui/index.d.ts.map +1 -1
- package/dist/tui/live-window.d.ts +5 -8
- package/dist/tui/live-window.d.ts.map +1 -1
- package/dist/tui/logo.d.ts +0 -1
- package/dist/tui/logo.d.ts.map +1 -1
- package/dist/tui/motion.d.ts +14 -0
- package/dist/tui/motion.d.ts.map +1 -0
- package/dist/tui/next-task.d.ts +11 -0
- package/dist/tui/next-task.d.ts.map +1 -0
- package/dist/tui/notifications.d.ts +69 -0
- package/dist/tui/notifications.d.ts.map +1 -0
- package/dist/tui/plain-interruption.d.ts +1 -1
- package/dist/tui/plain-interruption.d.ts.map +1 -1
- package/dist/tui/read-search-group.d.ts +97 -0
- package/dist/tui/read-search-group.d.ts.map +1 -0
- package/dist/tui/recap-setting.d.ts +36 -0
- package/dist/tui/recap-setting.d.ts.map +1 -0
- package/dist/tui/recap-turns.d.ts +13 -0
- package/dist/tui/recap-turns.d.ts.map +1 -0
- package/dist/tui/restored-rows.d.ts.map +1 -1
- package/dist/tui/rewind.d.ts +142 -0
- package/dist/tui/rewind.d.ts.map +1 -0
- package/dist/tui/slashCommands.d.ts +45 -0
- package/dist/tui/slashCommands.d.ts.map +1 -1
- package/dist/tui/spinner-tips-setting.d.ts +10 -0
- package/dist/tui/spinner-tips-setting.d.ts.map +1 -0
- package/dist/tui/spinner-tips.d.ts +39 -0
- package/dist/tui/spinner-tips.d.ts.map +1 -0
- package/dist/tui/stale-history-retry.d.ts +17 -0
- package/dist/tui/stale-history-retry.d.ts.map +1 -0
- package/dist/tui/system-rows.d.ts +4 -0
- package/dist/tui/system-rows.d.ts.map +1 -1
- package/dist/tui/terminal-display.d.ts +7 -0
- package/dist/tui/terminal-display.d.ts.map +1 -1
- package/dist/tui/terminal-focus.d.ts +29 -0
- package/dist/tui/terminal-focus.d.ts.map +1 -0
- package/dist/tui/terminal-title.d.ts +19 -0
- package/dist/tui/terminal-title.d.ts.map +1 -1
- package/dist/tui/theme-command.d.ts +20 -0
- package/dist/tui/theme-command.d.ts.map +1 -0
- package/dist/tui/theme-detect.d.ts +41 -0
- package/dist/tui/theme-detect.d.ts.map +1 -0
- package/dist/tui/theme-launch.d.ts +16 -0
- package/dist/tui/theme-launch.d.ts.map +1 -0
- package/dist/tui/theme-palettes.d.ts +121 -0
- package/dist/tui/theme-palettes.d.ts.map +1 -0
- package/dist/tui/theme-store.d.ts +35 -0
- package/dist/tui/theme-store.d.ts.map +1 -0
- package/dist/tui/theme.d.ts +35 -64
- package/dist/tui/theme.d.ts.map +1 -1
- package/dist/tui/tidy-tool-output.d.ts +17 -0
- package/dist/tui/tidy-tool-output.d.ts.map +1 -1
- package/dist/tui/tip-history.d.ts +25 -0
- package/dist/tui/tip-history.d.ts.map +1 -0
- package/dist/tui/title-frame.d.ts +7 -0
- package/dist/tui/title-frame.d.ts.map +1 -0
- package/dist/tui/tool-end-rows.d.ts +4 -1
- package/dist/tui/tool-end-rows.d.ts.map +1 -1
- package/dist/tui/tool-failure-text.d.ts.map +1 -1
- package/dist/tui/transcript-screen.d.ts +31 -0
- package/dist/tui/transcript-screen.d.ts.map +1 -0
- package/dist/tui/transcript-scroll.d.ts.map +1 -1
- package/dist/tui/types.d.ts +26 -1
- package/dist/tui/types.d.ts.map +1 -1
- package/dist/tui/update-notice.d.ts +12 -0
- package/dist/tui/update-notice.d.ts.map +1 -0
- package/dist/tui/use-idle-compaction.d.ts +29 -0
- package/dist/tui/use-idle-compaction.d.ts.map +1 -0
- package/dist/tui/use-spinner-tip.d.ts +23 -0
- package/dist/tui/use-spinner-tip.d.ts.map +1 -0
- package/dist/tui/useNotifications.d.ts +14 -0
- package/dist/tui/useNotifications.d.ts.map +1 -0
- package/dist/tui/useReadSearchGroup.d.ts +21 -0
- package/dist/tui/useReadSearchGroup.d.ts.map +1 -0
- package/package.json +8 -8
- package/skills/browser-automation/SKILL.md +2 -2
- package/skills/schedule-task/SKILL.md +7 -7
- package/skills/skill-creator/SKILL.md +1 -1
- package/dist/chunks/acp-OOJ6EBDV.js.map +0 -6
- package/dist/chunks/activity-command-H7YPFJXX.js.map +0 -6
- package/dist/chunks/add-E46I4MLS.js.map +0 -6
- package/dist/chunks/agent-session-V7NDZWPF.js +0 -53
- package/dist/chunks/archive-FWKUN3JD.js.map +0 -6
- package/dist/chunks/bin-main-YOWKMTAT.js.map +0 -6
- package/dist/chunks/chunk-AXCOWIIH.js.map +0 -6
- package/dist/chunks/chunk-AZCFI7C6.js.map +0 -6
- package/dist/chunks/chunk-BD7DGINR.js.map +0 -6
- package/dist/chunks/chunk-BVUYBGWV.js +0 -1796
- package/dist/chunks/chunk-BVUYBGWV.js.map +0 -6
- package/dist/chunks/chunk-CDYUGK7F.js +0 -70
- package/dist/chunks/chunk-CDYUGK7F.js.map +0 -6
- package/dist/chunks/chunk-EEDZOGV4.js.map +0 -6
- package/dist/chunks/chunk-FCM3BH55.js.map +0 -6
- package/dist/chunks/chunk-IYPP6HSK.js.map +0 -6
- package/dist/chunks/chunk-KONYGNG6.js.map +0 -6
- package/dist/chunks/chunk-QGU3QOXI.js +0 -111
- package/dist/chunks/chunk-QGU3QOXI.js.map +0 -6
- package/dist/chunks/chunk-RKMGVFLZ.js.map +0 -6
- package/dist/chunks/chunk-VPDXH3ZZ.js.map +0 -6
- package/dist/chunks/cli-runtime-KFHNZS4M.js.map +0 -6
- package/dist/chunks/dist-KGS4QDJL.js.map +0 -6
- package/dist/chunks/exec-KGTWE4LA.js.map +0 -6
- package/dist/chunks/list-ILFBHQS7.js.map +0 -6
- package/dist/chunks/mcp-KPJ7KVE4.js.map +0 -6
- package/dist/chunks/message-command-I3J5NA35.js.map +0 -6
- package/dist/chunks/pal-7ILZQGYB.js.map +0 -6
- package/dist/chunks/resident-HVI3YGHH.js.map +0 -6
- package/dist/chunks/resume-R2OYMKYY.js +0 -22
- package/dist/chunks/service-MVQA56RE.js.map +0 -6
- package/dist/chunks/session-step-XAOTLL4U.js +0 -29
- package/dist/chunks/skills-MTR3YGWW.js.map +0 -6
- package/dist/chunks/state-5GSLSGR2.js.map +0 -6
- package/dist/chunks/tui-5EKXXN5S.js.map +0 -6
- package/dist/chunks/upgrade-OZE2Z2OV.js.map +0 -6
- package/dist/chunks/worktree-452AXJPV.js.map +0 -6
- package/dist/tui/EditPromptPicker.d.ts +0 -8
- package/dist/tui/EditPromptPicker.d.ts.map +0 -1
- package/dist/tui/ToolOutputViewer.d.ts +0 -11
- package/dist/tui/ToolOutputViewer.d.ts.map +0 -1
- /package/dist/chunks/{agent-A3IFU43K.js.map → agent-PPQJZWBO.js.map} +0 -0
- /package/dist/chunks/{agent-session-V7NDZWPF.js.map → agent-session-PISYPFO2.js.map} +0 -0
- /package/dist/chunks/{browser-ZISCIIZG.js.map → browser-EUFWHKYD.js.map} +0 -0
- /package/dist/chunks/{chat-JNYLC4XC.js.map → chat-QDWGHEEL.js.map} +0 -0
- /package/dist/chunks/{chunk-D24BFQ2R.js.map → chunk-2I3Z65TV.js.map} +0 -0
- /package/dist/chunks/{chunk-62GB6STC.js.map → chunk-4HUZHYCY.js.map} +0 -0
- /package/dist/chunks/{chunk-2SPJH5HF.js.map → chunk-53GEER6F.js.map} +0 -0
- /package/dist/chunks/{chunk-7T6O6HZO.js.map → chunk-5HSG2XFD.js.map} +0 -0
- /package/dist/chunks/{chunk-JPWIGZJ4.js.map → chunk-6PAE7AWD.js.map} +0 -0
- /package/dist/chunks/{chunk-SN4RRU3A.js.map → chunk-6UDJ3PVE.js.map} +0 -0
- /package/dist/chunks/{chunk-D57LFZYV.js.map → chunk-73G5WDGM.js.map} +0 -0
- /package/dist/chunks/{chunk-JBI7VU5W.js.map → chunk-AHPIP5IE.js.map} +0 -0
- /package/dist/chunks/{chunk-FEANPQH4.js.map → chunk-AUFSSABF.js.map} +0 -0
- /package/dist/chunks/{chunk-5ED3H3C7.js.map → chunk-BJNHDKU6.js.map} +0 -0
- /package/dist/chunks/{chunk-5Y3XJ2QD.js.map → chunk-BZ4U5L7N.js.map} +0 -0
- /package/dist/chunks/{chunk-XJMHPZGJ.js.map → chunk-BZJNXGWW.js.map} +0 -0
- /package/dist/chunks/{chunk-K2WHGUA7.js.map → chunk-C3APHRQB.js.map} +0 -0
- /package/dist/chunks/{chunk-5WZ63LBF.js.map → chunk-C3ZJQLUX.js.map} +0 -0
- /package/dist/chunks/{chunk-J3JUC6J6.js.map → chunk-C723P7SP.js.map} +0 -0
- /package/dist/chunks/{chunk-YN5PDLFB.js.map → chunk-DGV5W2BU.js.map} +0 -0
- /package/dist/chunks/{chunk-DJCBJ4D2.js.map → chunk-DWSATEAY.js.map} +0 -0
- /package/dist/chunks/{chunk-ZGL3HYDE.js.map → chunk-EKFNDKPO.js.map} +0 -0
- /package/dist/chunks/{chunk-LNANLHGE.js.map → chunk-FBY4LGL7.js.map} +0 -0
- /package/dist/chunks/{chunk-XRLM7PL2.js.map → chunk-GDVYFXOR.js.map} +0 -0
- /package/dist/chunks/{chunk-P5GCOEET.js.map → chunk-GTWNJ7GL.js.map} +0 -0
- /package/dist/chunks/{chunk-UJ7NTALX.js.map → chunk-HBDBVQ3R.js.map} +0 -0
- /package/dist/chunks/{chunk-BTSYFCBK.js.map → chunk-HLYTSH5W.js.map} +0 -0
- /package/dist/chunks/{chunk-TAWI7GF2.js.map → chunk-HPLVGTBH.js.map} +0 -0
- /package/dist/chunks/{chunk-KG5YQMJ7.js.map → chunk-IAL3F2OI.js.map} +0 -0
- /package/dist/chunks/{chunk-KYEHKRUB.js.map → chunk-ILTHOMHL.js.map} +0 -0
- /package/dist/chunks/{chunk-CWFDC3IX.js.map → chunk-JAHVXTO4.js.map} +0 -0
- /package/dist/chunks/{chunk-L4M6ZSF6.js.map → chunk-KKYIGLKI.js.map} +0 -0
- /package/dist/chunks/{chunk-A2PPMNCN.js.map → chunk-KOYEUNX7.js.map} +0 -0
- /package/dist/chunks/{chunk-S7HFDW5W.js.map → chunk-KWRJTEV5.js.map} +0 -0
- /package/dist/chunks/{chunk-EWD65LWA.js.map → chunk-L2GX4GAQ.js.map} +0 -0
- /package/dist/chunks/{chunk-M3TJHQF7.js.map → chunk-LFI6O7WL.js.map} +0 -0
- /package/dist/chunks/{chunk-6E2F73CY.js.map → chunk-LM3W6AEK.js.map} +0 -0
- /package/dist/chunks/{chunk-DEYB7GQW.js.map → chunk-O3L5C2WT.js.map} +0 -0
- /package/dist/chunks/{chunk-AJMJHLWZ.js.map → chunk-PXKXXNFU.js.map} +0 -0
- /package/dist/chunks/{chunk-KVYTZCCO.js.map → chunk-QPEGCKRA.js.map} +0 -0
- /package/dist/chunks/{chunk-TQ2PH66J.js.map → chunk-R7XQP4PZ.js.map} +0 -0
- /package/dist/chunks/{chunk-COI6QKBD.js.map → chunk-RAS4ZA5C.js.map} +0 -0
- /package/dist/chunks/{chunk-FZZU6FGO.js.map → chunk-RVNLS4BN.js.map} +0 -0
- /package/dist/chunks/{chunk-DQIPEDOM.js.map → chunk-RVSGU3JS.js.map} +0 -0
- /package/dist/chunks/{chunk-MD7SYK6K.js.map → chunk-SOE4Q55L.js.map} +0 -0
- /package/dist/chunks/{chunk-2ZRQG2PH.js.map → chunk-SUDXOGE6.js.map} +0 -0
- /package/dist/chunks/{chunk-DK6MIKJ5.js.map → chunk-T6INV7EZ.js.map} +0 -0
- /package/dist/chunks/{chunk-OIRKBC2L.js.map → chunk-U5KONGAN.js.map} +0 -0
- /package/dist/chunks/{chunk-RGCA3YZA.js.map → chunk-U5PL5D27.js.map} +0 -0
- /package/dist/chunks/{chunk-65L26A6S.js.map → chunk-WYULBUCG.js.map} +0 -0
- /package/dist/chunks/{chunk-AWDFNOGP.js.map → chunk-X54VNEWE.js.map} +0 -0
- /package/dist/chunks/{chunk-Q733LA67.js.map → chunk-XLGTH7JD.js.map} +0 -0
- /package/dist/chunks/{chunk-52NW6KXV.js.map → chunk-YTEGBYGL.js.map} +0 -0
- /package/dist/chunks/{chunk-U4A4C4GE.js.map → chunk-ZPIHARMI.js.map} +0 -0
- /package/dist/chunks/{commands-7FSE67S7.js.map → commands-5P4RLRXG.js.map} +0 -0
- /package/dist/chunks/{crash-report-5S6I2H4P.js.map → crash-report-F5G32A7S.js.map} +0 -0
- /package/dist/chunks/{dist-BMP4NVQA.js.map → dist-6O3HSFZP.js.map} +0 -0
- /package/dist/chunks/{dist-VMJECBAZ.js.map → dist-7B6PZO7C.js.map} +0 -0
- /package/dist/chunks/{dist-ZHD7MSXC.js.map → dist-DFLFYX3A.js.map} +0 -0
- /package/dist/chunks/{dist-MLM3PBXB.js.map → dist-SX66KAH4.js.map} +0 -0
- /package/dist/chunks/{dist-2QEEO2BO.js.map → dist-Y6SGSSMO.js.map} +0 -0
- /package/dist/chunks/{dist-EC2S5MA6.js.map → dist-ZAGIMP7N.js.map} +0 -0
- /package/dist/chunks/{doctor-P67RCEDL.js.map → doctor-2AOB47IO.js.map} +0 -0
- /package/dist/chunks/{drain-GXTL5M2V.js.map → drain-M6AGCMJX.js.map} +0 -0
- /package/dist/chunks/{eval-TGCAUXM6.js.map → eval-YHY3VO7B.js.map} +0 -0
- /package/dist/chunks/{home-PZO47UU7.js.map → home-AC5LQKDR.js.map} +0 -0
- /package/dist/chunks/{host-queries-QOFBCKMJ.js.map → host-queries-YQVRKUWC.js.map} +0 -0
- /package/dist/chunks/{lifecycle-DPH2KOCH.js.map → lifecycle-CQXCTLAZ.js.map} +0 -0
- /package/dist/chunks/{login-EUEB5HLK.js.map → login-YA652CIL.js.map} +0 -0
- /package/dist/chunks/{logs-F2II4CCT.js.map → logs-2PREHSOD.js.map} +0 -0
- /package/dist/chunks/{operator-tools-2SI6AFFF.js.map → operator-tools-QOZZZVEC.js.map} +0 -0
- /package/dist/chunks/{output-schema-PJNYSOO5.js.map → output-schema-JTPOC3NL.js.map} +0 -0
- /package/dist/chunks/{providers-MD4HAS6J.js.map → providers-M5HWW7DH.js.map} +0 -0
- /package/dist/chunks/{resume-R2OYMKYY.js.map → resume-UKK4HVCO.js.map} +0 -0
- /package/dist/chunks/{resume-command-EVY3VMMM.js.map → resume-command-LPN33FIF.js.map} +0 -0
- /package/dist/chunks/{schedule-QCGOB5T2.js.map → schedule-J2IY3SVE.js.map} +0 -0
- /package/dist/chunks/{session-step-XAOTLL4U.js.map → session-step-2B46NVE7.js.map} +0 -0
- /package/dist/chunks/{store-P2I5OF2S.js.map → store-C27Q22UV.js.map} +0 -0
- /package/dist/chunks/{store-SQUUV4YQ.js.map → store-DRPRQLDD.js.map} +0 -0
- /package/dist/chunks/{store-UMSGE2UE.js.map → store-S4QRR5DH.js.map} +0 -0
package/dist/tui/diff-view.d.ts
CHANGED
|
@@ -87,7 +87,7 @@ export declare function diffViewBody(info: DiffInfo, options: {
|
|
|
87
87
|
}): DiffViewRow[];
|
|
88
88
|
/**
|
|
89
89
|
* The same rows as plain text, one per logical row and not wrapped: what a
|
|
90
|
-
* copy
|
|
90
|
+
* copy or an export holds, and what height is estimated from.
|
|
91
91
|
*/
|
|
92
92
|
export declare function plainDiffRows(info: Pick<DiffInfo, 'mode' | 'hunks' | 'files' | 'footer'>): string[];
|
|
93
93
|
/** `Added 2 lines, removed 1 line`; `Removed` leads when nothing was added. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"edit-prompts.d.ts","sourceRoot":"","sources":["../../src/tui/edit-prompts.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAEtD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA;AAEnD,gFAAgF;AAChF,MAAM,WAAW,cAAc;IAC9B,8CAA8C;IAC9C,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAA;IAC5B,QAAQ,CAAC,OAAO,EAAE,WAAW,CAAA;IAC7B,uEAAuE;IACvE,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAA;CAC5B;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,eAAe,CAC9B,OAAO,EAAE,SAAS,OAAO,EAAE,EAC3B,UAAU,EAAE,SAAS,iBAAiB,EAAE,GACtC,SAAS,cAAc,EAAE,
|
|
1
|
+
{"version":3,"file":"edit-prompts.d.ts","sourceRoot":"","sources":["../../src/tui/edit-prompts.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAEtD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA;AAEnD,gFAAgF;AAChF,MAAM,WAAW,cAAc;IAC9B,8CAA8C;IAC9C,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAA;IAC5B,QAAQ,CAAC,OAAO,EAAE,WAAW,CAAA;IAC7B,uEAAuE;IACvE,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAA;CAC5B;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,eAAe,CAC9B,OAAO,EAAE,SAAS,OAAO,EAAE,EAC3B,UAAU,EAAE,SAAS,iBAAiB,EAAE,GACtC,SAAS,cAAc,EAAE,CA6B3B"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Terminal focus reporting (DEC private mode 1004).
|
|
3
|
+
*
|
|
4
|
+
* With the mode on, the terminal writes `ESC [ I` when its window gains focus
|
|
5
|
+
* and `ESC [ O` when it loses it. Ink does not know these reports: left in the
|
|
6
|
+
* stream, a report reaches `useInput` as the text `[I` or `[O` and is typed
|
|
7
|
+
* into the composer. So the stream Ink reads is wrapped: every chunk is
|
|
8
|
+
* stripped of complete reports before Ink sees it, and the reports become
|
|
9
|
+
* calls to `onFocus`.
|
|
10
|
+
*
|
|
11
|
+
* The mode is held exactly while raw mode is held: switched on when Ink takes
|
|
12
|
+
* raw mode, off when it lets go (which also covers the external editor, which
|
|
13
|
+
* runs with raw mode released), and always off when the wrapper is removed.
|
|
14
|
+
* Nothing is written to a stream that is not a terminal.
|
|
15
|
+
*/
|
|
16
|
+
export declare const FOCUS_REPORTING_ENABLE = "\u001B[?1004h";
|
|
17
|
+
export declare const FOCUS_REPORTING_DISABLE = "\u001B[?1004l";
|
|
18
|
+
export type FocusEvent = 'in' | 'out';
|
|
19
|
+
/**
|
|
20
|
+
* Remove complete focus reports from a chunk. Everything else stays
|
|
21
|
+
* byte-identical: a lone ESC, arrow keys, other control sequences and text
|
|
22
|
+
* that merely looks like a report (`[I` with no ESC) are left alone.
|
|
23
|
+
*/
|
|
24
|
+
export declare function stripFocusReports(chunk: string): {
|
|
25
|
+
readonly text: string;
|
|
26
|
+
readonly events: readonly FocusEvent[];
|
|
27
|
+
};
|
|
28
|
+
interface FocusInput {
|
|
29
|
+
read: (...args: never[]) => unknown;
|
|
30
|
+
setRawMode?: (mode: boolean) => unknown;
|
|
31
|
+
isTTY?: boolean;
|
|
32
|
+
}
|
|
33
|
+
interface FocusOutput {
|
|
34
|
+
write: (text: string) => unknown;
|
|
35
|
+
isTTY?: boolean;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Wrap `stdin` so focus reports are reported through `onFocus` and never
|
|
39
|
+
* reach the reader, and keep the mode on while raw mode is held. Returns the
|
|
40
|
+
* function that undoes it (and switches the mode off). Does nothing, and
|
|
41
|
+
* returns a no-op, when either stream is not a terminal.
|
|
42
|
+
*/
|
|
43
|
+
export declare function installFocusReporting(stdin: FocusInput, stdout: FocusOutput, onFocus: (focused: boolean) => void): () => void;
|
|
44
|
+
export {};
|
|
45
|
+
//# sourceMappingURL=focus-reporting.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"focus-reporting.d.ts","sourceRoot":"","sources":["../../src/tui/focus-reporting.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,eAAO,MAAM,sBAAsB,kBAAkB,CAAA;AACrD,eAAO,MAAM,uBAAuB,kBAAkB,CAAA;AAKtD,MAAM,MAAM,UAAU,GAAG,IAAI,GAAG,KAAK,CAAA;AAErC;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG;IACjD,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,MAAM,EAAE,SAAS,UAAU,EAAE,CAAA;CACtC,CAeA;AAED,UAAU,UAAU;IACnB,IAAI,EAAE,CAAC,GAAG,IAAI,EAAE,KAAK,EAAE,KAAK,OAAO,CAAA;IACnC,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,OAAO,CAAA;IACvC,KAAK,CAAC,EAAE,OAAO,CAAA;CACf;AAED,UAAU,WAAW;IACpB,KAAK,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAA;IAChC,KAAK,CAAC,EAAE,OAAO,CAAA;CACf;AAED;;;;;GAKG;AACH,wBAAgB,qBAAqB,CACpC,KAAK,EAAE,UAAU,EACjB,MAAM,EAAE,WAAW,EACnB,OAAO,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,GACjC,MAAM,IAAI,CA2CZ"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { TranscriptMessage } from './types.js';
|
|
2
|
+
/** Calls inside a group's body are told apart by a blank line. */
|
|
3
|
+
export declare function joinSections(body: readonly string[] | undefined, section: readonly string[]): readonly string[];
|
|
4
|
+
/**
|
|
5
|
+
* Rows that are one call each and sit next to one another become one counted
|
|
6
|
+
* line, as they would have live. A row that is not a settled group between
|
|
7
|
+
* them (text, an edit, a failure) ends the run.
|
|
8
|
+
*/
|
|
9
|
+
export declare function mergeGroupRows(rows: readonly TranscriptMessage[]): readonly TranscriptMessage[];
|
|
10
|
+
//# sourceMappingURL=group-rows.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"group-rows.d.ts","sourceRoot":"","sources":["../../src/tui/group-rows.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA;AAEnD,kEAAkE;AAClE,wBAAgB,YAAY,CAC3B,IAAI,EAAE,SAAS,MAAM,EAAE,GAAG,SAAS,EACnC,OAAO,EAAE,SAAS,MAAM,EAAE,GACxB,SAAS,MAAM,EAAE,CAGnB;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,SAAS,iBAAiB,EAAE,GAAG,SAAS,iBAAiB,EAAE,CAiB/F"}
|
package/dist/tui/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tui/index.tsx"],"names":[],"mappings":"AAAA;;;GAGG;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tui/index.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAuBH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAA;AAE5C,wBAAsB,SAAS,CAC9B,GAAG,EAAE,UAAU,EACf,OAAO,GAAE;IAAE,QAAQ,CAAC,aAAa,CAAC,EAAE,SAAS,CAAC,MAAM,EAAE,GAAG,MAAM,EAAE,CAAC,CAAA;CAAO,GACvE,OAAO,CAAC,IAAI,CAAC,CAqGf"}
|
|
@@ -6,14 +6,11 @@
|
|
|
6
6
|
*
|
|
7
7
|
* Every finalized row used to go straight into `<Static>`, which prints a row
|
|
8
8
|
* once and never redraws it. That kept per-frame work bounded, and it also made
|
|
9
|
-
* changing a row that is already on screen impossible by construction
|
|
10
|
-
* expand key could not reopen a collapsed body, so expansion had to become a
|
|
11
|
-
* command that appends a second copy of the output further down.
|
|
9
|
+
* changing a row that is already on screen impossible by construction.
|
|
12
10
|
*
|
|
13
11
|
* A small window of the most recent rows is kept live instead. Inside it a row
|
|
14
|
-
* can be redrawn in place, so
|
|
15
|
-
*
|
|
16
|
-
* collapsed body already degrades correctly when a row has no number.
|
|
12
|
+
* can be redrawn in place, so a new theme or a finished call repaints where an
|
|
13
|
+
* operator actually looks; the detailed transcript shows everything, however old.
|
|
17
14
|
*
|
|
18
15
|
* ## Why the window is bounded by HEIGHT, not by a count of rows
|
|
19
16
|
*
|
|
@@ -79,8 +76,8 @@ export interface LiveWindow {
|
|
|
79
76
|
*
|
|
80
77
|
* Exported so the wiring is testable rather than only typecheckable. The caller
|
|
81
78
|
* once counted each row's `content` alone, which made a six-line collapsed tool
|
|
82
|
-
* body look like one line
|
|
83
|
-
*
|
|
79
|
+
* body look like one line: a row whose substance is a two-hundred-line body
|
|
80
|
+
* must not be admitted to a small redrawable viewport.
|
|
84
81
|
*
|
|
85
82
|
* A pending row is excluded because it is not in the static log yet; the
|
|
86
83
|
* pending content is already part of the live region outside this window.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"live-window.d.ts","sourceRoot":"","sources":["../../src/tui/live-window.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"live-window.d.ts","sourceRoot":"","sources":["../../src/tui/live-window.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AAUH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA;AAGnD,6EAA6E;AAC7E,eAAO,MAAM,uBAAuB,IAAI,CAAA;AAExC;;;;;;;;GAQG;AACH,eAAO,MAAM,aAAa,IAAI,CAAA;AAE9B,MAAM,WAAW,eAAe;IAC/B,yEAAyE;IACzE,QAAQ,CAAC,QAAQ,EAAE,SAAS,iBAAiB,EAAE,CAAA;IAC/C,mDAAmD;IACnD,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,CAAA;IACjC,kEAAkE;IAClE,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,SAAS,CAAA;IACpC,2FAA2F;IAC3F,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAA;IAC9B,mGAAmG;IACnG,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;IACxB,+EAA+E;IAC/E,QAAQ,CAAC,GAAG,CAAC,EAAE,OAAO,CAAA;CACtB;AAED,MAAM,W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";
|
|
3
|
-
export declare const NAMZU_MARK_COLOR: string;
|
|
4
3
|
/** Two-row terminal lettering; compact screens retain a plain-text signature. */
|
|
5
4
|
export declare const NAMZU_WORDMARK = "\u2588\u2584 \u2588 \u2584\u2580\u2588 \u2588\u2580\u2584\u2580\u2588 \u2580\u2588 \u2588 \u2588\n\u2588 \u2580\u2588 \u2588\u2580\u2588 \u2588 \u2580 \u2588 \u2588\u2584 \u2588\u2584\u2588";
|
|
6
5
|
export declare const NAMZU_COMPACT_WORDMARK = "\u2234 namzu";
|
package/dist/tui/logo.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logo.d.ts","sourceRoot":"","sources":["../../src/tui/logo.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"logo.d.ts","sourceRoot":"","sources":["../../src/tui/logo.ts"],"names":[],"mappings":"AAAA,6DAA6D;AAC7D,eAAO,MAAM,UAAU,WAAM,CAAA;AAE7B,iFAAiF;AACjF,eAAO,MAAM,cAAc,kMAAiD,CAAA;AAC5E,eAAO,MAAM,sBAAsB,iBAAY,CAAA;AAC/C,eAAO,MAAM,wBAAwB,KAAK,CAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Whether decoration may move: the working line's sweep and the stall tint,
|
|
3
|
+
* and the composer's pulse. Off when the person asked for reduced motion
|
|
4
|
+
* (`tui.reducedMotion`, or `/config motion on`) and wherever colour itself is
|
|
5
|
+
* refused (`NO_COLOR`, `FORCE_COLOR=0`, a dumb terminal).
|
|
6
|
+
*/
|
|
7
|
+
/** Set from the config at launch and from `/config motion`. */
|
|
8
|
+
export declare function setReducedMotion(value: boolean): void;
|
|
9
|
+
export declare function reducedMotion(): boolean;
|
|
10
|
+
/** Motion is allowed unless reduced or the terminal refuses colour. */
|
|
11
|
+
export declare function motionAllowed(env?: NodeJS.ProcessEnv): boolean;
|
|
12
|
+
/** Redraws the calling component when the setting changes. */
|
|
13
|
+
export declare function useReducedMotion(): boolean;
|
|
14
|
+
//# sourceMappingURL=motion.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"motion.d.ts","sourceRoot":"","sources":["../../src/tui/motion.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAOH,+DAA+D;AAC/D,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI,CAIrD;AAED,wBAAgB,aAAa,IAAI,OAAO,CAEvC;AAED,uEAAuE;AACvE,wBAAgB,aAAa,CAAC,GAAG,GAAE,MAAM,CAAC,UAAwB,GAAG,OAAO,CAE3E;AAOD,8DAA8D;AAC9D,wBAAgB,gBAAgB,IAAI,OAAO,CAM1C"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ChecklistItem } from './Checklist.js';
|
|
2
|
+
/**
|
|
3
|
+
* The task the plan reaches next: the first pending one whose blockers are all
|
|
4
|
+
* finished, else the first pending one. Undefined when nothing is pending.
|
|
5
|
+
* `blockedBy` names tasks by id; a blocker that is not on the list counts as
|
|
6
|
+
* finished, because nothing on screen could still be waiting on it.
|
|
7
|
+
*/
|
|
8
|
+
export declare function nextTask(tasks: readonly ChecklistItem[]): ChecklistItem | undefined;
|
|
9
|
+
/** The `Next:` line's text: whitespace collapsed to single spaces. */
|
|
10
|
+
export declare function nextTaskLine(task: ChecklistItem): string;
|
|
11
|
+
//# sourceMappingURL=next-task.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"next-task.d.ts","sourceRoot":"","sources":["../../src/tui/next-task.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAA;AAEnD;;;;;GAKG;AACH,wBAAgB,QAAQ,CAAC,KAAK,EAAE,SAAS,aAAa,EAAE,GAAG,aAAa,GAAG,SAAS,CAKnF;AAED,sEAAsE;AACtE,wBAAgB,YAAY,CAAC,IAAI,EAAE,aAAa,GAAG,MAAM,CAExD"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The footer's notice slot: a queue of short, passing messages of which one at
|
|
3
|
+
* a time is on screen, at the right end of the footer row.
|
|
4
|
+
*
|
|
5
|
+
* Pure: `reduce` takes the state and an action and returns the next state plus
|
|
6
|
+
* what the owner of the timer has to do, so the rules can be tested without a
|
|
7
|
+
* clock. `useNotifications.ts` runs the timer.
|
|
8
|
+
*
|
|
9
|
+
* Rules:
|
|
10
|
+
* - Priority is `immediate` < `high` < `medium` < `low`; among equals the
|
|
11
|
+
* earlier arrival goes first.
|
|
12
|
+
* - An `immediate` notice shows at once. The notice it covers returns after it,
|
|
13
|
+
* unless that one was `immediate` itself (then only when it asks to via
|
|
14
|
+
* `requeueOnPreempt`) or the new one `invalidates` it.
|
|
15
|
+
* - Any other notice waits. While one is showing nothing else is promoted, so a
|
|
16
|
+
* `high` notice does not displace a `medium` one that is up.
|
|
17
|
+
* - A key that is already showing or waiting is ignored, unless the new notice
|
|
18
|
+
* brings a `fold`, which merges the two and, for the showing one, restarts
|
|
19
|
+
* its timer.
|
|
20
|
+
* - A notice stays `DEFAULT_NOTICE_MS` unless it names its own time.
|
|
21
|
+
*/
|
|
22
|
+
export type NoticePriority = 'immediate' | 'high' | 'medium' | 'low';
|
|
23
|
+
/** How a notice is drawn; none given means dim. */
|
|
24
|
+
export type NoticeTone = 'dim' | 'warn' | 'error';
|
|
25
|
+
export interface Notice {
|
|
26
|
+
/** Identity: the same key is the same notice. */
|
|
27
|
+
readonly key: string;
|
|
28
|
+
readonly text: string;
|
|
29
|
+
readonly tone?: NoticeTone;
|
|
30
|
+
readonly priority: NoticePriority;
|
|
31
|
+
/** How long it stays up once shown; `DEFAULT_NOTICE_MS` when omitted. */
|
|
32
|
+
readonly timeoutMs?: number;
|
|
33
|
+
/** Keys this notice makes pointless: they are dropped, showing or waiting. */
|
|
34
|
+
readonly invalidates?: readonly string[];
|
|
35
|
+
/** Merge a newer notice of the same key into the older one. */
|
|
36
|
+
readonly fold?: (older: Notice, newer: Notice) => Notice;
|
|
37
|
+
/** An `immediate` notice that is covered by another `immediate` one comes back afterwards. */
|
|
38
|
+
readonly requeueOnPreempt?: boolean;
|
|
39
|
+
}
|
|
40
|
+
export declare const DEFAULT_NOTICE_MS = 8000;
|
|
41
|
+
export interface NoticeState {
|
|
42
|
+
readonly current: Notice | null;
|
|
43
|
+
readonly queue: readonly Notice[];
|
|
44
|
+
}
|
|
45
|
+
export declare const EMPTY_NOTICES: NoticeState;
|
|
46
|
+
export type NoticeAction = {
|
|
47
|
+
readonly type: 'add';
|
|
48
|
+
readonly notice: Notice;
|
|
49
|
+
} | {
|
|
50
|
+
readonly type: 'remove';
|
|
51
|
+
readonly key: string;
|
|
52
|
+
} | {
|
|
53
|
+
readonly type: 'expire';
|
|
54
|
+
readonly key: string;
|
|
55
|
+
};
|
|
56
|
+
/** What the timer's owner does next: run a new timer for `key`, or stop the running one. */
|
|
57
|
+
export type NoticeTimer = {
|
|
58
|
+
readonly kind: 'start';
|
|
59
|
+
readonly key: string;
|
|
60
|
+
readonly ms: number;
|
|
61
|
+
} | {
|
|
62
|
+
readonly kind: 'cancel';
|
|
63
|
+
};
|
|
64
|
+
export interface NoticeStep {
|
|
65
|
+
readonly state: NoticeState;
|
|
66
|
+
readonly timer?: NoticeTimer;
|
|
67
|
+
}
|
|
68
|
+
export declare function reduce(state: NoticeState, action: NoticeAction): NoticeStep;
|
|
69
|
+
//# sourceMappingURL=notifications.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notifications.d.ts","sourceRoot":"","sources":["../../src/tui/notifications.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,MAAM,MAAM,cAAc,GAAG,WAAW,GAAG,MAAM,GAAG,QAAQ,GAAG,KAAK,CAAA;AAEpE,mDAAmD;AACnD,MAAM,MAAM,UAAU,GAAG,KAAK,GAAG,MAAM,GAAG,O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AG,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAA;CAAE,GACrE;IAAE,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAA;CAAE,CAAA;AAE9B,MAAM,WAAW,UAAU;IAC1B,QAAQ,CAAC,KAAK,EAAE,WAAW,CAAA;IAC3B,QAAQ,CAAC,KAAK,CAAC,EAAE,WAAW,CAAA;CAC5B;AA2BD,wBAAgB,MAAM,CAAC,KAAK,EAAE,WAAW,EAAE,MAAM,EAAE,YAAY,GAAG,UAAU,CAmB3E"}
|
|
@@ -10,7 +10,7 @@ import { type Interruption } from './turn-interruption.js';
|
|
|
10
10
|
* form for `--json`, `exec`, scheduled runs and the ACP host; this module is
|
|
11
11
|
* only for the interactive screen.
|
|
12
12
|
*/
|
|
13
|
-
export type InterruptionKind = 'auth' | 'permission' | 'rate_limit' | 'server' | 'network' | 'model_not_found' | 'context' | 'content' | 'bad_request' | 'unknown';
|
|
13
|
+
export type InterruptionKind = 'auth' | 'permission' | 'rate_limit' | 'server' | 'network' | 'model_not_found' | 'context' | 'content' | 'bad_request' | 'stale_history' | 'unknown';
|
|
14
14
|
/** Which of the plain-language cases an interruption is, from facts the event carries. */
|
|
15
15
|
export declare function classifyInterruption(event: Interruption): InterruptionKind;
|
|
16
16
|
/** The human sentence inside a vendor body, or nothing when there is none. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plain-interruption.d.ts","sourceRoot":"","sources":["../../src/tui/plain-interruption.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;AAItD,OAAO,EACN,KAAK,YAAY,EAIjB,MAAM,wBAAwB,CAAA;AAG/B;;;;;;;;;GASG;AAEH,MAAM,MAAM,gBAAgB,GACzB,MAAM,GACN,YAAY,GACZ,YAAY,GACZ,QAAQ,GACR,SAAS,GACT,iBAAiB,GACjB,SAAS,GACT,SAAS,GACT,aAAa,GACb,SAAS,CAAA;A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AAC,OAAO,CAAC,EAAE,MAAM,CAAA;IACzB,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAA;IACzB,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAA;CAC5B;AAED,wBAAgB,oBAAoB,CACnC,KAAK,EAAE;IACN,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;IACxB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;IACxB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAA;IAC3B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CACxB,EACD,UAAU,CAAC,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,MAAM,EAChB,GAAG,GAAE,MAAmB,GACtB,kBAAkB,CAmBpB;AAED,+FAA+F;AAC/F,wBAAgB,yBAAyB,CAAC,MAAM,EAAE,kBAAkB,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CAIzF"}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Consecutive reads, searches, directory listings and connector calls fold
|
|
3
|
+
* into one line that counts them, "Searched for 2 patterns, read 3 files",
|
|
4
|
+
* instead of one row per call.
|
|
5
|
+
*
|
|
6
|
+
* Everything here is pure: the live run, a resumed conversation and the tests
|
|
7
|
+
* all fold through the same reducer, and the clock is a parameter.
|
|
8
|
+
*/
|
|
9
|
+
/** What a call is, for the fold. */
|
|
10
|
+
export type FoldKind = 'read' | 'search' | 'list' | 'mcp';
|
|
11
|
+
/** One call, as the fold sees it. */
|
|
12
|
+
export interface FoldOp {
|
|
13
|
+
readonly kind: FoldKind;
|
|
14
|
+
/** Reads count distinct keys: the same file read twice is one file. */
|
|
15
|
+
readonly key?: string;
|
|
16
|
+
/** The connector a call went to. */
|
|
17
|
+
readonly label?: string;
|
|
18
|
+
/** What to show under the line while the call runs. */
|
|
19
|
+
readonly hint?: string;
|
|
20
|
+
}
|
|
21
|
+
/** The running tally of one group. Immutable: every step returns a new one. */
|
|
22
|
+
export interface GroupState {
|
|
23
|
+
readonly readKeys: readonly string[];
|
|
24
|
+
/** Reads that name no file (a read-only shell command). */
|
|
25
|
+
readonly anonymousReads: number;
|
|
26
|
+
readonly searches: number;
|
|
27
|
+
readonly lists: number;
|
|
28
|
+
readonly mcpCalls: number;
|
|
29
|
+
/** Connectors, in the order they were first called. */
|
|
30
|
+
readonly mcpLabels: readonly string[];
|
|
31
|
+
/** The hint on screen, and the newest one held back until the interval ends. */
|
|
32
|
+
readonly hintShown?: string;
|
|
33
|
+
readonly hintShownAt?: number;
|
|
34
|
+
readonly hintQueued?: string;
|
|
35
|
+
}
|
|
36
|
+
export declare const EMPTY_GROUP: GroupState;
|
|
37
|
+
/** The shown hint changes at most this often; the first one is immediate. */
|
|
38
|
+
export declare const HINT_INTERVAL_MS = 700;
|
|
39
|
+
/** A hint is cut at this many characters. */
|
|
40
|
+
export declare const HINT_MAX_CHARS = 300;
|
|
41
|
+
/** Add one call. Counts only ever go up, so a failed call never makes a number drop. */
|
|
42
|
+
export declare function foldOp(state: GroupState, op: FoldOp, now: number): GroupState;
|
|
43
|
+
/** The hint to draw at `now`: the shown one, or the held one once its interval has passed. */
|
|
44
|
+
export declare function visibleHint(state: GroupState, now: number): string | undefined;
|
|
45
|
+
/**
|
|
46
|
+
* The rows of the hint under a live group, for the height estimate: the longest
|
|
47
|
+
* of the hint on screen and the one held for its interval, so the estimate is
|
|
48
|
+
* right whichever shows.
|
|
49
|
+
*/
|
|
50
|
+
export declare function hintRows(state: GroupState): readonly string[];
|
|
51
|
+
/** Two groups that sat next to each other, as one. Hints belong to a live run and are dropped. */
|
|
52
|
+
export declare function mergeGroups(a: GroupState, b: GroupState): GroupState;
|
|
53
|
+
/** One clause of the line; `count` is drawn bold. */
|
|
54
|
+
export interface GroupPart {
|
|
55
|
+
readonly verb: string;
|
|
56
|
+
readonly count?: number;
|
|
57
|
+
readonly noun?: string;
|
|
58
|
+
/** Text between the verb and the count, as the connector names. */
|
|
59
|
+
readonly names?: string;
|
|
60
|
+
readonly suffix?: string;
|
|
61
|
+
}
|
|
62
|
+
/** The clauses, in the order the line prints them. Only counts above zero appear. */
|
|
63
|
+
export declare function groupParts(state: GroupState, live: boolean): readonly GroupPart[];
|
|
64
|
+
/** A run of text and whether it is a figure. */
|
|
65
|
+
export interface GroupSegment {
|
|
66
|
+
readonly text: string;
|
|
67
|
+
readonly bold: boolean;
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* The line as segments, the figures marked for bold. The first letter is
|
|
71
|
+
* capital; a live line ends in an ellipsis. `leading` is for clauses that
|
|
72
|
+
* come before the counts.
|
|
73
|
+
*/
|
|
74
|
+
export declare function groupSegments(state: GroupState, live: boolean, leading?: readonly GroupPart[]): readonly GroupSegment[];
|
|
75
|
+
/** The line as plain text. */
|
|
76
|
+
export declare function groupText(state: GroupState, live: boolean): string;
|
|
77
|
+
type ShellClass = 'search' | 'list' | 'read';
|
|
78
|
+
/**
|
|
79
|
+
* Whether a shell command only looks: every piece is a known search, read or
|
|
80
|
+
* list command. The class is the first that applies of list, search, read.
|
|
81
|
+
* A line of nothing but echo/printf/true is not one.
|
|
82
|
+
*/
|
|
83
|
+
export declare function classifyShell(command: string): ShellClass | undefined;
|
|
84
|
+
/** A path as a person would say it: from the working folder, else from home, else whole. */
|
|
85
|
+
export declare function displayPath(path: string, cwd: string | undefined): string;
|
|
86
|
+
export interface FoldCall {
|
|
87
|
+
readonly toolName: string;
|
|
88
|
+
readonly input: unknown;
|
|
89
|
+
readonly cwd?: string;
|
|
90
|
+
/** The call's view said it explores. */
|
|
91
|
+
readonly exploration?: boolean;
|
|
92
|
+
readonly label?: string;
|
|
93
|
+
}
|
|
94
|
+
/** What a call is to the fold, or undefined when it stays a row of its own. */
|
|
95
|
+
export declare function classifyCall(call: FoldCall): FoldOp | undefined;
|
|
96
|
+
export {};
|
|
97
|
+
//# sourceMappingURL=read-search-group.d.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,GAAG,MAAM,CAAA;AAuE5C;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE,MAAM,GAAG,UAAU,GAAG,SAAS,CAmBrE;AAED,4FAA4F;AAC5F,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,CASzE;AAED,MAAM,WAAW,QAAQ;IACxB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;IACzB,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAA;IACvB,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,CAAA;IACrB,wCAAwC;IACxC,QAAQ,CAAC,WAAW,CAAC,EAAE,OAAO,CAAA;IAC9B,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CACvB;AAYD,+EAA+E;AAC/E,wBAAgB,YAAY,CAAC,IAAI,EAAE,QAAQ,GAAG,MAAM,GAAG,SAAS,CA+C/D"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Whether the away recap is on, and how a person changes it.
|
|
3
|
+
*
|
|
4
|
+
* Order: `NAMZU_RECAP` set to `0`/`false`/`no`/`off` turns it off; set to
|
|
5
|
+
* `1`/`true`/`yes`/`on` turns it on; a run with no screen (`exec`, `--json`)
|
|
6
|
+
* never recaps; `tui.recap: false` turns it off; otherwise it is on.
|
|
7
|
+
*/
|
|
8
|
+
import type { TuiConfig } from '../config/schema.js';
|
|
9
|
+
export declare function recapEnabled(input: {
|
|
10
|
+
readonly env: Readonly<Record<string, string | undefined>>;
|
|
11
|
+
readonly tui: Pick<TuiConfig, 'recap'> | undefined;
|
|
12
|
+
/** A screen a person is looking at; false for a run without one. */
|
|
13
|
+
readonly interactive: boolean;
|
|
14
|
+
}): boolean;
|
|
15
|
+
/**
|
|
16
|
+
* How long after a reply ended the recap is written, in milliseconds. Three
|
|
17
|
+
* minutes unless `NAMZU_RECAP_WAIT_MS` names a whole number of milliseconds
|
|
18
|
+
* (a way to test the recap without waiting).
|
|
19
|
+
*/
|
|
20
|
+
export declare function recapWaitMs(env: Readonly<Record<string, string | undefined>>): number;
|
|
21
|
+
/**
|
|
22
|
+
* `/config recap on|off`: off writes `tui.recap: false` to the user config, on
|
|
23
|
+
* removes the key (on is the default). Says so when the environment decides
|
|
24
|
+
* otherwise for later starts.
|
|
25
|
+
*/
|
|
26
|
+
export declare function setRecapSetting(on: boolean, opts?: {
|
|
27
|
+
readonly home?: string;
|
|
28
|
+
readonly env?: NodeJS.ProcessEnv;
|
|
29
|
+
}): string;
|
|
30
|
+
/** `/config recap list`: what is in force. */
|
|
31
|
+
export declare function describeRecapSetting(input: {
|
|
32
|
+
readonly enabledNow: boolean;
|
|
33
|
+
readonly env: Readonly<Record<string, string | undefined>>;
|
|
34
|
+
readonly tui: Pick<TuiConfig, 'recap'> | undefined;
|
|
35
|
+
}): string;
|
|
36
|
+
//# sourceMappingURL=recap-setting.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"recap-setting.d.ts","sourceRoot":"","sources":["../../src/tui/recap-setting.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAA;AAQpD,wBAAgB,YAAY,CAAC,KAAK,EAAE;IACnC,QAAQ,CAAC,GAAG,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC,CAAA;IAC1D,QAAQ,CAAC,GAAG,EAAE,IAAI,CAAC,SAAS,EAAE,OAAO,CAAC,GAAG,SAAS,CAAA;IAClD,oEAAoE;IACpE,QAAQ,CAAC,WAAW,EAAE,OAAO,CAAA;CAC7B,GAAG,OAAO,CAMV;AAED;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,GAAG,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC,GAAG,MAAM,CAIrF;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAC9B,EAAE,EAAE,OAAO,EACX,IAAI,GAAE;IAAE,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC,UAAU,CAAA;CAAO,GACrE,MAAM,CAoBR;AAED,8CAA8C;AAC9C,wBAAgB,oBAAoB,CAAC,KAAK,EAAE;IAC3C,QAAQ,CAAC,UAAU,EAAE,OAAO,CAAA;IAC5B,QAAQ,CAAC,GAAG,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC,CAAA;IAC1D,QAAQ,CAAC,GAAG,EAAE,IAAI,CAAC,SAAS,EAAE,OAAO,CAAC,GAAG,SAAS,CAAA;CAClD,GAAG,MAAM,CAUT"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What the recap reads from the transcript: which rows are typed prompts,
|
|
3
|
+
* which are finished replies, and which are earlier recaps. Tool output,
|
|
4
|
+
* notices and queued deliveries from a schedule are none of these.
|
|
5
|
+
*/
|
|
6
|
+
import type { RecapTurn } from '../integrations/sessions/recap.js';
|
|
7
|
+
import type { RecapRowKind } from './away-recap.js';
|
|
8
|
+
import type { TranscriptMessage } from './types.js';
|
|
9
|
+
/** The rows the countdown rules count, oldest first. */
|
|
10
|
+
export declare function recapRows(messages: readonly TranscriptMessage[]): readonly RecapRowKind[];
|
|
11
|
+
/** The prompts and replies, oldest first, for the digest. */
|
|
12
|
+
export declare function recapTurns(messages: readonly TranscriptMessage[]): readonly RecapTurn[];
|
|
13
|
+
//# sourceMappingURL=recap-turns.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"recap-turns.d.ts","sourceRoot":"","sources":["../../src/tui/recap-turns.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,M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CACtC;AAED,wBAAgB,wBAAwB,CACvC,QAAQ,EAAE,SAAS,OAAO,EAAE,EAC5B,MAAM,EAAE,MAAM,MAAM,EACpB,OAAO,EAAE,cAAc,GACrB,kBAAkB,CA2EpB;AAED,yFAAyF;AACzF,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,SAAS,iBAAiB,EAAE,GAAG,SAAS,iBAAiB,EAAE,CAgBjG;AAMD,qFAAqF;AACrF,wBAAgB,mBAAmB,CAClC,KAAK,EAAE,gBAAgB;AACvB,oGAAoG;AACpG,eAAe,CAAC,EAAE,MAAM,GACtB,SAAS,OAAO,EAAE,CAqCpB;AAED,iDAAiD;AACjD,wBAAgB,cAAc,CAAC,OAAO,EAAE,SAAS,gBAAgB,EAAE,GAAG,OAAO,CAO5E;AAED,0CAA0C;AAC1C,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC,CAAC,CAAC,GAAG,OAAO,CAa1F;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CACjC,IAAI,EAAE,SAAS,iBAAiB,EAAE,EAClC,MAAM,EAAE,SAAS,gBAAgB,EAAE,EACnC,MAAM,EAAE,MAAM,MAAM,GAClB,SAAS,iBAAiB,EAAE,CAyC9B"}
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The rewind picker, without the screen: which prompts it offers, what each
|
|
3
|
+
* choice would do to the files, the words it shows, and how a key moves it.
|
|
4
|
+
*
|
|
5
|
+
* Two stages. The list names the prompts the conversation was given and the
|
|
6
|
+
* present, with what rewinding to each would do to the files. Choosing a
|
|
7
|
+
* prompt opens the options for it: put the files back, continue the
|
|
8
|
+
* conversation from before it, both, summarise around it, or leave it alone.
|
|
9
|
+
*/
|
|
10
|
+
import type { Message } from '@namzu/sdk';
|
|
11
|
+
import { type CheckpointTurn, type RewindSummary } from '../checkpoints/store.js';
|
|
12
|
+
import type { EditablePrompt } from './edit-prompts.js';
|
|
13
|
+
/** One durable user message, as the checkpoint history can name it. */
|
|
14
|
+
export interface DurableUser {
|
|
15
|
+
readonly ordinal: number;
|
|
16
|
+
readonly label: string;
|
|
17
|
+
}
|
|
18
|
+
/** Every user message in the history, host-authored ones too, in order. */
|
|
19
|
+
export declare function durableUsers(history: readonly Message[]): readonly DurableUser[];
|
|
20
|
+
/**
|
|
21
|
+
* The user message each checkpoint turn began with.
|
|
22
|
+
*
|
|
23
|
+
* A turn records the position of its prompt. That position is believed only
|
|
24
|
+
* while the prompt there still has the turn's own words: a history that was
|
|
25
|
+
* shortened since (a compaction, a summary) moves positions, and a turn from
|
|
26
|
+
* before positions were recorded has none. Those are found by their words,
|
|
27
|
+
* scanning forward so two prompts that read alike stay in order. A turn that
|
|
28
|
+
* cannot be placed either way is left out, and the caller says the code
|
|
29
|
+
* cannot be restored rather than guess.
|
|
30
|
+
*/
|
|
31
|
+
export declare function placeTurns(turns: readonly CheckpointTurn[], users: readonly DurableUser[]): ReadonlyMap<string, number>;
|
|
32
|
+
/**
|
|
33
|
+
* The first checkpoint turn that began at or after the user message with this
|
|
34
|
+
* position, which is where `restore` starts putting files back from.
|
|
35
|
+
*/
|
|
36
|
+
export declare function restoreStart(userOrdinal: number, turns: readonly CheckpointTurn[], placed: ReadonlyMap<string, number>): number | undefined;
|
|
37
|
+
/** What the files would do, per row. */
|
|
38
|
+
export type RewindFiles =
|
|
39
|
+
/** Checkpointing is off for this conversation: no second line, no code options. */
|
|
40
|
+
{
|
|
41
|
+
readonly kind: 'off';
|
|
42
|
+
}
|
|
43
|
+
/** Nothing at or after this prompt changed a file. */
|
|
44
|
+
| {
|
|
45
|
+
readonly kind: 'none';
|
|
46
|
+
}
|
|
47
|
+
/** The history holds changes that cannot be tied to a prompt, so none is offered. */
|
|
48
|
+
| {
|
|
49
|
+
readonly kind: 'unavailable';
|
|
50
|
+
} | {
|
|
51
|
+
readonly kind: 'changes';
|
|
52
|
+
readonly restoreFrom: number;
|
|
53
|
+
/** Absent while the counting has not finished or could not be done. */
|
|
54
|
+
readonly summary?: RewindSummary;
|
|
55
|
+
/** Paths, known from the manifests alone. */
|
|
56
|
+
readonly paths: readonly string[];
|
|
57
|
+
};
|
|
58
|
+
export interface RewindRow {
|
|
59
|
+
readonly kind: 'prompt' | 'current';
|
|
60
|
+
readonly prompt?: EditablePrompt;
|
|
61
|
+
readonly files: RewindFiles;
|
|
62
|
+
}
|
|
63
|
+
export declare function buildRewindRows(prompts: readonly EditablePrompt[], turns: readonly CheckpointTurn[] | undefined, history: readonly Message[]): readonly RewindRow[];
|
|
64
|
+
/** Counting is done newest first, so the rows nearest the present are exact soonest. */
|
|
65
|
+
export declare function countRewindRows(rows: readonly RewindRow[], summarise: (fromIndex: number, expired: () => boolean) => Promise<RewindSummary>, opts: {
|
|
66
|
+
now: () => number;
|
|
67
|
+
budgetMs: number;
|
|
68
|
+
onRow: (index: number, summary: RewindSummary) => void;
|
|
69
|
+
}): Promise<void>;
|
|
70
|
+
/** The time the second lines may take to count, all together. */
|
|
71
|
+
export declare const REWIND_COUNT_BUDGET_MS = 1000;
|
|
72
|
+
/** `main.ts +3 -1`, `4 files changed +9 -2`, `No code changes`, or the unavailable notice. */
|
|
73
|
+
export declare function rewindRowDetail(files: RewindFiles): string | undefined;
|
|
74
|
+
/** The rows' present-tense summary of the files a restore would put back. */
|
|
75
|
+
export declare function restoreFilesLine(files: RewindFiles): string | undefined;
|
|
76
|
+
export type RewindOption = 'both' | 'conversation' | 'code' | 'summarize' | 'summarize_up_to' | 'nevermind';
|
|
77
|
+
export declare const REWIND_OPTION_LABELS: Readonly<Record<RewindOption, string>>;
|
|
78
|
+
export declare const REWIND_CONTEXT_PLACEHOLDER = "add context (optional)";
|
|
79
|
+
export declare const REWIND_CODE_WARNING = "\u26A0 Rewinding does not affect files edited manually or via bash.";
|
|
80
|
+
export declare function isSummarize(option: RewindOption): boolean;
|
|
81
|
+
export declare function rewindOptions(canRestoreCode: boolean, canSummarize: boolean): readonly RewindOption[];
|
|
82
|
+
/** The dim line that changes with the focused option. */
|
|
83
|
+
export declare function conversationLine(option: RewindOption): string;
|
|
84
|
+
/** The dim line about the files, absent for a summary (it touches none). */
|
|
85
|
+
export declare function codeLine(option: RewindOption, files: RewindFiles): string | undefined;
|
|
86
|
+
export declare function confirmHeader(canRestoreCode: boolean): string;
|
|
87
|
+
export declare function listHeader(checkpointing: boolean): string;
|
|
88
|
+
export declare const NOTHING_TO_REWIND = "Nothing to rewind to yet.";
|
|
89
|
+
/** `just now`, `5 minutes ago`, `2 hours ago`, `3 days ago`. */
|
|
90
|
+
export declare function ageText(at: number | undefined, now: number): string | undefined;
|
|
91
|
+
export interface RewindState {
|
|
92
|
+
readonly stage: 'list' | 'confirm';
|
|
93
|
+
/** Index into the rows; the last row is the present. */
|
|
94
|
+
readonly selected: number;
|
|
95
|
+
/** The row the options are for, in the confirm stage. */
|
|
96
|
+
readonly target?: number;
|
|
97
|
+
readonly option: RewindOption;
|
|
98
|
+
readonly texts: {
|
|
99
|
+
readonly summarize: string;
|
|
100
|
+
readonly summarize_up_to: string;
|
|
101
|
+
};
|
|
102
|
+
/** Set while a choice is being carried out; the keys are ignored. */
|
|
103
|
+
readonly busy?: RewindOption;
|
|
104
|
+
/** Shown in red inside the dialog; the dialog stays open. */
|
|
105
|
+
readonly error?: string;
|
|
106
|
+
}
|
|
107
|
+
export declare function openRewind(rowCount: number): RewindState;
|
|
108
|
+
export interface RewindKey {
|
|
109
|
+
readonly escape?: boolean;
|
|
110
|
+
readonly return?: boolean;
|
|
111
|
+
readonly upArrow?: boolean;
|
|
112
|
+
readonly downArrow?: boolean;
|
|
113
|
+
readonly home?: boolean;
|
|
114
|
+
readonly end?: boolean;
|
|
115
|
+
readonly pageUp?: boolean;
|
|
116
|
+
readonly pageDown?: boolean;
|
|
117
|
+
readonly backspace?: boolean;
|
|
118
|
+
readonly delete?: boolean;
|
|
119
|
+
readonly ctrl?: boolean;
|
|
120
|
+
readonly meta?: boolean;
|
|
121
|
+
readonly tab?: boolean;
|
|
122
|
+
}
|
|
123
|
+
export type RewindEffect = {
|
|
124
|
+
readonly kind: 'close';
|
|
125
|
+
} | {
|
|
126
|
+
readonly kind: 'choose';
|
|
127
|
+
readonly row: number;
|
|
128
|
+
readonly option: Exclude<RewindOption, 'nevermind'>;
|
|
129
|
+
readonly context: string | undefined;
|
|
130
|
+
};
|
|
131
|
+
export interface RewindStep {
|
|
132
|
+
readonly state: RewindState;
|
|
133
|
+
readonly effect?: RewindEffect;
|
|
134
|
+
}
|
|
135
|
+
export interface RewindEnv {
|
|
136
|
+
readonly rows: readonly RewindRow[];
|
|
137
|
+
readonly canSummarize: boolean;
|
|
138
|
+
}
|
|
139
|
+
export declare function canRestoreCodeAt(row: RewindRow | undefined): boolean;
|
|
140
|
+
export declare function optionsFor(state: RewindState, env: RewindEnv): readonly RewindOption[];
|
|
141
|
+
export declare function rewindKey(state: RewindState, input: string, key: RewindKey, env: RewindEnv): RewindStep;
|
|
142
|
+
//# sourceMappingURL=rewind.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rewind.d.ts","sourceRoot":"","sources":["../../src/tui/rewind.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAIH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AAEzC,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,aAAa,EAAa,MAAM,yBAAyB,CAAA;AAC5F,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAKvD,uEAAuE;AACvE,MAAM,WAAW,WAAW;IAC3B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;IACxB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;CACtB;AAED,2EAA2E;AAC3E,wBAAgB,YAAY,CAAC,OAAO,EAAE,SAAS,OAAO,EAAE,GAAG,SAAS,WAAW,EAAE,CAYhF;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,UAAU,CACzB,KA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