elanous 0.2.44 → 0.2.47
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/README.md +3 -3
- package/apps/pwa/out/404/index.html +1 -1
- package/apps/pwa/out/404.html +1 -1
- package/apps/pwa/out/_next/static/chunks/{578eded8.b582637306e16964.js → 05181998.4f8efaf00572ba3b.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/1100-c0c1d80f649e121b.js +1 -0
- package/apps/pwa/out/_next/static/chunks/{7455.196168fffac3b9c4.js → 113.80a933f7c75c98f4.js} +2 -2
- package/apps/pwa/out/_next/static/chunks/1170.2b91e0702fae25c2.js +1 -0
- package/apps/pwa/out/_next/static/chunks/120-0c4a26e7eedc1bb9.js +1 -0
- package/apps/pwa/out/_next/static/chunks/1279.d5c20b1a56b736bf.js +149 -0
- package/apps/pwa/out/_next/static/chunks/1372.9db49566ed0e4c02.js +104 -0
- package/apps/pwa/out/_next/static/chunks/{4415-b9d6a90960920a4a.js → 1395-be70dd3408dec106.js} +3 -3
- package/apps/pwa/out/_next/static/chunks/1449-4665277ec241284f.js +1 -0
- package/apps/pwa/out/_next/static/chunks/1473.ac3cee48c1d82bc6.js +1 -0
- package/apps/pwa/out/_next/static/chunks/1510.7b4ce4032d06097c.js +148 -0
- package/apps/pwa/out/_next/static/chunks/{8551.f762945c2cda2e95.js → 1575.33a2d7d2be3d23f9.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/1728-d9808a0d6be6aa40.js +1 -0
- package/apps/pwa/out/_next/static/chunks/{6549dad0.2740b25e51bf8f05.js → 17673afb.ba8b2d0410a4be97.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/2021.7d4dfac25daed3bc.js +1 -0
- package/apps/pwa/out/_next/static/chunks/2128.368c63f8816ffc35.js +1 -0
- package/apps/pwa/out/_next/static/chunks/2272-2179b64be6512dcf.js +1 -0
- package/apps/pwa/out/_next/static/chunks/2282-7f396efa367b707d.js +1 -0
- package/apps/pwa/out/_next/static/chunks/{3843.bad404d008893291.js → 2313.444bed0db65aadb0.js} +2 -2
- package/apps/pwa/out/_next/static/chunks/2408-017e04049c99038f.js +1 -0
- package/apps/pwa/out/_next/static/chunks/2433.1108dd9eb7f009c0.js +1 -0
- package/apps/pwa/out/_next/static/chunks/2474-ce5b82a664d581f2.js +1 -0
- package/apps/pwa/out/_next/static/chunks/2532.376ea6de59f7c4f0.js +1 -0
- package/apps/pwa/out/_next/static/chunks/256.2a8e008d30947074.js +1 -0
- package/apps/pwa/out/_next/static/chunks/27.a383feedd4b99367.js +74 -0
- package/apps/pwa/out/_next/static/chunks/{5989.7ecd362c5c44b747.js → 2767.71eaafcf158c9e24.js} +3 -3
- package/apps/pwa/out/_next/static/chunks/279-9a8b620470792271.js +1 -0
- package/apps/pwa/out/_next/static/chunks/2791.6620db26a28b4ad4.js +1 -0
- package/apps/pwa/out/_next/static/chunks/2831-6d9d315a32b98961.js +1 -0
- package/apps/pwa/out/_next/static/chunks/{3042.96ec235fe41c8d4e.js → 292.06ca375a02c7830b.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/2955-056d5f1facf64dd7.js +1 -0
- package/apps/pwa/out/_next/static/chunks/2979-9c9f85d058367133.js +1 -0
- package/apps/pwa/out/_next/static/chunks/2993.e25197cd7fb4e2e5.js +1 -0
- package/apps/pwa/out/_next/static/chunks/29a68040.431a2da0564d7724.js +1 -0
- package/apps/pwa/out/_next/static/chunks/{3349.b5f09ee474d9533e.js → 3131.e7063655797e9743.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/314-db68d7268a1f99aa.js +1 -0
- package/apps/pwa/out/_next/static/chunks/316.76984e210cf33c21.js +62 -0
- package/apps/pwa/out/_next/static/chunks/{4599-f95790fc5c65b8df.js → 3255-80f60feecd5db880.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/3271.938bf60213f6cd17.js +8 -0
- package/apps/pwa/out/_next/static/chunks/3325-9699faf5a5294830.js +1 -0
- package/apps/pwa/out/_next/static/chunks/3418-f1ea6c6c710d5b94.js +1 -0
- package/apps/pwa/out/_next/static/chunks/342.050ac4b1738dfa5c.js +94 -0
- package/apps/pwa/out/_next/static/chunks/3545-5642d5df0667bcac.js +1 -0
- package/apps/pwa/out/_next/static/chunks/3615-322e67bfc3b6907e.js +1 -0
- package/apps/pwa/out/_next/static/chunks/3805-5c39a4bf5012fe86.js +1 -0
- package/apps/pwa/out/_next/static/chunks/3892.b8cde90082048d8c.js +1 -0
- package/apps/pwa/out/_next/static/chunks/{2610.e149cd564a08913e.js → 3900.b581090764d62bfb.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/3907.097fcec8956b021d.js +1 -0
- package/apps/pwa/out/_next/static/chunks/{1252.9e665904d3aa3b1a.js → 4110.8f14b59381558d7d.js} +2 -2
- package/apps/pwa/out/_next/static/chunks/{5232.5a2ce4daf7a9e11d.js → 422.33fde3dd808ec96d.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/4512-11a489cb5444ef52.js +1 -0
- package/apps/pwa/out/_next/static/chunks/4537-2c8089e830054a19.js +1 -0
- package/apps/pwa/out/_next/static/chunks/4548-afc498c924849db3.js +1 -0
- package/apps/pwa/out/_next/static/chunks/4588.3b7994fe28615549.js +23 -0
- package/apps/pwa/out/_next/static/chunks/4621-dcc3be02b7262bbe.js +1 -0
- package/apps/pwa/out/_next/static/chunks/4680-53705a02f53bd359.js +1 -0
- package/apps/pwa/out/_next/static/chunks/4705-16e4a3603923253d.js +1 -0
- package/apps/pwa/out/_next/static/chunks/4731.460c7a05f812951a.js +1 -0
- package/apps/pwa/out/_next/static/chunks/{2216.802962c04f40a26e.js → 4818.6fdc817b8b12788a.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/4875-dbc3d55494aa15bb.js +1 -0
- package/apps/pwa/out/_next/static/chunks/4890-100ef7fd2852528a.js +1 -0
- package/apps/pwa/out/_next/static/chunks/497.e875b212a877dc91.js +1 -0
- package/apps/pwa/out/_next/static/chunks/5106-1d9854b2e07d263b.js +1 -0
- package/apps/pwa/out/_next/static/chunks/5136.062e5b4ac043384f.js +90 -0
- package/apps/pwa/out/_next/static/chunks/5190.7cb2cf1274606639.js +1 -0
- package/apps/pwa/out/_next/static/chunks/5290.80a8cd7d37adf0b4.js +1 -0
- package/apps/pwa/out/_next/static/chunks/543.67803b0449dc628e.js +1 -0
- package/apps/pwa/out/_next/static/chunks/5464-f8193c7ae973d9d1.js +1 -0
- package/apps/pwa/out/_next/static/chunks/{2571.a6ac4e26c8618403.js → 5501.43770a36d11760e4.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/5672.2616c24baee6bb2f.js +34 -0
- package/apps/pwa/out/_next/static/chunks/5745-8a56d7701139e416.js +1 -0
- package/apps/pwa/out/_next/static/chunks/5757.eae58c9553985765.js +79 -0
- package/apps/pwa/out/_next/static/chunks/5848-9c1a3b9533bd0031.js +1 -0
- package/apps/pwa/out/_next/static/chunks/{4757.67c6d7473a038e78.js → 5987.3693cba0f39fc644.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/{4502.bdcc877abd437a05.js → 6006.3dcd594182d0cedb.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/{2e0f720a.a0697c08e3806a60.js → 607d4dc1.a4c4988d2c164d64.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/6166-b2fc7231dee53e86.js +1 -0
- package/apps/pwa/out/_next/static/chunks/6250.7667f92b4d4465fb.js +1 -0
- package/apps/pwa/out/_next/static/chunks/6293.4e33bcd25fa7fe80.js +1 -0
- package/apps/pwa/out/_next/static/chunks/6312.11884f8b6fc01317.js +1 -0
- package/apps/pwa/out/_next/static/chunks/6329.cfe619f9146ddb60.js +287 -0
- package/apps/pwa/out/_next/static/chunks/6610-f0510f329e6c15e8.js +1 -0
- package/apps/pwa/out/_next/static/chunks/6840.046ad6790da728d9.js +1 -0
- package/apps/pwa/out/_next/static/chunks/6851.700470acf99ed58b.js +1 -0
- package/apps/pwa/out/_next/static/chunks/{5a34fb2f.52f1b4e1baebb48a.js → 6c31d3a0.7f6d7568c2b7f9cc.js} +3 -3
- package/apps/pwa/out/_next/static/chunks/{5052.7dbb12a55d4f18f5.js → 7134.373f7059f13a9ea9.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/{1978.eeb60a606dc5deac.js → 7216.dc82684f78870505.js} +2 -2
- package/apps/pwa/out/_next/static/chunks/{6881.9e7955847640c7fe.js → 7327.5bc587cdfbb7468b.js} +3 -3
- package/apps/pwa/out/_next/static/chunks/7340-55af4d0198f3c218.js +1 -0
- package/apps/pwa/out/_next/static/chunks/7385.23cc541c89c2fa98.js +286 -0
- package/apps/pwa/out/_next/static/chunks/7631-673b883cfbbcaed1.js +1 -0
- package/apps/pwa/out/_next/static/chunks/7746.17ee8fc1f87b774f.js +1 -0
- package/apps/pwa/out/_next/static/chunks/{1694.18debfd77562e56d.js → 7756.ba59333b9f5eb5b1.js} +2 -2
- package/apps/pwa/out/_next/static/chunks/7763.a7579952c4e6f1b4.js +1 -0
- package/apps/pwa/out/_next/static/chunks/8045.a714469921e805dd.js +1 -0
- package/apps/pwa/out/_next/static/chunks/8073.57b55743909e9013.js +93 -0
- package/apps/pwa/out/_next/static/chunks/8126.e5237d43a372cf65.js +1 -0
- package/apps/pwa/out/_next/static/chunks/81a72ea7-19d3ed13dbaabf14.js +1 -0
- package/apps/pwa/out/_next/static/chunks/8269-782b63932e10a2ae.js +1 -0
- package/apps/pwa/out/_next/static/chunks/8385-931a72cc6864b91f.js +1 -0
- package/apps/pwa/out/_next/static/chunks/8541-6801e6237710c920.js +1 -0
- package/apps/pwa/out/_next/static/chunks/8572.c425a14dcf1ffeb0.js +1 -0
- package/apps/pwa/out/_next/static/chunks/867-2d1e981b0167c29a.js +1 -0
- package/apps/pwa/out/_next/static/chunks/8723.ca926aacbbf3ac7f.js +1 -0
- package/apps/pwa/out/_next/static/chunks/{6201.bc936f71f613a8e9.js → 8747.eeb006b94dad5759.js} +2 -2
- package/apps/pwa/out/_next/static/chunks/895.5f73e50705fe1830.js +226 -0
- package/apps/pwa/out/_next/static/chunks/{3503.a47a9755fb4d97b0.js → 8993.bbf6810d7afa70bf.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/8f44ce90-05842a3e94de7716.js +1 -0
- package/apps/pwa/out/_next/static/chunks/{6420.494801a80030160c.js → 9066.629ebf156fcd2ab1.js} +2 -2
- package/apps/pwa/out/_next/static/chunks/9133-06cf65777241d447.js +1 -0
- package/apps/pwa/out/_next/static/chunks/{7010.1bbd17a7f2b3e376.js → 9160.83b3cab34166c934.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/919.c8775745cc88225f.js +309 -0
- package/apps/pwa/out/_next/static/chunks/{5a5078f8.2099200e5ea95e16.js → 9270078e.402279bc985895b9.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/9397.b3fbfb372280934a.js +1 -0
- package/apps/pwa/out/_next/static/chunks/{2043.e233e3b5a3e790f5.js → 9605.c828819da413e8e0.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/9635.f8d12ec73885ac29.js +1 -0
- package/apps/pwa/out/_next/static/chunks/{6245.1182e007e9d230d9.js → 9695.d086738c907a0c2c.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/{46.57c783fa4884714f.js → 9748.2866a5c59dbe980c.js} +2 -2
- package/apps/pwa/out/_next/static/chunks/9828.e6e68b558c521de6.js +24 -0
- package/apps/pwa/out/_next/static/chunks/9893.7a7b6edae64e8ead.js +36 -0
- package/apps/pwa/out/_next/static/chunks/9a51175e.fccb3ff43e50adbc.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/_not-found/page-bedb21eab48baf18.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/approvals/page-07762315735dd0b2.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/autopilot/page-03f85a9f0a258ea8.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/board/page-e845d6c10f91d76b.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/botlab/page-fb3631f9f3a50179.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/bots/page-00f6e3c7a80a9bce.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/ceo/page-971a0c0861b98018.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/chat/page-651d5b7636a46cf6.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/consult/page-d02ad543024d8341.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/control/page-bb376bd8355baae6.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/decisions/page-28c4bec75794d1bd.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/design-check/page-2123da599d50838a.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/editor/page-2955f93723dcc402.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/exec/page-9223ba698a2a0188.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/field/page-e81094cf3567e2f2.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/healthz/route-bedb21eab48baf18.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/inside/page-7d654302ac3b3a4e.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/intake/page-2bc02d4bee167db4.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/layout-617df2f350b6d863.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/live/page-499ad36f9c8d105c.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/live-run/page-09acff44586be1c2.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/loops/page-5c18c95a9bd1c524.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/market/page-b7e45df4c89eda9d.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/missions/[id]/page-9bd9e634f324e2d8.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/morning/page-895823d15c5776c7.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/not-found-76d702791c75b6f5.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/observatory/page-89cdfe958d836563.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/ops/checklist/page-65718fff9f43051d.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/ops/release/page-f0d6a675eb513720.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/ops/resources/page-a0d5bffbf9203c00.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/ops/seats/page-9890ca9c1b120cf1.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/outputs/page-bb9cf5e9622532a0.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/page-44dfa774fa7c5533.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/reflection/page-93c8c51d77053d35.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/scheduler/page-716bdba6d2ad3fcd.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/sessions/page-0f04eeda9894b67d.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/settings/devices/page-3835d43c61fa1af6.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/settings/page-41e8ba9c4feab48e.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/setup/done/page-eedf8d31ba99ca9f.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/setup/layout-bedb21eab48baf18.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/setup/page-241ed1c971bfa1ac.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/share/page-93e2ce2a6e871642.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/showroom/page-561cf4fce14c622c.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/tasks/page-b71cab2d1ba15c2c.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/term/page-f86e352129f64ac6.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/today/page-5b0bd68768085bdb.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/trace/page-a6003c82802c5e93.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/vault/page-122887bd22818e86.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/workflows/chat-ui/page-a5e2267da13cac6d.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/workflows/page-abac2741a74c7e0f.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/workspace/page-cc3091a30e35cbde.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/worktrees/page-1b5ef5aad6c1eefc.js +1 -0
- package/apps/pwa/out/_next/static/chunks/{892fd990.456232f326cc39c2.js → c0a97b40.42e62d6352afa9df.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/{08334415.f0e80896acbef722.js → e866a15a.97493b74d66f48b3.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/framework-52efbeade0c028ac.js +1 -0
- package/apps/pwa/out/_next/static/chunks/main-app-365b194cc7ba42f7.js +1 -0
- package/apps/pwa/out/_next/static/chunks/main-dc781b21621cd6de.js +1 -0
- package/apps/pwa/out/_next/static/chunks/pages/_app-c69e53f764eae97b.js +1 -0
- package/apps/pwa/out/_next/static/chunks/pages/_error-bd8106d7e595dfc3.js +1 -0
- package/apps/pwa/out/_next/static/chunks/webpack-e3f77df212a70fcb.js +1 -0
- package/apps/pwa/out/_next/static/css/700f225938e9488f.css +1 -0
- package/apps/pwa/out/_next/static/fMFwB4C7VwMRiuFGZdGVs/_buildManifest.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/autopilot/index.html +1 -1
- package/apps/pwa/out/autopilot/index.txt +23 -23
- 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/missions/placeholder/index.html +1 -1
- package/apps/pwa/out/missions/placeholder/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 -0
- package/apps/pwa/out/ops/resources/index.txt +30 -0
- 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/docs/goal-context/01-goal-authoring-checks.md +1 -0
- package/graphs/steward/README.md +9 -0
- package/graphs/steward/entrance-dispatch-shadow.yaml +23 -0
- package/graphs/steward/recipes.yaml +3 -0
- package/graphs/video/README.md +38 -0
- package/graphs/video/explainer-line.yaml +20 -7
- package/package.json +2 -1
- package/scripts/generate-ux-sim-device-manual.ts +21 -0
- package/scripts/intake-news.ts +10 -4
- package/scripts/intake-social.ts +10 -4
- package/scripts/lib/intake-check-cli.ts +15 -0
- package/scripts/measure-git-checkout-accel.ts +232 -0
- package/scripts/release-loop/gate-baseline-receipt.ts +34 -3
- package/scripts/release-loop/gate-node-sim.ts +5 -1
- package/scripts/release-loop/gate-node.ts +434 -77
- package/scripts/release-loop/gate-radius-live.ts +5 -4
- package/scripts/release-loop/gate-shard-dispatch.ts +99 -10
- package/scripts/release-loop/gate-shard-receipts.ts +81 -5
- package/scripts/release-loop/known-issues-node.ts +7 -2
- package/scripts/release-loop/node-verdict.ts +3 -1
- package/scripts/release-loop/resume-release.ts +36 -5
- package/scripts/release-loop/resume.ts +80 -12
- package/scripts/sim-world-runner.ts +29 -0
- package/scripts/test-diet/node.ts +1 -1
- package/scripts/test-pod40-control-inbox-isolation.ts +39 -0
- package/scripts/ux-sim.ts +11 -0
- package/scripts/video-pipeline.ts +6 -1
- package/skills/explainer-video/engine/build.mjs +39 -2
- package/src/acp/core-turn-bridge.ts +30 -0
- package/src/agent/identity-env.ts +1 -0
- package/src/agent-mission/driver.ts +8 -5
- package/src/agent-mission/grok-auth-status.ts +60 -23
- package/src/agent-mission/resource-ladder.ts +11 -4
- package/src/agent-substrate/pr-reviewer.ts +73 -16
- package/src/agent-substrate/self-review-cli.ts +103 -38
- package/src/auto-research/question-ladder-contract.ts +2 -0
- package/src/auto-research/research-turn.ts +289 -14
- package/src/cli/config-test-sync.ts +6 -1
- package/src/cli/control-cli.ts +2 -0
- package/src/cli/decision-list-format.ts +9 -0
- package/src/cli/decision-list-since.ts +13 -0
- package/src/cli/decisions-cli.ts +84 -24
- package/src/cli/decisions-list-cli.ts +32 -0
- package/src/cli/doctor-cli.ts +2 -2
- package/src/cli/friendly-errors.ts +4 -0
- package/src/cli/intake-cli.ts +10 -5
- package/src/cli/light-entry-route.ts +25 -3
- package/src/cli/msg-cli.ts +5 -28
- package/src/cli/msg-list-cli.ts +73 -0
- package/src/cli/pr-cli.ts +42 -58
- package/src/cli/pr-land-options.ts +34 -0
- package/src/cli/provider-cli.ts +54 -0
- package/src/cli/pty-drive-cli.ts +25 -1
- package/src/cli/pty-takeover-cli.ts +9 -6
- package/src/cli/release-checklist-landed-cli.ts +273 -0
- package/src/cli/release-checklist-set-cli.ts +137 -0
- package/src/cli/release-checklist-write.ts +34 -0
- package/src/cli/release-cli.ts +8 -4
- package/src/cli/remote-eln-pty.ts +287 -0
- package/src/cli/resource-ledger-cli.ts +248 -0
- package/src/cli/runs-tree-cli.ts +256 -0
- package/src/cli/setup-cli.ts +42 -0
- package/src/cli/setup-keys.ts +80 -8
- package/src/cli/sim-cli.ts +89 -0
- package/src/cli/tasks-advance-cli.ts +185 -0
- package/src/cli/tasks-cli.ts +59 -92
- package/src/cli/tasks-read-cli.ts +32 -21
- package/src/cli/tui-test-cli.ts +154 -22
- package/src/compact/pipeline.ts +6 -1
- package/src/context-bus/nightly-condense.ts +8 -7
- package/src/core-turn/run-core-turn.ts +17 -11
- package/src/dashboard/acp-boot.ts +66 -10
- package/src/dashboard/classic-sidetab-mission-job.ts +17 -1
- package/src/dashboard/classic-sidetab-mission-trio.ts +91 -18
- package/src/dashboard/classic-sidetab-mission.ts +34 -17
- package/src/dashboard/index.ts +36 -34
- package/src/dashboard/visible-mission-diagnostics.ts +1 -3
- package/src/decisions/decision-cards.ts +6 -1
- package/src/decisions/decision-ledger.ts +5 -0
- package/src/error-report/report.ts +139 -4
- package/src/execution-loop/launch-gate.ts +115 -18
- package/src/fleet/host-doctor.ts +20 -20
- package/src/graph-runner/graph-cli.ts +3 -2
- package/src/graph-runner/runner.ts +16 -3
- package/src/grid/ssh-broker.ts +436 -0
- package/src/harness/browser-act.ts +11 -4
- package/src/harness/dispatch-backpressure.ts +111 -29
- package/src/harness/harness-cli-command.ts +36 -3
- package/src/harness/harness-pod-dispatch.ts +37 -1
- package/src/index.ts +154 -9
- package/src/light-cli.ts +52 -5
- package/src/llm.ts +136 -21
- package/src/loops/orchestrator/tick.ts +29 -9
- package/src/maturity/feature-maturity.ts +2 -1
- package/src/msg/msg-store.ts +5 -2
- package/src/native-tool-catalog.ts +13 -0
- package/src/nexus/api/http-server.ts +8 -0
- package/src/nexus/api/ops-api.ts +6 -0
- package/src/nexus/api/resource-guardian.ts +26 -0
- package/src/nexus/api/resource-ledger.ts +36 -0
- package/src/nexus/api/rest-route-paths.ts +3 -0
- package/src/nexus/api/ux-sim-devices.ts +36 -0
- package/src/oauth/codex-seat-home.ts +231 -0
- package/src/oauth/codex.ts +69 -16
- package/src/onboarding/web-first.ts +45 -14
- package/src/onboarding.ts +9 -0
- package/src/plugins/maker/wizard-generate.ts +13 -1
- package/src/pty-shell/pty-manifest-query-cache.ts +18 -0
- package/src/pty-shell/pty-manifest.ts +76 -0
- package/src/pty-shell/remote-eln-inventory.ts +88 -0
- package/src/release-loop/gate-host-reservation.ts +5 -3
- package/src/release-loop/gate-shard-ledger.ts +2 -0
- package/src/release-loop/placement.ts +18 -8
- package/src/release-loop/rehearsal.ts +86 -11
- package/src/release-loop/release-note.ts +84 -0
- package/src/release-loop/stage-mail.ts +71 -0
- package/src/research/axis-fanout.ts +73 -23
- package/src/research/entity-status-table.ts +305 -0
- package/src/research/evidence-attribution.ts +48 -0
- package/src/research/gap-followup.ts +6 -1
- package/src/resource-ledger/guardian-reconcile.ts +172 -0
- package/src/resource-ledger/lease-automation.ts +112 -0
- package/src/resource-ledger/lease-heartbeat-worker.ts +169 -0
- package/src/resource-ledger/resource-ledger.ts +253 -0
- package/src/seat-loop/seat-loop.ts +2 -1
- package/src/self-dev/dev-pipeline.ts +67 -6
- package/src/self-dev/orchestrate-parent-dispatch.ts +44 -0
- package/src/self-dev/review-provider-fallback.ts +108 -10
- package/src/self-implement/goal-author.ts +214 -9
- package/src/self-implement/orchestrator.ts +172 -44
- package/src/self-implement/pod-warm-pool-profile.ts +3 -0
- package/src/self-implement/seams.ts +42 -1
- package/src/session/index.ts +34 -0
- package/src/session/request-size-guard.ts +7 -7
- package/src/session-runtime/search-processor.ts +5 -2
- package/src/sidetab-core/model.ts +9 -6
- package/src/sidetab-core/visible-agent-mission.ts +108 -19
- package/src/skills/tools/shell.ts +7 -4
- package/src/steward/entrance-dispatch-shadow-adapter-child.ts +26 -0
- package/src/steward/entrance-dispatch-shadow-adapter.ts +196 -0
- package/src/steward/entrance-dispatch-shadow.ts +318 -0
- package/src/storage/short-lived-read-cache.ts +119 -0
- package/src/task-agent/card-evidence.ts +2 -1
- package/src/task-agent/entrance-shadow.ts +178 -0
- package/src/task-agent/mission.ts +9 -19
- package/src/task-agent/parent-host.ts +74 -4
- package/src/task-agent/repair-cycle.ts +75 -1
- package/src/task-agent/task-card-state.ts +161 -0
- package/src/task-agent/task-hand.ts +41 -141
- package/src/task-agent/work-order-build.ts +22 -1
- package/src/task-orchestrator/surfaces/gate-pod-pool-policy.ts +161 -0
- package/src/task-orchestrator/surfaces/pod-warm-worker-provider.ts +36 -10
- package/src/task-orchestrator/surfaces/warm-reuse-evidence.ts +61 -0
- package/src/tool-runtime/browser-hand-runtime.ts +41 -11
- package/src/tool-runtime/elanous-control-runtimes.ts +5 -2
- package/src/tool-runtime/elanous-ux-sim-devices-runtime.ts +43 -0
- package/src/tool-runtime/index.ts +2 -0
- package/src/tui/entry.ts +28 -1
- package/src/tui/sidetab/attach.ts +212 -34
- package/src/tui/sidetab/remote.ts +89 -0
- package/src/tui-client/dashboard-session.ts +2 -0
- package/src/user-config.ts +3 -1
- package/src/ux-sim/author-reviewer-precheck-device.ts +78 -0
- package/src/ux-sim/codex-wire-capture.ts +26 -0
- package/src/ux-sim/event-monkey.ts +20 -2
- package/src/ux-sim/fake-bin.ts +72 -1
- package/src/ux-sim/fake-cloud-vm.ts +227 -0
- package/src/ux-sim/fake-fleet.ts +123 -0
- package/src/ux-sim/fake-kubectl.ts +21 -6
- package/src/ux-sim/fake-llm.ts +14 -1
- package/src/ux-sim/fake-ssh.ts +125 -0
- package/src/ux-sim/fake-telegram-video.ts +54 -0
- package/src/ux-sim/fixtures/git-worktree-accel-linux.json +239 -0
- package/src/ux-sim/gate-shard-host-reroute.ts +7 -3
- package/src/ux-sim/graph-runtime-overlay-event-path-worker.ts +54 -0
- package/src/ux-sim/graph-runtime-overlay-event-path.ts +80 -0
- package/src/ux-sim/grid-chaos-driver.ts +198 -0
- package/src/ux-sim/grid-ledger.ts +259 -0
- package/src/ux-sim/grid-ready-tiers.ts +253 -0
- package/src/ux-sim/heal-reauthor-materialized.ts +115 -0
- package/src/ux-sim/mock-scenario-catalog.json +38 -10
- package/src/ux-sim/mock-scenario-catalog.ts +57 -4
- package/src/ux-sim/release-sim-rig.ts +1 -0
- package/src/ux-sim/research-decision-chain.ts +220 -0
- package/src/ux-sim/safe-public-copy-publish.ts +89 -0
- package/src/ux-sim/scenario.ts +107 -14
- package/src/ux-sim/seminar-rehearsal.ts +108 -0
- package/src/ux-sim/warm-pool-reuse-sim.ts +183 -0
- package/src/ux-sim/world-schema.ts +216 -0
- package/src/ux-sim/world-store.ts +328 -0
- package/src/ux-sim/world.ts +524 -0
- package/src/version/packed-revision.json +1 -1
- package/src/video-pipeline/recipes/explainer.ts +237 -10
- package/src/video-pipeline/telegram-video-sender.ts +47 -0
- package/apps/pwa/out/_next/static/HMXsxdy5MIIcHPMHv1wD4/_buildManifest.js +0 -1
- package/apps/pwa/out/_next/static/chunks/1032-78ba4f6391258cab.js +0 -1
- package/apps/pwa/out/_next/static/chunks/1082-53f86a26e03d309d.js +0 -1
- package/apps/pwa/out/_next/static/chunks/1109-7d0e264f6f2edbc7.js +0 -1
- package/apps/pwa/out/_next/static/chunks/1124-7c26330402481143.js +0 -1
- package/apps/pwa/out/_next/static/chunks/118.2a89982fe4276880.js +0 -23
- package/apps/pwa/out/_next/static/chunks/1244.6c435dbf1bf21d8a.js +0 -1
- package/apps/pwa/out/_next/static/chunks/1266.a46cc33cb6a72d75.js +0 -104
- package/apps/pwa/out/_next/static/chunks/1306.967240ede9a0f757.js +0 -24
- package/apps/pwa/out/_next/static/chunks/1344.3b95f3bd1b77a3fe.js +0 -94
- package/apps/pwa/out/_next/static/chunks/1401.22dfe92640a2b1ac.js +0 -309
- package/apps/pwa/out/_next/static/chunks/1431-f7c78bd5be21e011.js +0 -1
- package/apps/pwa/out/_next/static/chunks/1451-cdd35a8a0b31834b.js +0 -1
- package/apps/pwa/out/_next/static/chunks/1708-f03d587b7a7545c8.js +0 -1
- package/apps/pwa/out/_next/static/chunks/1775-fa7152bdeff6c95f.js +0 -1
- package/apps/pwa/out/_next/static/chunks/178-4da509cd7266672a.js +0 -1
- package/apps/pwa/out/_next/static/chunks/1850-522de4ee34957210.js +0 -1
- package/apps/pwa/out/_next/static/chunks/1876-c6f6e0ddcc76c6a1.js +0 -1
- package/apps/pwa/out/_next/static/chunks/1976.097066b072432242.js +0 -1
- package/apps/pwa/out/_next/static/chunks/2150.71b94e3348107c83.js +0 -1
- package/apps/pwa/out/_next/static/chunks/2158.ebc6fc5a10280ab7.js +0 -1
- package/apps/pwa/out/_next/static/chunks/2294.7890edcfa046c97d.js +0 -1
- package/apps/pwa/out/_next/static/chunks/235.c89aaae4bcd6233a.js +0 -74
- package/apps/pwa/out/_next/static/chunks/239.de075467b5523469.js +0 -287
- package/apps/pwa/out/_next/static/chunks/249.ba7051590d603c8f.js +0 -226
- package/apps/pwa/out/_next/static/chunks/2705.9816f3c244f8b85f.js +0 -1
- package/apps/pwa/out/_next/static/chunks/2801.afeb8a4dae22f85f.js +0 -1
- package/apps/pwa/out/_next/static/chunks/2954.bbefc95d6b20e0d8.js +0 -1
- package/apps/pwa/out/_next/static/chunks/3097-8e358f158acef46b.js +0 -1
- package/apps/pwa/out/_next/static/chunks/3205-93b1abe28b4fb16a.js +0 -1
- package/apps/pwa/out/_next/static/chunks/3273.b4434f0dcae7eb29.js +0 -1
- package/apps/pwa/out/_next/static/chunks/3311.9cbc43ea0c90d60c.js +0 -1
- package/apps/pwa/out/_next/static/chunks/3506-5f429b3b7e1392b0.js +0 -1
- package/apps/pwa/out/_next/static/chunks/3877-4b40e530b47e3bf9.js +0 -1
- package/apps/pwa/out/_next/static/chunks/435-ce2958253cf7de61.js +0 -1
- package/apps/pwa/out/_next/static/chunks/4393.28fa5228d0eec217.js +0 -149
- package/apps/pwa/out/_next/static/chunks/4404.7281c847c6e10dfc.js +0 -1
- package/apps/pwa/out/_next/static/chunks/447-5b304de1fe098f43.js +0 -1
- package/apps/pwa/out/_next/static/chunks/4484-8ebea83d431e6fae.js +0 -1
- package/apps/pwa/out/_next/static/chunks/463-b9114e411f33728e.js +0 -1
- package/apps/pwa/out/_next/static/chunks/4659.a57d1f0c5d754cd2.js +0 -36
- package/apps/pwa/out/_next/static/chunks/4722-a847e7a28115035f.js +0 -1
- package/apps/pwa/out/_next/static/chunks/4874-c86f878ec4502ad3.js +0 -1
- package/apps/pwa/out/_next/static/chunks/4891.3f80ba517a3b2373.js +0 -1
- package/apps/pwa/out/_next/static/chunks/4998.810ca8833084caa9.js +0 -62
- package/apps/pwa/out/_next/static/chunks/4f98febc.ea5841d4d616bfb2.js +0 -1
- package/apps/pwa/out/_next/static/chunks/5166-ca73b3e361085a6d.js +0 -1
- package/apps/pwa/out/_next/static/chunks/5180-039f4a18b07ad387.js +0 -1
- package/apps/pwa/out/_next/static/chunks/5439.3fec6dbce29ecb36.js +0 -1
- package/apps/pwa/out/_next/static/chunks/5612-074d9a5e00dfac6a.js +0 -1
- package/apps/pwa/out/_next/static/chunks/5675-01989d524a84c505.js +0 -1
- package/apps/pwa/out/_next/static/chunks/5751.af641a1adf5ec697.js +0 -1
- package/apps/pwa/out/_next/static/chunks/5758-c6cb98714d18ab0c.js +0 -1
- package/apps/pwa/out/_next/static/chunks/5790.5eb06a653ebd8571.js +0 -34
- package/apps/pwa/out/_next/static/chunks/5853-4033e5bd5afbe06b.js +0 -1
- package/apps/pwa/out/_next/static/chunks/5904.97d70bb7f46b2db7.js +0 -1
- package/apps/pwa/out/_next/static/chunks/6036-c302c34ff0b3d410.js +0 -1
- package/apps/pwa/out/_next/static/chunks/606.ef81c313381f4264.js +0 -1
- package/apps/pwa/out/_next/static/chunks/616.1af54a928b1ba704.js +0 -1
- package/apps/pwa/out/_next/static/chunks/6204-fdc86e0e64c4f92d.js +0 -1
- package/apps/pwa/out/_next/static/chunks/63699a35.17262e162bc514b2.js +0 -1
- package/apps/pwa/out/_next/static/chunks/6931.fcdfb94141e67b3d.js +0 -1
- package/apps/pwa/out/_next/static/chunks/6991-8e081c6ce38c0ba1.js +0 -1
- package/apps/pwa/out/_next/static/chunks/7029.d1466acf55fae2ed.js +0 -1
- package/apps/pwa/out/_next/static/chunks/7152-a123aa8e129c131f.js +0 -1
- package/apps/pwa/out/_next/static/chunks/7638.6ca4770dd1129138.js +0 -1
- package/apps/pwa/out/_next/static/chunks/7649-f37d76260e5e2a5a.js +0 -1
- package/apps/pwa/out/_next/static/chunks/7679.32c40cdd14f20b4a.js +0 -1
- package/apps/pwa/out/_next/static/chunks/7751.04bfbd16b4c6cd0a.js +0 -1
- package/apps/pwa/out/_next/static/chunks/7864.b1ff31d4030b8994.js +0 -148
- package/apps/pwa/out/_next/static/chunks/7869-c47bd2c075c1fefa.js +0 -1
- package/apps/pwa/out/_next/static/chunks/8442.2f09ca969d631615.js +0 -1
- package/apps/pwa/out/_next/static/chunks/8445.2738dbd59a78c78c.js +0 -1
- package/apps/pwa/out/_next/static/chunks/8447.5510c439f9938c6d.js +0 -286
- package/apps/pwa/out/_next/static/chunks/8635-57a9d8d9db70f4f1.js +0 -1
- package/apps/pwa/out/_next/static/chunks/86961958-4b0689a5048f756b.js +0 -1
- package/apps/pwa/out/_next/static/chunks/8709.3c6019bb18f8554f.js +0 -8
- package/apps/pwa/out/_next/static/chunks/8759.c999528a0a907bf6.js +0 -1
- package/apps/pwa/out/_next/static/chunks/87f498e5-0881de09f2e44707.js +0 -1
- package/apps/pwa/out/_next/static/chunks/8843.c3197f904c952b81.js +0 -1
- package/apps/pwa/out/_next/static/chunks/8965-135a2c9eaa2464cb.js +0 -1
- package/apps/pwa/out/_next/static/chunks/8971-8d3b9c96f8a6c958.js +0 -1
- package/apps/pwa/out/_next/static/chunks/9059.c8598d96f8e5e9cd.js +0 -1
- package/apps/pwa/out/_next/static/chunks/9115.90447ae198b84eae.js +0 -1
- package/apps/pwa/out/_next/static/chunks/9147.d9b0a02e0babc9b4.js +0 -93
- package/apps/pwa/out/_next/static/chunks/9204-83075f4b70c61cdc.js +0 -1
- package/apps/pwa/out/_next/static/chunks/9244-c32ef14b5dc72bdf.js +0 -1
- package/apps/pwa/out/_next/static/chunks/930.2a9a30f964350c66.js +0 -90
- package/apps/pwa/out/_next/static/chunks/9398.1f56e3f17795f43f.js +0 -1
- package/apps/pwa/out/_next/static/chunks/9527.3e5ad31c891c5fcb.js +0 -79
- package/apps/pwa/out/_next/static/chunks/9571-4ac933e774d1225c.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/_not-found/page-9fc644de2d8edae3.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/approvals/page-0c9dace2db62bee8.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/autopilot/page-f5e65c3dc9d89f2a.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/board/page-2a9c19b9a140b7b1.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/botlab/page-61533ad92141adfb.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/bots/page-112004ced6fd0329.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/ceo/page-f733318c237a49d8.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/chat/page-51ea677d2d33bbc0.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/consult/page-428b41f2f9566e3c.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/control/page-1b29396ea90a61e5.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/decisions/page-cf83ec613ac904bf.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/design-check/page-3f4c0ecbc284bb5f.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/editor/page-b63c322f54f70cc6.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/exec/page-fe328c4ee9aac6b4.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/field/page-bfb855c584f0fb98.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/healthz/route-9fc644de2d8edae3.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/inside/page-47b1710c110eabd7.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/intake/page-42895214458bc6d2.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/layout-d03de0ebd8366e23.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/live/page-3ed6c47e4b1c61c2.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/live-run/page-ae653e9bf261c738.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/loops/page-23f3f0a0209c0ac4.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/market/page-88c691273aae66f9.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/missions/[id]/page-e187ac52a95538b3.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/morning/page-6e45828daed1295e.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/not-found-edb5d7287bb46186.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/observatory/page-4a7eaacd93c3f6a5.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/ops/checklist/page-3ca073d43d74cc84.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/ops/release/page-1e9fee67b1199436.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/ops/seats/page-df1283ea963c6816.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/outputs/page-19fcf8d8301ccd18.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/page-5ab699e0303bbb40.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/reflection/page-7cde0d29756984c5.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/scheduler/page-9d4c598e8ee22f7a.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/sessions/page-cc1609a71f44ec62.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/settings/devices/page-7659a9a1345bfaa9.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/settings/page-0afef60ecc0c4af5.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/setup/done/page-a3553949f8f34f5f.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/setup/layout-9fc644de2d8edae3.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/setup/page-057a69702f3c67c7.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/share/page-c0f0e570f3f74c73.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/showroom/page-1825071ae34e3b89.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/tasks/page-6244e3e135d8ccfc.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/term/page-da787e8a10b8a82e.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/today/page-1316d32498e2be42.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/trace/page-4df94572e343de2e.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/vault/page-708969f7475e88c1.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/workflows/chat-ui/page-c58add08c919a1dc.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/workflows/page-a24847f45e5d5bf9.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/workspace/page-acfec65a3a60e22e.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/worktrees/page-3dfc598e6fbde245.js +0 -1
- package/apps/pwa/out/_next/static/chunks/framework-c658a626118411b7.js +0 -1
- package/apps/pwa/out/_next/static/chunks/main-4c73685fd891445b.js +0 -1
- package/apps/pwa/out/_next/static/chunks/main-app-6310f7e5de7dd01d.js +0 -1
- package/apps/pwa/out/_next/static/chunks/pages/_app-51c326bf48610be1.js +0 -1
- package/apps/pwa/out/_next/static/chunks/pages/_error-d0beadf754da59b0.js +0 -1
- package/apps/pwa/out/_next/static/chunks/webpack-acd243bfbf3f6732.js +0 -1
- package/apps/pwa/out/_next/static/css/d1f8bb401740a549.css +0 -1
- /package/apps/pwa/out/_next/static/{HMXsxdy5MIIcHPMHv1wD4 → fMFwB4C7VwMRiuFGZdGVs}/_ssgManifest.js +0 -0
|
@@ -1,26 +1,27 @@
|
|
|
1
1
|
import { randomUUID } from 'node:crypto';
|
|
2
2
|
import { join } from 'node:path';
|
|
3
|
-
import { resolveBackendSpawn, claudeBackend, codexBackend } from '../../agent-mission/driver.js';
|
|
3
|
+
import { resolveBackendSpawn, claudeBackend, codexBackend, grokBackend } from '../../agent-mission/driver.js';
|
|
4
4
|
import { DisplayCoordinator } from '../../display/coordinator.js';
|
|
5
5
|
import { createDisplayEventBus } from '../../display/events.js';
|
|
6
6
|
import { createTerminalModalRouter } from '../../terminal/terminal-modal-router.js';
|
|
7
7
|
import { getSessionCwd } from '../../session/working-dir.js';
|
|
8
8
|
import { TerminalSessionRegistry, type TerminalSession } from '../../terminal/session-registry.js';
|
|
9
9
|
import { requestRemotePtyControl } from '../../pty-shell/pty-control-ipc.js';
|
|
10
|
-
import {
|
|
10
|
+
import { debug } from '../../debug/log.js';
|
|
11
|
+
import { runVisibleAgentMission, type VisibleAgentCli, type VisibleMissionPty, type VisibleMissionResult } from '../../sidetab-core/visible-agent-mission.js';
|
|
11
12
|
import { runVisibleAgentMissionPair } from '../../sidetab-core/visible-agent-mission-pair.js';
|
|
12
13
|
import type { Key } from '../../tui.js';
|
|
13
14
|
import type { SidetabRow } from './list.js';
|
|
14
15
|
import { createHerdrSidetabPortal, herdrPaneIdFromSidetabRow, type HerdrSidetabPortal } from './herdr-portal.js';
|
|
15
16
|
|
|
16
|
-
export type SidetabCharacter = 'shell' | 'elanous' |
|
|
17
|
+
export type SidetabCharacter = 'shell' | 'elanous' | VisibleAgentCli;
|
|
17
18
|
|
|
18
19
|
export interface SidetabAttachmentController {
|
|
19
20
|
attach(row: SidetabRow): boolean;
|
|
20
21
|
select(row: SidetabRow): boolean;
|
|
21
22
|
showMain(): void;
|
|
22
23
|
spawn(character: SidetabCharacter): boolean;
|
|
23
|
-
runMission(agent:
|
|
24
|
+
runMission(agent: VisibleAgentCli, mission: string): Promise<Awaited<ReturnType<typeof runVisibleAgentMission>>>;
|
|
24
25
|
runMissionPair(agent: 'codex' | 'claude', mission: string, parallelMission: string): Promise<unknown>;
|
|
25
26
|
kill(row: SidetabRow): boolean;
|
|
26
27
|
handleKey(key: Key): boolean;
|
|
@@ -31,14 +32,14 @@ export interface SidetabAttachmentController {
|
|
|
31
32
|
}
|
|
32
33
|
|
|
33
34
|
export interface AgentCliDetection {
|
|
34
|
-
agent:
|
|
35
|
+
agent: VisibleAgentCli;
|
|
35
36
|
installed: boolean;
|
|
36
37
|
version: string | null;
|
|
37
38
|
login: 'ready' | 'needed' | 'unknown';
|
|
38
39
|
message: string;
|
|
39
40
|
}
|
|
40
41
|
|
|
41
|
-
export function sidetabMissionFailureLog(agent:
|
|
42
|
+
export function sidetabMissionFailureLog(agent: VisibleAgentCli, result: VisibleMissionResult): {
|
|
42
43
|
event: 'startup-screen-failed' | 'mission-failed';
|
|
43
44
|
data: Record<string, unknown>;
|
|
44
45
|
} | undefined {
|
|
@@ -54,6 +55,18 @@ export function sidetabMissionFailureLog(agent: 'codex' | 'claude', result: Visi
|
|
|
54
55
|
};
|
|
55
56
|
}
|
|
56
57
|
|
|
58
|
+
/** Adapt a live registry session so mission results can report its real process exit code. */
|
|
59
|
+
export function visibleMissionPtyForTerminalSession(session: TerminalSession): VisibleMissionPty {
|
|
60
|
+
const modal = session.modal;
|
|
61
|
+
if (!modal) throw new Error('Cannot run a visible mission without an attached terminal modal');
|
|
62
|
+
return {
|
|
63
|
+
snapshot: () => modal.snapshot(),
|
|
64
|
+
write: (bytes) => modal.write(bytes),
|
|
65
|
+
isAlive: () => modal.isAlive(),
|
|
66
|
+
exitCode: () => session.exitCode,
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
|
|
57
70
|
export function createSidetabAttachmentController(deps: {
|
|
58
71
|
drawBase(): void;
|
|
59
72
|
termSize(): { cols: number; rows: number };
|
|
@@ -62,11 +75,15 @@ export function createSidetabAttachmentController(deps: {
|
|
|
62
75
|
logEvent?(category: string, event: string, data: Record<string, unknown>): void;
|
|
63
76
|
herdrPortal?: HerdrSidetabPortal;
|
|
64
77
|
/** Owned by OPT; a missing detector keeps the hook inert until its API lands. */
|
|
65
|
-
detectAgentCli?(agent:
|
|
78
|
+
detectAgentCli?(agent: VisibleAgentCli): Promise<AgentCliDetection>;
|
|
66
79
|
/** Test seam for exercising the visible mission path without launching an external CLI. */
|
|
67
|
-
createVisibleMissionPty?(agent:
|
|
80
|
+
createVisibleMissionPty?(agent: VisibleAgentCli): { pty: VisibleMissionPty; cwd: string };
|
|
68
81
|
/** Runner seam keeps the controller path testable with short deterministic mission timeouts. */
|
|
69
82
|
visibleMissionRunner?: typeof runVisibleAgentMission;
|
|
83
|
+
/** Test seam for exercising real session-exit propagation through the controller. */
|
|
84
|
+
terminalRegistry?: TerminalSessionRegistry;
|
|
85
|
+
/** Test seam for remote PTY transport and takeover races. */
|
|
86
|
+
remotePtyCommand?(host: string, args: readonly string[]): Promise<string>;
|
|
70
87
|
}): SidetabAttachmentController {
|
|
71
88
|
const eventBus = createDisplayEventBus();
|
|
72
89
|
const coordinator = new DisplayCoordinator({
|
|
@@ -74,12 +91,77 @@ export function createSidetabAttachmentController(deps: {
|
|
|
74
91
|
onRender: () => deps.drawBase(),
|
|
75
92
|
writeOverlay: (ansi) => { try { process.stdout.write(ansi); } catch { /* TUI closed */ } },
|
|
76
93
|
});
|
|
77
|
-
const registry = new TerminalSessionRegistry({ coordinator, eventBus });
|
|
94
|
+
const registry = deps.terminalRegistry ?? new TerminalSessionRegistry({ coordinator, eventBus });
|
|
95
|
+
const missionExitObservations = new Map<string, {
|
|
96
|
+
agent: VisibleAgentCli;
|
|
97
|
+
category: 'agent-mission.sidetab' | 'agent-mission.sidetab-pair';
|
|
98
|
+
result?: VisibleMissionResult;
|
|
99
|
+
exitCode?: number | null;
|
|
100
|
+
exitLogged?: boolean;
|
|
101
|
+
}>();
|
|
102
|
+
let controllerClosed = false;
|
|
103
|
+
let unsubscribeMissionExits = () => {};
|
|
104
|
+
const maybeUnsubscribeMissionExits = () => {
|
|
105
|
+
if (controllerClosed && missionExitObservations.size === 0) unsubscribeMissionExits();
|
|
106
|
+
};
|
|
107
|
+
const trackMissionSession = (
|
|
108
|
+
session: TerminalSession,
|
|
109
|
+
agent: VisibleAgentCli,
|
|
110
|
+
category: 'agent-mission.sidetab' | 'agent-mission.sidetab-pair',
|
|
111
|
+
) => {
|
|
112
|
+
const observation: { agent: VisibleAgentCli; category: 'agent-mission.sidetab' | 'agent-mission.sidetab-pair'; result?: VisibleMissionResult; exitCode?: number | null; exitLogged?: boolean } = { agent, category };
|
|
113
|
+
if (session.state === 'exited') {
|
|
114
|
+
observation.exitCode = session.exitCode;
|
|
115
|
+
observation.exitLogged = true;
|
|
116
|
+
deps.logEvent?.(category, 'pty-exit', { agent, exitCode: session.exitCode });
|
|
117
|
+
}
|
|
118
|
+
missionExitObservations.set(session.id, observation);
|
|
119
|
+
return observation;
|
|
120
|
+
};
|
|
121
|
+
const trackMissionResult = (session: TerminalSession, result: VisibleMissionResult) => {
|
|
122
|
+
const observation = missionExitObservations.get(session.id);
|
|
123
|
+
if (!observation) {
|
|
124
|
+
if (session.state === 'exited') result.exitCode = session.exitCode;
|
|
125
|
+
return;
|
|
126
|
+
}
|
|
127
|
+
observation.result = result;
|
|
128
|
+
if (observation.exitCode !== undefined) {
|
|
129
|
+
result.exitCode = observation.exitCode;
|
|
130
|
+
missionExitObservations.delete(session.id);
|
|
131
|
+
} else if (session.state === 'exited') {
|
|
132
|
+
result.exitCode = session.exitCode;
|
|
133
|
+
missionExitObservations.delete(session.id);
|
|
134
|
+
}
|
|
135
|
+
maybeUnsubscribeMissionExits();
|
|
136
|
+
};
|
|
137
|
+
unsubscribeMissionExits = registry.subscribe((event) => {
|
|
138
|
+
if (event.type !== 'exited') return;
|
|
139
|
+
const observation = missionExitObservations.get(event.session.id);
|
|
140
|
+
if (!observation) return;
|
|
141
|
+
observation.exitCode = event.session.exitCode;
|
|
142
|
+
if (observation.result) {
|
|
143
|
+
observation.result.exitCode = event.session.exitCode;
|
|
144
|
+
}
|
|
145
|
+
if (!observation.exitLogged) {
|
|
146
|
+
observation.exitLogged = true;
|
|
147
|
+
deps.logEvent?.(observation.category, 'pty-exit', {
|
|
148
|
+
agent: observation.agent,
|
|
149
|
+
exitCode: event.session.exitCode,
|
|
150
|
+
});
|
|
151
|
+
}
|
|
152
|
+
// Exit observations must not pin the registry subscriber when spawning a
|
|
153
|
+
// mission failed before a result could be returned. A late runner result
|
|
154
|
+
// can still read the authoritative exit status from the exited session.
|
|
155
|
+
missionExitObservations.delete(event.session.id);
|
|
156
|
+
maybeUnsubscribeMissionExits();
|
|
157
|
+
});
|
|
78
158
|
const modalRouter = createTerminalModalRouter();
|
|
79
159
|
let attachedSessionId: string | null = null;
|
|
80
160
|
let detachPrefixPending = false;
|
|
81
161
|
let remotePtyId: string | null = null;
|
|
162
|
+
let remoteHost: string | null = null;
|
|
82
163
|
let remoteTakenOver = false;
|
|
164
|
+
let remoteAttachmentToken = 0;
|
|
83
165
|
let remoteFrameTimer: ReturnType<typeof setInterval> | null = null;
|
|
84
166
|
let remoteFramePending = false;
|
|
85
167
|
let remoteHasFrame = false;
|
|
@@ -89,6 +171,55 @@ export function createSidetabAttachmentController(deps: {
|
|
|
89
171
|
let herdrFrameTimer: ReturnType<typeof setInterval> | null = null;
|
|
90
172
|
let herdrFramePending = false;
|
|
91
173
|
const herdrInputQueues = new Map<string, Promise<void>>();
|
|
174
|
+
const remoteOperationQueues = new Map<string, Promise<void>>();
|
|
175
|
+
const runRemotePtyCommand = async (host: string, args: readonly string[]): Promise<string> => {
|
|
176
|
+
if (deps.remotePtyCommand) return deps.remotePtyCommand(host, args);
|
|
177
|
+
const { runRemoteElnPty } = await import('./remote.js');
|
|
178
|
+
return runRemoteElnPty(host, args);
|
|
179
|
+
};
|
|
180
|
+
const runRemotePtyControl = async (host: string | null, id: string, action: 'takeover' | 'release'): Promise<void> => {
|
|
181
|
+
if (host) { await runRemotePtyCommand(host, ['pty', action, id]); return; }
|
|
182
|
+
const result = await requestRemotePtyControl(id, action, undefined, { timeoutMs: action === 'takeover' ? 1_000 : 500 });
|
|
183
|
+
if (result.status !== 'success') throw new Error(result.reason ?? result.status);
|
|
184
|
+
};
|
|
185
|
+
const enqueueRemoteOperation = (host: string | null, id: string, operation: () => Promise<void>): Promise<void> => {
|
|
186
|
+
const key = (host ?? 'local') + '\0' + id;
|
|
187
|
+
const previous = remoteOperationQueues.get(key) ?? Promise.resolve();
|
|
188
|
+
let current: Promise<void>;
|
|
189
|
+
current = previous.catch(() => {}).then(operation).finally(() => {
|
|
190
|
+
if (remoteOperationQueues.get(key) === current) remoteOperationQueues.delete(key);
|
|
191
|
+
});
|
|
192
|
+
remoteOperationQueues.set(key, current);
|
|
193
|
+
return current;
|
|
194
|
+
};
|
|
195
|
+
const releaseRemotePty = (host: string | null, id: string): void => {
|
|
196
|
+
void enqueueRemoteOperation(host, id, () => runRemotePtyControl(host, id, 'release')).catch((error: unknown) => {
|
|
197
|
+
deps.logEvent?.('sidetab.remote', 'release-failed', { host, ptyId: id, error: error instanceof Error ? error.message : String(error) });
|
|
198
|
+
deps.setStatus('PTY 해제 실패 · ' + (host ?? 'local') + ':' + id);
|
|
199
|
+
});
|
|
200
|
+
};
|
|
201
|
+
const enqueueRemoteInput = (host: string | null, id: string, token: number, send: () => Promise<void>): void => {
|
|
202
|
+
void enqueueRemoteOperation(host, id, async () => {
|
|
203
|
+
if (remotePtyId !== id || remoteHost !== host || remoteAttachmentToken !== token || !remoteTakenOver) {
|
|
204
|
+
deps.logEvent?.('sidetab.remote', 'send-cancelled', { host, ptyId: id, reason: 'attachment-changed-before-send' });
|
|
205
|
+
deps.setStatus('PTY 입력 취소 · 대상 전환으로 ' + (host ?? 'local') + ':' + id + '에 보내지 않았습니다');
|
|
206
|
+
return;
|
|
207
|
+
}
|
|
208
|
+
try {
|
|
209
|
+
await send();
|
|
210
|
+
deps.logEvent?.('sidetab.remote', 'send-result', { host, ptyId: id, result: 'sent' });
|
|
211
|
+
} catch (error) {
|
|
212
|
+
const attachmentChanged = remotePtyId !== id || remoteHost !== host || remoteAttachmentToken !== token;
|
|
213
|
+
const reason = error instanceof Error ? error.message : String(error);
|
|
214
|
+
deps.logEvent?.('sidetab.remote', 'send-failed', { host, ptyId: id, reason, attachmentChanged, outcome: 'unknown', userVisible: true });
|
|
215
|
+
deps.setStatus('PTY 입력 결과 불명(전송 여부 확인 불가) · ' + (host ?? 'local') + ':' + id + ' · ' + reason);
|
|
216
|
+
}
|
|
217
|
+
}).catch((error: unknown) => {
|
|
218
|
+
const reason = error instanceof Error ? error.message : String(error);
|
|
219
|
+
deps.logEvent?.('sidetab.remote', 'operation-failed', { host, ptyId: id, reason });
|
|
220
|
+
deps.setStatus('PTY 원격 작업 실패 · ' + (host ?? 'local') + ':' + id + ' · ' + reason);
|
|
221
|
+
});
|
|
222
|
+
};
|
|
92
223
|
|
|
93
224
|
const enqueueHerdrInput = (paneId: string, send: () => Promise<void>): void => {
|
|
94
225
|
const previous = herdrInputQueues.get(paneId) ?? Promise.resolve();
|
|
@@ -106,8 +237,11 @@ export function createSidetabAttachmentController(deps: {
|
|
|
106
237
|
if (remoteFrameTimer !== null) clearInterval(remoteFrameTimer);
|
|
107
238
|
remoteFrameTimer = null;
|
|
108
239
|
const previous = remotePtyId;
|
|
240
|
+
const previousHost = remoteHost;
|
|
241
|
+
remoteAttachmentToken += 1;
|
|
109
242
|
remotePtyId = null;
|
|
110
|
-
|
|
243
|
+
remoteHost = null;
|
|
244
|
+
if (previous && remoteTakenOver) releaseRemotePty(previousHost, previous);
|
|
111
245
|
remoteTakenOver = false;
|
|
112
246
|
remoteHasFrame = false;
|
|
113
247
|
deps.drawRemoteFrame('');
|
|
@@ -151,13 +285,20 @@ export function createSidetabAttachmentController(deps: {
|
|
|
151
285
|
stopHerdr();
|
|
152
286
|
stopRemote();
|
|
153
287
|
remotePtyId = row.ptyId;
|
|
288
|
+
remoteHost = row.remoteHost ?? null;
|
|
289
|
+
const host = remoteHost;
|
|
154
290
|
const id = row.ptyId;
|
|
291
|
+
const token = ++remoteAttachmentToken;
|
|
292
|
+
const isCurrentAttachment = (): boolean => remotePtyId === id && remoteHost === host && remoteAttachmentToken === token;
|
|
155
293
|
const refresh = async (): Promise<void> => {
|
|
156
|
-
if (remoteFramePending ||
|
|
294
|
+
if (remoteFramePending || !isCurrentAttachment()) return;
|
|
157
295
|
remoteFramePending = true;
|
|
158
296
|
try {
|
|
159
|
-
|
|
160
|
-
|
|
297
|
+
if (host) debug.log('sidetab.remote', 'peek', { host, ptyId: id });
|
|
298
|
+
const result = host
|
|
299
|
+
? { status: 'success' as const, screen: await runRemotePtyCommand(host, ['pty', 'snapshot', id, '--ansi']) }
|
|
300
|
+
: await requestRemotePtyControl(id, 'snapshot', { ansi: true }, { timeoutMs: 450 });
|
|
301
|
+
if (isCurrentAttachment() && result.status === 'success') {
|
|
161
302
|
if (!result.screen?.trim()) {
|
|
162
303
|
stopRemote();
|
|
163
304
|
deps.setStatus('PTY 화면이 비어 있어 채팅 화면을 유지합니다');
|
|
@@ -166,12 +307,13 @@ export function createSidetabAttachmentController(deps: {
|
|
|
166
307
|
remoteHasFrame = true;
|
|
167
308
|
deps.drawRemoteFrame(result.screen ?? '');
|
|
168
309
|
}
|
|
169
|
-
else if (
|
|
310
|
+
else if (isCurrentAttachment() && result.status !== 'success') {
|
|
170
311
|
if (!remoteHasFrame) stopRemote();
|
|
171
312
|
deps.setStatus(`PTY 화면 읽기 실패 · ${result.status}`);
|
|
172
313
|
}
|
|
173
314
|
} catch (error) {
|
|
174
|
-
if (
|
|
315
|
+
if (isCurrentAttachment()) {
|
|
316
|
+
if (host) debug.log('sidetab.remote', 'host-unreachable', { host, ptyId: id, reason: error instanceof Error ? error.message : String(error) });
|
|
175
317
|
if (!remoteHasFrame) stopRemote();
|
|
176
318
|
deps.setStatus(`PTY 화면 읽기 오류 · ${error instanceof Error ? error.message : String(error)}`);
|
|
177
319
|
}
|
|
@@ -180,7 +322,7 @@ export function createSidetabAttachmentController(deps: {
|
|
|
180
322
|
}
|
|
181
323
|
};
|
|
182
324
|
void refresh();
|
|
183
|
-
remoteFrameTimer = setInterval(() => { void refresh(); }, 75);
|
|
325
|
+
remoteFrameTimer = setInterval(() => { void refresh(); }, host ? 1_000 : 75);
|
|
184
326
|
deps.setStatus('원격 PTY 화면 · t takeover · Ctrl+\\ 후 ↑/↓ 전환');
|
|
185
327
|
return true;
|
|
186
328
|
};
|
|
@@ -212,7 +354,7 @@ export function createSidetabAttachmentController(deps: {
|
|
|
212
354
|
}
|
|
213
355
|
const id = `next-sidetab-${randomUUID()}`;
|
|
214
356
|
const cwd = getSessionCwd();
|
|
215
|
-
const title = character === 'claude' ? 'claude-code' : character;
|
|
357
|
+
const title = character === 'claude' ? 'claude-code' : character === 'grok' ? 'grok-build' : character;
|
|
216
358
|
const common = {
|
|
217
359
|
id,
|
|
218
360
|
title,
|
|
@@ -224,15 +366,15 @@ export function createSidetabAttachmentController(deps: {
|
|
|
224
366
|
registryPurpose: `next-tui-sidetab:${id}`,
|
|
225
367
|
registrySeat: process.env.COORD_ID?.trim() || 'unknown',
|
|
226
368
|
kind: character === 'shell' ? 'shell' as const : 'coding-agent' as const,
|
|
227
|
-
...(character === 'claude' ? { agentBrand: 'claude-code' as const } : character === 'codex' ? { agentBrand:
|
|
369
|
+
...(character === 'claude' ? { agentBrand: 'claude-code' as const } : character === 'codex' || character === 'grok' ? { agentBrand: character } : {}),
|
|
228
370
|
};
|
|
229
371
|
try {
|
|
230
372
|
let command: string | undefined;
|
|
231
373
|
let env: Record<string, string> | undefined;
|
|
232
374
|
let unsetEnv: string[] | undefined;
|
|
233
375
|
if (character === 'elanous') command = 'elanous --tui next';
|
|
234
|
-
if (character === 'codex' || character === 'claude') {
|
|
235
|
-
const backend = character
|
|
376
|
+
if (character === 'codex' || character === 'claude' || character === 'grok') {
|
|
377
|
+
const backend = visibleAgentBackend(character);
|
|
236
378
|
const spec = resolveBackendSpawn(backend, process.env);
|
|
237
379
|
command = [spec.cmd, ...spec.args].map(shellQuote).join(' ');
|
|
238
380
|
env = spec.env;
|
|
@@ -316,6 +458,7 @@ export function createSidetabAttachmentController(deps: {
|
|
|
316
458
|
const injectedMissionPty = deps.createVisibleMissionPty?.(agent);
|
|
317
459
|
let modal: VisibleMissionPty;
|
|
318
460
|
let cwd: string;
|
|
461
|
+
let missionSession: TerminalSession | undefined;
|
|
319
462
|
if (injectedMissionPty) {
|
|
320
463
|
modal = injectedMissionPty.pty;
|
|
321
464
|
cwd = injectedMissionPty.cwd;
|
|
@@ -325,11 +468,13 @@ export function createSidetabAttachmentController(deps: {
|
|
|
325
468
|
if (!spawned || !session?.modal) {
|
|
326
469
|
return { ok: false, path: '', promptReady: false, missionVisible: false, promptReturned: false, completionMarker: false, error: `${agent} side-tab PTY could not start` };
|
|
327
470
|
}
|
|
328
|
-
|
|
471
|
+
missionSession = session;
|
|
472
|
+
trackMissionSession(session, agent, 'agent-mission.sidetab');
|
|
473
|
+
modal = visibleMissionPtyForTerminalSession(session);
|
|
329
474
|
cwd = session.cwd;
|
|
330
475
|
}
|
|
331
|
-
const outputPath = join(cwd, '.elanous', 'mission-results', `sidetab-${Date.now()}.md`);
|
|
332
|
-
const backend = agent
|
|
476
|
+
const outputPath = join(cwd, '.elanous', 'mission-results', `sidetab-${Date.now()}-${randomUUID()}.md`);
|
|
477
|
+
const backend = visibleAgentBackend(agent);
|
|
333
478
|
const result = await (deps.visibleMissionRunner ?? runVisibleAgentMission)({
|
|
334
479
|
pty: modal,
|
|
335
480
|
agent,
|
|
@@ -338,6 +483,7 @@ export function createSidetabAttachmentController(deps: {
|
|
|
338
483
|
onStartupScreen: (screen) => deps.logEvent?.('agent-mission.sidetab', 'startup-screen', { agent, screen }),
|
|
339
484
|
handleTrust: (screen, write) => backend.handleTrust?.(screen, write) ?? false,
|
|
340
485
|
});
|
|
486
|
+
if (missionSession) trackMissionResult(missionSession, result);
|
|
341
487
|
const failureLog = sidetabMissionFailureLog(agent, result);
|
|
342
488
|
if (failureLog) deps.logEvent?.('agent-mission.sidetab', failureLog.event, failureLog.data);
|
|
343
489
|
showMain();
|
|
@@ -379,11 +525,13 @@ export function createSidetabAttachmentController(deps: {
|
|
|
379
525
|
const session = lastSpawnedSession as TerminalSession | null;
|
|
380
526
|
if (!didSpawn || !session) return null;
|
|
381
527
|
sessions.set(member, session);
|
|
528
|
+
trackMissionSession(session, member, 'agent-mission.sidetab-pair');
|
|
382
529
|
workspaces.set(member, session.cwd);
|
|
383
530
|
const pty: VisibleMissionPty = {
|
|
384
531
|
snapshot: () => session.preview.renderForLLM(),
|
|
385
532
|
write: (bytes) => session.preview.write(bytes),
|
|
386
533
|
isAlive: () => session.preview.isAlive,
|
|
534
|
+
exitCode: () => session.exitCode,
|
|
387
535
|
};
|
|
388
536
|
ptySessions.set(pty, session);
|
|
389
537
|
return pty;
|
|
@@ -400,6 +548,8 @@ export function createSidetabAttachmentController(deps: {
|
|
|
400
548
|
onStartupScreen: (screen) => deps.logEvent?.('agent-mission.sidetab-pair', 'startup-screen', { agent: member, screen }),
|
|
401
549
|
handleTrust: (screen, write) => backend.handleTrust?.(screen, write) ?? false,
|
|
402
550
|
});
|
|
551
|
+
const session = sessions.get(member);
|
|
552
|
+
if (session) trackMissionResult(session, result);
|
|
403
553
|
const failureLog = sidetabMissionFailureLog(member, result);
|
|
404
554
|
if (failureLog) deps.logEvent?.('agent-mission.sidetab-pair', failureLog.event, failureLog.data);
|
|
405
555
|
return result;
|
|
@@ -520,22 +670,41 @@ export function createSidetabAttachmentController(deps: {
|
|
|
520
670
|
if (key.ctrl && key.name.toLowerCase() === 'q') return false;
|
|
521
671
|
if (key.name.toLowerCase() === 't' && !remoteTakenOver) {
|
|
522
672
|
const id = remotePtyId;
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
673
|
+
const host = remoteHost;
|
|
674
|
+
const token = remoteAttachmentToken;
|
|
675
|
+
void enqueueRemoteOperation(host, id, async () => {
|
|
676
|
+
const isCurrent = (): boolean => remotePtyId === id && remoteHost === host && remoteAttachmentToken === token;
|
|
677
|
+
if (!isCurrent()) return;
|
|
678
|
+
await runRemotePtyControl(host, id, 'takeover');
|
|
679
|
+
if (!isCurrent()) {
|
|
680
|
+
// This operation is serialized with a later takeover for the same target.
|
|
681
|
+
await runRemotePtyControl(host, id, 'release');
|
|
682
|
+
return;
|
|
683
|
+
}
|
|
684
|
+
remoteTakenOver = true;
|
|
685
|
+
deps.setStatus('사람 입력 takeover 완료 · 전환 때 release');
|
|
527
686
|
}).catch((error: unknown) => {
|
|
528
|
-
if (remotePtyId === id) deps.setStatus(`takeover 오류 · ${error instanceof Error ? error.message : String(error)}`);
|
|
687
|
+
if (remotePtyId === id && remoteHost === host && remoteAttachmentToken === token) deps.setStatus(`takeover 오류 · ${error instanceof Error ? error.message : String(error)}`);
|
|
529
688
|
});
|
|
530
689
|
return true;
|
|
531
690
|
}
|
|
532
691
|
if (remoteTakenOver && key.raw) {
|
|
533
|
-
const id = remotePtyId
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
692
|
+
const id = remotePtyId!;
|
|
693
|
+
const raw = key.raw!;
|
|
694
|
+
const host = remoteHost;
|
|
695
|
+
const token = remoteAttachmentToken;
|
|
696
|
+
if (host) debug.log('sidetab.remote', 'send', { host, ptyId: id, chars: raw.length });
|
|
697
|
+
const send = async (): Promise<void> => {
|
|
698
|
+
if (host) {
|
|
699
|
+
const enter = raw === '\r' || raw === '\n';
|
|
700
|
+
const args = ['pty', 'text', id, enter ? '' : raw, ...(enter ? ['--enter'] : []), '--actor', 'human'];
|
|
701
|
+
await runRemotePtyCommand(host, args);
|
|
702
|
+
return;
|
|
703
|
+
}
|
|
704
|
+
const result = await requestRemotePtyControl(id, 'input-key', { chars: raw }, { timeoutMs: 500 });
|
|
705
|
+
if (result.status !== 'success') throw new Error(result.status);
|
|
706
|
+
};
|
|
707
|
+
enqueueRemoteInput(host, id, token, send);
|
|
539
708
|
return true;
|
|
540
709
|
}
|
|
541
710
|
return true;
|
|
@@ -571,10 +740,13 @@ export function createSidetabAttachmentController(deps: {
|
|
|
571
740
|
hasRemoteView: () => remotePtyId !== null || herdrPaneId !== null,
|
|
572
741
|
refresh: () => coordinator.requestRenderNow({ force: true }),
|
|
573
742
|
close() {
|
|
743
|
+
if (controllerClosed) return;
|
|
744
|
+
controllerClosed = true;
|
|
574
745
|
stopRemote();
|
|
575
746
|
stopHerdr();
|
|
576
747
|
modalRouter.close();
|
|
577
748
|
for (const session of registry.list()) registry.kill(session.id);
|
|
749
|
+
maybeUnsubscribeMissionExits();
|
|
578
750
|
},
|
|
579
751
|
};
|
|
580
752
|
|
|
@@ -590,3 +762,9 @@ export function createSidetabAttachmentController(deps: {
|
|
|
590
762
|
function shellQuote(value: string): string {
|
|
591
763
|
return `'${value.replaceAll("'", "'\\''")}'`;
|
|
592
764
|
}
|
|
765
|
+
|
|
766
|
+
function visibleAgentBackend(agent: VisibleAgentCli) {
|
|
767
|
+
if (agent === 'codex') return codexBackend;
|
|
768
|
+
if (agent === 'claude') return claudeBackend;
|
|
769
|
+
return grokBackend;
|
|
770
|
+
}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { execFile } from 'node:child_process';
|
|
2
|
+
import { promisify } from 'node:util';
|
|
3
|
+
import { getUserConfig } from '../../user-config.js';
|
|
4
|
+
import { debug } from '../../debug/log.js';
|
|
5
|
+
import { parsePodPool } from '../../task-orchestrator/surfaces/pod-pool.js';
|
|
6
|
+
import type { SidetabRow } from '../../sidetab-core/model.js';
|
|
7
|
+
|
|
8
|
+
const execFileAsync = promisify(execFile);
|
|
9
|
+
|
|
10
|
+
export interface RemoteRegisteredSidetabRow {
|
|
11
|
+
readonly ptyId: string;
|
|
12
|
+
readonly kind: 'tui';
|
|
13
|
+
readonly name: string;
|
|
14
|
+
readonly alive: true;
|
|
15
|
+
readonly registered: true;
|
|
16
|
+
readonly lastActivityAt?: number;
|
|
17
|
+
readonly status?: string;
|
|
18
|
+
readonly host: string;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export interface RemoteSidetabHostResult {
|
|
22
|
+
readonly host: string;
|
|
23
|
+
readonly rows: readonly SidetabRow[];
|
|
24
|
+
readonly error?: string;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export function configuredRemoteSidetabHosts(): string[] {
|
|
28
|
+
const config = getUserConfig() as { harness?: { podPool?: string } };
|
|
29
|
+
const spec = config.harness?.podPool?.trim();
|
|
30
|
+
if (!spec) return [];
|
|
31
|
+
return [...new Set(parsePodPool(spec).map((member) => member.sshHost ?? member.context))];
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export async function fetchRegisteredRemoteSidetabRows(
|
|
35
|
+
hosts: readonly string[],
|
|
36
|
+
run: (host: string, command: string) => Promise<string> = async (host, command) =>
|
|
37
|
+
(await execFileAsync('ssh', ['-o', 'BatchMode=yes', '-o', 'ConnectTimeout=3', '-o', 'ControlPath=none', '--', host, command], { timeout: 7_000, maxBuffer: 1024 * 1024 })).stdout,
|
|
38
|
+
): Promise<RemoteSidetabHostResult[]> {
|
|
39
|
+
return Promise.all(hosts.map(async (host): Promise<RemoteSidetabHostResult> => {
|
|
40
|
+
try {
|
|
41
|
+
const parsed: unknown = JSON.parse(await run(host, 'eln pty sidetab list --json'));
|
|
42
|
+
if (!Array.isArray(parsed)) throw new Error('expected JSON array');
|
|
43
|
+
const rows = parsed.map((value): SidetabRow => {
|
|
44
|
+
if (!value || typeof value !== 'object') throw new Error('malformed registered row');
|
|
45
|
+
const entry = value as Partial<RemoteRegisteredSidetabRow>;
|
|
46
|
+
if (typeof entry.ptyId !== 'string' || !entry.ptyId || entry.kind !== 'tui'
|
|
47
|
+
|| entry.registered !== true || entry.alive !== true || typeof entry.name !== 'string') {
|
|
48
|
+
throw new Error('malformed or ineligible registered row');
|
|
49
|
+
}
|
|
50
|
+
const badge = entry.status === 'busy' ? 'busy' : entry.status === 'idle' ? 'idle' : entry.status === 'stale' ? 'stale' : 'unknown';
|
|
51
|
+
return {
|
|
52
|
+
id: `remote:${host}:${entry.ptyId}`,
|
|
53
|
+
ptyId: entry.ptyId,
|
|
54
|
+
remoteHost: host,
|
|
55
|
+
host,
|
|
56
|
+
label: `${host}:${entry.name} · ${entry.status ?? 'unknown'} · ${entry.lastActivityAt ? new Date(entry.lastActivityAt).toISOString() : '활동 시각 미상'}`,
|
|
57
|
+
kind: 'tui',
|
|
58
|
+
badge,
|
|
59
|
+
status: entry.status ?? 'unknown',
|
|
60
|
+
...(entry.lastActivityAt === undefined ? {} : { lastActivityAt: entry.lastActivityAt }),
|
|
61
|
+
};
|
|
62
|
+
});
|
|
63
|
+
return { host, rows };
|
|
64
|
+
} catch (error) {
|
|
65
|
+
const reason = error instanceof Error ? error.message : String(error);
|
|
66
|
+
debug.log('sidetab.remote', 'host-unreachable', { host, reason });
|
|
67
|
+
return { host, rows: [], error: reason };
|
|
68
|
+
}
|
|
69
|
+
}));
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function markRemoteHostUnavailable(rows: readonly SidetabRow[], host: string, reason: string): SidetabRow[] {
|
|
73
|
+
return rows.map((row) => row.remoteHost === host
|
|
74
|
+
? { ...row, badge: 'stale', label: `${row.label.replace(/ · 측정 불가.*$/, '')} · 측정 불가`, status: `측정 불가 · ${reason}` }
|
|
75
|
+
: row);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
export async function runRemoteElnPty(host: string, args: readonly string[]): Promise<string> {
|
|
80
|
+
const command = ['eln', ...args].map(quoteShell).join(' ');
|
|
81
|
+
const { stdout } = await execFileAsync('ssh', [
|
|
82
|
+
'-o', 'BatchMode=yes', '-o', 'ConnectTimeout=3', '-o', 'ControlPath=none', '--', host, command,
|
|
83
|
+
], { timeout: 7_000, maxBuffer: 1024 * 1024 });
|
|
84
|
+
return stdout;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function quoteShell(value: string): string {
|
|
88
|
+
return "'" + value.replaceAll("'", "'\\''") + "'";
|
|
89
|
+
}
|
|
@@ -213,6 +213,8 @@ export class DashboardSession {
|
|
|
213
213
|
...(opts.abortPollMs !== undefined ? { abortPollMs: opts.abortPollMs } : {}),
|
|
214
214
|
// TUI-TOKEN-GUARD-WIRE — the host history write-back for the request-size cap.
|
|
215
215
|
...(opts.compactPersistedHistory ? { compactPersistedHistory: opts.compactPersistedHistory } : {}),
|
|
216
|
+
...(opts.persistCompactedHistory ? { persistCompactedHistory: opts.persistCompactedHistory } : {}),
|
|
217
|
+
...(opts.requestSizeRunCompactPipeline ? { requestSizeRunCompactPipeline: opts.requestSizeRunCompactPipeline } : {}),
|
|
216
218
|
...(opts.requestSizeMaxChars !== undefined ? { requestSizeMaxChars: opts.requestSizeMaxChars } : {}),
|
|
217
219
|
});
|
|
218
220
|
|
package/src/user-config.ts
CHANGED
|
@@ -3975,7 +3975,7 @@ export interface UserConfig {
|
|
|
3975
3975
|
followUp?: 'shadow' | 'live';
|
|
3976
3976
|
};
|
|
3977
3977
|
/** ☸️ Pod 실행 칸 — `pool` = 기존 기본 풀(`컨텍스트[@ssh호스트][:상한][#k3d-레지스트리:포트]` 쉼표 · 앞이 우선). harness 실행은 인자·ELANOUS_POD_POOL·harness.podPool 다음으로 읽는다. */
|
|
3978
|
-
pod?: { pool?: string; /** 호스트 Git 미러 디렉터리 — Pod Job 에 읽기 전용으로 마운트한다. */ hostMirror?: string; /** 원격 그라운딩 엔드포인트(호스트 nexus · tailnet 주소) — Pod 가 토큰으로 «질의→인용»만 묻는다(P13). */ groundingUrl?: string; /** 읽기 전용 Pod lease 권장에 쓰는 계정별 동시 수. */ lease?: { perAccount?: number }; /** 실측 권고를 Pod 발사 기본값으로 쓸지 (기본 off). */ memory?: { adviseDefaults?: boolean }; /** 명령 Job 자식 로그(child.log) 상한 바이트. 양의 정수만. 넘으면 끝부분 우선. */ childLogMaxBytes?: number; /** warm Pod 재사용 실전 손잡이(소비자별 · 기본 off · 문자 그대로 true 만). 판정 = pod-warm-switch.ts `decideWarmReuse` — 증거가 모자라면 flag 가 켜져도 off. */ warmReuse?: { gateRecheck?: boolean; land?: boolean; ta?: boolean; /** 연속 일치 표본 하한(양의 정수 · 기본 3). */ minMatchSamples?: number } };
|
|
3978
|
+
pod?: { pool?: string; /** Host-local private warm provider config path. Env ELANOUS_WARM_POD_PROVIDER_CONFIG overrides this; absent path defaults to warm-pod-provider.json beside config.json. */ warmProviderConfig?: string; /** 호스트 Git 미러 디렉터리 — Pod Job 에 읽기 전용으로 마운트한다. */ hostMirror?: string; /** 원격 그라운딩 엔드포인트(호스트 nexus · tailnet 주소) — Pod 가 토큰으로 «질의→인용»만 묻는다(P13). */ groundingUrl?: string; /** 읽기 전용 Pod lease 권장에 쓰는 계정별 동시 수. */ lease?: { perAccount?: number }; /** 실측 권고를 Pod 발사 기본값으로 쓸지 (기본 off). */ memory?: { adviseDefaults?: boolean }; /** 명령 Job 자식 로그(child.log) 상한 바이트. 양의 정수만. 넘으면 끝부분 우선. */ childLogMaxBytes?: number; /** warm Pod 재사용 실전 손잡이(소비자별 · 기본 off · 문자 그대로 true 만). 판정 = pod-warm-switch.ts `decideWarmReuse` — 증거가 모자라면 flag 가 켜져도 off. */ warmReuse?: { gateRecheck?: boolean; land?: boolean; ta?: boolean; /** 연속 일치 표본 하한(양의 정수 · 기본 3). */ minMatchSamples?: number } };
|
|
3979
3979
|
skillRouter: SkillRouterConfig;
|
|
3980
3980
|
llm: LLMConfig;
|
|
3981
3981
|
skills: SkillsConfig;
|
|
@@ -5193,6 +5193,8 @@ export function buildUserConfig(path: string = defaultPath()): UserConfig {
|
|
|
5193
5193
|
...(Object.keys(seatBudgets).length ? { org: { budget: seatBudgets } } : {}),
|
|
5194
5194
|
pod: {
|
|
5195
5195
|
...(typeof legacyPod.pool === 'string' && legacyPod.pool.trim() ? { pool: legacyPod.pool.trim() } : {}),
|
|
5196
|
+
...(typeof legacyPod.warmProviderConfig === 'string' && legacyPod.warmProviderConfig.trim()
|
|
5197
|
+
? { warmProviderConfig: legacyPod.warmProviderConfig.trim() } : {}),
|
|
5196
5198
|
...(typeof legacyPod.hostMirror === 'string' && legacyPod.hostMirror.trim() ? { hostMirror: legacyPod.hostMirror.trim() } : {}),
|
|
5197
5199
|
...(typeof legacyPod.childLogMaxBytes === 'number' && Number.isSafeInteger(legacyPod.childLogMaxBytes) && legacyPod.childLogMaxBytes > 0 ? { childLogMaxBytes: legacyPod.childLogMaxBytes } : {}),
|
|
5198
5200
|
...(typeof legacyPod.groundingUrl === 'string' ? { groundingUrl: legacyPod.groundingUrl } : {}),
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import type { LLMMessage, streamLLM as StreamLLM } from '../llm.js';
|
|
2
|
+
import { executeGoalAuthorReviewerPrecheck, runGoalAuthorReviewerPrecheck } from '../self-implement/goal-author.js';
|
|
3
|
+
import { getUserConfig } from '../user-config.js';
|
|
4
|
+
import { debug } from '../debug/log.js';
|
|
5
|
+
|
|
6
|
+
export type AuthorReviewerPrecheckVariant = 'applied' | 'rejected-unprovable';
|
|
7
|
+
export interface AuthorReviewerPrecheckDeviceResult {
|
|
8
|
+
status: 'skipped' | 'completed' | 'rejected-soft' | 'failed-soft';
|
|
9
|
+
originalDocument: string;
|
|
10
|
+
revisedDocument: string;
|
|
11
|
+
appliedFixes: string[];
|
|
12
|
+
unappliedItems: string[];
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
const ORIGINAL_ASK = 'The result has a measurable criterion and an observable source.';
|
|
16
|
+
const UNSUPPORTED_FIX = 'Add an unsupported requirement absent from the original ask.';
|
|
17
|
+
|
|
18
|
+
export function reviewerPrecheckFixtureDocument(): string {
|
|
19
|
+
return [
|
|
20
|
+
'Reviewable goal',
|
|
21
|
+
'- GoalId: 1234567890abcdef',
|
|
22
|
+
'- RootIntent: preserve measurable authoring',
|
|
23
|
+
'- GoalType: implement',
|
|
24
|
+
'', '## PROBLEM', '- The current goal needs clearer acceptance.',
|
|
25
|
+
'', '## WHAT TO BUILD', '- Make the goal measurable.',
|
|
26
|
+
'Original ask (verbatim, unmodified):', '```text', '대상 경로: src/self-implement/goal-author.ts', ORIGINAL_ASK, '```',
|
|
27
|
+
'', '## ACCEPTANCE CRITERIA', '- The result has a measurable criterion.',
|
|
28
|
+
'', '## REQUIRED EVIDENCE', '- [requested] focused test output',
|
|
29
|
+
'', '## TRACED PATHS', '- src/self-implement/goal-author.ts — author entrypoint',
|
|
30
|
+
'', '## SCOPE BOUNDARY', '- 대상 경로: src/self-implement/goal-author.ts',
|
|
31
|
+
'', '## 답하지 못하는 것', '- No unresolved questions.',
|
|
32
|
+
'', '## 불변식', '- The original ask remains verbatim.',
|
|
33
|
+
'', '## 판정 신호', '- Condition: the authoring result is reviewed', '- Observation: revised acceptance is present', '- Expected result: the criterion is measurable.',
|
|
34
|
+
].join('\n');
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
function fakeLlmResponse(document: string, variant: AuthorReviewerPrecheckVariant): string {
|
|
38
|
+
const sentence = variant === 'applied' ? ORIGINAL_ASK : UNSUPPORTED_FIX;
|
|
39
|
+
const originalText = '- The result has a measurable criterion.';
|
|
40
|
+
const revisedText = `${originalText}\n- ${sentence}`;
|
|
41
|
+
return JSON.stringify({
|
|
42
|
+
suggestions: [],
|
|
43
|
+
fixes: [sentence],
|
|
44
|
+
fixEvidence: [{ fix: sentence, originalText, revisedText }],
|
|
45
|
+
remainingNeedsHuman: [],
|
|
46
|
+
revisedDocument: document.replace(originalText, revisedText),
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/** Uses the real reviewer parser/validator and its real event writer, with the only model boundary faked. */
|
|
51
|
+
export async function runAuthorReviewerPrecheckDevice(
|
|
52
|
+
runId: string,
|
|
53
|
+
variant: AuthorReviewerPrecheckVariant,
|
|
54
|
+
): Promise<AuthorReviewerPrecheckDeviceResult> {
|
|
55
|
+
const document = reviewerPrecheckFixtureDocument();
|
|
56
|
+
const config = getUserConfig();
|
|
57
|
+
const stream: typeof StreamLLM = async (messages: LLMMessage[], _onChunk, options = {}) => {
|
|
58
|
+
if (messages.length !== 1 || !String(messages[0]?.content).includes(document)) {
|
|
59
|
+
throw new Error('fake reviewer received an unexpected request');
|
|
60
|
+
}
|
|
61
|
+
options.onResolvedProvider?.('openai-codex', 'gpt-6.1-terra');
|
|
62
|
+
return fakeLlmResponse(document, variant);
|
|
63
|
+
};
|
|
64
|
+
const result = await executeGoalAuthorReviewerPrecheck(
|
|
65
|
+
true,
|
|
66
|
+
document,
|
|
67
|
+
runId,
|
|
68
|
+
(candidate) => runGoalAuthorReviewerPrecheck(candidate, { config, stream }),
|
|
69
|
+
(event, data) => debug.log('author.reviewer-precheck', event, { ...data, runId }),
|
|
70
|
+
);
|
|
71
|
+
return {
|
|
72
|
+
status: result.status,
|
|
73
|
+
originalDocument: document,
|
|
74
|
+
revisedDocument: result.result?.revisedDocument ?? document,
|
|
75
|
+
appliedFixes: result.result?.appliedFixes ?? [],
|
|
76
|
+
unappliedItems: result.result?.unappliedItems ?? [],
|
|
77
|
+
};
|
|
78
|
+
}
|