@namzu/cli 39.2.1 → 41.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 +128 -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-VDM66X7T.js → acp-CLFVQCFH.js} +40 -39
- package/dist/chunks/acp-CLFVQCFH.js.map +6 -0
- package/dist/chunks/{activity-command-23DPNYXT.js → activity-command-XULXEUGH.js} +13 -12
- package/dist/chunks/activity-command-XULXEUGH.js.map +6 -0
- package/dist/chunks/{add-Y2UMHBTC.js → add-BALM5DGZ.js} +19 -17
- package/dist/chunks/add-BALM5DGZ.js.map +6 -0
- package/dist/chunks/{agent-LCCOMK5H.js → agent-CLYE4KWV.js} +33 -30
- package/dist/chunks/agent-session-2MVAYKJC.js +54 -0
- package/dist/chunks/{archive-YUZ62G7R.js → archive-FWXFWMZJ.js} +11 -10
- package/dist/chunks/archive-FWXFWMZJ.js.map +6 -0
- package/dist/chunks/{bin-main-LFPYUV3K.js → bin-main-HO4CMSMY.js} +5 -4
- package/dist/chunks/bin-main-HO4CMSMY.js.map +6 -0
- package/dist/chunks/{browser-X6UIDIQQ.js → browser-Z46YPGWH.js} +6 -6
- package/dist/chunks/{chat-EMEYQKRR.js → chat-NOXE5RTE.js} +14 -14
- package/dist/chunks/{chunk-MCXVRO4B.js → chunk-37S7MY2T.js} +66 -14
- package/dist/chunks/chunk-37S7MY2T.js.map +6 -0
- package/dist/chunks/{chunk-2PH7EQQP.js → chunk-3WAQN6DX.js} +2 -2
- package/dist/chunks/{chunk-HWM73622.js → chunk-4GJSW2KC.js} +12 -12
- package/dist/chunks/{chunk-DNHHMNVG.js → chunk-4JQUY3DT.js} +2 -2
- package/dist/chunks/{chunk-OVG3QY7U.js → chunk-5OVI35QS.js} +3 -3
- package/dist/chunks/{chunk-YZOR7643.js → chunk-65CAAE7I.js} +157 -4
- package/dist/chunks/chunk-65CAAE7I.js.map +6 -0
- package/dist/chunks/chunk-6CCX6DPQ.js +440 -0
- package/dist/chunks/chunk-6CCX6DPQ.js.map +6 -0
- package/dist/chunks/{chunk-FXMJ5NVM.js → chunk-6RNVFKSZ.js} +5 -5
- package/dist/chunks/{chunk-TACSPIUK.js → chunk-AGN45S6D.js} +2 -2
- package/dist/chunks/{chunk-AP4B5Z3D.js → chunk-AOHJCFG3.js} +2 -2
- package/dist/chunks/{chunk-7WUSJ454.js → chunk-AUZB4LKS.js} +4 -4
- package/dist/chunks/{chunk-BPDKRVGW.js → chunk-AX4Z3H7N.js} +2 -2
- package/dist/chunks/{chunk-7C6DG66T.js → chunk-B2RMIYPZ.js} +4 -4
- package/dist/chunks/{chunk-PV4ZAFVQ.js → chunk-B6BQ5ULO.js} +2 -2
- package/dist/chunks/{chunk-XJT5DL3I.js → chunk-BPRT5LV7.js} +2 -2
- package/dist/chunks/{chunk-A34Y6ZPM.js → chunk-CBL2FUHG.js} +2 -2
- package/dist/chunks/{chunk-N3JNFZOW.js → chunk-DMPPM3IA.js} +3 -3
- package/dist/chunks/{chunk-EXVGLN6V.js → chunk-EL6GXINV.js} +2 -2
- package/dist/chunks/{chunk-KONYGNG6.js → chunk-EUBCYTOK.js} +3 -152
- package/dist/chunks/chunk-EUBCYTOK.js.map +6 -0
- package/dist/chunks/{chunk-ONKQPPSY.js → chunk-FLYE25VX.js} +2 -2
- package/dist/chunks/{chunk-45GT626R.js → chunk-G4LCCGQR.js} +3 -3
- package/dist/chunks/{chunk-7OXYUJSY.js → chunk-HE7K6IZ2.js} +29 -29
- package/dist/chunks/{chunk-E6LQB5Z7.js → chunk-IR3AZZFJ.js} +60 -22
- package/dist/chunks/chunk-IR3AZZFJ.js.map +6 -0
- package/dist/chunks/{chunk-EEDZOGV4.js → chunk-IYUW2RAA.js} +27 -2
- package/dist/chunks/chunk-IYUW2RAA.js.map +6 -0
- package/dist/chunks/{chunk-3MT5KLBF.js → chunk-JSGZ4V7Y.js} +2 -2
- package/dist/chunks/{chunk-OPIC6ZIL.js → chunk-K5OXOYM5.js} +14090 -12711
- package/dist/chunks/chunk-K5OXOYM5.js.map +6 -0
- package/dist/chunks/{chunk-5NVONQBW.js → chunk-KD4Q2INM.js} +3 -3
- package/dist/chunks/{chunk-M3TJHQF7.js → chunk-LFI6O7WL.js} +5 -5
- package/dist/chunks/{chunk-T64F5OER.js → chunk-M5RW7JBV.js} +9 -9
- package/dist/chunks/{chunk-JII5GOH2.js → chunk-MDG3THRR.js} +2 -2
- package/dist/chunks/{chunk-IVZB7YKX.js → chunk-MNDFPZVQ.js} +3 -3
- package/dist/chunks/{chunk-2L3JDLC5.js → chunk-MZI4TLFB.js} +12 -12
- package/dist/chunks/{chunk-EGP3MB37.js → chunk-NQGMYAXK.js} +11 -5
- package/dist/chunks/chunk-NQGMYAXK.js.map +6 -0
- package/dist/chunks/{chunk-IYPP6HSK.js → chunk-O2B3B2TM.js} +1 -6
- package/dist/chunks/chunk-O2B3B2TM.js.map +6 -0
- package/dist/chunks/{chunk-YIFOFVWM.js → chunk-O6FOUL5S.js} +4 -4
- package/dist/chunks/{chunk-B2GM4GON.js → chunk-O6JILDEY.js} +6 -6
- package/dist/chunks/{chunk-OT5X76XI.js → chunk-OUQEMJ26.js} +3 -3
- package/dist/chunks/{chunk-QR5YS5QW.js → chunk-P3JHLZH4.js} +2 -2
- package/dist/chunks/{chunk-HLIXL5RK.js → chunk-PDZZ64IH.js} +7 -7
- package/dist/chunks/{chunk-WNVYEZUQ.js → chunk-PKLBJMCY.js} +4 -4
- package/dist/chunks/{chunk-KS5X3GMX.js → chunk-PPZKCA6K.js} +3 -3
- package/dist/chunks/{chunk-363DTX3M.js → chunk-PSZ44BRO.js} +4 -4
- package/dist/chunks/{chunk-M2PQMMDW.js → chunk-PTJI2QA4.js} +3 -3
- package/dist/chunks/{chunk-XNQI4ZDH.js → chunk-QSDPQR3F.js} +3 -3
- package/dist/chunks/{chunk-FKSIOYXA.js → chunk-QY77MJS4.js} +4 -4
- package/dist/chunks/{chunk-ISN4VZCX.js → chunk-RWOPUQNS.js} +2 -2
- package/dist/chunks/{chunk-A25FQQTW.js → chunk-SE5UKEXD.js} +2 -2
- package/dist/chunks/{chunk-BZIUFNYR.js → chunk-SEYEOYMT.js} +4 -4
- package/dist/chunks/{chunk-HBTPB6ON.js → chunk-SMR6TQN2.js} +2 -2
- package/dist/chunks/{chunk-MEHYOYTW.js → chunk-SPZWLMZY.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-QENCNE7Q.js → chunk-V2NG7LLL.js} +10 -10
- package/dist/chunks/{chunk-QENCNE7Q.js.map → chunk-V2NG7LLL.js.map} +1 -1
- package/dist/chunks/{chunk-B4DC7NC7.js → chunk-V2ZSQXYQ.js} +8 -8
- package/dist/chunks/{chunk-V6UEMLTT.js → chunk-V4PHIKLW.js} +2 -2
- package/dist/chunks/chunk-VUZYMKPD.js +3604 -0
- package/dist/chunks/chunk-VUZYMKPD.js.map +6 -0
- package/dist/chunks/{chunk-LS7PT6RY.js → chunk-WLAVNIFG.js} +10 -4
- package/dist/chunks/{chunk-LS7PT6RY.js.map → chunk-WLAVNIFG.js.map} +1 -1
- package/dist/chunks/{chunk-HHOTJDZW.js → chunk-WQRBEQ2P.js} +2 -2
- package/dist/chunks/{chunk-ESMVELWA.js → chunk-WV7XGYNQ.js} +5 -5
- package/dist/chunks/{chunk-JEHKZEIB.js → chunk-WZPN6PWE.js} +4 -4
- package/dist/chunks/chunk-XPS3W7FC.js +147 -0
- package/dist/chunks/chunk-XPS3W7FC.js.map +6 -0
- package/dist/chunks/{chunk-W6JEZMOJ.js → chunk-XRX3DHEW.js} +4 -4
- package/dist/chunks/chunk-XSCT3DLE.js +161 -0
- package/dist/chunks/chunk-XSCT3DLE.js.map +6 -0
- package/dist/chunks/{chunk-NUJCTZOM.js → chunk-XWLQH2NW.js} +7 -7
- package/dist/chunks/{chunk-MIM4YRP2.js → chunk-YGV3VBYL.js} +2 -2
- package/dist/chunks/{chunk-37YQDLHZ.js → chunk-YXZBHG5N.js} +5495 -4531
- package/dist/chunks/chunk-YXZBHG5N.js.map +6 -0
- package/dist/chunks/{cli-runtime-XHGO7QSK.js → cli-runtime-5H7CTXF2.js} +16 -14
- package/dist/chunks/cli-runtime-5H7CTXF2.js.map +6 -0
- package/dist/chunks/{commands-GDF5OOXO.js → commands-XC67PG6L.js} +5 -5
- package/dist/chunks/{crash-report-N7ZQ2UB4.js → crash-report-UE423ET4.js} +9 -8
- package/dist/chunks/{dist-TCILCQPG.js → dist-4ACX6FL7.js} +2 -2
- package/dist/chunks/{dist-IJ3AAED4.js → dist-DCOPEJDN.js} +2 -2
- package/dist/chunks/{dist-MZNKQTW4.js → dist-DSK2VZQB.js} +2 -2
- package/dist/chunks/{dist-547VSBMV.js → dist-OXUHOXCU.js} +2 -2
- package/dist/chunks/{dist-TCIDRGW5.js → dist-SN7QXPO2.js} +2 -2
- package/dist/chunks/{dist-T2NJ6SVO.js → dist-SY7OYS74.js} +44 -16
- package/dist/chunks/dist-SY7OYS74.js.map +6 -0
- package/dist/chunks/{dist-36LBIFJ6.js → dist-YZRXSX7C.js} +2 -2
- package/dist/chunks/{doctor-T7SC3VSE.js → doctor-VCCIYKNL.js} +8 -8
- package/dist/chunks/{drain-OA5MO7SQ.js → drain-QKEXEMCO.js} +10 -10
- package/dist/chunks/{eval-D5Q2WZ7S.js → eval-K47YMZVT.js} +2 -2
- package/dist/chunks/{exec-MG5S7OJN.js → exec-K3LRQU6R.js} +33 -28
- package/dist/chunks/exec-K3LRQU6R.js.map +6 -0
- package/dist/chunks/{home-Z7L4BJTW.js → home-OSHELFKX.js} +3 -3
- package/dist/chunks/{host-queries-LL56A6NY.js → host-queries-TV3XH3YV.js} +14 -14
- package/dist/chunks/{lifecycle-TCRLU6B5.js → lifecycle-R3QWZ664.js} +28 -26
- package/dist/chunks/{list-RBOLXDHG.js → list-L5QFDBPX.js} +16 -14
- package/dist/chunks/list-L5QFDBPX.js.map +6 -0
- package/dist/chunks/{login-RZCJNDAJ.js → login-N4EO2F45.js} +8 -8
- package/dist/chunks/{logs-KDEGF3FA.js → logs-264INNUN.js} +4 -4
- package/dist/chunks/{mcp-7L7NYLKG.js → mcp-7H3G3KLD.js} +21 -19
- package/dist/chunks/mcp-7H3G3KLD.js.map +6 -0
- package/dist/chunks/{message-command-NTLYNKUW.js → message-command-JOQ24TAL.js} +37 -36
- package/dist/chunks/message-command-JOQ24TAL.js.map +6 -0
- package/dist/chunks/{operator-tools-DXU6UK4S.js → operator-tools-O2MDVMJP.js} +12 -12
- package/dist/chunks/{output-schema-UMOAOTW2.js → output-schema-LKM35JS4.js} +3 -3
- package/dist/chunks/{pal-FDOF3S5J.js → pal-N56IUOUP.js} +13 -12
- package/dist/chunks/pal-N56IUOUP.js.map +6 -0
- package/dist/chunks/{providers-HOY5QHWL.js → providers-B352G4OM.js} +6 -6
- package/dist/chunks/{resident-XIM5KNNX.js → resident-SMWDKMJP.js} +24 -22
- package/dist/chunks/resident-SMWDKMJP.js.map +6 -0
- package/dist/chunks/resume-EXHKGQII.js +22 -0
- package/dist/chunks/{resume-command-DIVGMVMA.js → resume-command-OHQBIY5P.js} +6 -5
- package/dist/chunks/{schedule-YRHGK6CD.js → schedule-VHP2VGEF.js} +8 -8
- package/dist/chunks/{service-DRXVEYFA.js → service-RHWPRJJO.js} +27 -25
- package/dist/chunks/service-RHWPRJJO.js.map +6 -0
- package/dist/chunks/session-step-NJRR3Q2L.js +30 -0
- package/dist/chunks/{skills-C5ZXOJEA.js → skills-JS3FQPHU.js} +10 -9
- package/dist/chunks/skills-JS3FQPHU.js.map +6 -0
- package/dist/chunks/{state-BVKWZF6F.js → state-A56X2FGB.js} +4 -3
- package/dist/chunks/state-A56X2FGB.js.map +6 -0
- package/dist/chunks/{store-ZXFXXY4S.js → store-IMV6NZTT.js} +9 -9
- package/dist/chunks/{store-GKY55UEV.js → store-SEPPZ7H6.js} +4 -4
- package/dist/chunks/{store-A4VHV4I2.js → store-WJEK5ZI2.js} +6 -6
- package/dist/chunks/{tui-PY2FQXVO.js → tui-BP7MYQG2.js} +14415 -12525
- package/dist/chunks/tui-BP7MYQG2.js.map +6 -0
- package/dist/chunks/{upgrade-WSBGA3FW.js → upgrade-2A7CIVAY.js} +3 -4
- package/dist/chunks/upgrade-2A7CIVAY.js.map +6 -0
- package/dist/chunks/{worktree-HLE7PBLL.js → worktree-ERUU4NVZ.js} +13 -12
- package/dist/chunks/worktree-ERUU4NVZ.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/context/doctrine.d.ts +2 -1
- package/dist/context/doctrine.d.ts.map +1 -1
- package/dist/context/environment.d.ts +37 -1
- package/dist/context/environment.d.ts.map +1 -1
- package/dist/context/identity.d.ts +27 -0
- package/dist/context/identity.d.ts.map +1 -0
- package/dist/context/project-tracker.d.ts.map +1 -1
- package/dist/context/system-prompt.d.ts +99 -0
- package/dist/context/system-prompt.d.ts.map +1 -0
- 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/conversation-search.d.ts +1 -1
- package/dist/integrations/sessions/conversation-search.d.ts.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 +2 -0
- package/dist/integrations/subagents/runtime.d.ts.map +1 -1
- package/dist/integrations/workflows/doctrine.d.ts.map +1 -1
- package/dist/integrations/workflows/host.d.ts +0 -5
- package/dist/integrations/workflows/host.d.ts.map +1 -1
- package/dist/integrations/workflows/offering.d.ts +0 -2
- package/dist/integrations/workflows/offering.d.ts.map +1 -1
- package/dist/integrations/workflows/size.d.ts +9 -1
- package/dist/integrations/workflows/size.d.ts.map +1 -1
- package/dist/memory/typed.d.ts +11 -0
- package/dist/memory/typed.d.ts.map +1 -1
- package/dist/permissions/session-allow.d.ts +10 -0
- package/dist/permissions/session-allow.d.ts.map +1 -1
- package/dist/reminders/environment.d.ts +20 -0
- package/dist/reminders/environment.d.ts.map +1 -0
- package/dist/reminders/frame.d.ts +1 -1
- package/dist/reminders/frame.d.ts.map +1 -1
- package/dist/reminders/index.d.ts +11 -1
- package/dist/reminders/index.d.ts.map +1 -1
- package/dist/reminders/mode.d.ts +11 -0
- package/dist/reminders/mode.d.ts.map +1 -0
- 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 +11 -1
- package/dist/tui/LiveActivity.d.ts.map +1 -1
- package/dist/tui/Markdown.d.ts.map +1 -1
- package/dist/tui/PermissionOverlay.d.ts +25 -4
- package/dist/tui/PermissionOverlay.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 +84 -3
- 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/connector-label.d.ts +19 -0
- package/dist/tui/connector-label.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/per-call-review.d.ts +50 -0
- package/dist/tui/per-call-review.d.ts.map +1 -0
- package/dist/tui/permission-asks.d.ts +68 -0
- package/dist/tui/permission-asks.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/queued-calls.d.ts +47 -0
- package/dist/tui/queued-calls.d.ts.map +1 -0
- 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 +22 -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 +7 -7
- package/skills/schedule-task/SKILL.md +6 -34
- package/dist/chunks/acp-VDM66X7T.js.map +0 -6
- package/dist/chunks/activity-command-23DPNYXT.js.map +0 -6
- package/dist/chunks/add-Y2UMHBTC.js.map +0 -6
- package/dist/chunks/agent-session-6ZFR55NO.js +0 -53
- package/dist/chunks/archive-YUZ62G7R.js.map +0 -6
- package/dist/chunks/bin-main-LFPYUV3K.js.map +0 -6
- package/dist/chunks/chunk-37YQDLHZ.js.map +0 -6
- package/dist/chunks/chunk-6YFMOYKD.js +0 -1796
- package/dist/chunks/chunk-6YFMOYKD.js.map +0 -6
- package/dist/chunks/chunk-AURV7PCK.js +0 -111
- package/dist/chunks/chunk-AURV7PCK.js.map +0 -6
- package/dist/chunks/chunk-AXCOWIIH.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-E6LQB5Z7.js.map +0 -6
- package/dist/chunks/chunk-EEDZOGV4.js.map +0 -6
- package/dist/chunks/chunk-EGP3MB37.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-MCXVRO4B.js.map +0 -6
- package/dist/chunks/chunk-OPIC6ZIL.js.map +0 -6
- package/dist/chunks/chunk-YZOR7643.js.map +0 -6
- package/dist/chunks/cli-runtime-XHGO7QSK.js.map +0 -6
- package/dist/chunks/dist-T2NJ6SVO.js.map +0 -6
- package/dist/chunks/exec-MG5S7OJN.js.map +0 -6
- package/dist/chunks/list-RBOLXDHG.js.map +0 -6
- package/dist/chunks/mcp-7L7NYLKG.js.map +0 -6
- package/dist/chunks/message-command-NTLYNKUW.js.map +0 -6
- package/dist/chunks/pal-FDOF3S5J.js.map +0 -6
- package/dist/chunks/resident-XIM5KNNX.js.map +0 -6
- package/dist/chunks/resume-3OP5GB7S.js +0 -22
- package/dist/chunks/service-DRXVEYFA.js.map +0 -6
- package/dist/chunks/session-step-ZD3D55SM.js +0 -29
- package/dist/chunks/skills-C5ZXOJEA.js.map +0 -6
- package/dist/chunks/state-BVKWZF6F.js.map +0 -6
- package/dist/chunks/tui-PY2FQXVO.js.map +0 -6
- package/dist/chunks/upgrade-WSBGA3FW.js.map +0 -6
- package/dist/chunks/worktree-HLE7PBLL.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-LCCOMK5H.js.map → agent-CLYE4KWV.js.map} +0 -0
- /package/dist/chunks/{agent-session-6ZFR55NO.js.map → agent-session-2MVAYKJC.js.map} +0 -0
- /package/dist/chunks/{browser-X6UIDIQQ.js.map → browser-Z46YPGWH.js.map} +0 -0
- /package/dist/chunks/{chat-EMEYQKRR.js.map → chat-NOXE5RTE.js.map} +0 -0
- /package/dist/chunks/{chunk-2PH7EQQP.js.map → chunk-3WAQN6DX.js.map} +0 -0
- /package/dist/chunks/{chunk-HWM73622.js.map → chunk-4GJSW2KC.js.map} +0 -0
- /package/dist/chunks/{chunk-DNHHMNVG.js.map → chunk-4JQUY3DT.js.map} +0 -0
- /package/dist/chunks/{chunk-OVG3QY7U.js.map → chunk-5OVI35QS.js.map} +0 -0
- /package/dist/chunks/{chunk-FXMJ5NVM.js.map → chunk-6RNVFKSZ.js.map} +0 -0
- /package/dist/chunks/{chunk-TACSPIUK.js.map → chunk-AGN45S6D.js.map} +0 -0
- /package/dist/chunks/{chunk-AP4B5Z3D.js.map → chunk-AOHJCFG3.js.map} +0 -0
- /package/dist/chunks/{chunk-7WUSJ454.js.map → chunk-AUZB4LKS.js.map} +0 -0
- /package/dist/chunks/{chunk-BPDKRVGW.js.map → chunk-AX4Z3H7N.js.map} +0 -0
- /package/dist/chunks/{chunk-7C6DG66T.js.map → chunk-B2RMIYPZ.js.map} +0 -0
- /package/dist/chunks/{chunk-PV4ZAFVQ.js.map → chunk-B6BQ5ULO.js.map} +0 -0
- /package/dist/chunks/{chunk-XJT5DL3I.js.map → chunk-BPRT5LV7.js.map} +0 -0
- /package/dist/chunks/{chunk-A34Y6ZPM.js.map → chunk-CBL2FUHG.js.map} +0 -0
- /package/dist/chunks/{chunk-N3JNFZOW.js.map → chunk-DMPPM3IA.js.map} +0 -0
- /package/dist/chunks/{chunk-EXVGLN6V.js.map → chunk-EL6GXINV.js.map} +0 -0
- /package/dist/chunks/{chunk-ONKQPPSY.js.map → chunk-FLYE25VX.js.map} +0 -0
- /package/dist/chunks/{chunk-45GT626R.js.map → chunk-G4LCCGQR.js.map} +0 -0
- /package/dist/chunks/{chunk-7OXYUJSY.js.map → chunk-HE7K6IZ2.js.map} +0 -0
- /package/dist/chunks/{chunk-3MT5KLBF.js.map → chunk-JSGZ4V7Y.js.map} +0 -0
- /package/dist/chunks/{chunk-5NVONQBW.js.map → chunk-KD4Q2INM.js.map} +0 -0
- /package/dist/chunks/{chunk-M3TJHQF7.js.map → chunk-LFI6O7WL.js.map} +0 -0
- /package/dist/chunks/{chunk-T64F5OER.js.map → chunk-M5RW7JBV.js.map} +0 -0
- /package/dist/chunks/{chunk-JII5GOH2.js.map → chunk-MDG3THRR.js.map} +0 -0
- /package/dist/chunks/{chunk-IVZB7YKX.js.map → chunk-MNDFPZVQ.js.map} +0 -0
- /package/dist/chunks/{chunk-2L3JDLC5.js.map → chunk-MZI4TLFB.js.map} +0 -0
- /package/dist/chunks/{chunk-YIFOFVWM.js.map → chunk-O6FOUL5S.js.map} +0 -0
- /package/dist/chunks/{chunk-B2GM4GON.js.map → chunk-O6JILDEY.js.map} +0 -0
- /package/dist/chunks/{chunk-OT5X76XI.js.map → chunk-OUQEMJ26.js.map} +0 -0
- /package/dist/chunks/{chunk-QR5YS5QW.js.map → chunk-P3JHLZH4.js.map} +0 -0
- /package/dist/chunks/{chunk-HLIXL5RK.js.map → chunk-PDZZ64IH.js.map} +0 -0
- /package/dist/chunks/{chunk-WNVYEZUQ.js.map → chunk-PKLBJMCY.js.map} +0 -0
- /package/dist/chunks/{chunk-KS5X3GMX.js.map → chunk-PPZKCA6K.js.map} +0 -0
- /package/dist/chunks/{chunk-363DTX3M.js.map → chunk-PSZ44BRO.js.map} +0 -0
- /package/dist/chunks/{chunk-M2PQMMDW.js.map → chunk-PTJI2QA4.js.map} +0 -0
- /package/dist/chunks/{chunk-XNQI4ZDH.js.map → chunk-QSDPQR3F.js.map} +0 -0
- /package/dist/chunks/{chunk-FKSIOYXA.js.map → chunk-QY77MJS4.js.map} +0 -0
- /package/dist/chunks/{chunk-ISN4VZCX.js.map → chunk-RWOPUQNS.js.map} +0 -0
- /package/dist/chunks/{chunk-A25FQQTW.js.map → chunk-SE5UKEXD.js.map} +0 -0
- /package/dist/chunks/{chunk-BZIUFNYR.js.map → chunk-SEYEOYMT.js.map} +0 -0
- /package/dist/chunks/{chunk-HBTPB6ON.js.map → chunk-SMR6TQN2.js.map} +0 -0
- /package/dist/chunks/{chunk-MEHYOYTW.js.map → chunk-SPZWLMZY.js.map} +0 -0
- /package/dist/chunks/{chunk-B4DC7NC7.js.map → chunk-V2ZSQXYQ.js.map} +0 -0
- /package/dist/chunks/{chunk-V6UEMLTT.js.map → chunk-V4PHIKLW.js.map} +0 -0
- /package/dist/chunks/{chunk-HHOTJDZW.js.map → chunk-WQRBEQ2P.js.map} +0 -0
- /package/dist/chunks/{chunk-ESMVELWA.js.map → chunk-WV7XGYNQ.js.map} +0 -0
- /package/dist/chunks/{chunk-JEHKZEIB.js.map → chunk-WZPN6PWE.js.map} +0 -0
- /package/dist/chunks/{chunk-W6JEZMOJ.js.map → chunk-XRX3DHEW.js.map} +0 -0
- /package/dist/chunks/{chunk-NUJCTZOM.js.map → chunk-XWLQH2NW.js.map} +0 -0
- /package/dist/chunks/{chunk-MIM4YRP2.js.map → chunk-YGV3VBYL.js.map} +0 -0
- /package/dist/chunks/{commands-GDF5OOXO.js.map → commands-XC67PG6L.js.map} +0 -0
- /package/dist/chunks/{crash-report-N7ZQ2UB4.js.map → crash-report-UE423ET4.js.map} +0 -0
- /package/dist/chunks/{dist-TCILCQPG.js.map → dist-4ACX6FL7.js.map} +0 -0
- /package/dist/chunks/{dist-IJ3AAED4.js.map → dist-DCOPEJDN.js.map} +0 -0
- /package/dist/chunks/{dist-MZNKQTW4.js.map → dist-DSK2VZQB.js.map} +0 -0
- /package/dist/chunks/{dist-547VSBMV.js.map → dist-OXUHOXCU.js.map} +0 -0
- /package/dist/chunks/{dist-TCIDRGW5.js.map → dist-SN7QXPO2.js.map} +0 -0
- /package/dist/chunks/{dist-36LBIFJ6.js.map → dist-YZRXSX7C.js.map} +0 -0
- /package/dist/chunks/{doctor-T7SC3VSE.js.map → doctor-VCCIYKNL.js.map} +0 -0
- /package/dist/chunks/{drain-OA5MO7SQ.js.map → drain-QKEXEMCO.js.map} +0 -0
- /package/dist/chunks/{eval-D5Q2WZ7S.js.map → eval-K47YMZVT.js.map} +0 -0
- /package/dist/chunks/{home-Z7L4BJTW.js.map → home-OSHELFKX.js.map} +0 -0
- /package/dist/chunks/{host-queries-LL56A6NY.js.map → host-queries-TV3XH3YV.js.map} +0 -0
- /package/dist/chunks/{lifecycle-TCRLU6B5.js.map → lifecycle-R3QWZ664.js.map} +0 -0
- /package/dist/chunks/{login-RZCJNDAJ.js.map → login-N4EO2F45.js.map} +0 -0
- /package/dist/chunks/{logs-KDEGF3FA.js.map → logs-264INNUN.js.map} +0 -0
- /package/dist/chunks/{operator-tools-DXU6UK4S.js.map → operator-tools-O2MDVMJP.js.map} +0 -0
- /package/dist/chunks/{output-schema-UMOAOTW2.js.map → output-schema-LKM35JS4.js.map} +0 -0
- /package/dist/chunks/{providers-HOY5QHWL.js.map → providers-B352G4OM.js.map} +0 -0
- /package/dist/chunks/{resume-3OP5GB7S.js.map → resume-EXHKGQII.js.map} +0 -0
- /package/dist/chunks/{resume-command-DIVGMVMA.js.map → resume-command-OHQBIY5P.js.map} +0 -0
- /package/dist/chunks/{schedule-YRHGK6CD.js.map → schedule-VHP2VGEF.js.map} +0 -0
- /package/dist/chunks/{session-step-ZD3D55SM.js.map → session-step-NJRR3Q2L.js.map} +0 -0
- /package/dist/chunks/{store-A4VHV4I2.js.map → store-IMV6NZTT.js.map} +0 -0
- /package/dist/chunks/{store-GKY55UEV.js.map → store-SEPPZ7H6.js.map} +0 -0
- /package/dist/chunks/{store-ZXFXXY4S.js.map → store-WJEK5ZI2.js.map} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context-grid.d.ts","sourceRoot":"","sources":["../../src/tui/context-grid.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EACX,gBAAgB,EAChB,eAAe,EACf,iBAAiB,EAEjB,MAAM,YAAY,CAAA;AAInB,wFAAwF;AACxF,eAAO,MAAM,UAAU,WAAM,CAAA;AAC7B,eAAO,MAAM,aAAa,WAAM,CAAA;AAChC,eAAO,MAAM,UAAU,WAAM,CAAA;AAC7B,eAAO,MAAM,YAAY,WAAM,CAAA;AAE/B,2DAA2D;AAC3D,eAAO,MAAM,gBAAgB,MAAM,CAAA;AAEnC;;;GAGG;AACH,eAAO,MAAM,cAAc,EAAE,QAAQ,CAAC,MAAM,CAAC,iBAAiB,EAAE,MAAM,CAAC,CAWtE,CAAA;AAED,MAAM,WAAW,QAAQ;IACxB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,GAAG,EAAE,OAAO,CAAA;CACrB;AAED,MAAM,WAAW,UAAU;IAC1B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAA;IAC1B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,mCAAmC;IACnC,QAAQ,CAAC,KAAK,EAA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,WAAW,EAAE,SAAS;QAAE,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;KAAE,EAAE,CAAA;CACpF;AAmBD,qGAAqG;AACrG,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,eAAe,GAAG,iBAAiB,EAAE,CA6E5E;AA4BD,MAAM,WAAW,cAAc;IAC9B,QAAQ,CAAC,SAAS,EAAE,gBAAgB,CAAA;IACpC,QAAQ,CAAC,YAAY,EAAE,MAAM,GAAG,QAAQ,GAAG,SAAS,CAAA;IACpD,QAAQ,CAAC,WAAW,EAAE,OAAO,CAAA;IAC7B,kEAAkE;IAClE,QAAQ,CAAC,WAAW,EAAE,OAAO,CAAA;IAC7B,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAA;IACvB,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAA;IAChC,QAAQ,CAAC,QAAQ,EAAE,SAAS,cAAc,EAAE,CAAA;IAC5C,QAAQ,CAAC,WAAW,EAAE,eAAe,CAAC,aAAa,CAAC,CAAA;CACpD;AAED,uDAAuD;AACvD,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,cAAc,GAAG,WAAW,CAgEnE;AAED,gFAAgF;AAChF,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,WAAW,EAAE,KAAK,EAAE,SAAS,MAAM,EAAE,GAAG,WAAW,CAGzF"}
|
|
@@ -8,10 +8,15 @@
|
|
|
8
8
|
* compact & continue` (red). The percentage counts down to the threshold the
|
|
9
9
|
* conversation will really be compacted at, not to the end of the window.
|
|
10
10
|
*
|
|
11
|
+
* The meter rides the footer's notice slot (`notifications.ts`) as a medium
|
|
12
|
+
* notice that stays while it is true. A compaction hides it until the next
|
|
13
|
+
* turn starts: the figure counted before the summary is stale until then.
|
|
14
|
+
*
|
|
11
15
|
* The threshold is the kernel's own, read from the same function the kernel
|
|
12
16
|
* compares against (`resolveTriggerThreshold`), so the figure never disagrees
|
|
13
17
|
* with when compaction actually happens.
|
|
14
18
|
*/
|
|
19
|
+
import type { Notice } from './notifications.js';
|
|
15
20
|
/** The meter appears this many tokens before the threshold. */
|
|
16
21
|
export declare const CONTEXT_WARNING_MARGIN_TOKENS = 20000;
|
|
17
22
|
export interface ContextMeter {
|
|
@@ -30,4 +35,8 @@ export interface ContextMeterInput {
|
|
|
30
35
|
}
|
|
31
36
|
/** `null` while there is room to spare; otherwise the words for the footer. */
|
|
32
37
|
export declare function contextMeter(input: ContextMeterInput): ContextMeter | null;
|
|
38
|
+
/** The meter's key in the notice slot. */
|
|
39
|
+
export declare const CONTEXT_NOTICE_KEY = "token-warning";
|
|
40
|
+
/** The meter as a notice; a newer reading replaces the one showing. */
|
|
41
|
+
export declare function contextNotice(meter: ContextMeter): Notice;
|
|
33
42
|
//# sourceMappingURL=context-meter.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context-meter.d.ts","sourceRoot":"","sources":["../../src/tui/context-meter.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"context-meter.d.ts","sourceRoot":"","sources":["../../src/tui/context-meter.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAIH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAA;AAEhD,+DAA+D;AAC/D,eAAO,MAAM,6BAA6B,QAAS,CAAA;AAEnD,MAAM,WAAW,YAAY;IAC5B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,0EAA0E;IAC1E,QAAQ,CAAC,IAAI,EAAE,OAAO,GAAG,OAAO,CAAA;CAChC;AAED,MAAM,WAAW,iBAAiB;IACjC,6CAA6C;IAC7C,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;IACvB,qCAAqC;IACrC,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAA;IAC7B,kEAAkE;IAClE,QAAQ,CAAC,WAAW,EAAE,OAAO,CAAA;IAC7B,QAAQ,CAAC,gBAAgB,CAAC,EAAE,MAAM,CAAA;CAClC;AAED,+EAA+E;AAC/E,wBAAgB,YAAY,CAAC,KAAK,EAAE,iBAAiB,GAAG,YAAY,GAAG,IAAI,CAc1E;AAED,0CAA0C;AAC1C,eAAO,MAAM,kBAAkB,kBAAkB,CAAA;AAIjD,uEAAuE;AACvE,wBAAgB,aAAa,CAAC,KAAK,EAAE,YAAY,GAAG,MAAM,CASzD"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Gathers what `/context` needs from a live session and hands it to the
|
|
3
|
+
* arithmetic and the view.
|
|
4
|
+
*
|
|
5
|
+
* The sizes are estimates by characters, the same way the kernel estimates a
|
|
6
|
+
* request it has not yet sent; the measured total from the provider, when
|
|
7
|
+
* there is one, replaces the guess for the conversation as a whole.
|
|
8
|
+
*/
|
|
9
|
+
import { type AgentFileDefinition } from '@namzu/sdk';
|
|
10
|
+
import type { Message } from '@namzu/sdk';
|
|
11
|
+
import type { SkillsConfig } from '../config/schema.js';
|
|
12
|
+
import { type SkillInfo } from '../skills/store.js';
|
|
13
|
+
import type { AgentSession } from './agent.js';
|
|
14
|
+
import { type ContextView } from './context-grid.js';
|
|
15
|
+
import { type SlashContext } from './slashCommands.js';
|
|
16
|
+
export interface ContextSources {
|
|
17
|
+
/** The latest report from the kernel; the view needs its window. */
|
|
18
|
+
readonly context: {
|
|
19
|
+
readonly tokens: number;
|
|
20
|
+
readonly windowTokens: number;
|
|
21
|
+
readonly measured: boolean;
|
|
22
|
+
readonly windowAssumed: boolean;
|
|
23
|
+
readonly windowSource?: 'config' | 'provider' | 'model-table' | 'default';
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* The conversation was rewritten (compacted, summarised in part) since that
|
|
27
|
+
* report, so its size is out of date. The conversation's share is then
|
|
28
|
+
* estimated from `messages` and the figures are marked approximate.
|
|
29
|
+
*/
|
|
30
|
+
readonly sizeOutOfDate?: boolean;
|
|
31
|
+
readonly terminalColumns: number;
|
|
32
|
+
readonly model?: string;
|
|
33
|
+
readonly autoCompact: boolean;
|
|
34
|
+
readonly systemPrompt?: string;
|
|
35
|
+
readonly tools: readonly {
|
|
36
|
+
name: string;
|
|
37
|
+
tokens: number;
|
|
38
|
+
server?: string;
|
|
39
|
+
}[];
|
|
40
|
+
readonly messages: readonly Message[];
|
|
41
|
+
/** Absolute paths of the instruction files in force. */
|
|
42
|
+
readonly instructionFiles: readonly string[];
|
|
43
|
+
readonly mcpInstructions: readonly string[];
|
|
44
|
+
readonly skills: readonly SkillInfo[];
|
|
45
|
+
readonly agents: readonly AgentFileDefinition[];
|
|
46
|
+
/** A path as a person reads it. */
|
|
47
|
+
readonly displayPath: (path: string) => string;
|
|
48
|
+
readonly readText?: (path: string) => Promise<string>;
|
|
49
|
+
}
|
|
50
|
+
export declare function collectContextView(sources: ContextSources): Promise<ContextView>;
|
|
51
|
+
export interface ContextRowInput {
|
|
52
|
+
readonly usage: SlashContext['usage'];
|
|
53
|
+
readonly compaction: SlashContext['compaction'];
|
|
54
|
+
readonly details: boolean;
|
|
55
|
+
/** A compaction or a summary has rewritten the history since the last reply's size was reported. */
|
|
56
|
+
readonly sizeOutOfDate?: boolean;
|
|
57
|
+
readonly session: AgentSession | null | undefined;
|
|
58
|
+
readonly messages: readonly Message[];
|
|
59
|
+
readonly cwd: string;
|
|
60
|
+
readonly columns: number;
|
|
61
|
+
readonly model?: string | undefined;
|
|
62
|
+
readonly mcp: ReturnType<SlashContext['mcp']>;
|
|
63
|
+
readonly skillsConfig?: SkillsConfig | undefined;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* What `/context` writes: the view when the kernel has reported a window, and
|
|
67
|
+
* the one-line answer ("no size yet") before the first reply.
|
|
68
|
+
*/
|
|
69
|
+
export declare function buildContextRow(input: ContextRowInput): Promise<ContextView | string>;
|
|
70
|
+
//# sourceMappingURL=context-usage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version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AE,YAAY,GAAG,SAAS,CAAA;CAChD;AAED;;;GAGG;AACH,wBAAsB,eAAe,CAAC,KAAK,EAAE,eAAe,GAAG,OAAO,CAAC,WAAW,GAAG,MAAM,CAAC,CAuC3F"}
|
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,WAAW,UAAU;IAC1B,yEAAyE;IACzE,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;IACxB,wEAAwE;IACxE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;CACrB;AAgDD;;;;;;;;;;;GAWG;AACH,wBAAgB,eAAe,CAC9B,QAAQ,EAAE,SAAS,iBAAiB,EAAE,EACtC,GAAG,UAAQ,EACX,OAAO,CAAC,EAAE,MAAM,GACd,SAAS,MAAM,EAAE,CAGnB;AAqBD;;;;;GAKG;AACH,wBAAgB,qBAAqB,CACpC,UAAU,EAAE,SAAS,MAAM,EAAE,EAC7B,OAAO,EAAE,MAAM,GAAG,SAAS,GACzB,MAAM,CASR;AAsED;;;;;;;GAOG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,eAAe,GAAG,UAAU,CAmB7D;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,sBAAsB,CACrC,QAAQ,EAAE,SAAS,iBAAiB,EAAE,EACtC,aAAa,EAAE,MAAM,EACrB,QAAQ,EAAE,MAAM,GACd,MAAM,CAKR;AAED,MAAM,WAAW,kBAAkB;IAClC,yFAAyF;IACzF,QAAQ,CAAC,QAAQ,EAAE,SAAS,iBAAiB,EAAE,CAAA;IAC/C,mDAAmD;IACnD,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,CAAA;IACjC,oDAAoD;IACpD,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,SAAS,CAAA;IACpC,+FAA+F;IAC/F,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAA;IAC9B,QAAQ,CAAC,GAAG,CAAC,EAAE,OAAO,CAAA;CACtB;AAED;;;;;;;;;GASG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,kBAAkB,GAAG,OAAO,CAkBlE"}
|
package/dist/tui/logo.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
/** The three-point signature used beside Namzu's replies. */
|
|
2
2
|
export declare const NAMZU_MARK = "\u2234";
|
|
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,OAAO,CAAA;AAEjD,MAAM,WAAW,MAAM;IACtB,iDAAiD;IACjD,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,IAAI,CAAC,EAAE,UAAU,CAAA;IAC1B,QA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,CAAA;IAC3B,QAAQ,CAAC,KAAK,CAAC,EAAE,WAAW,CAAA;CAC5B;AA2BD,wBAAgB,MAAM,CAAC,KAAK,EAAE,WAAW,EAAE,MAAM,EAAE,YAAY,GAAG,UAAU,CAmB3E"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What the terminal tells the kernel when it asks about one call at a time.
|
|
3
|
+
*
|
|
4
|
+
* `perCallReview` is opt-in on the kernel side; the terminal opts in. This file
|
|
5
|
+
* holds the three things the kernel cannot know about the screen: when the
|
|
6
|
+
* person's rules or mode changed (so a question still open can be re-checked),
|
|
7
|
+
* whether the mode now covers a call, and which calls must never be let through
|
|
8
|
+
* by a re-check because their input was not shown in full.
|
|
9
|
+
*
|
|
10
|
+
* A re-check only ever approves. The kernel adds its own refusals on top of
|
|
11
|
+
* these (a call that leaves the turn's boundary, one a tool says always needs
|
|
12
|
+
* a person, one a rule asked about), so nothing here has to repeat them.
|
|
13
|
+
*/
|
|
14
|
+
import { type PermissionMode } from '../permissions/mode.js';
|
|
15
|
+
import type { PermissionDecision, PermissionToolCall } from './agent.js';
|
|
16
|
+
/** The person's own words about a refusal are cut at this many characters. */
|
|
17
|
+
export declare const REASON_MAX_CHARS = 500;
|
|
18
|
+
/**
|
|
19
|
+
* A typed reason made safe to print and to record: control characters
|
|
20
|
+
* (an escape sequence among them) and line breaks become single spaces, the
|
|
21
|
+
* ends are trimmed, and the length is capped by character, not by code unit.
|
|
22
|
+
*/
|
|
23
|
+
export declare function cleanReason(text: string): string;
|
|
24
|
+
/**
|
|
25
|
+
* What typing adds to a reason being written: control characters and line
|
|
26
|
+
* breaks become spaces, and the whole is kept within {@link REASON_MAX_CHARS}.
|
|
27
|
+
*/
|
|
28
|
+
export declare function appendTypedReason(current: string, typed: string): string;
|
|
29
|
+
/** A plain No. In the person's own conversation it also ends the turn. */
|
|
30
|
+
export declare function plainNo(endsTurn: boolean): PermissionDecision;
|
|
31
|
+
/** A No with the person's words: this call only, the model reads the reason and carries on. */
|
|
32
|
+
export declare function noWithReason(reason: string): PermissionDecision | undefined;
|
|
33
|
+
export interface PerCallReviewHost {
|
|
34
|
+
/** The session's permission mode now. */
|
|
35
|
+
readonly mode: () => PermissionMode;
|
|
36
|
+
}
|
|
37
|
+
export interface TerminalPerCallReview {
|
|
38
|
+
/** Pass this as the turn's `perCallReview`. */
|
|
39
|
+
readonly config: import('@namzu/sdk').PerCallReviewConfig;
|
|
40
|
+
/** A rule was remembered or the mode changed: re-check every question still open. */
|
|
41
|
+
readonly rulesChanged: () => void;
|
|
42
|
+
/** Remember that a call's input was not shown in full, so no re-check approves it. */
|
|
43
|
+
readonly hold: (callId: string, notShownInFull: boolean) => void;
|
|
44
|
+
/** Forget a call once its question is over. */
|
|
45
|
+
readonly release: (callId: string) => void;
|
|
46
|
+
/** Whether the current mode lets this call run without asking; also used for queued batches. */
|
|
47
|
+
readonly modeCovers: (call: PermissionToolCall) => boolean;
|
|
48
|
+
}
|
|
49
|
+
export declare function createTerminalPerCallReview(host: PerCallReviewHost): TerminalPerCallReview;
|
|
50
|
+
//# sourceMappingURL=per-call-review.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"per-call-review.d.ts","sourceRoot":"","sources":["../../src/tui/per-call-review.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAsB,KAAK,cAAc,EAAE,MAAM,wBAAwB,CAAA;AAEhF,OAAO,KAAK,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAA;AAGxE,8EAA8E;AAC9E,eAAO,MAAM,gBAAgB,MAAM,CAAA;AAEnC;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAehD;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAYxE;AAED,0EAA0E;AAC1E,wBAAgB,OAAO,CAAC,QAAQ,EAAE,OAAO,GAAG,kBAAkB,CAE7D;AAED,+FAA+F;AAC/F,wBAAgB,YAAY,CAAC,MAAM,EAAE,MAAM,GAAG,kBAAkB,GAAG,SAAS,CAQ3E;AAgBD,MAAM,WAAW,iBAAiB;IACjC,yCAAyC;IACzC,QAAQ,CAAC,IAAI,EAAE,MAAM,cAAc,CAAA;CACnC;AAED,MAAM,WAAW,qBAAqB;IACrC,+CAA+C;IAC/C,QAAQ,CAAC,MAAM,EAAE,OAAO,YAAY,EAAE,mBAAmB,CAAA;IACzD,qFAAqF;IACrF,QAAQ,CAAC,YAAY,EAAE,MAAM,IAAI,CAAA;IACjC,sFAAsF;IACtF,QAAQ,CAAC,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,cAAc,EAAE,OAAO,KAAK,IAAI,CAAA;IAChE,+CAA+C;IAC/C,QAAQ,CAAC,OAAO,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAA;IAC1C,gGAAgG;IAChG,QAAQ,CAAC,UAAU,EAAE,CAAC,IAAI,EAAE,kBAAkB,KAAK,OAAO,CAAA;CAC1D;AAED,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,iBAAiB,GAAG,qBAAqB,CAwC1F"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The questions waiting on the person, one on screen at a time.
|
|
3
|
+
*
|
|
4
|
+
* With per-call review a turn can have several questions open at once: the
|
|
5
|
+
* calls that are safe to run side by side each ask for themselves, and other
|
|
6
|
+
* agents ask through the same screen. This is the queue behind that screen. It
|
|
7
|
+
* holds no React state; the app shows whatever it reports and answers through
|
|
8
|
+
* it, so the rules below are testable without a terminal.
|
|
9
|
+
*
|
|
10
|
+
* - First asked, first shown. A question from another agent (a background ask)
|
|
11
|
+
* waits behind every question of the person's own conversation, but never
|
|
12
|
+
* takes the screen from the one already up.
|
|
13
|
+
* - "k of N": `settled + 1` of `settled + open`, shown when that total is two
|
|
14
|
+
* or more, so the last of several questions still reads "3 of 3" once the
|
|
15
|
+
* others are answered. A question closed without being shown (a rule now
|
|
16
|
+
* covers it) still counts as settled, so the numbers move the way the person
|
|
17
|
+
* would count. The count starts over when nothing is open.
|
|
18
|
+
* - A question whose signal aborts (the turn was stopped, a rule now covers
|
|
19
|
+
* it) is closed and its answer is ignored by the kernel.
|
|
20
|
+
*/
|
|
21
|
+
import type { PermissionDecision } from './agent.js';
|
|
22
|
+
/** What a question that was closed from outside is answered with; the kernel ignores it. */
|
|
23
|
+
export declare const CLOSED_QUESTION: PermissionDecision;
|
|
24
|
+
export interface AskCount {
|
|
25
|
+
/** Which question this is, counting those already settled. */
|
|
26
|
+
readonly position: number;
|
|
27
|
+
readonly total: number;
|
|
28
|
+
}
|
|
29
|
+
export declare class AskQueue<T> {
|
|
30
|
+
#private;
|
|
31
|
+
/**
|
|
32
|
+
* `onShow` is told which question is on screen whenever that changes (`null`:
|
|
33
|
+
* none); `onChange` after any change at all, the count behind the title included.
|
|
34
|
+
*/
|
|
35
|
+
constructor(onShow: (value: T | null) => void, onChange?: () => void);
|
|
36
|
+
/** The question on screen. */
|
|
37
|
+
get shown(): T | null;
|
|
38
|
+
/** Questions open now: the one on screen and those waiting. */
|
|
39
|
+
get open(): number;
|
|
40
|
+
/** Questions waiting behind the one on screen. */
|
|
41
|
+
get waiting(): number;
|
|
42
|
+
/**
|
|
43
|
+
* The "k of N" for the question on screen, or none while the set holds fewer
|
|
44
|
+
* than two questions (those settled since it began and those open now).
|
|
45
|
+
*/
|
|
46
|
+
count(): AskCount | undefined;
|
|
47
|
+
/** Every open question, the one on screen first. */
|
|
48
|
+
values(): readonly T[];
|
|
49
|
+
/**
|
|
50
|
+
* Put a question to the person. The promise settles with the answer, or with
|
|
51
|
+
* {@link CLOSED_QUESTION} when `signal` aborts first.
|
|
52
|
+
*/
|
|
53
|
+
enqueue(value: T, options?: {
|
|
54
|
+
background?: boolean;
|
|
55
|
+
signal?: AbortSignal;
|
|
56
|
+
}): Promise<PermissionDecision>;
|
|
57
|
+
/** Answer the question on screen. Returns whether there was one. */
|
|
58
|
+
answer(decision: PermissionDecision): boolean;
|
|
59
|
+
/**
|
|
60
|
+
* Close every open question the rule decides, shown or waiting, with the
|
|
61
|
+
* decision it returns. A question the rule leaves (`undefined`) stays open.
|
|
62
|
+
* Returns how many were closed.
|
|
63
|
+
*/
|
|
64
|
+
settleWhere(decide: (value: T, shown: boolean) => PermissionDecision | undefined): number;
|
|
65
|
+
/** Answer every open question the same way and start the count over. */
|
|
66
|
+
closeAll(decision: PermissionDecision): void;
|
|
67
|
+
}
|
|
68
|
+
//# sourceMappingURL=permission-asks.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"permission-asks.d.ts","sourceRoot":"","sources":["../../src/tui/permission-asks.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAA;AAEpD,4FAA4F;AAC5F,eAAO,MAAM,eAAe,EAAE,kBAG7B,CAAA;AASD,MAAM,WAAW,QAAQ;IACxB,8DAA8D;IAC9D,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;IACzB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;CACtB;AAED,qBAAa,QAAQ,CAAC,CAAC;;IAOtB;;;OAGG;gBACS,MAAM,EAAE,CAAC,KAAK,EAAE,CAAC,GAAG,IAAI,KAAK,IAAI,EAAE,QAAQ,GAAE,MAAM,IAAe;IAK9E,8BAA8B;IAC9B,IAAI,KAAK,IAAI,CAAC,GAAG,IAAI,CAEpB;IAED,+DAA+D;IAC/D,IAAI,IAAI,IAAI,MAAM,CAEjB;IAED,kDAAkD;IAClD,IAAI,OAAO,IAAI,MAAM,CAEpB;IAED;;;OAGG;IACH,KAAK,IAAI,QAAQ,GAAG,SAAS;IAO7B,oDAAoD;IACpD,MAAM,IAAI,SAAS,CAAC,EAAE;IAItB;;;OAGG;IACH,OAAO,CACN,KAAK,EAAE,CAAC,EACR,OAAO,GAAE;QAAE,UAAU,CAAC,EAAE,OAAO,CAAC;QAAC,MAAM,CAAC,EAAE,WAAW,CAAA;KAAO,GAC1D,OAAO,CAAC,kBAAkB,CAAC;IA6B9B,oEAAoE;IACpE,MAAM,CAAC,QAAQ,EAAE,kBAAkB,GAAG,OAAO;IAO7C;;;;OAIG;IACH,WAAW,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,OAAO,KAAK,kBAAkB,GAAG,SAAS,GAAG,MAAM;IA4BzF,wEAAwE;IACxE,QAAQ,CAAC,QAAQ,EAAE,kBAAkB,GAAG,IAAI;CAmC5C"}
|
|
@@ -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,GACz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A+ER;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,kBAAkB;IAClC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB;;;OAGG;IACH,QAAQ,CAAC,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,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The row a call has while it waits for a yes.
|
|
3
|
+
*
|
|
4
|
+
* With per-call review the terminal knows about a call before the kernel
|
|
5
|
+
* starts it: it is being asked about, or it is queued behind an earlier
|
|
6
|
+
* question. The row is the one the call will have when it runs, drawn quiet:
|
|
7
|
+
* a static dim dot, the call's own title, and for a shell call a dim
|
|
8
|
+
* "Waiting…" line where "Running…" will go. When the call starts, the kernel's
|
|
9
|
+
* start event takes the row over by id.
|
|
10
|
+
*/
|
|
11
|
+
import type { ToolPresenter } from '@namzu/sdk';
|
|
12
|
+
import type { ActiveTool } from './LiveActivity.js';
|
|
13
|
+
import { type PermissionToolCall } from './agent.js';
|
|
14
|
+
export type QueuedTool = ActiveTool & {
|
|
15
|
+
readonly activity?: 'exploration';
|
|
16
|
+
readonly turnId?: string;
|
|
17
|
+
readonly toolName: string;
|
|
18
|
+
readonly detail?: readonly string[];
|
|
19
|
+
};
|
|
20
|
+
/** The waiting row of one call, or `undefined` when the call has no view to draw. */
|
|
21
|
+
export declare function queuedToolRow(call: PermissionToolCall, turnId: string | undefined, presenter: ToolPresenter, cwd: string, now: number): QueuedTool | undefined;
|
|
22
|
+
/** Add a waiting row unless the call already has one (or already runs). */
|
|
23
|
+
export declare function withQueuedRow<T extends {
|
|
24
|
+
readonly id: string;
|
|
25
|
+
readonly turnId?: string;
|
|
26
|
+
}>(rows: readonly T[], row: T): readonly T[];
|
|
27
|
+
/** Take a call's waiting row away, if it is still waiting. A running call's row stays. */
|
|
28
|
+
export declare function withoutQueuedRow<T extends {
|
|
29
|
+
readonly id: string;
|
|
30
|
+
readonly queued?: true;
|
|
31
|
+
}>(rows: readonly T[], callId: string): readonly T[];
|
|
32
|
+
/** A waiting row after its yes: the same row, now running. */
|
|
33
|
+
export declare function withStartedRow<T extends {
|
|
34
|
+
readonly id: string;
|
|
35
|
+
readonly queued?: true;
|
|
36
|
+
readonly startedAt: number;
|
|
37
|
+
}>(rows: readonly T[], callId: string, now: number): readonly T[];
|
|
38
|
+
/**
|
|
39
|
+
* The kernel's start of a call: it takes over the row the call already has
|
|
40
|
+
* (waiting for its yes, or running once approved) in the place it holds, so a
|
|
41
|
+
* call never has two rows. A call with no row is added at the end.
|
|
42
|
+
*/
|
|
43
|
+
export declare function withTakenOverRow<T extends {
|
|
44
|
+
readonly id: string;
|
|
45
|
+
readonly turnId?: string;
|
|
46
|
+
}>(rows: readonly T[], started: T): readonly T[];
|
|
47
|
+
//# sourceMappingURL=queued-calls.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"queued-calls.d.ts","sourceRoot":"","sources":["../../src/tui/queued-calls.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,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