elanous 0.3.4 → 0.3.6
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/apps/pwa/out/404/index.html +1 -1
- package/apps/pwa/out/404.html +1 -1
- package/apps/pwa/out/_next/static/chunks/{128757ea.677175b2ad79b371.js → 03e0d6dd.700c7936da5b58dc.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/08c5076c.5caa59440568d9fd.js +122 -0
- package/apps/pwa/out/_next/static/chunks/1133.3801860878ce88b3.js +90 -0
- package/apps/pwa/out/_next/static/chunks/122.8b918db079a217b3.js +1 -0
- package/apps/pwa/out/_next/static/chunks/1262.382ab717777b7876.js +1 -0
- package/apps/pwa/out/_next/static/chunks/1282.b1839574a7174818.js +1 -0
- package/apps/pwa/out/_next/static/chunks/1289.90573260d680c2c4.js +104 -0
- package/apps/pwa/out/_next/static/chunks/1292.a5ad38120c4f4c91.js +8 -0
- package/apps/pwa/out/_next/static/chunks/13-a66d199eb241ebdd.js +1 -0
- package/apps/pwa/out/_next/static/chunks/1407.738fdf1a0494400e.js +62 -0
- package/apps/pwa/out/_next/static/chunks/{9546.3a0afc5d5fa0851d.js → 1544.b54c381a64374891.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/1626-e27033153bdeace1.js +1 -0
- package/apps/pwa/out/_next/static/chunks/1709-9d15a13770cf351e.js +1 -0
- package/apps/pwa/out/_next/static/chunks/174-48f4dbaadfd63cfe.js +1 -0
- package/apps/pwa/out/_next/static/chunks/1791.2d4dc98bb4477808.js +64 -0
- package/apps/pwa/out/_next/static/chunks/1895.8083fc998e96e187.js +115 -0
- package/apps/pwa/out/_next/static/chunks/20-e5b5cb74a2a5bb5d.js +1 -0
- package/apps/pwa/out/_next/static/chunks/{5456-e9f9027af2bb4799.js → 2081-daa5ad7b1b89adff.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/2097.0b609686216a65c5.js +1 -0
- package/apps/pwa/out/_next/static/chunks/2157-e5b53879e832dcaf.js +1 -0
- package/apps/pwa/out/_next/static/chunks/2195.309f603cd694b342.js +1 -0
- package/apps/pwa/out/_next/static/chunks/2264-db91ffbe7db2bec9.js +1 -0
- package/apps/pwa/out/_next/static/chunks/2514-c999158b591411cc.js +1 -0
- package/apps/pwa/out/_next/static/chunks/2534-57d4eb7a68b899ac.js +1 -0
- package/apps/pwa/out/_next/static/chunks/{8108.2cd332dff4f07acd.js → 2566.4bd6b4d466b415bf.js} +3 -3
- package/apps/pwa/out/_next/static/chunks/2769-b57dccc1a2780bc9.js +1 -0
- package/apps/pwa/out/_next/static/chunks/3145.a1fae3cb5ff3e38f.js +74 -0
- package/apps/pwa/out/_next/static/chunks/{6355.34fd60aca3e95acf.js → 3273.01f6a479510f3745.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/{5646.41a48aad446799fa.js → 332.dc6c432ef47a38bd.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/3334.22d96c812cd3499d.js +149 -0
- package/apps/pwa/out/_next/static/chunks/337.e243cda2c1de2d72.js +24 -0
- package/apps/pwa/out/_next/static/chunks/3399-2aa9d084ec2b4f91.js +1 -0
- package/apps/pwa/out/_next/static/chunks/3425-79876b2e27c2bf21.js +1 -0
- package/apps/pwa/out/_next/static/chunks/3567.f123fed09c981929.js +34 -0
- package/apps/pwa/out/_next/static/chunks/3578-1c7b5d1f3177154a.js +1 -0
- package/apps/pwa/out/_next/static/chunks/3652-baf6f94c7ab62f8b.js +1 -0
- package/apps/pwa/out/_next/static/chunks/3819-0819a0e58e075bc4.js +1 -0
- package/apps/pwa/out/_next/static/chunks/384.08e43ae443d798b7.js +1 -0
- package/apps/pwa/out/_next/static/chunks/392.88e4871679543f05.js +24 -0
- package/apps/pwa/out/_next/static/chunks/3955.a29bd2ca82a3b139.js +23 -0
- package/apps/pwa/out/_next/static/chunks/{3393.cbbe17ef7aeee5e7.js → 3970.3b0b5d94ea0b60cc.js} +2 -2
- package/apps/pwa/out/_next/static/chunks/4042.d51c4afd58eb3c9d.js +1 -0
- package/apps/pwa/out/_next/static/chunks/4053-4f494b4b77904727.js +1 -0
- package/apps/pwa/out/_next/static/chunks/4090.2ac256e4465ce23a.js +1 -0
- package/apps/pwa/out/_next/static/chunks/4171-341d135bb272be82.js +1 -0
- package/apps/pwa/out/_next/static/chunks/4231.6c49fe66b025f465.js +1 -0
- package/apps/pwa/out/_next/static/chunks/4317-d2132e3be869b36b.js +1 -0
- package/apps/pwa/out/_next/static/chunks/436.bdfc3533c90ab95b.js +1 -0
- package/apps/pwa/out/_next/static/chunks/{7816.4b8c0fa1e5b4ec4f.js → 4406.1c70154db26f6ca3.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/4469-361edcba09e0eb1b.js +1 -0
- package/apps/pwa/out/_next/static/chunks/4513.35e176155fcac151.js +1 -0
- package/apps/pwa/out/_next/static/chunks/4523.1de9ececca7bb35c.js +27 -0
- package/apps/pwa/out/_next/static/chunks/{1549.81d2a59aa303b629.js → 4743.202838e9e44d1890.js} +2 -2
- package/apps/pwa/out/_next/static/chunks/4762.cfb596785785a35d.js +79 -0
- package/apps/pwa/out/_next/static/chunks/4859.e5532ce5f6dfb5c9.js +32 -0
- package/apps/pwa/out/_next/static/chunks/5002-8af817fe59d06e9c.js +1 -0
- package/apps/pwa/out/_next/static/chunks/5015.9843edccbdec9dcc.js +94 -0
- package/apps/pwa/out/_next/static/chunks/5046-129cd38c01b0e1a6.js +1 -0
- package/apps/pwa/out/_next/static/chunks/5226.21335a67dbd6769b.js +226 -0
- package/apps/pwa/out/_next/static/chunks/{5892-6f0a1ee3c6c38173.js → 5268-60a68ca7fc42517d.js} +3 -3
- package/apps/pwa/out/_next/static/chunks/{6764.ec2d2cf14278c473.js → 5366.ebeeaf7de80d3ca9.js} +3 -3
- package/apps/pwa/out/_next/static/chunks/5411-713ef15cc7235cf6.js +1 -0
- package/apps/pwa/out/_next/static/chunks/5505-467d5b66c0f6604f.js +1 -0
- package/apps/pwa/out/_next/static/chunks/5665-700d710daec0a3a8.js +1 -0
- package/apps/pwa/out/_next/static/chunks/{6cd6be76.9d27e7414d939d53.js → 583d9398.977d3658a34faab6.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/584.760ea6f9640a2330.js +1 -0
- package/apps/pwa/out/_next/static/chunks/5846-91344971864969a6.js +1 -0
- package/apps/pwa/out/_next/static/chunks/5902.99e8a94fe5a52f2d.js +77 -0
- package/apps/pwa/out/_next/static/chunks/60-0bd459e227e19e2b.js +1 -0
- package/apps/pwa/out/_next/static/chunks/6039.6b54b0dbd98ce3d9.js +1 -0
- package/apps/pwa/out/_next/static/chunks/6048.7bbaec360ac24a83.js +36 -0
- package/apps/pwa/out/_next/static/chunks/6067-ee1f7f126eb7edba.js +1 -0
- package/apps/pwa/out/_next/static/chunks/6284.f8120f5daaea3e99.js +286 -0
- package/apps/pwa/out/_next/static/chunks/6299.ac4c5fb874605cb9.js +1 -0
- package/apps/pwa/out/_next/static/chunks/6397.7ea605814f73c962.js +148 -0
- package/apps/pwa/out/_next/static/chunks/6459.ddf3a045461f0277.js +1 -0
- package/apps/pwa/out/_next/static/chunks/6506.f32c4e8db47a4d04.js +41 -0
- package/apps/pwa/out/_next/static/chunks/{1004.b334bd3d776bd455.js → 6650.7c18ed630c8df5f6.js} +3 -3
- package/apps/pwa/out/_next/static/chunks/6672.dc8faf8315bed1ec.js +1 -0
- package/apps/pwa/out/_next/static/chunks/6720-9f2b574e2778c51e.js +1 -0
- package/apps/pwa/out/_next/static/chunks/6901.06042eea29545f49.js +1 -0
- package/apps/pwa/out/_next/static/chunks/6964-ddcc66e773813bb9.js +1 -0
- package/apps/pwa/out/_next/static/chunks/{d7c7394d.c015f14113d7faef.js → 70160b1f.e9b0c3183f852774.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/{f6a577ab-4b799b8c69e49cfd.js → 726ffad1-541c403c50188556.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/7370.5e62aa60f70eab3a.js +287 -0
- package/apps/pwa/out/_next/static/chunks/7398.0f969552779fc929.js +1 -0
- package/apps/pwa/out/_next/static/chunks/{5457-5459ae7638b42dff.js → 7463-2d9010477f346643.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/7616.90f498934db729c5.js +1 -0
- package/apps/pwa/out/_next/static/chunks/{482.52b487cbac96db29.js → 7636.a2019ded999e3313.js} +2 -2
- package/apps/pwa/out/_next/static/chunks/7679.fff5f504d80d8efa.js +1 -0
- package/apps/pwa/out/_next/static/chunks/{4578.04c77c13e3c62361.js → 7680.8a882f1e69f29d04.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/780.fef3f7eab136cfb2.js +1 -0
- package/apps/pwa/out/_next/static/chunks/{9039.03e40d9f9fd90920.js → 7913.111fcb6384514824.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/{49263d14.0a995d745de3f818.js → 79e58824.98894b54fea1ebeb.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/8053-787355829bcce0fc.js +1 -0
- package/apps/pwa/out/_next/static/chunks/81.14ce7dd1f5f076b5.js +1 -0
- package/apps/pwa/out/_next/static/chunks/8155-e80f82cd593d37e0.js +1 -0
- package/apps/pwa/out/_next/static/chunks/8173.4cdfbe651f7b5b42.js +1 -0
- package/apps/pwa/out/_next/static/chunks/818-4680f45366d9d817.js +1 -0
- package/apps/pwa/out/_next/static/chunks/8289.e422989d7d3a3b3e.js +1 -0
- package/apps/pwa/out/_next/static/chunks/8330-65b8ffc4adafddda.js +1 -0
- package/apps/pwa/out/_next/static/chunks/8347-9d4560fee007a4a7.js +1 -0
- package/apps/pwa/out/_next/static/chunks/8634-fa442da5f7bf2646.js +1 -0
- package/apps/pwa/out/_next/static/chunks/8641.2e059c30fc167758.js +1 -0
- package/apps/pwa/out/_next/static/chunks/8702.b18812eda87d0d96.js +1 -0
- package/apps/pwa/out/_next/static/chunks/{2538.f7b0fd1f3b0c2bff.js → 8868.53e897d2e917ba66.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/8991.ea9c4a7cd21e8ab0.js +1 -0
- package/apps/pwa/out/_next/static/chunks/{922c23f1.797bdf68f73f0488.js → 8d86c5fb.bb592b68be6b2dd1.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/{448.26b198f3b58cbcf9.js → 9041.fb24e17368fc7c0c.js} +2 -2
- package/apps/pwa/out/_next/static/chunks/9061-52f95217516a27ea.js +1 -0
- package/apps/pwa/out/_next/static/chunks/9147.5721390c3c3eb275.js +1 -0
- package/apps/pwa/out/_next/static/chunks/9288.92a602e56f3c3235.js +1 -0
- package/apps/pwa/out/_next/static/chunks/9384.eca46b93339ff473.js +1 -0
- package/apps/pwa/out/_next/static/chunks/9441-11ce6d0c0489a635.js +1 -0
- package/apps/pwa/out/_next/static/chunks/{8939.a14783a0a81e5e62.js → 9633.e6c9740bd6532344.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/9750-52fc8ea133cbdd10.js +1 -0
- package/apps/pwa/out/_next/static/chunks/9787-88bf04f4efec6a87.js +1 -0
- package/apps/pwa/out/_next/static/chunks/9866.26519d8848018524.js +1 -0
- package/apps/pwa/out/_next/static/chunks/{3130.69315cfa410b3cc7.js → 9932.53788b29e036cf7e.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/{7644.bdbfed1da174219e.js → 9948.c9ce32e9de4d6112.js} +2 -2
- package/apps/pwa/out/_next/static/chunks/9eb16190.04c6ae4915f4a9a3.js +1 -0
- package/apps/pwa/out/_next/static/chunks/{6fa80ede.7b05276e6be12b1d.js → ae5abe9f.937147329556d162.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/app/_not-found/page-47c27b54524c7fa5.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/approvals/page-9f612bc57ce11518.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/apps/page-8f42d3f8a3c479b2.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/board/page-fca38e9721b2e291.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/botlab/page-d76f695cc9aa66da.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/bots/page-6a4a92e785e30a96.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/ceo/page-489f91f71cc95c1f.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/chat/page-e26b02e36ed57ff7.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/consult/page-8b6d2222230d6681.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/control/page-b6d3b8924598e180.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/decisions/{page-9b16ae10bbe63997.js → page-99ae8ef441d501e1.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/app/design-check/page-e267c49dabb08ed1.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/editor/page-7f93783cd38fd2b4.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/exec/{page-cb640bac3150eb4c.js → page-ad71c7f877d1ade8.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/app/field/page-c46377fc61262679.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/healthz/route-47c27b54524c7fa5.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/inside/page-65d6902d87acd8ae.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/intake/page-07c809fa1f01af06.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/layout-f7f6914dfccec337.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/live/page-122697e5567e1ff3.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/live-run/page-49562e02f95095bc.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/loops/page-99ae848af2397c3d.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/market/{page-f331955e0ca9bf84.js → page-46d8a6d324c0e2f1.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/app/morning/page-de6f870e5608e6de.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/not-found-ea2df30943a87c71.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/observatory/page-98b024890b62cf3b.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/ops/checklist/{page-d34cea406f837407.js → page-c8f0e20b66b28ffa.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/app/ops/release/page-7c3611d8aad20b6b.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/ops/resources/{page-c2b69a4da710ccee.js → page-e28c2e5e4b09d07b.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/app/ops/seats/page-4c00dd145567e03c.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/outputs/page-04897c35a1b0f31c.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/page-cd3b5f3ffdd042f8.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/reflection/page-481cefac3cfae8e2.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/scheduler/page-5d4e9f1acd8a3e76.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/sessions/page-508eac8c609008c8.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/settings/devices/page-2647b6064ec03f6d.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/settings/page-06bd8804fb5461c0.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/setup/done/page-7f170c47d678308f.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/setup/layout-47c27b54524c7fa5.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/setup/page-2775bd94657214dd.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/share/page-3d4c64344a7849d1.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/showroom/page-35ecc675ece7f1b1.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/tasks/page-212690c5984d0bb5.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/term/page-c3ce5e2d8719a62d.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/today/page-20e0f8fd07394b92.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/trace/page-2e41cba602b85777.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/vault/page-cdfaf3c619b41ee3.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/workflows/chat-ui/{page-059b94e88f91e73f.js → page-3a0cad7feda4ba84.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/app/workflows/page-b548ef224f7a2c4e.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/workspace/page-840ebf9a8df1e608.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/worktrees/page-9c92234d0c6fc211.js +1 -0
- package/apps/pwa/out/_next/static/chunks/cefbab05-d77e78efac6f0805.js +1 -0
- package/apps/pwa/out/_next/static/chunks/{57af6223.b79d56584a040f84.js → d80a33eb.43d7188f45a1df0f.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/framework-e606293b68d3c2a4.js +1 -0
- package/apps/pwa/out/_next/static/chunks/main-4ee3ac293afcb363.js +1 -0
- package/apps/pwa/out/_next/static/chunks/main-app-fa9105027513fb32.js +1 -0
- package/apps/pwa/out/_next/static/chunks/pages/_app-259505853c97c4e1.js +1 -0
- package/apps/pwa/out/_next/static/chunks/pages/_error-9189a5f75b31099d.js +1 -0
- package/apps/pwa/out/_next/static/chunks/webpack-24fcc4e4a45c4fbb.js +1 -0
- package/apps/pwa/out/_next/static/css/694b79ddfe810a75.css +1 -0
- package/apps/pwa/out/_next/static/myEvhO9EDn1k6MAMqnQJd/_buildManifest.js +1 -0
- package/apps/pwa/out/_next/static/myEvhO9EDn1k6MAMqnQJd/_ssgManifest.js +1 -0
- package/apps/pwa/out/approvals/index.html +1 -1
- package/apps/pwa/out/approvals/index.txt +23 -23
- package/apps/pwa/out/apps/index.html +1 -0
- package/apps/pwa/out/apps/index.txt +33 -0
- package/apps/pwa/out/board/index.html +1 -1
- package/apps/pwa/out/board/index.txt +23 -23
- package/apps/pwa/out/botlab/index.html +1 -1
- package/apps/pwa/out/botlab/index.txt +22 -22
- package/apps/pwa/out/bots/index.html +1 -1
- package/apps/pwa/out/bots/index.txt +22 -22
- package/apps/pwa/out/ceo/index.html +1 -1
- package/apps/pwa/out/ceo/index.txt +23 -23
- package/apps/pwa/out/chat/index.html +1 -1
- package/apps/pwa/out/chat/index.txt +22 -22
- package/apps/pwa/out/consult/index.html +1 -1
- package/apps/pwa/out/consult/index.txt +23 -23
- package/apps/pwa/out/control/index.html +1 -1
- package/apps/pwa/out/control/index.txt +23 -23
- package/apps/pwa/out/decisions/index.html +1 -1
- package/apps/pwa/out/decisions/index.txt +22 -22
- package/apps/pwa/out/design-check/index.html +1 -1
- package/apps/pwa/out/design-check/index.txt +23 -23
- package/apps/pwa/out/editor/index.html +1 -1
- package/apps/pwa/out/editor/index.txt +23 -23
- package/apps/pwa/out/exec/index.html +1 -1
- package/apps/pwa/out/exec/index.txt +23 -23
- package/apps/pwa/out/field/index.html +1 -1
- package/apps/pwa/out/field/index.txt +23 -23
- package/apps/pwa/out/healthz +1 -1
- package/apps/pwa/out/index.html +1 -1
- package/apps/pwa/out/index.txt +22 -22
- package/apps/pwa/out/inside/index.html +1 -1
- package/apps/pwa/out/inside/index.txt +22 -22
- package/apps/pwa/out/intake/index.html +1 -1
- package/apps/pwa/out/intake/index.txt +23 -23
- package/apps/pwa/out/live/index.html +1 -1
- package/apps/pwa/out/live/index.txt +23 -23
- package/apps/pwa/out/live-run/index.html +1 -1
- package/apps/pwa/out/live-run/index.txt +23 -23
- package/apps/pwa/out/loops/index.html +1 -1
- package/apps/pwa/out/loops/index.txt +22 -22
- package/apps/pwa/out/market/index.html +1 -1
- package/apps/pwa/out/market/index.txt +22 -22
- package/apps/pwa/out/morning/index.html +1 -1
- package/apps/pwa/out/morning/index.txt +23 -23
- package/apps/pwa/out/observatory/index.html +1 -1
- package/apps/pwa/out/observatory/index.txt +23 -23
- package/apps/pwa/out/ops/checklist/index.html +1 -1
- package/apps/pwa/out/ops/checklist/index.txt +22 -22
- package/apps/pwa/out/ops/release/index.html +1 -1
- package/apps/pwa/out/ops/release/index.txt +22 -22
- package/apps/pwa/out/ops/resources/index.html +1 -1
- package/apps/pwa/out/ops/resources/index.txt +22 -22
- package/apps/pwa/out/ops/seats/index.html +1 -1
- package/apps/pwa/out/ops/seats/index.txt +22 -22
- package/apps/pwa/out/outputs/index.html +1 -1
- package/apps/pwa/out/outputs/index.txt +22 -22
- package/apps/pwa/out/reflection/index.html +1 -1
- package/apps/pwa/out/reflection/index.txt +23 -23
- package/apps/pwa/out/scheduler/index.html +1 -1
- package/apps/pwa/out/scheduler/index.txt +23 -23
- package/apps/pwa/out/sessions/index.html +1 -1
- package/apps/pwa/out/sessions/index.txt +22 -22
- package/apps/pwa/out/settings/devices/index.html +1 -1
- package/apps/pwa/out/settings/devices/index.txt +23 -23
- package/apps/pwa/out/settings/index.html +1 -1
- package/apps/pwa/out/settings/index.txt +23 -23
- package/apps/pwa/out/setup/done/index.html +1 -1
- package/apps/pwa/out/setup/done/index.txt +23 -23
- package/apps/pwa/out/setup/index.html +1 -1
- package/apps/pwa/out/setup/index.txt +23 -23
- package/apps/pwa/out/share/index.html +1 -1
- package/apps/pwa/out/share/index.txt +23 -23
- package/apps/pwa/out/showroom/index.html +1 -1
- package/apps/pwa/out/showroom/index.txt +22 -22
- package/apps/pwa/out/tasks/index.html +1 -1
- package/apps/pwa/out/tasks/index.txt +23 -23
- package/apps/pwa/out/term/index.html +1 -1
- package/apps/pwa/out/term/index.txt +23 -23
- package/apps/pwa/out/today/index.html +1 -1
- package/apps/pwa/out/today/index.txt +23 -23
- package/apps/pwa/out/trace/index.html +1 -1
- package/apps/pwa/out/trace/index.txt +23 -23
- package/apps/pwa/out/vault/index.html +1 -1
- package/apps/pwa/out/vault/index.txt +23 -23
- package/apps/pwa/out/workflows/chat-ui/index.html +1 -1
- package/apps/pwa/out/workflows/chat-ui/index.txt +23 -23
- package/apps/pwa/out/workflows/index.html +1 -1
- package/apps/pwa/out/workflows/index.txt +23 -23
- package/apps/pwa/out/workspace/index.html +1 -1
- package/apps/pwa/out/workspace/index.txt +23 -23
- package/apps/pwa/out/worktrees/index.html +1 -1
- package/apps/pwa/out/worktrees/index.txt +23 -23
- package/bin/elanous.cjs +268 -64
- package/docs/goal-context/05-authoring-lessons.jsonl +5 -0
- package/graphs/implement-loop.yaml +1 -0
- package/graphs/natural-language-research.yaml +22 -1
- package/graphs/release/macrophage-subscriber.yaml +17 -0
- package/graphs/release/release-loop.yaml +17 -28
- package/package.json +5 -3
- package/scripts/audit-test-state-writes.ts +2 -2
- package/scripts/ci-typecheck-changed.ts +1 -1
- package/scripts/cron-run.ts +1 -1
- package/scripts/data-diet-14d-gc.ts +568 -0
- package/scripts/docs/generate-cli-anatomy.ts +2 -3
- package/scripts/generate-sim-world-device-catalogs.ts +28 -0
- package/scripts/install.sh +14 -12
- package/scripts/isolation-hardcode-baseline.txt +1 -1
- package/scripts/land-enqueue.test.sh +18 -4
- package/scripts/mission-request-judge.ts +6 -0
- package/scripts/npm-postinstall.cjs +68 -0
- package/scripts/public-export.ts +63 -7
- package/scripts/release-loop/adaptive-gate-heal-adapter.ts +105 -0
- package/scripts/release-loop/adaptive-gate-heal.ts +140 -0
- package/scripts/release-loop/cut-branch.ts +2 -1
- package/scripts/release-loop/export-check-node.ts +7 -1
- package/scripts/release-loop/gate-baseline.ts +14 -0
- package/scripts/release-loop/gate-bisect-sidecar.ts +122 -0
- package/scripts/release-loop/gate-bisect.ts +146 -0
- package/scripts/release-loop/gate-image-repair-node.ts +104 -0
- package/scripts/release-loop/gate-node-sim.ts +29 -6
- package/scripts/release-loop/gate-node.ts +545 -89
- package/scripts/release-loop/gate-pr-cache.ts +7 -2
- package/scripts/release-loop/gate-radius-live.ts +19 -5
- package/scripts/release-loop/gate-repair-node.ts +166 -0
- package/scripts/release-loop/gate-reuse-identity.ts +38 -0
- package/scripts/release-loop/gate-shard-dispatch.ts +72 -8
- package/scripts/release-loop/gate-shard-receipts.ts +98 -24
- package/scripts/release-loop/gate-triage-node.ts +37 -5
- package/scripts/release-loop/node-verdict.ts +10 -2
- package/scripts/release-loop/pwa-scenarios-node.ts +10 -5
- package/scripts/release-loop/repair-pr-landed.ts +93 -0
- package/scripts/release-loop/resume-release.ts +53 -9
- package/scripts/release-loop/resume.ts +2 -2
- package/scripts/release-loop/unattended-release.ts +9 -1
- package/scripts/release-loop/version-node.ts +41 -6
- package/scripts/review-model-ab.ts +48 -4
- package/scripts/sim-world-runner.ts +2 -1
- package/scripts/test-census/similar-search.ts +375 -0
- package/scripts/test-census-similar-search.ts +128 -0
- package/scripts/test-census.ts +388 -0
- package/scripts/test-deterministic.ts +33 -4
- package/scripts/tree-sync-decide.ts +3 -1
- package/scripts/triage-open-drafts.py +41 -8
- package/scripts/ux-sim-merge-driver.mjs +28 -60
- package/scripts/ux-sim.ts +8 -1
- package/scripts/warm-pool-provider-config.ts +11 -1
- package/src/acp/codex-app-server-client.ts +157 -20
- package/src/acp/core-turn-bridge.ts +4 -9
- package/src/acp/multi-llm-bridge.ts +2 -4
- package/src/acp/server.ts +105 -107
- package/src/ad-pipeline/higgsfield-backend.ts +4 -1
- package/src/agent/agent-output-tool.ts +3 -0
- package/src/agent/monad-agent-turn.ts +1 -1
- package/src/agent/nest-depth.ts +2 -2
- package/src/agent-mission/driver.ts +31 -5
- package/src/aside/remote-targets.ts +234 -0
- package/src/auto-research/research-turn.ts +2 -0
- package/src/autopilot/elanous-builtin-runner.ts +1 -1
- package/src/autopilot/gh-rest-fallback.ts +8 -4
- package/src/autopilot/lineage/timeline.ts +1 -1
- package/src/autopilot/mission-arc-preflight.ts +7 -2
- package/src/autopilot/mission-grounding-ladder.ts +17 -329
- package/src/autopilot/mission-history.ts +1 -1
- package/src/autopilot/mission-hitl-callback.ts +6 -1
- package/src/autopilot/mission-incident-context.ts +2 -1
- package/src/autopilot/mission-trace.ts +1 -1
- package/src/autopilot/pr-manager.ts +23 -4
- package/src/autopilot/state-paths.ts +2 -2
- package/src/boot/daemon-prompt-turn.ts +1 -1
- package/src/boot/daemon-runtime.ts +1 -1
- package/src/boot/daemon-tools/self-implement.ts +75 -13
- package/src/briefing/brief-items.ts +1 -1
- package/src/capture/encoders/png.ts +2 -1
- package/src/chat/index.ts +2 -8
- package/src/cli/app-cli.ts +40 -0
- package/src/cli/cred-cli.ts +144 -0
- package/src/cli/doctor-cli.ts +77 -2
- package/src/cli/doctor-readiness.ts +3 -0
- package/src/cli/log-event-names.ts +1 -0
- package/src/cli/logs-cli.ts +12 -1
- package/src/cli/logs-timeline.ts +1 -1
- package/src/cli/logs-warm-reuse-stats.ts +76 -0
- package/src/cli/machine-apply-from-capture.ts +122 -0
- package/src/cli/machine-capture.ts +356 -0
- package/src/cli/machine-cli.ts +12 -1
- package/src/cli/machine-membership.ts +350 -0
- package/src/cli/machine-setup-apply.ts +176 -0
- package/src/cli/machine-setup-plan.ts +373 -0
- package/src/cli/machine-wsl-setup.ts +211 -0
- package/src/cli/msg-cli.ts +13 -7
- package/src/cli/ops-cli.ts +2 -34
- package/src/cli/ops-status-remote.ts +2 -41
- package/src/cli/pr-cli.ts +330 -17
- package/src/cli/pr-land-conflict-merge.ts +253 -0
- package/src/cli/pr-land-drift-repair.ts +300 -0
- package/src/cli/pr-land-heavy-remote.ts +120 -1
- package/src/cli/pr-land-overlap-evidence.ts +275 -15
- package/src/cli/pr-land-refusal.ts +21 -8
- package/src/cli/release-cli.ts +46 -19
- package/src/cli/repo-cli.ts +3 -2
- package/src/cli/resource-ledger-cli.ts +10 -1
- package/src/cli/review-typefix-carry.ts +452 -0
- package/src/cli/secret-cli.test-helpers.ts +16 -0
- package/src/cli/secret-cli.ts +393 -5
- package/src/cli/self-update.ts +1 -1
- package/src/cli/sim-cli.ts +126 -0
- package/src/cli/tasks-cli.ts +23 -8
- package/src/compact/archive.ts +6 -0
- package/src/compact/tool-output-budget.ts +33 -24
- package/src/context-bus/external-events.ts +22 -9
- package/src/control-plane/ledger.ts +47 -0
- package/src/control-plane/server.ts +32 -2
- package/src/core-turn/child-liveness-heartbeat.ts +4 -2
- package/src/core-turn/run-core-turn.ts +5 -5
- package/src/core-turn/run-goal-loop.ts +1 -1
- package/src/dashboard/acp-boot.ts +8 -8
- package/src/dashboard/index.ts +41 -1629
- package/src/dashboard/input/chat-main-acp-dispatch.ts +0 -120
- package/src/dashboard/input/chat-main-interaction-opts.ts +0 -32
- package/src/dashboard/input/chat-main-plain-turn-runtime.ts +0 -14
- package/src/dashboard/input/chat-main-visibility.ts +0 -2
- package/src/dashboard/input/dashboard-plain-turn-stream.ts +7 -97
- package/src/dashboard/input/dashboard-priority-key-route.ts +0 -56
- package/src/dashboard/input/mouse-wiring.ts +1 -14
- package/src/dashboard/slash-runtime/dashboard-handlers.ts +10 -63
- package/src/dashboard/slash-runtime/help-groups.ts +1 -1
- package/src/dashboard/slash-runtime/index.ts +0 -6
- package/src/dashboard/turn-preamble.ts +4 -5
- package/src/debug/log.ts +15 -93
- package/src/debug/secret-redaction.ts +98 -0
- package/src/decisions/decision-ledger.ts +83 -9
- package/src/domains/cron-match.ts +2 -1
- package/src/domains/finance-tools.ts +1 -1
- package/src/domains/guardian-tick.ts +2 -1
- package/src/domains/knowledge.ts +10 -0
- package/src/domains/market-quote.ts +1 -1
- package/src/domains/morning-synthesis.ts +1 -1
- package/src/domains/schedule-health-report.ts +1 -1
- package/src/domains/schedule-runner.ts +1 -1
- package/src/domains/schedule-state.ts +2 -1
- package/src/domains/watch-default-scheduler.ts +1 -1
- package/src/extractors.ts +4 -2
- package/src/graph-runner/graph-events.ts +202 -0
- package/src/graph-runner/graph-subscriptions.ts +112 -0
- package/src/graph-runner/in-process-registry.ts +6 -0
- package/src/graph-runner/runner.ts +964 -37
- package/src/harness/browser-verify.ts +1 -1
- package/src/harness/grounding/mission-grounding-ladder.ts +350 -0
- package/src/harness/harness-cli-command.ts +0 -52
- package/src/harness/launch-stamp.ts +2 -1
- package/src/hq/fence.ts +1 -1
- package/src/hq/promote.ts +12 -0
- package/src/hq/seats.ts +173 -3
- package/src/hq/transfer.ts +18 -0
- package/src/image/utils.ts +7 -1
- package/src/index.ts +27 -84
- package/src/input-core/audit-tail.ts +1 -1
- package/src/instance/test-write-guard.ts +3 -3
- package/src/instance-identity.ts +2 -2
- package/src/intake-plane/linear-secretary-runtime.ts +3 -2
- package/src/intake-plane/requirement-funnel.ts +1 -1
- package/src/keybindings.ts +2 -5
- package/src/kgp/pipeline.ts +2 -1
- package/src/llm/wire/harmony.ts +365 -0
- package/src/llm.ts +88 -374
- package/src/loops/checker.ts +1 -1
- package/src/loops/orchestrator/coordinator-shadow.ts +4 -1
- package/src/loops/orchestrator/inbox-once.ts +2 -3
- package/src/loops/registry.ts +1 -1
- package/src/maturity/feature-maturity.ts +6 -10
- package/src/mcp/server.ts +4 -4
- package/src/msg/msg-store.ts +98 -12
- package/src/mss/{identity.ts → identity-store.ts} +3 -46
- package/src/mss/log-enrich.ts +1 -1
- package/src/mss/logging/diagnostic-sink.ts +90 -0
- package/src/mss/logging/horizon-watch.ts +4 -4
- package/src/mss/logging/log-federation.ts +6 -5
- package/src/mss/logging/log-safety-net.ts +7 -7
- package/src/mss/logging/log-store.ts +16 -13
- package/src/mss/logging/sinks/otel-genai-sink.ts +2 -2
- package/src/mss/trace-context.ts +1 -1
- package/src/mss/ulid.ts +36 -0
- package/src/mss/uri/builder.ts +1 -1
- package/src/nexus/api/agent-cli.ts +1 -1
- package/src/nexus/api/audio-stt.ts +15 -13
- package/src/nexus/api/autopilot-api.ts +1 -68
- package/src/nexus/api/bot-commands.ts +1 -1
- package/src/nexus/api/channel-ask-op.ts +3 -38
- package/src/nexus/api/chat-backend-detection.ts +1 -1
- package/src/nexus/api/config.ts +1 -1
- package/src/nexus/api/connect-info.ts +1 -1
- package/src/nexus/api/dispatch-runs.ts +1 -1
- package/src/nexus/api/edit-in-pwa.ts +1 -1
- package/src/nexus/api/errors.ts +1 -1
- package/src/nexus/api/field-uploads.ts +73 -0
- package/src/nexus/api/grid.ts +88 -1
- package/src/nexus/api/harness-api.ts +2 -2
- package/src/nexus/api/harness-traversal.ts +1 -11
- package/src/nexus/api/health.ts +1 -1
- package/src/nexus/api/hitl-pushcut-settings.ts +1 -1
- package/src/nexus/api/http-server.ts +84 -85
- package/src/nexus/api/ingest-token.ts +2 -2
- package/src/nexus/api/intake-pipeline-commit.ts +1 -1
- package/src/nexus/api/intake-pipeline-preview.ts +1 -1
- package/src/nexus/api/intake-runs.ts +1 -1
- package/src/nexus/api/log-fabric.ts +1 -1
- package/src/nexus/api/logs.ts +1 -1
- package/src/nexus/api/loop-edges.ts +255 -6
- package/src/nexus/api/mcp-widget-call-route.ts +21 -16
- package/src/nexus/api/meta-api.ts +2 -2
- package/src/nexus/api/platforms.ts +1 -1
- package/src/nexus/api/registry-catalog.ts +1 -1
- package/src/nexus/api/registry-discovery.ts +1 -1
- package/src/nexus/api/registry-resolved.ts +1 -1
- package/src/nexus/api/registry.ts +1 -1
- package/src/nexus/api/research-run-observer.ts +7 -1
- package/src/nexus/api/schedules-action.ts +1 -1
- package/src/nexus/api/schedules-read.ts +1 -1
- package/src/nexus/api/sessions-store.ts +1 -1
- package/src/nexus/api/showroom-layouts.ts +1 -1
- package/src/nexus/api/skill-router.ts +1 -1
- package/src/nexus/api/tabs-mutations.ts +1 -1
- package/src/nexus/api/tabs.ts +1 -1
- package/src/nexus/api/tasks-create.ts +1 -1
- package/src/nexus/api/tasks-scheduler.ts +1 -1
- package/src/nexus/api/telegram-trigger-bot.ts +3 -1
- package/src/nexus/api/templates.ts +1 -1
- package/src/nexus/api/terminals.ts +1 -1
- package/src/nexus/api/triggers.ts +1 -1
- package/src/nexus/api/workflow-events.ts +1 -1
- package/src/nexus/api/workflow-lifecycle.ts +1 -1
- package/src/nexus/api/workflow-pins.ts +1 -1
- package/src/nexus/api/workflow-router.ts +1 -1
- package/src/nexus/api/workflow-templates.ts +1 -1
- package/src/nexus/api/workflows.ts +1 -1
- package/src/nexus/api/worktrees.ts +1 -1
- package/src/nexus/apps/app-actions.ts +235 -0
- package/src/nexus/apps/app-auth.ts +187 -0
- package/src/nexus/apps/app-contract.ts +367 -0
- package/src/nexus/apps/app-db.ts +326 -0
- package/src/nexus/apps/app-host.ts +455 -0
- package/src/nexus/apps/app-lifecycle-ledger.ts +243 -0
- package/src/nexus/apps/app-openapi.ts +141 -0
- package/src/nexus/apps/app-simulate.ts +188 -0
- package/src/nexus/apps/app-storage-route.ts +127 -0
- package/src/nexus/apps/app-storage.ts +407 -0
- package/src/nexus/apps/app-upload.ts +49 -0
- package/src/nexus/apps/backend-tier.ts +42 -0
- package/src/nexus/boot/register-mcp-clients.ts +132 -10
- package/src/nexus/config/secrets/app-secret-ledger.ts +241 -0
- package/src/nexus/config/secrets/env-import.ts +42 -0
- package/src/nexus/config/secrets/file-backend.ts +220 -9
- package/src/nexus/config/secrets/index.ts +24 -0
- package/src/nexus/config/secrets/registry.ts +32 -4
- package/src/nexus/config/secrets/transfer.ts +94 -0
- package/src/nexus/config/secrets/types.ts +8 -0
- package/src/nexus/index.ts +124 -13
- package/src/oauth/codex-account-store.ts +8 -2
- package/src/oauth/codex-owner-mirror.ts +30 -0
- package/src/onboarding/web-first.ts +12 -7
- package/src/onboarding.ts +1 -1
- package/src/platform/host-id.ts +1 -1
- package/src/plugins/core/host.ts +0 -12
- package/src/plugins/core/manifest.ts +8 -5
- package/src/plugins/install/plugin-install.ts +4 -2
- package/src/pr-tool/census.ts +29 -8
- package/src/release-loop/gate-host-reservation.ts +5 -0
- package/src/release-loop/gate-shard-ledger.ts +85 -3
- package/src/release-loop/graph-event-adapters.ts +128 -0
- package/src/release-loop/light-rc.ts +4 -2
- package/src/release-loop/macrophage-heal-node.ts +84 -0
- package/src/release-loop/macrophage-heal.ts +167 -0
- package/src/release-loop/macrophage-safe-cleanup.ts +150 -0
- package/src/release-loop/rehearsal.ts +58 -16
- package/src/release-loop/stage-mail.ts +15 -10
- package/src/repl/agent-turn.ts +2 -1
- package/src/resource-ledger/resource-ledger.ts +18 -0
- package/src/roles/machine-name.ts +1 -1
- package/src/roles/machine-profile.ts +21 -3
- package/src/runtime-identity.ts +46 -0
- package/src/self-dev/dev-cli.ts +22 -2
- package/src/self-dev/dev-pipeline.ts +13 -9
- package/src/self-dev/entrance-baseline.ts +0 -52
- package/src/self-dev/orchestrate.ts +18 -0
- package/src/self-dev/run-supervisor.ts +4 -2
- package/src/self-dev/run-types.ts +5 -0
- package/src/self-implement/comment-only-source.ts +11 -10
- package/src/self-implement/evidence-command-budget.ts +9 -8
- package/src/self-implement/executor-contract.ts +3 -3
- package/src/self-implement/gate-cli.ts +5 -2
- package/src/self-implement/gate-remote.ts +35 -4
- package/src/self-implement/goal-author-clarification.ts +15 -14
- package/src/self-implement/goal-author-text.ts +180 -0
- package/src/self-implement/goal-author.ts +2 -218
- package/src/self-implement/graph-authority.ts +18 -17
- package/src/self-implement/graph-templates.ts +13 -12
- package/src/self-implement/graph-yaml.ts +142 -6
- package/src/self-implement/headless-elanous-driver.ts +3 -0
- package/src/self-implement/importer-test-index.ts +21 -20
- package/src/self-implement/knowhow-pack.ts +66 -5
- package/src/self-implement/l8-merge-queue.ts +26 -12
- package/src/self-implement/lazy-typescript.ts +15 -0
- package/src/self-implement/merge-train.ts +195 -17
- package/src/self-implement/off-diff-evidence.ts +48 -47
- package/src/self-implement/orchestrator.ts +2 -31
- package/src/self-implement/pwa-import-graph.ts +28 -27
- package/src/self-implement/readable-text.ts +18 -0
- package/src/self-implement/route-consumer-test-index.ts +18 -17
- package/src/self-implement/run-ledger.ts +1 -1
- package/src/self-implement/scoped-typecheck-config.ts +5 -4
- package/src/self-implement/seams.ts +3 -0
- package/src/self-implement/self-implement-cli.ts +19 -2
- package/src/self-implement/self-implement-runtime.ts +4 -6
- package/src/self-implement/soft-stop-observer.ts +6 -0
- package/src/self-implement/wiring-check.ts +74 -73
- package/src/session/channel-op-reply-route.ts +12 -0
- package/src/session/chat.ts +20 -14
- package/src/session/compact-session.ts +7 -1
- package/src/session/request-size-guard.ts +146 -2
- package/src/session/search-index.ts +16 -4
- package/src/session/session-context.ts +3 -1
- package/src/setup/service-key-catalog.ts +6 -3
- package/src/sim-world-device-catalogs.json +944 -0
- package/src/skills/runner.ts +10 -3
- package/src/skills/tools/dev-harness.ts +7 -4
- package/src/skills/tools/mermaid.ts +5 -2
- package/src/skills/tools/persistent-grounding.ts +3 -1
- package/src/skills/tools/schedule-wakeup.ts +2 -3
- package/src/status/bar.ts +0 -43
- package/src/storage/object-store.ts +18 -1
- package/src/storage/s3.ts +1 -1
- package/src/task-agent/parent-host.ts +29 -2
- package/src/task-agent/repair-branch-cas.ts +2 -1
- package/src/task-agent/repair-cycle.ts +5 -1
- package/src/task-orchestrator/surfaces/pod-gate-deps.ts +17 -2
- package/src/task-orchestrator/surfaces/pod-lease.ts +84 -2
- package/src/task-orchestrator/surfaces/pod-pool.ts +64 -23
- package/src/task-orchestrator/surfaces/pod-si-warm-host.ts +68 -4
- package/src/task-orchestrator/surfaces/pod-si-warm-protocol.ts +26 -1
- package/src/task-orchestrator/surfaces/pod-si-warm-provider.ts +6 -4
- package/src/task-orchestrator/surfaces/pod-si-warm-transport.ts +2 -1
- package/src/task-orchestrator/surfaces/pod-warm-worker-pod.ts +98 -1
- package/src/task-orchestrator/surfaces/pod-warm-worker-provider.ts +393 -41
- package/src/task-orchestrator/surfaces/self-implement-pod.ts +77 -6
- package/src/task-orchestrator/surfaces/warm-reuse-evidence.ts +39 -3
- package/src/task-orchestrator/surfaces/warm-reuse-stats.ts +84 -0
- package/src/telegram-commands.ts +43 -0
- package/src/telegram-report.ts +3 -1
- package/src/telegram.ts +50 -7
- package/src/time/calendar.ts +70 -0
- package/src/time/clock.ts +21 -0
- package/src/time/format-core.ts +44 -0
- package/src/time/format.ts +7 -227
- package/src/time/time-zone.ts +95 -0
- package/src/tool-runtime/aside-selection-runtime.ts +24 -5
- package/src/tool-runtime/elanous-autopilot-launch-runtime.ts +1 -1
- package/src/tool-runtime/mcp-proxy-bootstrap.ts +6 -3
- package/src/tui/core/registry.ts +193 -0
- package/src/tui/entry.ts +105 -127
- package/src/tui/slash/new-session.ts +2 -2
- package/src/tui-client/next-wakeup.ts +5 -0
- package/src/tui-key.ts +545 -0
- package/src/tui-render-cache.ts +157 -0
- package/src/tui-string-width.ts +273 -0
- package/src/tui.ts +22 -990
- package/src/user-config.ts +67 -4
- package/src/user-intent/logger.ts +1 -1
- package/src/ux-sim/app-contract-secret-entropy.ts +164 -0
- package/src/ux-sim/author-reviewer-precheck-device.ts +2 -2
- package/src/ux-sim/backend-tier-device.ts +13 -0
- package/src/ux-sim/chain-land.ts +158 -0
- package/src/ux-sim/device-fidelity.ts +261 -0
- package/src/ux-sim/event-monkey.ts +48 -0
- package/src/ux-sim/fake-app-auth.ts +237 -0
- package/src/ux-sim/fake-app-db-world.ts +103 -0
- package/src/ux-sim/fake-app-host.ts +107 -0
- package/src/ux-sim/fake-app-realtime.ts +372 -0
- package/src/ux-sim/fake-app-storage.ts +477 -0
- package/src/ux-sim/fake-app-traffic.ts +375 -0
- package/src/ux-sim/fake-bin-install-helper.mjs +119 -0
- package/src/ux-sim/fake-bin.ts +49 -5
- package/src/ux-sim/fake-data-guard-boundary.ts +111 -0
- package/src/ux-sim/fake-dns-cert.ts +295 -0
- package/src/ux-sim/fake-elevenlabs.ts +144 -0
- package/src/ux-sim/fake-fetch.ts +158 -0
- package/src/ux-sim/fake-gh.ts +45 -1
- package/src/ux-sim/fake-higgsfield.ts +106 -0
- package/src/ux-sim/fake-kubectl.ts +34 -6
- package/src/ux-sim/fake-land-queue.ts +5 -2
- package/src/ux-sim/fake-payment.ts +201 -0
- package/src/ux-sim/fake-ps.ts +82 -0
- package/src/ux-sim/fake-stt.ts +101 -0
- package/src/ux-sim/fault-nexus-stall.ts +225 -0
- package/src/ux-sim/fault-pod-child-result.ts +2 -2
- package/src/ux-sim/fault-pod-reuse-residue.ts +73 -0
- package/src/ux-sim/fault-pool-cap.ts +5 -2
- package/src/ux-sim/gate-roster-second-pool.ts +219 -0
- package/src/ux-sim/gate-shard-host-reroute.ts +14 -3
- package/src/ux-sim/hq-move-sim.ts +293 -0
- package/src/ux-sim/install-consent-device.ts +55 -0
- package/src/ux-sim/mock-scenario-catalog.json +4144 -2619
- package/src/ux-sim/next-tui-seat-scenarios.ts +13 -9
- package/src/ux-sim/pod-reuse-shared-fake-boundary.ts +69 -0
- package/src/ux-sim/pod-reuse-world.ts +149 -0
- package/src/ux-sim/pr-land-drift-gate-device.ts +14 -0
- package/src/ux-sim/release-event-trace.ts +79 -0
- package/src/ux-sim/release-publish-devices.ts +43 -0
- package/src/ux-sim/release-sim-rig.ts +969 -88
- package/src/ux-sim/rla-event-response-scorecard.ts +275 -0
- package/src/ux-sim/secret-canary.ts +416 -0
- package/src/ux-sim/sim-coverage.ts +299 -0
- package/src/ux-sim/subagent-tools-device.ts +31 -2
- package/src/ux-sim/temp-git-repo.ts +95 -0
- package/src/ux-sim/tool-async-fail-loop.ts +165 -0
- package/src/ux-sim/warm-pool-reuse-sim.ts +201 -13
- package/src/ux-sim/warm-pool-reuse-switch-sim.ts +76 -0
- package/src/ux-sim/warm-si-reuse-sim.ts +303 -0
- package/src/ux-sim/world-chaos-runtime.ts +312 -0
- package/src/ux-sim/world-host-chaos.ts +124 -0
- package/src/ux-sim/world-schema.ts +271 -5
- package/src/ux-sim/world-snapshot.ts +307 -0
- package/src/ux-sim/world-watch.ts +95 -0
- package/src/ux-sim/world.ts +757 -48
- package/src/ux-sim/worlds/secret-export-import.yaml +27 -0
- package/src/ux-sim/worlds/secret-zsh-keys-absorb.yaml +26 -0
- package/src/version/packed-revision.json +1 -1
- package/src/voice/channel-adapters/discord-voice-channel-harness.ts +1 -1
- package/src/workflow-runtime/triggers/scheduler.ts +1 -1
- package/templates/event-landing-editorial/DESIGN.md +12 -0
- package/templates/next-app-translator/app/layout.tsx +15 -0
- package/templates/next-app-translator/app/page.tsx +16 -0
- package/templates/next-app-translator/app.yaml +67 -0
- package/templates/next-app-translator/next.config.ts +8 -0
- package/templates/next-app-translator/package.json +21 -0
- package/templates/next-app-voice-note/app.yaml +88 -0
- package/templates/next-app-voice-note/package.json +22 -0
- package/apps/pwa/out/_next/static/chunks/001d1d30.3b264a3a5834784b.js +0 -1
- package/apps/pwa/out/_next/static/chunks/1044.f780ef30fbeec1d2.js +0 -1
- package/apps/pwa/out/_next/static/chunks/106.ef1dcdfef46b0b72.js +0 -1
- package/apps/pwa/out/_next/static/chunks/1207.912f5869bdf13244.js +0 -1
- package/apps/pwa/out/_next/static/chunks/1226-29248177d8e43df5.js +0 -1
- package/apps/pwa/out/_next/static/chunks/1469.157ee10170c461ab.js +0 -1
- package/apps/pwa/out/_next/static/chunks/1475-f4208d07b2b41e44.js +0 -1
- package/apps/pwa/out/_next/static/chunks/1525.9fd05c15746d77c8.js +0 -1
- package/apps/pwa/out/_next/static/chunks/1596-80cc66168f6a520b.js +0 -1
- package/apps/pwa/out/_next/static/chunks/1695-e63446cc38743225.js +0 -1
- package/apps/pwa/out/_next/static/chunks/224.0585d01ba7f4f898.js +0 -226
- package/apps/pwa/out/_next/static/chunks/2277.80d00b0a6fe67cad.js +0 -94
- package/apps/pwa/out/_next/static/chunks/2287.6a4cce8ac8897fda.js +0 -1
- package/apps/pwa/out/_next/static/chunks/2378.0805bd9972a241f3.js +0 -24
- package/apps/pwa/out/_next/static/chunks/25600806.42d40cb74fdc4bf3.js +0 -122
- package/apps/pwa/out/_next/static/chunks/2785-33003c356341fab5.js +0 -1
- package/apps/pwa/out/_next/static/chunks/280-66f2ebc166517702.js +0 -1
- package/apps/pwa/out/_next/static/chunks/29.135cc356bdf1a8be.js +0 -1
- package/apps/pwa/out/_next/static/chunks/2987.f36195bfacdbcc4e.js +0 -148
- package/apps/pwa/out/_next/static/chunks/3111-f3c2382dc49d4719.js +0 -1
- package/apps/pwa/out/_next/static/chunks/3135-4f30d19149be541d.js +0 -1
- package/apps/pwa/out/_next/static/chunks/336.dd6c1b81512124e6.js +0 -74
- package/apps/pwa/out/_next/static/chunks/337.35019dda0819a283.js +0 -64
- package/apps/pwa/out/_next/static/chunks/3394.8a08fac56ac2f941.js +0 -1
- package/apps/pwa/out/_next/static/chunks/3461-113eb7d3afb5969e.js +0 -1
- package/apps/pwa/out/_next/static/chunks/3603-473956ca996d5b03.js +0 -1
- package/apps/pwa/out/_next/static/chunks/3687.55335796604accd0.js +0 -1
- package/apps/pwa/out/_next/static/chunks/3692-ed2cebf0d6c4e273.js +0 -1
- package/apps/pwa/out/_next/static/chunks/3702-d50492fee8529bd7.js +0 -1
- package/apps/pwa/out/_next/static/chunks/3782.3ead96e62c8ac5c5.js +0 -1
- package/apps/pwa/out/_next/static/chunks/3849-59a5a66baa48998b.js +0 -1
- package/apps/pwa/out/_next/static/chunks/3965.1ae261de91a7507b.js +0 -115
- package/apps/pwa/out/_next/static/chunks/3985-432efaf9bc4e4123.js +0 -1
- package/apps/pwa/out/_next/static/chunks/4055-90325ff209cd557e.js +0 -1
- package/apps/pwa/out/_next/static/chunks/4174.d97cc593a5cf01bc.js +0 -1
- package/apps/pwa/out/_next/static/chunks/4276.863502da440e095f.js +0 -1
- package/apps/pwa/out/_next/static/chunks/4450-ea0ec552f18d799d.js +0 -1
- package/apps/pwa/out/_next/static/chunks/4495.2fbef8546af0792c.js +0 -1
- package/apps/pwa/out/_next/static/chunks/4674.e41c0f9b62fed6e2.js +0 -36
- package/apps/pwa/out/_next/static/chunks/4841.b78af1deed2d3d3f.js +0 -23
- package/apps/pwa/out/_next/static/chunks/4869.839bacfaab182108.js +0 -1
- package/apps/pwa/out/_next/static/chunks/4935.7f5b0bd162f201cc.js +0 -1
- package/apps/pwa/out/_next/static/chunks/500-57c24ef4341cdb21.js +0 -1
- package/apps/pwa/out/_next/static/chunks/5017-e079ea96feddbe85.js +0 -1
- package/apps/pwa/out/_next/static/chunks/5135.7b73d384c46dc26b.js +0 -1
- package/apps/pwa/out/_next/static/chunks/5359-7aa498ded308ea17.js +0 -1
- package/apps/pwa/out/_next/static/chunks/5521-16fb56b15c809e4a.js +0 -1
- package/apps/pwa/out/_next/static/chunks/5616-33de319a016180cd.js +0 -1
- package/apps/pwa/out/_next/static/chunks/5716.ad2c840320ab9472.js +0 -41
- package/apps/pwa/out/_next/static/chunks/5730-ca5565abe3d360ad.js +0 -1
- package/apps/pwa/out/_next/static/chunks/5841.26bcfac34b5889b4.js +0 -1
- package/apps/pwa/out/_next/static/chunks/586.658dedb3bc558b22.js +0 -1
- package/apps/pwa/out/_next/static/chunks/5894-7d90af46a43f80d2.js +0 -1
- package/apps/pwa/out/_next/static/chunks/5927-88cbc16437430987.js +0 -1
- package/apps/pwa/out/_next/static/chunks/5960.0dfb8bd3d27e1063.js +0 -1
- package/apps/pwa/out/_next/static/chunks/597-9bf9f66dba4ccae9.js +0 -1
- package/apps/pwa/out/_next/static/chunks/6064.f425ee61836bb5c7.js +0 -1
- package/apps/pwa/out/_next/static/chunks/6074.39f84a90284749de.js +0 -1
- package/apps/pwa/out/_next/static/chunks/61.cbbe643a52cf53ab.js +0 -62
- package/apps/pwa/out/_next/static/chunks/6184.4c0ba455eb3d27a1.js +0 -79
- package/apps/pwa/out/_next/static/chunks/6224.cd0ca2a16727e9a9.js +0 -1
- package/apps/pwa/out/_next/static/chunks/6229-a83289910e01869b.js +0 -1
- package/apps/pwa/out/_next/static/chunks/6243.61e6f450a70a8d91.js +0 -90
- package/apps/pwa/out/_next/static/chunks/6295-4f1a1386f8667fd1.js +0 -1
- package/apps/pwa/out/_next/static/chunks/6310.5fb57ba0781bc476.js +0 -286
- package/apps/pwa/out/_next/static/chunks/6653.f3f30affdbe694aa.js +0 -32
- package/apps/pwa/out/_next/static/chunks/6657.f57e1d8511e510ce.js +0 -1
- package/apps/pwa/out/_next/static/chunks/6672-bc0f317b72f0bbd2.js +0 -1
- package/apps/pwa/out/_next/static/chunks/6761-2143fe6fe3578118.js +0 -1
- package/apps/pwa/out/_next/static/chunks/6955-75b2659eafd27893.js +0 -1
- package/apps/pwa/out/_next/static/chunks/7051-406b0538949c932f.js +0 -1
- package/apps/pwa/out/_next/static/chunks/7222.df77e48936e60d2e.js +0 -1
- package/apps/pwa/out/_next/static/chunks/7242-08db87893cf792b7.js +0 -1
- package/apps/pwa/out/_next/static/chunks/7307-3172df9d07acb8e0.js +0 -1
- package/apps/pwa/out/_next/static/chunks/7613.4523dc082005e359.js +0 -1
- package/apps/pwa/out/_next/static/chunks/7648-7c7346c2a73503f9.js +0 -1
- package/apps/pwa/out/_next/static/chunks/7788.ffd9f4d57647a354.js +0 -149
- package/apps/pwa/out/_next/static/chunks/7793.4d3de6ce591fbc21.js +0 -34
- package/apps/pwa/out/_next/static/chunks/7988-bbcd506079ceceb6.js +0 -1
- package/apps/pwa/out/_next/static/chunks/8066.32863fb9dd2dc278.js +0 -1
- package/apps/pwa/out/_next/static/chunks/8073-cdf4607b80d127fe.js +0 -1
- package/apps/pwa/out/_next/static/chunks/8414-77dbc0c35bc85f42.js +0 -1
- package/apps/pwa/out/_next/static/chunks/849.fe241354322a97e9.js +0 -27
- package/apps/pwa/out/_next/static/chunks/8665.900daf2473f7032a.js +0 -1
- package/apps/pwa/out/_next/static/chunks/8713.11d79e4e023ab74f.js +0 -1
- package/apps/pwa/out/_next/static/chunks/8718.137b7ce2c3cae66b.js +0 -8
- package/apps/pwa/out/_next/static/chunks/8764.39400f626e015e79.js +0 -287
- package/apps/pwa/out/_next/static/chunks/8803.d3504166481bc91e.js +0 -24
- package/apps/pwa/out/_next/static/chunks/8963.928e777871d1d637.js +0 -104
- package/apps/pwa/out/_next/static/chunks/8987-372a6317aaf83fa9.js +0 -1
- package/apps/pwa/out/_next/static/chunks/9671.d935d274b65718e4.js +0 -1
- package/apps/pwa/out/_next/static/chunks/9756.24e020ddf99f7020.js +0 -77
- package/apps/pwa/out/_next/static/chunks/9777-6b21b6f1989ea7b1.js +0 -1
- package/apps/pwa/out/_next/static/chunks/9947.7a8d89554e873316.js +0 -1
- package/apps/pwa/out/_next/static/chunks/9980.fd66776b3782eeb4.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/_not-found/page-2c29b6716055aa54.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/approvals/page-538c811d4da4d7b8.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/autopilot/page-32cb397d044bb5aa.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/board/page-02d148f66a3da6bb.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/botlab/page-42b7211f972c6001.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/bots/page-46bac74d4ce82733.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/ceo/page-10e7ee66dc7c3d8a.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/chat/page-391a9ecbfb541e68.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/consult/page-6b69baa42370ba35.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/control/page-58960a34c0fa8f97.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/design-check/page-417a7b86f7eceeea.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/editor/page-09f86a64836617b7.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/field/page-e80fc997e0c589d5.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/healthz/route-2c29b6716055aa54.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/inside/page-173d296c2127560a.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/intake/page-358c3e0c2ce7184c.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/layout-09c6e6033ddb1605.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/live/page-11a4763fe20fe116.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/live-run/page-e7e02e459ca54062.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/loops/page-b0c21fcb45c049d0.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/missions/[id]/page-c4c4b4333b24e505.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/morning/page-7cab7257602fe967.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/not-found-a0dc43b385fba1b5.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/observatory/page-65ecf674fc5e9d19.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/ops/release/page-7d69cc10c33882b7.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/ops/seats/page-80adac335abc5070.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/outputs/page-10b7dbd205510a67.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/page-5f3c9b795a225d8c.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/reflection/page-68ece02272941b6c.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/scheduler/page-21d4e1472f806b1e.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/sessions/page-1156870631db0555.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/settings/devices/page-4fc726c790e6a7bf.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/settings/page-e0dc9ec9ac537906.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/setup/done/page-83138c236444d7d5.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/setup/layout-2c29b6716055aa54.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/setup/page-61133c103b342d2b.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/share/page-40cac04d8f4822c6.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/showroom/page-ecb7be39ce14845a.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/tasks/page-a288059ee8ed73fb.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/term/page-31ed388024d4f660.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/today/page-29d28b05a7ddede3.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/trace/page-b39bdb4ce095ccfc.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/vault/page-ecbc7b9f31d195b7.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/workflows/page-ca29c405228c72b9.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/workspace/page-ff99da4e3ff50503.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/worktrees/page-2aa0c6cdb2ef7ea8.js +0 -1
- package/apps/pwa/out/_next/static/chunks/db2f0161-8781ed841c51137a.js +0 -1
- package/apps/pwa/out/_next/static/chunks/framework-01d45c12f1bce665.js +0 -1
- package/apps/pwa/out/_next/static/chunks/main-0a9bbda118d4e9dc.js +0 -1
- package/apps/pwa/out/_next/static/chunks/main-app-7f817b9fe2a360cc.js +0 -1
- package/apps/pwa/out/_next/static/chunks/pages/_app-f953b3d6c9ece48e.js +0 -1
- package/apps/pwa/out/_next/static/chunks/pages/_error-1a3e6e3f0aa99004.js +0 -1
- package/apps/pwa/out/_next/static/chunks/webpack-090556529ba4efb6.js +0 -1
- package/apps/pwa/out/_next/static/css/32b8e1b8996dbf5e.css +0 -1
- package/apps/pwa/out/_next/static/v4GHQkFrQs8lzZY_KFv9_/_buildManifest.js +0 -1
- package/apps/pwa/out/_next/static/v4GHQkFrQs8lzZY_KFv9_/_ssgManifest.js +0 -1
- package/apps/pwa/out/autopilot/index.html +0 -1
- package/apps/pwa/out/autopilot/index.txt +0 -33
- package/apps/pwa/out/missions/placeholder/index.html +0 -1
- package/apps/pwa/out/missions/placeholder/index.txt +0 -30
- package/src/autopilot/build/build-status-label.ts +0 -19
- package/src/autopilot/mission-replay-decision.ts +0 -136
- package/src/autopilot/mission-tui-watch.ts +0 -380
- package/src/cli/autopilot-cli.ts +0 -839
- package/src/cli/autopilot-run.ts +0 -176
- package/src/dashboard/auto-tts/auto-tts-controller.ts +0 -347
- package/src/dashboard/auto-tts/auto-tts-host-boot.ts +0 -162
- package/src/dashboard/auto-tts/pfc-voice-runtime.ts +0 -138
- package/src/dashboard/input/chat-main-submit-control.ts +0 -24
- package/src/dashboard/input/control-signal-consumers.ts +0 -46
- package/src/dashboard/input/dashboard-plain-turn-settle-sink.ts +0 -96
- package/src/dashboard/input/dictation-surface-allowlist.ts +0 -78
- package/src/dashboard/input/space-longpress-detector.ts +0 -311
- package/src/dashboard/input/voice-dictation.ts +0 -80
- package/src/dashboard/plugin-wizard-runtime.ts +0 -111
- package/src/dashboard/plugin-wizard-tool.ts +0 -69
- package/src/dashboard/voice-chat/voice-chat-host-boot.ts +0 -418
- package/src/dashboard/voice-chat/voice-chat-mode-controller.ts +0 -148
- package/src/dashboard/voice-chat/voice-chat-pipeline.ts +0 -357
- package/src/dashboard/voice-host-boot.ts +0 -109
- package/src/dashboard/voice-input-host.ts +0 -540
- package/src/dashboard/voice-runtime.ts +0 -174
- package/src/domains/conatus-verify.ts +0 -466
- package/src/grounding/ensure-grounding.ts +0 -131
- package/src/input/turn-output-bundle.ts +0 -105
- package/src/intake-plane/ref-prefetch.ts +0 -110
- package/src/nexus/api/mission-showroom.ts +0 -182
- package/src/nexus/api/missions-emit.ts +0 -214
- package/src/nexus/api/missions.ts +0 -230
- package/src/seat-dispatch/seat-request-eligibility.ts +0 -19
- package/src/self-dev/external-call-zero.ts +0 -77
- package/src/self-implement/run-controls.ts +0 -74
- package/src/tui/slash/mission.ts +0 -492
- /package/src/{dashboard/auto-tts → voice/tts}/sentence-segmenter.ts +0 -0
package/src/dashboard/index.ts
CHANGED
|
@@ -178,7 +178,7 @@ import {
|
|
|
178
178
|
import { dispatchStreamingTurnTypeaheadSubmission } from './input/streaming-turn-typeahead.js';
|
|
179
179
|
import { composeVertical, type LayoutZone } from '../layout/composer.js';
|
|
180
180
|
import { createPromptBandRenderObserver, createPromptRowOwner, renderPromptOwnerHintRow, withPromptRowOwner } from '../display/prompt-row-owner.js';
|
|
181
|
-
import type { CoreTurnDispatchTool } from '../core-turn/
|
|
181
|
+
import type { CoreTurnDispatchTool } from '../core-turn/types.js';
|
|
182
182
|
// streamGrok kept as back-compat shim in chat.ts — not imported here
|
|
183
183
|
// directly anymore. Dashboard runs every turn through the in-process
|
|
184
184
|
// ACP pair (see `bootDashboardAcpSession`), which internally routes
|
|
@@ -396,8 +396,6 @@ import { resolveDashboardChatMainEntryPrelude } from './input/chat-main-entry-pr
|
|
|
396
396
|
import { CHAT_MAIN_AUTO_ENTRY_KEY_NAME } from './input/entry-mode.js';
|
|
397
397
|
import { resolveDashboardChatMainPostTurn } from './input/chat-main-post-turn.js';
|
|
398
398
|
import { resolveDashboardChatMainSubmitIntent } from './input/chat-main-submit-route.js';
|
|
399
|
-
import { maybeEmitDashboardSubmitQuickPass } from './input/chat-main-submit-control.js';
|
|
400
|
-
import { attachDashboardQuickPassConsumers } from './input/control-signal-consumers.js';
|
|
401
399
|
import { resolveDashboardChatMainSlashCommand } from './input/chat-main-slash-command.js';
|
|
402
400
|
import { isClassicSigquitChord, registerClassicSigquitHandler } from './classic-sigquit.js';
|
|
403
401
|
import { TuiChatPersonaSelection, tuiChatPersonaMessages } from './slash-runtime/chat-persona.js';
|
|
@@ -458,23 +456,8 @@ import {
|
|
|
458
456
|
isChatMainInputForegroundActive,
|
|
459
457
|
shouldAutoEnterChatMainInput,
|
|
460
458
|
} from './input/chat-main-visibility.js';
|
|
461
|
-
import { createDashboardVoiceRuntime } from './voice-runtime.js';
|
|
462
|
-
import { setDaemonInputHost } from '../voice/daemon-input-host-singleton.js';
|
|
463
459
|
import { defaultControlSignalBus } from '../input/control-signal.js';
|
|
464
460
|
import { defaultControlSignalObserver } from '../input/control-signal-observer.js';
|
|
465
|
-
import {
|
|
466
|
-
bootDashboardVoiceHost,
|
|
467
|
-
reportDashboardVoiceBootError,
|
|
468
|
-
} from './voice-host-boot.js';
|
|
469
|
-
import {
|
|
470
|
-
bootDashboardAutoTts,
|
|
471
|
-
} from './auto-tts/auto-tts-host-boot.js';
|
|
472
|
-
import {
|
|
473
|
-
bootDashboardVoiceChat,
|
|
474
|
-
handleVoiceChatSlash,
|
|
475
|
-
toggleVoiceChatRealtime,
|
|
476
|
-
} from './voice-chat/voice-chat-host-boot.js';
|
|
477
|
-
import { describeVoiceChatPhase } from './voice-chat/voice-chat-mode-controller.js';
|
|
478
461
|
import { hasOverlayInputOwner } from './input/overlay-input.js';
|
|
479
462
|
import { deriveInputOwnershipSnapshot } from './input/input-owner.js';
|
|
480
463
|
import { createDashboardInputPrefixState } from './input/input-prefix-state.js';
|
|
@@ -798,7 +781,6 @@ import {
|
|
|
798
781
|
getUserConfig, reloadUserConfig, saveUserConfig,
|
|
799
782
|
rotateNextProvider, jumpToRotationEntry, rotationEntryLabel, applyRotationEntry,
|
|
800
783
|
resolveAcpHopCapFromConfig, resolveTuiUnattended,
|
|
801
|
-
VOICE_HARDCODED_DEFAULTS,
|
|
802
784
|
} from '../user-config.js';
|
|
803
785
|
import { streamLLM, anyProviderAvailable, getProviderForConfig, nextReasoningLevel, reasoningLevelLabel, effectiveReasoningLevel, modelSupportsReasoning, type LLMMessage, type LLMToolSpec } from '../llm.js';
|
|
804
786
|
import { currentRouteDecision, formatRouteDecisionSummary } from '../llm/route-decision.js';
|
|
@@ -816,10 +798,6 @@ import { runNexusShow, type NexusShowResult } from '../cli/nexus-show.js';
|
|
|
816
798
|
import {
|
|
817
799
|
type GitSegmentState,
|
|
818
800
|
} from '../status/bar.js';
|
|
819
|
-
// PR-S1V.5 — voice month-to-date USD pill on the secondary status row.
|
|
820
|
-
// The tracker is process-wide so the same singleton is read here and
|
|
821
|
-
// updated by `voice-input-bridge.transcribe` (TUI path) + daemon REST
|
|
822
|
-
// handler (PWA path).
|
|
823
801
|
import { createDashboardMouseWiring } from './input/mouse-wiring.js';
|
|
824
802
|
import { createMouseConversationPopupRuntime } from './input/mouse-conversation-popup-runtime.js';
|
|
825
803
|
import { createMouseModalHitRuntime } from './input/mouse-modal-hit-runtime.js';
|
|
@@ -948,7 +926,6 @@ import {
|
|
|
948
926
|
type CaretContextStore,
|
|
949
927
|
} from './terminal/caret-context-store.js';
|
|
950
928
|
import { createPfcMouseActionRuntime, type PfcMouseActionRuntime } from './terminal/pfc-mouse-action-runtime.js';
|
|
951
|
-
import { createPfcVoiceRuntime, type PfcVoiceRuntime } from './auto-tts/pfc-voice-runtime.js';
|
|
952
929
|
import { createPfcScreenshotAttacher, type PfcScreenshotAttacher } from '../conductor/pfc-screenshot-attachment.js';
|
|
953
930
|
import { createStatusShellPostureRuntime } from './status-shell-posture-runtime.js';
|
|
954
931
|
import { createTerminalHostFacade } from '../shell-runner/terminal-host-facade.js';
|
|
@@ -976,17 +953,10 @@ import { createDashboardTerminalPopupRuntime } from './terminal-popup-runtime.js
|
|
|
976
953
|
import { createDashboardSidetabRuntime, mergeLocalAgentSessions, runDashboardAgentMission } from './sidetab-runtime.js';
|
|
977
954
|
import { visibleMissionFailureLogData } from './visible-mission-diagnostics.js';
|
|
978
955
|
import { CLASSIC_SIDETAB_MISSION_TOOL_NAME, createClassicSidetabMissionIntegration, createClassicSidetabMissionPairSessionRegistry, type ClassicSidetabHandReplyInput, type ClassicSidetabMissionAgent, type ClassicSidetabMissionDispatchContext, type ClassicSidetabMissionIntegration, type ClassicSidetabMissionPairResult, type ClassicSidetabMissionResult, type ClassicSidetabMissionTrioResult } from './classic-sidetab-mission.js';
|
|
979
|
-
import type { ClassicSidetabMissionPairCompletionResult } from './classic-sidetab-mission-job.js';
|
|
980
|
-
import type { HandTaskOptions } from '../task-agent/task-hand.js';
|
|
981
956
|
import { cancelClassicMissionCli, startClassicMissionCli } from './mission-cli-consumer.js';
|
|
982
957
|
import { enqueueClassicSidetabMissionCompletion, runPreparedClassicSidetabVisibleMission } from './classic-sidetab-mission-job.js';
|
|
983
958
|
import { startClassicSidetabMissionPair } from './classic-sidetab-mission-pair.js';
|
|
984
959
|
import { captureClassicMissionExitObservation, createClassicSidetabMissionTrioVisibleRunner, startClassicSidetabMissionTrio } from './classic-sidetab-mission-trio.js';
|
|
985
|
-
import { createDashboardPluginWizardRuntimeFromSidetab, searchAvailablePluginWizardTools } from './plugin-wizard-runtime.js';
|
|
986
|
-
|
|
987
|
-
/** Public dashboard composition seam used by the TUI entrypoint and its integration test. */
|
|
988
|
-
export const createDashboardTuiPluginWizard = createDashboardPluginWizardRuntimeFromSidetab;
|
|
989
|
-
import { TUI_PLUGIN_WIZARD_TOOL_NAME } from './plugin-wizard-tool.js';
|
|
990
960
|
import { probeGrokLogin } from '../agent-mission/grok-auth-status.js';
|
|
991
961
|
import { loadSidetabRows } from '../sidetab-core/model.js';
|
|
992
962
|
import { toggleDashboardAssistantRenderState } from './assistant-render-state-runtime.js';
|
|
@@ -1251,7 +1221,7 @@ import {
|
|
|
1251
1221
|
} from '../agent-activity-hud.js';
|
|
1252
1222
|
import { DASHBOARD_CLARIFICATION_REQUEST, consumeStreamingTopModalEscape, createEscAbortGate, createEscAbortPendingGate, createHarnessEscHint, routeStreamingEscapeKey } from '../esc-abort-gate.js';
|
|
1253
1223
|
import { enqueueSoftStop, readSoftStopRequestStatus } from '../harness/control-inbox.js';
|
|
1254
|
-
import { setSelfImplementSoftStopSpaceObserver } from '../self-implement/
|
|
1224
|
+
import { setSelfImplementSoftStopSpaceObserver } from '../self-implement/soft-stop-observer.js';
|
|
1255
1225
|
import { createViEditor, type ViEditorHandle } from '../vi-editor.js';
|
|
1256
1226
|
import { launchEditor, canLaunchEditor } from '../editor-launcher.js';
|
|
1257
1227
|
import {
|
|
@@ -1508,23 +1478,6 @@ import { listSessionCards } from '../session/card.js';
|
|
|
1508
1478
|
// on the manager singleton so production code shares one registry
|
|
1509
1479
|
// instance across the dispatcher, the sidebar, and LLM tools.
|
|
1510
1480
|
import { globalDualRoleManager, setAcpHopCapResolver } from '../acp/dual-role-manager.js';
|
|
1511
|
-
// PR-S1V.4-wiring (sprint 21-Parallel-Voice · 2026-04-29) — voice input.
|
|
1512
|
-
// Boot the STTProvider lazily (gated on OPENAI_API_KEY) and wire the
|
|
1513
|
-
// voice-input host into the priority key route + status bar. PLAN
|
|
1514
|
-
// canonical: PLAN-voice-wiring-s1v4w-2026-04-29.md.
|
|
1515
|
-
import { globalAcpEventRouter } from '../acp/event-router.js';
|
|
1516
|
-
import { createSTTProvider } from '../voice/stt-provider.js';
|
|
1517
|
-
import {
|
|
1518
|
-
createVoiceInputHost,
|
|
1519
|
-
type VoiceInputHost,
|
|
1520
|
-
} from './voice-input-host.js';
|
|
1521
|
-
import {
|
|
1522
|
-
createSpaceLongPressDetector,
|
|
1523
|
-
isDictationHoldKey,
|
|
1524
|
-
isPlainSpaceHoldKey,
|
|
1525
|
-
type SpaceLongPressDetector,
|
|
1526
|
-
} from './input/space-longpress-detector.js';
|
|
1527
|
-
import { isAllowlistedDictationSurface } from './input/dictation-surface-allowlist.js';
|
|
1528
1481
|
import { createDashboardExternalInputHost, stopTurnViaEscGate, updateDashboardExternalInputQueueNotice } from './input/external-input-host.js';
|
|
1529
1482
|
import { registerTuiForceStopHandler } from '../capture/tui-self-report.js';
|
|
1530
1483
|
import { createInlineAskUserQuestionResolver, resolveUnattendedInlineChoiceTimeoutMs, UNATTENDED_INLINE_CHOICE_TIMEOUT_MS } from '../ask-user-question/index.js';
|
|
@@ -1649,16 +1602,6 @@ export interface ShowDashboardOptions {
|
|
|
1649
1602
|
* effect in in-process mode (use TUI's `/session load` for that
|
|
1650
1603
|
* path). */
|
|
1651
1604
|
resumeSessionId?: string;
|
|
1652
|
-
/** Internal integration-test seam. Exercises showDashboard boot and the registered RunSidetabMission dispatcher
|
|
1653
|
-
* while replacing only visible child-process execution and the downstream task hand. Never set by the CLI. */
|
|
1654
|
-
pluginWizardTestOverrides?: {
|
|
1655
|
-
findAvailableTools?: (capability: string) => readonly string[];
|
|
1656
|
-
runPair: (agent: 'codex' | 'claude', mission: string, parallelMission: string, context?: ClassicSidetabMissionDispatchContext) => Promise<{
|
|
1657
|
-
result: ClassicSidetabMissionPairResult;
|
|
1658
|
-
completion: Promise<ClassicSidetabMissionPairCompletionResult>;
|
|
1659
|
-
}>;
|
|
1660
|
-
taskHand: (options: HandTaskOptions) => Promise<unknown>;
|
|
1661
|
-
};
|
|
1662
1605
|
}
|
|
1663
1606
|
|
|
1664
1607
|
// FileIndex cache keyed by absolute cwd. A single elanous session can
|
|
@@ -3347,288 +3290,6 @@ Mode- and sync-specific instructions are injected per-turn when relevant — do
|
|
|
3347
3290
|
draw();
|
|
3348
3291
|
};
|
|
3349
3292
|
|
|
3350
|
-
// TUI 부활 C-b-2 PR① — /mission new 준비(ready) 워처 + 인라인 HITL 픽커.
|
|
3351
|
-
// 텔레그램 미션 UX(등록→준비완료 버튼 3행→해소)의 TUI flavor. 실행/알림은
|
|
3352
|
-
// detached prepare 그대로 두고, TUI 는 store 폴링(mission-tui-watch 순수 판정)
|
|
3353
|
-
// 으로 전이 시에만 chat line 을 낸다. 준비완료 → 페이즈 보드 인라인 + 픽커
|
|
3354
|
-
// (승인/보류=dispatchAutopilotMissions via:'tui' · 정정=spawnMissionPrepare 재분해).
|
|
3355
|
-
const missionReadyWatchTimers = new Map<string, ReturnType<typeof setInterval>>();
|
|
3356
|
-
const stopMissionReadyWatch = (missionId: string): void => {
|
|
3357
|
-
const t = missionReadyWatchTimers.get(missionId);
|
|
3358
|
-
if (t) { clearInterval(t); missionReadyWatchTimers.delete(missionId); }
|
|
3359
|
-
};
|
|
3360
|
-
let missionHitlModal: SearchModalHandle | null = null;
|
|
3361
|
-
let missionHitlModalHandle: { dispose: () => void } | null = null;
|
|
3362
|
-
const closeMissionHitlPicker = (): void => {
|
|
3363
|
-
if (missionHitlModalHandle) { try { missionHitlModalHandle.dispose(); } catch { /* ignore */ } missionHitlModalHandle = null; }
|
|
3364
|
-
missionHitlModal = null;
|
|
3365
|
-
draw();
|
|
3366
|
-
try { promptCtl.repaint(); } catch { /* ignore */ } // C-d-1 — 하단 슬롯 반납 후 composer 복원.
|
|
3367
|
-
};
|
|
3368
|
-
const openMissionHitlPicker = (missionId: string, goal: string): void => {
|
|
3369
|
-
if (missionHitlModal) return;
|
|
3370
|
-
void (async () => {
|
|
3371
|
-
const { HITL_REVISE_PRESETS } = await import('../autopilot/mission-notify.js');
|
|
3372
|
-
const items: SearchItem[] = [
|
|
3373
|
-
{ label: '✅ 승인 — 실행 시작', payload: 'approve' },
|
|
3374
|
-
{ label: '⏸️ 보류 — 기록 유지·실행 안 함', payload: 'hold' },
|
|
3375
|
-
...HITL_REVISE_PRESETS.map((p): SearchItem => ({ label: `${p.label} — 재분해`, payload: `preset:${p.action}` })),
|
|
3376
|
-
{ label: '✏️ 직접입력 — 정정 코멘트 작성', payload: 'custom' },
|
|
3377
|
-
];
|
|
3378
|
-
// Pickers share the composer bottom slot.
|
|
3379
|
-
const placement = resolveDecisionPickerPlacement({ height: 14 });
|
|
3380
|
-
const modalWidth = placement.width;
|
|
3381
|
-
const handle = createSearchModal({
|
|
3382
|
-
id: `mission-hitl:${Date.now().toString(36)}`,
|
|
3383
|
-
bounds: placement.bounds,
|
|
3384
|
-
...(placement.slot ? { slot: placement.slot } : {}),
|
|
3385
|
-
title: `미션 승인 — ${goal.slice(0, 48)}`,
|
|
3386
|
-
width: modalWidth,
|
|
3387
|
-
maxVisible: 8,
|
|
3388
|
-
primaryActionLabel: 'select',
|
|
3389
|
-
cancelActionLabel: 'later',
|
|
3390
|
-
filterable: false,
|
|
3391
|
-
onQuery: () => items,
|
|
3392
|
-
onAccept: (item) => {
|
|
3393
|
-
const pick = String(item.payload);
|
|
3394
|
-
closeMissionHitlPicker();
|
|
3395
|
-
void (async () => {
|
|
3396
|
-
if (pick === 'approve' || pick === 'hold') {
|
|
3397
|
-
const { dispatchAutopilotMissions } = await import('../autopilot/mission-tool.js');
|
|
3398
|
-
const r = await dispatchAutopilotMissions(
|
|
3399
|
-
pick === 'approve'
|
|
3400
|
-
? { action: 'approve', id: missionId, via: 'tui' }
|
|
3401
|
-
: { action: 'cancel', id: missionId, via: 'tui', defer: true },
|
|
3402
|
-
) as { error?: string; note?: string; scheduledCron?: string };
|
|
3403
|
-
chatLines.push('');
|
|
3404
|
-
if (r.error) chatLines.push(C.error(` ✗ ${r.error}`));
|
|
3405
|
-
else if (pick === 'approve') {
|
|
3406
|
-
chatLines.push(C.success(` ✅ 승인 — ${r.note ?? '실행 시작'} (${missionId})`));
|
|
3407
|
-
// PR ② — 즉시 집행(비예약)이면 실행 워처: 페이즈 전이·진행바·종결 리포트.
|
|
3408
|
-
if (!r.scheduledCron) startMissionRunWatch(missionId);
|
|
3409
|
-
} else chatLines.push(C.warning(` ⏸️ 보류 — ${r.note ?? '기록 유지'} (${missionId})`));
|
|
3410
|
-
} else if (pick.startsWith('preset:')) {
|
|
3411
|
-
const { HITL_REVISE_PRESETS: presets } = await import('../autopilot/mission-notify.js');
|
|
3412
|
-
const preset = presets.find((p) => `preset:${p.action}` === pick);
|
|
3413
|
-
if (preset) {
|
|
3414
|
-
const { spawnMissionPrepare } = await import('../autopilot/mission-prepare-spawn.js');
|
|
3415
|
-
try { spawnMissionPrepare(missionId, { comment: preset.comment }); } catch { /* fail-soft */ }
|
|
3416
|
-
chatLines.push('');
|
|
3417
|
-
chatLines.push(C.info(` 🔧 정정 반영 중: ${preset.label} — 재분해 후 새 보드를 보여드립니다`));
|
|
3418
|
-
startMissionReadyWatch(missionId);
|
|
3419
|
-
}
|
|
3420
|
-
} else {
|
|
3421
|
-
// 직접입력 — 다음 입력 프롬프트에 /mission revise 를 prefill(고쳐서 Enter).
|
|
3422
|
-
inputPrefixState.set(`/mission revise ${missionId} `);
|
|
3423
|
-
chatLines.push('');
|
|
3424
|
-
chatLines.push(C.muted(' ✏️ 정정 코멘트를 입력창에 이어 쓰고 Enter — /mission revise 로 재분해'));
|
|
3425
|
-
}
|
|
3426
|
-
chatScrollOffset = -1;
|
|
3427
|
-
draw();
|
|
3428
|
-
})();
|
|
3429
|
-
},
|
|
3430
|
-
onCancel: () => {
|
|
3431
|
-
closeMissionHitlPicker();
|
|
3432
|
-
chatLines.push(C.muted(` (나중에 — 승인: /mission approve ${missionId} · 보류: /mission hold · 정정: /mission revise)`));
|
|
3433
|
-
chatScrollOffset = -1;
|
|
3434
|
-
draw();
|
|
3435
|
-
},
|
|
3436
|
-
theme: currentThemeTokens(),
|
|
3437
|
-
});
|
|
3438
|
-
missionHitlModal = handle;
|
|
3439
|
-
attachSurfaceToWorkspace(handle.surface, currentWorkspaceOwnerId());
|
|
3440
|
-
missionHitlModalHandle = display.pushModal(handle.surface);
|
|
3441
|
-
draw();
|
|
3442
|
-
})();
|
|
3443
|
-
};
|
|
3444
|
-
// P4 (2026-07-13) — 페이즈 실패 힐 픽커. 텔레그램 3층 탈출구 버튼([🔧 재구현][✂️ 분할]
|
|
3445
|
-
// [✏️ 골 정정][⏭️ 건너뛰기] + (권장) 강조)의 TUI flavor — 저장 진단(diagnosis.heal)이
|
|
3446
|
-
// 권장을 강조하고, 실행은 P2 의 dispatch 액션(단일 창구·via:'tui'). Esc=나중에(슬래시 안내).
|
|
3447
|
-
const openMissionHealPicker = (
|
|
3448
|
-
missionId: string,
|
|
3449
|
-
phase: { index: number; title: string; diagnosis?: { heal: string; rootCause: string; confidence: string } },
|
|
3450
|
-
): void => {
|
|
3451
|
-
if (missionHitlModal) return; // 하단 슬롯 단일 소유자 — 이미 결정 뷰가 떠 있으면 양보(슬래시로 가능).
|
|
3452
|
-
void (async () => {
|
|
3453
|
-
const rec = phase.diagnosis?.heal;
|
|
3454
|
-
const mark = (kind: string, label: string): string => (rec === kind ? `${label} (권장)` : label);
|
|
3455
|
-
const items: SearchItem[] = [
|
|
3456
|
-
{ label: mark('rebuild', '🔧 재구현 — 이 페이즈부터 재시도'), payload: 'rebuild' },
|
|
3457
|
-
{ label: mark('split', '✂️ 분할 — 단일책임 서브페이즈로 재분해'), payload: 'split' },
|
|
3458
|
-
{ label: mark('revise', '✏️ 골 정정 — 목표 축소·재분해(코멘트 입력)'), payload: 'revise' },
|
|
3459
|
-
{ label: mark('skip', '⏭️ 건너뛰기 — 기능 제외·부분 완주'), payload: 'skip' },
|
|
3460
|
-
];
|
|
3461
|
-
// 권장 항목을 맨 위로(텔레그램 (권장) 강조 동형 · 픽커는 순서가 곧 강조).
|
|
3462
|
-
items.sort((a, b) => Number(String(b.payload) === rec) - Number(String(a.payload) === rec));
|
|
3463
|
-
const placement = resolveDecisionPickerPlacement({ height: 10 });
|
|
3464
|
-
const handle = createSearchModal({
|
|
3465
|
-
id: `mission-heal:${Date.now().toString(36)}`,
|
|
3466
|
-
bounds: placement.bounds,
|
|
3467
|
-
...(placement.slot ? { slot: placement.slot } : {}),
|
|
3468
|
-
title: `페이즈 실패 — ${phase.index}. ${phase.title.slice(0, 40)}`,
|
|
3469
|
-
width: placement.width,
|
|
3470
|
-
maxVisible: 5,
|
|
3471
|
-
primaryActionLabel: 'select',
|
|
3472
|
-
cancelActionLabel: 'later',
|
|
3473
|
-
filterable: false,
|
|
3474
|
-
onQuery: () => items,
|
|
3475
|
-
onAccept: (item) => {
|
|
3476
|
-
const pick = String(item.payload);
|
|
3477
|
-
closeMissionHitlPicker();
|
|
3478
|
-
void (async () => {
|
|
3479
|
-
if (pick === 'revise') {
|
|
3480
|
-
// 정정 코멘트는 사람 입력 — prefill 후 Enter(기존 HITL 직접입력 경로 동형).
|
|
3481
|
-
inputPrefixState.set(`/mission revise ${missionId} `);
|
|
3482
|
-
chatLines.push('');
|
|
3483
|
-
chatLines.push(C.muted(' ✏️ 정정 코멘트를 입력창에 이어 쓰고 Enter — 실패 컨텍스트는 자동 첨부됩니다'));
|
|
3484
|
-
} else {
|
|
3485
|
-
const { dispatchAutopilotMissions } = await import('../autopilot/mission-tool.js');
|
|
3486
|
-
const r = await dispatchAutopilotMissions({
|
|
3487
|
-
action: pick, id: missionId, phase: String(phase.index), via: 'tui',
|
|
3488
|
-
}) as { error?: string; note?: string };
|
|
3489
|
-
chatLines.push('');
|
|
3490
|
-
if (r.error) chatLines.push(C.error(` ✗ ${r.error}`));
|
|
3491
|
-
else {
|
|
3492
|
-
chatLines.push(C.success(` ${r.note ?? `${pick} 시작`}`));
|
|
3493
|
-
startMissionRunWatch(missionId); // 힐 후 순회 재개를 계속 관찰.
|
|
3494
|
-
}
|
|
3495
|
-
}
|
|
3496
|
-
chatScrollOffset = -1;
|
|
3497
|
-
draw();
|
|
3498
|
-
})();
|
|
3499
|
-
},
|
|
3500
|
-
onCancel: () => {
|
|
3501
|
-
closeMissionHitlPicker();
|
|
3502
|
-
chatLines.push(C.muted(` (나중에 — /mission rebuild|split|skip ${missionId} ${phase.index} · 골 정정: /mission revise ${missionId} <코멘트>)`));
|
|
3503
|
-
chatScrollOffset = -1;
|
|
3504
|
-
draw();
|
|
3505
|
-
},
|
|
3506
|
-
theme: currentThemeTokens(),
|
|
3507
|
-
});
|
|
3508
|
-
missionHitlModal = handle;
|
|
3509
|
-
attachSurfaceToWorkspace(handle.surface, currentWorkspaceOwnerId());
|
|
3510
|
-
missionHitlModalHandle = display.pushModal(handle.surface);
|
|
3511
|
-
draw();
|
|
3512
|
-
})();
|
|
3513
|
-
};
|
|
3514
|
-
const startMissionReadyWatch = (missionId: string): void => {
|
|
3515
|
-
if (missionReadyWatchTimers.has(missionId)) return;
|
|
3516
|
-
void (async () => {
|
|
3517
|
-
const watch = await import('../autopilot/mission-tui-watch.js');
|
|
3518
|
-
const baseline = watch.takeMissionReadySnapshot(missionId);
|
|
3519
|
-
let state = watch.createMissionWatchState(baseline, Date.now());
|
|
3520
|
-
const timer = setInterval(() => {
|
|
3521
|
-
const cur = watch.takeMissionReadySnapshot(missionId);
|
|
3522
|
-
const r = watch.advanceMissionWatch(state, cur, Date.now());
|
|
3523
|
-
state = r.state;
|
|
3524
|
-
let readyGoal: string | null = null;
|
|
3525
|
-
for (const ev of r.events) {
|
|
3526
|
-
if (ev.kind === 'phases') {
|
|
3527
|
-
chatLines.push(C.muted(` 🧩 분해 진행 — ${ev.count} 페이즈 (${missionId})`));
|
|
3528
|
-
} else if (ev.kind === 'ready') {
|
|
3529
|
-
const snap = ev.snapshot;
|
|
3530
|
-
readyGoal = snap.goal;
|
|
3531
|
-
chatLines.push('');
|
|
3532
|
-
chatLines.push(C.accent(`❯ 미션 준비 완료 — ${snap.goal.slice(0, 64)}`));
|
|
3533
|
-
// 승인 예고 — 승인하면 무엇이 일어나는지(사람의 승인 판단 근거·dogfood 지적).
|
|
3534
|
-
const tierLabel = snap.tier === 'heavy' ? '무거움' : '가벼움';
|
|
3535
|
-
const approveEffect = snap.executionModel === 'scheduler'
|
|
3536
|
-
? '승인 시 cron 예약(즉시 실행 아님)'
|
|
3537
|
-
: '승인 시 backlog 페이즈 즉시 집행(detached)';
|
|
3538
|
-
chatLines.push(C.subtext(` · 실행모델 ${snap.executionModel || '?'} (${tierLabel}) — ${approveEffect}`));
|
|
3539
|
-
for (const line of watch.missionDescriptionDigest(snap.description)) {
|
|
3540
|
-
chatLines.push(line.startsWith(' ') ? C.muted(` ${line}`) : C.subtext(` · ${line}`));
|
|
3541
|
-
}
|
|
3542
|
-
for (const line of watch.renderMissionPhaseBoardLines(snap.phases, { goal: snap.goal })) {
|
|
3543
|
-
chatLines.push(C.text(` ${line}`));
|
|
3544
|
-
}
|
|
3545
|
-
chatLines.push(C.muted(` 검토 후 선택 — 승인 / 보류 / 정정 (Esc=나중에 · 전문: /mission trace ${missionId})`));
|
|
3546
|
-
} else if (ev.kind === 'resolved-elsewhere') {
|
|
3547
|
-
chatLines.push(C.muted(` ✔ 미션 ${missionId} 은 다른 서피스에서 이미 해소됨 (status=${ev.status})`));
|
|
3548
|
-
} else if (ev.kind === 'gone') {
|
|
3549
|
-
chatLines.push(C.muted(` ✔ 미션 ${missionId} 이 삭제되어 준비 워처를 종료합니다`));
|
|
3550
|
-
} else if (ev.kind === 'timeout') {
|
|
3551
|
-
chatLines.push(C.warning(` ⏰ 미션 준비 워처 타임아웃 — /mission trace ${missionId} 로 확인하세요`));
|
|
3552
|
-
}
|
|
3553
|
-
}
|
|
3554
|
-
if (r.events.length > 0) {
|
|
3555
|
-
chatScrollOffset = -1;
|
|
3556
|
-
draw();
|
|
3557
|
-
}
|
|
3558
|
-
if (r.done) {
|
|
3559
|
-
stopMissionReadyWatch(missionId);
|
|
3560
|
-
if (readyGoal !== null) openMissionHitlPicker(missionId, readyGoal);
|
|
3561
|
-
}
|
|
3562
|
-
}, watch.MISSION_WATCH_INTERVAL_MS);
|
|
3563
|
-
missionReadyWatchTimers.set(missionId, timer);
|
|
3564
|
-
})();
|
|
3565
|
-
};
|
|
3566
|
-
// PR ② — approve 후 실행 워처. 페이즈 전이 chat line(텔레그램 notifyPhaseResult
|
|
3567
|
-
// 동형) + chatFooter 진행바 + 종결 리포트. 실행은 detached run-mission 그대로 —
|
|
3568
|
-
// tox_tasks status 폴링(5s)만. footer 는 MISSION_FOOTER_PREFIX 소유권 판별로
|
|
3569
|
-
// thinking 인디케이터와 공존(우리 것일 때만 갱신/해제).
|
|
3570
|
-
const missionRunWatchTimers = new Map<string, ReturnType<typeof setInterval>>();
|
|
3571
|
-
const stopMissionRunWatch = (missionId: string): void => {
|
|
3572
|
-
const t = missionRunWatchTimers.get(missionId);
|
|
3573
|
-
if (t) { clearInterval(t); missionRunWatchTimers.delete(missionId); }
|
|
3574
|
-
};
|
|
3575
|
-
const startMissionRunWatch = (missionId: string): void => {
|
|
3576
|
-
if (missionRunWatchTimers.has(missionId)) return;
|
|
3577
|
-
void (async () => {
|
|
3578
|
-
const watch = await import('../autopilot/mission-tui-watch.js');
|
|
3579
|
-
const baseline = watch.takeMissionRunSnapshot(missionId);
|
|
3580
|
-
let state = watch.createMissionRunWatchState(baseline, Date.now());
|
|
3581
|
-
const setFooter = (text: string | null): void => {
|
|
3582
|
-
const cur = chatFooterLine.current;
|
|
3583
|
-
if (cur === null || cur.startsWith(watch.MISSION_FOOTER_PREFIX)) chatFooterLine.current = text;
|
|
3584
|
-
};
|
|
3585
|
-
const timer = setInterval(() => {
|
|
3586
|
-
const cur = watch.takeMissionRunSnapshot(missionId);
|
|
3587
|
-
const r = watch.advanceMissionRunWatch(state, cur, Date.now());
|
|
3588
|
-
state = r.state;
|
|
3589
|
-
for (const ev of r.events) {
|
|
3590
|
-
if (ev.kind === 'phase') {
|
|
3591
|
-
const line = watch.renderMissionRunPhaseLine(ev);
|
|
3592
|
-
chatLines.push(ev.phase.status === 'failed' ? C.error(` ${line}`) : C.text(` ${line}`));
|
|
3593
|
-
// P4 — 실패 즉시 저장 진단 카드(🧭 왜 실패 + 💡 권장 힐·텔레그램 동형) + 힐 픽커.
|
|
3594
|
-
if (ev.phase.status === 'failed') {
|
|
3595
|
-
for (const dl of watch.renderMissionPhaseDiagnosisLines(ev.phase)) {
|
|
3596
|
-
chatLines.push(C.subtext(` ${dl}`));
|
|
3597
|
-
}
|
|
3598
|
-
openMissionHealPicker(missionId, ev.phase);
|
|
3599
|
-
}
|
|
3600
|
-
} else if (ev.kind === 'progress') {
|
|
3601
|
-
// 페이즈 내부 변곡점(#3919 미러) — 재시도·예산 상향·opus 폴백 국면을 1줄로.
|
|
3602
|
-
chatLines.push(C.muted(` ⏳ ${ev.phase.index + 1}/${ev.total} ${ev.note.slice(0, 96)}`));
|
|
3603
|
-
} else if (ev.kind === 'finished') {
|
|
3604
|
-
chatLines.push('');
|
|
3605
|
-
chatLines.push(C.accent(`❯ 미션 종결 — ${ev.snapshot.goal.slice(0, 64)}`));
|
|
3606
|
-
for (const line of watch.renderMissionRunReportLines(ev.snapshot)) {
|
|
3607
|
-
chatLines.push(line.startsWith('❌') ? C.warning(` ${line}`) : C.text(` ${line}`));
|
|
3608
|
-
}
|
|
3609
|
-
chatLines.push(C.muted(` 상세: /mission trace ${missionId}`));
|
|
3610
|
-
} else if (ev.kind === 'gone') {
|
|
3611
|
-
chatLines.push(C.muted(` ✔ 미션 ${missionId} 이 삭제되어 실행 워처를 종료합니다`));
|
|
3612
|
-
} else if (ev.kind === 'timeout') {
|
|
3613
|
-
chatLines.push(C.warning(` ⏰ 미션 실행 워처 타임아웃(4h) — /mission trace ${missionId} 로 확인하세요`));
|
|
3614
|
-
}
|
|
3615
|
-
}
|
|
3616
|
-
if (r.events.length > 0) {
|
|
3617
|
-
setFooter(r.done || !cur ? null : watch.renderMissionRunFooter(cur));
|
|
3618
|
-
chatScrollOffset = -1;
|
|
3619
|
-
draw();
|
|
3620
|
-
}
|
|
3621
|
-
if (r.done) {
|
|
3622
|
-
setFooter(null);
|
|
3623
|
-
stopMissionRunWatch(missionId);
|
|
3624
|
-
}
|
|
3625
|
-
}, watch.MISSION_RUN_WATCH_INTERVAL_MS);
|
|
3626
|
-
missionRunWatchTimers.set(missionId, timer);
|
|
3627
|
-
const first = baseline ? watch.renderMissionRunFooter(baseline) : null;
|
|
3628
|
-
if (first) { setFooter(first); draw(); }
|
|
3629
|
-
})();
|
|
3630
|
-
};
|
|
3631
|
-
|
|
3632
3293
|
// C-d-3' (2026-07-13) — 턴 중 타이핑 보존 상태 + 에코 페인터 (essential 전용).
|
|
3633
3294
|
// 스트리밍 사다리가 printable/BS/Enter 를 이 버퍼로 소유하고 composer zone 에
|
|
3634
3295
|
// 즉시 에코 · 턴 종료 시 loop-head 핸드오프가 prefill/자동제출로 넘긴다.
|
|
@@ -3902,7 +3563,7 @@ Mode- and sync-specific instructions are injected per-turn when relevant — do
|
|
|
3902
3563
|
const hud = createHud();
|
|
3903
3564
|
|
|
3904
3565
|
// Reasoning HUD segment — provider-agnostic emoji + label that
|
|
3905
|
-
// sits in the top transient HUD row (next to
|
|
3566
|
+
// sits in the top transient HUD row (next to streaming
|
|
3906
3567
|
// indicators), NOT the bottom status bar. Capability-driven: pill
|
|
3907
3568
|
// auto-shows for reasoning-capable models (gpt-5 family + claude-4
|
|
3908
3569
|
// / 3.7) at the model's effective level. Models that don't support
|
|
@@ -4055,12 +3716,6 @@ Mode- and sync-specific instructions are injected per-turn when relevant — do
|
|
|
4055
3716
|
layoutMode: conversationSnapshot.layoutMode,
|
|
4056
3717
|
},
|
|
4057
3718
|
mode: inputCoreActiveMode(), // A1 — ◆ mode pill (sync/control)
|
|
4058
|
-
// experiment/voice-chat-realtime-rebind — voice / dictation /
|
|
4059
|
-
// voice-chat indicators are unified into the HUD `voice-state`
|
|
4060
|
-
// segment (see hud.setSegment calls in onIndicatorChange and
|
|
4061
|
-
// dashboardVoiceChat.onPhaseChange). The status-bar pill is
|
|
4062
|
-
// intentionally null so we don't render the same state twice.
|
|
4063
|
-
voiceLabel: null,
|
|
4064
3719
|
runningBuild: runningBuildStatus(),
|
|
4065
3720
|
theme,
|
|
4066
3721
|
});
|
|
@@ -4176,32 +3831,38 @@ Mode- and sync-specific instructions are injected per-turn when relevant — do
|
|
|
4176
3831
|
const { getShellRegistry: pfcGetShellRegistry } = await import(
|
|
4177
3832
|
'../shell-runner/registry.js'
|
|
4178
3833
|
);
|
|
4179
|
-
//
|
|
4180
|
-
// Both runtimes depend on resources (auto-tts controller +
|
|
4181
|
-
// dispatchScreenshot import) that come up later in boot. The PFC
|
|
4182
|
-
// feedback runtime forwards `onNotification` to these refs so V1
|
|
4183
|
-
// / X4 attach without re-plumbing the T1 boot order.
|
|
4184
|
-
const pfcVoiceRuntimeRef: { current: PfcVoiceRuntime | null } = { current: null };
|
|
3834
|
+
// X4 (Bundle 2) — late-bound screenshot attachment.
|
|
4185
3835
|
const pfcScreenshotAttacherRef: { current: PfcScreenshotAttacher | null } = { current: null };
|
|
3836
|
+
// ── X4 (Bundle 2) — PFC auto-screenshot attachment ──
|
|
3837
|
+
// Screenshot capture is independent of dashboard voice support.
|
|
3838
|
+
// Opt-in via `ELANOUS_PFC_AUTO_SCREENSHOT=1`.
|
|
3839
|
+
if (process.env.ELANOUS_PFC_AUTO_SCREENSHOT === '1') {
|
|
3840
|
+
const { dispatchScreenshot: pfcDispatchScreenshot } = await import(
|
|
3841
|
+
'../capture/capture-tools.js'
|
|
3842
|
+
);
|
|
3843
|
+
pfcScreenshotAttacherRef.current = createPfcScreenshotAttacher({
|
|
3844
|
+
resolveScreenshotTarget: () => null,
|
|
3845
|
+
dispatchScreenshot: async (args) => {
|
|
3846
|
+
const out = await pfcDispatchScreenshot(args);
|
|
3847
|
+
return {
|
|
3848
|
+
...(out.bodyBase64 !== undefined ? { bodyBase64: out.bodyBase64 } : {}),
|
|
3849
|
+
...(out.bytes !== undefined ? { bytes: out.bytes } : {}),
|
|
3850
|
+
...(out.note !== undefined ? { note: out.note } : {}),
|
|
3851
|
+
};
|
|
3852
|
+
},
|
|
3853
|
+
logDebug: (category, event, data) => debug.log(category, event, data),
|
|
3854
|
+
});
|
|
3855
|
+
}
|
|
3856
|
+
// Install the optional screenshot sink before the watcher subscribes,
|
|
3857
|
+
// so the first shell notification cannot race ahead of its setup.
|
|
4186
3858
|
const pfcFeedbackRuntime = createDashboardPfcFeedbackRuntime({
|
|
4187
3859
|
registry: pfcGetShellRegistry(),
|
|
4188
3860
|
pushChatLine: (line) => { pushChatLine(C.muted(line)); },
|
|
4189
3861
|
enabled: pfcReverseFeedbackEnabled,
|
|
4190
3862
|
logDebug: (category, event, data) => debug.log(category, event, data),
|
|
4191
3863
|
onNotification: (notification) => {
|
|
4192
|
-
// X4 attaches first (async screenshot capture inside its own
|
|
4193
|
-
// budget), then V1 fires voice on the augmented notification.
|
|
4194
3864
|
const attacher = pfcScreenshotAttacherRef.current;
|
|
4195
|
-
|
|
4196
|
-
if (!attacher && !voice) return;
|
|
4197
|
-
const finalize = (final: typeof notification): void => {
|
|
4198
|
-
try { voice?.onNotification(final); } catch { /* isolate */ }
|
|
4199
|
-
};
|
|
4200
|
-
if (attacher) {
|
|
4201
|
-
void attacher.attach(notification).then(finalize, () => finalize(notification));
|
|
4202
|
-
} else {
|
|
4203
|
-
finalize(notification);
|
|
4204
|
-
}
|
|
3865
|
+
if (attacher) void attacher.attach(notification).catch(() => {});
|
|
4205
3866
|
},
|
|
4206
3867
|
});
|
|
4207
3868
|
if (debug.enabled) {
|
|
@@ -5621,536 +5282,8 @@ Mode- and sync-specific instructions are injected per-turn when relevant — do
|
|
|
5621
5282
|
draw: () => { draw(); },
|
|
5622
5283
|
});
|
|
5623
5284
|
|
|
5624
|
-
// ── PR-S1V.4-wiring · Voice input host (2026-04-29) ────────────────
|
|
5625
|
-
//
|
|
5626
|
-
// Lazy boot: only construct the STTProvider + host when the user has
|
|
5627
|
-
// an OpenAI key set. Without one the host stays `null` and the
|
|
5628
|
-
// priority-route deps below short-circuit so voice paths are entirely
|
|
5629
|
-
// inactive (no kitty toggles, no key swallowing). Production users
|
|
5630
|
-
// opt in by exporting OPENAI_API_KEY before launching elanous. Status
|
|
5631
|
-
// bar segment also stays empty because `voiceIndicatorLabel` never
|
|
5632
|
-
// transitions away from null.
|
|
5633
|
-
//
|
|
5634
|
-
// PLAN §4.5 — resolveSession is alias-normalized via BRAND_ALIASES so
|
|
5635
|
-
// "claude" voice prefix matches a "claude-code" launch brand. Focused
|
|
5636
|
-
// fallback uses (a) conversationPopupHost.snapshot().focusedSessionId
|
|
5637
|
-
// and (c) the focused VW pane → findLiveSessionByPaneId chain. When
|
|
5638
|
-
// both miss the resolveSession returns null and the bridge drops the
|
|
5639
|
-
// transcript with reason='no-stream'.
|
|
5640
|
-
//
|
|
5641
|
-
// PLAN §4.5 — submitToSession is transport-aware: embodied PTY
|
|
5642
|
-
// sessions go through `entry.session.send` with the reply.ts:150
|
|
5643
|
-
// newline append pattern. ACP live sessions echo via
|
|
5644
|
-
// `globalAcpEventRouter().noteUserSubmit` then `clientSessionSend`
|
|
5645
|
-
// (matching the chat input submit pattern in vw-live-bridge.ts:325).
|
|
5646
|
-
let voiceInputHost: VoiceInputHost | null = null;
|
|
5647
|
-
let voiceIndicatorLabel: string | null = null;
|
|
5648
|
-
let voiceUnsubscribeIndicator: (() => void) | null = null;
|
|
5649
|
-
// PR-S1V.D4 (2026-04-29) — long-press Space dictation detector. Runs
|
|
5650
|
-
// alongside the voice host but mutually exclusive (one sox subprocess
|
|
5651
|
-
// at a time, enforced by `host.startDictation` returning false when
|
|
5652
|
-
// voice mode is active). The detector reconstructs hold/release from
|
|
5653
|
-
// the OS key-repeat stream so a long Space hold becomes dictation
|
|
5654
|
-
// without depending on kitty `>3u` release events at idle. resolveSession
|
|
5655
|
-
// / submitToSession / dictateTranscript live in `createDashboardVoiceRuntime`
|
|
5656
|
-
// (extracted from this file in the dashboard refactor); the detector
|
|
5657
|
-
// wires the host startDictation/stopDictation pair only.
|
|
5658
|
-
let voiceLongPressDetector: SpaceLongPressDetector | null = null;
|
|
5659
|
-
// TEMP DEBUG TRIAL (2026-04-29 · fix/voice-runtime-tdz-2) — toggle-mode
|
|
5660
|
-
// dictation chord. Bypasses the long-press detector entirely for the
|
|
5661
|
-
// trial chord (Ctrl+Shift+D). First press starts dictation, second
|
|
5662
|
-
// press stops. Debounce ignores OS auto-repeat keystrokes from
|
|
5663
|
-
// pile-up-toggling within ~300 ms. Plain Space (Branch 2) keeps the
|
|
5664
|
-
// detector path so we can A/B compare both UX patterns in dogfood.
|
|
5665
|
-
let lastDictationToggleAt = 0;
|
|
5666
|
-
const DICTATION_TOGGLE_DEBOUNCE_MS = 300;
|
|
5667
|
-
function toggleDictationFromChord(source: string, keyName: string | undefined): boolean {
|
|
5668
|
-
if (!voiceInputHost) {
|
|
5669
|
-
if (debug.enabled) debug.log('voice.toggle.skip', 'no-host', { source, keyName });
|
|
5670
|
-
return false;
|
|
5671
|
-
}
|
|
5672
|
-
if (voiceInputHost.getState().kind !== 'idle') {
|
|
5673
|
-
if (debug.enabled) {
|
|
5674
|
-
debug.log('voice.toggle.skip', 'voice-mode-active', {
|
|
5675
|
-
source, keyName, voiceState: voiceInputHost.getState().kind,
|
|
5676
|
-
});
|
|
5677
|
-
}
|
|
5678
|
-
return false;
|
|
5679
|
-
}
|
|
5680
|
-
const nowMs = Date.now();
|
|
5681
|
-
const sinceLast = nowMs - lastDictationToggleAt;
|
|
5682
|
-
if (sinceLast < DICTATION_TOGGLE_DEBOUNCE_MS) {
|
|
5683
|
-
if (debug.enabled) {
|
|
5684
|
-
debug.log('voice.toggle.debounced', 'os-repeat', {
|
|
5685
|
-
source, keyName, sinceLast, debounceMs: DICTATION_TOGGLE_DEBOUNCE_MS,
|
|
5686
|
-
});
|
|
5687
|
-
}
|
|
5688
|
-
return false;
|
|
5689
|
-
}
|
|
5690
|
-
lastDictationToggleAt = nowMs;
|
|
5691
|
-
const dictState = voiceInputHost.getDictationState();
|
|
5692
|
-
if (dictState === 'idle') {
|
|
5693
|
-
const ok = voiceInputHost.startDictation();
|
|
5694
|
-
if (debug.enabled) debug.log('voice.toggle.start', source, { keyName, ok });
|
|
5695
|
-
} else if (dictState === 'recording') {
|
|
5696
|
-
void voiceInputHost.stopDictation();
|
|
5697
|
-
if (debug.enabled) debug.log('voice.toggle.stop', source, { keyName, dictState });
|
|
5698
|
-
} else {
|
|
5699
|
-
if (debug.enabled) {
|
|
5700
|
-
debug.log('voice.toggle.skip', 'processing', { source, keyName, dictState });
|
|
5701
|
-
}
|
|
5702
|
-
}
|
|
5703
|
-
return true;
|
|
5704
|
-
}
|
|
5705
|
-
const voiceRuntime = createDashboardVoiceRuntime({
|
|
5706
|
-
listLiveSessions: listLiveEmbodiedSessions,
|
|
5707
|
-
findLiveSessionById,
|
|
5708
|
-
findLiveSessionByPaneId,
|
|
5709
|
-
getFocusedConversationSessionId: () => conversationPopupHost.snapshot().focusedSessionId,
|
|
5710
|
-
getFocusedVirtualWindowPane: () => ({ vwId: null, paneId: null, paneKind: null }),
|
|
5711
|
-
noteUserSubmit: (sessionId, text) => globalAcpEventRouter().noteUserSubmit(sessionId, text),
|
|
5712
|
-
clientSessionSend: (opts) => globalDualRoleManager().clientSessionSend(opts),
|
|
5713
|
-
getWorkingFocus: () => workingDir.focus,
|
|
5714
|
-
getChatMainInputVisibilityState: () => chatMainInputVisibilityState(),
|
|
5715
|
-
chatMainPromptLive: () => typeof promptCtl.insertAtCursor === 'function',
|
|
5716
|
-
insertIntoChatMainPrompt: (text) => {
|
|
5717
|
-
promptCtl.insertAtCursor?.(text);
|
|
5718
|
-
},
|
|
5719
|
-
appendInputPrefixInline: (text) => inputPrefixState.appendInline(text),
|
|
5720
|
-
// Lazy wrappers — `applyFocusToInputTransition` is `const`-declared
|
|
5721
|
-
// further down (~line 6896), so a shorthand reference here triggers
|
|
5722
|
-
// a TDZ ReferenceError when `createDashboardVoiceRuntime` evaluates
|
|
5723
|
-
// its deps object during boot. The arrow defers the name lookup
|
|
5724
|
-
// until dictation actually runs — by that time the dashboard scope
|
|
5725
|
-
// is fully initialized. `draw` is a `let` placeholder at line 2475
|
|
5726
|
-
// that's later reassigned (~10665); the shorthand would otherwise
|
|
5727
|
-
// capture the placeholder no-op so dictation-driven redraws never
|
|
5728
|
-
// ran. Same lazy lookup fixes both.
|
|
5729
|
-
applyFocusToInputTransition: (transition) => applyFocusToInputTransition(transition),
|
|
5730
|
-
setPendingInputEntryModePlain: () => focusTransitionState.setPendingInputEntryMode('plain'),
|
|
5731
|
-
draw: () => draw(),
|
|
5732
|
-
});
|
|
5733
|
-
// 2026-04-30 — expose dictateTranscript for the PWA voice
|
|
5734
|
-
// `tui-bridge` dispatch mode. When the daemon and dashboard share a
|
|
5735
|
-
// process (e.g. `elanous start --http-port`), users with
|
|
5736
|
-
// `voice.pwa.dispatch: 'tui-bridge'` will see their phone transcripts
|
|
5737
|
-
// injected into the focused dashboard input via this hook. The
|
|
5738
|
-
// singleton stays unset in dashboard-less daemons (`elanous serve`),
|
|
5739
|
-
// and the dispatcher short-circuits gracefully there.
|
|
5740
|
-
setDaemonInputHost({
|
|
5741
|
-
dictateTranscript: (text: string) => voiceRuntime.dictateTranscript(text),
|
|
5742
|
-
});
|
|
5743
|
-
// Phase 2 auto-TTS — config priority: user-config > env > default.
|
|
5744
|
-
// Provider is created lazily on first sentence so a missing
|
|
5745
|
-
// OPENAI_API_KEY (or absence of any TTS dep) doesn't crash the
|
|
5746
|
-
// dashboard for users who never opt in.
|
|
5747
|
-
const dashboardAutoTts = (() => {
|
|
5748
|
-
const voiceCfg = getUserConfig().voice;
|
|
5749
|
-
return bootDashboardAutoTts({
|
|
5750
|
-
...(voiceCfg.tts.provider ? { providerId: voiceCfg.tts.provider } : {}),
|
|
5751
|
-
...(typeof voiceCfg.tts.auto === 'boolean' ? { initiallyEnabled: voiceCfg.tts.auto } : {}),
|
|
5752
|
-
...(typeof voiceCfg.tts.maxSentenceChars === 'number'
|
|
5753
|
-
? { maxSentenceChars: voiceCfg.tts.maxSentenceChars }
|
|
5754
|
-
: {}),
|
|
5755
|
-
});
|
|
5756
|
-
})();
|
|
5757
|
-
// ── V1 (Bundle 2) — PFC voice TTS report ──
|
|
5758
|
-
// Wires the PFC notification sink to the auto-tts controller. Opt-in
|
|
5759
|
-
// via `ELANOUS_PFC_VOICE_REPORT=1` so first dogfood doesn't surprise.
|
|
5760
|
-
pfcVoiceRuntimeRef.current = createPfcVoiceRuntime({
|
|
5761
|
-
getController: () => dashboardAutoTts.controller,
|
|
5762
|
-
initiallyEnabled: process.env.ELANOUS_PFC_VOICE_REPORT === '1',
|
|
5763
|
-
logDebug: (category, event, data) => debug.log(category, event, data),
|
|
5764
|
-
});
|
|
5765
|
-
// ── X4 (Bundle 2) — PFC auto-Screenshot attachment ──
|
|
5766
|
-
// Async PNG capture for screenshot-capable surfaces; result attached
|
|
5767
|
-
// to the PfcReverseFeedbackNotification before downstream sinks
|
|
5768
|
-
// (voice + future vision LLM proposers in Bundle 3 X7) consume it.
|
|
5769
|
-
// Opt-in via `ELANOUS_PFC_AUTO_SCREENSHOT=1`.
|
|
5770
|
-
if (process.env.ELANOUS_PFC_AUTO_SCREENSHOT === '1') {
|
|
5771
|
-
const { dispatchScreenshot: pfcDispatchScreenshot } = await import(
|
|
5772
|
-
'../capture/capture-tools.js'
|
|
5773
|
-
);
|
|
5774
|
-
pfcScreenshotAttacherRef.current = createPfcScreenshotAttacher({
|
|
5775
|
-
resolveScreenshotTarget: () => null,
|
|
5776
|
-
dispatchScreenshot: async (args) => {
|
|
5777
|
-
const out = await pfcDispatchScreenshot(args);
|
|
5778
|
-
return {
|
|
5779
|
-
...(out.bodyBase64 !== undefined ? { bodyBase64: out.bodyBase64 } : {}),
|
|
5780
|
-
...(out.bytes !== undefined ? { bytes: out.bytes } : {}),
|
|
5781
|
-
...(out.note !== undefined ? { note: out.note } : {}),
|
|
5782
|
-
};
|
|
5783
|
-
},
|
|
5784
|
-
logDebug: (category, event, data) => debug.log(category, event, data),
|
|
5785
|
-
});
|
|
5786
|
-
}
|
|
5787
|
-
if (debug.enabled) {
|
|
5788
|
-
debug.log('pfc.bundle2.boot', 'ready', {
|
|
5789
|
-
voiceReport: pfcVoiceRuntimeRef.current.isEnabled(),
|
|
5790
|
-
autoScreenshot: pfcScreenshotAttacherRef.current !== null,
|
|
5791
|
-
});
|
|
5792
|
-
}
|
|
5793
5285
|
const dashboardControlSignals = defaultControlSignalBus();
|
|
5794
|
-
|
|
5795
|
-
// dispatch helper (dispatchAcpSend) is defined inside the input
|
|
5796
|
-
// loop, so we hold a mutable reference and bind it on every iter.
|
|
5797
|
-
let voiceChatSubmitImpl: ((text: string) => void) | null = null;
|
|
5798
|
-
// Voice-chat error display — three surfaces fire in concert:
|
|
5799
|
-
// 1. HUD `voice-error` segment (3s banner) — distinct emoji + color
|
|
5800
|
-
// so the user can tell at a glance the system is in error state,
|
|
5801
|
-
// not normal idle/listening.
|
|
5802
|
-
// 2. chatLines warning — permanent record (user can scroll back).
|
|
5803
|
-
// 3. Toast popup (bottom-right transient, 5s) — separate surface
|
|
5804
|
-
// so the user notices even if their attention isn't on the HUD.
|
|
5805
|
-
// The `voice-error` segment uses 🔴 + "ERROR" prefix so it is
|
|
5806
|
-
// unmistakably an error state (not the same accent ⚠ as the
|
|
5807
|
-
// chord-toggle mutex warning, which is a softer "rejected" message).
|
|
5808
|
-
let voiceErrorTimer: ReturnType<typeof setTimeout> | null = null;
|
|
5809
|
-
const showVoiceError = (err: Error): void => {
|
|
5810
|
-
const summary = err.message.length > 120
|
|
5811
|
-
? err.message.slice(0, 117) + '…'
|
|
5812
|
-
: err.message;
|
|
5813
|
-
// 1. chatLines — permanent record.
|
|
5814
|
-
chatLines.push('');
|
|
5815
|
-
chatLines.push(C.error(`🔴 [voice-chat ERROR] ${summary}`));
|
|
5816
|
-
chatScrollOffset = -1;
|
|
5817
|
-
// 2. HUD — error state distinct from any normal phase color.
|
|
5818
|
-
setSegment(hud, 'voice-error', C.error(`🔴 voice ERROR · ${summary}`), 7);
|
|
5819
|
-
if (voiceErrorTimer) clearTimeout(voiceErrorTimer);
|
|
5820
|
-
voiceErrorTimer = setTimeout(() => {
|
|
5821
|
-
clearSegment(hud, 'voice-error');
|
|
5822
|
-
voiceErrorTimer = null;
|
|
5823
|
-
requestDashboardRender();
|
|
5824
|
-
}, 3000);
|
|
5825
|
-
// 3. Toast popup — bottom-right, 5s. Separate group so it doesn't
|
|
5826
|
-
// collide with regular toast notifications. Lines wrapped at ~52
|
|
5827
|
-
// cells (toast max is 56). Long messages split across lines.
|
|
5828
|
-
try {
|
|
5829
|
-
const { cols: tc, rows: tr } = termSize();
|
|
5830
|
-
const wrapAt = 52;
|
|
5831
|
-
const lines: string[] = [];
|
|
5832
|
-
let remaining = summary;
|
|
5833
|
-
while (remaining.length > wrapAt) {
|
|
5834
|
-
lines.push(remaining.slice(0, wrapAt));
|
|
5835
|
-
remaining = remaining.slice(wrapAt);
|
|
5836
|
-
}
|
|
5837
|
-
if (remaining) lines.push(remaining);
|
|
5838
|
-
lines.push('');
|
|
5839
|
-
lines.push('ESC to dismiss');
|
|
5840
|
-
showToast({
|
|
5841
|
-
title: '🔴 voice-chat ERROR',
|
|
5842
|
-
lines,
|
|
5843
|
-
coordinator: display,
|
|
5844
|
-
termCols: tc,
|
|
5845
|
-
termRows: tr,
|
|
5846
|
-
ttlMs: 5000,
|
|
5847
|
-
group: 'voice-error',
|
|
5848
|
-
});
|
|
5849
|
-
} catch (showErr) {
|
|
5850
|
-
if (debug.enabled)
|
|
5851
|
-
debug.log('voice.chat.error', 'toast.exception', {
|
|
5852
|
-
err: showErr instanceof Error ? showErr.message : String(showErr),
|
|
5853
|
-
}, { level: 'error' });
|
|
5854
|
-
}
|
|
5855
|
-
requestDashboardRender();
|
|
5856
|
-
};
|
|
5857
|
-
attachDashboardQuickPassConsumers({
|
|
5858
|
-
signalBus: dashboardControlSignals,
|
|
5859
|
-
cancelOutput: () => dashboardAutoTts.hooks.cancel(),
|
|
5860
|
-
onConsumed: ({ kind, urgency, surface }) => {
|
|
5861
|
-
if (debug.enabled) {
|
|
5862
|
-
debug.log('input.control', 'quick-pass.consume', {
|
|
5863
|
-
signalKind: kind,
|
|
5864
|
-
urgency,
|
|
5865
|
-
surface,
|
|
5866
|
-
});
|
|
5867
|
-
}
|
|
5868
|
-
},
|
|
5869
|
-
onError: ({ kind }, err) => {
|
|
5870
|
-
if (debug.enabled) {
|
|
5871
|
-
debug.log('input.control', 'quick-pass.consume.error', {
|
|
5872
|
-
signalKind: kind,
|
|
5873
|
-
error: err instanceof Error ? err.message : String(err),
|
|
5874
|
-
}, { level: 'error' });
|
|
5875
|
-
}
|
|
5876
|
-
},
|
|
5877
|
-
});
|
|
5878
|
-
function emitVoiceChatStopQuickPass(reason: 'esc' | 'alt-s' | 'barge-in'): void {
|
|
5879
|
-
dashboardControlSignals.emit({
|
|
5880
|
-
kind: 'voice-chat-stop',
|
|
5881
|
-
urgency: 'quick-pass',
|
|
5882
|
-
source: 'system',
|
|
5883
|
-
mayPreempt: true,
|
|
5884
|
-
scope: { surface: 'voice-chat', channel: 'dashboard' },
|
|
5885
|
-
payload: {
|
|
5886
|
-
reason,
|
|
5887
|
-
phase: dashboardVoiceChat.controller.getPhase(),
|
|
5888
|
-
},
|
|
5889
|
-
});
|
|
5890
|
-
}
|
|
5891
|
-
// Voice user-config snapshot at boot. Each field is sparse —
|
|
5892
|
-
// only present when the user explicitly set it in config.json.
|
|
5893
|
-
// host-boot sees `undefined` and falls back to env (backward
|
|
5894
|
-
// compat) → hardcoded default.
|
|
5895
|
-
const voiceCfgAtBoot = getUserConfig().voice;
|
|
5896
|
-
const dashboardVoiceChat = bootDashboardVoiceChat({
|
|
5897
|
-
...(voiceCfgAtBoot.stt.provider ? { providerId: voiceCfgAtBoot.stt.provider } : {}),
|
|
5898
|
-
...(voiceCfgAtBoot.vad.mode ? { vadMode: voiceCfgAtBoot.vad.mode } : {}),
|
|
5899
|
-
...(typeof voiceCfgAtBoot.chat.multiTurn === 'boolean'
|
|
5900
|
-
? { multiTurn: voiceCfgAtBoot.chat.multiTurn }
|
|
5901
|
-
: {}),
|
|
5902
|
-
...((typeof voiceCfgAtBoot.vad.threshold === 'number'
|
|
5903
|
-
|| typeof voiceCfgAtBoot.vad.silenceMs === 'number'
|
|
5904
|
-
|| typeof voiceCfgAtBoot.vad.minSpeechMs === 'number')
|
|
5905
|
-
? {
|
|
5906
|
-
vadOpts: {
|
|
5907
|
-
...(typeof voiceCfgAtBoot.vad.threshold === 'number'
|
|
5908
|
-
? { threshold: voiceCfgAtBoot.vad.threshold } : {}),
|
|
5909
|
-
...(typeof voiceCfgAtBoot.vad.silenceMs === 'number'
|
|
5910
|
-
? { silenceMs: voiceCfgAtBoot.vad.silenceMs } : {}),
|
|
5911
|
-
...(typeof voiceCfgAtBoot.vad.minSpeechMs === 'number'
|
|
5912
|
-
? { minSpeechMs: voiceCfgAtBoot.vad.minSpeechMs } : {}),
|
|
5913
|
-
},
|
|
5914
|
-
}
|
|
5915
|
-
: {}),
|
|
5916
|
-
submitTranscript: (text) => {
|
|
5917
|
-
// 2026-04-30 — UX revision: route the transcript through D5
|
|
5918
|
-
// PTT's `dictateTranscript` so the user SEES their words in
|
|
5919
|
-
// the chat input, but DON'T auto-submit in single-turn mode.
|
|
5920
|
-
// User feedback: "열심히 받아 적은 보이스 텍스트가 ctrl+l 다시
|
|
5921
|
-
// 인풋 모드 들어가자 마자 클리어 되버렸어요." — the previous
|
|
5922
|
-
// double-action (inject + submit) raced with the input pane's
|
|
5923
|
-
// ESC handler and made the text disappear when the user tried
|
|
5924
|
-
// to exit.
|
|
5925
|
-
//
|
|
5926
|
-
// Phase transition policy (post-2026-04-30 host-boot change):
|
|
5927
|
-
// - single-turn OFF → dictate to the input buffer, then
|
|
5928
|
-
// controller.exit so the user owns submit timing.
|
|
5929
|
-
// - multi-turn ON → delegate to `voiceChatSubmitImpl`. That
|
|
5930
|
-
// closure decides between (a) sticky-armed auto-submit
|
|
5931
|
-
// (transition → speaking) vs (b) sticky-less plain
|
|
5932
|
-
// auto-submit via the textInput host's external submit
|
|
5933
|
-
// hook.
|
|
5934
|
-
// - multi-turn OFF (single-turn default) → controller.exit
|
|
5935
|
-
// so HUD clears; user reads transcript + presses Enter
|
|
5936
|
-
// for a normal LLM turn.
|
|
5937
|
-
if (dashboardVoiceChat.multiTurn && voiceChatSubmitImpl) {
|
|
5938
|
-
voiceChatSubmitImpl(text);
|
|
5939
|
-
return;
|
|
5940
|
-
}
|
|
5941
|
-
try { voiceRuntime.dictateTranscript(text); } catch { /* ignore */ }
|
|
5942
|
-
// Single-turn (or multi-turn pre-init) — voice-chat ends here;
|
|
5943
|
-
// the user owns submit timing via the chat input.
|
|
5944
|
-
try { dashboardVoiceChat.controller.exit('user-cancel'); } catch { /* ignore */ }
|
|
5945
|
-
},
|
|
5946
|
-
onPartialTranscript: (text) => {
|
|
5947
|
-
if (debug.enabled)
|
|
5948
|
-
debug.log('voice.chat.partial', 'tick', { snip: text.slice(0, 60) });
|
|
5949
|
-
},
|
|
5950
|
-
onBargeIn: () => {
|
|
5951
|
-
emitVoiceChatStopQuickPass('barge-in');
|
|
5952
|
-
},
|
|
5953
|
-
onError: showVoiceError,
|
|
5954
|
-
onPhaseChange: (next, prev) => {
|
|
5955
|
-
// experiment/voice-chat-realtime-rebind — phase indicator goes
|
|
5956
|
-
// to the HUD status bar segment ONLY (NOT chatLines). The chat
|
|
5957
|
-
// log shows just start + end events (pushed by the chord/ESC
|
|
5958
|
-
// handlers) so it stays uncluttered; the HUD carries the
|
|
5959
|
-
// moment-to-moment phase. Each phase has a distinct emoji +
|
|
5960
|
-
// color in the HUD.
|
|
5961
|
-
//
|
|
5962
|
-
// inactive → segment cleared (no indicator)
|
|
5963
|
-
// listening → 🎙 voice · 듣는 중 (accent · prominent)
|
|
5964
|
-
// processing → 💭 voice · 생각 중 (info)
|
|
5965
|
-
// speaking → 🗣 voice · 말하는 중 (success · green)
|
|
5966
|
-
// stopping → ⏹ voice · 정리 (muted · fading)
|
|
5967
|
-
//
|
|
5968
|
-
// priority 6 puts it above the agent-activity segment (3) but
|
|
5969
|
-
// below the copied/toast segments (10) so it never hides the
|
|
5970
|
-
// higher-priority transient banners.
|
|
5971
|
-
if (next === 'inactive') {
|
|
5972
|
-
// Don't wipe a fresh dictation indicator if D5 voice mode is
|
|
5973
|
-
// also active mid-transition (mutex normally prevents this,
|
|
5974
|
-
// but the race window is real during exit cleanup).
|
|
5975
|
-
if (voiceIndicatorLabel === null) {
|
|
5976
|
-
clearSegment(hud, 'voice-state');
|
|
5977
|
-
}
|
|
5978
|
-
// 2026-04-30 — sync pipeline lifecycle with controller.
|
|
5979
|
-
//
|
|
5980
|
-
// Several controller.exit call sites (single-turn submitTranscript
|
|
5981
|
-
// dictate-only, voiceChatSubmitImpl dictate-fallback, error
|
|
5982
|
-
// recovery in onFinalTranscript catch) used to flip the
|
|
5983
|
-
// controller to `inactive` WITHOUT calling pipeline.cancel().
|
|
5984
|
-
// That left `pipeline.listening = true` + the STT WebSocket
|
|
5985
|
-
// session + the sox capture subprocess alive as residue.
|
|
5986
|
-
// Next `Alt+R` enter then hit pipeline.startListening's guard
|
|
5987
|
-
// (`if (listening) return false`) and the toggle reported
|
|
5988
|
-
// "voice-chat: failed to start listening — check audio device
|
|
5989
|
-
// + STT provider" with no real cause.
|
|
5990
|
-
//
|
|
5991
|
-
// Rather than patch every exit call site, we hook the
|
|
5992
|
-
// pipeline cleanup to the controller's terminal phase: the
|
|
5993
|
-
// controller is the source of truth for "voice-chat is over",
|
|
5994
|
-
// and pipeline.cancel() is idempotent (its own guard at
|
|
5995
|
-
// line 264 returns early when nothing is live), so this
|
|
5996
|
-
// wire is safe even when an explicit cancel already ran
|
|
5997
|
-
// (handleEsc / toggleVoiceChatRealtime exit path).
|
|
5998
|
-
try {
|
|
5999
|
-
void dashboardVoiceChat.pipeline.cancel();
|
|
6000
|
-
} catch (err) {
|
|
6001
|
-
if (debug.enabled)
|
|
6002
|
-
debug.log('voice.chat.error', 'inactive.pipeline.cancel.exception', {
|
|
6003
|
-
err: err instanceof Error ? err.message : String(err),
|
|
6004
|
-
}, { level: 'error' });
|
|
6005
|
-
}
|
|
6006
|
-
} else {
|
|
6007
|
-
type Spec = { emoji: string; label: string; color: (s: string) => string };
|
|
6008
|
-
const specs: Record<Exclude<typeof next, 'inactive'>, Spec> = {
|
|
6009
|
-
listening: { emoji: '🎙', label: '듣는 중', color: C.accent },
|
|
6010
|
-
processing: { emoji: '💭', label: '생각 중', color: C.info },
|
|
6011
|
-
speaking: { emoji: '🗣', label: '말하는 중', color: C.success },
|
|
6012
|
-
stopping: { emoji: '⏹', label: '정리', color: C.muted },
|
|
6013
|
-
};
|
|
6014
|
-
const spec = specs[next];
|
|
6015
|
-
setSegment(hud, 'voice-state', spec.color(`${spec.emoji} voice · ${spec.label}`), 6);
|
|
6016
|
-
}
|
|
6017
|
-
requestDashboardRender();
|
|
6018
|
-
// Phase transition trail. Always-on (gated by debug.enabled) so
|
|
6019
|
-
// a freeze report can be diagnosed from log/latest alone.
|
|
6020
|
-
if (debug.enabled) {
|
|
6021
|
-
debug.log('voice.chat.phase', next, {
|
|
6022
|
-
prev,
|
|
6023
|
-
desc: describeVoiceChatPhase(next) || null,
|
|
6024
|
-
ts: new Date().toISOString(),
|
|
6025
|
-
});
|
|
6026
|
-
}
|
|
6027
|
-
},
|
|
6028
|
-
});
|
|
6029
|
-
// Boot snapshot — env vars governing voice-chat behavior. One log
|
|
6030
|
-
// line per dashboard boot so support sessions can compare expected
|
|
6031
|
-
// vs actual without grepping multiple categories.
|
|
6032
|
-
if (debug.enabled) {
|
|
6033
|
-
debug.log('voice.chat.boot', 'env', {
|
|
6034
|
-
vad: process.env.ELANOUS_VOICE_VAD || '(default:server)',
|
|
6035
|
-
multiTurn: process.env.ELANOUS_VOICE_CHAT_MULTI_TURN || '(default:off)',
|
|
6036
|
-
autoTts: process.env.ELANOUS_AUTO_TTS || '(default:off)',
|
|
6037
|
-
sttProvider: process.env.STREAMING_STT_PROVIDER || '(default:openai-realtime-stt)',
|
|
6038
|
-
ttsProvider: process.env.TTS_PROVIDER || '(default:openai-tts)',
|
|
6039
|
-
providerId: dashboardVoiceChat.providerId,
|
|
6040
|
-
hasOpenaiKey: !!process.env.OPENAI_API_KEY,
|
|
6041
|
-
});
|
|
6042
|
-
}
|
|
6043
|
-
if (process.env.OPENAI_API_KEY) {
|
|
6044
|
-
void (async () => {
|
|
6045
|
-
try {
|
|
6046
|
-
const booted = await bootDashboardVoiceHost({
|
|
6047
|
-
voiceRuntime,
|
|
6048
|
-
createSttProvider: () => createSTTProvider({ id: 'openai-whisper' }),
|
|
6049
|
-
createVoiceInputHost: (deps) => createVoiceInputHost(deps),
|
|
6050
|
-
createLongPressDetector: (deps) => createSpaceLongPressDetector(deps),
|
|
6051
|
-
onIndicatorChange: (label) => {
|
|
6052
|
-
voiceIndicatorLabel = label;
|
|
6053
|
-
// experiment/voice-chat-realtime-rebind — D5 voice/dictation
|
|
6054
|
-
// state now flows into the same HUD segment as voice-chat
|
|
6055
|
-
// continuous mode. Single source of truth for "what is
|
|
6056
|
-
// elanous doing with audio right now".
|
|
6057
|
-
//
|
|
6058
|
-
// label === null → segment cleared
|
|
6059
|
-
// label like "🎤 hold…" → dictation pending
|
|
6060
|
-
// label like "🎙 0.8s" → recording in progress
|
|
6061
|
-
// label like "💭 STT" → processing
|
|
6062
|
-
//
|
|
6063
|
-
// The voice-chat-mode-controller writes to the same key
|
|
6064
|
-
// (priority 6) when Alt+R is active. Mutex between D5 voice
|
|
6065
|
-
// and voice-chat is enforced upstream so the two sources
|
|
6066
|
-
// never overlap; whichever is active owns the segment.
|
|
6067
|
-
if (label) {
|
|
6068
|
-
setSegment(hud, 'voice-state', C.accent(`${label} · dictation`), 6);
|
|
6069
|
-
} else {
|
|
6070
|
-
// Only clear when voice-chat is also inactive — a race
|
|
6071
|
-
// between D5 voice exit and voice-chat enter could
|
|
6072
|
-
// otherwise wipe the chat phase indicator.
|
|
6073
|
-
if (!dashboardVoiceChat.controller.isActive()) {
|
|
6074
|
-
clearSegment(hud, 'voice-state');
|
|
6075
|
-
}
|
|
6076
|
-
}
|
|
6077
|
-
},
|
|
6078
|
-
requestRender: () => { requestDashboardRender(); },
|
|
6079
|
-
onLongReleasePreShiftFocus: () => {
|
|
6080
|
-
// PR-S1V.D5+ smoothness — focus shift is dashboard-scope so
|
|
6081
|
-
// the boot module just calls this closure on detector
|
|
6082
|
-
// release, before STT runs. Skipped when chord toggle was
|
|
6083
|
-
// used from inside chat-main (focus already in input).
|
|
6084
|
-
if (workingDir.focus === 'input') return;
|
|
6085
|
-
applyFocusToInputTransition(resolveFocusToInputTransition({
|
|
6086
|
-
sourcePane: workingDir.focus,
|
|
6087
|
-
rememberPane: true,
|
|
6088
|
-
mode: 'plain',
|
|
6089
|
-
reason: 'voice-dictation-pre-shift',
|
|
6090
|
-
}));
|
|
6091
|
-
},
|
|
6092
|
-
});
|
|
6093
|
-
voiceInputHost = booted.host;
|
|
6094
|
-
voiceUnsubscribeIndicator = booted.unsubscribeIndicator;
|
|
6095
|
-
voiceLongPressDetector = booted.detector;
|
|
6096
|
-
} catch (err) {
|
|
6097
|
-
chatLines.push(C.warning(reportDashboardVoiceBootError(err)));
|
|
6098
|
-
chatScrollOffset = -1;
|
|
6099
|
-
}
|
|
6100
|
-
})();
|
|
6101
|
-
} else if (debug.enabled) {
|
|
6102
|
-
debug.log('voice.host', 'boot.skip', { reason: 'no-openai-key' });
|
|
6103
|
-
}
|
|
6104
|
-
/** PR-S1V.4-wiring · Ctrl+Shift+V chord — fires from anywhere
|
|
6105
|
-
* (popup terminal · VW terminal · bell modal · dashboard) so the
|
|
6106
|
-
* user always has a single entry chord. Korean shifted ㅍ (V on
|
|
6107
|
-
* 2-bul) accepts ctrl-only because the shift bit may be implicit
|
|
6108
|
-
* in the codepoint. Mirrors the isForceQuitChord pattern below. */
|
|
6109
|
-
const matchesVoiceEnterChord = (
|
|
6110
|
-
routeKey: import('../tui.js').Key,
|
|
6111
|
-
): boolean => {
|
|
6112
|
-
if (!routeKey.ctrl) return false;
|
|
6113
|
-
if (routeKey.shift && (routeKey.name === 'v' || routeKey.name === 'V' || routeKey.name === 'ㅍ')) return true;
|
|
6114
|
-
if (routeKey.name === 'ㅍ' && routeKey.ctrl) return true;
|
|
6115
|
-
return false;
|
|
6116
|
-
};
|
|
6117
|
-
/** experiment/voice-chat-realtime-rebind (2026-04-30) — Alt+R toggles
|
|
6118
|
-
* continuous voice-chat mode (Phase 4-5). Switched off Ctrl+Shift+R
|
|
6119
|
-
* to avoid colliding with Ctrl+R (chat input reverse-history search).
|
|
6120
|
-
* Korean ㄱ (R on 2-bul layout) is also accepted so the chord works
|
|
6121
|
-
* with the IME engaged. macOS users may need to set their terminal
|
|
6122
|
-
* to "Option as Meta/Alt" so Option+R reaches elanous as `alt+r` (the
|
|
6123
|
-
* default Terminal.app sends ® instead). */
|
|
6124
|
-
const matchesVoiceChatRealtimeChord = (
|
|
6125
|
-
routeKey: import('../tui.js').Key,
|
|
6126
|
-
): boolean => {
|
|
6127
|
-
// 2026-05-03 — Alt+R was reassigned to reasoning cycle (which
|
|
6128
|
-
// mnemonically owns 'R'). Streaming voice-chat moves to Alt+S
|
|
6129
|
-
// (S = Streaming). Korean ㄴ (S on 2-bul layout) accepted so the
|
|
6130
|
-
// chord works with the IME engaged. macOS users may need to set
|
|
6131
|
-
// their terminal to "Option as Meta/Alt" so Option+S reaches
|
|
6132
|
-
// elanous as `alt+s`.
|
|
6133
|
-
const isCandidate =
|
|
6134
|
-
routeKey.name === 's' || routeKey.name === 'S'
|
|
6135
|
-
|| routeKey.name === 'ㄴ' /* 한글 s on 2-bul */;
|
|
6136
|
-
if (debug.enabled && isCandidate) {
|
|
6137
|
-
debug.log('voice.chat.matcher', 'eval', {
|
|
6138
|
-
keyName: routeKey.name,
|
|
6139
|
-
alt: !!routeKey.alt,
|
|
6140
|
-
ctrl: !!routeKey.ctrl,
|
|
6141
|
-
shift: !!routeKey.shift,
|
|
6142
|
-
meta: !!(routeKey as { meta?: boolean }).meta,
|
|
6143
|
-
kind: (routeKey as { kind?: string }).kind ?? 'press',
|
|
6144
|
-
});
|
|
6145
|
-
}
|
|
6146
|
-
if (!routeKey.alt) return false;
|
|
6147
|
-
if (routeKey.ctrl) return false; // Ctrl+Alt+S is a different chord by convention
|
|
6148
|
-
return isCandidate;
|
|
6149
|
-
};
|
|
6150
|
-
|
|
6151
|
-
/** Alt+R reasoning cycle matcher — V/D/R mnemonic with V=voice
|
|
6152
|
-
* control (Ctrl+Shift+V), D=batch dictation (Space-longpress),
|
|
6153
|
-
* R=reasoning. Korean ㄱ (R on 2-bul) accepted with IME. */
|
|
5286
|
+
/** Alt+R reasoning cycle matcher. Korean ㄱ (R on 2-bul) accepted with IME. */
|
|
6154
5287
|
const matchesReasoningCycleChord = (
|
|
6155
5288
|
routeKey: import('../tui.js').Key,
|
|
6156
5289
|
): boolean => {
|
|
@@ -7786,7 +6919,6 @@ Mode- and sync-specific instructions are injected per-turn when relevant — do
|
|
|
7786
6919
|
chatMainAvailable,
|
|
7787
6920
|
pluginActive: !!pluginHost.active(),
|
|
7788
6921
|
chordArmed: isChordArmed(chord),
|
|
7789
|
-
voiceModeActive: !!voiceInputHost && voiceInputHost.getState().kind !== 'idle',
|
|
7790
6922
|
vwLocalComposerActive,
|
|
7791
6923
|
overlayInputActive,
|
|
7792
6924
|
questionActive: approvalModalRouter.currentKind() === 'askUser',
|
|
@@ -7805,8 +6937,7 @@ Mode- and sync-specific instructions are injected per-turn when relevant — do
|
|
|
7805
6937
|
chatMainAvailable,
|
|
7806
6938
|
pluginActive: !!pluginHost.active(),
|
|
7807
6939
|
chordArmed: isChordArmed(chord),
|
|
7808
|
-
|
|
7809
|
-
vwLocalComposerActive,
|
|
6940
|
+
vwLocalComposerActive,
|
|
7810
6941
|
overlayInputActive,
|
|
7811
6942
|
owner: state.inputOwnership?.owner ?? 'none',
|
|
7812
6943
|
chatMainSuppressed: state.inputOwnership?.chatMainSuppressed ?? false,
|
|
@@ -13987,7 +13118,6 @@ Mode- and sync-specific instructions are injected per-turn when relevant — do
|
|
|
13987
13118
|
})).answer,
|
|
13988
13119
|
});
|
|
13989
13120
|
};
|
|
13990
|
-
const pluginWizardPairCompletions = new Map<string, Promise<import('./classic-sidetab-mission-job.js').ClassicSidetabMissionPairCompletionResult>>();
|
|
13991
13121
|
const classicSidetabMission = createDashboardClassicSidetabMissionCallbacks(async (agent, mission, context) => {
|
|
13992
13122
|
const started = await startClassicMissionCli({
|
|
13993
13123
|
agent,
|
|
@@ -14009,14 +13139,6 @@ Mode- and sync-specific instructions are injected per-turn when relevant — do
|
|
|
14009
13139
|
content: 'Independent sidetab job started; this conversation can continue.',
|
|
14010
13140
|
};
|
|
14011
13141
|
}, cancelClassicSidetabMission, async (agent, mission, parallelMission, context) => {
|
|
14012
|
-
const testPair = opts.pluginWizardTestOverrides?.runPair;
|
|
14013
|
-
if (testPair) {
|
|
14014
|
-
const started = await testPair(agent, mission, parallelMission, context);
|
|
14015
|
-
if (context?.callId?.startsWith('plugin-wizard:')) {
|
|
14016
|
-
pluginWizardPairCompletions.set(context.callId, started.completion);
|
|
14017
|
-
}
|
|
14018
|
-
return started.result;
|
|
14019
|
-
}
|
|
14020
13142
|
for (const member of ['codex', 'claude'] as const) {
|
|
14021
13143
|
const prepared = await prepareClassicSidetabAgentCli(member);
|
|
14022
13144
|
if (!prepared.ready) {
|
|
@@ -14137,9 +13259,6 @@ Mode- and sync-specific instructions are injected per-turn when relevant — do
|
|
|
14137
13259
|
killSession: (sessionId) => sessionRegistry.kill(sessionId),
|
|
14138
13260
|
enqueue: (notification) => globalTaskNotificationQueue.enqueue(notification),
|
|
14139
13261
|
});
|
|
14140
|
-
if (context?.callId?.startsWith('plugin-wizard:')) {
|
|
14141
|
-
pluginWizardPairCompletions.set(context.callId, started.completion);
|
|
14142
|
-
}
|
|
14143
13262
|
void started.completion;
|
|
14144
13263
|
return started.result;
|
|
14145
13264
|
}, async (input) => {
|
|
@@ -14200,16 +13319,6 @@ Mode- and sync-specific instructions are injected per-turn when relevant — do
|
|
|
14200
13319
|
void started.completion;
|
|
14201
13320
|
return started.result;
|
|
14202
13321
|
});
|
|
14203
|
-
const tuiPluginWizard = createDashboardTuiPluginWizard(classicSidetabMission, pluginWizardPairCompletions, {
|
|
14204
|
-
getWorkspace: () => getSessionCwd(),
|
|
14205
|
-
findAvailableTools: opts.pluginWizardTestOverrides?.findAvailableTools ?? ((capability) => {
|
|
14206
|
-
const runtimeSpecs = acpToolRuntime?.listToolRuntimes('tui').map(runtime => runtime.spec) ?? [];
|
|
14207
|
-
const hostSpecs = pluginHost.hostLLMTools();
|
|
14208
|
-
return searchAvailablePluginWizardTools(capability, [...new Map([...runtimeSpecs, ...hostSpecs]
|
|
14209
|
-
.map(spec => [spec.name, spec] as const)).values()]);
|
|
14210
|
-
}),
|
|
14211
|
-
...(opts.pluginWizardTestOverrides ? { taskHand: opts.pluginWizardTestOverrides.taskHand } : {}),
|
|
14212
|
-
});
|
|
14213
13322
|
disposeClassicSigquit = registerClassicSigquitHandler(() => {
|
|
14214
13323
|
classicSidetabRuntime.beginPrefix();
|
|
14215
13324
|
});
|
|
@@ -15734,7 +14843,7 @@ Mode- and sync-specific instructions are injected per-turn when relevant — do
|
|
|
15734
14843
|
[...researchDefaults, ...tools].map(tool => [tool.name, tool] as const),
|
|
15735
14844
|
).values()];
|
|
15736
14845
|
const classicTools = runtime ? classicSidetabMission.getTools(withSurfaceDefaults) : withSurfaceDefaults;
|
|
15737
|
-
const tuiTools =
|
|
14846
|
+
const tuiTools = classicTools;
|
|
15738
14847
|
return [
|
|
15739
14848
|
...tuiChatPersonaMessages(currentChatPersonaSessionId(), chatPersonaSelection),
|
|
15740
14849
|
...buildDashboardTurnPreamble({
|
|
@@ -15757,7 +14866,7 @@ Mode- and sync-specific instructions are injected per-turn when relevant — do
|
|
|
15757
14866
|
},
|
|
15758
14867
|
getTools: ({ userText }) => {
|
|
15759
14868
|
const runtime = acpToolRuntime;
|
|
15760
|
-
if (!runtime) return
|
|
14869
|
+
if (!runtime) return [];
|
|
15761
14870
|
const tools = buildSessionRuntimeToolSpecs({
|
|
15762
14871
|
userText,
|
|
15763
14872
|
hostTools: pluginHost.hostLLMTools(),
|
|
@@ -15777,7 +14886,7 @@ Mode- and sync-specific instructions are injected per-turn when relevant — do
|
|
|
15777
14886
|
[...researchDefaults, ...tools].map(tool => [tool.name, tool] as const),
|
|
15778
14887
|
).values()];
|
|
15779
14888
|
const classicTools = classicSidetabMission.getTools(withSurfaceDefaults);
|
|
15780
|
-
const tuiTools =
|
|
14889
|
+
const tuiTools = classicTools;
|
|
15781
14890
|
// ⭐ Remember this turn's catalog so a spawned sub-agent can inherit it.
|
|
15782
14891
|
//
|
|
15783
14892
|
// `dispatchAgent` computes `childTools = (hostTools ?? []).filter(...)`,
|
|
@@ -15785,7 +14894,7 @@ Mode- and sync-specific instructions are injected per-turn when relevant — do
|
|
|
15785
14894
|
// or edit anything, which is the whole point of delegating code work.
|
|
15786
14895
|
// Exposing `Agent` without this wiring is worse than not exposing it:
|
|
15787
14896
|
// the model picks a delegate that provably cannot act.
|
|
15788
|
-
acpTurnToolSpecs = tuiTools.filter(tool => tool.name !== CLASSIC_SIDETAB_MISSION_TOOL_NAME
|
|
14897
|
+
acpTurnToolSpecs = tuiTools.filter(tool => tool.name !== CLASSIC_SIDETAB_MISSION_TOOL_NAME);
|
|
15789
14898
|
return tuiTools;
|
|
15790
14899
|
},
|
|
15791
14900
|
// R2 essential TUI execution boundary: ACP receives the same
|
|
@@ -15802,11 +14911,6 @@ Mode- and sync-specific instructions are injected per-turn when relevant — do
|
|
|
15802
14911
|
// Count at the server-side boundary, before any tool effect and
|
|
15803
14912
|
// before the ACP notification can reach the TUI client.
|
|
15804
14913
|
acpToolDispatchCount++;
|
|
15805
|
-
const pluginWizardResult = tuiPluginWizard.dispatchTool(name, args, {
|
|
15806
|
-
callId: ctx?.callId,
|
|
15807
|
-
parentSessionId: ctx?.sessionId,
|
|
15808
|
-
});
|
|
15809
|
-
if (pluginWizardResult) return await pluginWizardResult;
|
|
15810
14914
|
const classicMissionResult = classicSidetabMission.dispatchTool(name, args, {
|
|
15811
14915
|
callId: ctx?.callId,
|
|
15812
14916
|
parentSessionId: ctx?.sessionId,
|
|
@@ -15891,7 +14995,7 @@ Mode- and sync-specific instructions are injected per-turn when relevant — do
|
|
|
15891
14995
|
});
|
|
15892
14996
|
const specs = [...new Map(
|
|
15893
14997
|
[...acpTurnToolSpecs, ...childCatalog]
|
|
15894
|
-
.filter(tool => tool.name !== CLASSIC_SIDETAB_MISSION_TOOL_NAME
|
|
14998
|
+
.filter(tool => tool.name !== CLASSIC_SIDETAB_MISSION_TOOL_NAME)
|
|
15895
14999
|
.map(tool => [tool.name, tool] as const),
|
|
15896
15000
|
).values()];
|
|
15897
15001
|
return {
|
|
@@ -16186,174 +15290,7 @@ Mode- and sync-specific instructions are injected per-turn when relevant — do
|
|
|
16186
15290
|
// no mutation happened.
|
|
16187
15291
|
recomputeViewMode();
|
|
16188
15292
|
|
|
16189
|
-
//
|
|
16190
|
-
// dictation chord routing. PR #1115 review pinpointed that plain
|
|
16191
|
-
// `Space` hold globally collides with too many existing Space-
|
|
16192
|
-
// binding surfaces (browser/obsidian/skill-file selection,
|
|
16193
|
-
// scheduler form input, preview pager, popup/VW terminal, modals
|
|
16194
|
-
// /pickers). The reviewer's recommended split:
|
|
16195
|
-
//
|
|
16196
|
-
// - **`Ctrl+Shift+Space`** = global dictation chord. Modifier-
|
|
16197
|
-
// only carries no char-input role; safe across browse/pane/
|
|
16198
|
-
// popup/terminal because surface Space bindings live on
|
|
16199
|
-
// plain `Space`. Wired here as the always-on outer hook —
|
|
16200
|
-
// chat-main onPreKey already owns it inside input focus
|
|
16201
|
-
// (D4-β), so the two paths are mutually exclusive at the
|
|
16202
|
-
// dispatch level (chat textInput's own readKey loop never
|
|
16203
|
-
// reaches this outer hook).
|
|
16204
|
-
//
|
|
16205
|
-
// - **plain `Space`** = scoped allowlist only. Default deny;
|
|
16206
|
-
// point-of-truth `isAllowlistedDictationSurface()` will
|
|
16207
|
-
// return `true` only for surfaces explicitly verified to
|
|
16208
|
-
// have no native Space semantics. Initial allowlist is
|
|
16209
|
-
// intentionally empty — every existing PaneFocus value is
|
|
16210
|
-
// a known consumer (selection toggle / pager next-page /
|
|
16211
|
-
// form input / log scroll / etc.). The seam stays so we
|
|
16212
|
-
// can opt specific surfaces in after they're cleared by
|
|
16213
|
-
// dogfood; until then the plain-Space branch is inert.
|
|
16214
|
-
//
|
|
16215
|
-
// Both branches share the same skip rules: voice host must be
|
|
16216
|
-
// booted + idle, chat-main must not own the working focus
|
|
16217
|
-
// (D4-β scope), and PTY/terminal panes still defer the *plain*
|
|
16218
|
-
// Space path entirely (Ctrl+Shift+Space stays alive there per
|
|
16219
|
-
// the reviewer's note "충돌 보이면 그때 예외 surface 추가").
|
|
16220
|
-
// TEMP DEBUG (2026-04-29 · fix/voice-runtime-tdz-2 branch) — log
|
|
16221
|
-
// the gate evaluation so dogfood logs show *why* the chord did or
|
|
16222
|
-
// didn't fire instead of just "no dictation event". Remove with
|
|
16223
|
-
// the chord-trial revert.
|
|
16224
|
-
if (debug.enabled && !key.mouse && key.ctrl && key.shift) {
|
|
16225
|
-
const hostStateKind = voiceInputHost ? voiceInputHost.getState().kind : null;
|
|
16226
|
-
debug.log('voice.outer-hook.gate', 'eval', {
|
|
16227
|
-
keyName: key.name,
|
|
16228
|
-
ctrl: !!key.ctrl,
|
|
16229
|
-
shift: !!key.shift,
|
|
16230
|
-
alt: !!key.alt,
|
|
16231
|
-
hasVoiceHost: !!voiceInputHost,
|
|
16232
|
-
hasDetector: !!voiceLongPressDetector,
|
|
16233
|
-
hostState: hostStateKind,
|
|
16234
|
-
focus: workingDir.focus,
|
|
16235
|
-
willEnter:
|
|
16236
|
-
!!voiceInputHost
|
|
16237
|
-
&& !!voiceLongPressDetector
|
|
16238
|
-
&& hostStateKind === 'idle'
|
|
16239
|
-
&& workingDir.focus !== 'input',
|
|
16240
|
-
});
|
|
16241
|
-
}
|
|
16242
|
-
// These two vars are assigned only inside the async boot IIFE
|
|
16243
|
-
// (a closure) and reset to null at the bottom of this `while(true)`
|
|
16244
|
-
// loop, so TS's loop-carried flow analysis collapses them to
|
|
16245
|
-
// `never` here (a false positive — the runtime value is the booted
|
|
16246
|
-
// host). Assert the true declared type so the guards below narrow.
|
|
16247
|
-
const voiceHostFlow = voiceInputHost as VoiceInputHost | null;
|
|
16248
|
-
const voiceDetectorFlow = voiceLongPressDetector as SpaceLongPressDetector | null;
|
|
16249
|
-
if (
|
|
16250
|
-
voiceHostFlow
|
|
16251
|
-
&& voiceDetectorFlow
|
|
16252
|
-
&& voiceHostFlow.getState().kind === 'idle'
|
|
16253
|
-
&& workingDir.focus !== 'input'
|
|
16254
|
-
) {
|
|
16255
|
-
const focusedTerminalPane = false;
|
|
16256
|
-
|
|
16257
|
-
// Branch 1 — Ctrl+Shift+D trial chord. TEMP DEBUG (2026-04-29):
|
|
16258
|
-
// toggle pattern instead of long-press detector. First press
|
|
16259
|
-
// starts dictation, second press stops. Debounce in
|
|
16260
|
-
// toggleDictationFromChord swallows OS auto-repeat duplicates.
|
|
16261
|
-
// Restore detector wiring once chord question is settled.
|
|
16262
|
-
if (isDictationHoldKey(key)) {
|
|
16263
|
-
if (debug.enabled) {
|
|
16264
|
-
debug.log('voice.outer-hook.dictation.hit', 'branch-1-chord-toggle', {
|
|
16265
|
-
keyName: key.name,
|
|
16266
|
-
kind: key.kind ?? 'press',
|
|
16267
|
-
dictState: voiceHostFlow.getDictationState(),
|
|
16268
|
-
});
|
|
16269
|
-
}
|
|
16270
|
-
// Release events are ignored under toggle — only press toggles.
|
|
16271
|
-
if (key.kind !== 'release') {
|
|
16272
|
-
toggleDictationFromChord('outer-hook', key.name);
|
|
16273
|
-
}
|
|
16274
|
-
// Always consume — chord is a deliberate user signal, not
|
|
16275
|
-
// ordinary input.
|
|
16276
|
-
continue;
|
|
16277
|
-
}
|
|
16278
|
-
|
|
16279
|
-
// Branch 2 — plain Space (scoped allowlist). Currently the
|
|
16280
|
-
// allowlist is empty so every plain Space passes through to
|
|
16281
|
-
// the priority route untouched, matching the "global plain
|
|
16282
|
-
// Space 비추천" finding from the PR review. As surfaces are
|
|
16283
|
-
// verified safe via dogfood, add their PaneFocus values to
|
|
16284
|
-
// `isAllowlistedDictationSurface` below.
|
|
16285
|
-
if (isPlainSpaceHoldKey(key)) {
|
|
16286
|
-
// TEMP DEBUG (2026-04-29 · fix/voice-runtime-tdz-2 trial) —
|
|
16287
|
-
// log Branch 2 decision so dogfood can prove plain Space hits
|
|
16288
|
-
// the allowlist + non-terminal-pane gate.
|
|
16289
|
-
const allowlistHit = isAllowlistedDictationSurface(workingDir.focus);
|
|
16290
|
-
if (debug.enabled) {
|
|
16291
|
-
debug.log('voice.outer-hook.branch2', 'eval', {
|
|
16292
|
-
keyName: key.name,
|
|
16293
|
-
kind: key.kind ?? 'press',
|
|
16294
|
-
focus: workingDir.focus,
|
|
16295
|
-
focusedTerminalPane,
|
|
16296
|
-
allowlistHit,
|
|
16297
|
-
willEnter: !focusedTerminalPane && allowlistHit,
|
|
16298
|
-
});
|
|
16299
|
-
}
|
|
16300
|
-
if (!focusedTerminalPane && allowlistHit) {
|
|
16301
|
-
if (debug.enabled) {
|
|
16302
|
-
debug.log('voice.outer-hook.dictation.hit', 'branch-2-plain-space', {
|
|
16303
|
-
focus: workingDir.focus,
|
|
16304
|
-
kind: key.kind ?? 'press',
|
|
16305
|
-
detectorState: voiceDetectorFlow.getState(),
|
|
16306
|
-
});
|
|
16307
|
-
}
|
|
16308
|
-
if (key.kind === 'release') {
|
|
16309
|
-
voiceDetectorFlow.noteRelease();
|
|
16310
|
-
} else {
|
|
16311
|
-
voiceDetectorFlow.noteSpaceKey();
|
|
16312
|
-
}
|
|
16313
|
-
continue;
|
|
16314
|
-
}
|
|
16315
|
-
}
|
|
16316
|
-
|
|
16317
|
-
// Cancel-by-other-key — same race-fix pattern as the chat-
|
|
16318
|
-
// main onPreKey wire (PR #1109 review fix #1). Only await
|
|
16319
|
-
// when we're actually terminating an in-flight dictation.
|
|
16320
|
-
if (voiceDetectorFlow.getState() !== 'idle') {
|
|
16321
|
-
const preState = voiceDetectorFlow.getState();
|
|
16322
|
-
voiceDetectorFlow.noteOtherKey();
|
|
16323
|
-
if (preState === 'fired') {
|
|
16324
|
-
while (voiceHostFlow.getDictationState() !== 'idle') {
|
|
16325
|
-
await new Promise<void>((resolve) => setTimeout(resolve, 10));
|
|
16326
|
-
}
|
|
16327
|
-
}
|
|
16328
|
-
// The terminator key still flows through the priority route
|
|
16329
|
-
// below — only the ordering shifts so the transcript inserts
|
|
16330
|
-
// before the terminator is dispatched.
|
|
16331
|
-
}
|
|
16332
|
-
|
|
16333
|
-
// TEMP DEBUG TRIAL — ESC stops a toggle-mode dictation. Without
|
|
16334
|
-
// this the user could get stuck in `recording` if they forgot
|
|
16335
|
-
// the chord. Detector path above handles long-press cancel; this
|
|
16336
|
-
// covers the toggle path which doesn't use the detector.
|
|
16337
|
-
if (
|
|
16338
|
-
key.name === 'escape'
|
|
16339
|
-
&& !key.ctrl && !key.shift && !key.alt
|
|
16340
|
-
&& voiceHostFlow.getDictationState() === 'recording'
|
|
16341
|
-
) {
|
|
16342
|
-
if (debug.enabled) debug.log('voice.toggle.stop', 'esc-cancel', {});
|
|
16343
|
-
void voiceHostFlow.stopDictation();
|
|
16344
|
-
while (voiceHostFlow.getDictationState() !== 'idle') {
|
|
16345
|
-
await new Promise<void>((resolve) => setTimeout(resolve, 10));
|
|
16346
|
-
}
|
|
16347
|
-
// Continue dispatch — ESC still flows through (modal close,
|
|
16348
|
-
// input clear, etc.) so we don't `continue` here.
|
|
16349
|
-
}
|
|
16350
|
-
}
|
|
16351
|
-
|
|
16352
|
-
// PR-S1V.D5 — kitty `>3u` release/repeat event guard. The voice
|
|
16353
|
-
// outer-hook block above is the only path that legitimately needs
|
|
16354
|
-
// non-press events (chord toggle skips them, plain-Space detector
|
|
16355
|
-
// explicitly handles `kind === 'release'` for explicit release
|
|
16356
|
-
// timing). Everything below — priority route, widget routing,
|
|
15293
|
+
// kitty `>3u` release/repeat event guard. Everything below — priority route, widget routing,
|
|
16357
15294
|
// chat-input dispatcher — was written when `>1u` was the only
|
|
16358
15295
|
// mode and treats every key as a press. So a kitty release event
|
|
16359
15296
|
// would otherwise re-fire the press handler and double-dispatch
|
|
@@ -16376,6 +15313,10 @@ Mode- and sync-specific instructions are injected per-turn when relevant — do
|
|
|
16376
15313
|
continue;
|
|
16377
15314
|
}
|
|
16378
15315
|
|
|
15316
|
+
// Keep classic sidetab keys on the normal input route, independent of
|
|
15317
|
+
// chat-main voice handling and before modal/input dispatch.
|
|
15318
|
+
const routeClassicSidetabInputKey = (routeKey: Key): boolean =>
|
|
15319
|
+
classicSidetabRuntime.routeKey(routeKey);
|
|
16379
15320
|
const priorityRoute = await routeDashboardPriorityKey(key, {
|
|
16380
15321
|
inputOwner: chatMainVisibility.inputOwnership?.owner,
|
|
16381
15322
|
routeClassicSigquitChord: (routeKey) => {
|
|
@@ -16430,7 +15371,7 @@ Mode- and sync-specific instructions are injected per-turn when relevant — do
|
|
|
16430
15371
|
draw();
|
|
16431
15372
|
return true;
|
|
16432
15373
|
},
|
|
16433
|
-
routeSidetabKey:
|
|
15374
|
+
routeSidetabKey: routeClassicSidetabInputKey,
|
|
16434
15375
|
dispatchPreKey: (routeKey, targetHandlerName) => {
|
|
16435
15376
|
const questionViewHandler = {
|
|
16436
15377
|
name: 'question-view',
|
|
@@ -16542,156 +15483,6 @@ Mode- and sync-specific instructions are injected per-turn when relevant — do
|
|
|
16542
15483
|
if (routeKey.name === 'ㅃ') return true;
|
|
16543
15484
|
return false;
|
|
16544
15485
|
},
|
|
16545
|
-
// PR-S1V.4-wiring · Step 0x — voice mode entry chord.
|
|
16546
|
-
// Fires only when voice mode is currently `idle`; once active
|
|
16547
|
-
// the next step (routeVoiceModeKey) takes over. Skipping when
|
|
16548
|
-
// voiceInputHost is null keeps the chord inert until the
|
|
16549
|
-
// STTProvider has finished booting (or stays inert forever
|
|
16550
|
-
// when OPENAI_API_KEY is absent).
|
|
16551
|
-
routeVoiceEnterChord: (routeKey) => {
|
|
16552
|
-
if (!voiceInputHost) return false;
|
|
16553
|
-
if (voiceInputHost.getState().kind !== 'idle') return false;
|
|
16554
|
-
if (!matchesVoiceEnterChord(routeKey)) return false;
|
|
16555
|
-
if (debug.enabled) debug.log('voice.host', 'enter.chord', {});
|
|
16556
|
-
voiceInputHost.requestEnter();
|
|
16557
|
-
return true;
|
|
16558
|
-
},
|
|
16559
|
-
// PR-S1V.4-wiring · Step 0c — voice mode active dispatch.
|
|
16560
|
-
// Modal A invariant: while the host is non-idle, every key
|
|
16561
|
-
// flows through `maybeHandleKey` which terminates the dispatch
|
|
16562
|
-
// (escape exits, space drives the recording lifecycle, every
|
|
16563
|
-
// other key is swallowed no-op). Idle state returns false so
|
|
16564
|
-
// legacy dispatchers stay reachable.
|
|
16565
|
-
routeVoiceModeKey: (routeKey) => {
|
|
16566
|
-
if (!voiceInputHost) return false;
|
|
16567
|
-
if (voiceInputHost.getState().kind === 'idle') return false;
|
|
16568
|
-
return voiceInputHost.maybeHandleKey(routeKey);
|
|
16569
|
-
},
|
|
16570
|
-
// experiment/voice-chat-realtime-rebind · Step 0r —
|
|
16571
|
-
// Ctrl+Shift+R chord (continuous voice-chat toggle). Same
|
|
16572
|
-
// outer-hook tier as routeVoiceEnterChord so it reaches
|
|
16573
|
-
// anywhere (popup terminal / VW terminal / bell modal). The
|
|
16574
|
-
// mutex check + state machine transition + chatLines status
|
|
16575
|
-
// line live in the same handler to keep the wire 1-place.
|
|
16576
|
-
// experiment/voice-chat-realtime-rebind · Step 0s — modal-A
|
|
16577
|
-
// swallow while voice-chat is active. Returns true when the
|
|
16578
|
-
// controller is non-idle so any key not already claimed above
|
|
16579
|
-
// (force-quit · Alt+W · chord toggle) is consumed
|
|
16580
|
-
// — typing doesn't leak into chat input, Space doesn't toggle
|
|
16581
|
-
// pickers, etc. ESC explicitly exits. Idle controller returns
|
|
16582
|
-
// false so legacy dispatch is reachable.
|
|
16583
|
-
routeVoiceChatActiveKey: async (routeKey) => {
|
|
16584
|
-
if (!dashboardVoiceChat.controller.isActive()) return false;
|
|
16585
|
-
// ESC: exit voice-chat (mode-level cancel), do not pass to
|
|
16586
|
-
// dispatch chain so no other surface acts on the ESC.
|
|
16587
|
-
if (routeKey.name === 'escape') {
|
|
16588
|
-
try {
|
|
16589
|
-
await dashboardVoiceChat.handleEsc();
|
|
16590
|
-
} catch (err) {
|
|
16591
|
-
if (debug.enabled) {
|
|
16592
|
-
debug.log('voice.chat.error', 'esc.handle.exception', { err: String(err) }, { level: 'error' });
|
|
16593
|
-
}
|
|
16594
|
-
}
|
|
16595
|
-
emitVoiceChatStopQuickPass('esc');
|
|
16596
|
-
chatLines.push('');
|
|
16597
|
-
chatLines.push(C.accent('🎙 [voice-chat] stopped (ESC)'));
|
|
16598
|
-
chatScrollOffset = -1;
|
|
16599
|
-
if (debug.enabled) {
|
|
16600
|
-
debug.log('voice.chat.phase', 'esc.exit', {
|
|
16601
|
-
phase: dashboardVoiceChat.controller.getPhase(),
|
|
16602
|
-
});
|
|
16603
|
-
}
|
|
16604
|
-
draw();
|
|
16605
|
-
return true;
|
|
16606
|
-
}
|
|
16607
|
-
// Everything else: swallow.
|
|
16608
|
-
if (debug.enabled) {
|
|
16609
|
-
debug.log('voice.chat.swallow', routeKey.name || '(anon)', {
|
|
16610
|
-
ctrl: !!routeKey.ctrl,
|
|
16611
|
-
shift: !!routeKey.shift,
|
|
16612
|
-
alt: !!routeKey.alt,
|
|
16613
|
-
phase: dashboardVoiceChat.controller.getPhase(),
|
|
16614
|
-
});
|
|
16615
|
-
}
|
|
16616
|
-
return true;
|
|
16617
|
-
},
|
|
16618
|
-
routeVoiceChatRealtimeChord: (routeKey) => {
|
|
16619
|
-
// Alt+R reasoning cycle — handled here at the same outer
|
|
16620
|
-
// tier as voice-chat so it claims the key before any other
|
|
16621
|
-
// surface (chat input, modal, etc) interprets it. Returns
|
|
16622
|
-
// true ⇒ key consumed, no further dispatch.
|
|
16623
|
-
if (matchesReasoningCycleChord(routeKey)) {
|
|
16624
|
-
cycleReasoningLevel();
|
|
16625
|
-
return true;
|
|
16626
|
-
}
|
|
16627
|
-
if (!matchesVoiceChatRealtimeChord(routeKey)) return false;
|
|
16628
|
-
if (debug.enabled) {
|
|
16629
|
-
debug.log('voice.chat.chord', 'press', {
|
|
16630
|
-
keyName: routeKey.name,
|
|
16631
|
-
alt: !!routeKey.alt,
|
|
16632
|
-
shift: !!routeKey.shift,
|
|
16633
|
-
ctrl: !!routeKey.ctrl,
|
|
16634
|
-
kind: (routeKey as { kind?: string }).kind ?? 'press',
|
|
16635
|
-
wasActive: dashboardVoiceChat.controller.isActive(),
|
|
16636
|
-
priorPhase: dashboardVoiceChat.controller.getPhase(),
|
|
16637
|
-
});
|
|
16638
|
-
}
|
|
16639
|
-
// Defer to async runtime — outer-hook tier expects sync
|
|
16640
|
-
// boolean, so we kick off the toggle and claim the key.
|
|
16641
|
-
void (async () => {
|
|
16642
|
-
const startedAt = Date.now();
|
|
16643
|
-
if (debug.enabled) {
|
|
16644
|
-
debug.log('voice.chat.toggle.begin', 'await', {
|
|
16645
|
-
wasActive: dashboardVoiceChat.controller.isActive(),
|
|
16646
|
-
d5State: voiceInputHost?.getState().kind ?? null,
|
|
16647
|
-
});
|
|
16648
|
-
}
|
|
16649
|
-
try {
|
|
16650
|
-
const result = await toggleVoiceChatRealtime(dashboardVoiceChat, {
|
|
16651
|
-
// NOTE: a `|| getState().kind === 'committing'` clause was
|
|
16652
|
-
// removed here — 'committing' is not a VoiceModeState.kind
|
|
16653
|
-
// ('idle'|'active'|'recording'|'processing'), so the check
|
|
16654
|
-
// was always false (dead). Behavior is unchanged.
|
|
16655
|
-
d5VoiceActive: () =>
|
|
16656
|
-
voiceInputHost?.getState().kind === 'recording',
|
|
16657
|
-
});
|
|
16658
|
-
if (debug.enabled) {
|
|
16659
|
-
debug.log('voice.chat.toggle.resolve', result.action, {
|
|
16660
|
-
status: result.status,
|
|
16661
|
-
phase: dashboardVoiceChat.controller.getPhase(),
|
|
16662
|
-
elapsedMs: Date.now() - startedAt,
|
|
16663
|
-
});
|
|
16664
|
-
}
|
|
16665
|
-
// 2026-04-30 — HUD `voice-state` segment is the single
|
|
16666
|
-
// source of truth for entry/exit status. Chord toggle
|
|
16667
|
-
// no longer pushes lines into chatLines (per user
|
|
16668
|
-
// request: "다시 챗로그에 나타나네요"). Only mutex
|
|
16669
|
-
// (D5 voice ↔ voice-chat conflict) is exceptional and
|
|
16670
|
-
// worth a chatLines warning so the user knows the
|
|
16671
|
-
// chord was REJECTED, not silently no-op'd.
|
|
16672
|
-
if (result.action === 'mutex') {
|
|
16673
|
-
chatLines.push('');
|
|
16674
|
-
chatLines.push(C.warning(`🎙 [voice-chat] ${result.status}`));
|
|
16675
|
-
chatScrollOffset = -1;
|
|
16676
|
-
} else if (result.action === 'exit' && result.status === 'voice-chat exited') {
|
|
16677
|
-
emitVoiceChatStopQuickPass('alt-s');
|
|
16678
|
-
}
|
|
16679
|
-
draw();
|
|
16680
|
-
} catch (err) {
|
|
16681
|
-
const msg = err instanceof Error ? err.message : String(err);
|
|
16682
|
-
chatLines.push(C.warning(`🎙 [voice-chat] toggle failed: ${msg}`));
|
|
16683
|
-
chatScrollOffset = -1;
|
|
16684
|
-
if (debug.enabled) {
|
|
16685
|
-
debug.log('voice.chat.error', 'toggle.exception', {
|
|
16686
|
-
err: msg,
|
|
16687
|
-
elapsedMs: Date.now() - startedAt,
|
|
16688
|
-
}, { level: 'error' });
|
|
16689
|
-
}
|
|
16690
|
-
draw();
|
|
16691
|
-
}
|
|
16692
|
-
})();
|
|
16693
|
-
return true;
|
|
16694
|
-
},
|
|
16695
15486
|
// Step 6 hard-quit — only reached when no popup terminal is
|
|
16696
15487
|
// active. Plain Ctrl+Q stays as the dashboard-mode shortcut
|
|
16697
15488
|
// so muscle memory survives outside the popup. Inside the
|
|
@@ -16744,19 +15535,6 @@ Mode- and sync-specific instructions are injected per-turn when relevant — do
|
|
|
16744
15535
|
},
|
|
16745
15536
|
});
|
|
16746
15537
|
if (priorityRoute.type === 'quit') {
|
|
16747
|
-
// PR-S1V.4-wiring — dispose the voice host before closeTui so
|
|
16748
|
-
// the kitty `>1u` restore + onIndicator listeners run while
|
|
16749
|
-
// stdout is still open.
|
|
16750
|
-
// Same loop-carried `never` false positive as the dictation
|
|
16751
|
-
// block above — assert the true declared types before dispose.
|
|
16752
|
-
const voiceUnsubForQuit = voiceUnsubscribeIndicator as (() => void) | null;
|
|
16753
|
-
const voiceHostForQuit = voiceInputHost as VoiceInputHost | null;
|
|
16754
|
-
const voiceDetectorForQuit = voiceLongPressDetector as SpaceLongPressDetector | null;
|
|
16755
|
-
try { voiceUnsubForQuit?.(); } catch { /* best-effort */ }
|
|
16756
|
-
try { voiceHostForQuit?.dispose(); } catch { /* best-effort */ }
|
|
16757
|
-
try { voiceDetectorForQuit?.dispose(); } catch { /* best-effort */ }
|
|
16758
|
-
voiceInputHost = null;
|
|
16759
|
-
voiceLongPressDetector = null;
|
|
16760
15538
|
closeDashboardTui();
|
|
16761
15539
|
return 'quit';
|
|
16762
15540
|
}
|
|
@@ -17297,237 +16075,7 @@ Mode- and sync-specific instructions are injected per-turn when relevant — do
|
|
|
17297
16075
|
shouldSyncPickers: () =>
|
|
17298
16076
|
chatMainInputVisibilityState().inputOwnership?.owner === 'chat-main',
|
|
17299
16077
|
onPasteImage: attachClipboardImage,
|
|
17300
|
-
|
|
17301
|
-
if (classicSidetabRuntime.routeKey(routeKey)) return 'consumed';
|
|
17302
|
-
// 2026-04-30 — voice-chat ESC: when the controller is
|
|
17303
|
-
// active and the user hits ESC inside chat-main, take
|
|
17304
|
-
// it as a "exit voice mode" gesture and DO NOT let
|
|
17305
|
-
// the chat input pane's default ESC handler fire
|
|
17306
|
-
// (which would clear the freshly-injected transcript
|
|
17307
|
-
// buffer). User feedback: "프롬프트에 발화를 소중히
|
|
17308
|
-
// 다뤄야 함. … ESC 를 눌러도 보이스 모드가 종료되는
|
|
17309
|
-
// 것이지 인풋 모드 클리어를 의미하는 것이 아님."
|
|
17310
|
-
if (
|
|
17311
|
-
routeKey.name === 'escape'
|
|
17312
|
-
&& dashboardVoiceChat.controller.isActive()
|
|
17313
|
-
) {
|
|
17314
|
-
if (debug.isKeyTraceEnabled()) {
|
|
17315
|
-
debug.log('key.trace.dispatch', 'chat-main.routeVoiceKey.esc-exit', {
|
|
17316
|
-
name: routeKey.name,
|
|
17317
|
-
claimed: 'voice-chat-exit',
|
|
17318
|
-
phase: dashboardVoiceChat.controller.getPhase(),
|
|
17319
|
-
});
|
|
17320
|
-
}
|
|
17321
|
-
try { await dashboardVoiceChat.handleEsc(); } catch { /* swallow */ }
|
|
17322
|
-
emitVoiceChatStopQuickPass('esc');
|
|
17323
|
-
// 2026-04-30 — Unified `🎙 [voice-chat] stopped
|
|
17324
|
-
// (ESC)` line so the chat log lifecycle stays
|
|
17325
|
-
// coherent regardless of which dispatch path
|
|
17326
|
-
// (chat-main vs outer-tier) claimed the ESC.
|
|
17327
|
-
chatLines.push('');
|
|
17328
|
-
chatLines.push(C.accent('🎙 [voice-chat] stopped (ESC)'));
|
|
17329
|
-
chatScrollOffset = -1;
|
|
17330
|
-
return 'consumed';
|
|
17331
|
-
}
|
|
17332
|
-
// experiment/voice-chat-realtime-rebind — Alt+R chord
|
|
17333
|
-
// is routed BEFORE the D5 voice path so chat-input
|
|
17334
|
-
// doesn't swallow it. priority-key-route also handles
|
|
17335
|
-
// Alt+R (step 0r) but only fires when the input loop
|
|
17336
|
-
// is NOT the active reader; from inside chat-main
|
|
17337
|
-
// textInput.readKey, this is the only place that runs
|
|
17338
|
-
// first. Mirror dashboard outer-hook behavior: log,
|
|
17339
|
-
// claim, kick off async toggle.
|
|
17340
|
-
//
|
|
17341
|
-
// Alt+R reasoning cycle — same chat-main inner tier so
|
|
17342
|
-
// it claims the chord before voice-chat. Mnemonic
|
|
17343
|
-
// V/D/R: V=voice control, D=batch dictation,
|
|
17344
|
-
// R=reasoning.
|
|
17345
|
-
if (matchesReasoningCycleChord(routeKey)) {
|
|
17346
|
-
cycleReasoningLevel();
|
|
17347
|
-
// Chord handled — claim it ('consumed'); the route
|
|
17348
|
-
// contract is 'consumed' | 'passthrough', not boolean.
|
|
17349
|
-
return 'consumed';
|
|
17350
|
-
}
|
|
17351
|
-
if (matchesVoiceChatRealtimeChord(routeKey)) {
|
|
17352
|
-
if (debug.isKeyTraceEnabled()) {
|
|
17353
|
-
debug.log('key.trace.dispatch', 'chat-main.routeVoiceKey.realtime', {
|
|
17354
|
-
name: routeKey.name,
|
|
17355
|
-
alt: !!routeKey.alt,
|
|
17356
|
-
ctrl: !!routeKey.ctrl,
|
|
17357
|
-
shift: !!routeKey.shift,
|
|
17358
|
-
claimed: 'realtime',
|
|
17359
|
-
});
|
|
17360
|
-
}
|
|
17361
|
-
if (debug.enabled) {
|
|
17362
|
-
debug.log('voice.chat.chord', 'press.chat-main', {
|
|
17363
|
-
keyName: routeKey.name,
|
|
17364
|
-
alt: !!routeKey.alt,
|
|
17365
|
-
ctrl: !!routeKey.ctrl,
|
|
17366
|
-
shift: !!routeKey.shift,
|
|
17367
|
-
kind: (routeKey as { kind?: string }).kind ?? 'press',
|
|
17368
|
-
wasActive: dashboardVoiceChat.controller.isActive(),
|
|
17369
|
-
});
|
|
17370
|
-
}
|
|
17371
|
-
void (async () => {
|
|
17372
|
-
const startedAt = Date.now();
|
|
17373
|
-
if (debug.enabled)
|
|
17374
|
-
debug.log('voice.chat.toggle.begin', 'chat-main.await', {
|
|
17375
|
-
d5State: voiceInputHost?.getState().kind ?? null,
|
|
17376
|
-
});
|
|
17377
|
-
try {
|
|
17378
|
-
const result = await toggleVoiceChatRealtime(dashboardVoiceChat, {
|
|
17379
|
-
// NOTE: dead `=== 'committing'` clause removed (not a
|
|
17380
|
-
// VoiceModeState.kind → always false). Unchanged behavior.
|
|
17381
|
-
d5VoiceActive: () =>
|
|
17382
|
-
voiceInputHost?.getState().kind === 'recording',
|
|
17383
|
-
});
|
|
17384
|
-
if (debug.enabled)
|
|
17385
|
-
debug.log('voice.chat.toggle.resolve', result.action, {
|
|
17386
|
-
status: result.status,
|
|
17387
|
-
phase: dashboardVoiceChat.controller.getPhase(),
|
|
17388
|
-
elapsedMs: Date.now() - startedAt,
|
|
17389
|
-
source: 'chat-main',
|
|
17390
|
-
});
|
|
17391
|
-
// 2026-04-30 — Unified format: `🎙 [voice-chat]
|
|
17392
|
-
// <verb> (<trigger>)`. Same emoji + tag + accent
|
|
17393
|
-
// color across start/stop so the chat log reads
|
|
17394
|
-
// as a coherent voice-chat lifecycle stream.
|
|
17395
|
-
// Mutex/failed-start fall through to warning
|
|
17396
|
-
// color but keep the same prefix.
|
|
17397
|
-
chatLines.push('');
|
|
17398
|
-
if (result.action === 'mutex') {
|
|
17399
|
-
chatLines.push(C.warning(`🎙 [voice-chat] ${result.status}`));
|
|
17400
|
-
} else if (result.action === 'enter') {
|
|
17401
|
-
chatLines.push(C.accent(
|
|
17402
|
-
`🎙 [voice-chat] started (provider: ${dashboardVoiceChat.providerId}) — Alt+S or ESC to exit`,
|
|
17403
|
-
));
|
|
17404
|
-
} else if (result.status === 'voice-chat exited') {
|
|
17405
|
-
emitVoiceChatStopQuickPass('alt-s');
|
|
17406
|
-
chatLines.push(C.accent('🎙 [voice-chat] stopped (Alt+S)'));
|
|
17407
|
-
} else {
|
|
17408
|
-
// 'exit' action with diagnostic status
|
|
17409
|
-
// (e.g. failed-to-start guard).
|
|
17410
|
-
chatLines.push(C.warning(`🎙 [voice-chat] ${result.status}`));
|
|
17411
|
-
}
|
|
17412
|
-
chatScrollOffset = -1;
|
|
17413
|
-
draw();
|
|
17414
|
-
} catch (err) {
|
|
17415
|
-
const msg = err instanceof Error ? err.message : String(err);
|
|
17416
|
-
chatLines.push(C.warning(`🎙 [voice-chat] toggle failed: ${msg}`));
|
|
17417
|
-
chatScrollOffset = -1;
|
|
17418
|
-
if (debug.enabled)
|
|
17419
|
-
debug.log('voice.chat.error', 'chat-main.toggle.exception', {
|
|
17420
|
-
err: msg,
|
|
17421
|
-
elapsedMs: Date.now() - startedAt,
|
|
17422
|
-
}, { level: 'error' });
|
|
17423
|
-
draw();
|
|
17424
|
-
}
|
|
17425
|
-
})();
|
|
17426
|
-
return 'consumed';
|
|
17427
|
-
}
|
|
17428
|
-
if (!voiceInputHost) return 'passthrough';
|
|
17429
|
-
if (voiceInputHost.getState().kind !== 'idle') {
|
|
17430
|
-
return voiceInputHost.maybeHandleKey(routeKey) ? 'consumed' : 'passthrough';
|
|
17431
|
-
}
|
|
17432
|
-
if (!matchesVoiceEnterChord(routeKey)) return 'passthrough';
|
|
17433
|
-
if (debug.enabled) debug.log('voice.host', 'enter.chord.chat-main', {});
|
|
17434
|
-
voiceInputHost.requestEnter();
|
|
17435
|
-
return 'consumed';
|
|
17436
|
-
},
|
|
17437
|
-
// PR-S1V.D4 — Long-press Space dictation pre-key. The
|
|
17438
|
-
// detector lives at dashboard scope (see line ~4585) and
|
|
17439
|
-
// gets fed every keystroke routed here. The first Space
|
|
17440
|
-
// press is `passthrough` so the OS char lands in the chat
|
|
17441
|
-
// input buffer; once the threshold fires (`onLongPress`
|
|
17442
|
-
// → host.startDictation), subsequent OS repeats are
|
|
17443
|
-
// swallowed (`consumed`) so they don't pile " " chars on
|
|
17444
|
-
// top of the dictated transcript. Final release (or
|
|
17445
|
-
// cancel-by-other-key) flushes via host.stopDictation.
|
|
17446
|
-
routeLongPressDictation: async (routeKey) => {
|
|
17447
|
-
// TEMP DEBUG (2026-04-29 · fix/voice-runtime-tdz-2) —
|
|
17448
|
-
// mirror of the outer-hook gate log at the chat-input
|
|
17449
|
-
// route. Same chord-trial reasons as detector.
|
|
17450
|
-
if (debug.enabled && !routeKey.mouse && routeKey.ctrl && routeKey.shift) {
|
|
17451
|
-
debug.log('voice.chat-input-route.gate', 'eval', {
|
|
17452
|
-
keyName: routeKey.name,
|
|
17453
|
-
kind: routeKey.kind ?? 'press',
|
|
17454
|
-
hasVoiceHost: !!voiceInputHost,
|
|
17455
|
-
hasDetector: !!voiceLongPressDetector,
|
|
17456
|
-
hostState: voiceInputHost ? voiceInputHost.getState().kind : null,
|
|
17457
|
-
});
|
|
17458
|
-
}
|
|
17459
|
-
if (!voiceLongPressDetector || !voiceInputHost) return 'passthrough';
|
|
17460
|
-
// Voice mode active → defer to its own modal; long-press
|
|
17461
|
-
// detector stays out so press/release events serve the
|
|
17462
|
-
// recording lifecycle there.
|
|
17463
|
-
if (voiceInputHost.getState().kind !== 'idle') return 'passthrough';
|
|
17464
|
-
|
|
17465
|
-
if (isDictationHoldKey(routeKey)) {
|
|
17466
|
-
if (debug.enabled) {
|
|
17467
|
-
debug.log('voice.chat-input-route.dictation.hit', 'chord-match-toggle', {
|
|
17468
|
-
keyName: routeKey.name,
|
|
17469
|
-
kind: routeKey.kind ?? 'press',
|
|
17470
|
-
dictState: voiceInputHost.getDictationState(),
|
|
17471
|
-
});
|
|
17472
|
-
}
|
|
17473
|
-
// TEMP DEBUG TRIAL (2026-04-29) — toggle pattern via
|
|
17474
|
-
// shared dashboard helper. Release events ignored
|
|
17475
|
-
// under toggle; only press toggles. Restore detector
|
|
17476
|
-
// wiring once chord question is settled.
|
|
17477
|
-
if (routeKey.kind !== 'release') {
|
|
17478
|
-
toggleDictationFromChord('chat-input-route', routeKey.name);
|
|
17479
|
-
}
|
|
17480
|
-
return 'consumed';
|
|
17481
|
-
}
|
|
17482
|
-
|
|
17483
|
-
// TEMP DEBUG TRIAL — ESC stops a toggle-mode dictation
|
|
17484
|
-
// from inside chat-main input. Mirror of the outer-hook
|
|
17485
|
-
// ESC-cancel; the detector path below covers long-press
|
|
17486
|
-
// mode but not toggle.
|
|
17487
|
-
if (
|
|
17488
|
-
routeKey.name === 'escape'
|
|
17489
|
-
&& !routeKey.ctrl && !routeKey.shift && !routeKey.alt
|
|
17490
|
-
&& voiceInputHost.getDictationState() === 'recording'
|
|
17491
|
-
) {
|
|
17492
|
-
if (debug.enabled) {
|
|
17493
|
-
debug.log('voice.toggle.stop', 'esc-cancel-chat-input', {});
|
|
17494
|
-
}
|
|
17495
|
-
void voiceInputHost.stopDictation();
|
|
17496
|
-
while (voiceInputHost.getDictationState() !== 'idle') {
|
|
17497
|
-
await new Promise<void>((resolve) => setTimeout(resolve, 10));
|
|
17498
|
-
}
|
|
17499
|
-
return 'passthrough';
|
|
17500
|
-
}
|
|
17501
|
-
|
|
17502
|
-
// Cancel-by-other-key path — the user pressed something
|
|
17503
|
-
// other than Space while a long-press was pending or a
|
|
17504
|
-
// dictation was active. PR #1109 review fix: when this
|
|
17505
|
-
// terminates an in-flight dictation we MUST await
|
|
17506
|
-
// `stopDictation()` before returning, otherwise the
|
|
17507
|
-
// terminator key races ahead of the transcript insert
|
|
17508
|
-
// and the chat-main buffer ends up with "a<transcript>"
|
|
17509
|
-
// instead of "<transcript>a". Sentinel: capture the
|
|
17510
|
-
// pre-call state so we can decide whether to await.
|
|
17511
|
-
const preState = voiceLongPressDetector.getState();
|
|
17512
|
-
if (preState === 'idle') return 'passthrough';
|
|
17513
|
-
|
|
17514
|
-
voiceLongPressDetector.noteOtherKey();
|
|
17515
|
-
if (preState === 'fired') {
|
|
17516
|
-
// `noteOtherKey` already kicked the host's
|
|
17517
|
-
// stopDictation via the onLongRelease callback (the
|
|
17518
|
-
// detector calls it synchronously). Await the host's
|
|
17519
|
-
// dictation pipeline so the chat input handler that
|
|
17520
|
-
// runs after us sees the transcript already inserted.
|
|
17521
|
-
// We still return 'passthrough' so the terminator key
|
|
17522
|
-
// itself is delivered to the chat input as the user
|
|
17523
|
-
// intended — only the *ordering* shifts.
|
|
17524
|
-
while (voiceInputHost.getDictationState() !== 'idle') {
|
|
17525
|
-
await new Promise<void>((resolve) => setTimeout(resolve, 10));
|
|
17526
|
-
}
|
|
17527
|
-
}
|
|
17528
|
-
return 'passthrough';
|
|
17529
|
-
},
|
|
17530
|
-
routeInputKey: async (key) => {
|
|
16078
|
+
routeInputKey: async (key) => {
|
|
17531
16079
|
if (await handleLogPaneCopyAction(key)) return 'consumed';
|
|
17532
16080
|
// A-5b.2 · dispatcher-level key hook (routeInputEventAsync
|
|
17533
16081
|
// · ViewMode='input'). Runs AFTER onPreKey and BEFORE
|
|
@@ -17806,111 +16354,9 @@ Mode- and sync-specific instructions are injected per-turn when relevant — do
|
|
|
17806
16354
|
formatDebugLine: (display, reason, chars) => C.muted(` -- acp:${display} ${reason} (${chars} chars) --`),
|
|
17807
16355
|
formatErrorLine: (display, message) => C.error(` acp:${display} error: ${message}`),
|
|
17808
16356
|
formatAssistantPrefix: (display) => C.accent(` [${display}]`),
|
|
17809
|
-
autoTtsHooks: {
|
|
17810
|
-
pushChunk: dashboardAutoTts.hooks.pushChunk,
|
|
17811
|
-
commit: () => dashboardAutoTts.hooks.commit(),
|
|
17812
|
-
cancel: () => dashboardAutoTts.hooks.cancel(),
|
|
17813
|
-
},
|
|
17814
|
-
// 2026-04-30 — voice-chat controller's notifyResponseDone
|
|
17815
|
-
// used to live inside `autoTtsHooks.commit/cancel` wrappers,
|
|
17816
|
-
// which meant ELANOUS_AUTO_TTS=off (the default) skipped the
|
|
17817
|
-
// call entirely → speaking phase stuck → ESC needed → ESC
|
|
17818
|
-
// close triggered "WebSocket closed unexpectedly" warning.
|
|
17819
|
-
// Wiring through `onTurnDone` (auto-TTS-independent) makes
|
|
17820
|
-
// the speaking → inactive transition unconditional.
|
|
17821
|
-
onTurnDone: () => {
|
|
17822
|
-
dashboardVoiceChat.notifyResponseDone();
|
|
17823
|
-
},
|
|
17824
|
-
signalBus: dashboardControlSignals,
|
|
17825
|
-
drainCooldownMs: getUserConfig().voice.tts.drainCooldownMs
|
|
17826
|
-
?? VOICE_HARDCODED_DEFAULTS.ttsDrainCooldownMs,
|
|
17827
16357
|
});
|
|
17828
16358
|
};
|
|
17829
16359
|
|
|
17830
|
-
// Phase 4 voice-chat — bind the late submit closure now that
|
|
17831
|
-
// `dispatchAcpSend` is in scope. The boot helper holds a
|
|
17832
|
-
// mutable reference (set above with the `submitTranscript`
|
|
17833
|
-
// hook) so the controller can invoke this on final transcripts.
|
|
17834
|
-
//
|
|
17835
|
-
// 2026-04-30 — auto-submit destination is now decided by the
|
|
17836
|
-
// SAME state the chat-input router uses (sticky ACP backend).
|
|
17837
|
-
// Previously this closure unconditionally fell back to
|
|
17838
|
-
// `'claude'` when sticky was null, which sent multi-turn
|
|
17839
|
-
// voice transcripts to the claude-code ACP binary even when
|
|
17840
|
-
// the user never armed it — surfacing as `[-32603] Internal
|
|
17841
|
-
// error` because no claude-code session existed.
|
|
17842
|
-
//
|
|
17843
|
-
// sticky armed (`/acp codex --multi` etc.)
|
|
17844
|
-
// → dispatchAcpSend(sticky, text, [])
|
|
17845
|
-
// → external ACP backend, voice multi-turn fully hands-free
|
|
17846
|
-
//
|
|
17847
|
-
// sticky null
|
|
17848
|
-
// → replace the live chat-main buffer via the textInput
|
|
17849
|
-
// host's external submit hook and inject Enter
|
|
17850
|
-
// → main chat's normal `'plain'` dispatch path handles
|
|
17851
|
-
// in-process ACP / elanous LLM
|
|
17852
|
-
// → multi-turn's auto-relisten still kicks in via
|
|
17853
|
-
// notifyResponseDone after that turn ends
|
|
17854
|
-
//
|
|
17855
|
-
// This keeps the routed plain path canonical while avoiding
|
|
17856
|
-
// the old dictate-then-submit two-step, which left transcript
|
|
17857
|
-
// residue in the live prompt buffer.
|
|
17858
|
-
voiceChatSubmitImpl = (text) => {
|
|
17859
|
-
const sticky = dashboardAcpChat.getSticky();
|
|
17860
|
-
if (sticky) {
|
|
17861
|
-
// sticky armed — auto-submit is real, response stream
|
|
17862
|
-
// expected. Transition to `speaking` so the HUD's
|
|
17863
|
-
// voice-state segment reflects the assistant's turn
|
|
17864
|
-
// (prev: `processing`).
|
|
17865
|
-
dispatchAcpSend(sticky, text, []);
|
|
17866
|
-
try { dashboardVoiceChat.controller.transition('speaking'); }
|
|
17867
|
-
catch { /* swallow — controller may have raced into stopping */ }
|
|
17868
|
-
return;
|
|
17869
|
-
}
|
|
17870
|
-
// 2026-04-30 — sticky null but multi-turn ON. Route the
|
|
17871
|
-
// transcript through textInput's external submit hook with
|
|
17872
|
-
// the transcript payload itself. textInput replaces the
|
|
17873
|
-
// live buffer, injects a synthetic Enter, and the main
|
|
17874
|
-
// readKey loop returns through the normal `'plain'`
|
|
17875
|
-
// dispatch path (in-process ACP / elanous LLM). Auto-TTS
|
|
17876
|
-
// hooks fire there, and notifyResponseDone re-listens on
|
|
17877
|
-
// multi-turn.
|
|
17878
|
-
//
|
|
17879
|
-
// Phase: stay in `processing` until plain dispatch's
|
|
17880
|
-
// `onText` first chunk transitions to `speaking` — that
|
|
17881
|
-
// matches the user's intent ("실제 보이스 나오기 시작
|
|
17882
|
-
// 하면 표시").
|
|
17883
|
-
if (debug.enabled)
|
|
17884
|
-
debug.log('voice.chat.submit', 'plain.auto-submit', {
|
|
17885
|
-
chars: text.length,
|
|
17886
|
-
hasPromptCtl: typeof promptCtl.submit === 'function',
|
|
17887
|
-
});
|
|
17888
|
-
if (typeof promptCtl.submit === 'function') {
|
|
17889
|
-
promptCtl.submit({
|
|
17890
|
-
text,
|
|
17891
|
-
source: {
|
|
17892
|
-
kind: 'voice',
|
|
17893
|
-
surface: 'dashboard-chat-main',
|
|
17894
|
-
mode: 'multi-turn',
|
|
17895
|
-
transcriptSource: 'voice',
|
|
17896
|
-
channel: 'dashboard',
|
|
17897
|
-
},
|
|
17898
|
-
});
|
|
17899
|
-
return;
|
|
17900
|
-
}
|
|
17901
|
-
// textInput is not currently live (boot race / pane
|
|
17902
|
-
// mode) — we can't auto-submit. Fall back to dictate-only
|
|
17903
|
-
// and exit voice-chat so the HUD doesn't lock at
|
|
17904
|
-
// `processing`.
|
|
17905
|
-
try { voiceRuntime.dictateTranscript(text); } catch { /* ignore */ }
|
|
17906
|
-
chatLines.push(C.muted(
|
|
17907
|
-
' ℹ [voice-chat] 입력창이 활성화 안 됨 — transcript 가 채워짐, Enter 로 submit',
|
|
17908
|
-
));
|
|
17909
|
-
chatScrollOffset = -1;
|
|
17910
|
-
try { dashboardVoiceChat.controller.exit('user-cancel'); }
|
|
17911
|
-
catch { /* swallow */ }
|
|
17912
|
-
};
|
|
17913
|
-
|
|
17914
16360
|
// ── Sticky multi-turn passthrough ──
|
|
17915
16361
|
// When /acp ... --multi armed sticky mode, every plain
|
|
17916
16362
|
// (non-slash) submit goes straight to that backend. Slash
|
|
@@ -17948,13 +16394,6 @@ Mode- and sync-specific instructions are injected per-turn when relevant — do
|
|
|
17948
16394
|
...submitIntent,
|
|
17949
16395
|
sessionId: submitIntent.sessionId ?? dashboardAcpSession.currentSessionId,
|
|
17950
16396
|
}),
|
|
17951
|
-
beforeExecute: (submit) => {
|
|
17952
|
-
maybeEmitDashboardSubmitQuickPass({
|
|
17953
|
-
submit,
|
|
17954
|
-
isOutputSpeaking: dashboardAutoTts.controller.isSpeaking(),
|
|
17955
|
-
signalBus: dashboardControlSignals,
|
|
17956
|
-
});
|
|
17957
|
-
},
|
|
17958
16397
|
runStickyAcpDispatch: ({ target, text }) => {
|
|
17959
16398
|
const attachments = attachmentsToNormalized(ctxList(contextRegistry));
|
|
17960
16399
|
if (debug.enabled) {
|
|
@@ -18042,14 +16481,10 @@ Mode- and sync-specific instructions are injected per-turn when relevant — do
|
|
|
18042
16481
|
getChatOnlyMode: () => chatOnlyMode,
|
|
18043
16482
|
setChatOnlyLayout: (next, opts) => { setChatOnlyLayout(next, opts); },
|
|
18044
16483
|
enterSyncMode: () => { void enterSyncMode(); },
|
|
18045
|
-
handleVoiceChatSlash: (state, args2) =>
|
|
18046
|
-
handleVoiceChatSlash(state as Parameters<typeof handleVoiceChatSlash>[0], args2),
|
|
18047
|
-
voiceChatStateRef: { value: dashboardVoiceChat },
|
|
18048
16484
|
reloadSkillIndex,
|
|
18049
16485
|
blockStore,
|
|
18050
16486
|
blockAttach,
|
|
18051
16487
|
draw,
|
|
18052
|
-
autoTtsRef: dashboardAutoTts,
|
|
18053
16488
|
controlSignalSlashRuntime,
|
|
18054
16489
|
browserCdpSlashRuntime,
|
|
18055
16490
|
widgetHost,
|
|
@@ -18117,10 +16552,6 @@ Mode- and sync-specific instructions are injected per-turn when relevant — do
|
|
|
18117
16552
|
openPicker: () => { openForkTimetravelPicker(); },
|
|
18118
16553
|
timetravel: (n) => forkTimetravelFromChatHistory(n),
|
|
18119
16554
|
},
|
|
18120
|
-
missionTui: {
|
|
18121
|
-
startReadyWatch: (missionId) => { startMissionReadyWatch(missionId); },
|
|
18122
|
-
startRunWatch: (missionId) => { startMissionRunWatch(missionId); },
|
|
18123
|
-
},
|
|
18124
16555
|
refreshReasoningHudSegment,
|
|
18125
16556
|
inputSeed: {
|
|
18126
16557
|
appendBlock: (seed) => { inputPrefixState.appendBlock(seed); },
|
|
@@ -18980,8 +17411,6 @@ Mode- and sync-specific instructions are injected per-turn when relevant — do
|
|
|
18980
17411
|
}
|
|
18981
17412
|
// B-1.g migrated: /browser-cdp /bcdp → registry handler.
|
|
18982
17413
|
// B-2.q migrated: /sim /simulator → registry handler.
|
|
18983
|
-
// B-1.e migrated: /auto-tts /autotts /tts — moved to the registry
|
|
18984
|
-
// (autoTtsRef threaded through DashboardSlashContext).
|
|
18985
17414
|
// B-1.g migrated: /widget /widgets /w → registry handler.
|
|
18986
17415
|
// B-2.y migrated: /plugin /plugins \u2192 registry handler.
|
|
18987
17416
|
// (/p alias dropped \u2014 collided with /provider's /p which
|
|
@@ -19699,16 +18128,6 @@ Mode- and sync-specific instructions are injected per-turn when relevant — do
|
|
|
19699
18128
|
control: {
|
|
19700
18129
|
signalBus: dashboardControlSignals,
|
|
19701
18130
|
},
|
|
19702
|
-
autoTts: {
|
|
19703
|
-
pushChunk: (chunk) => dashboardAutoTts.hooks.pushChunk(chunk),
|
|
19704
|
-
commit: () => dashboardAutoTts.hooks.commit(),
|
|
19705
|
-
cancel: () => dashboardAutoTts.hooks.cancel(),
|
|
19706
|
-
},
|
|
19707
|
-
voiceChat: {
|
|
19708
|
-
getPhase: () => dashboardVoiceChat.controller.getPhase(),
|
|
19709
|
-
transitionToSpeaking: () => { dashboardVoiceChat.controller.transition('speaking'); },
|
|
19710
|
-
notifyResponseDone: () => dashboardVoiceChat.notifyResponseDone(),
|
|
19711
|
-
},
|
|
19712
18131
|
finalizeStreamLifecycle: (cleanupEsc, aborted, currentStatus) =>
|
|
19713
18132
|
finalizeDashboardStreamLifecycle(cleanupEsc, aborted, currentStatus),
|
|
19714
18133
|
recordTurnMetrics: async (fullResponse) => {
|
|
@@ -19859,13 +18278,6 @@ Mode- and sync-specific instructions are injected per-turn when relevant — do
|
|
|
19859
18278
|
? submitIntent.sessionId ?? dashboardAcpSession.currentSessionId
|
|
19860
18279
|
: dashboardAcpSession.currentSessionId,
|
|
19861
18280
|
}),
|
|
19862
|
-
beforeExecute: (submit) => {
|
|
19863
|
-
maybeEmitDashboardSubmitQuickPass({
|
|
19864
|
-
submit,
|
|
19865
|
-
isOutputSpeaking: dashboardAutoTts.controller.isSpeaking(),
|
|
19866
|
-
signalBus: dashboardControlSignals,
|
|
19867
|
-
});
|
|
19868
|
-
},
|
|
19869
18281
|
runStickyAcpDispatch: async () => {},
|
|
19870
18282
|
runPlainTurn: runPlainSubmitTurn,
|
|
19871
18283
|
});
|