@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 @@
|
|
|
1
|
+
{"version":3,"file":"permission-approval-runtime.d.ts","sourceRoot":"","sources":["../src/permission-approval-runtime.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAEvD,OAAO,EAAE,KAAK,QAAQ,EAAgB,MAAM,gBAAgB,CAAC;AAoC7D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sCAAsC,CAAC;AAqB3E,OAAO,KAAK,EAAE,oBAAoB,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAWjF,wBAAsB,iBAAiB,CACrC,GAAG,EAAE,QAAQ,GAAG,QAAQ,GAAG,WAAW,EACtC,OAAO,EAAE,UAAU,EACnB,MAAM,EAAE,QAAQ,GACf,OAAO,CAAC,IAAI,CAAC,CAwBf;AAED,wBAAsB,wBAAwB,CAC5C,OAAO,EAAE,UAAU,EACnB,MAAM,EAAE,QAAQ,EAChB,MAAM,EAAE,MAAM,GACb,OAAO,CAAC,IAAI,CAAC,CA8Cf;AAED,wBAAsB,6CAA6C,CACjE,OAAO,EAAE,UAAU,EACnB,OAAO,EAAE,YAAY,GAAG,SAAS,EACjC,MAAM,EAAE,QAAQ,GACf,OAAO,CAAC,OAAO,CAAC,CAclB;AAsBD,wBAAgB,2BAA2B,CAAC,OAAO,EAAE,UAAU,GAAG,OAAO,CAOxE;AAED,wBAAsB,yBAAyB,CAC7C,OAAO,EAAE,UAAU,EACnB,MAAM,EAAE,QAAQ,GACf,OAAO,CAAC,IAAI,CAAC,CA+Bf;AAED,wBAAsB,iBAAiB,CACrC,IAAI,EAAE,MAAM,EAAE,EACd,OAAO,EAAE,UAAU,EACnB,MAAM,EAAE,QAAQ,GACf,OAAO,CAAC,IAAI,CAAC,CAcf;AAED,wBAAsB,SAAS,CAAC,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC,CAKpF;AAsDD,wBAAsB,iBAAiB,CACrC,IAAI,EAAE,MAAM,EAAE,EACd,OAAO,EAAE,UAAU,EACnB,MAAM,EAAE,QAAQ,GACf,OAAO,CAAC,IAAI,CAAC,CAkGf;AAkBD,wBAAsB,mBAAmB,CACvC,OAAO,EAAE,UAAU,EACnB,QAAQ,EAAE,QAAQ,GAAG,GAAG,EACxB,IAAI,EAAE,cAAc,CAAC,MAAM,CAAC,GAAG,SAAS,GACvC,OAAO,CAAC,OAAO,6BAA6B,EAAE,kBAAkB,CAAC,CAEnE;AAED;;;;GAIG;AACH,wBAAsB,wBAAwB,CAC5C,QAAQ,EAAE,oBAAoB,EAC9B,OAAO,EAAE,UAAU,EACnB,OAAO,EAAE,YAAY,GAAG,SAAS,EACjC,MAAM,EAAE,QAAQ,GACf,OAAO,CAAC,IAAI,CAAC,CAgOf;AAED;;;;GAIG;AACH,wBAAsB,qBAAqB,CACzC,QAAQ,EAAE,oBAAoB,EAC9B,OAAO,EAAE,UAAU,EACnB,OAAO,EAAE,YAAY,GAAG,SAAS,EACjC,MAAM,EAAE,QAAQ,EAChB,SAAS,EAAE,OAAO,EAClB,cAAc,SAAgC,GAC7C,OAAO,CAAC,IAAI,CAAC,CA2Tf;AA0DD,wBAAsB,wBAAwB,CAC5C,IAAI,EAAE,MAAM,EAAE,EACd,OAAO,EAAE,UAAU,EACnB,MAAM,EAAE,QAAQ,GACf,OAAO,CAAC,IAAI,CAAC,CAuGf"}
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
import {
|
|
2
|
+
addAllowRuleForTest,
|
|
3
|
+
cancelPendingInteraction,
|
|
4
|
+
confirmPendingInteraction,
|
|
5
|
+
cycleMode,
|
|
6
|
+
executePermissionApprove,
|
|
7
|
+
executePermissionDeny,
|
|
8
|
+
handleModeCommand,
|
|
9
|
+
handlePermissionsCommand,
|
|
10
|
+
handlePlanCommand,
|
|
11
|
+
handleTuiKeypress,
|
|
12
|
+
hasPendingEnterConfirmation,
|
|
13
|
+
reevaluatePendingLocalApprovalAfterModeChange
|
|
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
|
+
addAllowRuleForTest,
|
|
125
|
+
cancelPendingInteraction,
|
|
126
|
+
confirmPendingInteraction,
|
|
127
|
+
cycleMode,
|
|
128
|
+
executePermissionApprove,
|
|
129
|
+
executePermissionDeny,
|
|
130
|
+
handleModeCommand,
|
|
131
|
+
handlePermissionsCommand,
|
|
132
|
+
handlePlanCommand,
|
|
133
|
+
handleTuiKeypress,
|
|
134
|
+
hasPendingEnterConfirmation,
|
|
135
|
+
reevaluatePendingLocalApprovalAfterModeChange
|
|
136
|
+
};
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* permission-continuation-runtime.ts — Pure permission/tool continuation helpers
|
|
3
|
+
* extracted from index.ts.
|
|
4
|
+
*
|
|
5
|
+
* Contains:
|
|
6
|
+
* - Permission decision helpers (formatPermissionDenied, formatPermissionSummary,
|
|
7
|
+
* formatDiffBeforeWrite, isLowRiskWorkspaceEdit, collectInputFiles, getHardDenyReason,
|
|
8
|
+
* findPermissionRule, isPlanAllowedTool, parsePermissionModeInput)
|
|
9
|
+
* - Permission state formatters (formatPermissionRules, formatRecentDenied,
|
|
10
|
+
* hasRepeatedPermissionDenial, formatPermissionDenialPrimary)
|
|
11
|
+
* - Report write guard helpers (createReportWriteGuard, isReportFileWriteRequest,
|
|
12
|
+
* extractRequestedReportPath, normalizeReportPath, shouldSendReportEvidenceReminder,
|
|
13
|
+
* shouldSendReportWriteReminder, shouldSendReportFinalReferenceReminder,
|
|
14
|
+
* hasReportFinalAnswerShape, doesWriteSatisfyReportGuard, hasReportWriteToolCall,
|
|
15
|
+
* createReportFinalReferenceReminder, createReportTaskGuard, createReportWriteReminder,
|
|
16
|
+
* formatModelToolOutput)
|
|
17
|
+
* - Remote redaction (redactRemoteSummary, remoteTranscriptSummary)
|
|
18
|
+
* - Tool name normalization (normalizeToolName)
|
|
19
|
+
*
|
|
20
|
+
* Hard boundary: no sendMessage, no provider stream loop, no TuiContext state machine,
|
|
21
|
+
* no store/session writes, no gateway calls.
|
|
22
|
+
*/
|
|
23
|
+
import type { Language, PermissionMode } from "@linghun/shared";
|
|
24
|
+
import { type ToolName, type ToolOutput } from "@linghun/tools";
|
|
25
|
+
export type ReportWriteGuard = {
|
|
26
|
+
requestedPath: string;
|
|
27
|
+
pathExplicit: boolean;
|
|
28
|
+
completed: boolean;
|
|
29
|
+
reminderSent: boolean;
|
|
30
|
+
evidenceReminderSent: boolean;
|
|
31
|
+
finalReferenceReminderSent: boolean;
|
|
32
|
+
nonWriteToolRounds: number;
|
|
33
|
+
evidenceRead: boolean;
|
|
34
|
+
};
|
|
35
|
+
export type PermissionRule = {
|
|
36
|
+
id: string;
|
|
37
|
+
effect: "allow" | "ask" | "deny";
|
|
38
|
+
toolName: ToolName | "*";
|
|
39
|
+
risk?: "low" | "medium" | "high";
|
|
40
|
+
};
|
|
41
|
+
export type RecentPermissionRejection = {
|
|
42
|
+
id: string;
|
|
43
|
+
toolName: ToolName;
|
|
44
|
+
mode: PermissionMode;
|
|
45
|
+
reason: string;
|
|
46
|
+
createdAt: string;
|
|
47
|
+
};
|
|
48
|
+
export type PermissionState = {
|
|
49
|
+
rules: PermissionRule[];
|
|
50
|
+
recentDenied: RecentPermissionRejection[];
|
|
51
|
+
};
|
|
52
|
+
export type ModelToolCallLike = {
|
|
53
|
+
id: string;
|
|
54
|
+
name: string;
|
|
55
|
+
input?: unknown;
|
|
56
|
+
};
|
|
57
|
+
export declare function formatPermissionDenialPrimary(language: Language): string;
|
|
58
|
+
export declare function formatPermissionDenied(reason: string, summary: string): string;
|
|
59
|
+
export declare function formatPermissionSummary(name: ToolName, files: string[], risk: "low" | "medium" | "high"): string;
|
|
60
|
+
export declare function formatDiffBeforeWrite(name: ToolName, files: string[], risk: "low" | "medium" | "high"): string;
|
|
61
|
+
export declare function isLowRiskWorkspaceEdit(name: ToolName, risk: "low" | "medium" | "high", files: string[]): boolean;
|
|
62
|
+
export declare function collectInputFiles(input: unknown): string[];
|
|
63
|
+
export declare function getHardDenyReason(name: ToolName, input: unknown, files: string[], workspaceRoot: string): string | null;
|
|
64
|
+
export declare function findPermissionRule(rules: PermissionRule[], name: ToolName, risk: "low" | "medium" | "high"): PermissionRule | undefined;
|
|
65
|
+
export declare function isPlanAllowedTool(name: ToolName, isReadOnly: boolean): boolean;
|
|
66
|
+
export declare function parsePermissionModeInput(value: string): PermissionMode | null;
|
|
67
|
+
export declare function formatPermissionRules(state: PermissionState): string;
|
|
68
|
+
export declare function formatRecentDenied(state: PermissionState): string;
|
|
69
|
+
export declare function hasRepeatedPermissionDenial(recentDenied: RecentPermissionRejection[]): boolean;
|
|
70
|
+
export declare function createReportWriteGuard(text: string): ReportWriteGuard | undefined;
|
|
71
|
+
export declare function isReportFileWriteRequest(text: string): boolean;
|
|
72
|
+
export declare function extractRequestedReportPath(text: string): string | undefined;
|
|
73
|
+
export declare function normalizeReportPath(path: string): string;
|
|
74
|
+
export declare function shouldSendReportEvidenceReminder(guard: ReportWriteGuard | undefined): boolean;
|
|
75
|
+
export declare function shouldSendReportWriteReminder(guard: ReportWriteGuard | undefined): boolean;
|
|
76
|
+
export declare function shouldSendReportFinalReferenceReminder(guard: ReportWriteGuard, assistantText: string): boolean;
|
|
77
|
+
export declare function hasReportFinalAnswerShape(text: string): boolean;
|
|
78
|
+
export declare function createReportFinalReferenceReminder(guard: ReportWriteGuard, language: Language): string;
|
|
79
|
+
export declare function createReportTaskGuard(guard: ReportWriteGuard, language: Language): string;
|
|
80
|
+
export declare function createReportWriteReminder(guard: ReportWriteGuard, language: Language): string;
|
|
81
|
+
export declare function doesWriteSatisfyReportGuard(guard: ReportWriteGuard | undefined, toolCall: ModelToolCallLike, result: {
|
|
82
|
+
ok: boolean;
|
|
83
|
+
tool: string;
|
|
84
|
+
}): guard is ReportWriteGuard;
|
|
85
|
+
export declare function hasReportWriteToolCall(guard: ReportWriteGuard, toolCalls: ModelToolCallLike[]): boolean;
|
|
86
|
+
export declare function formatModelToolOutput(toolName: ToolName, output: ToolOutput, language: Language, evidenceId: string | undefined, reportWriteGuard: ReportWriteGuard | undefined): string;
|
|
87
|
+
export declare function normalizeToolName(name: string): ToolName | null;
|
|
88
|
+
export declare function redactRemoteSummary(value: string): string;
|
|
89
|
+
export declare function remoteTranscriptSummary(value: string): string;
|
|
90
|
+
//# sourceMappingURL=permission-continuation-runtime.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"permission-continuation-runtime.d.ts","sourceRoot":"","sources":["../src/permission-continuation-runtime.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import {
|
|
2
|
+
collectInputFiles,
|
|
3
|
+
createReportFinalReferenceReminder,
|
|
4
|
+
createReportTaskGuard,
|
|
5
|
+
createReportWriteGuard,
|
|
6
|
+
createReportWriteReminder,
|
|
7
|
+
doesWriteSatisfyReportGuard,
|
|
8
|
+
extractRequestedReportPath,
|
|
9
|
+
findPermissionRule,
|
|
10
|
+
formatDiffBeforeWrite,
|
|
11
|
+
formatModelToolOutput,
|
|
12
|
+
formatPermissionDenialPrimary,
|
|
13
|
+
formatPermissionDenied,
|
|
14
|
+
formatPermissionRules,
|
|
15
|
+
formatPermissionSummary,
|
|
16
|
+
formatRecentDenied,
|
|
17
|
+
getHardDenyReason,
|
|
18
|
+
hasRepeatedPermissionDenial,
|
|
19
|
+
hasReportFinalAnswerShape,
|
|
20
|
+
hasReportWriteToolCall,
|
|
21
|
+
isLowRiskWorkspaceEdit,
|
|
22
|
+
isPlanAllowedTool,
|
|
23
|
+
isReportFileWriteRequest,
|
|
24
|
+
normalizeReportPath,
|
|
25
|
+
normalizeToolName,
|
|
26
|
+
parsePermissionModeInput,
|
|
27
|
+
redactRemoteSummary,
|
|
28
|
+
remoteTranscriptSummary,
|
|
29
|
+
shouldSendReportEvidenceReminder,
|
|
30
|
+
shouldSendReportFinalReferenceReminder,
|
|
31
|
+
shouldSendReportWriteReminder
|
|
32
|
+
} from "./chunk-J7ZE2JKP.js";
|
|
33
|
+
import "./chunk-BOV4K7FP.js";
|
|
34
|
+
import "./chunk-KTWV5JC5.js";
|
|
35
|
+
import "./chunk-OMZYPQVA.js";
|
|
36
|
+
import "./chunk-APJIC2O5.js";
|
|
37
|
+
export {
|
|
38
|
+
collectInputFiles,
|
|
39
|
+
createReportFinalReferenceReminder,
|
|
40
|
+
createReportTaskGuard,
|
|
41
|
+
createReportWriteGuard,
|
|
42
|
+
createReportWriteReminder,
|
|
43
|
+
doesWriteSatisfyReportGuard,
|
|
44
|
+
extractRequestedReportPath,
|
|
45
|
+
findPermissionRule,
|
|
46
|
+
formatDiffBeforeWrite,
|
|
47
|
+
formatModelToolOutput,
|
|
48
|
+
formatPermissionDenialPrimary,
|
|
49
|
+
formatPermissionDenied,
|
|
50
|
+
formatPermissionRules,
|
|
51
|
+
formatPermissionSummary,
|
|
52
|
+
formatRecentDenied,
|
|
53
|
+
getHardDenyReason,
|
|
54
|
+
hasRepeatedPermissionDenial,
|
|
55
|
+
hasReportFinalAnswerShape,
|
|
56
|
+
hasReportWriteToolCall,
|
|
57
|
+
isLowRiskWorkspaceEdit,
|
|
58
|
+
isPlanAllowedTool,
|
|
59
|
+
isReportFileWriteRequest,
|
|
60
|
+
normalizeReportPath,
|
|
61
|
+
normalizeToolName,
|
|
62
|
+
parsePermissionModeInput,
|
|
63
|
+
redactRemoteSummary,
|
|
64
|
+
remoteTranscriptSummary,
|
|
65
|
+
shouldSendReportEvidenceReminder,
|
|
66
|
+
shouldSendReportFinalReferenceReminder,
|
|
67
|
+
shouldSendReportWriteReminder
|
|
68
|
+
};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
export type SemanticClass = "readonly" | "mutating" | "destructive" | "network" | "install" | "secret_read" | "outside_workspace" | "unknown";
|
|
2
|
+
export type PathSafetyClass = "workspace_safe" | "workspace_write" | "outside_workspace" | "sensitive_path" | "unknown_path";
|
|
3
|
+
export type PolicyDecision = "auto_allow_readonly" | "require_permission";
|
|
4
|
+
/** Tool request shape the engine consumes. Decoupled from TuiContext. */
|
|
5
|
+
export type PolicyRequest = {
|
|
6
|
+
toolName: string;
|
|
7
|
+
/** Raw tool input as the model sent it (may be unknown / object). */
|
|
8
|
+
input: unknown;
|
|
9
|
+
/** Absolute workspace root used as the "inside workspace" anchor. */
|
|
10
|
+
workspaceRoot: string;
|
|
11
|
+
/**
|
|
12
|
+
* Marker for deferred/MCP/ExecuteExtraTool dispatch. Built-in tools must
|
|
13
|
+
* pass `false`. Engine treats `true` paths as `unknown` semantic by default
|
|
14
|
+
* unless `manifestReadOnly === true` is set explicitly.
|
|
15
|
+
*/
|
|
16
|
+
isDeferred?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Set by deferred caller when the tool's manifest declares it readonly with
|
|
19
|
+
* trusted provenance. Without this, deferred tools fall through to
|
|
20
|
+
* `require_permission`.
|
|
21
|
+
*/
|
|
22
|
+
manifestReadOnly?: boolean;
|
|
23
|
+
};
|
|
24
|
+
export type PolicyVerdict = {
|
|
25
|
+
decision: PolicyDecision;
|
|
26
|
+
semantic: SemanticClass;
|
|
27
|
+
pathSafety: PathSafetyClass;
|
|
28
|
+
/** Short human reason — safe to surface in TUI / event payload. */
|
|
29
|
+
reason: string;
|
|
30
|
+
/**
|
|
31
|
+
* Sanitized command form for events / explainers. Never includes the raw
|
|
32
|
+
* value of secrets, tokens, or absolute paths to sensitive files.
|
|
33
|
+
*/
|
|
34
|
+
redactedSummary: string;
|
|
35
|
+
};
|
|
36
|
+
export declare function classifyToolRequest(req: PolicyRequest): PolicyVerdict;
|
|
37
|
+
export declare function classifyBashHead(head: string, args: string[]): SemanticClass;
|
|
38
|
+
export declare function classifyPathString(pathArg: string, workspaceRoot: string): PathSafetyClass;
|
|
39
|
+
/**
|
|
40
|
+
* Lightweight shell-token splitter.
|
|
41
|
+
* Honors single and double quotes; does **not** evaluate $(...) / `...` —
|
|
42
|
+
* those force require_permission upstream via COMPOSITION_OPERATORS_REGEX.
|
|
43
|
+
*
|
|
44
|
+
* Backslash handling: outside single quotes, `\` is treated as an escape
|
|
45
|
+
* **only when it precedes a shell-meta character** (whitespace, quotes, $, #,
|
|
46
|
+
* the backslash itself). Backslashes followed by alphanumerics or path
|
|
47
|
+
* separators stay literal so Windows-style paths like `C:\Users\foo`
|
|
48
|
+
* tokenize as a single token instead of being silently de-slashed.
|
|
49
|
+
*/
|
|
50
|
+
export declare function tokenizeShellCommand(input: string): string[];
|
|
51
|
+
//# sourceMappingURL=permission-policy-engine.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"permission-policy-engine.d.ts","sourceRoot":"","sources":["../src/permission-policy-engine.ts"],"names":[],"mappings":"AAuCA,MAAM,MAAM,aAAa,GACrB,UAAU,GACV,UAAU,GACV,aAAa,GACb,SAAS,GACT,SAAS,GACT,aAAa,GACb,mBAAmB,GACnB,SAAS,CAAC;AAEd,MAAM,MAAM,eAAe,GACvB,gBAAgB,GAChB,iBAAiB,GACjB,mBAAmB,GACnB,gBAAgB,GAChB,cAAc,CAAC;AAEnB,MAAM,MAAM,cAAc,GAAG,qBAAqB,GAAG,oBAAoB,CAAC;AAE1E,yEAAyE;AACzE,MAAM,MAAM,aAAa,GAAG;IAC1B,QAAQ,EAAE,MAAM,CAAC;IACjB,qEAAqE;IACrE,KAAK,EAAE,OAAO,CAAC;IACf,qEAAqE;IACrE,aAAa,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B,QAAQ,EAAE,cAAc,CAAC;IACzB,QAAQ,EAAE,aAAa,CAAC;IACxB,UAAU,EAAE,eAAe,CAAC;IAC5B,mEAAmE;IACnE,MAAM,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,eAAe,EAAE,MAAM,CAAC;CACzB,CAAC;AAmQF,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,aAAa,GAAG,aAAa,CAwCrE;AAuOD,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,aAAa,CA2D5E;AA4LD,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,GAAG,eAAe,CAyC1F;AA4BD;;;;;;;;;;GAUG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,CA0C5D"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { Language, PermissionMode } from "@linghun/shared";
|
|
2
|
+
import type { ToolName } from "@linghun/tools";
|
|
3
|
+
export type PermissionPromptView = {
|
|
4
|
+
toolName: ToolName;
|
|
5
|
+
decision: "allow" | "ask" | "deny";
|
|
6
|
+
risk: "low" | "medium" | "high";
|
|
7
|
+
mode: PermissionMode;
|
|
8
|
+
reason: string;
|
|
9
|
+
scope: string[];
|
|
10
|
+
};
|
|
11
|
+
export declare function formatLocalToolPermissionPrompt(permission: PermissionPromptView, language: Language): string;
|
|
12
|
+
export declare function formatModelToolPermissionPrompt(permission: PermissionPromptView, language: Language): string;
|
|
13
|
+
//# sourceMappingURL=permission-presenter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"permission-presenter.d.ts","sourceRoot":"","sources":["../src/permission-presenter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAChE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAE/C,MAAM,MAAM,oBAAoB,GAAG;IACjC,QAAQ,EAAE,QAAQ,CAAC;IACnB,QAAQ,EAAE,OAAO,GAAG,KAAK,GAAG,MAAM,CAAC;IACnC,IAAI,EAAE,KAAK,GAAG,QAAQ,GAAG,MAAM,CAAC;IAChC,IAAI,EAAE,cAAc,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,EAAE,CAAC;CACjB,CAAC;AAEF,wBAAgB,+BAA+B,CAC7C,UAAU,EAAE,oBAAoB,EAChC,QAAQ,EAAE,QAAQ,GACjB,MAAM,CAqBR;AAED,wBAAgB,+BAA+B,CAC7C,UAAU,EAAE,oBAAoB,EAChC,QAAQ,EAAE,QAAQ,GACjB,MAAM,CAcR"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export type HistoryEntry = {
|
|
2
|
+
text: string;
|
|
3
|
+
timestamp: number;
|
|
4
|
+
};
|
|
5
|
+
export type PersistentHistoryOptions = {
|
|
6
|
+
filePath: string;
|
|
7
|
+
maxEntries?: number;
|
|
8
|
+
maxFileLines?: number;
|
|
9
|
+
trimTarget?: number;
|
|
10
|
+
};
|
|
11
|
+
export type PersistentHistory = {
|
|
12
|
+
load(): Promise<HistoryEntry[]>;
|
|
13
|
+
append(text: string): Promise<void>;
|
|
14
|
+
search(query: string): HistoryEntry[];
|
|
15
|
+
getEntries(): HistoryEntry[];
|
|
16
|
+
};
|
|
17
|
+
export declare function createPersistentHistory(options: PersistentHistoryOptions): PersistentHistory;
|
|
18
|
+
//# sourceMappingURL=persistent-history.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"persistent-history.d.ts","sourceRoot":"","sources":["../src/persistent-history.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,YAAY,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE,CAAC;AAE/D,MAAM,MAAM,wBAAwB,GAAG;IACrC,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,IAAI,IAAI,OAAO,CAAC,YAAY,EAAE,CAAC,CAAC;IAChC,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACpC,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,YAAY,EAAE,CAAC;IACtC,UAAU,IAAI,YAAY,EAAE,CAAC;CAC9B,CAAC;AAMF,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,wBAAwB,GAAG,iBAAiB,CAuD5F"}
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
// src/persistent-history.ts
|
|
2
|
+
import { mkdir, open, stat, writeFile } from "fs/promises";
|
|
3
|
+
import { createInterface } from "readline";
|
|
4
|
+
import { createReadStream } from "fs";
|
|
5
|
+
import { dirname } from "path";
|
|
6
|
+
var DEFAULT_MAX_ENTRIES = 500;
|
|
7
|
+
var DEFAULT_MAX_FILE_LINES = 1e4;
|
|
8
|
+
var DEFAULT_TRIM_TARGET = 5e3;
|
|
9
|
+
function createPersistentHistory(options) {
|
|
10
|
+
const {
|
|
11
|
+
filePath,
|
|
12
|
+
maxEntries = DEFAULT_MAX_ENTRIES,
|
|
13
|
+
maxFileLines = DEFAULT_MAX_FILE_LINES,
|
|
14
|
+
trimTarget = DEFAULT_TRIM_TARGET
|
|
15
|
+
} = options;
|
|
16
|
+
let entries = [];
|
|
17
|
+
async function load() {
|
|
18
|
+
try {
|
|
19
|
+
await stat(filePath);
|
|
20
|
+
} catch {
|
|
21
|
+
entries = [];
|
|
22
|
+
return entries;
|
|
23
|
+
}
|
|
24
|
+
const loaded = await readTail(filePath, maxEntries);
|
|
25
|
+
entries = loaded;
|
|
26
|
+
return entries;
|
|
27
|
+
}
|
|
28
|
+
async function append(text) {
|
|
29
|
+
const entry = { text, timestamp: Date.now() };
|
|
30
|
+
entries.push(entry);
|
|
31
|
+
await mkdir(dirname(filePath), { recursive: true });
|
|
32
|
+
const line = JSON.stringify(entry) + "\n";
|
|
33
|
+
const fh = await open(filePath, "a");
|
|
34
|
+
try {
|
|
35
|
+
await fh.write(line);
|
|
36
|
+
} finally {
|
|
37
|
+
await fh.close();
|
|
38
|
+
}
|
|
39
|
+
await trimIfNeeded(filePath, maxFileLines, trimTarget);
|
|
40
|
+
}
|
|
41
|
+
function search(query) {
|
|
42
|
+
const lower = query.toLowerCase();
|
|
43
|
+
const matches = [];
|
|
44
|
+
for (let i = entries.length - 1; i >= 0; i--) {
|
|
45
|
+
if (entries[i].text.toLowerCase().includes(lower)) {
|
|
46
|
+
matches.push(entries[i]);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
return matches;
|
|
50
|
+
}
|
|
51
|
+
function getEntries() {
|
|
52
|
+
return entries;
|
|
53
|
+
}
|
|
54
|
+
return { load, append, search, getEntries };
|
|
55
|
+
}
|
|
56
|
+
async function readTail(filePath, maxEntries) {
|
|
57
|
+
const entries = [];
|
|
58
|
+
const stream = createReadStream(filePath, { encoding: "utf8" });
|
|
59
|
+
const rl = createInterface({ input: stream, crlfDelay: Infinity });
|
|
60
|
+
const ring = [];
|
|
61
|
+
let ringIdx = 0;
|
|
62
|
+
let filled = false;
|
|
63
|
+
for await (const line of rl) {
|
|
64
|
+
if (!line.trim()) continue;
|
|
65
|
+
ring[ringIdx] = line;
|
|
66
|
+
ringIdx++;
|
|
67
|
+
if (ringIdx >= maxEntries) {
|
|
68
|
+
ringIdx = 0;
|
|
69
|
+
filled = true;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
const count = filled ? maxEntries : ringIdx;
|
|
73
|
+
const startIdx = filled ? ringIdx : 0;
|
|
74
|
+
for (let i = 0; i < count; i++) {
|
|
75
|
+
const idx = (startIdx + i) % maxEntries;
|
|
76
|
+
const raw = ring[idx];
|
|
77
|
+
const parsed = parseLine(raw);
|
|
78
|
+
if (parsed) entries.push(parsed);
|
|
79
|
+
}
|
|
80
|
+
return entries;
|
|
81
|
+
}
|
|
82
|
+
function parseLine(line) {
|
|
83
|
+
try {
|
|
84
|
+
const obj = JSON.parse(line);
|
|
85
|
+
if (typeof obj.text === "string" && typeof obj.timestamp === "number") {
|
|
86
|
+
return { text: obj.text, timestamp: obj.timestamp };
|
|
87
|
+
}
|
|
88
|
+
return null;
|
|
89
|
+
} catch {
|
|
90
|
+
return null;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
async function trimIfNeeded(filePath, maxFileLines, trimTarget) {
|
|
94
|
+
let lineCount = 0;
|
|
95
|
+
const stream = createReadStream(filePath, { encoding: "utf8" });
|
|
96
|
+
const rl = createInterface({ input: stream, crlfDelay: Infinity });
|
|
97
|
+
for await (const _ of rl) {
|
|
98
|
+
lineCount++;
|
|
99
|
+
if (lineCount > maxFileLines) break;
|
|
100
|
+
}
|
|
101
|
+
if (lineCount <= maxFileLines) return;
|
|
102
|
+
const keepLines = [];
|
|
103
|
+
const stream2 = createReadStream(filePath, { encoding: "utf8" });
|
|
104
|
+
const rl2 = createInterface({ input: stream2, crlfDelay: Infinity });
|
|
105
|
+
const ring = [];
|
|
106
|
+
let ringIdx = 0;
|
|
107
|
+
let filled = false;
|
|
108
|
+
for await (const line of rl2) {
|
|
109
|
+
if (!line.trim()) continue;
|
|
110
|
+
ring[ringIdx] = line;
|
|
111
|
+
ringIdx++;
|
|
112
|
+
if (ringIdx >= trimTarget) {
|
|
113
|
+
ringIdx = 0;
|
|
114
|
+
filled = true;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
const count = filled ? trimTarget : ringIdx;
|
|
118
|
+
const startIdx = filled ? ringIdx : 0;
|
|
119
|
+
for (let i = 0; i < count; i++) {
|
|
120
|
+
keepLines.push(ring[(startIdx + i) % trimTarget]);
|
|
121
|
+
}
|
|
122
|
+
await writeFile(filePath, keepLines.join("\n") + "\n", "utf8");
|
|
123
|
+
}
|
|
124
|
+
export {
|
|
125
|
+
createPersistentHistory
|
|
126
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"platform-security.d.ts","sourceRoot":"","sources":["../src/platform-security.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,eAAe,aAY1B,CAAC;AAEH,eAAO,MAAM,qBAAqB,aAOhC,CAAC;AAIH,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CA4B5F"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare function redactedPath(path: string | undefined): string;
|
|
2
|
+
export declare function runCommandCapture(command: string, args: string[], cwd: string, timeoutMs: number): Promise<{
|
|
3
|
+
exitCode: number;
|
|
4
|
+
stdout: string;
|
|
5
|
+
stderr: string;
|
|
6
|
+
summary: string;
|
|
7
|
+
errorCode?: string;
|
|
8
|
+
}>;
|
|
9
|
+
//# sourceMappingURL=process-command-runtime.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"process-command-runtime.d.ts","sourceRoot":"","sources":["../src/process-command-runtime.ts"],"names":[],"mappings":"AAMA,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,CAK7D;AAED,wBAAsB,iBAAiB,CACrC,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,MAAM,EAAE,EACd,GAAG,EAAE,MAAM,EACX,SAAS,EAAE,MAAM,GAChB,OAAO,CAAC;IACT,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC,CAwDD"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { spawn } from "node:child_process";
|
|
2
|
+
import type { ChildProcess } from "node:child_process";
|
|
3
|
+
export type ProcessGuardStopKind = "graceful" | "force" | "exit-cleanup";
|
|
4
|
+
export type ProcessGuardTrackedChild = Pick<ChildProcess, "kill"> & {
|
|
5
|
+
pid?: number;
|
|
6
|
+
exitCode?: number | null;
|
|
7
|
+
signalCode?: NodeJS.Signals | null;
|
|
8
|
+
once: (event: "exit" | "close", listener: (...args: unknown[]) => void) => unknown;
|
|
9
|
+
};
|
|
10
|
+
export type ProcessGuardTrackOptions = {
|
|
11
|
+
/** True only for children spawned by this process with detached: true. */
|
|
12
|
+
detached?: boolean;
|
|
13
|
+
label?: string;
|
|
14
|
+
};
|
|
15
|
+
export type ProcessGuardStopFailure = {
|
|
16
|
+
pid: number;
|
|
17
|
+
message: string;
|
|
18
|
+
};
|
|
19
|
+
export type ProcessGuardStopResult = {
|
|
20
|
+
kind: ProcessGuardStopKind;
|
|
21
|
+
force: boolean;
|
|
22
|
+
attempted: number;
|
|
23
|
+
skipped: number;
|
|
24
|
+
failures: ProcessGuardStopFailure[];
|
|
25
|
+
};
|
|
26
|
+
export type ProcessGuardDeps = {
|
|
27
|
+
platform?: NodeJS.Platform;
|
|
28
|
+
spawn?: typeof spawn;
|
|
29
|
+
kill?: typeof process.kill;
|
|
30
|
+
};
|
|
31
|
+
export declare class ProcessGuardRegistry {
|
|
32
|
+
private readonly tracked;
|
|
33
|
+
track(child: ProcessGuardTrackedChild, options?: ProcessGuardTrackOptions): boolean;
|
|
34
|
+
untrack(pid: number | undefined): void;
|
|
35
|
+
snapshot(): ReadonlyArray<{
|
|
36
|
+
pid: number;
|
|
37
|
+
detached: boolean;
|
|
38
|
+
label?: string;
|
|
39
|
+
}>;
|
|
40
|
+
stopAll(kind: ProcessGuardStopKind, force: boolean, deps: Required<ProcessGuardDeps>, allowAsyncWindowsTreeKill: boolean, onlyPids?: ReadonlySet<number>): ProcessGuardStopResult;
|
|
41
|
+
}
|
|
42
|
+
export type ProcessGuard = {
|
|
43
|
+
track: (child: ProcessGuardTrackedChild, options?: ProcessGuardTrackOptions) => boolean;
|
|
44
|
+
requestStop: (force: boolean) => ProcessGuardStopResult;
|
|
45
|
+
cleanupForExit: () => ProcessGuardStopResult;
|
|
46
|
+
snapshot: () => ReturnType<ProcessGuardRegistry["snapshot"]>;
|
|
47
|
+
};
|
|
48
|
+
export declare const PROCESS_GUARD_EXIT_CLEANUP_NOTE = "process.on('exit') cleanup is synchronous best-effort only; it cannot guarantee async taskkill completion or parent hard-kill/crash cleanup.";
|
|
49
|
+
export declare function createProcessGuard(registry?: ProcessGuardRegistry, deps?: ProcessGuardDeps): ProcessGuard;
|
|
50
|
+
export declare function trackChildProcess(child: ProcessGuardTrackedChild, options?: ProcessGuardTrackOptions): boolean;
|
|
51
|
+
export declare function requestTrackedProcessStop(force: boolean): ProcessGuardStopResult;
|
|
52
|
+
export declare function cleanupTrackedProcessesForExit(): ProcessGuardStopResult;
|
|
53
|
+
export declare function consumeProcessGuardStopResultsForTest(): ProcessGuardStopResult[];
|
|
54
|
+
export declare function getTrackedProcessSnapshot(): ReturnType<ProcessGuardRegistry["snapshot"]>;
|
|
55
|
+
export declare function installProcessGuardExitHandlers(): void;
|
|
56
|
+
//# sourceMappingURL=process-guard.d.ts.map
|