@namzu/cli 38.1.1 → 39.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 +142 -50
- package/dist/bin.js +1 -1
- package/dist/checkpoints/store.d.ts +4 -4
- package/dist/checkpoints/store.d.ts.map +1 -1
- package/dist/chunks/{acp-GBQKP3SQ.js → acp-NZITIX4C.js} +41 -38
- package/dist/chunks/acp-NZITIX4C.js.map +6 -0
- package/dist/chunks/{activity-command-6CVS5DZI.js → activity-command-NKOTZ5FK.js} +11 -11
- package/dist/chunks/{add-VVRTXHDQ.js → add-AONYUNXG.js} +18 -18
- package/dist/chunks/{agent-UZHYPLYW.js → agent-YPKFE66C.js} +32 -29
- package/dist/chunks/agent-session-HFOLAFFL.js +53 -0
- package/dist/chunks/{archive-YWLKZACK.js → archive-SUE5OUZZ.js} +9 -9
- package/dist/chunks/{bin-main-LVQFA6PZ.js → bin-main-55PUHGTA.js} +3 -3
- package/dist/chunks/{browser-HD24O6AL.js → browser-HYPSUDAZ.js} +6 -6
- package/dist/chunks/{chat-VOBGMUI3.js → chat-6OULID33.js} +14 -14
- package/dist/chunks/{chunk-7M3YW2NF.js → chunk-233DQVSC.js} +6 -6
- package/dist/chunks/{chunk-HAJ7UV4Y.js → chunk-263WNQB4.js} +9 -9
- package/dist/chunks/{chunk-W47OQU6P.js → chunk-2KKF45DQ.js} +2 -2
- package/dist/chunks/{chunk-UASN4SLO.js → chunk-2VMMTC2V.js} +2 -2
- package/dist/chunks/{chunk-IP36P4KT.js → chunk-2WQFRVVQ.js} +4 -4
- package/dist/chunks/{chunk-5BZSCNGR.js → chunk-3JB5NDB4.js} +62 -155
- package/dist/chunks/chunk-3JB5NDB4.js.map +6 -0
- package/dist/chunks/{chunk-MSNMI4KG.js → chunk-3OAGXDRM.js} +4 -4
- package/dist/chunks/{chunk-XBCEWEQN.js → chunk-47TGPZWD.js} +3 -3
- package/dist/chunks/{chunk-GIBXNY7Z.js → chunk-4K2NRXHJ.js} +2 -2
- package/dist/chunks/{chunk-42GHVPZE.js → chunk-5CGH647C.js} +5 -5
- package/dist/chunks/{chunk-7LMPS6TV.js → chunk-74U3P65Q.js} +12 -12
- package/dist/chunks/{chunk-XNOORMEP.js → chunk-7EASYULO.js} +8 -8
- package/dist/chunks/{chunk-MKPICNP7.js → chunk-7YXHOSHD.js} +3 -3
- package/dist/chunks/{chunk-US5ZFPAU.js → chunk-AXCOWIIH.js} +2 -7
- package/dist/chunks/{chunk-US5ZFPAU.js.map → chunk-AXCOWIIH.js.map} +1 -1
- package/dist/chunks/{chunk-AEB7KCO6.js → chunk-AZ3YHVFA.js} +2 -2
- package/dist/chunks/{chunk-YUX6OJOD.js → chunk-B2357ETN.js} +7 -7
- package/dist/chunks/{chunk-TCXFKEYW.js → chunk-B73OIFL6.js} +4 -4
- package/dist/chunks/{chunk-TCXFKEYW.js.map → chunk-B73OIFL6.js.map} +1 -1
- package/dist/chunks/{chunk-J7RNZR6A.js → chunk-BEFTUDYP.js} +7 -7
- package/dist/chunks/chunk-CDYUGK7F.js +70 -0
- package/dist/chunks/chunk-CDYUGK7F.js.map +6 -0
- package/dist/chunks/{chunk-NR6YON2Q.js → chunk-CL5TCY4F.js} +2 -2
- package/dist/chunks/{chunk-52E6DDZD.js → chunk-CUOWARJI.js} +2 -2
- package/dist/chunks/{chunk-FHDYGPGC.js → chunk-CZEU2JYJ.js} +3 -3
- package/dist/chunks/{chunk-FHDYGPGC.js.map → chunk-CZEU2JYJ.js.map} +1 -1
- package/dist/chunks/{chunk-FDAOPSRK.js → chunk-DFA5OB46.js} +4 -4
- package/dist/chunks/{chunk-JFZF3FQ2.js → chunk-E3HCZYGN.js} +3 -3
- package/dist/chunks/{chunk-BSBFGZLW.js → chunk-EA6SWPO4.js} +4 -4
- package/dist/chunks/{chunk-WWGLUAHZ.js → chunk-EUU4TDTH.js} +2 -2
- package/dist/chunks/{chunk-ZAUFSEHS.js → chunk-FBNKKDIY.js} +4 -4
- package/dist/chunks/{chunk-DTMONWML.js → chunk-FQZFVLJB.js} +4 -4
- package/dist/chunks/{chunk-OUTFB7EJ.js → chunk-GU5YARBU.js} +93 -7
- package/dist/chunks/chunk-GU5YARBU.js.map +6 -0
- package/dist/chunks/{chunk-MDEIMYQU.js → chunk-HI2KXIGA.js} +20 -83
- package/dist/chunks/chunk-HI2KXIGA.js.map +6 -0
- package/dist/chunks/{chunk-WTF2RVKD.js → chunk-HU35YAIZ.js} +2 -2
- package/dist/chunks/{chunk-AMT74CY7.js → chunk-HV77F4SF.js} +42 -60
- package/dist/chunks/chunk-HV77F4SF.js.map +6 -0
- package/dist/chunks/{chunk-2UBCLXGV.js → chunk-IAYIUJMI.js} +2 -2
- package/dist/chunks/{chunk-BGM3PULY.js → chunk-ID334ALD.js} +39 -31
- package/dist/chunks/{chunk-BGM3PULY.js.map → chunk-ID334ALD.js.map} +1 -1
- package/dist/chunks/{chunk-U3JIZFOS.js → chunk-IE5XIE4W.js} +2 -2
- package/dist/chunks/{chunk-SDABAQVK.js → chunk-II57E2QW.js} +4 -4
- package/dist/chunks/{chunk-CZVHXYGD.js → chunk-IYPP6HSK.js} +4 -32
- package/dist/chunks/chunk-IYPP6HSK.js.map +6 -0
- package/dist/chunks/{chunk-54BF5YUB.js → chunk-LFVQSMJG.js} +4 -4
- package/dist/chunks/chunk-M3TJHQF7.js +134 -0
- package/dist/chunks/chunk-M3TJHQF7.js.map +6 -0
- package/dist/chunks/{chunk-MW3PKVXY.js → chunk-MCNEFI5Q.js} +2 -2
- package/dist/chunks/{chunk-YA4IH46E.js → chunk-N3FI7O4U.js} +4 -4
- package/dist/chunks/{chunk-XXBN2OWW.js → chunk-N72DH6D5.js} +2 -2
- package/dist/chunks/{chunk-LWXTAX2V.js → chunk-NLKIBRXJ.js} +18 -8
- package/dist/chunks/chunk-NLKIBRXJ.js.map +6 -0
- package/dist/chunks/{chunk-TDDCRQZZ.js → chunk-OLOTFDTU.js} +2 -2
- package/dist/chunks/{chunk-WXMFE5SS.js → chunk-OXJEMOBQ.js} +1179 -302
- package/dist/chunks/chunk-OXJEMOBQ.js.map +6 -0
- package/dist/chunks/{chunk-G6QXPPH3.js → chunk-P2Y4LUPJ.js} +2 -2
- package/dist/chunks/{chunk-65Y4XRJ7.js → chunk-QNF6COCY.js} +3 -3
- package/dist/chunks/{chunk-Q3IWEW4F.js → chunk-QO5JUKFG.js} +25 -19
- package/dist/chunks/chunk-QO5JUKFG.js.map +6 -0
- package/dist/chunks/{chunk-GXE2VIGI.js → chunk-RB36O3CE.js} +2 -2
- package/dist/chunks/{chunk-XM3W7NMM.js → chunk-RQBT4RVE.js} +1206 -326
- package/dist/chunks/chunk-RQBT4RVE.js.map +6 -0
- package/dist/chunks/{chunk-ALNCCKDI.js → chunk-SBPCN24X.js} +2 -2
- package/dist/chunks/{chunk-XNY2DD22.js → chunk-SIK62TDI.js} +2 -2
- package/dist/chunks/{chunk-VXHYLNLR.js → chunk-T75ITEN6.js} +3 -3
- package/dist/chunks/{chunk-6GJXAHUO.js → chunk-TJTRVZFN.js} +2 -2
- package/dist/chunks/{chunk-42CAONYE.js → chunk-UBOPUGDN.js} +26 -11
- package/dist/chunks/chunk-UBOPUGDN.js.map +6 -0
- package/dist/chunks/{chunk-H3LH5GZ5.js → chunk-UIDLXA2K.js} +2 -2
- package/dist/chunks/{chunk-YBZMF6LC.js → chunk-UTMGJDC3.js} +2 -2
- package/dist/chunks/{chunk-YE2PFKVU.js → chunk-UUUNXKL3.js} +3 -3
- package/dist/chunks/{chunk-6ARSJBCV.js → chunk-UZCA37QE.js} +2 -2
- package/dist/chunks/{chunk-LQFMXCHI.js → chunk-W27ZDC4R.js} +4 -4
- package/dist/chunks/{chunk-P7OXZHTL.js → chunk-XEHLRJXR.js} +16 -13
- package/dist/chunks/{chunk-P7OXZHTL.js.map → chunk-XEHLRJXR.js.map} +1 -1
- package/dist/chunks/{chunk-5DJ5YIHY.js → chunk-XJ4IUCH6.js} +15 -15
- package/dist/chunks/{chunk-6N6HLU4F.js → chunk-YKEPC6NH.js} +3 -3
- package/dist/chunks/{chunk-HQ37JKI2.js → chunk-Z7XA4Y43.js} +3 -3
- package/dist/chunks/{cli-runtime-53GYDVBD.js → cli-runtime-G3FHYTCI.js} +20 -14
- package/dist/chunks/cli-runtime-G3FHYTCI.js.map +6 -0
- package/dist/chunks/{commands-X2P7B7M6.js → commands-TIRZH2TK.js} +5 -5
- package/dist/chunks/{crash-report-YKKJEHWY.js → crash-report-E4J7KQ32.js} +7 -7
- package/dist/chunks/{dist-E24W5SI7.js → dist-2IUQEIEI.js} +2 -2
- package/dist/chunks/{dist-TTCX7GFK.js → dist-2U6NNEPY.js} +3 -3
- package/dist/chunks/{dist-ADL22Y3L.js → dist-56CMMYUT.js} +48 -5
- package/dist/chunks/dist-56CMMYUT.js.map +6 -0
- package/dist/chunks/{dist-KP5U4QDN.js → dist-CVDGKJEI.js} +2 -2
- package/dist/chunks/{dist-TYCOBKDT.js → dist-MKQZKCB4.js} +2 -2
- package/dist/chunks/{dist-EO3WQFRN.js → dist-QCKKBLDW.js} +2 -2
- package/dist/chunks/{dist-6ABVUWX5.js → dist-QHKTYYMX.js} +2 -2
- package/dist/chunks/{dist-5KZ4SS57.js → dist-YX7Q3EJR.js} +3 -3
- package/dist/chunks/{doctor-QTMSOOEO.js → doctor-ASXICRC5.js} +10 -10
- package/dist/chunks/{drain-FWONJITS.js → drain-CGS3KBU3.js} +10 -10
- package/dist/chunks/{eval-GQTJX6WI.js → eval-XWC3UCFI.js} +2 -2
- package/dist/chunks/{exec-A5BM63JW.js → exec-FOUQBA6I.js} +43 -30
- package/dist/chunks/exec-FOUQBA6I.js.map +6 -0
- package/dist/chunks/{home-QAEAKEUG.js → home-76YLI2M6.js} +3 -3
- package/dist/chunks/{host-queries-NY6FDVNU.js → host-queries-ODUQHYBN.js} +14 -14
- package/dist/chunks/{lifecycle-EJQ57UR7.js → lifecycle-JN43XQSS.js} +26 -26
- package/dist/chunks/{list-P5KDSX7R.js → list-TC7TYJDR.js} +12 -12
- package/dist/chunks/{login-PQAWB3YL.js → login-CTC6CAM4.js} +10 -10
- package/dist/chunks/{logs-PYWTK275.js → logs-2NGJFIQI.js} +4 -4
- package/dist/chunks/{mcp-QJRY437O.js → mcp-BPH7KWZ6.js} +19 -19
- package/dist/chunks/{message-command-RGUNGNNC.js → message-command-A4XU7QQQ.js} +36 -35
- package/dist/chunks/message-command-A4XU7QQQ.js.map +6 -0
- package/dist/chunks/{operator-tools-UH4SJXQJ.js → operator-tools-6RYAHVSL.js} +12 -12
- package/dist/chunks/{output-schema-BN6UL2BB.js → output-schema-GSWZHKSI.js} +3 -3
- package/dist/chunks/{pal-NAJGPRTW.js → pal-4QXXG42H.js} +13 -13
- package/dist/chunks/{providers-VTT4SK6S.js → providers-6PIIF3WR.js} +8 -8
- package/dist/chunks/{resident-AQYBL2GF.js → resident-UP7W6MV6.js} +21 -21
- package/dist/chunks/resume-GJHTPMJS.js +22 -0
- package/dist/chunks/{resume-command-AOT7YZT5.js → resume-command-2RFT7AGW.js} +4 -4
- package/dist/chunks/{schedule-WYFFJI6G.js → schedule-FZISVF6A.js} +8 -8
- package/dist/chunks/{service-HAMHYSEA.js → service-4WADXOUI.js} +25 -25
- package/dist/chunks/session-step-FX6B4TSE.js +29 -0
- package/dist/chunks/{skills-5TJTJEDG.js → skills-BJQGVQ23.js} +8 -8
- package/dist/chunks/{state-ABEFSCFQ.js → state-2KKVQPZ2.js} +2 -2
- package/dist/chunks/{store-BL5L6BOI.js → store-LO4SSRYI.js} +9 -9
- package/dist/chunks/{store-UKFFPFLI.js → store-TKJKR5NM.js} +6 -6
- package/dist/chunks/{store-WBED64YS.js → store-YFTJ24WU.js} +4 -4
- package/dist/chunks/{tui-EWFJ5CEO.js → tui-HA3JIVON.js} +4258 -2163
- package/dist/chunks/tui-HA3JIVON.js.map +6 -0
- package/dist/chunks/{upgrade-2HP3BTOT.js → upgrade-3QLPPCII.js} +4 -3
- package/dist/chunks/upgrade-3QLPPCII.js.map +6 -0
- package/dist/chunks/{worktree-PNFBTACG.js → worktree-3HYAYSGW.js} +11 -11
- package/dist/cli.d.ts.map +1 -1
- package/dist/commands/acp.d.ts.map +1 -1
- package/dist/commands/desktop-model-catalogue.d.ts +1 -1
- package/dist/commands/exec-json.d.ts.map +1 -1
- package/dist/commands/exec.d.ts.map +1 -1
- package/dist/commands/resume.d.ts +1 -1
- package/dist/config/composer-triggers.d.ts +1 -1
- package/dist/config/composer-triggers.d.ts.map +1 -1
- package/dist/config/load.d.ts +1 -2
- package/dist/config/load.d.ts.map +1 -1
- package/dist/config/schema.d.ts +22 -5
- package/dist/config/schema.d.ts.map +1 -1
- package/dist/context/doctrine.d.ts +4 -4
- package/dist/context/doctrine.d.ts.map +1 -1
- package/dist/index.js +15 -15
- package/dist/integrations/harness/codex-protocol.d.ts +1 -1
- package/dist/integrations/harness/codex-protocol.d.ts.map +1 -1
- package/dist/integrations/mcp/tool-search.d.ts +3 -4
- package/dist/integrations/mcp/tool-search.d.ts.map +1 -1
- package/dist/integrations/notifications/approval.d.ts +36 -0
- package/dist/integrations/notifications/approval.d.ts.map +1 -0
- package/dist/integrations/notifications/idle.d.ts +2 -2
- package/dist/integrations/notifications/idle.d.ts.map +1 -1
- package/dist/integrations/providers/identity.d.ts +1 -1
- package/dist/integrations/resident/runner-worker.js +20 -20
- package/dist/integrations/sessions/journal-trail.d.ts +6 -0
- package/dist/integrations/sessions/journal-trail.d.ts.map +1 -0
- package/dist/integrations/sessions/store.d.ts.map +1 -1
- package/dist/integrations/subagents/activity.d.ts +4 -0
- package/dist/integrations/subagents/activity.d.ts.map +1 -1
- package/dist/integrations/subagents/label-ledger.d.ts +2 -3
- package/dist/integrations/subagents/label-ledger.d.ts.map +1 -1
- package/dist/integrations/subagents/runtime.d.ts +40 -4
- package/dist/integrations/subagents/runtime.d.ts.map +1 -1
- package/dist/integrations/subagents/workflow-assignment.d.ts +13 -0
- package/dist/integrations/subagents/workflow-assignment.d.ts.map +1 -0
- package/dist/integrations/trust/folder-grants.d.ts +20 -0
- package/dist/integrations/trust/folder-grants.d.ts.map +1 -0
- package/dist/integrations/workflows/doctrine.d.ts +4 -3
- package/dist/integrations/workflows/doctrine.d.ts.map +1 -1
- package/dist/integrations/workflows/host.d.ts +12 -0
- package/dist/integrations/workflows/host.d.ts.map +1 -1
- package/dist/integrations/workflows/notice.d.ts.map +1 -1
- package/dist/integrations/workflows/offering.d.ts +9 -19
- package/dist/integrations/workflows/offering.d.ts.map +1 -1
- package/dist/integrations/workflows/size.d.ts +51 -0
- package/dist/integrations/workflows/size.d.ts.map +1 -0
- package/dist/permissions/consent-prompt.d.ts.map +1 -1
- package/dist/permissions/live-mode.d.ts +1 -2
- package/dist/permissions/live-mode.d.ts.map +1 -1
- package/dist/permissions/local-settings.d.ts +4 -4
- package/dist/permissions/mode.d.ts +1 -1
- package/dist/permissions/rules.d.ts +1 -2
- package/dist/permissions/rules.d.ts.map +1 -1
- package/dist/permissions/session-allow.d.ts +12 -12
- package/dist/permissions/session-allow.d.ts.map +1 -1
- package/dist/plan/approval.d.ts +1 -2
- package/dist/plan/approval.d.ts.map +1 -1
- package/dist/reminders/frame.d.ts +1 -1
- package/dist/reminders/frame.d.ts.map +1 -1
- package/dist/reminders/hypermode.d.ts +31 -0
- package/dist/reminders/hypermode.d.ts.map +1 -0
- package/dist/reminders/index.d.ts +7 -1
- package/dist/reminders/index.d.ts.map +1 -1
- package/dist/reminders/plan-mode.d.ts +1 -1
- package/dist/reminders/task-nudge.d.ts +1 -1
- package/dist/schedule/fire/fire.d.ts.map +1 -1
- package/dist/tui/AgentExplorer.d.ts +37 -10
- package/dist/tui/AgentExplorer.d.ts.map +1 -1
- package/dist/tui/App.d.ts +23 -3
- package/dist/tui/App.d.ts.map +1 -1
- package/dist/tui/BackgroundAgentRows.d.ts +13 -0
- package/dist/tui/BackgroundAgentRows.d.ts.map +1 -0
- package/dist/tui/BackgroundJobsPanel.d.ts.map +1 -1
- package/dist/tui/BrandHeader.d.ts +2 -0
- package/dist/tui/BrandHeader.d.ts.map +1 -1
- package/dist/tui/ChoicePicker.d.ts +8 -1
- package/dist/tui/ChoicePicker.d.ts.map +1 -1
- package/dist/tui/Composer.d.ts +12 -4
- package/dist/tui/Composer.d.ts.map +1 -1
- package/dist/tui/ComposerFrame.d.ts +1 -1
- package/dist/tui/EffortSlider.d.ts +4 -4
- package/dist/tui/EffortSlider.d.ts.map +1 -1
- package/dist/tui/LiveActivity.d.ts +8 -3
- package/dist/tui/LiveActivity.d.ts.map +1 -1
- package/dist/tui/PendingInputPanel.d.ts +1 -1
- package/dist/tui/PendingInputPanel.d.ts.map +1 -1
- package/dist/tui/PermissionOverlay.d.ts +1 -1
- package/dist/tui/PermissionOverlay.d.ts.map +1 -1
- package/dist/tui/PlanApprovalOverlay.d.ts +2 -2
- package/dist/tui/QuestionDialog.d.ts +1 -1
- package/dist/tui/ResumePicker.d.ts.map +1 -1
- package/dist/tui/StatusBar.d.ts +22 -7
- package/dist/tui/StatusBar.d.ts.map +1 -1
- package/dist/tui/Transcript.d.ts +6 -5
- package/dist/tui/Transcript.d.ts.map +1 -1
- package/dist/tui/TrustPrompt.d.ts +11 -1
- package/dist/tui/TrustPrompt.d.ts.map +1 -1
- package/dist/tui/agent-stop-all.d.ts +36 -0
- package/dist/tui/agent-stop-all.d.ts.map +1 -0
- package/dist/tui/agent-transcript-rows.d.ts +34 -19
- package/dist/tui/agent-transcript-rows.d.ts.map +1 -1
- package/dist/tui/agent-view-commands.d.ts +3 -5
- package/dist/tui/agent-view-commands.d.ts.map +1 -1
- package/dist/tui/agent.d.ts +55 -7
- package/dist/tui/agent.d.ts.map +1 -1
- package/dist/tui/background-agents.d.ts +46 -0
- package/dist/tui/background-agents.d.ts.map +1 -0
- package/dist/tui/browser-notices.d.ts +3 -3
- package/dist/tui/browser-notices.d.ts.map +1 -1
- package/dist/tui/choice-selection.d.ts +3 -1
- package/dist/tui/choice-selection.d.ts.map +1 -1
- package/dist/tui/compaction-rows.d.ts +51 -0
- package/dist/tui/compaction-rows.d.ts.map +1 -0
- package/dist/tui/composer-hints.d.ts +26 -0
- package/dist/tui/composer-hints.d.ts.map +1 -0
- package/dist/tui/context-meter.d.ts +1 -1
- package/dist/tui/diff-rows.d.ts +41 -0
- package/dist/tui/diff-rows.d.ts.map +1 -0
- package/dist/tui/diff-view.d.ts +99 -0
- package/dist/tui/diff-view.d.ts.map +1 -0
- package/dist/tui/display-path.d.ts +10 -0
- package/dist/tui/display-path.d.ts.map +1 -0
- package/dist/tui/exit-hint.d.ts +3 -0
- package/dist/tui/exit-hint.d.ts.map +1 -0
- package/dist/tui/hint-counts.d.ts +7 -0
- package/dist/tui/hint-counts.d.ts.map +1 -0
- package/dist/tui/hypermode.d.ts +20 -26
- package/dist/tui/hypermode.d.ts.map +1 -1
- package/dist/tui/index.d.ts.map +1 -1
- package/dist/tui/job-exit-row.d.ts +1 -1
- package/dist/tui/job-exit-row.d.ts.map +1 -1
- package/dist/tui/live-window.d.ts +1 -1
- package/dist/tui/live-window.d.ts.map +1 -1
- package/dist/tui/markdown-table.d.ts +1 -2
- package/dist/tui/markdown-table.d.ts.map +1 -1
- package/dist/tui/markdown-wrap.d.ts.map +1 -1
- package/dist/tui/paste-chips.d.ts +22 -0
- package/dist/tui/paste-chips.d.ts.map +1 -0
- package/dist/tui/pause-clock.d.ts +15 -0
- package/dist/tui/pause-clock.d.ts.map +1 -0
- package/dist/tui/permission-review.d.ts +6 -0
- package/dist/tui/permission-review.d.ts.map +1 -1
- package/dist/tui/placeholder-examples.d.ts +5 -0
- package/dist/tui/placeholder-examples.d.ts.map +1 -0
- package/dist/tui/plain-interruption.d.ts +9 -1
- package/dist/tui/plain-interruption.d.ts.map +1 -1
- package/dist/tui/restored-rows.d.ts +85 -0
- package/dist/tui/restored-rows.d.ts.map +1 -0
- package/dist/tui/schedule/source-deliveries.d.ts +8 -1
- package/dist/tui/schedule/source-deliveries.d.ts.map +1 -1
- package/dist/tui/shell-cell.d.ts +15 -0
- package/dist/tui/shell-cell.d.ts.map +1 -1
- package/dist/tui/shell-escape.d.ts +4 -1
- package/dist/tui/shell-escape.d.ts.map +1 -1
- package/dist/tui/slashCommands.d.ts +6 -0
- package/dist/tui/slashCommands.d.ts.map +1 -1
- package/dist/tui/stall-colour.d.ts +20 -0
- package/dist/tui/stall-colour.d.ts.map +1 -0
- package/dist/tui/status-line/StatusLineRows.d.ts +1 -2
- package/dist/tui/status-line/StatusLineRows.d.ts.map +1 -1
- package/dist/tui/status-line/controller.d.ts +1 -1
- package/dist/tui/status-line/output.d.ts +2 -2
- package/dist/tui/status-line/payload.d.ts +2 -2
- package/dist/tui/status-line/run-command.d.ts +1 -1
- package/dist/tui/system-rows.d.ts +85 -0
- package/dist/tui/system-rows.d.ts.map +1 -0
- package/dist/tui/terminal-choice-text.d.ts +7 -0
- package/dist/tui/terminal-choice-text.d.ts.map +1 -1
- package/dist/tui/theme.d.ts +21 -0
- package/dist/tui/theme.d.ts.map +1 -1
- package/dist/tui/tidy-tool-output.d.ts +2 -14
- package/dist/tui/tidy-tool-output.d.ts.map +1 -1
- package/dist/tui/tool-end-rows.d.ts +61 -0
- package/dist/tui/tool-end-rows.d.ts.map +1 -0
- package/dist/tui/tool-failure-text.d.ts +13 -0
- package/dist/tui/tool-failure-text.d.ts.map +1 -0
- package/dist/tui/triggers/context-text.d.ts +3 -3
- package/dist/tui/triggers/context-text.d.ts.map +1 -1
- package/dist/tui/triggers/copy.d.ts +14 -11
- package/dist/tui/triggers/copy.d.ts.map +1 -1
- package/dist/tui/triggers/detect.d.ts.map +1 -1
- package/dist/tui/triggers/registry.d.ts +3 -4
- package/dist/tui/triggers/registry.d.ts.map +1 -1
- package/dist/tui/triggers/setting.d.ts.map +1 -1
- package/dist/tui/truncation.d.ts +27 -0
- package/dist/tui/truncation.d.ts.map +1 -0
- package/dist/tui/turn-interruption.d.ts +2 -0
- package/dist/tui/turn-interruption.d.ts.map +1 -1
- package/dist/tui/typed-input.d.ts +14 -0
- package/dist/tui/typed-input.d.ts.map +1 -0
- package/dist/tui/types.d.ts +16 -1
- package/dist/tui/types.d.ts.map +1 -1
- package/dist/tui/units.d.ts +17 -1
- package/dist/tui/units.d.ts.map +1 -1
- package/dist/tui/user-text-view.d.ts +25 -0
- package/dist/tui/user-text-view.d.ts.map +1 -0
- package/dist/tui/web-activity.d.ts.map +1 -1
- package/dist/tui/workflow-runs.d.ts.map +1 -1
- package/dist/tui/workspace-diff.d.ts +19 -0
- package/dist/tui/workspace-diff.d.ts.map +1 -1
- package/package.json +8 -7
- package/dist/chunks/acp-GBQKP3SQ.js.map +0 -6
- package/dist/chunks/agent-session-CQ52CRGK.js +0 -52
- package/dist/chunks/chunk-42CAONYE.js.map +0 -6
- package/dist/chunks/chunk-5BZSCNGR.js.map +0 -6
- package/dist/chunks/chunk-AMT74CY7.js.map +0 -6
- package/dist/chunks/chunk-CZVHXYGD.js.map +0 -6
- package/dist/chunks/chunk-LWXTAX2V.js.map +0 -6
- package/dist/chunks/chunk-MDEIMYQU.js.map +0 -6
- package/dist/chunks/chunk-OUTFB7EJ.js.map +0 -6
- package/dist/chunks/chunk-Q3IWEW4F.js.map +0 -6
- package/dist/chunks/chunk-WXMFE5SS.js.map +0 -6
- package/dist/chunks/chunk-XM3W7NMM.js.map +0 -6
- package/dist/chunks/cli-runtime-53GYDVBD.js.map +0 -6
- package/dist/chunks/dist-ADL22Y3L.js.map +0 -6
- package/dist/chunks/exec-A5BM63JW.js.map +0 -6
- package/dist/chunks/message-command-RGUNGNNC.js.map +0 -6
- package/dist/chunks/resume-KV2D6FK4.js +0 -22
- package/dist/chunks/session-step-QNH35CYJ.js +0 -29
- package/dist/chunks/tui-EWFJ5CEO.js.map +0 -6
- package/dist/chunks/upgrade-2HP3BTOT.js.map +0 -6
- /package/dist/chunks/{activity-command-6CVS5DZI.js.map → activity-command-NKOTZ5FK.js.map} +0 -0
- /package/dist/chunks/{add-VVRTXHDQ.js.map → add-AONYUNXG.js.map} +0 -0
- /package/dist/chunks/{agent-UZHYPLYW.js.map → agent-YPKFE66C.js.map} +0 -0
- /package/dist/chunks/{agent-session-CQ52CRGK.js.map → agent-session-HFOLAFFL.js.map} +0 -0
- /package/dist/chunks/{archive-YWLKZACK.js.map → archive-SUE5OUZZ.js.map} +0 -0
- /package/dist/chunks/{bin-main-LVQFA6PZ.js.map → bin-main-55PUHGTA.js.map} +0 -0
- /package/dist/chunks/{browser-HD24O6AL.js.map → browser-HYPSUDAZ.js.map} +0 -0
- /package/dist/chunks/{chat-VOBGMUI3.js.map → chat-6OULID33.js.map} +0 -0
- /package/dist/chunks/{chunk-7M3YW2NF.js.map → chunk-233DQVSC.js.map} +0 -0
- /package/dist/chunks/{chunk-HAJ7UV4Y.js.map → chunk-263WNQB4.js.map} +0 -0
- /package/dist/chunks/{chunk-W47OQU6P.js.map → chunk-2KKF45DQ.js.map} +0 -0
- /package/dist/chunks/{chunk-UASN4SLO.js.map → chunk-2VMMTC2V.js.map} +0 -0
- /package/dist/chunks/{chunk-IP36P4KT.js.map → chunk-2WQFRVVQ.js.map} +0 -0
- /package/dist/chunks/{chunk-MSNMI4KG.js.map → chunk-3OAGXDRM.js.map} +0 -0
- /package/dist/chunks/{chunk-XBCEWEQN.js.map → chunk-47TGPZWD.js.map} +0 -0
- /package/dist/chunks/{chunk-GIBXNY7Z.js.map → chunk-4K2NRXHJ.js.map} +0 -0
- /package/dist/chunks/{chunk-42GHVPZE.js.map → chunk-5CGH647C.js.map} +0 -0
- /package/dist/chunks/{chunk-7LMPS6TV.js.map → chunk-74U3P65Q.js.map} +0 -0
- /package/dist/chunks/{chunk-XNOORMEP.js.map → chunk-7EASYULO.js.map} +0 -0
- /package/dist/chunks/{chunk-MKPICNP7.js.map → chunk-7YXHOSHD.js.map} +0 -0
- /package/dist/chunks/{chunk-AEB7KCO6.js.map → chunk-AZ3YHVFA.js.map} +0 -0
- /package/dist/chunks/{chunk-YUX6OJOD.js.map → chunk-B2357ETN.js.map} +0 -0
- /package/dist/chunks/{chunk-J7RNZR6A.js.map → chunk-BEFTUDYP.js.map} +0 -0
- /package/dist/chunks/{chunk-NR6YON2Q.js.map → chunk-CL5TCY4F.js.map} +0 -0
- /package/dist/chunks/{chunk-52E6DDZD.js.map → chunk-CUOWARJI.js.map} +0 -0
- /package/dist/chunks/{chunk-FDAOPSRK.js.map → chunk-DFA5OB46.js.map} +0 -0
- /package/dist/chunks/{chunk-JFZF3FQ2.js.map → chunk-E3HCZYGN.js.map} +0 -0
- /package/dist/chunks/{chunk-BSBFGZLW.js.map → chunk-EA6SWPO4.js.map} +0 -0
- /package/dist/chunks/{chunk-WWGLUAHZ.js.map → chunk-EUU4TDTH.js.map} +0 -0
- /package/dist/chunks/{chunk-ZAUFSEHS.js.map → chunk-FBNKKDIY.js.map} +0 -0
- /package/dist/chunks/{chunk-DTMONWML.js.map → chunk-FQZFVLJB.js.map} +0 -0
- /package/dist/chunks/{chunk-WTF2RVKD.js.map → chunk-HU35YAIZ.js.map} +0 -0
- /package/dist/chunks/{chunk-2UBCLXGV.js.map → chunk-IAYIUJMI.js.map} +0 -0
- /package/dist/chunks/{chunk-U3JIZFOS.js.map → chunk-IE5XIE4W.js.map} +0 -0
- /package/dist/chunks/{chunk-SDABAQVK.js.map → chunk-II57E2QW.js.map} +0 -0
- /package/dist/chunks/{chunk-54BF5YUB.js.map → chunk-LFVQSMJG.js.map} +0 -0
- /package/dist/chunks/{chunk-MW3PKVXY.js.map → chunk-MCNEFI5Q.js.map} +0 -0
- /package/dist/chunks/{chunk-YA4IH46E.js.map → chunk-N3FI7O4U.js.map} +0 -0
- /package/dist/chunks/{chunk-XXBN2OWW.js.map → chunk-N72DH6D5.js.map} +0 -0
- /package/dist/chunks/{chunk-TDDCRQZZ.js.map → chunk-OLOTFDTU.js.map} +0 -0
- /package/dist/chunks/{chunk-G6QXPPH3.js.map → chunk-P2Y4LUPJ.js.map} +0 -0
- /package/dist/chunks/{chunk-65Y4XRJ7.js.map → chunk-QNF6COCY.js.map} +0 -0
- /package/dist/chunks/{chunk-GXE2VIGI.js.map → chunk-RB36O3CE.js.map} +0 -0
- /package/dist/chunks/{chunk-ALNCCKDI.js.map → chunk-SBPCN24X.js.map} +0 -0
- /package/dist/chunks/{chunk-XNY2DD22.js.map → chunk-SIK62TDI.js.map} +0 -0
- /package/dist/chunks/{chunk-VXHYLNLR.js.map → chunk-T75ITEN6.js.map} +0 -0
- /package/dist/chunks/{chunk-6GJXAHUO.js.map → chunk-TJTRVZFN.js.map} +0 -0
- /package/dist/chunks/{chunk-H3LH5GZ5.js.map → chunk-UIDLXA2K.js.map} +0 -0
- /package/dist/chunks/{chunk-YBZMF6LC.js.map → chunk-UTMGJDC3.js.map} +0 -0
- /package/dist/chunks/{chunk-YE2PFKVU.js.map → chunk-UUUNXKL3.js.map} +0 -0
- /package/dist/chunks/{chunk-6ARSJBCV.js.map → chunk-UZCA37QE.js.map} +0 -0
- /package/dist/chunks/{chunk-LQFMXCHI.js.map → chunk-W27ZDC4R.js.map} +0 -0
- /package/dist/chunks/{chunk-5DJ5YIHY.js.map → chunk-XJ4IUCH6.js.map} +0 -0
- /package/dist/chunks/{chunk-6N6HLU4F.js.map → chunk-YKEPC6NH.js.map} +0 -0
- /package/dist/chunks/{chunk-HQ37JKI2.js.map → chunk-Z7XA4Y43.js.map} +0 -0
- /package/dist/chunks/{commands-X2P7B7M6.js.map → commands-TIRZH2TK.js.map} +0 -0
- /package/dist/chunks/{crash-report-YKKJEHWY.js.map → crash-report-E4J7KQ32.js.map} +0 -0
- /package/dist/chunks/{dist-E24W5SI7.js.map → dist-2IUQEIEI.js.map} +0 -0
- /package/dist/chunks/{dist-TTCX7GFK.js.map → dist-2U6NNEPY.js.map} +0 -0
- /package/dist/chunks/{dist-KP5U4QDN.js.map → dist-CVDGKJEI.js.map} +0 -0
- /package/dist/chunks/{dist-TYCOBKDT.js.map → dist-MKQZKCB4.js.map} +0 -0
- /package/dist/chunks/{dist-EO3WQFRN.js.map → dist-QCKKBLDW.js.map} +0 -0
- /package/dist/chunks/{dist-6ABVUWX5.js.map → dist-QHKTYYMX.js.map} +0 -0
- /package/dist/chunks/{dist-5KZ4SS57.js.map → dist-YX7Q3EJR.js.map} +0 -0
- /package/dist/chunks/{doctor-QTMSOOEO.js.map → doctor-ASXICRC5.js.map} +0 -0
- /package/dist/chunks/{drain-FWONJITS.js.map → drain-CGS3KBU3.js.map} +0 -0
- /package/dist/chunks/{eval-GQTJX6WI.js.map → eval-XWC3UCFI.js.map} +0 -0
- /package/dist/chunks/{home-QAEAKEUG.js.map → home-76YLI2M6.js.map} +0 -0
- /package/dist/chunks/{host-queries-NY6FDVNU.js.map → host-queries-ODUQHYBN.js.map} +0 -0
- /package/dist/chunks/{lifecycle-EJQ57UR7.js.map → lifecycle-JN43XQSS.js.map} +0 -0
- /package/dist/chunks/{list-P5KDSX7R.js.map → list-TC7TYJDR.js.map} +0 -0
- /package/dist/chunks/{login-PQAWB3YL.js.map → login-CTC6CAM4.js.map} +0 -0
- /package/dist/chunks/{logs-PYWTK275.js.map → logs-2NGJFIQI.js.map} +0 -0
- /package/dist/chunks/{mcp-QJRY437O.js.map → mcp-BPH7KWZ6.js.map} +0 -0
- /package/dist/chunks/{operator-tools-UH4SJXQJ.js.map → operator-tools-6RYAHVSL.js.map} +0 -0
- /package/dist/chunks/{output-schema-BN6UL2BB.js.map → output-schema-GSWZHKSI.js.map} +0 -0
- /package/dist/chunks/{pal-NAJGPRTW.js.map → pal-4QXXG42H.js.map} +0 -0
- /package/dist/chunks/{providers-VTT4SK6S.js.map → providers-6PIIF3WR.js.map} +0 -0
- /package/dist/chunks/{resident-AQYBL2GF.js.map → resident-UP7W6MV6.js.map} +0 -0
- /package/dist/chunks/{resume-KV2D6FK4.js.map → resume-GJHTPMJS.js.map} +0 -0
- /package/dist/chunks/{resume-command-AOT7YZT5.js.map → resume-command-2RFT7AGW.js.map} +0 -0
- /package/dist/chunks/{schedule-WYFFJI6G.js.map → schedule-FZISVF6A.js.map} +0 -0
- /package/dist/chunks/{service-HAMHYSEA.js.map → service-4WADXOUI.js.map} +0 -0
- /package/dist/chunks/{session-step-QNH35CYJ.js.map → session-step-FX6B4TSE.js.map} +0 -0
- /package/dist/chunks/{skills-5TJTJEDG.js.map → skills-BJQGVQ23.js.map} +0 -0
- /package/dist/chunks/{state-ABEFSCFQ.js.map → state-2KKVQPZ2.js.map} +0 -0
- /package/dist/chunks/{store-BL5L6BOI.js.map → store-LO4SSRYI.js.map} +0 -0
- /package/dist/chunks/{store-UKFFPFLI.js.map → store-TKJKR5NM.js.map} +0 -0
- /package/dist/chunks/{store-WBED64YS.js.map → store-YFTJ24WU.js.map} +0 -0
- /package/dist/chunks/{worktree-PNFBTACG.js.map → worktree-3HYAYSGW.js.map} +0 -0
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The status line's rows: each line of the command's output, dim, cut at the
|
|
3
3
|
* terminal's edge, with the config's `padding` columns either side. Colours
|
|
4
|
-
* from the script survive the dimming only until the script resets them
|
|
5
|
-
* in the reference.
|
|
4
|
+
* from the script survive the dimming only until the script resets them.
|
|
6
5
|
*/
|
|
7
6
|
export declare function StatusLineRows({ text, padding, }: {
|
|
8
7
|
readonly text: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StatusLineRows.d.ts","sourceRoot":"","sources":["../../../src/tui/status-line/StatusLineRows.tsx"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"StatusLineRows.d.ts","sourceRoot":"","sources":["../../../src/tui/status-line/StatusLineRows.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAMH,wBAAgB,cAAc,CAAC,EAC9B,IAAI,EACJ,OAAW,GACX,EAAE;IACF,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CACzB,2CAWA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* What a status line command printed, made ready for the footer.
|
|
3
3
|
*
|
|
4
|
-
* The
|
|
4
|
+
* The whole output is trimmed, every line is trimmed and the blank
|
|
5
5
|
* ones, so a script's stray blank line costs no row. Colours stay. Namzu
|
|
6
6
|
* additionally drops every other escape sequence and control character: the
|
|
7
7
|
* line is drawn inside a laid-out screen, and a cursor move or a clear from a
|
|
@@ -12,7 +12,7 @@ export declare function sanitiseStatusLineOutput(stdout: string): string | undef
|
|
|
12
12
|
/**
|
|
13
13
|
* One entry per line, each prefixed with the colour state the lines before it
|
|
14
14
|
* left open, so a colour started on line one still applies on line two when
|
|
15
|
-
* each line is drawn on its own row
|
|
15
|
+
* each line is drawn on its own row.
|
|
16
16
|
*/
|
|
17
17
|
export declare function carryStyleAcrossLines(text: string): string[];
|
|
18
18
|
//# sourceMappingURL=output.d.ts.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The JSON a status line command reads on stdin.
|
|
3
3
|
*
|
|
4
|
-
* Field names
|
|
5
|
-
*
|
|
4
|
+
* Field names match the established status-line input shape, so existing scripts keep
|
|
5
|
+
* working. A field appears only when this terminal has the
|
|
6
6
|
* fact; a script must read every field except `session_id`, `cwd`, `model`,
|
|
7
7
|
* `workspace` and `version` as possibly absent. What is never sent, because
|
|
8
8
|
* Namzu has no data for it: `output_style`, `fast_mode`, `thinking`,
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* timeout, an abort) is no line. stderr is ignored, as it must not reach a
|
|
6
6
|
* screen that is being drawn.
|
|
7
7
|
*
|
|
8
|
-
*
|
|
8
|
+
* A status line gets the hook default deadline, ten minutes,
|
|
9
9
|
* and relies on the next run aborting a stuck one; so do we.
|
|
10
10
|
*/
|
|
11
11
|
import { spawn } from 'node:child_process';
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* How the transcript's system rows look, in one place.
|
|
3
|
+
*
|
|
4
|
+
* Every row the app writes about itself (a hook said something, the provider
|
|
5
|
+
* changed, a reply was paused, a job ended) used to pick its own gutter glyph,
|
|
6
|
+
* so the margin collected a dozen symbols that nothing explained. Now
|
|
7
|
+
* there is one: a coloured dot, with a `⎿` line for anything
|
|
8
|
+
* that continues it. The level says how much the person should care; the
|
|
9
|
+
* words say what happened.
|
|
10
|
+
*
|
|
11
|
+
* `✻` is not in this table on purpose. It belongs to exactly two rows, the
|
|
12
|
+
* line that closes a reply and the line that says the conversation was
|
|
13
|
+
* compacted, and nothing else may borrow it.
|
|
14
|
+
*/
|
|
15
|
+
/** How much a system row asks of the reader. */
|
|
16
|
+
export type SystemLevel = 'notice' | 'warning' | 'error';
|
|
17
|
+
/** The gutter glyph of every system row that is not one of the two `✻` lines. */
|
|
18
|
+
export declare const SYSTEM_ROW_GLYPH = "\u25CF";
|
|
19
|
+
/** The gutter glyph of a line that continues the row above it. */
|
|
20
|
+
export declare const CONTINUATION_GLYPH = "\u23BF";
|
|
21
|
+
/**
|
|
22
|
+
* The one gutter every tool result hangs from, shell output and one-line
|
|
23
|
+
* results alike: two columns of indent, the `⎿`, then two spaces
|
|
24
|
+
* (` ⎿ `).
|
|
25
|
+
*/
|
|
26
|
+
export declare const RESULT_GUTTER_INDENT = 2;
|
|
27
|
+
/** Width of the `⎿` plus the two spaces after it. */
|
|
28
|
+
export declare const RESULT_GUTTER_WIDTH = 3;
|
|
29
|
+
/** The gutter glyph of the reply-closing line and of the compaction line. */
|
|
30
|
+
export declare const CLOSING_GLYPH = "\u273B";
|
|
31
|
+
export interface SystemRowStyle {
|
|
32
|
+
readonly glyph: string;
|
|
33
|
+
readonly color: string;
|
|
34
|
+
}
|
|
35
|
+
/** The one level to glyph and colour mapping: warning yellow, notice dim, error red. */
|
|
36
|
+
export declare function systemRowStyle(level: SystemLevel): SystemRowStyle;
|
|
37
|
+
/** The text of an interruption. */
|
|
38
|
+
export declare const INTERRUPTED_TEXT = "Interrupted \u00B7 What should Namzu do instead?";
|
|
39
|
+
/** After a send-now steer the next instruction is already on its way, so no question. */
|
|
40
|
+
export declare const INTERRUPTED_BY_STEER_TEXT = "Interrupted";
|
|
41
|
+
export interface InterruptionRow {
|
|
42
|
+
readonly content: string;
|
|
43
|
+
readonly glyph: string;
|
|
44
|
+
readonly color: string;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* The row an interruption leaves behind.
|
|
48
|
+
*
|
|
49
|
+
* With a call in flight it hangs under that call as a `⎿` line, the way the
|
|
50
|
+
* call's own result would; with none it stands alone as a dim notice. A
|
|
51
|
+
* send-now steer drops the question, because the answer to it is already
|
|
52
|
+
* being sent.
|
|
53
|
+
*/
|
|
54
|
+
export declare function interruptionRow(options: {
|
|
55
|
+
readonly callRunning: boolean;
|
|
56
|
+
readonly steered?: boolean;
|
|
57
|
+
}): InterruptionRow;
|
|
58
|
+
/** How an agent, a workflow or a background job came to an end. */
|
|
59
|
+
export type EndOutcome = 'finished' | 'failed' | 'stopped';
|
|
60
|
+
/**
|
|
61
|
+
* The one word per outcome, used by agents, workflows and background jobs
|
|
62
|
+
* alike. Three states are all the person acts on: it worked, it did not, or
|
|
63
|
+
* somebody stopped it.
|
|
64
|
+
*/
|
|
65
|
+
export declare const END_WORDS: Readonly<Record<EndOutcome, string>>;
|
|
66
|
+
/**
|
|
67
|
+
* Which outcome a status from the runtime is. Anything it does not recognise
|
|
68
|
+
* reads as finished rather than printing the raw status: the raw word is an
|
|
69
|
+
* enum for the code, and the person cannot do anything with `exited` or
|
|
70
|
+
* `completed` that `finished` does not already tell them.
|
|
71
|
+
*/
|
|
72
|
+
export declare function endOutcome(status: string | undefined): EndOutcome;
|
|
73
|
+
/** The word for a runtime status, through {@link endOutcome} and {@link END_WORDS}. */
|
|
74
|
+
export declare function endWord(status: string | undefined): string;
|
|
75
|
+
/** The level a finished, failed or stopped thing is drawn at. */
|
|
76
|
+
export declare function endLevel(outcome: EndOutcome): SystemLevel;
|
|
77
|
+
/** `Goal, attempt 2 of 5`: the headline of a goal round, with the objective on a `⎿` line. */
|
|
78
|
+
export declare function goalRoundHeadline(round: number, max: number): string;
|
|
79
|
+
/**
|
|
80
|
+
* The notice after a copy request goes out. The terminal never confirms a
|
|
81
|
+
* clipboard write, so this says what was sent, in a short form,
|
|
82
|
+
* and what to do if the paste comes up empty.
|
|
83
|
+
*/
|
|
84
|
+
export declare function clipboardSentNotice(chars: number, what?: string): string;
|
|
85
|
+
//# sourceMappingURL=system-rows.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"system-rows.d.ts","sourceRoot":"","sources":["../../src/tui/system-rows.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAIH,gDAAgD;AAChD,MAAM,MAAM,WAAW,GAAG,QAAQ,GAAG,SAAS,GAAG,OAAO,CAAA;AAExD,iFAAiF;AACjF,eAAO,MAAM,gBAAgB,WAAM,CAAA;AACnC,kEAAkE;AAClE,eAAO,MAAM,kBAAkB,WAAM,CAAA;AACrC;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,IAAI,CAAA;AACrC,qDAAqD;AACrD,eAAO,MAAM,mBAAmB,IAAI,CAAA;AAEpC,6EAA6E;AAC7E,eAAO,MAAM,aAAa,WAAM,CAAA;AAEhC,MAAM,WAAW,cAAc;IAC9B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;CACtB;AAED,wFAAwF;AACxF,wBAAgB,cAAc,CAAC,KAAK,EAAE,WAAW,GAAG,cAAc,CASjE;AAED,mCAAmC;AACnC,eAAO,MAAM,gBAAgB,qDAAgD,CAAA;AAC7E,yFAAyF;AACzF,eAAO,MAAM,yBAAyB,gBAAgB,CAAA;AAEtD,MAAM,WAAW,eAAe;IAC/B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;IACxB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;CACtB;AAED;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAAE;IACxC,QAAQ,CAAC,WAAW,EAAE,OAAO,CAAA;IAC7B,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,CAAA;CAC1B,GAAG,eAAe,CAKlB;AAED,mEAAmE;AACnE,MAAM,MAAM,UAAU,GAAG,UAAU,GAAG,QAAQ,GAAG,SAAS,CAAA;AAE1D;;;;GAIG;AACH,eAAO,MAAM,SAAS,EAAE,QAAQ,CAAC,MAAM,CAAC,UAAU,EAAE,MAAM,CAAC,CAI1D,CAAA;AAED;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,GAAG,UAAU,CAkBjE;AAED,uFAAuF;AACvF,wBAAgB,OAAO,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,CAE1D;AAED,iEAAiE;AACjE,wBAAgB,QAAQ,CAAC,OAAO,EAAE,UAAU,GAAG,WAAW,CAEzD;AAED,8FAA8F;AAC9F,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CAEpE;AAED;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAGxE"}
|
|
@@ -34,4 +34,11 @@ export declare function wrapBalancedText(source: string, columns: number): reado
|
|
|
34
34
|
export declare function capChoiceLines(lines: readonly string[], max: number, columns: number): readonly string[];
|
|
35
35
|
/** Truncate by terminal cells without slicing a combining sequence or an emoji. */
|
|
36
36
|
export declare function truncateChoiceText(source: string, columns: number): string;
|
|
37
|
+
/**
|
|
38
|
+
* Shorten a `a · b · c` description to `columns` cells by dropping whole
|
|
39
|
+
* trailing parts, never by cutting through one: a duration or a count is
|
|
40
|
+
* either shown or left out, not `1…`. A single part wider than the room (or a
|
|
41
|
+
* text with no separators) falls back to {@link truncateChoiceText}.
|
|
42
|
+
*/
|
|
43
|
+
export declare function truncateAtSeparator(source: string, columns: number): string;
|
|
37
44
|
//# sourceMappingURL=terminal-choice-text.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"terminal-choice-text.d.ts","sourceRoot":"","sources":["../../src/tui/terminal-choice-text.ts"],"names":[],"mappings":"AAMA,8EAA8E;AAC9E,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAI9D;AAED,kFAAkF;AAClF,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAExD;AAED,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAEzD;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,SAAS,MAAM,EAAE,CA0BjF;AAED;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,SAAS,MAAM,EAAE,CAYnF;AA4BD;;;;;GAKG;AACH,wBAAgB,cAAc,CAC7B,KAAK,EAAE,SAAS,MAAM,EAAE,EACxB,GAAG,EAAE,MAAM,EACX,OAAO,EAAE,MAAM,GACb,SAAS,MAAM,EAAE,CAKnB;AAED,mFAAmF;AACnF,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,CAc1E"}
|
|
1
|
+
{"version":3,"file":"terminal-choice-text.d.ts","sourceRoot":"","sources":["../../src/tui/terminal-choice-text.ts"],"names":[],"mappings":"AAMA,8EAA8E;AAC9E,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAI9D;AAED,kFAAkF;AAClF,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAExD;AAED,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAEzD;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,SAAS,MAAM,EAAE,CA0BjF;AAED;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,SAAS,MAAM,EAAE,CAYnF;AA4BD;;;;;GAKG;AACH,wBAAgB,cAAc,CAC7B,KAAK,EAAE,SAAS,MAAM,EAAE,EACxB,GAAG,EAAE,MAAM,EACX,OAAO,EAAE,MAAM,GACb,SAAS,MAAM,EAAE,CAKnB;AAED,mFAAmF;AACnF,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,CAc1E;AAED;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,CAa3E"}
|
package/dist/tui/theme.d.ts
CHANGED
|
@@ -49,4 +49,25 @@ export interface SemanticColors {
|
|
|
49
49
|
};
|
|
50
50
|
}
|
|
51
51
|
export declare const theme: SemanticColors;
|
|
52
|
+
/**
|
|
53
|
+
* The backgrounds a diff row is drawn on. Six tokens: a whole added or removed row, the same dimmed
|
|
54
|
+
* for a change that was
|
|
55
|
+
* refused, and the words that differ inside a changed pair of rows.
|
|
56
|
+
*/
|
|
57
|
+
export interface DiffColors {
|
|
58
|
+
readonly added: string;
|
|
59
|
+
readonly removed: string;
|
|
60
|
+
readonly addedDimmed: string;
|
|
61
|
+
readonly removedDimmed: string;
|
|
62
|
+
readonly addedWord: string;
|
|
63
|
+
readonly removedWord: string;
|
|
64
|
+
}
|
|
65
|
+
/** For a terminal that reports 24-bit colour: the dark-theme values. */
|
|
66
|
+
export declare const DIFF_COLORS_TRUECOLOR: DiffColors;
|
|
67
|
+
/** For every other terminal: the named ANSI colours, words in the bright variant. */
|
|
68
|
+
export declare const DIFF_COLORS_ANSI: DiffColors;
|
|
69
|
+
/** Whether the terminal says it draws 24-bit colour. */
|
|
70
|
+
export declare function reportsTruecolor(env?: NodeJS.ProcessEnv): boolean;
|
|
71
|
+
/** The diff colours this terminal can draw. */
|
|
72
|
+
export declare function diffColors(env?: NodeJS.ProcessEnv): DiffColors;
|
|
52
73
|
//# sourceMappingURL=theme.d.ts.map
|
package/dist/tui/theme.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../src/tui/theme.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,MAAM,WAAW,cAAc;IAC9B,qDAAqD;IACrD,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAA;IAC3B,QAAQ,CAAC,IAAI,EAAE;QACd,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;QACxB,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;QAC1B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;KACtB,CAAA;IACD,QAAQ,CAAC,MAAM,EAAE;QAChB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;QACrB,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;QAC1B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;QACvB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;QACrB;;;;WAIG;QACH,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;QAC1B;;;;WAIG;QACH,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;QACxB,kDAAkD;QAClD,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;QACrB,mDAAmD;QACnD,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;KACvB,CAAA;IACD,QAAQ,CAAC,MAAM,EAAE;QAChB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAA;QACnB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;QACr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AK,EAAE,MAAM,CAAA;QACtB,sCAAsC;QACtC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;KACvB,CAAA;IACD,QAAQ,CAAC,MAAM,EAAE;QAChB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;QACxB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;KACtB,CAAA;CACD;AAED,eAAO,MAAM,KAAK,EAAE,cA2BnB,CAAA;AAED;;;;GAIG;AACH,MAAM,WAAW,UAAU;IAC1B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;IACxB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAA;IAC5B,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAA;IAC9B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;IAC1B,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAA;CAC5B;AAED,wEAAwE;AACxE,eAAO,MAAM,qBAAqB,EAAE,UAOnC,CAAA;AAED,qFAAqF;AACrF,eAAO,MAAM,gBAAgB,EAAE,UAO9B,CAAA;AAID,wDAAwD;AACxD,wBAAgB,gBAAgB,CAAC,GAAG,GAAE,MAAM,CAAC,UAAwB,GAAG,OAAO,CAM9E;AAED,+CAA+C;AAC/C,wBAAgB,UAAU,CAAC,GAAG,GAAE,MAAM,CAAC,UAAwB,GAAG,UAAU,CAE3E"}
|
|
@@ -62,16 +62,7 @@ export declare function declinedLine(note: string | undefined): string;
|
|
|
62
62
|
*/
|
|
63
63
|
export declare function failureFactsLine(facts: Extract<ToolFacts, {
|
|
64
64
|
kind: 'failure';
|
|
65
|
-
}
|
|
66
|
-
/**
|
|
67
|
-
* Lines a replacement added and removed. The receipt of an edit holds only the
|
|
68
|
-
* text it replaced, so the lines both sides share at the start and the end are
|
|
69
|
-
* not counted as changes.
|
|
70
|
-
*/
|
|
71
|
-
export declare function editedLineCounts(before: string, after: string): {
|
|
72
|
-
readonly added: number;
|
|
73
|
-
readonly removed: number;
|
|
74
|
-
};
|
|
65
|
+
}>, cwd?: string): string;
|
|
75
66
|
/**
|
|
76
67
|
* The one-line account of a finished read, search, write or edit, from the typed
|
|
77
68
|
* facts the kernel reports (`ToolResult.facts`), not from the model's receipt:
|
|
@@ -80,9 +71,6 @@ export declare function editedLineCounts(before: string, after: string): {
|
|
|
80
71
|
* the caller keeps the text it already had (a conversation saved before facts
|
|
81
72
|
* existed, or any other tool).
|
|
82
73
|
*/
|
|
83
|
-
export declare function factsHeadline(facts: ToolFacts | undefined
|
|
84
|
-
readonly before: string;
|
|
85
|
-
readonly after: string;
|
|
86
|
-
}): string | undefined;
|
|
74
|
+
export declare function factsHeadline(facts: ToolFacts | undefined): string | undefined;
|
|
87
75
|
export {};
|
|
88
76
|
//# sourceMappingURL=tidy-tool-output.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tidy-tool-output.d.ts","sourceRoot":"","sources":["../../src/tui/tidy-tool-output.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAkB,MAAM,YAAY,CAAA;
|
|
1
|
+
{"version":3,"file":"tidy-tool-output.d.ts","sourceRoot":"","sources":["../../src/tui/tidy-tool-output.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAkB,MAAM,YAAY,CAAA;AAI3D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAA;AAGlD,MAAM,WAAW,UAAU;IAC1B,sFAAsF;IACtF,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;IACvB,sFAAsF;IACtF,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAA;IACzB,kFAAkF;IAClF,QAAQ,CAAC,KAAK,CAAC,EAAE,WAAW,CAAA;CAC5B;AAED,wEAAwE;AACxE,eAAO,MAAM,eAAe,iDAA4C,CAAA;AAExE,mFAAmF;AACnF,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CASjD;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,MAAM,GAAG,UAAU,CA+B1D;AAED,KAAK,YAAY,GAAG,OAAO,CAAC,SAAS,EAAE;IAAE,IAAI,EAAE,SAAS,CAAA;CAAE,CAAC,CAAA;AAuB3D;;;GAGG;AACH,eAAO,MAAM,cAAc,QAA0B,CAAA;AAYrD;;;;;;;;;GASG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,YAAY,EAAE,GAAG,EAAE,MAAM,GAAG,UAAU,CAmD9E;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAKpE;AAED,uEAAuE;AACvE,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,CAK7D;AAED;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAC/B,KAAK,EAAE,OAAO,CAAC,SAAS,EAAE;IAAE,IAAI,EAAE,SAAS,CAAA;CAAE,CAAC,EAC9C,GAAG,CAAC,EAAE,MAAM,GACV,MAAM,CA8BR;AAoBD;;;;;;;GAOG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,SAAS,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAoD9E"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import type { AgentEvent } from './agent.js';
|
|
2
|
+
import { type ProposedChange } from './diff-rows.js';
|
|
3
|
+
import type { TranscriptMessage } from './types.js';
|
|
4
|
+
import { type WebActivity } from './web-activity.js';
|
|
5
|
+
/**
|
|
6
|
+
* The rows a finished tool call leaves in the transcript.
|
|
7
|
+
*
|
|
8
|
+
* This is the one place those rows are decided. The live run calls it as each
|
|
9
|
+
* call ends, and a resumed conversation calls it for every call it saved, so
|
|
10
|
+
* a change to how a read, an edit, a command or a search is drawn reaches both
|
|
11
|
+
* without a second edit.
|
|
12
|
+
*/
|
|
13
|
+
export type ToolEndEvent = Extract<AgentEvent, {
|
|
14
|
+
kind: 'tool-end';
|
|
15
|
+
}>;
|
|
16
|
+
/** What the call's start said, kept until it ends. */
|
|
17
|
+
export interface ToolEndStart {
|
|
18
|
+
readonly label: string;
|
|
19
|
+
readonly detail?: readonly string[];
|
|
20
|
+
readonly command?: string;
|
|
21
|
+
readonly web?: WebActivity;
|
|
22
|
+
readonly activity?: 'exploration';
|
|
23
|
+
/** What an edit or write asked for, drawn dimmed if the person refuses it. */
|
|
24
|
+
readonly proposed?: ProposedChange;
|
|
25
|
+
}
|
|
26
|
+
/** One row to add, in the order of `pushMessage`'s arguments that matter. */
|
|
27
|
+
export type ToolRow = Pick<TranscriptMessage, 'role' | 'content'> & Partial<Pick<TranscriptMessage, 'glyph' | 'glyphColor' | 'meta' | 'detail' | 'activity' | 'shell' | 'diff'>>;
|
|
28
|
+
export type ToolEndRows =
|
|
29
|
+
/** Add these rows. */
|
|
30
|
+
{
|
|
31
|
+
readonly kind: 'rows';
|
|
32
|
+
readonly rows: readonly ToolRow[];
|
|
33
|
+
}
|
|
34
|
+
/** The task checklist owns this result; the caller writes (or skips) its block. */
|
|
35
|
+
| {
|
|
36
|
+
readonly kind: 'task-block';
|
|
37
|
+
}
|
|
38
|
+
/** Nothing to add. */
|
|
39
|
+
| {
|
|
40
|
+
readonly kind: 'none';
|
|
41
|
+
};
|
|
42
|
+
export interface ToolEndContext {
|
|
43
|
+
/** How long the call took, when known; the default row shows it. */
|
|
44
|
+
readonly elapsedMs?: number;
|
|
45
|
+
/** Whether the model's plan has items, so a task listing refreshes the block instead of a row. */
|
|
46
|
+
readonly hasPlan: boolean;
|
|
47
|
+
/** The working folder, to find where a refused edit would have landed. */
|
|
48
|
+
readonly cwd?: string;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* A call's label: the tool name title-cased, then its most identifying
|
|
52
|
+
* argument, as `Bash(ls -la)` or `Read(file.ts)`. A bare tool name in a
|
|
53
|
+
* transcript of forty calls says nothing about which one this was. An edit
|
|
54
|
+
* reads `Update(file.ts)`.
|
|
55
|
+
*/
|
|
56
|
+
export declare function formatToolCall(toolName: string, summary: string, standalone?: boolean): string;
|
|
57
|
+
/** A failure line without the interpreter's error name (`Error: `, `TypeError: `) in front of the sentence. */
|
|
58
|
+
export declare function withoutErrorName(text: string): string;
|
|
59
|
+
/** Rows for a finished call, from the branches that need nothing but the call and its result. */
|
|
60
|
+
export declare function toolEndRows(event: ToolEndEvent, start: ToolEndStart | undefined, ctx: ToolEndContext): ToolEndRows;
|
|
61
|
+
//# sourceMappingURL=tool-end-rows.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tool-end-rows.d.ts","sourceRoot":"","sources":["../../src/tui/tool-end-rows.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAA;AAE5C,OAAO,EAAE,KAAK,cAAc,EAAgB,MAAM,gBAAgB,CAAA;AASlE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA;AAEnD,OAAO,EAAE,KAAK,WAAW,EAAgC,MAAM,mBAAmB,CAAA;AAElF;;;;;;;GAOG;AAEH,MAAM,MAAM,YAAY,GAAG,OAAO,CAAC,UAAU,EAAE;IAAE,IAAI,EAAE,UAAU,CAAA;CAAE,CAAC,CAAA;AAEpE,sDAAsD;AACtD,MAAM,WAAW,YAAY;IAC5B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,MAAM,CAAC,EAAE,SAAS,MAAM,EAAE,CAAA;IACnC,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAA;IACzB,QAAQ,CAAC,GAAG,CAAC,EAAE,WAAW,CAAA;IAC1B,QAAQ,CAAC,QAAQ,CAAC,EAAE,aAAa,CAAA;IACjC,8EAA8E;IAC9E,QAAQ,CAAC,QAAQ,CAAC,EAAE,cAAc,CAAA;CAClC;AAED,6EAA6E;AAC7E,MAAM,MAAM,OAAO,GAAG,IAAI,CAAC,iBAAiB,EAAE,MAAM,GAAG,SAAS,CAAC,GAChE,OAAO,CACN,IAAI,CACH,iBAAiB,EACjB,OAAO,GAAG,YAAY,GAAG,MAAM,GAAG,QAAQ,GAAG,UAAU,GAAG,OAAO,GAAG,MAAM,CAC1E,CACD,CAAA;AAEF,MAAM,MAAM,WAAW;AACtB,sBAAsB;AACpB;IAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,IAAI,EAAE,SAAS,OAAO,EAAE,CAAA;CAAE;AAC9D,mFAAmF;GACjF;IAAE,QAAQ,CAAC,IAAI,EAAE,YAAY,CAAA;CAAE;AACjC,sBAAsB;GACpB;IAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAAA;AAE5B,MAAM,WAAW,cAAc;IAC9B,oEAAoE;IACpE,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;IAC3B,kGAAkG;IAClG,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAA;IACzB,0EAA0E;IAC1E,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,CAAA;CACrB;AAKD;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,UAAU,UAAQ,GAAG,MAAM,CAO5F;AAED,+GAA+G;AAC/G,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAErD;AAYD,iGAAiG;AACjG,wBAAgB,WAAW,CAC1B,KAAK,EAAE,YAAY,EACnB,KAAK,EAAE,YAAY,GAAG,SAAS,EAC/B,GAAG,EAAE,cAAc,GACjB,WAAW,CAmQb"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What a failed agent call or a script that could not start says, as the tool
|
|
3
|
+
* itself said it.
|
|
4
|
+
*
|
|
5
|
+
* The person reads the error text the tool produced, the same text the model
|
|
6
|
+
* gets, in the error colour: no rewording into a plain sentence. Only the
|
|
7
|
+
* wrapper the tool adds around it is dropped.
|
|
8
|
+
*/
|
|
9
|
+
/** The failure text of a tool result, ready to draw. `expanded` is the Ctrl+O view. */
|
|
10
|
+
export declare function toolFailureText(output: string | undefined, expanded: boolean): string;
|
|
11
|
+
/** The first line of a failure text: all a script that could not start shows. */
|
|
12
|
+
export declare function firstLineOf(text: string): string;
|
|
13
|
+
//# sourceMappingURL=tool-failure-text.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tool-failure-text.d.ts","sourceRoot":"","sources":["../../src/tui/tool-failure-text.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAKH,uFAAuF;AACvF,wBAAgB,eAAe,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,EAAE,QAAQ,EAAE,OAAO,GAAG,MAAM,CAUrF;AAED,iFAAiF;AACjF,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAEhD"}
|
|
@@ -13,9 +13,9 @@ import type { TriggerId } from './registry.js';
|
|
|
13
13
|
export declare function triggerContextTexts(ids: readonly TriggerId[]): string[];
|
|
14
14
|
/**
|
|
15
15
|
* The effort the armed triggers pin for their turn, on a model that
|
|
16
|
-
* publishes `levels`: the highest level for max effort,
|
|
17
|
-
*
|
|
18
|
-
*
|
|
16
|
+
* publishes `levels`: the highest level for max effort, and nothing for
|
|
17
|
+
* anything else. Hypermode never pins one. `undefined` when none pins one,
|
|
18
|
+
* or the model publishes no menu.
|
|
19
19
|
*/
|
|
20
20
|
export declare function triggerEffort(ids: readonly TriggerId[], levels: readonly ReasoningEffort[] | undefined): ReasoningEffort | undefined;
|
|
21
21
|
//# sourceMappingURL=context-text.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context-text.d.ts","sourceRoot":"","sources":["../../../src/tui/triggers/context-text.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA;AAGjD,OAAO,KAAK,EAAiB,SAAS,EAAE,MAAM,eAAe,CAAA;
|
|
1
|
+
{"version":3,"file":"context-text.d.ts","sourceRoot":"","sources":["../../../src/tui/triggers/context-text.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA;AAGjD,OAAO,KAAK,EAAiB,SAAS,EAAE,MAAM,eAAe,CAAA;AAa7D,8EAA8E;AAC9E,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,SAAS,SAAS,EAAE,GAAG,MAAM,EAAE,CAUvE;AAED;;;;;GAKG;AACH,wBAAgB,aAAa,CAC5B,GAAG,EAAE,SAAS,SAAS,EAAE,EACzB,MAAM,EAAE,SAAS,eAAe,EAAE,GAAG,SAAS,GAC5C,eAAe,GAAG,SAAS,CAK7B"}
|
|
@@ -1,17 +1,15 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The words the tag row says, at every width.
|
|
3
3
|
*
|
|
4
|
-
* Meaning is carried by words, never by
|
|
5
|
-
*
|
|
4
|
+
* Meaning is carried by words, never by a glyph (a
|
|
5
|
+
* detected keyword by highlighting it in the input and a plain notice, with no
|
|
6
|
+
* symbol): an armed trigger says what it does, and any other state is a word
|
|
6
7
|
* or a mark — `?` for a suggestion, `(off)` for one dropped with Alt+W,
|
|
7
|
-
* `unavailable …` for one that cannot apply.
|
|
8
|
-
*
|
|
9
|
-
* steps before it is cut.
|
|
8
|
+
* `unavailable …` for one that cannot apply. The row is sentence case. One row
|
|
9
|
+
* at every width; the text shortens by steps before it is cut.
|
|
10
10
|
*/
|
|
11
11
|
import type { Detection } from './detect.js';
|
|
12
12
|
import type { TriggerId } from './registry.js';
|
|
13
|
-
export declare const ARMED_MARK = "\u2726";
|
|
14
|
-
export declare const OTHER_MARK = "\u2727";
|
|
15
13
|
export interface TagCopyContext {
|
|
16
14
|
/** Columns the row may use. */
|
|
17
15
|
readonly columns: number;
|
|
@@ -19,20 +17,25 @@ export interface TagCopyContext {
|
|
|
19
17
|
readonly turnActive: boolean;
|
|
20
18
|
/** The model's highest published effort level, when it publishes a menu (max effort). */
|
|
21
19
|
readonly highestEffort: string | undefined;
|
|
22
|
-
/** The level hypermode pins on this model (`xhigh`, or the nearest below it). */
|
|
23
|
-
readonly hypermodeEffort: string | undefined;
|
|
24
20
|
/** No paste chips and no attachments: a trigger-only message may run its command. */
|
|
25
21
|
readonly standaloneAllowed: boolean;
|
|
26
22
|
}
|
|
27
23
|
export declare function tagRow(detection: Detection, context: TagCopyContext): string | null;
|
|
28
24
|
/**
|
|
29
25
|
* The line under the operator's row in the transcript, naming what the
|
|
30
|
-
* message carried: `
|
|
31
|
-
*
|
|
26
|
+
* message carried in a sentence: `Hypermode is on for this reply: Namzu may
|
|
27
|
+
* use workflows.` Undefined when nothing applies.
|
|
32
28
|
*/
|
|
33
29
|
export declare function transcriptTagLine(ids: readonly TriggerId[], context: {
|
|
34
30
|
/** The effort the turn was pinned to, when a trigger pinned one. */
|
|
35
31
|
readonly effort: string | undefined;
|
|
36
32
|
readonly steered: boolean;
|
|
37
33
|
}): string | undefined;
|
|
34
|
+
/**
|
|
35
|
+
* The row for triggers that were armed but did not apply, and why:
|
|
36
|
+
* `Hypermode was not applied: the message has no task.`
|
|
37
|
+
*/
|
|
38
|
+
export declare function notAppliedLine(labels: readonly string[], reason: string): string;
|
|
39
|
+
/** What Enter does with a message that arrives while a reply runs. */
|
|
40
|
+
export declare const STEERED_NOT_APPLIED_REASON = "Enter sent this message into the running reply. Press Tab to queue it as a new message instead";
|
|
38
41
|
//# sourceMappingURL=copy.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"copy.d.ts","sourceRoot":"","sources":["../../../src/tui/triggers/copy.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAc,MAAM,aAAa,CAAA;AACxD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;
|
|
1
|
+
{"version":3,"file":"copy.d.ts","sourceRoot":"","sources":["../../../src/tui/triggers/copy.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAc,MAAM,aAAa,CAAA;AACxD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAO9C,MAAM,WAAW,cAAc;IAC9B,+BAA+B;IAC/B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;IACxB,kDAAkD;IAClD,QAAQ,CAAC,UAAU,EAAE,OAAO,CAAA;IAC5B,yFAAyF;IACzF,QAAQ,CAAC,aAAa,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1C,qFAAqF;IACrF,QAAQ,CAAC,iBAAiB,EAAE,OAAO,CAAA;CACnC;AAUD,wBAAgB,MAAM,CAAC,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE,cAAc,GAAG,MAAM,GAAG,IAAI,CAOnF;AAgID;;;;GAIG;AACH,wBAAgB,iBAAiB,CAChC,GAAG,EAAE,SAAS,SAAS,EAAE,EACzB,OAAO,EAAE;IACR,oEAAoE;IACpE,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IACnC,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAA;CACzB,GACC,MAAM,GAAG,SAAS,CAmBpB;AAOD;;;GAGG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAGhF;AAED,sEAAsE;AACtE,eAAO,MAAM,0BAA0B,mGAC0D,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"detect.d.ts","sourceRoot":"","sources":["../../../src/tui/triggers/detect.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0B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,WAAW,CAAC,MAAM,EAAE,SAAS,GAAG,OAAO,CAAC,CAAA;IAC7D,sFAAsF;IACtF,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,CAAA;IAC1B,QAAQ,CAAC,KAAK,CAAC,EAAE,UAAU,CAAA;CAC3B;AAED,eAAO,MAAM,eAAe,EAAE,SAA6C,CAAA;AA2C3E,8EAA8E;AAC9E,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAErD;AAED,wBAAgB,cAAc,CAC7B,KAAK,EAAE,MAAM,EACb,QAAQ,EAAE,eAAe,EACzB,OAAO,EAAE,cAAc,EACvB,OAAO,GAAE,aAAkB,GACzB,SAAS,CA4CX;AA+JD,sFAAsF;AACtF,wBAAgB,WAAW,CAAC,EAAE,EAAE,SAAS,EAAE,OAAO,EAAE,cAAc,GAAG,MAAM,GAAG,SAAS,CAqBtF"}
|
|
@@ -27,18 +27,17 @@ export declare const TRIGGER_IDS: readonly TriggerId[];
|
|
|
27
27
|
export type Arming = 'arm' | 'suggest' | 'off';
|
|
28
28
|
export type TriggerLocale = 'en' | 'tr';
|
|
29
29
|
/** The fixed texts namzu adds for a turn; operator text never enters them. */
|
|
30
|
-
export type ContextTextId = 'hypermode' | 'save-skill' | 'schedule';
|
|
30
|
+
export type ContextTextId = 'hypermode' | 'workflow' | 'save-skill' | 'schedule';
|
|
31
31
|
/** A command a trigger may run after its turn. Only this one exists. */
|
|
32
32
|
export type TriggerableCommand = '/skills save';
|
|
33
33
|
export type TriggerEffect =
|
|
34
34
|
/**
|
|
35
|
-
* Request-only context for the turn
|
|
36
|
-
*
|
|
35
|
+
* Request-only context for the turn. It never sets an effort: only the
|
|
36
|
+
* max-effort trigger does.
|
|
37
37
|
*/
|
|
38
38
|
{
|
|
39
39
|
readonly kind: 'turn-context';
|
|
40
40
|
readonly text: ContextTextId;
|
|
41
|
-
readonly effort?: 'hypermode';
|
|
42
41
|
}
|
|
43
42
|
/** The model's highest published effort for this turn only (max effort). */
|
|
44
43
|
| {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../../src/tui/triggers/registry.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AAE/D,OAAO,EAAE,KAAK,eAAe,EAAkB,MAAM,cAAc,CAAA;AAGnE,MAAM,MAAM,SAAS,GAAG,iBAAiB,CAAA;AAEzC,eAAO,MAAM,WAAW,EAAE,SAAS,SAAS,EAAyB,CAAA;AAErE;;;;;;GAMG;AACH,MAAM,MAAM,MAAM,GAAG,KAAK,GAAG,SAAS,GAAG,KAAK,CAAA;AAE9C,MAAM,MAAM,aAAa,GAAG,IAAI,GAAG,IAAI,CAAA;AAEvC,8EAA8E;AAC9E,MAAM,MAAM,aAAa,GAAG,WAAW,GAAG,YAAY,GAAG,UAAU,CAAA;
|
|
1
|
+
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../../src/tui/triggers/registry.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AAE/D,OAAO,EAAE,KAAK,eAAe,EAAkB,MAAM,cAAc,CAAA;AAGnE,MAAM,MAAM,SAAS,GAAG,iBAAiB,CAAA;AAEzC,eAAO,MAAM,WAAW,EAAE,SAAS,SAAS,EAAyB,CAAA;AAErE;;;;;;GAMG;AACH,MAAM,MAAM,MAAM,GAAG,KAAK,GAAG,SAAS,GAAG,KAAK,CAAA;AAE9C,MAAM,MAAM,aAAa,GAAG,IAAI,GAAG,IAAI,CAAA;AAEvC,8EAA8E;AAC9E,MAAM,MAAM,aAAa,GAAG,WAAW,GAAG,UAAU,GAAG,YAAY,GAAG,UAAU,CAAA;AAEhF,wEAAwE;AACxE,MAAM,MAAM,kBAAkB,GAAG,cAAc,CAAA;AAE/C,MAAM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Ae,CA6BjB;AAcD,wBAAgB,iBAAiB,CAAC,EAAE,EAAE,SAAS,GAAG,iBAAiB,CAIlE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setting.d.ts","sourceRoot":"","sources":["../../../src/tui/triggers/setting.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAIH,OAAO,EAAE,KAAK,iBAAiB,EAA4B,MAAM,sBAAsB,CAAA;AAIvF,KAAK,cAAc,GAAG,IAAI,CAAC,iBAAiB,EAAE,KAAK,GAAG,KAAK,GAAG,MAAM,GAAG,SAAS,GAAG,aAAa,CAAC,CAAA;AAEjG,wBAAgB,mBAAmB,CAAC,EAAE,EAAE,OAAO,EAAE,IAAI,GAAE,cAAmB,GAAG,MAAM,
|
|
1
|
+
{"version":3,"file":"setting.d.ts","sourceRoot":"","sources":["../../../src/tui/triggers/setting.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAIH,OAAO,EAAE,KAAK,iBAAiB,EAA4B,MAAM,sBAAsB,CAAA;AAIvF,KAAK,cAAc,GAAG,IAAI,CAAC,iBAAiB,EAAE,KAAK,GAAG,KAAK,GAAG,MAAM,GAAG,SAAS,GAAG,aAAa,CAAC,CAAA;AAEjG,wBAAgB,mBAAmB,CAAC,EAAE,EAAE,OAAO,EAAE,IAAI,GAAE,cAAmB,GAAG,MAAM,CAuBlF;AAED,uEAAuE;AACvE,wBAAgB,wBAAwB,CAAC,UAAU,EAAE,OAAO,EAAE,IAAI,GAAE,cAAmB,GAAG,MAAM,CAc/F"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* How the terminal says that text is folded away, in one place.
|
|
3
|
+
*
|
|
4
|
+
* A folded body ends in `… +12 lines (ctrl+o to expand)`, with ` (~3 KB)` after
|
|
5
|
+
* it when at least 1,000 characters are out of sight, so a person can tell a
|
|
6
|
+
* few lines from a wall of text before opening it. Every collapsed body (tool
|
|
7
|
+
* output, a shell cell, an agent's answer) uses this and no other wording.
|
|
8
|
+
*/
|
|
9
|
+
/** The one phrase that tells a person a folded body can be opened. */
|
|
10
|
+
export declare const EXPAND_HINT = "(ctrl+o to expand)";
|
|
11
|
+
/** Hidden text is sized once it reaches this many characters. */
|
|
12
|
+
export declare const HIDDEN_SIZE_FROM_CHARS = 1000;
|
|
13
|
+
export interface HiddenHintOptions {
|
|
14
|
+
/** Characters out of sight; sizes the hint from 1,000 up. */
|
|
15
|
+
readonly chars?: number;
|
|
16
|
+
/** False when nothing can open the body, so the hint does not promise it. Default true. */
|
|
17
|
+
readonly canExpand?: boolean;
|
|
18
|
+
}
|
|
19
|
+
/** `… +N lines (ctrl+o to expand)`; `line` when exactly one is folded. */
|
|
20
|
+
export declare function hiddenLinesHint(lines: number, options?: HiddenHintOptions): string;
|
|
21
|
+
/**
|
|
22
|
+
* `text` cut to at most `max` UTF-16 units, ending in an ellipsis, without ever
|
|
23
|
+
* splitting a surrogate pair: a lone half of an emoji is not valid text and
|
|
24
|
+
* breaks whatever reads the transcript back.
|
|
25
|
+
*/
|
|
26
|
+
export declare function clipText(text: string, max: number): string;
|
|
27
|
+
//# sourceMappingURL=truncation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"truncation.d.ts","sourceRoot":"","sources":["../../src/tui/truncation.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,sEAAsE;AACtE,eAAO,MAAM,WAAW,uBAAuB,CAAA;AAE/C,iEAAiE;AACjE,eAAO,MAAM,sBAAsB,OAAO,CAAA;AAE1C,MAAM,WAAW,iBAAiB;IACjC,6DAA6D;IAC7D,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAA;IACvB,2FAA2F;IAC3F,QAAQ,CAAC,SAAS,CAAC,EAAE,OAAO,CAAA;CAC5B;AAED,0EAA0E;AAC1E,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,GAAE,iBAAsB,GAAG,MAAM,CAQtF;AAED;;;;GAIG;AACH,wBAAgB,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CAO1D"}
|
|
@@ -9,6 +9,8 @@ export type Interruption = Extract<AgentEvent, {
|
|
|
9
9
|
* tokens spent. Usage remains the reported measurement available through /cost.
|
|
10
10
|
*/
|
|
11
11
|
export declare function describeTurnStop(reason: StopReason | undefined, budget?: SessionTokenBudgetSummary): string | undefined;
|
|
12
|
+
/** A tool's attached fact key as a label: `login_url` reads `Login url`. */
|
|
13
|
+
export declare function detailLabel(key: string): string;
|
|
12
14
|
/** The delay the provider asked for, from either place the event can carry it. */
|
|
13
15
|
export declare function retryAfterMs(event: Interruption): number | undefined;
|
|
14
16
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"turn-interruption.d.ts","sourceRoot":"","sources":["../../src/tui/turn-interruption.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,yBAAyB,EAAE,KAAK,UAAU,EAAgB,MAAM,YAAY,CAAA;AAI1F,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAA;AAQ5C,MAAM,MAAM,YAAY,GAAG,OAAO,CAAC,UAAU,EAAE;IAAE,IAAI,EAAE,OAAO,GAAG,QAAQ,CAAA;CAAE,CAAC,CAAA;AAE5E;;;;GAIG;AACH,wBAAgB,gBAAgB,CAC/B,MAAM,EAAE,UAAU,GAAG,SAAS,EAC9B,MAAM,CAAC,EAAE,yBAAyB,GAChC,MAAM,GAAG,SAAS,CAyCpB;AAQD,kFAAkF;AAClF,wBAAgB,YAAY,CAAC,KAAK,EAAE,YAAY,GAAG,MAAM,GAAG,SAAS,CAKpE;AA6BD;;;;;;GAMG;AACH,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,YAAY,GAAG,MAAM,CA4CpE;AAgBD;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB;;;;CAIpB,CAAA;AAEV;;;;;;GAMG;AACH,wBAAgB,uBAAuB,CACtC,MAAM,EAAE,MAAM,EACd,GAAG,GAAE,IAAiB,EACtB,EAAE,GAAE,MAAuB,GACzB,MAAM,CAOR"}
|
|
1
|
+
{"version":3,"file":"turn-interruption.d.ts","sourceRoot":"","sources":["../../src/tui/turn-interruption.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,yBAAyB,EAAE,KAAK,UAAU,EAAgB,MAAM,YAAY,CAAA;AAI1F,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAA;AAQ5C,MAAM,MAAM,YAAY,GAAG,OAAO,CAAC,UAAU,EAAE;IAAE,IAAI,EAAE,OAAO,GAAG,QAAQ,CAAA;CAAE,CAAC,CAAA;AAE5E;;;;GAIG;AACH,wBAAgB,gBAAgB,CAC/B,MAAM,EAAE,UAAU,GAAG,SAAS,EAC9B,MAAM,CAAC,EAAE,yBAAyB,GAChC,MAAM,GAAG,SAAS,CAyCpB;AAED,4EAA4E;AAC5E,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAO/C;AAQD,kFAAkF;AAClF,wBAAgB,YAAY,CAAC,KAAK,EAAE,YAAY,GAAG,MAAM,GAAG,SAAS,CAKpE;AA6BD;;;;;;GAMG;AACH,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,YAAY,GAAG,MAAM,CA4CpE;AAgBD;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB;;;;CAIpB,CAAA;AAEV;;;;;;GAMG;AACH,wBAAgB,uBAAuB,CACtC,MAAM,EAAE,MAAM,EACd,GAAG,GAAE,IAAiB,EACtB,EAAE,GAAE,MAAuB,GACzB,MAAM,CAOR"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The text a person typed to start a turn, or undefined when something else
|
|
3
|
+
* did. A turn can begin with a user-role message the host wrote itself: the
|
|
4
|
+
* note that a job ended, a peer's mail, a goal round, the prompt a skill flow
|
|
5
|
+
* composes. Only the words the person sent can set a token target such as
|
|
6
|
+
* `+500k`, so those messages must never be read for one.
|
|
7
|
+
*/
|
|
8
|
+
export declare function typedInputOf(prompt: {
|
|
9
|
+
readonly kind: string;
|
|
10
|
+
readonly text: string;
|
|
11
|
+
readonly skillFlow?: true;
|
|
12
|
+
readonly recallText?: string;
|
|
13
|
+
}): string | undefined;
|
|
14
|
+
//# sourceMappingURL=typed-input.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"typed-input.d.ts","sourceRoot":"","sources":["../../src/tui/typed-input.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,wBAAgB,YAAY,CAAC,MAAM,EAAE;IACpC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,SAAS,CAAC,EAAE,IAAI,CAAA;IACzB,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAA;CAC5B,GAAG,MAAM,GAAG,SAAS,CAGrB"}
|
package/dist/tui/types.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ import type { ToolResultScreenConfig } from '../config/tool-result-screens.js';
|
|
|
10
10
|
import type { McpServersConfig } from '../integrations/mcp/servers.js';
|
|
11
11
|
import type { ResolvedLogging } from '../logging.js';
|
|
12
12
|
import type { ChecklistItem } from './Checklist.js';
|
|
13
|
+
import type { DiffInfo } from './diff-view.js';
|
|
13
14
|
import type { ShellOutput } from './shell-cell.js';
|
|
14
15
|
import type { TaskOperation } from './task-activity.js';
|
|
15
16
|
export type MessageRole = 'user' | 'assistant' | 'system' | 'tool';
|
|
@@ -28,7 +29,7 @@ export interface TranscriptMessage {
|
|
|
28
29
|
* a blank line between consecutive calls, and never wrap: they are cut at
|
|
29
30
|
* the terminal's width with an ellipsis.
|
|
30
31
|
*/
|
|
31
|
-
readonly activity?: 'exploration' | 'catalogue' | 'evidence' | 'agent-result' | 'web';
|
|
32
|
+
readonly activity?: 'exploration' | 'catalogue' | 'evidence' | 'agent-result' | 'web' | 'summary';
|
|
32
33
|
/** Overrides the role's default gutter glyph (e.g. a per-tool icon). */
|
|
33
34
|
readonly glyph?: string;
|
|
34
35
|
/** Overrides the glyph color (e.g. red for a failed tool). */
|
|
@@ -37,6 +38,12 @@ export interface TranscriptMessage {
|
|
|
37
38
|
readonly meta?: string;
|
|
38
39
|
/** Collapsible body under the line (tool diff / output). */
|
|
39
40
|
readonly detail?: readonly string[];
|
|
41
|
+
/**
|
|
42
|
+
* `detail` is the plain text of a change to a file; this is what draws it
|
|
43
|
+
* (see `diff-view.ts`): the hunks, whether the person refused it, and how
|
|
44
|
+
* many rows show before the fold.
|
|
45
|
+
*/
|
|
46
|
+
readonly diff?: DiffInfo;
|
|
40
47
|
/**
|
|
41
48
|
* Stable reference identifying an expandable body for Ctrl+O.
|
|
42
49
|
*
|
|
@@ -57,6 +64,12 @@ export interface TranscriptMessage {
|
|
|
57
64
|
* expanded. `detail` carries the same lines flat, for export and copy.
|
|
58
65
|
*/
|
|
59
66
|
readonly shell?: ShellOutput;
|
|
67
|
+
/**
|
|
68
|
+
* Set on a restored row after which the rows of the agents a saved
|
|
69
|
+
* conversation launched in this turn belong. Never rendered; cleared once
|
|
70
|
+
* those rows are placed.
|
|
71
|
+
*/
|
|
72
|
+
readonly agentTurnId?: string;
|
|
60
73
|
/** The model's plan as it stood when this row was written, drawn by `Checklist`. */
|
|
61
74
|
readonly checklist?: readonly ChecklistItem[];
|
|
62
75
|
/**
|
|
@@ -135,6 +148,8 @@ export interface TuiContext {
|
|
|
135
148
|
readonly skills?: SkillsConfig;
|
|
136
149
|
/** See `NamzuCliConfig.composerTriggers`. Only the interactive terminal reads it. */
|
|
137
150
|
readonly composerTriggers?: ComposerTriggersConfig;
|
|
151
|
+
/** See `NamzuCliConfig.hypermode`: the conversation starts with hypermode on. */
|
|
152
|
+
readonly hypermode?: boolean;
|
|
138
153
|
/** See `NamzuCliConfig.web`. */
|
|
139
154
|
readonly web?: WebConfig;
|
|
140
155
|
/** See `NamzuCliConfig.smallModel`. */
|