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
|
@@ -0,0 +1,253 @@
|
|
|
1
|
+
import { appendFileSync, existsSync, mkdirSync, readFileSync } from 'node:fs';
|
|
2
|
+
import { dirname, join } from 'node:path';
|
|
3
|
+
import { elanousStateRoot } from '../autopilot/state-paths.js';
|
|
4
|
+
import { refuseProductionLedgerWriteInTest } from '../harness/ledger-write-guard.js';
|
|
5
|
+
import { acquireLockSync } from '../storage/file-lock.js';
|
|
6
|
+
|
|
7
|
+
export const RESOURCE_LANES = ['gate', 'train', 'ta', 'hand', 'warm', 'bench', 'unknown'] as const;
|
|
8
|
+
export type ResourceLane = typeof RESOURCE_LANES[number];
|
|
9
|
+
|
|
10
|
+
export interface ResourceLease {
|
|
11
|
+
id: string;
|
|
12
|
+
fp: string;
|
|
13
|
+
host: string;
|
|
14
|
+
lane: ResourceLane;
|
|
15
|
+
resources: { cpu?: number; memoryBytes?: number; shards?: number; pods?: number };
|
|
16
|
+
mission: { cell?: string; goalId?: string; pr?: number };
|
|
17
|
+
ttlMs: number;
|
|
18
|
+
heartbeatAt: string;
|
|
19
|
+
startedAt: string;
|
|
20
|
+
endedAt?: string;
|
|
21
|
+
endReason?: string;
|
|
22
|
+
stoppedBy?: string;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export type ResourceLedgerEvent =
|
|
26
|
+
| { event: 'lease-created'; at: string; lease: ResourceLease }
|
|
27
|
+
| { event: 'lease-heartbeat'; at: string; id: string; heartbeatAt: string; resources?: ResourceLease['resources'] }
|
|
28
|
+
| { event: 'lease-ended'; at: string; id: string; reason: string; stoppedBy: string }
|
|
29
|
+
| { event: 'lease-reaped'; at: string; id: string; expectedHeartbeatAt: string; expectedExpiresAt: string; observedAt: string; reason: 'expired-and-absent' };
|
|
30
|
+
|
|
31
|
+
export interface ResourceMeasurement {
|
|
32
|
+
host: string;
|
|
33
|
+
observedAt: string;
|
|
34
|
+
pods: Array<{ id: string; fp?: string; lane?: string; mission?: string; nodeName?: string; host?: string; scopeUnknown?: boolean; managed?: boolean; phase: string; cpu?: number; memoryBytes?: number; memoryUnknown?: boolean }>;
|
|
35
|
+
processes: Array<{ id: string; fp?: string; lane?: string; mission?: string; command: string }>;
|
|
36
|
+
errors: string[];
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export interface ResourceFinding {
|
|
40
|
+
kind: 'stale' | 'reaped-candidate' | 'orphan' | 'drift' | 'measurement-unavailable';
|
|
41
|
+
host: string;
|
|
42
|
+
id: string;
|
|
43
|
+
fp?: string;
|
|
44
|
+
detail: string;
|
|
45
|
+
action: 'report-only';
|
|
46
|
+
leaseHeartbeatAt?: string;
|
|
47
|
+
leaseExpiresAtMs?: number;
|
|
48
|
+
observedAtMs?: number;
|
|
49
|
+
resourcePresent?: boolean;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export interface ResourceMatrixRow {
|
|
53
|
+
host: string;
|
|
54
|
+
lane: ResourceLane;
|
|
55
|
+
capacity: number | null;
|
|
56
|
+
leases: number;
|
|
57
|
+
leasedCpu: number;
|
|
58
|
+
leasedMemoryBytes: number;
|
|
59
|
+
observedPodCpuRequests: number | null;
|
|
60
|
+
observedPodMemoryRequestsBytes: number | null;
|
|
61
|
+
deltaCpuRequests: number | null;
|
|
62
|
+
deltaMemoryRequestsBytes: number | null;
|
|
63
|
+
measuredPods: number | null;
|
|
64
|
+
unknownPods: number | null;
|
|
65
|
+
measuredProcesses: number | null;
|
|
66
|
+
unknownProcesses: number | null;
|
|
67
|
+
deltaLeasesVsPods: number | null;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
const LEDGER_FILE = 'resource-ledger/events.jsonl';
|
|
71
|
+
const validHost = (host: string) => /^[A-Za-z0-9][A-Za-z0-9._@-]{0,127}$/.test(host);
|
|
72
|
+
const validFp = (fp: string) => /^fp_[A-Za-z0-9_-]{6,128}$/.test(fp);
|
|
73
|
+
const positive = (value: unknown) => typeof value === 'number' && Number.isFinite(value) && value > 0;
|
|
74
|
+
|
|
75
|
+
export function resourceLedgerPath(stateDir = elanousStateRoot()): string {
|
|
76
|
+
return join(stateDir, LEDGER_FILE);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function readResourceLedger(path = resourceLedgerPath()): ResourceLedgerEvent[] {
|
|
80
|
+
if (!existsSync(path)) return [];
|
|
81
|
+
return parseResourceLedgerEvents(readFileSync(path, 'utf8'));
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export function parseResourceLedgerEvents(text: string): ResourceLedgerEvent[] {
|
|
85
|
+
return text.split(/\r?\n/).filter(Boolean).map((line, index) => {
|
|
86
|
+
let value: unknown;
|
|
87
|
+
try { value = JSON.parse(line); } catch { throw new Error(`resource ledger malformed at line ${index + 1}`); }
|
|
88
|
+
if (!value || typeof value !== 'object' || !['lease-created', 'lease-heartbeat', 'lease-ended', 'lease-reaped'].includes(String((value as { event?: unknown }).event))) {
|
|
89
|
+
throw new Error(`resource ledger invalid event at line ${index + 1}`);
|
|
90
|
+
}
|
|
91
|
+
return value as ResourceLedgerEvent;
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export function activeResourceLeases(events: readonly ResourceLedgerEvent[]): ResourceLease[] {
|
|
96
|
+
const leases = new Map<string, ResourceLease>();
|
|
97
|
+
for (const event of events) {
|
|
98
|
+
if (event.event === 'lease-created') leases.set(event.lease.id, event.lease);
|
|
99
|
+
else if (event.event === 'lease-heartbeat') {
|
|
100
|
+
const current = leases.get(event.id);
|
|
101
|
+
if (current && !current.endedAt) leases.set(event.id, { ...current, heartbeatAt: event.heartbeatAt,
|
|
102
|
+
...(event.resources ? { resources: event.resources } : {}) });
|
|
103
|
+
} else {
|
|
104
|
+
const current = leases.get(event.id);
|
|
105
|
+
if (current && !current.endedAt) leases.set(event.id, { ...current, endedAt: event.at,
|
|
106
|
+
endReason: event.event === 'lease-reaped' ? event.reason : event.reason,
|
|
107
|
+
stoppedBy: event.event === 'lease-reaped' ? 'guardian-reconcile' : event.stoppedBy });
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
return [...leases.values()].filter(lease => !lease.endedAt);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
function withLedgerLock(path: string, action: () => void): void {
|
|
114
|
+
const dir = dirname(path);
|
|
115
|
+
if (refuseProductionLedgerWriteInTest(dir, 'resource-ledger')) return;
|
|
116
|
+
mkdirSync(dir, { recursive: true });
|
|
117
|
+
const release = acquireLockSync(`${path}.lock`, { staleMs: 30_000, breakDeadHolder: true });
|
|
118
|
+
try { action(); } finally { release(); }
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
function appendEvent(event: ResourceLedgerEvent, path: string): void {
|
|
122
|
+
appendFileSync(path, `${JSON.stringify(event)}\n`, { encoding: 'utf8', flag: 'a' });
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
export function beginResourceLease(input: Omit<ResourceLease, 'id' | 'startedAt' | 'heartbeatAt' | 'endedAt' | 'endReason' | 'stoppedBy'> & { now?: Date }, path?: string): ResourceLease {
|
|
126
|
+
if (!validFp(input.fp) || !validHost(input.host) || !RESOURCE_LANES.includes(input.lane) || !positive(input.ttlMs)) throw new Error('invalid resource lease identity or ttl');
|
|
127
|
+
if (Object.values(input.resources).some(value => value !== undefined && (!Number.isFinite(value) || value < 0))) throw new Error('invalid resource lease quantity');
|
|
128
|
+
if (input.mission.pr !== undefined && (!Number.isSafeInteger(input.mission.pr) || input.mission.pr < 1)) throw new Error('invalid resource lease PR');
|
|
129
|
+
const now = input.now ?? new Date();
|
|
130
|
+
const lease: ResourceLease = { id: input.fp, fp: input.fp, host: input.host, lane: input.lane,
|
|
131
|
+
resources: input.resources, mission: input.mission, ttlMs: input.ttlMs,
|
|
132
|
+
heartbeatAt: now.toISOString(), startedAt: now.toISOString() };
|
|
133
|
+
withLedgerLock(path ?? resourceLedgerPath(), () => {
|
|
134
|
+
const target = path ?? resourceLedgerPath();
|
|
135
|
+
const prior = activeResourceLeases(readResourceLedger(target)).find(item => item.id === lease.id);
|
|
136
|
+
if (prior) throw new Error(`resource lease already active: ${lease.id}`);
|
|
137
|
+
appendEvent({ event: 'lease-created', at: now.toISOString(), lease }, target);
|
|
138
|
+
});
|
|
139
|
+
return lease;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
export function heartbeatResourceLease(id: string, resources?: ResourceLease['resources'], now = new Date(), path?: string): void {
|
|
143
|
+
if (resources && Object.values(resources).some(value => value !== undefined && (!Number.isFinite(value) || value < 0))) {
|
|
144
|
+
throw new Error('invalid resource lease quantity');
|
|
145
|
+
}
|
|
146
|
+
const target = path ?? resourceLedgerPath();
|
|
147
|
+
withLedgerLock(target, () => {
|
|
148
|
+
if (!activeResourceLeases(readResourceLedger(target)).some(lease => lease.id === id)) throw new Error(`active resource lease not found: ${id}`);
|
|
149
|
+
appendEvent({ event: 'lease-heartbeat', at: now.toISOString(), id, heartbeatAt: now.toISOString(), ...(resources ? { resources } : {}) }, target);
|
|
150
|
+
});
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
export function endResourceLease(id: string, reason: string, stoppedBy: string, now = new Date(), path?: string): void {
|
|
154
|
+
if (!reason.trim() || !stoppedBy.trim()) throw new Error('resource lease end requires reason and stoppedBy');
|
|
155
|
+
const target = path ?? resourceLedgerPath();
|
|
156
|
+
withLedgerLock(target, () => {
|
|
157
|
+
if (!activeResourceLeases(readResourceLedger(target)).some(lease => lease.id === id)) throw new Error(`active resource lease not found: ${id}`);
|
|
158
|
+
appendEvent({ event: 'lease-ended', at: now.toISOString(), id, reason: reason.trim(), stoppedBy: stoppedBy.trim() }, target);
|
|
159
|
+
});
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
/** Append the final reaped event only if the observed lease version is still current under the ledger lock. */
|
|
163
|
+
export function reapResourceLeaseIfCurrent(input: { id: string; expectedHeartbeatAt: string; expectedExpiresAtMs: number; observedAtMs: number }, path?: string): boolean {
|
|
164
|
+
if (!input.id.trim() || !Number.isFinite(Date.parse(input.expectedHeartbeatAt))
|
|
165
|
+
|| !Number.isSafeInteger(input.expectedExpiresAtMs) || !Number.isSafeInteger(input.observedAtMs)
|
|
166
|
+
|| input.observedAtMs < input.expectedExpiresAtMs) return false;
|
|
167
|
+
const target = path ?? resourceLedgerPath();
|
|
168
|
+
let reaped = false;
|
|
169
|
+
withLedgerLock(target, () => {
|
|
170
|
+
const current = activeResourceLeases(readResourceLedger(target)).find(lease => lease.id === input.id);
|
|
171
|
+
if (!current || current.heartbeatAt !== input.expectedHeartbeatAt
|
|
172
|
+
|| Date.parse(current.heartbeatAt) + current.ttlMs !== input.expectedExpiresAtMs
|
|
173
|
+
|| input.observedAtMs < Date.parse(current.heartbeatAt) + current.ttlMs) return;
|
|
174
|
+
const at = new Date(input.observedAtMs).toISOString();
|
|
175
|
+
appendEvent({ event: 'lease-reaped', at, id: current.id, expectedHeartbeatAt: input.expectedHeartbeatAt,
|
|
176
|
+
expectedExpiresAt: new Date(input.expectedExpiresAtMs).toISOString(), observedAt: at, reason: 'expired-and-absent' }, target);
|
|
177
|
+
reaped = true;
|
|
178
|
+
});
|
|
179
|
+
return reaped;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
export function reconcileResourceLeases(input: { leases: readonly ResourceLease[]; measurements: readonly ResourceMeasurement[]; now?: Date }): ResourceFinding[] {
|
|
183
|
+
const now = (input.now ?? new Date()).getTime();
|
|
184
|
+
const findings: ResourceFinding[] = [];
|
|
185
|
+
const measurements = new Map(input.measurements.map(row => [row.host, row]));
|
|
186
|
+
const known = new Map(input.leases.map(lease => [lease.fp, lease]));
|
|
187
|
+
for (const lease of input.leases) {
|
|
188
|
+
const measured = measurements.get(lease.host);
|
|
189
|
+
const lastBeat = Date.parse(lease.heartbeatAt);
|
|
190
|
+
const stale = !Number.isFinite(lastBeat) || now - lastBeat > lease.ttlMs;
|
|
191
|
+
if (stale) findings.push({ kind: 'stale', host: lease.host, id: lease.id, fp: lease.fp,
|
|
192
|
+
leaseHeartbeatAt: lease.heartbeatAt, leaseExpiresAtMs: Number.isFinite(lastBeat) ? lastBeat + lease.ttlMs : undefined,
|
|
193
|
+
observedAtMs: now,
|
|
194
|
+
detail: `heartbeat age ${Number.isFinite(lastBeat) ? Math.max(0, now - lastBeat) : 'unknown'}ms exceeds ttl ${lease.ttlMs}ms`, action: 'report-only' });
|
|
195
|
+
if (!measured) continue;
|
|
196
|
+
const observed = [...measured.pods, ...measured.processes].filter(item => item.fp === lease.fp);
|
|
197
|
+
if (stale && measured.errors.length === 0 && observed.length === 0) findings.push({ kind: 'reaped-candidate', host: lease.host, id: lease.id, fp: lease.fp,
|
|
198
|
+
leaseHeartbeatAt: lease.heartbeatAt, leaseExpiresAtMs: Number.isFinite(lastBeat) ? lastBeat + lease.ttlMs : undefined,
|
|
199
|
+
observedAtMs: now, resourcePresent: false,
|
|
200
|
+
detail: 'expired lease absent from measured Pod/process inventory; no deletion performed', action: 'report-only' });
|
|
201
|
+
for (const item of observed) {
|
|
202
|
+
const pod = !item.id.startsWith('pid:');
|
|
203
|
+
const expectedMission = lease.mission.cell ?? lease.mission.goalId;
|
|
204
|
+
const laneDrift = (pod || item.lane !== undefined) && item.lane !== lease.lane;
|
|
205
|
+
const missionDrift = expectedMission !== undefined && (pod || item.mission !== undefined) && item.mission !== expectedMission;
|
|
206
|
+
if (!('scopeUnknown' in item && item.scopeUnknown) && (!('host' in item) || item.host !== 'unknown')
|
|
207
|
+
&& (lease.host !== measured.host || laneDrift || missionDrift)) {
|
|
208
|
+
findings.push({ kind: 'drift', host: lease.host, id: item.id, fp: lease.fp,
|
|
209
|
+
detail: `lease=${lease.host}/${lease.lane}/${expectedMission ?? 'unknown'} observed=${measured.host}/${item.lane ?? 'unknown'}/${item.mission ?? 'unknown'}`, action: 'report-only' });
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
const measuredHosts = new Set(input.measurements.map(row => row.host));
|
|
214
|
+
for (const host of new Set(input.leases.filter(lease => !measuredHosts.has(lease.host)).map(lease => lease.host))) findings.push({
|
|
215
|
+
kind: 'measurement-unavailable', host, id: host, detail: 'host measurement unavailable', action: 'report-only' });
|
|
216
|
+
for (const measurement of input.measurements) {
|
|
217
|
+
if (measurement.errors.length) findings.push({ kind: 'measurement-unavailable', host: measurement.host, id: measurement.host,
|
|
218
|
+
detail: measurement.errors.join('; '), action: 'report-only' });
|
|
219
|
+
for (const item of [...measurement.pods.filter(pod => pod.managed), ...measurement.processes.filter(process => process.fp)]) {
|
|
220
|
+
const owner = item.fp ? known.get(item.fp) : undefined;
|
|
221
|
+
if (owner && owner.host !== measurement.host) findings.push({ kind: 'drift', host: measurement.host, id: item.id, fp: owner.fp,
|
|
222
|
+
detail: `lease host=${owner.host} observed host=${measurement.host}`, action: 'report-only' });
|
|
223
|
+
else if (!item.fp || !owner) findings.push({ kind: 'orphan', host: measurement.host, id: item.id,
|
|
224
|
+
...(item.fp ? { fp: item.fp } : {}), detail: item.fp ? 'observed fingerprint has no active lease' : 'observed Pod/process has no fingerprint', action: 'report-only' });
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
return findings;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
export function resourceMatrix(input: { hosts: readonly { host: string; capacity?: Partial<Record<ResourceLane, number>> }[]; leases: readonly ResourceLease[]; measurements: readonly ResourceMeasurement[] }): ResourceMatrixRow[] {
|
|
231
|
+
const measured = new Map(input.measurements.map(row => [row.host, row]));
|
|
232
|
+
return input.hosts.flatMap(({ host, capacity }) => RESOURCE_LANES.map(lane => {
|
|
233
|
+
const leases = input.leases.filter(lease => lease.host === host && lease.lane === lane);
|
|
234
|
+
const measurement = measured.get(host);
|
|
235
|
+
const pods = measurement && !measurement.errors.length ? measurement.pods.filter(pod => pod.managed && pod.host !== 'unknown' && pod.lane === lane) : null;
|
|
236
|
+
const podCpu = pods ? pods.reduce((sum, pod) => sum + (pod.cpu ?? 0), 0) : null;
|
|
237
|
+
const podMemory = pods ? pods.reduce((sum, pod) => sum + (pod.memoryBytes ?? 0), 0) : null;
|
|
238
|
+
const leasedCpu = leases.reduce((sum, lease) => sum + (lease.resources.cpu ?? 0), 0);
|
|
239
|
+
const leasedMemoryBytes = leases.reduce((sum, lease) => sum + (lease.resources.memoryBytes ?? 0), 0);
|
|
240
|
+
return { host, lane, capacity: capacity?.[lane] ?? null, leases: leases.length,
|
|
241
|
+
leasedCpu, leasedMemoryBytes,
|
|
242
|
+
observedPodCpuRequests: podCpu, observedPodMemoryRequestsBytes: podMemory,
|
|
243
|
+
deltaCpuRequests: podCpu === null ? null : leasedCpu - podCpu,
|
|
244
|
+
deltaMemoryRequestsBytes: podMemory === null ? null : leasedMemoryBytes - podMemory,
|
|
245
|
+
measuredPods: pods?.length ?? null,
|
|
246
|
+
unknownPods: measurement ? measurement.pods.filter(pod => pod.scopeUnknown || pod.host === 'unknown').length : null,
|
|
247
|
+
measuredProcesses: measurement && !measurement.errors.length
|
|
248
|
+
? measurement.processes.filter(process => process.fp && leases.some(lease => lease.fp === process.fp)).length : null,
|
|
249
|
+
unknownProcesses: measurement && !measurement.errors.some(error => error.startsWith('ps:'))
|
|
250
|
+
? measurement.processes.filter(process => !process.fp).length : null,
|
|
251
|
+
deltaLeasesVsPods: pods ? leases.length - pods.length : null };
|
|
252
|
+
}));
|
|
253
|
+
}
|
|
@@ -428,7 +428,8 @@ function decisionCardMaterial(input: {
|
|
|
428
428
|
`무엇: ${input.what}`, `지금까지: ${input.soFar}`, `지금 상태 재측: ${input.current}`,
|
|
429
429
|
...input.options.map((option) => `선택지 ${option.key} (${option.label}) 결과: ${option.consequence}`),
|
|
430
430
|
'skipped' in input.recommendation ? `권고 비움: ${input.recommendation.reason}` : `권고: ${input.recommendation.option} — ${input.recommendation.why}`,
|
|
431
|
-
`확신: ${input.confidence}`, `그냥 두면: ${input.ifUntouched}`,
|
|
431
|
+
`확신: ${input.confidence}`, `그냥 두면: ${input.ifUntouched}`,
|
|
432
|
+
`근거: ${input.evidence}`, `무엇이 바뀌나: ${input.answer}`, `기본값 시 결과: ${input.ifUntouched}`,
|
|
432
433
|
`Q: ${input.question}`, `A: ${input.answer}`,
|
|
433
434
|
].join('\n'),
|
|
434
435
|
};
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
|
|
17
17
|
import { execFileSync } from 'node:child_process';
|
|
18
18
|
import { createHash, randomUUID } from 'node:crypto';
|
|
19
|
+
import { hostname } from 'node:os';
|
|
19
20
|
import { benchArmBranchForBase } from '../bench/bench.js';
|
|
20
21
|
import { readFileSync } from 'node:fs';
|
|
21
22
|
import { dispatchTask, type DispatchTaskDeps } from '../execution-loop/dispatch-task.js';
|
|
@@ -46,7 +47,7 @@ import { getUserConfig, resolveRoleLlm, type RoleLlmSource } from '../user-confi
|
|
|
46
47
|
import { applyGlmCredentialFallback, GlmChildCredentialError } from './glm-credential-guard.js';
|
|
47
48
|
import { reviewReasoningEffort } from '../model-tier/review-effort.js';
|
|
48
49
|
import { getProvider, getProviderForConfig, inferProviderFromModel } from '../llm.js';
|
|
49
|
-
import {
|
|
50
|
+
import { noUsableReviewProviderError, planReviewProviderAttempts, defaultReviewFallbackModel, runReviewWithFallback, reviewFallbackModelsFromConfig, runSubscriptionReviewer, type SubscriptionReviewerDeps } from './review-provider-fallback.js';
|
|
50
51
|
import { loadLlmPolicy, resolveSubscriptionReviewer } from '../policy/llm-policy.js';
|
|
51
52
|
import type { DefaultSeamsOptions } from '../self-implement/seams.js';
|
|
52
53
|
import { harnessTargetOptions, resolveHarnessTarget, revalidateHarnessTarget, type HarnessTargetResolution } from '../self-implement/harness-target-options.js';
|
|
@@ -55,6 +56,8 @@ import { decideNonGitInit } from '../self-implement/non-git-consent.js';
|
|
|
55
56
|
import { createInterface } from 'node:readline/promises';
|
|
56
57
|
import type { ChildLlmSelection } from '../agent/run-context.js';
|
|
57
58
|
import type { SurfaceUx } from '../agent/surface-ux/types.js';
|
|
59
|
+
import { beginResourceLease, endResourceLease, heartbeatResourceLease } from '../resource-ledger/resource-ledger.js';
|
|
60
|
+
import { startLeaseHeartbeat } from '../resource-ledger/lease-automation.js';
|
|
58
61
|
|
|
59
62
|
/** parallel dispatch 실행 시 orchestrateSelfDev 에 넘길 런타임 서플라이(goals/concurrency 제외 — 그건 spec.parallel).
|
|
60
63
|
* spawn·checkpoint·onSnapshot·onEvent·resumeFrom·teardown 등 감독/영속 콜백. CLI seam 이 구성해 주입. */
|
|
@@ -1141,13 +1144,20 @@ export async function buildDefaultSelfImplementSeams(
|
|
|
1141
1144
|
const normalizedModel = isGlm53
|
|
1142
1145
|
? 'openrouter/z-ai/glm-5.3'
|
|
1143
1146
|
: configuredProvider === 'openrouter' && !model.startsWith('openrouter/') ? `openrouter/${model}` : model;
|
|
1144
|
-
const
|
|
1147
|
+
const inferredProvider = inferProviderFromModel(normalizedModel);
|
|
1148
|
+
// Pod review is Codex-only. Model-only `getProvider('gpt-6…')` preserves the
|
|
1149
|
+
// historical OpenAI Chat Completions route, so pin this model family to the
|
|
1150
|
+
// Codex subscription provider when constructing the Pod attempt.
|
|
1151
|
+
const routeProvider = normalizedModel === 'openrouter/z-ai/glm-5.3'
|
|
1152
|
+
? 'openrouter'
|
|
1153
|
+
: configuredProvider ?? (process.env.ELANOUS_SUBSTRATE === 'pod' && inferredProvider === 'openai-codex'
|
|
1154
|
+
? 'openai-codex' : undefined);
|
|
1145
1155
|
let provider: ReturnType<typeof getProvider> | undefined;
|
|
1146
1156
|
try {
|
|
1147
1157
|
if (routeProvider) {
|
|
1148
1158
|
const config = getUserConfig();
|
|
1149
1159
|
provider = getProviderForConfig({ ...config, llm: { ...config.llm, provider: routeProvider as typeof config.llm.provider } }, normalizedModel);
|
|
1150
|
-
} else if (
|
|
1160
|
+
} else if (inferredProvider) {
|
|
1151
1161
|
provider = getProvider(normalizedModel);
|
|
1152
1162
|
}
|
|
1153
1163
|
} catch {
|
|
@@ -1157,14 +1167,24 @@ export async function buildDefaultSelfImplementSeams(
|
|
|
1157
1167
|
};
|
|
1158
1168
|
const primaryProviderIsPinned = reviewRole.source === 'flag' || reviewRole.source === 'config-role'
|
|
1159
1169
|
|| reviewRole.source === 'environment';
|
|
1160
|
-
const configuredPrimaryProvider = primaryProviderIsPinned
|
|
1170
|
+
const configuredPrimaryProvider = primaryProviderIsPinned || process.env.ELANOUS_SUBSTRATE === 'pod'
|
|
1171
|
+
? reviewRole.provider : undefined;
|
|
1161
1172
|
const primaryReviewAttempt = reviewAttemptForModel(reviewModel, 'primary', configuredPrimaryProvider);
|
|
1162
|
-
const
|
|
1173
|
+
const reviewPlan = planReviewProviderAttempts(
|
|
1163
1174
|
primaryReviewAttempt,
|
|
1164
1175
|
[...reviewFallbackModels, defaultReviewFallbackModel(primaryReviewAttempt.provider?.name)]
|
|
1165
1176
|
.map((model) => reviewAttemptForModel(model, model)),
|
|
1166
|
-
|
|
1177
|
+
process.env.ELANOUS_SUBSTRATE === 'pod'
|
|
1178
|
+
? { skipUnavailableProviders: true, allowedProviderNames: ['openai-codex'] }
|
|
1179
|
+
: {},
|
|
1180
|
+
);
|
|
1181
|
+
const reviewAttempts = reviewPlan.attempts;
|
|
1167
1182
|
const defaultApiReview = async (prompt: string): Promise<string> => {
|
|
1183
|
+
if (reviewAttempts.length === 0) {
|
|
1184
|
+
const error = noUsableReviewProviderError(reviewPlan.skipped);
|
|
1185
|
+
try { debug.log('self-dev.review-fallback', 'no-usable-provider', { candidates: reviewPlan.skipped }); } catch { /* fail-soft */ }
|
|
1186
|
+
throw error;
|
|
1187
|
+
}
|
|
1168
1188
|
const r = await runReviewWithFallback(
|
|
1169
1189
|
reviewAttempts,
|
|
1170
1190
|
(attempt, observeResolvedProvider) => streamLLM([{ role: 'user', content: prompt }], () => {}, {
|
|
@@ -1177,6 +1197,22 @@ export async function buildDefaultSelfImplementSeams(
|
|
|
1177
1197
|
onResolvedProvider: (provider) => observeResolvedProvider(provider),
|
|
1178
1198
|
}),
|
|
1179
1199
|
(event, data) => { try { debug.log('self-dev.review-fallback', event, { ...data }); } catch { /* fail-soft */ } },
|
|
1200
|
+
{
|
|
1201
|
+
...(process.env.ELANOUS_SUBSTRATE === 'pod' ? { skipUnavailable: (attempt: (typeof reviewAttempts)[number]) => {
|
|
1202
|
+
if (!attempt.provider) return undefined;
|
|
1203
|
+
try {
|
|
1204
|
+
return attempt.provider.available() ? undefined : {
|
|
1205
|
+
label: attempt.label, model: attempt.model, provider: attempt.provider.name, why: 'no-credential' as const,
|
|
1206
|
+
};
|
|
1207
|
+
} catch {
|
|
1208
|
+
return {
|
|
1209
|
+
label: attempt.label, model: attempt.model, provider: attempt.provider.name, why: 'availability-check-failed' as const,
|
|
1210
|
+
};
|
|
1211
|
+
}
|
|
1212
|
+
} } : {}),
|
|
1213
|
+
preSkipped: reviewPlan.skipped,
|
|
1214
|
+
maxCalls: 2,
|
|
1215
|
+
},
|
|
1180
1216
|
);
|
|
1181
1217
|
return r.text;
|
|
1182
1218
|
};
|
|
@@ -1907,11 +1943,36 @@ export async function runDevPipeline(spec: DevPipelineSpec, deps: DevPipelineDep
|
|
|
1907
1943
|
emitted = true; // 시도는 한 번(성공·실패 무관) ⇒ 중복도 없고 원래 오류도 안 가린다
|
|
1908
1944
|
};
|
|
1909
1945
|
|
|
1946
|
+
const resourceFp = spec.runId ? `fp_${createHash('sha256').update(spec.runId).digest('hex').slice(0, 26)}` : undefined;
|
|
1947
|
+
const requestedLane = process.env.ELANOUS_RESOURCE_LANE;
|
|
1948
|
+
const resourceLane = requestedLane === 'gate' || requestedLane === 'train' || requestedLane === 'ta'
|
|
1949
|
+
|| requestedLane === 'warm' || requestedLane === 'bench' || requestedLane === 'hand' ? requestedLane : 'unknown';
|
|
1950
|
+
let resourceLeaseStarted = false;
|
|
1951
|
+
let cancelResourceHeartbeat: (() => void) | undefined;
|
|
1952
|
+
if (resourceFp) {
|
|
1953
|
+
try {
|
|
1954
|
+
const resourceHost = process.env.ELANOUS_RESOURCE_HOST || hostname();
|
|
1955
|
+
beginResourceLease({ fp: resourceFp, host: resourceHost, lane: resourceLane, resources: {}, mission: {}, ttlMs: 120_000 });
|
|
1956
|
+
resourceLeaseStarted = true;
|
|
1957
|
+
heartbeatResourceLease(resourceFp, undefined);
|
|
1958
|
+
try { appendRunLedgerEntry({ runId: spec.runId!, event: 'resource-lease', data: { fp: resourceFp, host: resourceHost, lane: resourceLane } }); }
|
|
1959
|
+
catch { /* resource linkage is observation and must not fail execution */ }
|
|
1960
|
+
cancelResourceHeartbeat = startLeaseHeartbeat({ leaseId: resourceFp, ttlMs: 120_000,
|
|
1961
|
+
heartbeat: id => heartbeatResourceLease(id, undefined),
|
|
1962
|
+
onError: (id, error) => { try { debug.log('resource-ledger', 'lease-heartbeat-failed', { fp: id, error: String(error) }, { level: 'warn' }); } catch { /* observation is fail-soft */ } },
|
|
1963
|
+
});
|
|
1964
|
+
} catch { /* resource observation must never prevent a run */ }
|
|
1965
|
+
}
|
|
1910
1966
|
try {
|
|
1911
1967
|
// ⛔ 조회도 `try` **안**이다 — 주입된 관측기가 던져도 행은 남아야 한다(무인 리뷰).
|
|
1912
1968
|
gitResidue = spec.gitResidueSnapshot?.observation ?? await (deps.observeGitResidue ?? observeGitResidue)(gitResiduePath);
|
|
1913
1969
|
return await runDevPipelineDispatch(spec, deps, seen, emitPlanRow);
|
|
1914
1970
|
} finally {
|
|
1971
|
+
cancelResourceHeartbeat?.();
|
|
1972
|
+
if (resourceLeaseStarted && resourceFp) {
|
|
1973
|
+
try { endResourceLease(resourceFp, 'runDevPipeline finished', process.env.ELANOUS_HARNESS_SEAT ?? 'unknown'); }
|
|
1974
|
+
catch { /* resource observation must never prevent a run */ }
|
|
1975
|
+
}
|
|
1915
1976
|
await emitPlanRow(); // 앞 단계가 던졌을 때만 실제로 찍힌다(단회 가드)
|
|
1916
1977
|
}
|
|
1917
1978
|
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
export interface RemoteParentRun {
|
|
2
|
+
dispatched: true;
|
|
3
|
+
exitCode: number;
|
|
4
|
+
host: string;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
export type ParentDispatchDecision =
|
|
8
|
+
| { mode: 'remote'; host: string; exitCode: number }
|
|
9
|
+
| { mode: 'blocked'; reason: string }
|
|
10
|
+
| { mode: 'local'; reason: string };
|
|
11
|
+
|
|
12
|
+
/** Goal-file paths and their contents belong to the caller's filesystem; only inline goals can cross hosts. */
|
|
13
|
+
export function orchestrateParentInputsShareable(input: { goalFileCount: number; hasResume: boolean; hasIsolatedInstance: boolean }): boolean {
|
|
14
|
+
return Number.isSafeInteger(input.goalFileCount) && input.goalFileCount === 0
|
|
15
|
+
&& !input.hasResume && !input.hasIsolatedInstance;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export async function dispatchOrchestrateParent(input: {
|
|
19
|
+
requested: boolean;
|
|
20
|
+
worker: boolean;
|
|
21
|
+
shareableInputs: boolean;
|
|
22
|
+
args: string[];
|
|
23
|
+
}, ports: {
|
|
24
|
+
runRemote: (args: string[]) => Promise<RemoteParentRun | { dispatched: false; blocked?: true; reason?: string }>;
|
|
25
|
+
logLocalFallback: (reason: string) => void;
|
|
26
|
+
logBlocked?: (reason: string) => void;
|
|
27
|
+
}): Promise<ParentDispatchDecision> {
|
|
28
|
+
if (!input.requested || input.worker) return { mode: 'local', reason: 'remote-parent-not-requested' };
|
|
29
|
+
if (!input.shareableInputs) {
|
|
30
|
+
const reason = 'goal-input-is-local-only';
|
|
31
|
+
ports.logLocalFallback(reason);
|
|
32
|
+
return { mode: 'local', reason };
|
|
33
|
+
}
|
|
34
|
+
const remote = await ports.runRemote(input.args);
|
|
35
|
+
if (remote.dispatched) return { mode: 'remote', host: remote.host, exitCode: remote.exitCode };
|
|
36
|
+
if (remote.blocked) {
|
|
37
|
+
const reason = remote.reason ?? 'release-gate-parent-dispatch-blocked';
|
|
38
|
+
ports.logBlocked?.(reason);
|
|
39
|
+
return { mode: 'blocked', reason };
|
|
40
|
+
}
|
|
41
|
+
const reason = 'no-eligible-remote-parent';
|
|
42
|
+
ports.logLocalFallback(reason);
|
|
43
|
+
return { mode: 'local', reason };
|
|
44
|
+
}
|
|
@@ -246,9 +246,9 @@ export function classifyReviewProviderFailure(message: string): ReviewFailureRea
|
|
|
246
246
|
const m = message.toLowerCase();
|
|
247
247
|
// Credential absence is provider-local: move to the next configured provider, then let the caller
|
|
248
248
|
// preserve its current artifact if every configured provider is keyless.
|
|
249
|
-
if ((m.includes('unavailable') && /(api\
|
|
250
|
-
|| /configure\s+(?:an?\s+)?api\
|
|
251
|
-
|| /(?:missing|no)\s+(?:provider\s+)?(?:api\
|
|
249
|
+
if ((m.includes('unavailable') && /(api[\s_-]*key|credentials?)/.test(m))
|
|
250
|
+
|| /configure\s+(?:an?\s+)?api[\s_-]*key/.test(m)
|
|
251
|
+
|| /(?:missing|no)\s+(?:provider\s+)?(?:api[\s_-]*)?key\b/.test(m)
|
|
252
252
|
|| /credentials?\s+(?:are\s+)?unavailable/.test(m)) return 'credentials-unavailable';
|
|
253
253
|
// ⭐ 실물 문면을 먼저 둔다 — `#10069` 가 낸 그 문장이다.
|
|
254
254
|
if (m.includes('overloaded') || m.includes('server_overloaded')) return 'overloaded';
|
|
@@ -272,6 +272,18 @@ export interface ReviewProviderAttempt {
|
|
|
272
272
|
readonly label: string;
|
|
273
273
|
}
|
|
274
274
|
|
|
275
|
+
export interface ReviewProviderCandidateSkip {
|
|
276
|
+
readonly label: string;
|
|
277
|
+
readonly model: string;
|
|
278
|
+
readonly provider?: string;
|
|
279
|
+
readonly why: 'model-unknown' | 'provider-mismatch' | 'provider-unresolved' | 'provider-not-allowed' | 'no-credential' | 'availability-check-failed';
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
export interface ReviewProviderAttemptPlan {
|
|
283
|
+
readonly attempts: ReviewProviderAttempt[];
|
|
284
|
+
readonly skipped: ReviewProviderCandidateSkip[];
|
|
285
|
+
}
|
|
286
|
+
|
|
275
287
|
/**
|
|
276
288
|
* ⛔⭐⭐⭐ **시도 순서는 «순수»하게 정한다** — 실제 호출은 호출자가 한다(테스트 가능성).
|
|
277
289
|
*
|
|
@@ -286,13 +298,54 @@ export function buildReviewProviderAttempts(
|
|
|
286
298
|
primary: ReviewProviderAttempt,
|
|
287
299
|
fallbacks: readonly ReviewProviderAttempt[],
|
|
288
300
|
): ReviewProviderAttempt[] {
|
|
301
|
+
return planReviewProviderAttempts(primary, fallbacks).attempts;
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
/** Resolve the review chain and, in Pod-only mode, remove providers with no usable local credentials. */
|
|
305
|
+
export function planReviewProviderAttempts(
|
|
306
|
+
primary: ReviewProviderAttempt,
|
|
307
|
+
fallbacks: readonly ReviewProviderAttempt[],
|
|
308
|
+
options: { skipUnavailableProviders?: boolean; allowedProviderNames?: readonly string[]; isAvailable?: (provider: LLMProvider) => boolean } = {},
|
|
309
|
+
): ReviewProviderAttemptPlan {
|
|
289
310
|
const model = resolveReviewModelAlias(primary.model);
|
|
290
311
|
const inferred = inferProviderFromModel(model);
|
|
291
312
|
const supported = Boolean(inferred && (inferred !== 'local' || model.startsWith('local:') || model.startsWith('local-llm:')));
|
|
292
313
|
let selectedProvider: LLMProvider | undefined;
|
|
314
|
+
let primaryWhy: ReviewProviderCandidateSkip['why'] | undefined;
|
|
293
315
|
if (supported) {
|
|
294
|
-
|
|
316
|
+
// Keep an explicitly routed provider when it agrees with the model family.
|
|
317
|
+
// `getProvider('gpt-6…')` intentionally preserves the legacy OpenAI API route,
|
|
318
|
+
// while Pod reviews pin the same model family to the Codex subscription.
|
|
319
|
+
const provider = primary.provider?.name === inferred ? primary.provider : getProvider(model);
|
|
295
320
|
if (!primary.provider || primary.provider.name === provider.name) selectedProvider = primary.provider ?? provider;
|
|
321
|
+
else primaryWhy = 'provider-mismatch';
|
|
322
|
+
} else {
|
|
323
|
+
primaryWhy = 'model-unknown';
|
|
324
|
+
}
|
|
325
|
+
const skipped: ReviewProviderCandidateSkip[] = [];
|
|
326
|
+
const allowedProviders = options.allowedProviderNames ? new Set(options.allowedProviderNames) : undefined;
|
|
327
|
+
if (selectedProvider && allowedProviders && !allowedProviders.has(selectedProvider.name)) {
|
|
328
|
+
skipped.push({ label: primary.label, model, provider: selectedProvider.name, why: 'provider-not-allowed' });
|
|
329
|
+
primaryWhy = 'provider-not-allowed';
|
|
330
|
+
selectedProvider = undefined;
|
|
331
|
+
}
|
|
332
|
+
const isAvailable = options.isAvailable ?? ((provider: LLMProvider) => provider.available());
|
|
333
|
+
const isPodCredentialUnavailable = (attempt: ReviewProviderAttempt, provider: LLMProvider): boolean => {
|
|
334
|
+
if (!options.skipUnavailableProviders) return false;
|
|
335
|
+
try {
|
|
336
|
+
if (isAvailable(provider)) return false;
|
|
337
|
+
skipped.push({ label: attempt.label, model: attempt.model, provider: provider.name, why: 'no-credential' });
|
|
338
|
+
if (attempt === primary) primaryWhy = 'no-credential';
|
|
339
|
+
return true;
|
|
340
|
+
} catch {
|
|
341
|
+
skipped.push({ label: attempt.label, model: attempt.model, provider: provider.name, why: 'availability-check-failed' });
|
|
342
|
+
if (attempt === primary) primaryWhy = 'availability-check-failed';
|
|
343
|
+
return true;
|
|
344
|
+
}
|
|
345
|
+
};
|
|
346
|
+
if (selectedProvider && isPodCredentialUnavailable(primary, selectedProvider)) selectedProvider = undefined;
|
|
347
|
+
if (!selectedProvider && options.skipUnavailableProviders && !skipped.some((candidate) => candidate.label === primary.label)) {
|
|
348
|
+
skipped.push({ label: primary.label, model: primary.model, ...(primary.provider ? { provider: primary.provider.name } : {}), why: primaryWhy ?? 'provider-unresolved' });
|
|
296
349
|
}
|
|
297
350
|
if (!selectedProvider) {
|
|
298
351
|
// A malformed/ambiguous configured primary is diagnostic, not fatal: the configured/default
|
|
@@ -302,6 +355,7 @@ export function buildReviewProviderAttempts(
|
|
|
302
355
|
debug.log('review.fallback', 'primary-unresolved', {
|
|
303
356
|
model: primary.model,
|
|
304
357
|
configuredProvider: primary.provider?.name ?? null,
|
|
358
|
+
why: primaryWhy ?? 'provider-unresolved',
|
|
305
359
|
}, { level: 'warn' });
|
|
306
360
|
} catch { /* fail-soft */ }
|
|
307
361
|
}
|
|
@@ -310,8 +364,9 @@ export function buildReviewProviderAttempts(
|
|
|
310
364
|
model,
|
|
311
365
|
...(selectedProvider ? { provider: selectedProvider } : { provider: undefined }),
|
|
312
366
|
};
|
|
313
|
-
const out: ReviewProviderAttempt[] = [normalizedPrimary];
|
|
314
|
-
const
|
|
367
|
+
const out: ReviewProviderAttempt[] = selectedProvider || !options.skipUnavailableProviders ? [normalizedPrimary] : [];
|
|
368
|
+
const primaryWasUnavailable = primaryWhy === 'no-credential' || primaryWhy === 'availability-check-failed';
|
|
369
|
+
const seen = new Set(selectedProvider || primaryWasUnavailable || primaryWhy === 'provider-not-allowed' ? [model] : []);
|
|
315
370
|
for (const f of fallbacks) {
|
|
316
371
|
if (!f.model.trim()) continue;
|
|
317
372
|
const fallbackModel = resolveReviewModelAlias(f.model);
|
|
@@ -320,17 +375,30 @@ export function buildReviewProviderAttempts(
|
|
|
320
375
|
if (!fallbackInference || (fallbackInference === 'local' && !fallbackModel.startsWith('local:') && !fallbackModel.startsWith('local-llm:'))) {
|
|
321
376
|
throw new Error(`review fallback: ambiguous or unsupported fallback model "${f.model}"`);
|
|
322
377
|
}
|
|
323
|
-
const fallbackProvider = getProvider(fallbackModel);
|
|
378
|
+
const fallbackProvider = f.provider?.name === fallbackInference ? f.provider : getProvider(fallbackModel);
|
|
324
379
|
if (f.provider && f.provider.name !== fallbackProvider.name) {
|
|
325
380
|
throw new Error(`review fallback: unsupported provider "${f.provider.name}" for model "${fallbackModel}"`);
|
|
326
381
|
}
|
|
327
382
|
if (normalizedPrimary.provider && (f.provider ?? fallbackProvider).name === normalizedPrimary.provider.name) continue;
|
|
328
383
|
seen.add(fallbackModel);
|
|
329
384
|
const selectedFallbackProvider = f.provider ?? fallbackProvider;
|
|
330
|
-
|
|
331
|
-
|
|
385
|
+
if (allowedProviders && !allowedProviders.has(selectedFallbackProvider.name)) {
|
|
386
|
+
skipped.push({ label: f.label, model: fallbackModel, provider: selectedFallbackProvider.name, why: 'provider-not-allowed' });
|
|
387
|
+
seen.add(fallbackModel);
|
|
388
|
+
continue;
|
|
389
|
+
}
|
|
390
|
+
const normalizedFallback = f.model === fallbackModel && f.provider === selectedFallbackProvider
|
|
391
|
+
? f : { ...f, model: fallbackModel, provider: selectedFallbackProvider };
|
|
392
|
+
if (!isPodCredentialUnavailable(normalizedFallback, selectedFallbackProvider)) out.push(normalizedFallback);
|
|
332
393
|
}
|
|
333
|
-
return out;
|
|
394
|
+
return { attempts: out, skipped };
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
export function noUsableReviewProviderError(skipped: readonly ReviewProviderCandidateSkip[]): Error {
|
|
398
|
+
const reasons = skipped.length
|
|
399
|
+
? skipped.map((candidate) => `${candidate.provider ?? 'unknown'}(${candidate.model})=${candidate.why}`).join(', ')
|
|
400
|
+
: 'no candidates configured';
|
|
401
|
+
return new Error(`no-usable-provider: ${reasons}`);
|
|
334
402
|
}
|
|
335
403
|
|
|
336
404
|
/** A distinct provider is available even when the optional config list is empty. */
|
|
@@ -367,10 +435,19 @@ export async function runReviewWithFallback(
|
|
|
367
435
|
attempts: readonly ReviewProviderAttempt[],
|
|
368
436
|
call: (attempt: ReviewProviderAttempt, observeResolvedProvider: (provider?: string) => void) => Promise<string>,
|
|
369
437
|
observe: (event: 'attempt' | 'resolved' | 'completed' | 'fallback' | 'exhausted', data: ReviewFallbackObservation) => void = () => {},
|
|
438
|
+
options: {
|
|
439
|
+
skipUnavailable?: (attempt: ReviewProviderAttempt) => ReviewProviderCandidateSkip | undefined;
|
|
440
|
+
/** Candidates excluded during planning still belong in an all-unavailable diagnostic. */
|
|
441
|
+
preSkipped?: readonly ReviewProviderCandidateSkip[];
|
|
442
|
+
/** Maximum real provider calls; an availability skip does not spend this budget. */
|
|
443
|
+
maxCalls?: number;
|
|
444
|
+
} = {},
|
|
370
445
|
): Promise<{ text: string; used: ReviewProviderAttempt; attemptIndex: number }> {
|
|
371
446
|
if (attempts.length === 0) throw new Error('review fallback: no attempts configured');
|
|
372
447
|
let lastError: unknown;
|
|
373
448
|
let lastReason: ReviewFailureReason | undefined;
|
|
449
|
+
const unavailableAtCall: ReviewProviderCandidateSkip[] = [];
|
|
450
|
+
let providerCalls = 0;
|
|
374
451
|
for (let i = 0; i < attempts.length; i++) {
|
|
375
452
|
const attempt = attempts[i]!;
|
|
376
453
|
const base: ReviewFallbackObservation = {
|
|
@@ -379,6 +456,23 @@ export async function runReviewWithFallback(
|
|
|
379
456
|
...(lastReason ? { afterReason: lastReason } : {}),
|
|
380
457
|
};
|
|
381
458
|
try { observe('attempt', base); } catch { /* fail-soft */ }
|
|
459
|
+
let unavailable: ReviewProviderCandidateSkip | undefined;
|
|
460
|
+
try { unavailable = options.skipUnavailable?.(attempt); }
|
|
461
|
+
catch {
|
|
462
|
+
unavailable = { label: attempt.label, model: attempt.model,
|
|
463
|
+
...(attempt.provider ? { provider: attempt.provider.name } : {}), why: 'availability-check-failed' };
|
|
464
|
+
}
|
|
465
|
+
if (unavailable) {
|
|
466
|
+
unavailableAtCall.push(unavailable);
|
|
467
|
+
lastReason = 'credentials-unavailable';
|
|
468
|
+
const errorMessage = `review provider credentials unavailable: ${unavailable.provider ?? unavailable.label}=${unavailable.why}`;
|
|
469
|
+
// An availability skip is not a provider call failure. Keep the last real call error so a
|
|
470
|
+
// later unavailable candidate cannot hide the diagnostic from the provider that was tried.
|
|
471
|
+
const isLast = i === attempts.length - 1;
|
|
472
|
+
try { observe(isLast ? 'exhausted' : 'fallback', { ...base, afterReason: lastReason, errorMessage }); } catch { /* fail-soft */ }
|
|
473
|
+
continue;
|
|
474
|
+
}
|
|
475
|
+
if (options.maxCalls !== undefined && providerCalls >= options.maxCalls) break;
|
|
382
476
|
if (!attempt.provider) {
|
|
383
477
|
const reason: ReviewFailureReason = 'unknown-model-provider';
|
|
384
478
|
lastReason = reason;
|
|
@@ -387,6 +481,7 @@ export async function runReviewWithFallback(
|
|
|
387
481
|
try { observe(isLast ? 'exhausted' : 'fallback', { ...base, afterReason: reason, errorMessage }); } catch { /* fail-soft */ }
|
|
388
482
|
continue;
|
|
389
483
|
}
|
|
484
|
+
providerCalls++;
|
|
390
485
|
let resolvedProvider: string | undefined;
|
|
391
486
|
try {
|
|
392
487
|
const text = await call(attempt, (provider) => { resolvedProvider = provider; });
|
|
@@ -413,6 +508,9 @@ export async function runReviewWithFallback(
|
|
|
413
508
|
try { observe(isLast ? 'exhausted' : 'fallback', { ...base, ...resolved, afterReason: reason, errorMessage }); } catch { /* fail-soft */ }
|
|
414
509
|
}
|
|
415
510
|
}
|
|
511
|
+
if (unavailableAtCall.length === attempts.length) {
|
|
512
|
+
throw noUsableReviewProviderError([...(options.preSkipped ?? []), ...unavailableAtCall]);
|
|
513
|
+
}
|
|
416
514
|
if (lastError) throw lastError;
|
|
417
515
|
throw new Error('review fallback: no attempts with an inferred provider');
|
|
418
516
|
}
|