@linghun/tui 0.1.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/LICENSE +190 -0
- package/dist/agent-completion-finalizer.d.ts +31 -0
- package/dist/agent-completion-finalizer.d.ts.map +1 -0
- package/dist/agent-completion-finalizer.js +20 -0
- package/dist/agent-handoff-safety.d.ts +13 -0
- package/dist/agent-handoff-safety.d.ts.map +1 -0
- package/dist/agent-handoff-safety.js +43 -0
- package/dist/agent-workflow-registry.d.ts +45 -0
- package/dist/agent-workflow-registry.d.ts.map +1 -0
- package/dist/agent-workflow-registry.js +12 -0
- package/dist/architecture-boundary.d.ts +151 -0
- package/dist/architecture-boundary.d.ts.map +1 -0
- package/dist/architecture-boundary.js +24 -0
- package/dist/architecture-runtime.d.ts +56 -0
- package/dist/architecture-runtime.d.ts.map +1 -0
- package/dist/architecture-runtime.js +18 -0
- package/dist/background-control-runtime.d.ts +29 -0
- package/dist/background-control-runtime.d.ts.map +1 -0
- package/dist/background-control-runtime.js +148 -0
- package/dist/bash-subcommand-parser.d.ts +34 -0
- package/dist/bash-subcommand-parser.d.ts.map +1 -0
- package/dist/bash-subcommand-parser.js +8 -0
- package/dist/batch-tool-confirmation.d.ts +18 -0
- package/dist/batch-tool-confirmation.d.ts.map +1 -0
- package/dist/batch-tool-confirmation.js +100 -0
- package/dist/break-cache-runtime.d.ts +40 -0
- package/dist/break-cache-runtime.d.ts.map +1 -0
- package/dist/break-cache-runtime.js +17 -0
- package/dist/btw-runtime.d.ts +45 -0
- package/dist/btw-runtime.d.ts.map +1 -0
- package/dist/btw-runtime.js +14 -0
- package/dist/cache-command-runtime.d.ts +22 -0
- package/dist/cache-command-runtime.d.ts.map +1 -0
- package/dist/cache-command-runtime.js +33 -0
- package/dist/cache-freshness.d.ts +26 -0
- package/dist/cache-freshness.d.ts.map +1 -0
- package/dist/cache-freshness.js +14 -0
- package/dist/capability-runtime.d.ts +75 -0
- package/dist/capability-runtime.d.ts.map +1 -0
- package/dist/capability-runtime.js +97 -0
- package/dist/chunk-2FVEKTKN.js +86 -0
- package/dist/chunk-2YL5VKJ5.js +531 -0
- package/dist/chunk-3AKXDMVS.js +85 -0
- package/dist/chunk-3GCIXKCI.js +221 -0
- package/dist/chunk-3LT6OWQ2.js +258 -0
- package/dist/chunk-3XNUDLOM.js +91 -0
- package/dist/chunk-4EIC5BCT.js +475 -0
- package/dist/chunk-4EP3TUFF.js +238 -0
- package/dist/chunk-4I2NWBOM.js +117 -0
- package/dist/chunk-4K6UB524.js +443 -0
- package/dist/chunk-4T5DJW54.js +88 -0
- package/dist/chunk-4WHZ6JKD.js +8105 -0
- package/dist/chunk-5H7RRF7C.js +6 -0
- package/dist/chunk-64MJP6FK.js +558 -0
- package/dist/chunk-66BNE332.js +1617 -0
- package/dist/chunk-6CI6TKLN.js +50 -0
- package/dist/chunk-6RJVTUWI.js +16 -0
- package/dist/chunk-6SMM5CMP.js +100 -0
- package/dist/chunk-6USL33ZO.js +289 -0
- package/dist/chunk-7ZE5JFAZ.js +760 -0
- package/dist/chunk-AKPXMCVF.js +1373 -0
- package/dist/chunk-AO4CXI37.js +284 -0
- package/dist/chunk-APJIC2O5.js +150 -0
- package/dist/chunk-B4GQTZMT.js +607 -0
- package/dist/chunk-BFVPLGAC.js +93 -0
- package/dist/chunk-BOV4K7FP.js +588 -0
- package/dist/chunk-CFMSB6ST.js +59 -0
- package/dist/chunk-CFXB5SE5.js +502 -0
- package/dist/chunk-CRQORMFF.js +32 -0
- package/dist/chunk-CRSLDQOA.js +146 -0
- package/dist/chunk-CRW3636S.js +214 -0
- package/dist/chunk-D3UTL2QX.js +86 -0
- package/dist/chunk-D7TCSOAZ.js +331 -0
- package/dist/chunk-DDXS2RDZ.js +228 -0
- package/dist/chunk-DICVLZHH.js +144 -0
- package/dist/chunk-DNQN74CC.js +1186 -0
- package/dist/chunk-DTK5NBTV.js +912 -0
- package/dist/chunk-E72U7WW7.js +50 -0
- package/dist/chunk-EBACIBJP.js +356 -0
- package/dist/chunk-ECFLCY5V.js +530 -0
- package/dist/chunk-EORRZP3F.js +109 -0
- package/dist/chunk-F43AMWLZ.js +115 -0
- package/dist/chunk-F46N43MG.js +56 -0
- package/dist/chunk-F6TVBCZV.js +51 -0
- package/dist/chunk-FRIMDSRU.js +242 -0
- package/dist/chunk-FTAEPAVY.js +314 -0
- package/dist/chunk-GC55DMZV.js +156 -0
- package/dist/chunk-GCMH5P4W.js +422 -0
- package/dist/chunk-GDQQNPBP.js +251 -0
- package/dist/chunk-GKZYTPN2.js +279 -0
- package/dist/chunk-GLWTWEGX.js +272 -0
- package/dist/chunk-GMUCSNUD.js +586 -0
- package/dist/chunk-GTP2KPLY.js +167 -0
- package/dist/chunk-GW5YDCRZ.js +42 -0
- package/dist/chunk-H3T4EF5F.js +87 -0
- package/dist/chunk-HAEU6OTS.js +381 -0
- package/dist/chunk-HQIJGQYU.js +172 -0
- package/dist/chunk-HW2TBXVK.js +34 -0
- package/dist/chunk-HWD22O6F.js +94 -0
- package/dist/chunk-I3NTAIMF.js +280 -0
- package/dist/chunk-IN42UISW.js +372 -0
- package/dist/chunk-IWUIOLMF.js +82 -0
- package/dist/chunk-J7ZE2JKP.js +283 -0
- package/dist/chunk-JBLVBO3U.js +109 -0
- package/dist/chunk-JDWXC2OQ.js +800 -0
- package/dist/chunk-JGDIO2NF.js +74 -0
- package/dist/chunk-JHGWGH2C.js +182 -0
- package/dist/chunk-JLCPHVBN.js +42 -0
- package/dist/chunk-JO5ANTMR.js +6027 -0
- package/dist/chunk-JPXSFZFC.js +100 -0
- package/dist/chunk-JQCRCDOC.js +1195 -0
- package/dist/chunk-K4FSYBSY.js +41 -0
- package/dist/chunk-K56D3X7S.js +1225 -0
- package/dist/chunk-KI7C6ZOD.js +92 -0
- package/dist/chunk-KO64OFSG.js +58 -0
- package/dist/chunk-KQJHVJZB.js +227 -0
- package/dist/chunk-KTWV5JC5.js +59 -0
- package/dist/chunk-L4XXW6Y5.js +374 -0
- package/dist/chunk-L5GOCMZP.js +18 -0
- package/dist/chunk-LDABZV5V.js +278 -0
- package/dist/chunk-LHHKPGLX.js +903 -0
- package/dist/chunk-LL7LBRDL.js +60 -0
- package/dist/chunk-LQTVYUT3.js +421 -0
- package/dist/chunk-LVIM2PA7.js +663 -0
- package/dist/chunk-M4AIK2SP.js +215 -0
- package/dist/chunk-MLUIOBKL.js +420 -0
- package/dist/chunk-MOJL4X4L.js +47 -0
- package/dist/chunk-MVONSJEN.js +300 -0
- package/dist/chunk-N7G2X2LK.js +709 -0
- package/dist/chunk-NKFKOEYX.js +146 -0
- package/dist/chunk-NMNOAFFT.js +167 -0
- package/dist/chunk-NSIKYD3X.js +74 -0
- package/dist/chunk-O7EFPSMC.js +60 -0
- package/dist/chunk-O7S3HYE6.js +210 -0
- package/dist/chunk-OEYW3JE3.js +262 -0
- package/dist/chunk-OF3K3CU5.js +159 -0
- package/dist/chunk-OMZYPQVA.js +298 -0
- package/dist/chunk-OZMX3E35.js +248 -0
- package/dist/chunk-P277M7Z5.js +303 -0
- package/dist/chunk-P4CPRJLI.js +65 -0
- package/dist/chunk-PBIPV4LD.js +494 -0
- package/dist/chunk-PGNALDEH.js +2003 -0
- package/dist/chunk-PGWW3DVE.js +157 -0
- package/dist/chunk-QB4VWH7W.js +515 -0
- package/dist/chunk-QBCGAIU7.js +120 -0
- package/dist/chunk-QIU3FJPC.js +99 -0
- package/dist/chunk-QLRTQHTR.js +744 -0
- package/dist/chunk-QTDGRZMZ.js +171 -0
- package/dist/chunk-RBOQJFIZ.js +183 -0
- package/dist/chunk-RDGM4RUE.js +178 -0
- package/dist/chunk-RM5JDRCW.js +71 -0
- package/dist/chunk-RM5QMOFY.js +189 -0
- package/dist/chunk-RMLTVKOY.js +588 -0
- package/dist/chunk-RVY34HK4.js +79 -0
- package/dist/chunk-S3YWTBXL.js +43 -0
- package/dist/chunk-SJOS5PM6.js +64 -0
- package/dist/chunk-SOPYWTFV.js +90 -0
- package/dist/chunk-SQIBPLLV.js +15 -0
- package/dist/chunk-SRZIA6B4.js +136 -0
- package/dist/chunk-SYBNJZEL.js +250 -0
- package/dist/chunk-TFZEFIQT.js +17 -0
- package/dist/chunk-THZBFYAH.js +136 -0
- package/dist/chunk-TJLC3QAS.js +83 -0
- package/dist/chunk-TYF4GJR3.js +598 -0
- package/dist/chunk-UDQT5CWK.js +252 -0
- package/dist/chunk-UOHZQIVL.js +168 -0
- package/dist/chunk-URNQUECO.js +187 -0
- package/dist/chunk-UT2TYK2A.js +148 -0
- package/dist/chunk-UT5BOJKU.js +190 -0
- package/dist/chunk-V7GDHHBL.js +526 -0
- package/dist/chunk-VCSRBS47.js +133 -0
- package/dist/chunk-VIBENDE3.js +152 -0
- package/dist/chunk-VTQL23UM.js +302 -0
- package/dist/chunk-W3KHJNSH.js +281 -0
- package/dist/chunk-W6NU7ZAV.js +52 -0
- package/dist/chunk-WHFDDZHY.js +407 -0
- package/dist/chunk-WJWYRBWH.js +48 -0
- package/dist/chunk-WKMBK5UP.js +145 -0
- package/dist/chunk-WQMSRO4D.js +489 -0
- package/dist/chunk-WV6YJGZR.js +81 -0
- package/dist/chunk-WVAQYKGL.js +269 -0
- package/dist/chunk-X7A22JHP.js +106 -0
- package/dist/chunk-XFPNU42I.js +59 -0
- package/dist/chunk-YH6UIHNF.js +161 -0
- package/dist/chunk-YPQFSFYK.js +19 -0
- package/dist/chunk-YTQFOZRZ.js +110 -0
- package/dist/chunk-ZJK25VFP.js +506 -0
- package/dist/chunk-ZOSK2UEU.js +1555 -0
- package/dist/chunk-ZYSN7AWW.js +336 -0
- package/dist/chunk-ZZ2CNCXJ.js +282 -0
- package/dist/command-panel-runtime.d.ts +33 -0
- package/dist/command-panel-runtime.d.ts.map +1 -0
- package/dist/command-panel-runtime.js +80 -0
- package/dist/compact-cache-command-runtime.d.ts +38 -0
- package/dist/compact-cache-command-runtime.d.ts.map +1 -0
- package/dist/compact-cache-command-runtime.js +146 -0
- package/dist/compact-context.d.ts +35 -0
- package/dist/compact-context.d.ts.map +1 -0
- package/dist/compact-context.js +16 -0
- package/dist/compact-preflight-runtime.d.ts +46 -0
- package/dist/compact-preflight-runtime.d.ts.map +1 -0
- package/dist/compact-preflight-runtime.js +62 -0
- package/dist/connector-runtime.d.ts +72 -0
- package/dist/connector-runtime.d.ts.map +1 -0
- package/dist/connector-runtime.js +88 -0
- package/dist/context-estimator.d.ts +20 -0
- package/dist/context-estimator.d.ts.map +1 -0
- package/dist/context-estimator.js +18 -0
- package/dist/context-window-runtime.d.ts +12 -0
- package/dist/context-window-runtime.d.ts.map +1 -0
- package/dist/context-window-runtime.js +10 -0
- package/dist/deep-compact-runtime.d.ts +53 -0
- package/dist/deep-compact-runtime.d.ts.map +1 -0
- package/dist/deep-compact-runtime.js +35 -0
- package/dist/deferred-tools-catalog.d.ts +52 -0
- package/dist/deferred-tools-catalog.d.ts.map +1 -0
- package/dist/deferred-tools-catalog.js +42 -0
- package/dist/details-status-runtime.d.ts +48 -0
- package/dist/details-status-runtime.d.ts.map +1 -0
- package/dist/details-status-runtime.js +102 -0
- package/dist/evidence-runtime.d.ts +48 -0
- package/dist/evidence-runtime.d.ts.map +1 -0
- package/dist/evidence-runtime.js +92 -0
- package/dist/extension-command-runtime.d.ts +63 -0
- package/dist/extension-command-runtime.d.ts.map +1 -0
- package/dist/extension-command-runtime.js +67 -0
- package/dist/extension-slash-runtime.d.ts +11 -0
- package/dist/extension-slash-runtime.d.ts.map +1 -0
- package/dist/extension-slash-runtime.js +79 -0
- package/dist/external-editor-runtime.d.ts +32 -0
- package/dist/external-editor-runtime.d.ts.map +1 -0
- package/dist/external-editor-runtime.js +71 -0
- package/dist/failure-learning-command-runtime.d.ts +10 -0
- package/dist/failure-learning-command-runtime.d.ts.map +1 -0
- package/dist/failure-learning-command-runtime.js +78 -0
- package/dist/failure-learning-presenter.d.ts +6 -0
- package/dist/failure-learning-presenter.d.ts.map +1 -0
- package/dist/failure-learning-presenter.js +12 -0
- package/dist/failure-learning-runtime.d.ts +39 -0
- package/dist/failure-learning-runtime.d.ts.map +1 -0
- package/dist/failure-learning-runtime.js +39 -0
- package/dist/feature-flag-runtime.d.ts +8 -0
- package/dist/feature-flag-runtime.d.ts.map +1 -0
- package/dist/feature-flag-runtime.js +12 -0
- package/dist/feishu-long-connection-runtime.d.ts +12 -0
- package/dist/feishu-long-connection-runtime.d.ts.map +1 -0
- package/dist/feishu-long-connection-runtime.js +7 -0
- package/dist/final-answer-gate.d.ts +24 -0
- package/dist/final-answer-gate.d.ts.map +1 -0
- package/dist/final-answer-gate.js +26 -0
- package/dist/ghost-text.d.ts +16 -0
- package/dist/ghost-text.d.ts.map +1 -0
- package/dist/ghost-text.js +8 -0
- package/dist/git-branch-runtime.d.ts +14 -0
- package/dist/git-branch-runtime.d.ts.map +1 -0
- package/dist/git-branch-runtime.js +68 -0
- package/dist/git-command-runtime.d.ts +22 -0
- package/dist/git-command-runtime.d.ts.map +1 -0
- package/dist/git-command-runtime.js +89 -0
- package/dist/git-operation-runtime.d.ts +188 -0
- package/dist/git-operation-runtime.d.ts.map +1 -0
- package/dist/git-operation-runtime.js +45 -0
- package/dist/git-runtime.d.ts +113 -0
- package/dist/git-runtime.d.ts.map +1 -0
- package/dist/git-runtime.js +16 -0
- package/dist/git-slash-runtime.d.ts +38 -0
- package/dist/git-slash-runtime.d.ts.map +1 -0
- package/dist/git-slash-runtime.js +18 -0
- package/dist/git-tool-dispatch-runtime.d.ts +108 -0
- package/dist/git-tool-dispatch-runtime.d.ts.map +1 -0
- package/dist/git-tool-dispatch-runtime.js +25 -0
- package/dist/git-tool-runtime.d.ts +64 -0
- package/dist/git-tool-runtime.d.ts.map +1 -0
- package/dist/git-tool-runtime.js +36 -0
- package/dist/guard-wiring.d.ts +67 -0
- package/dist/guard-wiring.d.ts.map +1 -0
- package/dist/guard-wiring.js +21 -0
- package/dist/handoff-session-runtime.d.ts +11 -0
- package/dist/handoff-session-runtime.d.ts.map +1 -0
- package/dist/handoff-session-runtime.js +36 -0
- package/dist/index-result-presenter.d.ts +14 -0
- package/dist/index-result-presenter.d.ts.map +1 -0
- package/dist/index-result-presenter.js +28 -0
- package/dist/index-runtime.d.ts +64 -0
- package/dist/index-runtime.d.ts.map +1 -0
- package/dist/index-runtime.js +28 -0
- package/dist/index-tool-runtime.d.ts +44 -0
- package/dist/index-tool-runtime.d.ts.map +1 -0
- package/dist/index-tool-runtime.js +24 -0
- package/dist/index.d.ts +57 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +2346 -0
- package/dist/job-agent-command-runtime.d.ts +127 -0
- package/dist/job-agent-command-runtime.d.ts.map +1 -0
- package/dist/job-agent-command-runtime.js +138 -0
- package/dist/job-runner-presenter.d.ts +32 -0
- package/dist/job-runner-presenter.d.ts.map +1 -0
- package/dist/job-runner-presenter.js +30 -0
- package/dist/job-runtime.d.ts +65 -0
- package/dist/job-runtime.d.ts.map +1 -0
- package/dist/job-runtime.js +88 -0
- package/dist/keybinding-runtime.d.ts +29 -0
- package/dist/keybinding-runtime.d.ts.map +1 -0
- package/dist/keybinding-runtime.js +14 -0
- package/dist/log-artifact.d.ts +55 -0
- package/dist/log-artifact.d.ts.map +1 -0
- package/dist/log-artifact.js +10 -0
- package/dist/mcp-index-command-runtime.d.ts +21 -0
- package/dist/mcp-index-command-runtime.d.ts.map +1 -0
- package/dist/mcp-index-command-runtime.js +18 -0
- package/dist/mcp-index-runtime.d.ts +106 -0
- package/dist/mcp-index-runtime.d.ts.map +1 -0
- package/dist/mcp-index-runtime.js +142 -0
- package/dist/mcp-sse-runtime.d.ts +13 -0
- package/dist/mcp-sse-runtime.d.ts.map +1 -0
- package/dist/mcp-sse-runtime.js +8 -0
- package/dist/mcp-stdio-runtime.d.ts +37 -0
- package/dist/mcp-stdio-runtime.d.ts.map +1 -0
- package/dist/mcp-stdio-runtime.js +15 -0
- package/dist/memory-command-runtime.d.ts +37 -0
- package/dist/memory-command-runtime.d.ts.map +1 -0
- package/dist/memory-command-runtime.js +88 -0
- package/dist/memory-eviction-runtime.d.ts +7 -0
- package/dist/memory-eviction-runtime.d.ts.map +1 -0
- package/dist/memory-eviction-runtime.js +12 -0
- package/dist/memory-extraction-runtime.d.ts +40 -0
- package/dist/memory-extraction-runtime.d.ts.map +1 -0
- package/dist/memory-extraction-runtime.js +20 -0
- package/dist/memory-rules-runtime.d.ts +15 -0
- package/dist/memory-rules-runtime.d.ts.map +1 -0
- package/dist/memory-rules-runtime.js +14 -0
- package/dist/meta-scheduler-complexity.d.ts +16 -0
- package/dist/meta-scheduler-complexity.d.ts.map +1 -0
- package/dist/meta-scheduler-complexity.js +37 -0
- package/dist/meta-scheduler-runtime.d.ts +288 -0
- package/dist/meta-scheduler-runtime.d.ts.map +1 -0
- package/dist/meta-scheduler-runtime.js +17 -0
- package/dist/model-command-runtime.d.ts +12 -0
- package/dist/model-command-runtime.d.ts.map +1 -0
- package/dist/model-command-runtime.js +84 -0
- package/dist/model-doctor-runtime.d.ts +81 -0
- package/dist/model-doctor-runtime.d.ts.map +1 -0
- package/dist/model-doctor-runtime.js +46 -0
- package/dist/model-loop-runtime.d.ts +189 -0
- package/dist/model-loop-runtime.d.ts.map +1 -0
- package/dist/model-loop-runtime.js +141 -0
- package/dist/model-prompt-runtime.d.ts +25 -0
- package/dist/model-prompt-runtime.d.ts.map +1 -0
- package/dist/model-prompt-runtime.js +33 -0
- package/dist/model-setup-runtime.d.ts +28 -0
- package/dist/model-setup-runtime.d.ts.map +1 -0
- package/dist/model-setup-runtime.js +26 -0
- package/dist/model-stream-runtime.d.ts +47 -0
- package/dist/model-stream-runtime.d.ts.map +1 -0
- package/dist/model-stream-runtime.js +136 -0
- package/dist/model-tool-runtime.d.ts +114 -0
- package/dist/model-tool-runtime.d.ts.map +1 -0
- package/dist/model-tool-runtime.js +144 -0
- package/dist/natural-command-bridge.d.ts +158 -0
- package/dist/natural-command-bridge.d.ts.map +1 -0
- package/dist/natural-command-bridge.js +36 -0
- package/dist/pending-details-presenter.d.ts +8 -0
- package/dist/pending-details-presenter.d.ts.map +1 -0
- package/dist/pending-details-presenter.js +12 -0
- package/dist/permission-approval-runtime.d.ts +28 -0
- package/dist/permission-approval-runtime.d.ts.map +1 -0
- package/dist/permission-approval-runtime.js +136 -0
- package/dist/permission-continuation-runtime.d.ts +90 -0
- package/dist/permission-continuation-runtime.d.ts.map +1 -0
- package/dist/permission-continuation-runtime.js +68 -0
- package/dist/permission-policy-engine.d.ts +51 -0
- package/dist/permission-policy-engine.d.ts.map +1 -0
- package/dist/permission-policy-engine.js +12 -0
- package/dist/permission-presenter.d.ts +13 -0
- package/dist/permission-presenter.d.ts.map +1 -0
- package/dist/permission-presenter.js +8 -0
- package/dist/persistent-history.d.ts +18 -0
- package/dist/persistent-history.d.ts.map +1 -0
- package/dist/persistent-history.js +126 -0
- package/dist/platform-security.d.ts +4 -0
- package/dist/platform-security.d.ts.map +1 -0
- package/dist/platform-security.js +10 -0
- package/dist/process-command-runtime.d.ts +9 -0
- package/dist/process-command-runtime.d.ts.map +1 -0
- package/dist/process-command-runtime.js +11 -0
- package/dist/process-guard.d.ts +56 -0
- package/dist/process-guard.d.ts.map +1 -0
- package/dist/process-guard.js +22 -0
- package/dist/prompt-command-runtime.d.ts +12 -0
- package/dist/prompt-command-runtime.d.ts.map +1 -0
- package/dist/prompt-command-runtime.js +10 -0
- package/dist/prompt-stash.d.ts +15 -0
- package/dist/prompt-stash.d.ts.map +1 -0
- package/dist/prompt-stash.js +8 -0
- package/dist/provider-circuit-breaker.d.ts +132 -0
- package/dist/provider-circuit-breaker.d.ts.map +1 -0
- package/dist/provider-circuit-breaker.js +31 -0
- package/dist/provider-loop-runtime.d.ts +18 -0
- package/dist/provider-loop-runtime.d.ts.map +1 -0
- package/dist/provider-loop-runtime.js +16 -0
- package/dist/remote-command-runtime.d.ts +47 -0
- package/dist/remote-command-runtime.d.ts.map +1 -0
- package/dist/remote-command-runtime.js +125 -0
- package/dist/remote-inbound-bridge-runtime.d.ts +152 -0
- package/dist/remote-inbound-bridge-runtime.d.ts.map +1 -0
- package/dist/remote-inbound-bridge-runtime.js +44 -0
- package/dist/remote-mcp-presenter.d.ts +5 -0
- package/dist/remote-mcp-presenter.d.ts.map +1 -0
- package/dist/remote-mcp-presenter.js +10 -0
- package/dist/remote-repl-bridge-runtime.d.ts +134 -0
- package/dist/remote-repl-bridge-runtime.d.ts.map +1 -0
- package/dist/remote-repl-bridge-runtime.js +20 -0
- package/dist/remote-transport.d.ts +50 -0
- package/dist/remote-transport.d.ts.map +1 -0
- package/dist/remote-transport.js +14 -0
- package/dist/request-lifecycle-presenter.d.ts +25 -0
- package/dist/request-lifecycle-presenter.d.ts.map +1 -0
- package/dist/request-lifecycle-presenter.js +22 -0
- package/dist/runner-runtime.d.ts +41 -0
- package/dist/runner-runtime.d.ts.map +1 -0
- package/dist/runner-runtime.js +35 -0
- package/dist/runtime-budget.d.ts +38 -0
- package/dist/runtime-budget.d.ts.map +1 -0
- package/dist/runtime-budget.js +78 -0
- package/dist/runtime-path-marker.d.ts +112 -0
- package/dist/runtime-path-marker.d.ts.map +1 -0
- package/dist/runtime-path-marker.js +18 -0
- package/dist/runtime-status-presenter.d.ts +22 -0
- package/dist/runtime-status-presenter.d.ts.map +1 -0
- package/dist/runtime-status-presenter.js +15 -0
- package/dist/runtime-status-snapshot.d.ts +52 -0
- package/dist/runtime-status-snapshot.d.ts.map +1 -0
- package/dist/runtime-status-snapshot.js +11 -0
- package/dist/runtime-utils.d.ts +2 -0
- package/dist/runtime-utils.d.ts.map +1 -0
- package/dist/runtime-utils.js +6 -0
- package/dist/shell/clipboard.d.ts +23 -0
- package/dist/shell/clipboard.d.ts.map +1 -0
- package/dist/shell/clipboard.js +8 -0
- package/dist/shell/components/AgentProgressTree.d.ts +9 -0
- package/dist/shell/components/AgentProgressTree.d.ts.map +1 -0
- package/dist/shell/components/AgentProgressTree.js +9 -0
- package/dist/shell/components/BackgroundTaskOverlay.d.ts +8 -0
- package/dist/shell/components/BackgroundTaskOverlay.d.ts.map +1 -0
- package/dist/shell/components/BackgroundTaskOverlay.js +8 -0
- package/dist/shell/components/BtwPanel.d.ts +16 -0
- package/dist/shell/components/BtwPanel.d.ts.map +1 -0
- package/dist/shell/components/BtwPanel.js +8 -0
- package/dist/shell/components/CommandPanel.d.ts +11 -0
- package/dist/shell/components/CommandPanel.d.ts.map +1 -0
- package/dist/shell/components/CommandPanel.js +8 -0
- package/dist/shell/components/Composer.d.ts +187 -0
- package/dist/shell/components/Composer.d.ts.map +1 -0
- package/dist/shell/components/Composer.js +99 -0
- package/dist/shell/components/ConfigPanel.d.ts +11 -0
- package/dist/shell/components/ConfigPanel.d.ts.map +1 -0
- package/dist/shell/components/ConfigPanel.js +8 -0
- package/dist/shell/components/CtrlOToExpand.d.ts +30 -0
- package/dist/shell/components/CtrlOToExpand.d.ts.map +1 -0
- package/dist/shell/components/CtrlOToExpand.js +16 -0
- package/dist/shell/components/HelpPanel.d.ts +19 -0
- package/dist/shell/components/HelpPanel.d.ts.map +1 -0
- package/dist/shell/components/HelpPanel.js +8 -0
- package/dist/shell/components/HistorySearchPanel.d.ts +14 -0
- package/dist/shell/components/HistorySearchPanel.d.ts.map +1 -0
- package/dist/shell/components/HistorySearchPanel.js +104 -0
- package/dist/shell/components/MessageMarkdown.d.ts +34 -0
- package/dist/shell/components/MessageMarkdown.d.ts.map +1 -0
- package/dist/shell/components/MessageMarkdown.js +18 -0
- package/dist/shell/components/MessageResponse.d.ts +14 -0
- package/dist/shell/components/MessageResponse.d.ts.map +1 -0
- package/dist/shell/components/MessageResponse.js +6 -0
- package/dist/shell/components/MouseInputRouter.d.ts +28 -0
- package/dist/shell/components/MouseInputRouter.d.ts.map +1 -0
- package/dist/shell/components/MouseInputRouter.js +84 -0
- package/dist/shell/components/NotificationStack.d.ts +19 -0
- package/dist/shell/components/NotificationStack.d.ts.map +1 -0
- package/dist/shell/components/NotificationStack.js +6 -0
- package/dist/shell/components/OutputLine.d.ts +19 -0
- package/dist/shell/components/OutputLine.d.ts.map +1 -0
- package/dist/shell/components/OutputLine.js +38 -0
- package/dist/shell/components/ProductBlock.d.ts +10 -0
- package/dist/shell/components/ProductBlock.d.ts.map +1 -0
- package/dist/shell/components/ProductBlock.js +12 -0
- package/dist/shell/components/ScrollViewport.d.ts +43 -0
- package/dist/shell/components/ScrollViewport.d.ts.map +1 -0
- package/dist/shell/components/ScrollViewport.js +86 -0
- package/dist/shell/components/SessionsPanel.d.ts +24 -0
- package/dist/shell/components/SessionsPanel.d.ts.map +1 -0
- package/dist/shell/components/SessionsPanel.js +8 -0
- package/dist/shell/components/ShellApp.d.ts +8 -0
- package/dist/shell/components/ShellApp.d.ts.map +1 -0
- package/dist/shell/components/ShellApp.js +45 -0
- package/dist/shell/components/ShortcutPanel.d.ts +14 -0
- package/dist/shell/components/ShortcutPanel.d.ts.map +1 -0
- package/dist/shell/components/ShortcutPanel.js +59 -0
- package/dist/shell/components/SlashSuggestions.d.ts +24 -0
- package/dist/shell/components/SlashSuggestions.d.ts.map +1 -0
- package/dist/shell/components/SlashSuggestions.js +7 -0
- package/dist/shell/components/StatusFooter.d.ts +30 -0
- package/dist/shell/components/StatusFooter.d.ts.map +1 -0
- package/dist/shell/components/StatusFooter.js +7 -0
- package/dist/shell/components/StatusTray.d.ts +9 -0
- package/dist/shell/components/StatusTray.d.ts.map +1 -0
- package/dist/shell/components/StatusTray.js +6 -0
- package/dist/shell/components/StructuredDiff.d.ts +9 -0
- package/dist/shell/components/StructuredDiff.d.ts.map +1 -0
- package/dist/shell/components/StructuredDiff.js +7 -0
- package/dist/shell/components/TaskListView.d.ts +9 -0
- package/dist/shell/components/TaskListView.d.ts.map +1 -0
- package/dist/shell/components/TaskListView.js +9 -0
- package/dist/shell/components/TaskSuggestionBar.d.ts +15 -0
- package/dist/shell/components/TaskSuggestionBar.d.ts.map +1 -0
- package/dist/shell/components/TaskSuggestionBar.js +8 -0
- package/dist/shell/components/UnseenMessagePill.d.ts +12 -0
- package/dist/shell/components/UnseenMessagePill.d.ts.map +1 -0
- package/dist/shell/components/UnseenMessagePill.js +6 -0
- package/dist/shell/components/WorkflowProgressView.d.ts +9 -0
- package/dist/shell/components/WorkflowProgressView.d.ts.map +1 -0
- package/dist/shell/components/WorkflowProgressView.js +9 -0
- package/dist/shell/components/useAnchoredCursor.d.ts +32 -0
- package/dist/shell/components/useAnchoredCursor.d.ts.map +1 -0
- package/dist/shell/components/useAnchoredCursor.js +6 -0
- package/dist/shell/hooks/useRenderThrottle.d.ts +2 -0
- package/dist/shell/hooks/useRenderThrottle.d.ts.map +1 -0
- package/dist/shell/hooks/useRenderThrottle.js +35 -0
- package/dist/shell/hooks/useScrollBatcher.d.ts +10 -0
- package/dist/shell/hooks/useScrollBatcher.d.ts.map +1 -0
- package/dist/shell/hooks/useScrollBatcher.js +23 -0
- package/dist/shell/hooks/useScrollRuntime.d.ts +2 -0
- package/dist/shell/hooks/useScrollRuntime.d.ts.map +1 -0
- package/dist/shell/hooks/useScrollRuntime.js +6 -0
- package/dist/shell/hyperlink-utils.d.ts +18 -0
- package/dist/shell/hyperlink-utils.d.ts.map +1 -0
- package/dist/shell/hyperlink-utils.js +8 -0
- package/dist/shell/ink-renderer.d.ts +18 -0
- package/dist/shell/ink-renderer.d.ts.map +1 -0
- package/dist/shell/ink-renderer.js +54 -0
- package/dist/shell/models/command-transcript-presenter.d.ts +73 -0
- package/dist/shell/models/command-transcript-presenter.d.ts.map +1 -0
- package/dist/shell/models/command-transcript-presenter.js +26 -0
- package/dist/shell/models/help-panel.d.ts +37 -0
- package/dist/shell/models/help-panel.d.ts.map +1 -0
- package/dist/shell/models/help-panel.js +10 -0
- package/dist/shell/models/permission-elevation.d.ts +65 -0
- package/dist/shell/models/permission-elevation.d.ts.map +1 -0
- package/dist/shell/models/permission-elevation.js +10 -0
- package/dist/shell/models/permission-explanation.d.ts +45 -0
- package/dist/shell/models/permission-explanation.d.ts.map +1 -0
- package/dist/shell/models/permission-explanation.js +14 -0
- package/dist/shell/models/session-panel.d.ts +22 -0
- package/dist/shell/models/session-panel.d.ts.map +1 -0
- package/dist/shell/models/session-panel.js +18 -0
- package/dist/shell/models/task-scroll-state.d.ts +24 -0
- package/dist/shell/models/task-scroll-state.d.ts.map +1 -0
- package/dist/shell/models/task-scroll-state.js +26 -0
- package/dist/shell/models/terminal-input-runtime.d.ts +37 -0
- package/dist/shell/models/terminal-input-runtime.d.ts.map +1 -0
- package/dist/shell/models/terminal-input-runtime.js +18 -0
- package/dist/shell/models/transcript-scroll-state.d.ts +57 -0
- package/dist/shell/models/transcript-scroll-state.d.ts.map +1 -0
- package/dist/shell/models/transcript-scroll-state.js +12 -0
- package/dist/shell/models/transcript-selection-state.d.ts +39 -0
- package/dist/shell/models/transcript-selection-state.d.ts.map +1 -0
- package/dist/shell/models/transcript-selection-state.js +25 -0
- package/dist/shell/models/wheel-acceleration.d.ts +52 -0
- package/dist/shell/models/wheel-acceleration.d.ts.map +1 -0
- package/dist/shell/models/wheel-acceleration.js +6 -0
- package/dist/shell/output-utils.d.ts +22 -0
- package/dist/shell/output-utils.d.ts.map +1 -0
- package/dist/shell/output-utils.js +12 -0
- package/dist/shell/plain-renderer.d.ts +12 -0
- package/dist/shell/plain-renderer.d.ts.map +1 -0
- package/dist/shell/plain-renderer.js +13 -0
- package/dist/shell/progress-views.d.ts +10 -0
- package/dist/shell/progress-views.d.ts.map +1 -0
- package/dist/shell/progress-views.js +17 -0
- package/dist/shell/stdout-flush-barrier.d.ts +39 -0
- package/dist/shell/stdout-flush-barrier.d.ts.map +1 -0
- package/dist/shell/stdout-flush-barrier.js +10 -0
- package/dist/shell/terminal-capability.d.ts +54 -0
- package/dist/shell/terminal-capability.d.ts.map +1 -0
- package/dist/shell/terminal-capability.js +10 -0
- package/dist/shell/terminal-interaction-runtime.d.ts +11 -0
- package/dist/shell/terminal-interaction-runtime.d.ts.map +1 -0
- package/dist/shell/terminal-interaction-runtime.js +38 -0
- package/dist/shell/terminal-state-recovery.d.ts +52 -0
- package/dist/shell/terminal-state-recovery.d.ts.map +1 -0
- package/dist/shell/terminal-state-recovery.js +11 -0
- package/dist/shell/text-utils.d.ts +40 -0
- package/dist/shell/text-utils.d.ts.map +1 -0
- package/dist/shell/text-utils.js +26 -0
- package/dist/shell/theme.d.ts +41 -0
- package/dist/shell/theme.d.ts.map +1 -0
- package/dist/shell/theme.js +8 -0
- package/dist/shell/types.d.ts +784 -0
- package/dist/shell/types.d.ts.map +1 -0
- package/dist/shell/types.js +0 -0
- package/dist/shell/view-model.d.ts +82 -0
- package/dist/shell/view-model.d.ts.map +1 -0
- package/dist/shell/view-model.js +48 -0
- package/dist/slash-command-runtime.d.ts +64 -0
- package/dist/slash-command-runtime.d.ts.map +1 -0
- package/dist/slash-command-runtime.js +186 -0
- package/dist/slash-dispatch.d.ts +48 -0
- package/dist/slash-dispatch.d.ts.map +1 -0
- package/dist/slash-dispatch.js +53 -0
- package/dist/startup-runtime.d.ts +48 -0
- package/dist/startup-runtime.d.ts.map +1 -0
- package/dist/startup-runtime.js +43 -0
- package/dist/terminal-readiness-presenter.d.ts +131 -0
- package/dist/terminal-readiness-presenter.d.ts.map +1 -0
- package/dist/terminal-readiness-presenter.js +16 -0
- package/dist/terminal-readiness-runtime.d.ts +5 -0
- package/dist/terminal-readiness-runtime.d.ts.map +1 -0
- package/dist/terminal-readiness-runtime.js +15 -0
- package/dist/terminal-setup-runtime.d.ts +34 -0
- package/dist/terminal-setup-runtime.d.ts.map +1 -0
- package/dist/terminal-setup-runtime.js +257 -0
- package/dist/tool-output-presenter.d.ts +38 -0
- package/dist/tool-output-presenter.d.ts.map +1 -0
- package/dist/tool-output-presenter.js +16 -0
- package/dist/tool-result-budget.d.ts +42 -0
- package/dist/tool-result-budget.d.ts.map +1 -0
- package/dist/tool-result-budget.js +11 -0
- package/dist/tui-agent-job-runtime.d.ts +38 -0
- package/dist/tui-agent-job-runtime.d.ts.map +1 -0
- package/dist/tui-agent-job-runtime.js +86 -0
- package/dist/tui-context-runtime.d.ts +426 -0
- package/dist/tui-context-runtime.d.ts.map +1 -0
- package/dist/tui-context-runtime.js +65 -0
- package/dist/tui-data-types.d.ts +923 -0
- package/dist/tui-data-types.d.ts.map +1 -0
- package/dist/tui-data-types.js +0 -0
- package/dist/tui-details-runtime.d.ts +25 -0
- package/dist/tui-details-runtime.d.ts.map +1 -0
- package/dist/tui-details-runtime.js +29 -0
- package/dist/tui-memory-runtime.d.ts +33 -0
- package/dist/tui-memory-runtime.d.ts.map +1 -0
- package/dist/tui-memory-runtime.js +58 -0
- package/dist/tui-messages.d.ts +4 -0
- package/dist/tui-messages.d.ts.map +1 -0
- package/dist/tui-messages.js +6 -0
- package/dist/tui-model-runtime.d.ts +30 -0
- package/dist/tui-model-runtime.d.ts.map +1 -0
- package/dist/tui-model-runtime.js +39 -0
- package/dist/tui-output-surface.d.ts +141 -0
- package/dist/tui-output-surface.d.ts.map +1 -0
- package/dist/tui-output-surface.js +55 -0
- package/dist/tui-permission-runtime.d.ts +62 -0
- package/dist/tui-permission-runtime.d.ts.map +1 -0
- package/dist/tui-permission-runtime.js +24 -0
- package/dist/tui-state-runtime.d.ts +21 -0
- package/dist/tui-state-runtime.d.ts.map +1 -0
- package/dist/tui-state-runtime.js +47 -0
- package/dist/turn-continuity-runtime.d.ts +30 -0
- package/dist/turn-continuity-runtime.d.ts.map +1 -0
- package/dist/turn-continuity-runtime.js +8 -0
- package/dist/undo-ring.d.ts +16 -0
- package/dist/undo-ring.d.ts.map +1 -0
- package/dist/undo-ring.js +12 -0
- package/dist/usage-stats-presenter.d.ts +17 -0
- package/dist/usage-stats-presenter.d.ts.map +1 -0
- package/dist/usage-stats-presenter.js +22 -0
- package/dist/user-state-signal-runtime.d.ts +33 -0
- package/dist/user-state-signal-runtime.d.ts.map +1 -0
- package/dist/user-state-signal-runtime.js +8 -0
- package/dist/verification-command-runtime.d.ts +25 -0
- package/dist/verification-command-runtime.d.ts.map +1 -0
- package/dist/verification-command-runtime.js +51 -0
- package/dist/verification-level.d.ts +93 -0
- package/dist/verification-level.d.ts.map +1 -0
- package/dist/verification-level.js +18 -0
- package/dist/workflow-agent-runtime-bridge.d.ts +169 -0
- package/dist/workflow-agent-runtime-bridge.d.ts.map +1 -0
- package/dist/workflow-agent-runtime-bridge.js +9 -0
- package/dist/workflow-command-runtime.d.ts +94 -0
- package/dist/workflow-command-runtime.d.ts.map +1 -0
- package/dist/workflow-command-runtime.js +114 -0
- package/dist/workflow-plan-schema.d.ts +161 -0
- package/dist/workflow-plan-schema.d.ts.map +1 -0
- package/dist/workflow-plan-schema.js +12 -0
- package/dist/workflow-planner-entry.d.ts +52 -0
- package/dist/workflow-planner-entry.d.ts.map +1 -0
- package/dist/workflow-planner-entry.js +328 -0
- package/dist/workflow-task-surface.d.ts +39 -0
- package/dist/workflow-task-surface.d.ts.map +1 -0
- package/dist/workflow-task-surface.js +7 -0
- package/dist/workspace-reference-cache.d.ts +110 -0
- package/dist/workspace-reference-cache.d.ts.map +1 -0
- package/dist/workspace-reference-cache.js +12 -0
- package/package.json +41 -0
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Composer,
|
|
3
|
+
OWNER_PASTE_THRESHOLD,
|
|
4
|
+
OWNER_PRIORITY,
|
|
5
|
+
bufferBackspace,
|
|
6
|
+
bufferClearLine,
|
|
7
|
+
bufferDelete,
|
|
8
|
+
bufferDeleteWordLeft,
|
|
9
|
+
bufferDisplayWidth,
|
|
10
|
+
bufferEnd,
|
|
11
|
+
bufferHome,
|
|
12
|
+
bufferInsert,
|
|
13
|
+
bufferKillToEnd,
|
|
14
|
+
bufferMoveDown,
|
|
15
|
+
bufferMoveLeft,
|
|
16
|
+
bufferMoveRight,
|
|
17
|
+
bufferMoveUp,
|
|
18
|
+
bufferMoveVisualDown,
|
|
19
|
+
bufferMoveVisualUp,
|
|
20
|
+
bufferToString,
|
|
21
|
+
bufferWordLeft,
|
|
22
|
+
bufferWordRight,
|
|
23
|
+
composerCursorAnchorRowOffset,
|
|
24
|
+
createEditBuffer,
|
|
25
|
+
createInputHistory,
|
|
26
|
+
formatComposerRenderLines,
|
|
27
|
+
handleComposerInput,
|
|
28
|
+
historyAdd,
|
|
29
|
+
historyCurrentText,
|
|
30
|
+
historyDown,
|
|
31
|
+
historyUp,
|
|
32
|
+
isDoublePressWithin,
|
|
33
|
+
isMultilineEnterSequence,
|
|
34
|
+
isNavigationKey,
|
|
35
|
+
isVerticalNavigationKey,
|
|
36
|
+
sanitizeComposerInput,
|
|
37
|
+
selectInputOwner,
|
|
38
|
+
shouldEnterPastePath,
|
|
39
|
+
shouldOwnerBePaste,
|
|
40
|
+
shouldUnstickSlashHidden,
|
|
41
|
+
splitLineAtDisplayCol
|
|
42
|
+
} from "../../chunk-ZOSK2UEU.js";
|
|
43
|
+
import "../../chunk-JBLVBO3U.js";
|
|
44
|
+
import "../../chunk-GW5YDCRZ.js";
|
|
45
|
+
import "../../chunk-HW2TBXVK.js";
|
|
46
|
+
import "../../chunk-F46N43MG.js";
|
|
47
|
+
import "../../chunk-P4CPRJLI.js";
|
|
48
|
+
import "../../chunk-YPQFSFYK.js";
|
|
49
|
+
import "../../chunk-TFZEFIQT.js";
|
|
50
|
+
import "../../chunk-GC55DMZV.js";
|
|
51
|
+
import "../../chunk-4K6UB524.js";
|
|
52
|
+
import "../../chunk-KI7C6ZOD.js";
|
|
53
|
+
import "../../chunk-PGNALDEH.js";
|
|
54
|
+
import "../../chunk-6SMM5CMP.js";
|
|
55
|
+
import "../../chunk-K4FSYBSY.js";
|
|
56
|
+
import "../../chunk-OMZYPQVA.js";
|
|
57
|
+
import "../../chunk-APJIC2O5.js";
|
|
58
|
+
export {
|
|
59
|
+
Composer,
|
|
60
|
+
OWNER_PASTE_THRESHOLD,
|
|
61
|
+
OWNER_PRIORITY,
|
|
62
|
+
bufferBackspace,
|
|
63
|
+
bufferClearLine,
|
|
64
|
+
bufferDelete,
|
|
65
|
+
bufferDeleteWordLeft,
|
|
66
|
+
bufferDisplayWidth,
|
|
67
|
+
bufferEnd,
|
|
68
|
+
bufferHome,
|
|
69
|
+
bufferInsert,
|
|
70
|
+
bufferKillToEnd,
|
|
71
|
+
bufferMoveDown,
|
|
72
|
+
bufferMoveLeft,
|
|
73
|
+
bufferMoveRight,
|
|
74
|
+
bufferMoveUp,
|
|
75
|
+
bufferMoveVisualDown,
|
|
76
|
+
bufferMoveVisualUp,
|
|
77
|
+
bufferToString,
|
|
78
|
+
bufferWordLeft,
|
|
79
|
+
bufferWordRight,
|
|
80
|
+
composerCursorAnchorRowOffset,
|
|
81
|
+
createEditBuffer,
|
|
82
|
+
createInputHistory,
|
|
83
|
+
formatComposerRenderLines,
|
|
84
|
+
handleComposerInput,
|
|
85
|
+
historyAdd,
|
|
86
|
+
historyCurrentText,
|
|
87
|
+
historyDown,
|
|
88
|
+
historyUp,
|
|
89
|
+
isDoublePressWithin,
|
|
90
|
+
isMultilineEnterSequence,
|
|
91
|
+
isNavigationKey,
|
|
92
|
+
isVerticalNavigationKey,
|
|
93
|
+
sanitizeComposerInput,
|
|
94
|
+
selectInputOwner,
|
|
95
|
+
shouldEnterPastePath,
|
|
96
|
+
shouldOwnerBePaste,
|
|
97
|
+
shouldUnstickSlashHidden,
|
|
98
|
+
splitLineAtDisplayCol
|
|
99
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Language } from "@linghun/shared";
|
|
2
|
+
import type React from "react";
|
|
3
|
+
import type { ConfigPanelView, ShellController } from "../types.js";
|
|
4
|
+
export declare function ConfigPanel({ panel, controller: _controller, width, noColor, language, }: {
|
|
5
|
+
panel: ConfigPanelView;
|
|
6
|
+
controller: ShellController;
|
|
7
|
+
width: number;
|
|
8
|
+
noColor: boolean;
|
|
9
|
+
language: Language;
|
|
10
|
+
}): React.ReactNode;
|
|
11
|
+
//# sourceMappingURL=ConfigPanel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConfigPanel.d.ts","sourceRoot":"","sources":["../../../src/shell/components/ConfigPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAEhD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,KAAK,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AA8BpE,wBAAgB,WAAW,CAAC,EAC1B,KAAK,EACL,UAAU,EAAE,WAAW,EACvB,KAAK,EACL,OAAO,EACP,QAAQ,GACT,EAAE;IACD,KAAK,EAAE,eAAe,CAAC;IACvB,UAAU,EAAE,eAAe,CAAC;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,QAAQ,CAAC;CACpB,GAAG,KAAK,CAAC,SAAS,CAyIlB"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type React from "react";
|
|
2
|
+
import type { ShellTheme } from "../theme.js";
|
|
3
|
+
export declare function useInSubAgent(): boolean;
|
|
4
|
+
export declare function useInVirtualList(): boolean;
|
|
5
|
+
export declare function SubAgentProvider({ children, }: {
|
|
6
|
+
children: React.ReactNode;
|
|
7
|
+
}): React.ReactNode;
|
|
8
|
+
export declare function VirtualListProvider({ children, }: {
|
|
9
|
+
children: React.ReactNode;
|
|
10
|
+
}): React.ReactNode;
|
|
11
|
+
/**
|
|
12
|
+
* 渲染 "(Ctrl+O 查看完整内容)" / "(Ctrl+O for details)" 单行 dim 提示。
|
|
13
|
+
*
|
|
14
|
+
* 隐藏规则(CCB 同款):
|
|
15
|
+
* - 在子 agent 上下文里隐藏。
|
|
16
|
+
* - 在虚拟列表上下文里隐藏(避免列表每行都画 hint)。
|
|
17
|
+
* - hidden=true 强制隐藏(调用方决定本块是否真的折叠)。
|
|
18
|
+
*/
|
|
19
|
+
export declare function CtrlOToExpand({ theme, hint, hidden, }: {
|
|
20
|
+
theme: ShellTheme;
|
|
21
|
+
hint: string;
|
|
22
|
+
hidden?: boolean;
|
|
23
|
+
}): React.ReactNode;
|
|
24
|
+
/**
|
|
25
|
+
* 字符串版(plain renderer / ANSI 拼接场景):
|
|
26
|
+
* 由于 Context 在字符串拼接路径不可用,这里直接根据外部传入的 suppressed
|
|
27
|
+
* 决定返回空。
|
|
28
|
+
*/
|
|
29
|
+
export declare function ctrlOToExpandString(hint: string, suppressed?: boolean): string;
|
|
30
|
+
//# sourceMappingURL=CtrlOToExpand.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CtrlOToExpand.d.ts","sourceRoot":"","sources":["../../../src/shell/components/CtrlOToExpand.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAkB9C,wBAAgB,aAAa,IAAI,OAAO,CAEvC;AAED,wBAAgB,gBAAgB,IAAI,OAAO,CAE1C;AAED,wBAAgB,gBAAgB,CAAC,EAC/B,QAAQ,GACT,EAAE;IACD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,GAAG,KAAK,CAAC,SAAS,CAElB;AAED,wBAAgB,mBAAmB,CAAC,EAClC,QAAQ,GACT,EAAE;IACD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,GAAG,KAAK,CAAC,SAAS,CAElB;AAED;;;;;;;GAOG;AACH,wBAAgB,aAAa,CAAC,EAC5B,KAAK,EACL,IAAI,EACJ,MAAc,GACf,EAAE;IACD,KAAK,EAAE,UAAU,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB,GAAG,KAAK,CAAC,SAAS,CAUlB;AAED;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,EAAE,UAAU,UAAQ,GAAG,MAAM,CAI5E"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import {
|
|
2
|
+
CtrlOToExpand,
|
|
3
|
+
SubAgentProvider,
|
|
4
|
+
VirtualListProvider,
|
|
5
|
+
ctrlOToExpandString,
|
|
6
|
+
useInSubAgent,
|
|
7
|
+
useInVirtualList
|
|
8
|
+
} from "../../chunk-MOJL4X4L.js";
|
|
9
|
+
export {
|
|
10
|
+
CtrlOToExpand,
|
|
11
|
+
SubAgentProvider,
|
|
12
|
+
VirtualListProvider,
|
|
13
|
+
ctrlOToExpandString,
|
|
14
|
+
useInSubAgent,
|
|
15
|
+
useInVirtualList
|
|
16
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { Language } from "@linghun/shared";
|
|
2
|
+
import type React from "react";
|
|
3
|
+
import type { ShellController } from "../types.js";
|
|
4
|
+
export declare function HelpPanel({ panel, controller: _controller, width: _width, noColor, language, }: {
|
|
5
|
+
panel: {
|
|
6
|
+
group: "core" | "advanced" | "details";
|
|
7
|
+
cursor: number;
|
|
8
|
+
scrollOffset: number;
|
|
9
|
+
entries: {
|
|
10
|
+
slash: string;
|
|
11
|
+
description: string;
|
|
12
|
+
}[];
|
|
13
|
+
};
|
|
14
|
+
controller: ShellController;
|
|
15
|
+
width: number;
|
|
16
|
+
noColor: boolean;
|
|
17
|
+
language: Language;
|
|
18
|
+
}): React.ReactNode;
|
|
19
|
+
//# sourceMappingURL=HelpPanel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HelpPanel.d.ts","sourceRoot":"","sources":["../../../src/shell/components/HelpPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAEhD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAmCnD,wBAAgB,SAAS,CAAC,EACxB,KAAK,EACL,UAAU,EAAE,WAAW,EACvB,KAAK,EAAE,MAAM,EACb,OAAO,EACP,QAAQ,GACT,EAAE;IACD,KAAK,EAAE;QACL,KAAK,EAAE,MAAM,GAAG,UAAU,GAAG,SAAS,CAAC;QACvC,MAAM,EAAE,MAAM,CAAC;QACf,YAAY,EAAE,MAAM,CAAC;QACrB,OAAO,EAAE;YAAE,KAAK,EAAE,MAAM,CAAC;YAAC,WAAW,EAAE,MAAM,CAAA;SAAE,EAAE,CAAC;KACnD,CAAC;IACF,UAAU,EAAE,eAAe,CAAC;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,QAAQ,CAAC;CACpB,GAAG,KAAK,CAAC,SAAS,CAiGlB"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type React from "react";
|
|
2
|
+
export type HistorySearchPanelProps = {
|
|
3
|
+
query: string;
|
|
4
|
+
results: {
|
|
5
|
+
text: string;
|
|
6
|
+
timestamp: number;
|
|
7
|
+
}[];
|
|
8
|
+
cursor: number;
|
|
9
|
+
language: "zh-CN" | "en-US";
|
|
10
|
+
noColor?: boolean;
|
|
11
|
+
width?: number;
|
|
12
|
+
};
|
|
13
|
+
export declare function HistorySearchPanel({ query, results, cursor, language, noColor, width, }: HistorySearchPanelProps): React.ReactNode;
|
|
14
|
+
//# sourceMappingURL=HistorySearchPanel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HistorySearchPanel.d.ts","sourceRoot":"","sources":["../../../src/shell/components/HistorySearchPanel.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAgC/B,MAAM,MAAM,uBAAuB,GAAG;IACpC,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IAC/C,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,OAAO,GAAG,OAAO,CAAC;IAC5B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,wBAAgB,kBAAkB,CAAC,EACjC,KAAK,EACL,OAAO,EACP,MAAM,EACN,QAAQ,EACR,OAAe,EACf,KAAU,GACX,EAAE,uBAAuB,GAAG,KAAK,CAAC,SAAS,CAuD3C"}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import {
|
|
2
|
+
createShellTheme
|
|
3
|
+
} from "../../chunk-GC55DMZV.js";
|
|
4
|
+
import {
|
|
5
|
+
fitText
|
|
6
|
+
} from "../../chunk-APJIC2O5.js";
|
|
7
|
+
|
|
8
|
+
// src/shell/components/HistorySearchPanel.tsx
|
|
9
|
+
import { Box, Text } from "@linghun/ink-runtime";
|
|
10
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
11
|
+
var MAX_VISIBLE = 10;
|
|
12
|
+
var MAX_ENTRY_CHARS = 60;
|
|
13
|
+
var HINT_TEXT = {
|
|
14
|
+
"zh-CN": {
|
|
15
|
+
prefix: "\u641C\u7D22: ",
|
|
16
|
+
hint: "Enter \u9009\u62E9 \xB7 Esc \u5173\u95ED",
|
|
17
|
+
empty: "\u65E0\u5339\u914D"
|
|
18
|
+
},
|
|
19
|
+
"en-US": {
|
|
20
|
+
prefix: "search: ",
|
|
21
|
+
hint: "Enter select \xB7 Esc close",
|
|
22
|
+
empty: "no matches"
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
function HistorySearchPanel({
|
|
26
|
+
query,
|
|
27
|
+
results,
|
|
28
|
+
cursor,
|
|
29
|
+
language,
|
|
30
|
+
noColor = false,
|
|
31
|
+
width = 80
|
|
32
|
+
}) {
|
|
33
|
+
const theme = createShellTheme(noColor);
|
|
34
|
+
const hint = HINT_TEXT[language] ?? HINT_TEXT["zh-CN"];
|
|
35
|
+
const cardWidth = Math.min(width, 84);
|
|
36
|
+
const innerWidth = Math.max(20, cardWidth - 4);
|
|
37
|
+
const visible = results.slice(0, MAX_VISIBLE);
|
|
38
|
+
return /* @__PURE__ */ jsxs(
|
|
39
|
+
Box,
|
|
40
|
+
{
|
|
41
|
+
flexDirection: "column",
|
|
42
|
+
borderStyle: "single",
|
|
43
|
+
borderColor: theme.border,
|
|
44
|
+
paddingX: 1,
|
|
45
|
+
marginTop: 1,
|
|
46
|
+
width: cardWidth,
|
|
47
|
+
children: [
|
|
48
|
+
/* @__PURE__ */ jsxs(Text, { children: [
|
|
49
|
+
/* @__PURE__ */ jsx(Text, { color: theme.accent, bold: true, children: hint.prefix }),
|
|
50
|
+
/* @__PURE__ */ jsx(Text, { children: query || "" })
|
|
51
|
+
] }),
|
|
52
|
+
visible.length === 0 ? /* @__PURE__ */ jsx(Text, { color: theme.dim ?? theme.muted, dimColor: true, children: hint.empty }) : visible.map((entry, idx) => {
|
|
53
|
+
const active = idx === cursor;
|
|
54
|
+
const truncated = truncateEntry(entry.text, MAX_ENTRY_CHARS);
|
|
55
|
+
return /* @__PURE__ */ jsxs(Text, { bold: active, inverse: active, children: [
|
|
56
|
+
active ? "\u25B8 " : " ",
|
|
57
|
+
/* @__PURE__ */ jsx(
|
|
58
|
+
HighlightedText,
|
|
59
|
+
{
|
|
60
|
+
text: truncated,
|
|
61
|
+
query,
|
|
62
|
+
matchColor: theme.warning ?? "yellow",
|
|
63
|
+
noColor
|
|
64
|
+
}
|
|
65
|
+
)
|
|
66
|
+
] }, `${idx}-${entry.timestamp}`);
|
|
67
|
+
}),
|
|
68
|
+
/* @__PURE__ */ jsx(Text, { color: theme.dim ?? theme.muted, dimColor: true, children: fitText(hint.hint, innerWidth) })
|
|
69
|
+
]
|
|
70
|
+
}
|
|
71
|
+
);
|
|
72
|
+
}
|
|
73
|
+
function truncateEntry(text, max) {
|
|
74
|
+
const single = text.replace(/[\r\n]+/g, " ").trim();
|
|
75
|
+
if (single.length <= max) return single;
|
|
76
|
+
return `${single.slice(0, max - 1)}\u2026`;
|
|
77
|
+
}
|
|
78
|
+
function HighlightedText({
|
|
79
|
+
text,
|
|
80
|
+
query,
|
|
81
|
+
matchColor,
|
|
82
|
+
noColor
|
|
83
|
+
}) {
|
|
84
|
+
if (!query || noColor) {
|
|
85
|
+
return /* @__PURE__ */ jsx(Text, { children: text });
|
|
86
|
+
}
|
|
87
|
+
const lowerText = text.toLowerCase();
|
|
88
|
+
const lowerQuery = query.toLowerCase();
|
|
89
|
+
const idx = lowerText.indexOf(lowerQuery);
|
|
90
|
+
if (idx === -1) {
|
|
91
|
+
return /* @__PURE__ */ jsx(Text, { children: text });
|
|
92
|
+
}
|
|
93
|
+
const before = text.slice(0, idx);
|
|
94
|
+
const match = text.slice(idx, idx + query.length);
|
|
95
|
+
const after = text.slice(idx + query.length);
|
|
96
|
+
return /* @__PURE__ */ jsxs(Text, { children: [
|
|
97
|
+
before,
|
|
98
|
+
/* @__PURE__ */ jsx(Text, { color: matchColor, bold: true, children: match }),
|
|
99
|
+
after
|
|
100
|
+
] });
|
|
101
|
+
}
|
|
102
|
+
export {
|
|
103
|
+
HistorySearchPanel
|
|
104
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type React from "react";
|
|
2
|
+
import type { ShellTheme } from "../theme.js";
|
|
3
|
+
import type { ProductBlockSelectionRange } from "../types.js";
|
|
4
|
+
export declare function useInMessageResponse(): boolean;
|
|
5
|
+
export declare function MessageResponseProvider({ children, }: {
|
|
6
|
+
children: React.ReactNode;
|
|
7
|
+
}): React.ReactNode;
|
|
8
|
+
export type MessageMarkdownProps = {
|
|
9
|
+
text: string;
|
|
10
|
+
theme: ShellTheme;
|
|
11
|
+
dim?: boolean;
|
|
12
|
+
tone?: "default" | "error" | "diagnostic";
|
|
13
|
+
wrapWidth?: number;
|
|
14
|
+
selectionLineIndexes?: number[];
|
|
15
|
+
selectionLineRanges?: ProductBlockSelectionRange[];
|
|
16
|
+
isStreaming?: boolean;
|
|
17
|
+
};
|
|
18
|
+
type MarkdownRenderSegment = {
|
|
19
|
+
kind: "markdown" | "diff";
|
|
20
|
+
text: string;
|
|
21
|
+
};
|
|
22
|
+
export declare function __testSplitRawDiffSections(text: string): MarkdownRenderSegment[];
|
|
23
|
+
export declare function MessageMarkdown({ text, theme, dim, tone, wrapWidth, selectionLineIndexes, selectionLineRanges, isStreaming, }: MessageMarkdownProps): React.ReactNode;
|
|
24
|
+
export type StreamingMarkdownState = {
|
|
25
|
+
stablePrefix: string;
|
|
26
|
+
};
|
|
27
|
+
export declare function splitStreamingMarkdownForRender(text: string, state: StreamingMarkdownState): {
|
|
28
|
+
stablePrefix: string;
|
|
29
|
+
unstableSuffix: string;
|
|
30
|
+
parsedSuffixInput: string;
|
|
31
|
+
};
|
|
32
|
+
export declare function StreamingMarkdown({ text, theme, dim, tone, wrapWidth, }: MessageMarkdownProps): React.ReactNode;
|
|
33
|
+
export {};
|
|
34
|
+
//# sourceMappingURL=MessageMarkdown.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MessageMarkdown.d.ts","sourceRoot":"","sources":["../../../src/shell/components/MessageMarkdown.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAK9D,wBAAgB,oBAAoB,IAAI,OAAO,CAE9C;AAED,wBAAgB,uBAAuB,CAAC,EACtC,QAAQ,GACT,EAAE;IACD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,GAAG,KAAK,CAAC,SAAS,CAElB;AAED,MAAM,MAAM,oBAAoB,GAAG;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,UAAU,CAAC;IAClB,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,IAAI,CAAC,EAAE,SAAS,GAAG,OAAO,GAAG,YAAY,CAAC;IAC1C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,oBAAoB,CAAC,EAAE,MAAM,EAAE,CAAC;IAChC,mBAAmB,CAAC,EAAE,0BAA0B,EAAE,CAAC;IACnD,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,CAAC;AAuBF,KAAK,qBAAqB,GAAG;IAAE,IAAI,EAAE,UAAU,GAAG,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC;AAgJzE,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,MAAM,GAAG,qBAAqB,EAAE,CAGhF;AA6pBD,wBAAgB,eAAe,CAAC,EAC9B,IAAI,EACJ,KAAK,EACL,GAAW,EACX,IAAgB,EAChB,SAAS,EACT,oBAAoB,EACpB,mBAAmB,EACnB,WAAW,GACZ,EAAE,oBAAoB,GAAG,KAAK,CAAC,SAAS,CA2ExC;AAyFD,MAAM,MAAM,sBAAsB,GAAG;IACnC,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,wBAAgB,+BAA+B,CAC7C,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,sBAAsB,GAC5B;IAAE,YAAY,EAAE,MAAM,CAAC;IAAC,cAAc,EAAE,MAAM,CAAC;IAAC,iBAAiB,EAAE,MAAM,CAAA;CAAE,CAgB7E;AA+CD,wBAAgB,iBAAiB,CAAC,EAChC,IAAI,EACJ,KAAK,EACL,GAAW,EACX,IAAgB,EAChB,SAAS,GACV,EAAE,oBAAoB,GAAG,KAAK,CAAC,SAAS,CA+BxC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import {
|
|
2
|
+
MessageMarkdown,
|
|
3
|
+
MessageResponseProvider,
|
|
4
|
+
StreamingMarkdown,
|
|
5
|
+
__testSplitRawDiffSections,
|
|
6
|
+
splitStreamingMarkdownForRender,
|
|
7
|
+
useInMessageResponse
|
|
8
|
+
} from "../../chunk-DTK5NBTV.js";
|
|
9
|
+
import "../../chunk-F43AMWLZ.js";
|
|
10
|
+
import "../../chunk-APJIC2O5.js";
|
|
11
|
+
export {
|
|
12
|
+
MessageMarkdown,
|
|
13
|
+
MessageResponseProvider,
|
|
14
|
+
StreamingMarkdown,
|
|
15
|
+
__testSplitRawDiffSections,
|
|
16
|
+
splitStreamingMarkdownForRender,
|
|
17
|
+
useInMessageResponse
|
|
18
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type React from "react";
|
|
2
|
+
/**
|
|
3
|
+
* MessageResponse — CCB-aligned output prefix component.
|
|
4
|
+
*
|
|
5
|
+
* Renders a dim "⎿ " prefix followed by children in a flexRow layout.
|
|
6
|
+
* Used for tool_result_success, diagnostic, local_command_output, and
|
|
7
|
+
* tool_result_error blocks to visually distinguish tool output from
|
|
8
|
+
* assistant text without borders.
|
|
9
|
+
*/
|
|
10
|
+
export declare function MessageResponse({ children, width, }: {
|
|
11
|
+
children: React.ReactNode;
|
|
12
|
+
width?: number;
|
|
13
|
+
}): React.ReactNode;
|
|
14
|
+
//# sourceMappingURL=MessageResponse.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MessageResponse.d.ts","sourceRoot":"","sources":["../../../src/shell/components/MessageResponse.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAAC,EAC9B,QAAQ,EACR,KAAK,GACN,EAAE;IACD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,GAAG,KAAK,CAAC,SAAS,CAalB"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { ShellInputEvent, TranscriptScrollView } from "../types.js";
|
|
2
|
+
/**
|
|
3
|
+
* Phase 7 — Runtime-owned mouse input router.
|
|
4
|
+
*
|
|
5
|
+
* Uses structured runtime hooks (useWheelInput / useMouseInput / useTerminalInput)
|
|
6
|
+
* instead of raw useInput + manual SGR parsing. The runtime tokenizer/parser
|
|
7
|
+
* (Phase 2) classifies terminal bytes before they reach this component.
|
|
8
|
+
*
|
|
9
|
+
* Event routing:
|
|
10
|
+
* - Wheel events → accelerator → pending delta accumulator → quantized dispatch
|
|
11
|
+
* - Mouse events → transcript-mouse for selection
|
|
12
|
+
* - Focus-out (key event) → lost-release recovery
|
|
13
|
+
* - Mouse fragments / unknown escapes → silently consumed by runtime (never leak)
|
|
14
|
+
*
|
|
15
|
+
* Phase R5 scroll runtime: wheel events accumulate in a pending delta accumulator
|
|
16
|
+
* with frame drain, preventing state-update explosion on high-frequency input.
|
|
17
|
+
*
|
|
18
|
+
* This component must NOT be rendered when mouse tracking is disabled
|
|
19
|
+
* (non-alt-screen fallback). The parent (ShellApp TaskLayout) gates rendering
|
|
20
|
+
* via the `active` prop.
|
|
21
|
+
*/
|
|
22
|
+
export declare function MouseInputRouter({ active, scroll, selectionActive, onInput, }: {
|
|
23
|
+
active: boolean;
|
|
24
|
+
selectionActive?: boolean;
|
|
25
|
+
scroll: TranscriptScrollView | undefined;
|
|
26
|
+
onInput: (event: ShellInputEvent) => void;
|
|
27
|
+
}): null;
|
|
28
|
+
//# sourceMappingURL=MouseInputRouter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MouseInputRouter.d.ts","sourceRoot":"","sources":["../../../src/shell/components/MouseInputRouter.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,eAAe,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAEzE;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,gBAAgB,CAAC,EAC/B,MAAM,EACN,MAAM,EACN,eAAsB,EACtB,OAAO,GACR,EAAE;IACD,MAAM,EAAE,OAAO,CAAC;IAChB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,MAAM,EAAE,oBAAoB,GAAG,SAAS,CAAC;IACzC,OAAO,EAAE,CAAC,KAAK,EAAE,eAAe,KAAK,IAAI,CAAC;CAC3C,GAAG,IAAI,CAiEP"}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import {
|
|
2
|
+
WheelAccelerator
|
|
3
|
+
} from "../../chunk-PGWW3DVE.js";
|
|
4
|
+
import {
|
|
5
|
+
useScrollRuntime
|
|
6
|
+
} from "../../chunk-LL7LBRDL.js";
|
|
7
|
+
import {
|
|
8
|
+
isXtermJsTerminal
|
|
9
|
+
} from "../../chunk-DICVLZHH.js";
|
|
10
|
+
|
|
11
|
+
// src/shell/components/MouseInputRouter.tsx
|
|
12
|
+
import {
|
|
13
|
+
useWheelInput,
|
|
14
|
+
useMouseInput,
|
|
15
|
+
useTerminalInput
|
|
16
|
+
} from "@linghun/ink-runtime";
|
|
17
|
+
import { useCallback, useMemo, useRef } from "react";
|
|
18
|
+
function MouseInputRouter({
|
|
19
|
+
active,
|
|
20
|
+
scroll,
|
|
21
|
+
selectionActive = true,
|
|
22
|
+
onInput
|
|
23
|
+
}) {
|
|
24
|
+
const accelerator = useMemo(() => {
|
|
25
|
+
const base = Number.parseInt(process.env.LINGHUN_SCROLL_SPEED ?? "1", 10) || 1;
|
|
26
|
+
const terminalType = isXtermJsTerminal() ? "xterm.js" : "native";
|
|
27
|
+
return new WheelAccelerator({ base, terminalType });
|
|
28
|
+
}, []);
|
|
29
|
+
const scrollRef = useRef(scroll);
|
|
30
|
+
scrollRef.current = scroll;
|
|
31
|
+
const dispatchScroll = useCallback(
|
|
32
|
+
(delta) => {
|
|
33
|
+
onInput({ type: "transcript-scroll", delta });
|
|
34
|
+
},
|
|
35
|
+
[onInput]
|
|
36
|
+
);
|
|
37
|
+
const accumulateScroll = useScrollRuntime(dispatchScroll);
|
|
38
|
+
useWheelInput(
|
|
39
|
+
useCallback(
|
|
40
|
+
(event) => {
|
|
41
|
+
const step = accelerator.recordEvent(Date.now(), event.direction, scrollRef.current?.viewportHeight);
|
|
42
|
+
if (step !== 0) {
|
|
43
|
+
accumulateScroll(event.direction === "up" ? step : -step);
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
[accelerator, accumulateScroll]
|
|
47
|
+
),
|
|
48
|
+
{ isActive: active }
|
|
49
|
+
);
|
|
50
|
+
useMouseInput(
|
|
51
|
+
useCallback(
|
|
52
|
+
(event) => {
|
|
53
|
+
if (!selectionActive) return;
|
|
54
|
+
onInput({
|
|
55
|
+
type: "transcript-mouse",
|
|
56
|
+
event: {
|
|
57
|
+
x: Math.max(0, event.x - 1),
|
|
58
|
+
y: Math.max(0, event.y - 1),
|
|
59
|
+
button: event.button === 0 || event.button === 3 ? "left" : "other",
|
|
60
|
+
action: event.action === "press" ? "down" : event.action === "release" ? "up" : event.action
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
},
|
|
64
|
+
[onInput, selectionActive]
|
|
65
|
+
),
|
|
66
|
+
{ isActive: active }
|
|
67
|
+
);
|
|
68
|
+
useTerminalInput(
|
|
69
|
+
useCallback(
|
|
70
|
+
(event) => {
|
|
71
|
+
if (event.kind !== "terminal-response") return;
|
|
72
|
+
if (event.response !== "\x1B[O") return;
|
|
73
|
+
if (!selectionActive) return;
|
|
74
|
+
onInput({ type: "transcript-mouse", event: { x: 0, y: 0, button: "left", action: "focus-out" } });
|
|
75
|
+
},
|
|
76
|
+
[onInput, selectionActive]
|
|
77
|
+
),
|
|
78
|
+
{ isActive: active }
|
|
79
|
+
);
|
|
80
|
+
return null;
|
|
81
|
+
}
|
|
82
|
+
export {
|
|
83
|
+
MouseInputRouter
|
|
84
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type React from "react";
|
|
2
|
+
import type { ShellTheme } from "../theme.js";
|
|
3
|
+
import type { NotificationView } from "../types.js";
|
|
4
|
+
/**
|
|
5
|
+
* D.13Q-UX — NotificationStack
|
|
6
|
+
*
|
|
7
|
+
* CCB Notifications.tsx 范式:右对齐栈,单时刻只显示 1 条主消息(priority +
|
|
8
|
+
* 队列)。轻提示**绝不进 transcript**;用于 cache-low / freshness / shortcut /
|
|
9
|
+
* setup-hint 等短暂状态。
|
|
10
|
+
*
|
|
11
|
+
* 不引入 ink 计时器:消息超时由 view-model 在下一次 createShellViewModel 时
|
|
12
|
+
* 移除 notification(保持渲染纯函数)。本组件只负责显示当前队列里 priority
|
|
13
|
+
* 最高的一条;priority 排序:immediate > medium > low。
|
|
14
|
+
*/
|
|
15
|
+
export declare function NotificationStack({ notifications, theme, }: {
|
|
16
|
+
notifications: NotificationView[] | undefined;
|
|
17
|
+
theme: ShellTheme;
|
|
18
|
+
}): React.ReactNode;
|
|
19
|
+
//# sourceMappingURL=NotificationStack.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NotificationStack.d.ts","sourceRoot":"","sources":["../../../src/shell/components/NotificationStack.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAEpD;;;;;;;;;;GAUG;AAEH,wBAAgB,iBAAiB,CAAC,EAChC,aAAa,EACb,KAAK,GACN,EAAE;IACD,aAAa,EAAE,gBAAgB,EAAE,GAAG,SAAS,CAAC;IAC9C,KAAK,EAAE,UAAU,CAAC;CACnB,GAAG,KAAK,CAAC,SAAS,CAYlB"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OutputLine component for displaying tool output
|
|
3
|
+
* Based on CCB's OutputLine behavior
|
|
4
|
+
*/
|
|
5
|
+
import React from "react";
|
|
6
|
+
import type { ShellTheme } from "../theme.js";
|
|
7
|
+
type OutputLineProps = {
|
|
8
|
+
content: string;
|
|
9
|
+
verbose: boolean;
|
|
10
|
+
isError?: boolean;
|
|
11
|
+
isWarning?: boolean;
|
|
12
|
+
linkifyUrls?: boolean;
|
|
13
|
+
theme: ShellTheme;
|
|
14
|
+
terminalWidth: number;
|
|
15
|
+
language?: "zh-CN" | "en-US";
|
|
16
|
+
};
|
|
17
|
+
export declare function OutputLine({ content, verbose, isError, isWarning, linkifyUrls, theme, terminalWidth, language, }: OutputLineProps): React.ReactNode;
|
|
18
|
+
export {};
|
|
19
|
+
//# sourceMappingURL=OutputLine.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OutputLine.d.ts","sourceRoot":"","sources":["../../../src/shell/components/OutputLine.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,KAAkB,MAAM,OAAO,CAAC;AAGvC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAE9C,KAAK,eAAe,GAAG;IACrB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,KAAK,EAAE,UAAU,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;CAC9B,CAAC;AAEF,wBAAgB,UAAU,CAAC,EACzB,OAAO,EACP,OAAO,EACP,OAAO,EACP,SAAS,EACT,WAAkB,EAClB,KAAK,EACL,aAAa,EACb,QAAkB,GACnB,EAAE,eAAe,GAAG,KAAK,CAAC,SAAS,CA6BnC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import {
|
|
2
|
+
renderTruncatedContent,
|
|
3
|
+
tryJsonFormatContent
|
|
4
|
+
} from "../../chunk-4I2NWBOM.js";
|
|
5
|
+
import {
|
|
6
|
+
linkifyUrlsInText
|
|
7
|
+
} from "../../chunk-S3YWTBXL.js";
|
|
8
|
+
|
|
9
|
+
// src/shell/components/OutputLine.tsx
|
|
10
|
+
import { Box, Text } from "@linghun/ink-runtime";
|
|
11
|
+
import { useMemo } from "react";
|
|
12
|
+
import { jsx } from "react/jsx-runtime";
|
|
13
|
+
function OutputLine({
|
|
14
|
+
content,
|
|
15
|
+
verbose,
|
|
16
|
+
isError,
|
|
17
|
+
isWarning,
|
|
18
|
+
linkifyUrls = true,
|
|
19
|
+
theme,
|
|
20
|
+
terminalWidth,
|
|
21
|
+
language = "zh-CN"
|
|
22
|
+
}) {
|
|
23
|
+
const formattedContent = useMemo(() => {
|
|
24
|
+
let formatted = tryJsonFormatContent(content);
|
|
25
|
+
if (linkifyUrls) {
|
|
26
|
+
formatted = linkifyUrlsInText(formatted);
|
|
27
|
+
}
|
|
28
|
+
if (!verbose) {
|
|
29
|
+
formatted = renderTruncatedContent(formatted, terminalWidth, language);
|
|
30
|
+
}
|
|
31
|
+
return formatted;
|
|
32
|
+
}, [content, verbose, linkifyUrls, terminalWidth, language]);
|
|
33
|
+
const color = isError ? theme.error : isWarning ? theme.warning : void 0;
|
|
34
|
+
return /* @__PURE__ */ jsx(Box, { paddingLeft: 2, children: /* @__PURE__ */ jsx(Text, { color, children: formattedContent }) });
|
|
35
|
+
}
|
|
36
|
+
export {
|
|
37
|
+
OutputLine
|
|
38
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type React from "react";
|
|
2
|
+
import { type ShellTheme } from "../theme.js";
|
|
3
|
+
import type { ProductBlockViewModel } from "../types.js";
|
|
4
|
+
export declare function ProductBlock({ block, theme, width, language, }: {
|
|
5
|
+
block: ProductBlockViewModel;
|
|
6
|
+
theme: ShellTheme;
|
|
7
|
+
width: number;
|
|
8
|
+
language?: "zh-CN" | "en-US";
|
|
9
|
+
}): React.ReactNode;
|
|
10
|
+
//# sourceMappingURL=ProductBlock.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProductBlock.d.ts","sourceRoot":"","sources":["../../../src/shell/components/ProductBlock.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,KAAK,UAAU,EAAmB,MAAM,aAAa,CAAC;AAC/D,OAAO,KAAK,EAAoB,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAgE3E,wBAAgB,YAAY,CAAC,EAC3B,KAAK,EACL,KAAK,EACL,KAAK,EACL,QAAkB,GACnB,EAAE;IACD,KAAK,EAAE,qBAAqB,CAAC;IAC7B,KAAK,EAAE,UAAU,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;CAC9B,GAAG,KAAK,CAAC,SAAS,CAiPlB"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ProductBlock
|
|
3
|
+
} from "../../chunk-M4AIK2SP.js";
|
|
4
|
+
import "../../chunk-L5GOCMZP.js";
|
|
5
|
+
import "../../chunk-MOJL4X4L.js";
|
|
6
|
+
import "../../chunk-DTK5NBTV.js";
|
|
7
|
+
import "../../chunk-F43AMWLZ.js";
|
|
8
|
+
import "../../chunk-GC55DMZV.js";
|
|
9
|
+
import "../../chunk-APJIC2O5.js";
|
|
10
|
+
export {
|
|
11
|
+
ProductBlock
|
|
12
|
+
};
|