@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,923 @@
|
|
|
1
|
+
import type { ModelCapability, ModelRole, RemoteChannelConfig, RemoteEventType, RoleModelRoute } from "@linghun/config";
|
|
2
|
+
import type { CacheFreshness, CacheTurnStats } from "@linghun/core";
|
|
3
|
+
import type { PermissionMode } from "@linghun/shared";
|
|
4
|
+
import type { DiffSummary, TodoItem, ToolName } from "@linghun/tools";
|
|
5
|
+
import type { ArchitectureCardSummary } from "./architecture-runtime.js";
|
|
6
|
+
import type { CompactBoundary } from "./compact-context.js";
|
|
7
|
+
import type { IndexState } from "./index-runtime.js";
|
|
8
|
+
import type { SolutionCompletenessStatus } from "./model-loop-runtime.js";
|
|
9
|
+
import type { WorkspaceReferenceCache } from "./workspace-reference-cache.js";
|
|
10
|
+
export type PlanProposal = {
|
|
11
|
+
id: string;
|
|
12
|
+
title: string;
|
|
13
|
+
options: {
|
|
14
|
+
id: string;
|
|
15
|
+
title: string;
|
|
16
|
+
steps: string[];
|
|
17
|
+
risks: string[];
|
|
18
|
+
}[];
|
|
19
|
+
};
|
|
20
|
+
export type BackgroundTaskStatus = "running" | "paused" | "completed" | "failed" | "blocked" | "cancelled" | "timeout" | "stale";
|
|
21
|
+
export type BackgroundTaskState = {
|
|
22
|
+
id: string;
|
|
23
|
+
kind: "bash" | "verification" | "compact" | "agent" | "job" | "mcp" | "index";
|
|
24
|
+
title: string;
|
|
25
|
+
status: BackgroundTaskStatus;
|
|
26
|
+
currentStep?: string;
|
|
27
|
+
progress?: {
|
|
28
|
+
completed: number;
|
|
29
|
+
total?: number;
|
|
30
|
+
label?: string;
|
|
31
|
+
};
|
|
32
|
+
startedAt: string;
|
|
33
|
+
updatedAt: string;
|
|
34
|
+
completedAt?: string;
|
|
35
|
+
lastOutputAt?: string;
|
|
36
|
+
estimatedRemainingMs?: number;
|
|
37
|
+
heartbeatIntervalMs: number;
|
|
38
|
+
staleAfterMs: number;
|
|
39
|
+
logPath?: string;
|
|
40
|
+
outputPath?: string;
|
|
41
|
+
workflowRunId?: string;
|
|
42
|
+
hasOutput: boolean;
|
|
43
|
+
result?: "pass" | "fail" | "partial" | "cancelled" | "timeout" | "stale";
|
|
44
|
+
cancelState?: "abort_signal_sent" | "marked_stale" | "confirmed_exited";
|
|
45
|
+
cancelRequestedAt?: string;
|
|
46
|
+
confirmedExitedAt?: string;
|
|
47
|
+
userVisibleSummary: string;
|
|
48
|
+
nextAction?: string;
|
|
49
|
+
};
|
|
50
|
+
export type WorkflowStepState = {
|
|
51
|
+
id: string;
|
|
52
|
+
title: string;
|
|
53
|
+
status: "queued" | "running" | "completed" | "partial" | "failed" | "blocked" | "cancelled" | "stale";
|
|
54
|
+
runtime: "agent" | "job" | "verification" | "details";
|
|
55
|
+
summary?: string;
|
|
56
|
+
evidenceRefs: string[];
|
|
57
|
+
dependsOnSliceIds?: string[];
|
|
58
|
+
independent?: boolean;
|
|
59
|
+
canRunInParallel?: boolean;
|
|
60
|
+
batchId?: string;
|
|
61
|
+
startedAt?: string;
|
|
62
|
+
endedAt?: string;
|
|
63
|
+
};
|
|
64
|
+
export type CheckpointState = {
|
|
65
|
+
id: string;
|
|
66
|
+
sessionId: string;
|
|
67
|
+
createdAt: string;
|
|
68
|
+
reason: string;
|
|
69
|
+
changedFiles: string[];
|
|
70
|
+
restoreKind: "git" | "snapshot";
|
|
71
|
+
restorable?: boolean;
|
|
72
|
+
restoreUnavailableReason?: string;
|
|
73
|
+
files: {
|
|
74
|
+
path: string;
|
|
75
|
+
existed: boolean;
|
|
76
|
+
content?: string;
|
|
77
|
+
}[];
|
|
78
|
+
};
|
|
79
|
+
export type EvidenceRecord = {
|
|
80
|
+
id: string;
|
|
81
|
+
kind: "file_read" | "grep_result" | "index_query" | "command_output" | "test_result" | "web_source" | "vision_observation" | "image_result" | "user_provided";
|
|
82
|
+
summary: string;
|
|
83
|
+
source: string;
|
|
84
|
+
fullOutputPath?: string;
|
|
85
|
+
outputPath?: string;
|
|
86
|
+
logPath?: string;
|
|
87
|
+
supportsClaims: string[];
|
|
88
|
+
createdAt: string;
|
|
89
|
+
};
|
|
90
|
+
export type VerificationStepKind = "test" | "typecheck" | "build" | "lint" | "smoke";
|
|
91
|
+
export type VerificationStep = {
|
|
92
|
+
kind: VerificationStepKind;
|
|
93
|
+
command: string;
|
|
94
|
+
reason: string;
|
|
95
|
+
synthetic?: boolean;
|
|
96
|
+
};
|
|
97
|
+
export type VerificationRuntimeStatus = "pass" | "fail" | "partial" | "skipped" | "cancelled" | "timeout" | "stale";
|
|
98
|
+
export type VerificationCommandResult = VerificationStep & {
|
|
99
|
+
status: VerificationRuntimeStatus;
|
|
100
|
+
exitCode?: number;
|
|
101
|
+
durationMs: number;
|
|
102
|
+
logPath?: string;
|
|
103
|
+
summary: string;
|
|
104
|
+
runnerError?: string;
|
|
105
|
+
};
|
|
106
|
+
export type VerificationReport = {
|
|
107
|
+
id: string;
|
|
108
|
+
status: Exclude<VerificationRuntimeStatus, "skipped">;
|
|
109
|
+
summary: string;
|
|
110
|
+
commands: VerificationCommandResult[];
|
|
111
|
+
unverified: string[];
|
|
112
|
+
risk: string[];
|
|
113
|
+
logPath?: string;
|
|
114
|
+
startedAt: string;
|
|
115
|
+
endedAt: string;
|
|
116
|
+
durationMs: number;
|
|
117
|
+
nextAction: string;
|
|
118
|
+
};
|
|
119
|
+
export type CacheHistoryConfig = {
|
|
120
|
+
maxTurns: number;
|
|
121
|
+
warnBelowHitRate: number;
|
|
122
|
+
persistPath: string;
|
|
123
|
+
hintsMuted: boolean;
|
|
124
|
+
};
|
|
125
|
+
export type LightHint = {
|
|
126
|
+
id: string;
|
|
127
|
+
severity: "info" | "warning";
|
|
128
|
+
priority: number;
|
|
129
|
+
message: string;
|
|
130
|
+
suggestedCommand: string;
|
|
131
|
+
dedupeKey: string;
|
|
132
|
+
cooldownMs: number;
|
|
133
|
+
};
|
|
134
|
+
export type CacheState = {
|
|
135
|
+
config: CacheHistoryConfig;
|
|
136
|
+
history: CacheTurnStats[];
|
|
137
|
+
nextTurn: number;
|
|
138
|
+
lastFreshness?: CacheFreshness;
|
|
139
|
+
hintLastShownAt: Record<string, number>;
|
|
140
|
+
compacted: boolean;
|
|
141
|
+
compactBoundaries: CompactBoundary[];
|
|
142
|
+
compactProjection?: CompactProjection;
|
|
143
|
+
deepCompact?: DeepCompactPacket;
|
|
144
|
+
compactPressure?: CompactPressureSnapshot;
|
|
145
|
+
compactFailure?: CompactFailureState;
|
|
146
|
+
compactCooldownUntil?: number;
|
|
147
|
+
deepCompactCooldownUntil?: number;
|
|
148
|
+
workspaceReference: WorkspaceReferenceCache;
|
|
149
|
+
startedAt: number;
|
|
150
|
+
};
|
|
151
|
+
export type CompactProjection = {
|
|
152
|
+
boundaryId: string;
|
|
153
|
+
createdAt: string;
|
|
154
|
+
summary: string;
|
|
155
|
+
pressureRatio: number;
|
|
156
|
+
preCompactChars: number;
|
|
157
|
+
postCompactChars: number;
|
|
158
|
+
discardedRange: string;
|
|
159
|
+
toolPairingSafe: boolean;
|
|
160
|
+
risks: string[];
|
|
161
|
+
evidenceRefs: string[];
|
|
162
|
+
};
|
|
163
|
+
export type DeepCompactTrigger = "manual" | "request" | "continuation" | "final" | "agent-child" | "workflow";
|
|
164
|
+
export type DeepCompactPacket = {
|
|
165
|
+
id: string;
|
|
166
|
+
kind: "deep";
|
|
167
|
+
scope: "full transcript semantic compact";
|
|
168
|
+
summary: string;
|
|
169
|
+
preservedEvidenceRefs: string[];
|
|
170
|
+
preservedFiles: string[];
|
|
171
|
+
activeAgentsWorkflows: string[];
|
|
172
|
+
needsAttentionAgentsWorkflows?: string[];
|
|
173
|
+
staleResumableAgentsWorkflows?: string[];
|
|
174
|
+
pendingItems: string[];
|
|
175
|
+
decisions: string[];
|
|
176
|
+
risks: string[];
|
|
177
|
+
createdAt: string;
|
|
178
|
+
model: string;
|
|
179
|
+
provider: string;
|
|
180
|
+
trigger: DeepCompactTrigger;
|
|
181
|
+
transcriptEventCount: number;
|
|
182
|
+
};
|
|
183
|
+
export type CompactPressureSnapshot = {
|
|
184
|
+
estimatedChars: number;
|
|
185
|
+
maxChars: number;
|
|
186
|
+
triggerChars: number;
|
|
187
|
+
ratio: number;
|
|
188
|
+
toolPairingSafe: boolean;
|
|
189
|
+
updatedAt: string;
|
|
190
|
+
};
|
|
191
|
+
export type CompactFailureState = {
|
|
192
|
+
at: string;
|
|
193
|
+
reason: string;
|
|
194
|
+
blocked: boolean;
|
|
195
|
+
cooldownUntil: string;
|
|
196
|
+
};
|
|
197
|
+
export type McpServerState = {
|
|
198
|
+
name: string;
|
|
199
|
+
command: string;
|
|
200
|
+
status: "configured" | "disabled" | "missing" | "error";
|
|
201
|
+
error?: string;
|
|
202
|
+
};
|
|
203
|
+
export type McpToolState = {
|
|
204
|
+
server: string;
|
|
205
|
+
name: string;
|
|
206
|
+
description: string;
|
|
207
|
+
discovery?: "discovered" | "placeholder";
|
|
208
|
+
trusted?: boolean;
|
|
209
|
+
schemaLoaded?: boolean;
|
|
210
|
+
runtimeVersion?: "compatible" | "unknown";
|
|
211
|
+
};
|
|
212
|
+
export type McpState = {
|
|
213
|
+
enabled: boolean;
|
|
214
|
+
servers: McpServerState[];
|
|
215
|
+
tools: McpToolState[];
|
|
216
|
+
lastDoctor?: string;
|
|
217
|
+
};
|
|
218
|
+
export type VerdictScope = "focused" | "full-test" | "mock" | "journey" | "live-provider" | "real-tui" | "beta" | "release";
|
|
219
|
+
export type VerdictStatus = "PASS" | "PARTIAL" | "FAIL" | "SKIPPED";
|
|
220
|
+
export type VerdictEvidenceScope = {
|
|
221
|
+
scope: VerdictScope;
|
|
222
|
+
status: VerdictStatus;
|
|
223
|
+
evidenceRefs: string[];
|
|
224
|
+
validationCommands: string[];
|
|
225
|
+
uncoveredItems: string[];
|
|
226
|
+
residualRisks: string[];
|
|
227
|
+
nextAction: string;
|
|
228
|
+
};
|
|
229
|
+
export type HandoffPacket = {
|
|
230
|
+
id: string;
|
|
231
|
+
sessionId: string;
|
|
232
|
+
projectPath: string;
|
|
233
|
+
parentSessionId?: string;
|
|
234
|
+
currentPhase: string;
|
|
235
|
+
nextPhase: string;
|
|
236
|
+
phaseStatus: "pending" | "in_progress" | "completed" | "blocked";
|
|
237
|
+
goal: string;
|
|
238
|
+
completed: string[];
|
|
239
|
+
pending: string[];
|
|
240
|
+
mustNotDo: string[];
|
|
241
|
+
todos: TodoItem[];
|
|
242
|
+
keyFiles: string[];
|
|
243
|
+
changedFiles: string[];
|
|
244
|
+
evidenceRefs: Array<Pick<EvidenceRecord, "id" | "kind" | "source" | "summary">>;
|
|
245
|
+
verdictEvidence: VerdictEvidenceScope;
|
|
246
|
+
verification: VerificationReport | null;
|
|
247
|
+
risks: string[];
|
|
248
|
+
indexStatus: Pick<IndexState, "projectName" | "status" | "nodes" | "edges" | "changedFiles" | "staleHint">;
|
|
249
|
+
permissionMode: PermissionMode;
|
|
250
|
+
modelProvider: {
|
|
251
|
+
provider: string;
|
|
252
|
+
model: string;
|
|
253
|
+
};
|
|
254
|
+
recentCommit: string;
|
|
255
|
+
budgetUsage: string;
|
|
256
|
+
createdAt: string;
|
|
257
|
+
generatedBy: string;
|
|
258
|
+
solutionCompleteness?: SolutionCompletenessStatus;
|
|
259
|
+
currentArchitectureCard?: ArchitectureCardSummary;
|
|
260
|
+
};
|
|
261
|
+
export type AgentType = "explorer" | "worker" | "verifier" | "planner";
|
|
262
|
+
export type AgentMailboxMessage = {
|
|
263
|
+
id: string;
|
|
264
|
+
from: "user" | "model" | "workflow" | "system";
|
|
265
|
+
to: string;
|
|
266
|
+
text: string;
|
|
267
|
+
createdAt: string;
|
|
268
|
+
status: "pending" | "consumed" | "failed";
|
|
269
|
+
summary: string;
|
|
270
|
+
kind?: "message" | "task";
|
|
271
|
+
taskId?: string;
|
|
272
|
+
consumedAt?: string;
|
|
273
|
+
failedAt?: string;
|
|
274
|
+
error?: string;
|
|
275
|
+
};
|
|
276
|
+
export type AgentSharedTask = {
|
|
277
|
+
id: string;
|
|
278
|
+
summary: string;
|
|
279
|
+
assignedBy: AgentMailboxMessage["from"];
|
|
280
|
+
assignedAt: string;
|
|
281
|
+
status: "assigned" | "running" | "blocked" | "completed" | "cancelled";
|
|
282
|
+
messageId?: string;
|
|
283
|
+
completedAt?: string;
|
|
284
|
+
resultSummary?: string;
|
|
285
|
+
};
|
|
286
|
+
export type RoleUsage = {
|
|
287
|
+
role: ModelRole;
|
|
288
|
+
provider: string;
|
|
289
|
+
model: string;
|
|
290
|
+
inputTokens: number;
|
|
291
|
+
outputTokens: number;
|
|
292
|
+
cacheReadTokens: number;
|
|
293
|
+
cacheWriteTokens: number;
|
|
294
|
+
estimatedCny: number;
|
|
295
|
+
createdAt: string;
|
|
296
|
+
durationMs?: number;
|
|
297
|
+
fallbackUsed: boolean;
|
|
298
|
+
budgetStop: boolean;
|
|
299
|
+
contributionSummary: string;
|
|
300
|
+
};
|
|
301
|
+
export type RoleRouteDecision = {
|
|
302
|
+
id: string;
|
|
303
|
+
triggerReason: string;
|
|
304
|
+
role: ModelRole;
|
|
305
|
+
selectedProvider: string;
|
|
306
|
+
selectedModel: string;
|
|
307
|
+
fallbackCandidates: string[];
|
|
308
|
+
requiredCapabilities: ModelCapability[];
|
|
309
|
+
maxCostCny?: number;
|
|
310
|
+
stopConditions: string[];
|
|
311
|
+
repairSuggestions: string[];
|
|
312
|
+
fallbackUsed: boolean;
|
|
313
|
+
budgetStop: boolean;
|
|
314
|
+
createdAt: string;
|
|
315
|
+
};
|
|
316
|
+
export type ResolvedRoleRoute = {
|
|
317
|
+
route: RoleModelRoute;
|
|
318
|
+
decision: RoleRouteDecision;
|
|
319
|
+
usable: boolean;
|
|
320
|
+
};
|
|
321
|
+
export type RoleHandoff = {
|
|
322
|
+
from: ModelRole;
|
|
323
|
+
to: ModelRole;
|
|
324
|
+
taskId: string;
|
|
325
|
+
summary: string;
|
|
326
|
+
evidence: Array<Pick<EvidenceRecord, "id" | "kind" | "source" | "summary">>;
|
|
327
|
+
changedFiles: string[];
|
|
328
|
+
keyFiles: string[];
|
|
329
|
+
diffSummary?: DiffSummary;
|
|
330
|
+
verificationReport?: VerificationReport;
|
|
331
|
+
notIncluded: string[];
|
|
332
|
+
};
|
|
333
|
+
export type VisionObservation = {
|
|
334
|
+
id: string;
|
|
335
|
+
source: "image" | "screenshot" | "design" | "browser-capture";
|
|
336
|
+
model: string;
|
|
337
|
+
provider: string;
|
|
338
|
+
summary: string;
|
|
339
|
+
extractedText: string[];
|
|
340
|
+
uiRegions: string[];
|
|
341
|
+
suspectedFiles: string[];
|
|
342
|
+
confidence: number;
|
|
343
|
+
evidenceRefs: Array<Pick<EvidenceRecord, "id" | "kind" | "source" | "summary">>;
|
|
344
|
+
createdAt: string;
|
|
345
|
+
};
|
|
346
|
+
export type ImageGenerationResult = {
|
|
347
|
+
id: string;
|
|
348
|
+
provider: string;
|
|
349
|
+
model: string;
|
|
350
|
+
images: Array<{
|
|
351
|
+
path: string;
|
|
352
|
+
mimeType: string;
|
|
353
|
+
revisedPrompt?: string;
|
|
354
|
+
}>;
|
|
355
|
+
usage?: RoleUsage;
|
|
356
|
+
evidenceRefs: Array<Pick<EvidenceRecord, "id" | "kind" | "source" | "summary">>;
|
|
357
|
+
createdAt: string;
|
|
358
|
+
};
|
|
359
|
+
export type AgentCompletionStatus = "completed" | "failed" | "blocked" | "cancelled" | "stale";
|
|
360
|
+
export type AgentCompletionValidity = "valid" | "partial" | "invalid";
|
|
361
|
+
export type AgentCompletionNotice = {
|
|
362
|
+
id: string;
|
|
363
|
+
agentId: string;
|
|
364
|
+
agentType: AgentType;
|
|
365
|
+
agentRole: ModelRole;
|
|
366
|
+
displayName?: string;
|
|
367
|
+
teamName?: string;
|
|
368
|
+
parentSessionId?: string;
|
|
369
|
+
workflowRunId?: string;
|
|
370
|
+
task: string;
|
|
371
|
+
status: AgentCompletionStatus;
|
|
372
|
+
validity: AgentCompletionValidity;
|
|
373
|
+
summary: string;
|
|
374
|
+
evidenceRefs: string[];
|
|
375
|
+
nextAction: string;
|
|
376
|
+
createdAt: string;
|
|
377
|
+
updatedAt: string;
|
|
378
|
+
reportedAt?: string;
|
|
379
|
+
};
|
|
380
|
+
export type AgentCompletionBatchSummary = {
|
|
381
|
+
id: string;
|
|
382
|
+
scopeKey: string;
|
|
383
|
+
teamName?: string;
|
|
384
|
+
parentSessionId?: string;
|
|
385
|
+
workflowRunId?: string;
|
|
386
|
+
total: number;
|
|
387
|
+
valid: number;
|
|
388
|
+
partial: number;
|
|
389
|
+
invalid: number;
|
|
390
|
+
completed: number;
|
|
391
|
+
failed: number;
|
|
392
|
+
blocked: number;
|
|
393
|
+
stale: number;
|
|
394
|
+
cancelled: number;
|
|
395
|
+
evidenceRefs: string[];
|
|
396
|
+
summary: string;
|
|
397
|
+
createdAt: string;
|
|
398
|
+
};
|
|
399
|
+
export type AgentCompletionState = {
|
|
400
|
+
notices: AgentCompletionNotice[];
|
|
401
|
+
batchSummaries: AgentCompletionBatchSummary[];
|
|
402
|
+
lastNotificationAt: Record<string, number>;
|
|
403
|
+
reportedNoticeIds: string[];
|
|
404
|
+
};
|
|
405
|
+
export type AgentRun = {
|
|
406
|
+
id: string;
|
|
407
|
+
type: AgentType;
|
|
408
|
+
displayName?: string;
|
|
409
|
+
addressableName?: string;
|
|
410
|
+
teamName?: string;
|
|
411
|
+
role: ModelRole;
|
|
412
|
+
provider: string;
|
|
413
|
+
parentSessionId?: string;
|
|
414
|
+
forkedFrom?: string;
|
|
415
|
+
task: string;
|
|
416
|
+
model: string;
|
|
417
|
+
registryAgentId?: string;
|
|
418
|
+
allowedTools?: ToolName[];
|
|
419
|
+
maxTurns?: number;
|
|
420
|
+
permissionMode: PermissionMode;
|
|
421
|
+
status: "running" | "idle" | "completed" | "failed" | "blocked" | "cancelled" | "stale";
|
|
422
|
+
lastTerminalStatus?: "completed" | "failed" | "blocked";
|
|
423
|
+
activityStatus?: "processing" | "idle" | "waiting_mailbox" | "blocked" | "cancelled" | "completed";
|
|
424
|
+
activitySummary?: string;
|
|
425
|
+
activeTask?: AgentSharedTask;
|
|
426
|
+
lastResultSummary?: string;
|
|
427
|
+
lastResultFullReport?: string;
|
|
428
|
+
transcriptPath: string;
|
|
429
|
+
transcriptSessionId: string;
|
|
430
|
+
mailbox: AgentMailboxMessage[];
|
|
431
|
+
cwd?: string;
|
|
432
|
+
isolation?: "worktree";
|
|
433
|
+
cancelTokenId?: string;
|
|
434
|
+
heartbeatAt?: string;
|
|
435
|
+
staleReason?: string;
|
|
436
|
+
summary: string;
|
|
437
|
+
contextSummary: string;
|
|
438
|
+
cost: {
|
|
439
|
+
inputTokens: number;
|
|
440
|
+
outputTokens: number;
|
|
441
|
+
cacheReadTokens: number;
|
|
442
|
+
cacheWriteTokens: number;
|
|
443
|
+
estimatedCny: number;
|
|
444
|
+
};
|
|
445
|
+
startedAt: string;
|
|
446
|
+
updatedAt: string;
|
|
447
|
+
};
|
|
448
|
+
export type DurableJobStatus = "created" | "running" | "sleeping" | "blocked" | "stale" | "cancelled" | "timeout" | "completed" | "failed";
|
|
449
|
+
export type DurableJobAgentStatus = "created" | "running" | "queued" | "sleeping" | "skipped" | "budget_limited" | "resource_limited" | "blocked" | "stale" | "cancelled" | "timeout" | "completed" | "failed";
|
|
450
|
+
export type DurableJobAgent = {
|
|
451
|
+
id: string;
|
|
452
|
+
type: AgentType;
|
|
453
|
+
displayName?: string;
|
|
454
|
+
goal: string;
|
|
455
|
+
task?: string;
|
|
456
|
+
status: DurableJobAgentStatus;
|
|
457
|
+
runId?: string;
|
|
458
|
+
statusReason?: string;
|
|
459
|
+
budgetTokens: number;
|
|
460
|
+
owner?: string;
|
|
461
|
+
heartbeatAt?: string;
|
|
462
|
+
scheduledAt?: string;
|
|
463
|
+
startedAt?: string;
|
|
464
|
+
endedAt?: string;
|
|
465
|
+
summary?: string;
|
|
466
|
+
resultSummary?: string;
|
|
467
|
+
resultFullReport?: string;
|
|
468
|
+
};
|
|
469
|
+
export type NativeRunnerResolutionStatus = "disabled" | "unavailable" | "available" | "protocol_mismatch";
|
|
470
|
+
export type NativeRunnerLifecycleStatus = "node_fallback" | "starting" | "running" | "completed" | "failed" | "timeout" | "cancelled" | "stale" | "protocol_mismatch" | "unavailable";
|
|
471
|
+
export type ApprovedRunnerJobSpec = {
|
|
472
|
+
id: string;
|
|
473
|
+
approvedTaskKind: "durable_job_supervisor";
|
|
474
|
+
cwd: string;
|
|
475
|
+
envAllowlist: string[];
|
|
476
|
+
redactedEnvRefs: string[];
|
|
477
|
+
timeoutMs: number;
|
|
478
|
+
logPaths: {
|
|
479
|
+
state: string;
|
|
480
|
+
stdout: string;
|
|
481
|
+
stderr: string;
|
|
482
|
+
jobLog: string;
|
|
483
|
+
fullOutput: string;
|
|
484
|
+
report: string;
|
|
485
|
+
};
|
|
486
|
+
expectedProtocol: string;
|
|
487
|
+
permissionRef: PermissionMode;
|
|
488
|
+
evidenceRefs: string[];
|
|
489
|
+
runnerRoot: string;
|
|
490
|
+
};
|
|
491
|
+
export type DurableJobState = {
|
|
492
|
+
id: string;
|
|
493
|
+
goal: string;
|
|
494
|
+
projectPath: string;
|
|
495
|
+
phase: string;
|
|
496
|
+
target: string;
|
|
497
|
+
plan: string[];
|
|
498
|
+
budget: {
|
|
499
|
+
maxTokens: number;
|
|
500
|
+
maxRunningAgents: number;
|
|
501
|
+
maxSteps: number;
|
|
502
|
+
note: string;
|
|
503
|
+
usedTokens?: number;
|
|
504
|
+
remainingTokens?: number;
|
|
505
|
+
usedSteps?: number;
|
|
506
|
+
maxRuntimeMs?: number;
|
|
507
|
+
explicit?: {
|
|
508
|
+
tokens?: boolean;
|
|
509
|
+
steps?: boolean;
|
|
510
|
+
runtime?: boolean;
|
|
511
|
+
};
|
|
512
|
+
};
|
|
513
|
+
effectiveAgentCap?: number;
|
|
514
|
+
capReason?: string;
|
|
515
|
+
timeoutMs: number;
|
|
516
|
+
permissionPolicy: PermissionMode;
|
|
517
|
+
allowEdit: boolean;
|
|
518
|
+
allowBash: boolean;
|
|
519
|
+
allowMultiAgent: boolean;
|
|
520
|
+
isolation?: "worktree";
|
|
521
|
+
status: DurableJobStatus;
|
|
522
|
+
pauseReason?: string;
|
|
523
|
+
agents: DurableJobAgent[];
|
|
524
|
+
handoffPacket?: HandoffPacket;
|
|
525
|
+
createdAt: string;
|
|
526
|
+
updatedAt: string;
|
|
527
|
+
startedAt?: string;
|
|
528
|
+
endedAt?: string;
|
|
529
|
+
logPath: string;
|
|
530
|
+
reportPath: string;
|
|
531
|
+
fullOutputPath: string;
|
|
532
|
+
evidenceRefs: Array<Pick<EvidenceRecord, "id" | "kind" | "source" | "summary">>;
|
|
533
|
+
verification?: {
|
|
534
|
+
status: "not_run" | "pass" | "fail" | "partial";
|
|
535
|
+
summary: string;
|
|
536
|
+
};
|
|
537
|
+
runner?: {
|
|
538
|
+
enabled: boolean;
|
|
539
|
+
status: NativeRunnerLifecycleStatus;
|
|
540
|
+
resolution: NativeRunnerResolutionStatus;
|
|
541
|
+
adapter: "native" | "node";
|
|
542
|
+
protocol?: string;
|
|
543
|
+
version?: string;
|
|
544
|
+
pathRef?: string;
|
|
545
|
+
spec?: ApprovedRunnerJobSpec;
|
|
546
|
+
startedAt?: string;
|
|
547
|
+
updatedAt: string;
|
|
548
|
+
completedAt?: string;
|
|
549
|
+
heartbeatAt?: string;
|
|
550
|
+
logRefs?: {
|
|
551
|
+
state: string;
|
|
552
|
+
stdout: string;
|
|
553
|
+
stderr: string;
|
|
554
|
+
};
|
|
555
|
+
lastError?: string;
|
|
556
|
+
fallbackReason?: string;
|
|
557
|
+
nextAction: string;
|
|
558
|
+
};
|
|
559
|
+
ownerSessionId?: string;
|
|
560
|
+
ownerPid?: number;
|
|
561
|
+
heartbeatAt?: string;
|
|
562
|
+
worker?: {
|
|
563
|
+
sessionId?: string;
|
|
564
|
+
status: "not_started" | "running" | "completed" | "blocked" | "timeout" | "failed" | "stale";
|
|
565
|
+
startedAt?: string;
|
|
566
|
+
endedAt?: string;
|
|
567
|
+
currentStep?: number;
|
|
568
|
+
completedSteps?: number;
|
|
569
|
+
summary: string;
|
|
570
|
+
};
|
|
571
|
+
result?: {
|
|
572
|
+
status: "partial" | "blocked" | "stale" | "timeout" | "overbudget" | "failed" | "cancelled";
|
|
573
|
+
summary: string;
|
|
574
|
+
facts: string[];
|
|
575
|
+
evidenceRefs: string[];
|
|
576
|
+
generatedAt: string;
|
|
577
|
+
};
|
|
578
|
+
adoptedConclusions: string[];
|
|
579
|
+
rejectedConclusions: string[];
|
|
580
|
+
};
|
|
581
|
+
export type RemoteEventStatus = "pending" | "sent" | "failed" | "expired" | "rejected" | "approved" | "blocked" | "mock";
|
|
582
|
+
export type RemoteChannelRuntimeStatus = "disabled" | "blocked" | "ready";
|
|
583
|
+
export type RemoteChannelState = {
|
|
584
|
+
id: string;
|
|
585
|
+
config: RemoteChannelConfig;
|
|
586
|
+
runtimeStatus: RemoteChannelRuntimeStatus;
|
|
587
|
+
bindingStatus: "bound" | "unbound";
|
|
588
|
+
transportStatus: "ready" | "missing" | "not_configured" | "mock" | "unknown";
|
|
589
|
+
lastError?: string;
|
|
590
|
+
nextAction: string;
|
|
591
|
+
};
|
|
592
|
+
export type RemoteEvent = {
|
|
593
|
+
id: string;
|
|
594
|
+
channel: string;
|
|
595
|
+
eventType: RemoteEventType;
|
|
596
|
+
createdAt: string;
|
|
597
|
+
expiresAt: string;
|
|
598
|
+
nonce: string;
|
|
599
|
+
messageId: string;
|
|
600
|
+
source: string;
|
|
601
|
+
redactedSummary: string;
|
|
602
|
+
refs: string[];
|
|
603
|
+
status: RemoteEventStatus;
|
|
604
|
+
deliveryDetail?: string;
|
|
605
|
+
};
|
|
606
|
+
export type RemoteApprovalMessage = {
|
|
607
|
+
eventId: string;
|
|
608
|
+
channel: string;
|
|
609
|
+
messageId: string;
|
|
610
|
+
nonce: string;
|
|
611
|
+
source: string;
|
|
612
|
+
bindingUserId: string;
|
|
613
|
+
bindingDeviceId?: string;
|
|
614
|
+
signature?: string;
|
|
615
|
+
receivedAt?: string;
|
|
616
|
+
approve: boolean;
|
|
617
|
+
};
|
|
618
|
+
export type RemoteApprovalDecision = {
|
|
619
|
+
status: "approved" | "rejected" | "expired" | "unknown_source" | "wrong_binding" | "bad_signature" | "replayed" | "blocked";
|
|
620
|
+
summary: string;
|
|
621
|
+
evidenceCreated: false;
|
|
622
|
+
};
|
|
623
|
+
export type RemoteInboundKind = "approval_response" | "natural_language_message" | "status_query";
|
|
624
|
+
export type RemoteInboundMessage = {
|
|
625
|
+
kind: RemoteInboundKind;
|
|
626
|
+
channel: string;
|
|
627
|
+
messageId: string;
|
|
628
|
+
nonce: string;
|
|
629
|
+
source: string;
|
|
630
|
+
bindingUserId: string;
|
|
631
|
+
bindingDeviceId?: string;
|
|
632
|
+
signature?: string;
|
|
633
|
+
expiresAt: string;
|
|
634
|
+
receivedAt?: string;
|
|
635
|
+
origin?: "fixture" | "adapter";
|
|
636
|
+
eventId?: string;
|
|
637
|
+
approve?: boolean;
|
|
638
|
+
text?: string;
|
|
639
|
+
};
|
|
640
|
+
export type RemoteInboundStatus = "accepted" | "approved" | "rejected" | "expired" | "unknown_source" | "wrong_binding" | "bad_signature" | "replayed" | "channel_not_ready" | "inbound_disabled" | "no_pending_approval" | "blocked";
|
|
641
|
+
export type RemoteInboundDecision = {
|
|
642
|
+
kind: RemoteInboundKind;
|
|
643
|
+
status: RemoteInboundStatus;
|
|
644
|
+
summary: string;
|
|
645
|
+
routedText?: string;
|
|
646
|
+
evidenceCreated: false;
|
|
647
|
+
};
|
|
648
|
+
export type RemotePairingState = {
|
|
649
|
+
code: string;
|
|
650
|
+
channel: string;
|
|
651
|
+
source: string;
|
|
652
|
+
projectPath: string;
|
|
653
|
+
sessionId: string;
|
|
654
|
+
createdAt: string;
|
|
655
|
+
expiresAt: string;
|
|
656
|
+
consumedMessageIds: string[];
|
|
657
|
+
status: "pending" | "bound" | "expired" | "cancelled";
|
|
658
|
+
};
|
|
659
|
+
export type RemoteInboxItem = {
|
|
660
|
+
id: string;
|
|
661
|
+
channel: string;
|
|
662
|
+
messageId: string;
|
|
663
|
+
source: string;
|
|
664
|
+
bindingUserId: string;
|
|
665
|
+
text: string;
|
|
666
|
+
priority: "normal" | "interrupt";
|
|
667
|
+
reason: string;
|
|
668
|
+
createdAt: string;
|
|
669
|
+
sessionId?: string;
|
|
670
|
+
};
|
|
671
|
+
export type RemoteState = {
|
|
672
|
+
enabled: boolean;
|
|
673
|
+
channels: RemoteChannelState[];
|
|
674
|
+
events: RemoteEvent[];
|
|
675
|
+
processedMessageIds: string[];
|
|
676
|
+
sessionDisabledChannelIds: string[];
|
|
677
|
+
pairings: RemotePairingState[];
|
|
678
|
+
inbox: RemoteInboxItem[];
|
|
679
|
+
localReplBridge?: import("./remote-repl-bridge-runtime.js").ReplBridgeState;
|
|
680
|
+
localReplBridgeSocket?: import("./remote-repl-bridge-runtime.js").ReplBridgeSocketServer;
|
|
681
|
+
lastDoctor?: string;
|
|
682
|
+
lastApproval?: RemoteApprovalDecision;
|
|
683
|
+
};
|
|
684
|
+
export type MemoryScope = "project" | "user" | "session";
|
|
685
|
+
export type MemoryStatus = "candidate" | "accepted" | "rejected" | "disabled" | "retired";
|
|
686
|
+
export type MemoryTaxonomy = "user" | "feedback" | "project" | "reference";
|
|
687
|
+
export type MemoryCandidate = {
|
|
688
|
+
id: string;
|
|
689
|
+
scope: MemoryScope;
|
|
690
|
+
status: MemoryStatus;
|
|
691
|
+
taxonomy?: MemoryTaxonomy;
|
|
692
|
+
topic?: string;
|
|
693
|
+
summary: string;
|
|
694
|
+
source: string;
|
|
695
|
+
sourceRefs: string[];
|
|
696
|
+
risk: "low" | "medium" | "high";
|
|
697
|
+
inferred: boolean;
|
|
698
|
+
createdAt: string;
|
|
699
|
+
};
|
|
700
|
+
export type MemoryLearningRun = {
|
|
701
|
+
trigger: "manual" | "verification" | "handoff" | "evidence";
|
|
702
|
+
candidatesCreated: number;
|
|
703
|
+
acceptedCreated?: number;
|
|
704
|
+
acceptedUpdated?: number;
|
|
705
|
+
modelCalled: boolean;
|
|
706
|
+
skippedReason?: string;
|
|
707
|
+
createdAt: string;
|
|
708
|
+
};
|
|
709
|
+
export type MemoryLearningMode = "off" | "active";
|
|
710
|
+
export type MemoryLearningCategory = "preference" | "frequent_behavior" | "project_habit" | "collaboration_rule";
|
|
711
|
+
export type MemoryState = {
|
|
712
|
+
projectRulesPath: string;
|
|
713
|
+
projectRulesExists: boolean;
|
|
714
|
+
projectRulesSummary: string;
|
|
715
|
+
projectRulesError?: string;
|
|
716
|
+
projectRulesIncludedPaths?: string[];
|
|
717
|
+
projectRulesWarnings?: string[];
|
|
718
|
+
projectRulesTruncated?: boolean;
|
|
719
|
+
projectDir: string;
|
|
720
|
+
userDir: string;
|
|
721
|
+
sessionDir: string;
|
|
722
|
+
candidates: MemoryCandidate[];
|
|
723
|
+
accepted: MemoryCandidate[];
|
|
724
|
+
rejected: MemoryCandidate[];
|
|
725
|
+
disabled: MemoryCandidate[];
|
|
726
|
+
retired: MemoryCandidate[];
|
|
727
|
+
learningMode: MemoryLearningMode;
|
|
728
|
+
learningModeSource?: "default" | "persisted";
|
|
729
|
+
lastLearningRun?: MemoryLearningRun;
|
|
730
|
+
lastHandoff?: HandoffPacket;
|
|
731
|
+
lastResumeReadonly?: boolean;
|
|
732
|
+
};
|
|
733
|
+
export type FailureLearningCategory = "provider_failure" | "tool_failure" | "verification_failure" | "git_operation_failure" | "final_gate_downgrade" | "report_guard" | "resource_cap";
|
|
734
|
+
export type FailureLearningSeverity = "low" | "medium" | "high";
|
|
735
|
+
export type FailureLearningStatus = "active" | "resolved" | "ignored";
|
|
736
|
+
export type FailureLearningRecord = {
|
|
737
|
+
id: string;
|
|
738
|
+
createdAt: string;
|
|
739
|
+
lastSeen: string;
|
|
740
|
+
projectScope: string;
|
|
741
|
+
sourceRef: string;
|
|
742
|
+
category: FailureLearningCategory;
|
|
743
|
+
failureSummary: string;
|
|
744
|
+
rootCauseGuess: string;
|
|
745
|
+
inferred: boolean;
|
|
746
|
+
avoidNextTime: string;
|
|
747
|
+
relatedTarget?: string;
|
|
748
|
+
severity: FailureLearningSeverity;
|
|
749
|
+
dedupeHash: string;
|
|
750
|
+
count: number;
|
|
751
|
+
status: FailureLearningStatus;
|
|
752
|
+
};
|
|
753
|
+
export type FailureLearningState = {
|
|
754
|
+
directory: string;
|
|
755
|
+
projectScope: string;
|
|
756
|
+
records: FailureLearningRecord[];
|
|
757
|
+
degradedWarnings: string[];
|
|
758
|
+
};
|
|
759
|
+
export type ExtensionSource = "local" | "official" | "third-party";
|
|
760
|
+
export type ExtensionScope = "project" | "user";
|
|
761
|
+
export type ExtensionTrustLevel = "trusted" | "untrusted" | "disabled";
|
|
762
|
+
export type ExtensionLifecycleRecord = {
|
|
763
|
+
sourceUrl?: string;
|
|
764
|
+
localPath?: string;
|
|
765
|
+
ref?: string;
|
|
766
|
+
commit?: string;
|
|
767
|
+
installedAt?: string;
|
|
768
|
+
trustLevel: ExtensionTrustLevel;
|
|
769
|
+
permissionSummary: string;
|
|
770
|
+
discovered: boolean;
|
|
771
|
+
registered: boolean;
|
|
772
|
+
schemaLoaded: boolean;
|
|
773
|
+
runtimeVersion: "compatible" | "incompatible" | "unknown";
|
|
774
|
+
};
|
|
775
|
+
export type SkillSummary = {
|
|
776
|
+
id: string;
|
|
777
|
+
name: string;
|
|
778
|
+
description: string;
|
|
779
|
+
triggers: string[];
|
|
780
|
+
summary: string;
|
|
781
|
+
source: ExtensionSource;
|
|
782
|
+
scope: ExtensionScope;
|
|
783
|
+
path: string;
|
|
784
|
+
version: string;
|
|
785
|
+
enabled: boolean;
|
|
786
|
+
trusted: boolean;
|
|
787
|
+
permissions: string[];
|
|
788
|
+
mayWrite: boolean;
|
|
789
|
+
mayExecute: boolean;
|
|
790
|
+
mayNetwork: boolean;
|
|
791
|
+
lifecycle: ExtensionLifecycleRecord;
|
|
792
|
+
lastError?: string;
|
|
793
|
+
};
|
|
794
|
+
export type SkillEvolutionCandidate = {
|
|
795
|
+
id: string;
|
|
796
|
+
status: "candidate" | "rejected";
|
|
797
|
+
summary: string;
|
|
798
|
+
triggerCondition: string;
|
|
799
|
+
source: string;
|
|
800
|
+
risk: "low" | "medium" | "high";
|
|
801
|
+
suggestedPath: string;
|
|
802
|
+
createdAt: string;
|
|
803
|
+
};
|
|
804
|
+
export type SkillState = {
|
|
805
|
+
enabled: boolean;
|
|
806
|
+
projectDir: string;
|
|
807
|
+
userDir: string;
|
|
808
|
+
skills: SkillSummary[];
|
|
809
|
+
disabledIds: string[];
|
|
810
|
+
trustedIds: string[];
|
|
811
|
+
evolutionCandidates: SkillEvolutionCandidate[];
|
|
812
|
+
rejectedEvolutionCandidates: SkillEvolutionCandidate[];
|
|
813
|
+
lastError?: string;
|
|
814
|
+
};
|
|
815
|
+
export type WorkflowTemplate = {
|
|
816
|
+
id: string;
|
|
817
|
+
purpose: string;
|
|
818
|
+
risk: "low" | "medium" | "high";
|
|
819
|
+
writesFiles: boolean;
|
|
820
|
+
recommendedValidation: string[];
|
|
821
|
+
steps: string[];
|
|
822
|
+
};
|
|
823
|
+
export type WorkflowRunState = {
|
|
824
|
+
id: string;
|
|
825
|
+
goal: string;
|
|
826
|
+
planId: string;
|
|
827
|
+
status: "running" | "completed" | "partial" | "failed" | "blocked" | "cancelled" | "stale";
|
|
828
|
+
steps: WorkflowStepState[];
|
|
829
|
+
startedAt: string;
|
|
830
|
+
endedAt?: string;
|
|
831
|
+
result: "partial" | "failed" | "blocked" | "cancelled" | "stale";
|
|
832
|
+
/** Set to true when the user explicitly invoked /workflows run. */
|
|
833
|
+
phaseGateConfirmed?: boolean;
|
|
834
|
+
confirmedPhaseStopPoints?: string[];
|
|
835
|
+
/** True when this workflow wraps a multi-agent collaboration request. */
|
|
836
|
+
multiAgent?: boolean;
|
|
837
|
+
};
|
|
838
|
+
export type WorkflowState = {
|
|
839
|
+
enabled: boolean;
|
|
840
|
+
templates: WorkflowTemplate[];
|
|
841
|
+
disabledIds: string[];
|
|
842
|
+
lastStarted?: string;
|
|
843
|
+
activeRuns?: WorkflowRunState[];
|
|
844
|
+
activeRun?: WorkflowRunState;
|
|
845
|
+
};
|
|
846
|
+
export type HookSummary = {
|
|
847
|
+
id: string;
|
|
848
|
+
event: "PreToolUse" | "PostToolUse" | "Stop" | "Notification" | "Workflow" | "Plugin";
|
|
849
|
+
source: ExtensionSource;
|
|
850
|
+
scope: ExtensionScope;
|
|
851
|
+
path: string;
|
|
852
|
+
enabled: boolean;
|
|
853
|
+
trusted: boolean;
|
|
854
|
+
timeoutMs: number;
|
|
855
|
+
outputLimitBytes: number;
|
|
856
|
+
lastError?: string;
|
|
857
|
+
logPath?: string;
|
|
858
|
+
permissions: string[];
|
|
859
|
+
};
|
|
860
|
+
export type HookState = {
|
|
861
|
+
enabled: boolean;
|
|
862
|
+
projectTrusted: boolean;
|
|
863
|
+
timeoutMs: number;
|
|
864
|
+
outputLimitBytes: number;
|
|
865
|
+
hooks: HookSummary[];
|
|
866
|
+
recentErrors: string[];
|
|
867
|
+
};
|
|
868
|
+
export type PluginSummary = {
|
|
869
|
+
id: string;
|
|
870
|
+
name: string;
|
|
871
|
+
version: string;
|
|
872
|
+
description: string;
|
|
873
|
+
source: ExtensionSource;
|
|
874
|
+
scope: ExtensionScope;
|
|
875
|
+
path: string;
|
|
876
|
+
enabled: boolean;
|
|
877
|
+
trusted: boolean;
|
|
878
|
+
permissions: string[];
|
|
879
|
+
mayWrite: boolean;
|
|
880
|
+
mayExecute: boolean;
|
|
881
|
+
mayNetwork: boolean;
|
|
882
|
+
lifecycle: ExtensionLifecycleRecord;
|
|
883
|
+
contributions: {
|
|
884
|
+
commands: string[];
|
|
885
|
+
mcpServers: string[];
|
|
886
|
+
providers: string[];
|
|
887
|
+
hooks: string[];
|
|
888
|
+
workflows: string[];
|
|
889
|
+
skills: string[];
|
|
890
|
+
};
|
|
891
|
+
lastError?: string;
|
|
892
|
+
};
|
|
893
|
+
export type PluginState = {
|
|
894
|
+
enabled: boolean;
|
|
895
|
+
projectDir: string;
|
|
896
|
+
userDir: string;
|
|
897
|
+
plugins: PluginSummary[];
|
|
898
|
+
disabledIds: string[];
|
|
899
|
+
trustedIds: string[];
|
|
900
|
+
lastError?: string;
|
|
901
|
+
};
|
|
902
|
+
export type ProviderFailureSummary = {
|
|
903
|
+
code: string;
|
|
904
|
+
kind?: string;
|
|
905
|
+
provider: string;
|
|
906
|
+
model: string;
|
|
907
|
+
endpointProfile: string;
|
|
908
|
+
summary: string;
|
|
909
|
+
evidenceId: string;
|
|
910
|
+
createdAt: string;
|
|
911
|
+
};
|
|
912
|
+
export type ProviderFallbackAttemptSummary = {
|
|
913
|
+
fromProvider: string;
|
|
914
|
+
fromModel: string;
|
|
915
|
+
toProvider: string;
|
|
916
|
+
toModel: string;
|
|
917
|
+
reasonKind: string;
|
|
918
|
+
reasonCode: string;
|
|
919
|
+
status: "attempted" | "succeeded" | "failed";
|
|
920
|
+
summary: string;
|
|
921
|
+
createdAt: string;
|
|
922
|
+
};
|
|
923
|
+
//# sourceMappingURL=tui-data-types.d.ts.map
|