@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,136 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__testSendMessage,
|
|
3
|
+
buildModelMessagesWithRecentContext,
|
|
4
|
+
clearRequestActivity,
|
|
5
|
+
continueModelAfterToolResults,
|
|
6
|
+
createToolBatchFailFastSkippedResult,
|
|
7
|
+
evaluateAggregatedFinalAnswerGate,
|
|
8
|
+
handleNaturalInput,
|
|
9
|
+
handleRemoteInboundMessage,
|
|
10
|
+
isToolBatchFailure,
|
|
11
|
+
sendMessage,
|
|
12
|
+
shouldRetryHighReasoningToolsEmptyResponse,
|
|
13
|
+
startRequestActivity
|
|
14
|
+
} from "./chunk-4WHZ6JKD.js";
|
|
15
|
+
import "./chunk-SJOS5PM6.js";
|
|
16
|
+
import "./chunk-IN42UISW.js";
|
|
17
|
+
import "./chunk-GC55DMZV.js";
|
|
18
|
+
import "./chunk-DICVLZHH.js";
|
|
19
|
+
import "./chunk-3XNUDLOM.js";
|
|
20
|
+
import "./chunk-ZYSN7AWW.js";
|
|
21
|
+
import "./chunk-RM5QMOFY.js";
|
|
22
|
+
import "./chunk-WKMBK5UP.js";
|
|
23
|
+
import "./chunk-66BNE332.js";
|
|
24
|
+
import "./chunk-UT5BOJKU.js";
|
|
25
|
+
import "./chunk-RM5JDRCW.js";
|
|
26
|
+
import "./chunk-QTDGRZMZ.js";
|
|
27
|
+
import "./chunk-GMUCSNUD.js";
|
|
28
|
+
import "./chunk-VTQL23UM.js";
|
|
29
|
+
import "./chunk-DNQN74CC.js";
|
|
30
|
+
import "./chunk-KQJHVJZB.js";
|
|
31
|
+
import "./chunk-D7TCSOAZ.js";
|
|
32
|
+
import "./chunk-NMNOAFFT.js";
|
|
33
|
+
import "./chunk-JQCRCDOC.js";
|
|
34
|
+
import "./chunk-W6NU7ZAV.js";
|
|
35
|
+
import "./chunk-OF3K3CU5.js";
|
|
36
|
+
import "./chunk-SRZIA6B4.js";
|
|
37
|
+
import "./chunk-OEYW3JE3.js";
|
|
38
|
+
import "./chunk-CRW3636S.js";
|
|
39
|
+
import "./chunk-W3KHJNSH.js";
|
|
40
|
+
import "./chunk-P277M7Z5.js";
|
|
41
|
+
import "./chunk-GKZYTPN2.js";
|
|
42
|
+
import "./chunk-GTP2KPLY.js";
|
|
43
|
+
import "./chunk-7ZE5JFAZ.js";
|
|
44
|
+
import "./chunk-FTAEPAVY.js";
|
|
45
|
+
import "./chunk-2FVEKTKN.js";
|
|
46
|
+
import "./chunk-X7A22JHP.js";
|
|
47
|
+
import "./chunk-WJWYRBWH.js";
|
|
48
|
+
import "./chunk-CFXB5SE5.js";
|
|
49
|
+
import "./chunk-WHFDDZHY.js";
|
|
50
|
+
import "./chunk-WVAQYKGL.js";
|
|
51
|
+
import "./chunk-QIU3FJPC.js";
|
|
52
|
+
import "./chunk-LDABZV5V.js";
|
|
53
|
+
import "./chunk-JO5ANTMR.js";
|
|
54
|
+
import "./chunk-WQMSRO4D.js";
|
|
55
|
+
import "./chunk-V7GDHHBL.js";
|
|
56
|
+
import "./chunk-GCMH5P4W.js";
|
|
57
|
+
import "./chunk-THZBFYAH.js";
|
|
58
|
+
import "./chunk-ECFLCY5V.js";
|
|
59
|
+
import "./chunk-DDXS2RDZ.js";
|
|
60
|
+
import "./chunk-4K6UB524.js";
|
|
61
|
+
import "./chunk-PBIPV4LD.js";
|
|
62
|
+
import "./chunk-ZZ2CNCXJ.js";
|
|
63
|
+
import "./chunk-TYF4GJR3.js";
|
|
64
|
+
import "./chunk-B4GQTZMT.js";
|
|
65
|
+
import "./chunk-L4XXW6Y5.js";
|
|
66
|
+
import "./chunk-CRSLDQOA.js";
|
|
67
|
+
import "./chunk-VIBENDE3.js";
|
|
68
|
+
import "./chunk-LVIM2PA7.js";
|
|
69
|
+
import "./chunk-RVY34HK4.js";
|
|
70
|
+
import "./chunk-JHGWGH2C.js";
|
|
71
|
+
import "./chunk-E72U7WW7.js";
|
|
72
|
+
import "./chunk-AKPXMCVF.js";
|
|
73
|
+
import "./chunk-NKFKOEYX.js";
|
|
74
|
+
import "./chunk-3AKXDMVS.js";
|
|
75
|
+
import "./chunk-H3T4EF5F.js";
|
|
76
|
+
import "./chunk-NSIKYD3X.js";
|
|
77
|
+
import "./chunk-FRIMDSRU.js";
|
|
78
|
+
import "./chunk-RBOQJFIZ.js";
|
|
79
|
+
import "./chunk-KI7C6ZOD.js";
|
|
80
|
+
import "./chunk-3GCIXKCI.js";
|
|
81
|
+
import "./chunk-J7ZE2JKP.js";
|
|
82
|
+
import "./chunk-BOV4K7FP.js";
|
|
83
|
+
import "./chunk-KTWV5JC5.js";
|
|
84
|
+
import "./chunk-PGNALDEH.js";
|
|
85
|
+
import "./chunk-UDQT5CWK.js";
|
|
86
|
+
import "./chunk-6SMM5CMP.js";
|
|
87
|
+
import "./chunk-I3NTAIMF.js";
|
|
88
|
+
import "./chunk-64MJP6FK.js";
|
|
89
|
+
import "./chunk-O7S3HYE6.js";
|
|
90
|
+
import "./chunk-RDGM4RUE.js";
|
|
91
|
+
import "./chunk-IWUIOLMF.js";
|
|
92
|
+
import "./chunk-MLUIOBKL.js";
|
|
93
|
+
import "./chunk-LQTVYUT3.js";
|
|
94
|
+
import "./chunk-K56D3X7S.js";
|
|
95
|
+
import "./chunk-BFVPLGAC.js";
|
|
96
|
+
import "./chunk-6USL33ZO.js";
|
|
97
|
+
import "./chunk-4EIC5BCT.js";
|
|
98
|
+
import "./chunk-AO4CXI37.js";
|
|
99
|
+
import "./chunk-GDQQNPBP.js";
|
|
100
|
+
import "./chunk-RMLTVKOY.js";
|
|
101
|
+
import "./chunk-UT2TYK2A.js";
|
|
102
|
+
import "./chunk-QLRTQHTR.js";
|
|
103
|
+
import "./chunk-ZJK25VFP.js";
|
|
104
|
+
import "./chunk-5H7RRF7C.js";
|
|
105
|
+
import "./chunk-4EP3TUFF.js";
|
|
106
|
+
import "./chunk-EORRZP3F.js";
|
|
107
|
+
import "./chunk-QBCGAIU7.js";
|
|
108
|
+
import "./chunk-K4FSYBSY.js";
|
|
109
|
+
import "./chunk-3LT6OWQ2.js";
|
|
110
|
+
import "./chunk-2YL5VKJ5.js";
|
|
111
|
+
import "./chunk-EBACIBJP.js";
|
|
112
|
+
import "./chunk-OZMX3E35.js";
|
|
113
|
+
import "./chunk-URNQUECO.js";
|
|
114
|
+
import "./chunk-WV6YJGZR.js";
|
|
115
|
+
import "./chunk-4T5DJW54.js";
|
|
116
|
+
import "./chunk-SYBNJZEL.js";
|
|
117
|
+
import "./chunk-OMZYPQVA.js";
|
|
118
|
+
import "./chunk-APJIC2O5.js";
|
|
119
|
+
import "./chunk-HQIJGQYU.js";
|
|
120
|
+
import "./chunk-HAEU6OTS.js";
|
|
121
|
+
import "./chunk-MVONSJEN.js";
|
|
122
|
+
import "./chunk-LHHKPGLX.js";
|
|
123
|
+
export {
|
|
124
|
+
__testSendMessage,
|
|
125
|
+
buildModelMessagesWithRecentContext,
|
|
126
|
+
clearRequestActivity,
|
|
127
|
+
continueModelAfterToolResults,
|
|
128
|
+
createToolBatchFailFastSkippedResult,
|
|
129
|
+
evaluateAggregatedFinalAnswerGate,
|
|
130
|
+
handleNaturalInput,
|
|
131
|
+
handleRemoteInboundMessage,
|
|
132
|
+
isToolBatchFailure,
|
|
133
|
+
sendMessage,
|
|
134
|
+
shouldRetryHighReasoningToolsEmptyResponse,
|
|
135
|
+
startRequestActivity
|
|
136
|
+
};
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import type { Writable } from "node:stream";
|
|
2
|
+
import type { ModelToolCall } from "@linghun/providers";
|
|
3
|
+
import { type Language } from "@linghun/shared";
|
|
4
|
+
import { type ToolName, type ToolOutput } from "@linghun/tools";
|
|
5
|
+
import type { BoundaryEditPreflightResult } from "./architecture-boundary.js";
|
|
6
|
+
import { type ReportWriteGuard } from "./permission-continuation-runtime.js";
|
|
7
|
+
import type { PendingModelContinuation, TuiContext } from "./tui-context-runtime.js";
|
|
8
|
+
import type { AgentRun, AgentType, CheckpointState, PlanProposal } from "./tui-data-types.js";
|
|
9
|
+
export declare function formatAgentRunToolResultData(agent: AgentRun | undefined): {
|
|
10
|
+
status: string;
|
|
11
|
+
agentId?: undefined;
|
|
12
|
+
lastTerminalStatus?: undefined;
|
|
13
|
+
transcriptSessionId?: undefined;
|
|
14
|
+
summary?: undefined;
|
|
15
|
+
recentResult?: undefined;
|
|
16
|
+
resultFullReport?: undefined;
|
|
17
|
+
} | {
|
|
18
|
+
agentId: string;
|
|
19
|
+
status: "blocked" | "stale" | "failed" | "completed" | "running" | "cancelled" | "idle";
|
|
20
|
+
lastTerminalStatus: "blocked" | "failed" | "completed" | null;
|
|
21
|
+
transcriptSessionId: string;
|
|
22
|
+
summary: string;
|
|
23
|
+
recentResult: string;
|
|
24
|
+
resultFullReport: string | null;
|
|
25
|
+
};
|
|
26
|
+
export declare function executeModelToolUse(toolCall: ModelToolCall, context: TuiContext, sessionId: string, output: Writable, continuation?: PendingModelContinuation, architectureDriftConfirmed?: boolean): Promise<{
|
|
27
|
+
ok: boolean;
|
|
28
|
+
tool: string;
|
|
29
|
+
text: string;
|
|
30
|
+
data?: unknown;
|
|
31
|
+
evidenceId?: string;
|
|
32
|
+
pendingApproval?: boolean;
|
|
33
|
+
}>;
|
|
34
|
+
export declare function formatBoundaryEditPreflightPrompt(preflight: BoundaryEditPreflightResult & {
|
|
35
|
+
decision: "confirm";
|
|
36
|
+
}, language: Language): string;
|
|
37
|
+
export declare function executeApprovedModelToolUse(toolCall: ModelToolCall, toolName: ToolName, context: TuiContext, sessionId: string, output: Writable, preflight?: string, reportWriteGuard?: ReportWriteGuard): Promise<{
|
|
38
|
+
ok: boolean;
|
|
39
|
+
tool: string;
|
|
40
|
+
text: string;
|
|
41
|
+
data?: unknown;
|
|
42
|
+
evidenceId?: string;
|
|
43
|
+
}>;
|
|
44
|
+
export declare function executeDeferredDispatchToolUse(toolCall: ModelToolCall, context: TuiContext, sessionId: string, output: Writable): Promise<{
|
|
45
|
+
ok: boolean;
|
|
46
|
+
tool: string;
|
|
47
|
+
text: string;
|
|
48
|
+
data?: unknown;
|
|
49
|
+
evidenceId?: string;
|
|
50
|
+
}>;
|
|
51
|
+
export declare function executeLinghunControlToolUse(toolCall: ModelToolCall, context: TuiContext, sessionId: string, output: Writable, continuation?: PendingModelContinuation): Promise<{
|
|
52
|
+
ok: boolean;
|
|
53
|
+
tool: string;
|
|
54
|
+
text: string;
|
|
55
|
+
data?: unknown;
|
|
56
|
+
evidenceId?: string;
|
|
57
|
+
pendingApproval?: boolean;
|
|
58
|
+
}>;
|
|
59
|
+
declare function selectWorkflowCurrentStepForToolResult(run: TuiContext["workflows"]["activeRun"] | undefined): NonNullable<TuiContext["workflows"]["activeRun"]>["steps"][number] | undefined;
|
|
60
|
+
export declare const __testSelectWorkflowCurrentStepForToolResult: typeof selectWorkflowCurrentStepForToolResult;
|
|
61
|
+
declare function parseStartAgentToolInput(input: unknown, context: TuiContext): {
|
|
62
|
+
ok: true;
|
|
63
|
+
role: AgentType;
|
|
64
|
+
task: string;
|
|
65
|
+
name?: string;
|
|
66
|
+
teamName?: string;
|
|
67
|
+
runInBackground: boolean;
|
|
68
|
+
cwd?: string;
|
|
69
|
+
isolation?: "worktree";
|
|
70
|
+
registryAgentId?: string;
|
|
71
|
+
} | {
|
|
72
|
+
ok: false;
|
|
73
|
+
text: string;
|
|
74
|
+
};
|
|
75
|
+
export declare function __testFormatStartAgentDidNotStartMessage(input: Extract<ReturnType<typeof parseStartAgentToolInput>, {
|
|
76
|
+
ok: true;
|
|
77
|
+
}>, context: TuiContext): string;
|
|
78
|
+
declare function parseRunWorkflowToolInput(input: unknown): {
|
|
79
|
+
ok: true;
|
|
80
|
+
goal?: string;
|
|
81
|
+
workflowId?: string;
|
|
82
|
+
inputs?: Record<string, unknown>;
|
|
83
|
+
runInBackground: boolean;
|
|
84
|
+
agents?: number;
|
|
85
|
+
multiAgent: boolean;
|
|
86
|
+
runningCap?: number;
|
|
87
|
+
teamName?: string;
|
|
88
|
+
} | {
|
|
89
|
+
ok: false;
|
|
90
|
+
text: string;
|
|
91
|
+
};
|
|
92
|
+
export declare function __testParseRunWorkflowToolInput(input: unknown): ReturnType<typeof parseRunWorkflowToolInput>;
|
|
93
|
+
export declare function executeIndexToolUse(toolCall: ModelToolCall, context: TuiContext, sessionId: string, output: Writable, continuation?: PendingModelContinuation, forcedAction?: "init fast", resultToolName?: string, appendToolStart?: boolean): Promise<{
|
|
94
|
+
ok: boolean;
|
|
95
|
+
tool: string;
|
|
96
|
+
text: string;
|
|
97
|
+
data?: unknown;
|
|
98
|
+
evidenceId?: string;
|
|
99
|
+
pendingApproval?: boolean;
|
|
100
|
+
}>;
|
|
101
|
+
export declare function executeApprovedIndexToolUse(toolCall: ModelToolCall, action: "init fast" | "refresh" | "repair", force: boolean | undefined, context: TuiContext, sessionId: string, output: Writable): Promise<{
|
|
102
|
+
ok: boolean;
|
|
103
|
+
tool: string;
|
|
104
|
+
text: string;
|
|
105
|
+
data?: unknown;
|
|
106
|
+
evidenceId?: string;
|
|
107
|
+
}>;
|
|
108
|
+
export declare function rememberToolFiles(context: TuiContext, name: ToolName, input: unknown, output: ToolOutput): void;
|
|
109
|
+
export declare function recordReportIncompleteEvidence(context: TuiContext, sessionId: string, guard: ReportWriteGuard): Promise<string>;
|
|
110
|
+
export declare function handleToolCommand(name: ToolName, args: string[], context: TuiContext, output: Writable): Promise<void>;
|
|
111
|
+
export declare function formatPlanProposal(proposal: PlanProposal): string;
|
|
112
|
+
export declare function maybeCreateCheckpoint(name: ToolName, input: unknown, context: TuiContext, sessionId: string): Promise<CheckpointState | null>;
|
|
113
|
+
export {};
|
|
114
|
+
//# sourceMappingURL=model-tool-runtime.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"model-tool-runtime.d.ts","sourceRoot":"","sources":["../src/model-tool-runtime.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,KAAK,EAAgB,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACtE,OAAO,EAAE,KAAK,QAAQ,EAAuB,MAAM,iBAAiB,CAAC;AACrE,OAAO,EACL,KAAK,QAAQ,EACb,KAAK,UAAU,EAIhB,MAAM,gBAAgB,CAAC;AAExB,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,4BAA4B,CAAC;AAsF9E,OAAO,EACL,KAAK,gBAAgB,EAqBtB,MAAM,sCAAsC,CAAC;AAiD9C,OAAO,KAAK,EAAE,wBAAwB,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAGrF,OAAO,KAAK,EACV,QAAQ,EACR,SAAS,EAET,eAAe,EAEf,YAAY,EAGb,MAAM,qBAAqB,CAAC;AAiD7B,wBAAgB,4BAA4B,CAAC,KAAK,EAAE,QAAQ,GAAG,SAAS;;;;;;;;;;;;;;;;EAavE;AAED,wBAAsB,mBAAmB,CACvC,QAAQ,EAAE,aAAa,EACvB,OAAO,EAAE,UAAU,EACnB,SA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B,MAAM,EAAE,QAAQ,GACf,OAAO,CAAC;IACT,EAAE,EAAE,OAAO,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC,CA4HD;AAED,wBAAgB,iBAAiB,CAC/B,OAAO,EAAE,UAAU,EACnB,IAAI,EAAE,QAAQ,EACd,KAAK,EAAE,OAAO,EACd,MAAM,EAAE,UAAU,GACjB,IAAI,CAkBN;AAuCD,wBAAsB,8BAA8B,CAClD,OAAO,EAAE,UAAU,EACnB,SAAS,EAAE,MAAM,EACjB,KAAK,EAAE,gBAAgB,GACtB,OAAO,CAAC,MAAM,CAAC,CA8BjB;AA2DD,wBAAsB,iBAAiB,CACrC,IAAI,EAAE,QAAQ,EACd,IAAI,EAAE,MAAM,EAAE,EACd,OAAO,EAAE,UAAU,EACnB,MAAM,EAAE,QAAQ,GACf,OAAO,CAAC,IAAI,CAAC,CAkJf;AAiED,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,YAAY,GAAG,MAAM,CAQjE;AAED,wBAAsB,qBAAqB,CACzC,IAAI,EAAE,QAAQ,EACd,KAAK,EAAE,OAAO,EACd,OAAO,EAAE,UAAU,EACnB,SAAS,EAAE,MAAM,GAChB,OAAO,CAAC,eAAe,GAAG,IAAI,CAAC,CA4CjC"}
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__testFormatStartAgentDidNotStartMessage,
|
|
3
|
+
__testParseRunWorkflowToolInput,
|
|
4
|
+
__testSelectWorkflowCurrentStepForToolResult,
|
|
5
|
+
executeApprovedIndexToolUse,
|
|
6
|
+
executeApprovedModelToolUse,
|
|
7
|
+
executeDeferredDispatchToolUse,
|
|
8
|
+
executeIndexToolUse,
|
|
9
|
+
executeLinghunControlToolUse,
|
|
10
|
+
executeModelToolUse,
|
|
11
|
+
formatAgentRunToolResultData,
|
|
12
|
+
formatBoundaryEditPreflightPrompt,
|
|
13
|
+
formatPlanProposal,
|
|
14
|
+
handleToolCommand,
|
|
15
|
+
maybeCreateCheckpoint,
|
|
16
|
+
recordReportIncompleteEvidence,
|
|
17
|
+
rememberToolFiles
|
|
18
|
+
} from "./chunk-4WHZ6JKD.js";
|
|
19
|
+
import "./chunk-SJOS5PM6.js";
|
|
20
|
+
import "./chunk-IN42UISW.js";
|
|
21
|
+
import "./chunk-GC55DMZV.js";
|
|
22
|
+
import "./chunk-DICVLZHH.js";
|
|
23
|
+
import "./chunk-3XNUDLOM.js";
|
|
24
|
+
import "./chunk-ZYSN7AWW.js";
|
|
25
|
+
import "./chunk-RM5QMOFY.js";
|
|
26
|
+
import "./chunk-WKMBK5UP.js";
|
|
27
|
+
import "./chunk-66BNE332.js";
|
|
28
|
+
import "./chunk-UT5BOJKU.js";
|
|
29
|
+
import "./chunk-RM5JDRCW.js";
|
|
30
|
+
import "./chunk-QTDGRZMZ.js";
|
|
31
|
+
import "./chunk-GMUCSNUD.js";
|
|
32
|
+
import "./chunk-VTQL23UM.js";
|
|
33
|
+
import "./chunk-DNQN74CC.js";
|
|
34
|
+
import "./chunk-KQJHVJZB.js";
|
|
35
|
+
import "./chunk-D7TCSOAZ.js";
|
|
36
|
+
import "./chunk-NMNOAFFT.js";
|
|
37
|
+
import "./chunk-JQCRCDOC.js";
|
|
38
|
+
import "./chunk-W6NU7ZAV.js";
|
|
39
|
+
import "./chunk-OF3K3CU5.js";
|
|
40
|
+
import "./chunk-SRZIA6B4.js";
|
|
41
|
+
import "./chunk-OEYW3JE3.js";
|
|
42
|
+
import "./chunk-CRW3636S.js";
|
|
43
|
+
import "./chunk-W3KHJNSH.js";
|
|
44
|
+
import "./chunk-P277M7Z5.js";
|
|
45
|
+
import "./chunk-GKZYTPN2.js";
|
|
46
|
+
import "./chunk-GTP2KPLY.js";
|
|
47
|
+
import "./chunk-7ZE5JFAZ.js";
|
|
48
|
+
import "./chunk-FTAEPAVY.js";
|
|
49
|
+
import "./chunk-2FVEKTKN.js";
|
|
50
|
+
import "./chunk-X7A22JHP.js";
|
|
51
|
+
import "./chunk-WJWYRBWH.js";
|
|
52
|
+
import "./chunk-CFXB5SE5.js";
|
|
53
|
+
import "./chunk-WHFDDZHY.js";
|
|
54
|
+
import "./chunk-WVAQYKGL.js";
|
|
55
|
+
import "./chunk-QIU3FJPC.js";
|
|
56
|
+
import "./chunk-LDABZV5V.js";
|
|
57
|
+
import "./chunk-JO5ANTMR.js";
|
|
58
|
+
import "./chunk-WQMSRO4D.js";
|
|
59
|
+
import "./chunk-V7GDHHBL.js";
|
|
60
|
+
import "./chunk-GCMH5P4W.js";
|
|
61
|
+
import "./chunk-THZBFYAH.js";
|
|
62
|
+
import "./chunk-ECFLCY5V.js";
|
|
63
|
+
import "./chunk-DDXS2RDZ.js";
|
|
64
|
+
import "./chunk-4K6UB524.js";
|
|
65
|
+
import "./chunk-PBIPV4LD.js";
|
|
66
|
+
import "./chunk-ZZ2CNCXJ.js";
|
|
67
|
+
import "./chunk-TYF4GJR3.js";
|
|
68
|
+
import "./chunk-B4GQTZMT.js";
|
|
69
|
+
import "./chunk-L4XXW6Y5.js";
|
|
70
|
+
import "./chunk-CRSLDQOA.js";
|
|
71
|
+
import "./chunk-VIBENDE3.js";
|
|
72
|
+
import "./chunk-LVIM2PA7.js";
|
|
73
|
+
import "./chunk-RVY34HK4.js";
|
|
74
|
+
import "./chunk-JHGWGH2C.js";
|
|
75
|
+
import "./chunk-E72U7WW7.js";
|
|
76
|
+
import "./chunk-AKPXMCVF.js";
|
|
77
|
+
import "./chunk-NKFKOEYX.js";
|
|
78
|
+
import "./chunk-3AKXDMVS.js";
|
|
79
|
+
import "./chunk-H3T4EF5F.js";
|
|
80
|
+
import "./chunk-NSIKYD3X.js";
|
|
81
|
+
import "./chunk-FRIMDSRU.js";
|
|
82
|
+
import "./chunk-RBOQJFIZ.js";
|
|
83
|
+
import "./chunk-KI7C6ZOD.js";
|
|
84
|
+
import "./chunk-3GCIXKCI.js";
|
|
85
|
+
import "./chunk-J7ZE2JKP.js";
|
|
86
|
+
import "./chunk-BOV4K7FP.js";
|
|
87
|
+
import "./chunk-KTWV5JC5.js";
|
|
88
|
+
import "./chunk-PGNALDEH.js";
|
|
89
|
+
import "./chunk-UDQT5CWK.js";
|
|
90
|
+
import "./chunk-6SMM5CMP.js";
|
|
91
|
+
import "./chunk-I3NTAIMF.js";
|
|
92
|
+
import "./chunk-64MJP6FK.js";
|
|
93
|
+
import "./chunk-O7S3HYE6.js";
|
|
94
|
+
import "./chunk-RDGM4RUE.js";
|
|
95
|
+
import "./chunk-IWUIOLMF.js";
|
|
96
|
+
import "./chunk-MLUIOBKL.js";
|
|
97
|
+
import "./chunk-LQTVYUT3.js";
|
|
98
|
+
import "./chunk-K56D3X7S.js";
|
|
99
|
+
import "./chunk-BFVPLGAC.js";
|
|
100
|
+
import "./chunk-6USL33ZO.js";
|
|
101
|
+
import "./chunk-4EIC5BCT.js";
|
|
102
|
+
import "./chunk-AO4CXI37.js";
|
|
103
|
+
import "./chunk-GDQQNPBP.js";
|
|
104
|
+
import "./chunk-RMLTVKOY.js";
|
|
105
|
+
import "./chunk-UT2TYK2A.js";
|
|
106
|
+
import "./chunk-QLRTQHTR.js";
|
|
107
|
+
import "./chunk-ZJK25VFP.js";
|
|
108
|
+
import "./chunk-5H7RRF7C.js";
|
|
109
|
+
import "./chunk-4EP3TUFF.js";
|
|
110
|
+
import "./chunk-EORRZP3F.js";
|
|
111
|
+
import "./chunk-QBCGAIU7.js";
|
|
112
|
+
import "./chunk-K4FSYBSY.js";
|
|
113
|
+
import "./chunk-3LT6OWQ2.js";
|
|
114
|
+
import "./chunk-2YL5VKJ5.js";
|
|
115
|
+
import "./chunk-EBACIBJP.js";
|
|
116
|
+
import "./chunk-OZMX3E35.js";
|
|
117
|
+
import "./chunk-URNQUECO.js";
|
|
118
|
+
import "./chunk-WV6YJGZR.js";
|
|
119
|
+
import "./chunk-4T5DJW54.js";
|
|
120
|
+
import "./chunk-SYBNJZEL.js";
|
|
121
|
+
import "./chunk-OMZYPQVA.js";
|
|
122
|
+
import "./chunk-APJIC2O5.js";
|
|
123
|
+
import "./chunk-HQIJGQYU.js";
|
|
124
|
+
import "./chunk-HAEU6OTS.js";
|
|
125
|
+
import "./chunk-MVONSJEN.js";
|
|
126
|
+
import "./chunk-LHHKPGLX.js";
|
|
127
|
+
export {
|
|
128
|
+
__testFormatStartAgentDidNotStartMessage,
|
|
129
|
+
__testParseRunWorkflowToolInput,
|
|
130
|
+
__testSelectWorkflowCurrentStepForToolResult,
|
|
131
|
+
executeApprovedIndexToolUse,
|
|
132
|
+
executeApprovedModelToolUse,
|
|
133
|
+
executeDeferredDispatchToolUse,
|
|
134
|
+
executeIndexToolUse,
|
|
135
|
+
executeLinghunControlToolUse,
|
|
136
|
+
executeModelToolUse,
|
|
137
|
+
formatAgentRunToolResultData,
|
|
138
|
+
formatBoundaryEditPreflightPrompt,
|
|
139
|
+
formatPlanProposal,
|
|
140
|
+
handleToolCommand,
|
|
141
|
+
maybeCreateCheckpoint,
|
|
142
|
+
recordReportIncompleteEvidence,
|
|
143
|
+
rememberToolFiles
|
|
144
|
+
};
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
import type { Language, PermissionMode } from "@linghun/shared";
|
|
2
|
+
export type CommandRisk = "readonly" | "start_gate" | "config_write" | "tool_permission" | "dangerous";
|
|
3
|
+
export type CommandGroup = "core" | "edit" | "index-mcp" | "memory-rules" | "agents-jobs" | "diagnostics" | "exit";
|
|
4
|
+
export type RuntimeStatusSubject = "current_work" | "background" | "job" | "workflow" | "agent";
|
|
5
|
+
export type RuntimeIntent = {
|
|
6
|
+
kind: "runtime_status_query";
|
|
7
|
+
subject: RuntimeStatusSubject;
|
|
8
|
+
} | {
|
|
9
|
+
kind: "none";
|
|
10
|
+
};
|
|
11
|
+
export type CommandCapability = {
|
|
12
|
+
id: string;
|
|
13
|
+
slash: string;
|
|
14
|
+
aliases: string[];
|
|
15
|
+
group: CommandGroup;
|
|
16
|
+
titleZh: string;
|
|
17
|
+
titleEn: string;
|
|
18
|
+
descriptionZh: string;
|
|
19
|
+
descriptionEn: string;
|
|
20
|
+
whenToUseZh: string;
|
|
21
|
+
whenToUseEn: string;
|
|
22
|
+
risk: CommandRisk;
|
|
23
|
+
readonly: boolean;
|
|
24
|
+
modelInvocable: boolean;
|
|
25
|
+
userInvocable: boolean;
|
|
26
|
+
requiresStartGate: boolean;
|
|
27
|
+
writesConfig: boolean;
|
|
28
|
+
entersPermissionPipeline: boolean;
|
|
29
|
+
bridgeSafe: boolean;
|
|
30
|
+
hiddenReason?: string;
|
|
31
|
+
runtimeStatusSubject?: RuntimeStatusSubject;
|
|
32
|
+
};
|
|
33
|
+
export type NaturalIntentAction = "answer" | "execute_readonly" | "safe_local_action" | "start_gate" | "permission_pipeline" | "ask_clarify" | "model";
|
|
34
|
+
export type NaturalIntent = {
|
|
35
|
+
action: NaturalIntentAction;
|
|
36
|
+
capability?: CommandCapability;
|
|
37
|
+
confidence: number;
|
|
38
|
+
command?: string;
|
|
39
|
+
reason: string;
|
|
40
|
+
candidates: CommandCapability[];
|
|
41
|
+
language: Language;
|
|
42
|
+
inquiry: "status" | "doctor" | "read" | "usage" | "risk" | "howto" | "execute";
|
|
43
|
+
runtimeIntent?: RuntimeIntent;
|
|
44
|
+
riskHandler: CommandRisk | "safe_local_action" | "model" | "clarify";
|
|
45
|
+
};
|
|
46
|
+
export type RuntimeStatusForModel = {
|
|
47
|
+
memory: {
|
|
48
|
+
linghunMd: "found" | "missing" | "unreadable";
|
|
49
|
+
candidates: number;
|
|
50
|
+
accepted: number;
|
|
51
|
+
autoAccept: boolean;
|
|
52
|
+
};
|
|
53
|
+
index: {
|
|
54
|
+
status: string;
|
|
55
|
+
projectName: string | null;
|
|
56
|
+
changedFiles: number | null;
|
|
57
|
+
};
|
|
58
|
+
cache: {
|
|
59
|
+
latestHitRate: number | null;
|
|
60
|
+
changedKeys: string[];
|
|
61
|
+
};
|
|
62
|
+
model: {
|
|
63
|
+
provider: string;
|
|
64
|
+
name: string;
|
|
65
|
+
};
|
|
66
|
+
permissionMode: PermissionMode;
|
|
67
|
+
extensions: {
|
|
68
|
+
skills: {
|
|
69
|
+
enabled: boolean;
|
|
70
|
+
count: number;
|
|
71
|
+
};
|
|
72
|
+
plugins: {
|
|
73
|
+
enabled: boolean;
|
|
74
|
+
count: number;
|
|
75
|
+
};
|
|
76
|
+
hooks: {
|
|
77
|
+
enabled: boolean;
|
|
78
|
+
count: number;
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
export type RuntimeStatusSource = {
|
|
83
|
+
model: string;
|
|
84
|
+
provider?: string;
|
|
85
|
+
permissionMode: PermissionMode;
|
|
86
|
+
projectPath: string;
|
|
87
|
+
language: Language;
|
|
88
|
+
memory: {
|
|
89
|
+
projectRulesExists: boolean;
|
|
90
|
+
projectRulesError?: string;
|
|
91
|
+
candidates: unknown[];
|
|
92
|
+
accepted: unknown[];
|
|
93
|
+
};
|
|
94
|
+
index: {
|
|
95
|
+
status: string;
|
|
96
|
+
projectName?: string;
|
|
97
|
+
changedFiles?: number;
|
|
98
|
+
};
|
|
99
|
+
cache: {
|
|
100
|
+
history: {
|
|
101
|
+
hitRate: number | null;
|
|
102
|
+
freshness?: {
|
|
103
|
+
changedKeys?: string[];
|
|
104
|
+
};
|
|
105
|
+
}[];
|
|
106
|
+
lastFreshness?: {
|
|
107
|
+
changedKeys?: string[];
|
|
108
|
+
};
|
|
109
|
+
};
|
|
110
|
+
skills: {
|
|
111
|
+
enabled: boolean;
|
|
112
|
+
skills: unknown[];
|
|
113
|
+
};
|
|
114
|
+
plugins: {
|
|
115
|
+
enabled: boolean;
|
|
116
|
+
plugins: unknown[];
|
|
117
|
+
};
|
|
118
|
+
hooks: {
|
|
119
|
+
enabled: boolean;
|
|
120
|
+
hooks: unknown[];
|
|
121
|
+
};
|
|
122
|
+
};
|
|
123
|
+
export type PendingNaturalCommand = {
|
|
124
|
+
gateId: string;
|
|
125
|
+
capabilityId: string;
|
|
126
|
+
source: "natural";
|
|
127
|
+
exactCommand: string;
|
|
128
|
+
command: string;
|
|
129
|
+
risk: CommandRisk;
|
|
130
|
+
scope: string;
|
|
131
|
+
createdAt: string;
|
|
132
|
+
expiresAt: string;
|
|
133
|
+
requiresExactConfirmation: boolean;
|
|
134
|
+
};
|
|
135
|
+
export type SlashCommandRegistryEntry = {
|
|
136
|
+
slash: string;
|
|
137
|
+
capabilityId: string;
|
|
138
|
+
userVisible: boolean;
|
|
139
|
+
promptCommand?: boolean;
|
|
140
|
+
hiddenReason?: string;
|
|
141
|
+
};
|
|
142
|
+
export declare const SLASH_COMMAND_REGISTRY: SlashCommandRegistryEntry[];
|
|
143
|
+
export declare function findSlashCommandRegistryEntry(slash: string): SlashCommandRegistryEntry | undefined;
|
|
144
|
+
export declare function getCommandCapabilityCatalog(): CommandCapability[];
|
|
145
|
+
export declare function validateCommandCapabilityCoverage(dispatchSlashes?: string[]): string[];
|
|
146
|
+
export declare function getUserVisibleCommandCapabilities(): CommandCapability[];
|
|
147
|
+
export declare function buildRuntimeStatusForModel(context: RuntimeStatusSource): RuntimeStatusForModel;
|
|
148
|
+
export declare function createModelCapabilitySummary(limit?: number): string;
|
|
149
|
+
export declare function routeNaturalIntent(text: string, preferredLanguage?: Language): NaturalIntent;
|
|
150
|
+
export declare function formatNaturalClarification(intent: NaturalIntent): string;
|
|
151
|
+
export declare function formatCapabilityAnswer(intent: NaturalIntent): string;
|
|
152
|
+
export declare function formatNaturalPermissionBlock(intent: NaturalIntent): string;
|
|
153
|
+
export declare function createPendingNaturalCommand(intent: NaturalIntent, context: RuntimeStatusSource, now?: Date): PendingNaturalCommand | null;
|
|
154
|
+
export declare function formatNaturalStartGate(intent: NaturalIntent, context: RuntimeStatusSource, gate?: PendingNaturalCommand | null): string;
|
|
155
|
+
export declare function isNaturalGateExpired(gate: PendingNaturalCommand, now?: Date): boolean;
|
|
156
|
+
export declare function matchesNaturalGateConfirmation(gate: PendingNaturalCommand, text: string, now?: Date): "confirmed" | "expired" | "exact_required" | "cancelled";
|
|
157
|
+
export declare function formatRiskLine(c: CommandCapability, language: Language): string;
|
|
158
|
+
//# sourceMappingURL=natural-command-bridge.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"natural-command-bridge.d.ts","sourceRoot":"","sources":["../src/natural-command-bridge.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAEhE,MAAM,MAAM,WAAW,GACnB,UAAU,GACV,YAAY,GACZ,cAAc,GACd,iBAAiB,GACjB,WAAW,CAAC;AAEhB,MAAM,MAAM,YAAY,GACpB,MAAM,GACN,MAAM,GACN,WAAW,GACX,cAAc,GACd,aAAa,GACb,aAAa,GACb,MAAM,CAAC;AAEX,MAAM,MAAM,oBAAoB,GAAG,cAAc,GAAG,YAAY,GAAG,KAAK,GAAG,UAAU,GAAG,OAAO,CAAC;AAEhG,MAAM,MAAM,aAAa,GACrB;IACE,IAAI,EAAE,sBAAsB,CAAC;IAC7B,OAAO,EAAE,oBAAoB,CAAC;CAC/B,GACD;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC;AAErB,MAAM,MAAM,iBAAiB,GAAG;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,KAAK,EAAE,YAAY,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,WAAW,CAAC;IAClB,QAAQ,EAAE,OAAO,CAAC;IAClB,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,
|
|
8
|
+
formatNaturalClarification,
|
|
9
|
+
formatNaturalPermissionBlock,
|
|
10
|
+
formatNaturalStartGate,
|
|
11
|
+
formatRiskLine,
|
|
12
|
+
getCommandCapabilityCatalog,
|
|
13
|
+
getUserVisibleCommandCapabilities,
|
|
14
|
+
isNaturalGateExpired,
|
|
15
|
+
matchesNaturalGateConfirmation,
|
|
16
|
+
routeNaturalIntent,
|
|
17
|
+
validateCommandCapabilityCoverage
|
|
18
|
+
} from "./chunk-PGNALDEH.js";
|
|
19
|
+
export {
|
|
20
|
+
SLASH_COMMAND_REGISTRY,
|
|
21
|
+
buildRuntimeStatusForModel,
|
|
22
|
+
createModelCapabilitySummary,
|
|
23
|
+
createPendingNaturalCommand,
|
|
24
|
+
findSlashCommandRegistryEntry,
|
|
25
|
+
formatCapabilityAnswer,
|
|
26
|
+
formatNaturalClarification,
|
|
27
|
+
formatNaturalPermissionBlock,
|
|
28
|
+
formatNaturalStartGate,
|
|
29
|
+
formatRiskLine,
|
|
30
|
+
getCommandCapabilityCatalog,
|
|
31
|
+
getUserVisibleCommandCapabilities,
|
|
32
|
+
isNaturalGateExpired,
|
|
33
|
+
matchesNaturalGateConfirmation,
|
|
34
|
+
routeNaturalIntent,
|
|
35
|
+
validateCommandCapabilityCoverage
|
|
36
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { TuiContext } from "./index.js";
|
|
2
|
+
import type { PendingNaturalCommand } from "./natural-command-bridge.js";
|
|
3
|
+
type PendingLocalApproval = NonNullable<TuiContext["pendingLocalApproval"]>;
|
|
4
|
+
export declare function formatWorkspaceTrustStatus(context: TuiContext): string;
|
|
5
|
+
export declare function formatPendingApprovalDetails(approval: PendingLocalApproval, context: TuiContext): string;
|
|
6
|
+
export declare function formatPendingNaturalCommandDetails(gate: PendingNaturalCommand, context: TuiContext): string;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=pending-details-presenter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pending-details-presenter.d.ts","sourceRoot":"","sources":["../src/pending-details-presenter.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AAGzE,KAAK,oBAAoB,GAAG,WAAW,CAAC,UAAU,CAAC,sBAAsB,CAAC,CAAC,CAAC;AAQ5E,wBAAgB,0BAA0B,CAAC,OAAO,EAAE,UAAU,GAAG,MAAM,CAgBtE;AAED,wBAAgB,4BAA4B,CAC1C,QAAQ,EAAE,oBAAoB,EAC9B,OAAO,EAAE,UAAU,GAClB,MAAM,CA8HR;AAED,wBAAgB,kCAAkC,CAChD,IAAI,EAAE,qBAAqB,EAC3B,OAAO,EAAE,UAAU,GAClB,MAAM,CAqCR"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import {
|
|
2
|
+
formatPendingApprovalDetails,
|
|
3
|
+
formatPendingNaturalCommandDetails,
|
|
4
|
+
formatWorkspaceTrustStatus
|
|
5
|
+
} from "./chunk-QTDGRZMZ.js";
|
|
6
|
+
import "./chunk-OMZYPQVA.js";
|
|
7
|
+
import "./chunk-APJIC2O5.js";
|
|
8
|
+
export {
|
|
9
|
+
formatPendingApprovalDetails,
|
|
10
|
+
formatPendingNaturalCommandDetails,
|
|
11
|
+
formatWorkspaceTrustStatus
|
|
12
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { Writable } from "node:stream";
|
|
2
|
+
import type { ModelGateway } from "@linghun/providers";
|
|
3
|
+
import { type ToolName } from "@linghun/tools";
|
|
4
|
+
import type { PermissionRule } from "./permission-continuation-runtime.js";
|
|
5
|
+
import type { PendingLocalApproval, TuiContext } from "./tui-context-runtime.js";
|
|
6
|
+
export declare function handleTuiKeypress(key: "escape" | "return" | "shift-tab", context: TuiContext, output: Writable): Promise<void>;
|
|
7
|
+
export declare function cancelPendingInteraction(context: TuiContext, output: Writable, source: string): Promise<void>;
|
|
8
|
+
export declare function reevaluatePendingLocalApprovalAfterModeChange(context: TuiContext, gateway: ModelGateway | undefined, output: Writable): Promise<boolean>;
|
|
9
|
+
export declare function hasPendingEnterConfirmation(context: TuiContext): boolean;
|
|
10
|
+
export declare function confirmPendingInteraction(context: TuiContext, output: Writable): Promise<void>;
|
|
11
|
+
export declare function handleModeCommand(args: string[], context: TuiContext, output: Writable): Promise<void>;
|
|
12
|
+
export declare function cycleMode(context: TuiContext, output: Writable): Promise<void>;
|
|
13
|
+
export declare function handlePlanCommand(args: string[], context: TuiContext, output: Writable): Promise<void>;
|
|
14
|
+
export declare function addAllowRuleForTest(context: TuiContext, toolName: ToolName | "*", risk: PermissionRule["risk"] | undefined): Promise<import("./tui-permission-runtime.js").AddAllowRuleResult>;
|
|
15
|
+
/**
|
|
16
|
+
* executePermissionApprove — 把 handleNaturalInput 的 yes 分支主体抽成
|
|
17
|
+
* 函数。语义与原 yes 路径完全一致。**调用方负责清空 pendingLocalApproval**
|
|
18
|
+
* (与原 inline 分支保持一致,避免双清空)。
|
|
19
|
+
*/
|
|
20
|
+
export declare function executePermissionApprove(approval: PendingLocalApproval, context: TuiContext, gateway: ModelGateway | undefined, output: Writable): Promise<void>;
|
|
21
|
+
/**
|
|
22
|
+
* executePermissionDeny — 把 handleNaturalInput 的 no 分支主体抽成函数。
|
|
23
|
+
* 与原 no 路径行为一致;cancelled=true 写 "cancelled by user",否则
|
|
24
|
+
* "denied by user"。**调用方负责清空 pendingLocalApproval**。
|
|
25
|
+
*/
|
|
26
|
+
export declare function executePermissionDeny(approval: PendingLocalApproval, context: TuiContext, gateway: ModelGateway | undefined, output: Writable, cancelled: boolean, decisionSource?: string): Promise<void>;
|
|
27
|
+
export declare function handlePermissionsCommand(args: string[], context: TuiContext, output: Writable): Promise<void>;
|
|
28
|
+
//# sourceMappingURL=permission-approval-runtime.d.ts.map
|