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
package/src/light-cli.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import { Command } from 'commander';
|
|
1
|
+
import { Command, CommanderError } from 'commander';
|
|
2
|
+
import { formatCliUserError, isCliUserError } from './cli/cli-user-error.js';
|
|
3
|
+
import { registerPrLandOptions } from './cli/pr-land-options.js';
|
|
2
4
|
import type { LightCliRoute } from './cli/light-entry-route.js';
|
|
3
5
|
|
|
4
6
|
/** Dispatch a small operational command without loading the full command registry. */
|
|
@@ -11,7 +13,7 @@ export async function runLightCli(route: LightCliRoute): Promise<void> {
|
|
|
11
13
|
// warns when the removed ELANOUS_CONFIG_DIR env var disagrees with it.
|
|
12
14
|
// Preserve that observable warning on hot routes without loading the
|
|
13
15
|
// resolver for the common case where the ignored env var is absent.
|
|
14
|
-
if (['msg', 'pty', 'logs', 'tasks', 'tasks-read'].includes(route) && process.env.ELANOUS_CONFIG_DIR !== undefined) {
|
|
16
|
+
if (['msg', 'pty', 'logs', 'tasks', 'tasks-read', 'tasks-advance'].includes(route) && process.env.ELANOUS_CONFIG_DIR !== undefined) {
|
|
15
17
|
const { getElanousConfigDir } = await import('./elanous-config-dir.js');
|
|
16
18
|
getElanousConfigDir();
|
|
17
19
|
}
|
|
@@ -29,10 +31,33 @@ export async function runLightCli(route: LightCliRoute): Promise<void> {
|
|
|
29
31
|
}
|
|
30
32
|
|
|
31
33
|
const program = new Command().name('elanous').enablePositionalOptions();
|
|
34
|
+
// The legacy msg command maps parser failures to rc 2; use an override only
|
|
35
|
+
// there so the other roots retain their native Commander exit behavior.
|
|
36
|
+
if (route === 'msg') program.exitOverride();
|
|
32
37
|
switch (route) {
|
|
33
38
|
case 'msg': {
|
|
34
|
-
|
|
35
|
-
|
|
39
|
+
if (args[1] === 'list') {
|
|
40
|
+
const { registerMsgListCommand } = await import('./cli/msg-list-cli.js');
|
|
41
|
+
registerMsgListCommand(program.command('msg').description('Durable seat-addressed messages'));
|
|
42
|
+
} else {
|
|
43
|
+
const { registerMsgCommands } = await import('./cli/msg-cli.js');
|
|
44
|
+
registerMsgCommands(program);
|
|
45
|
+
}
|
|
46
|
+
break;
|
|
47
|
+
}
|
|
48
|
+
case 'decisions': {
|
|
49
|
+
const { registerDecisionsListCommand } = await import('./cli/decisions-list-cli.js');
|
|
50
|
+
registerDecisionsListCommand(program);
|
|
51
|
+
break;
|
|
52
|
+
}
|
|
53
|
+
case 'release-landed': {
|
|
54
|
+
const { registerReleaseChecklistLandedCommand } = await import('./cli/release-checklist-landed-cli.js');
|
|
55
|
+
registerReleaseChecklistLandedCommand(program);
|
|
56
|
+
break;
|
|
57
|
+
}
|
|
58
|
+
case 'release-set': {
|
|
59
|
+
const { registerReleaseChecklistSetCommand } = await import('./cli/release-checklist-set-cli.js');
|
|
60
|
+
registerReleaseChecklistSetCommand(program);
|
|
36
61
|
break;
|
|
37
62
|
}
|
|
38
63
|
case 'release': {
|
|
@@ -50,11 +75,29 @@ export async function runLightCli(route: LightCliRoute): Promise<void> {
|
|
|
50
75
|
registerTaskReadCommands(program);
|
|
51
76
|
break;
|
|
52
77
|
}
|
|
78
|
+
case 'tasks-advance': {
|
|
79
|
+
const { registerTasksAdvanceCommand } = await import('./cli/tasks-advance-cli.js');
|
|
80
|
+
registerTasksAdvanceCommand(program);
|
|
81
|
+
break;
|
|
82
|
+
}
|
|
53
83
|
case 'pty': {
|
|
54
84
|
const { registerPtyTakeoverCommands } = await import('./cli/pty-takeover-cli.js');
|
|
55
85
|
registerPtyTakeoverCommands(program);
|
|
56
86
|
break;
|
|
57
87
|
}
|
|
88
|
+
case 'pr-land': {
|
|
89
|
+
const pr = program.command('pr').description('PR landing commands');
|
|
90
|
+
const land = pr.command('land');
|
|
91
|
+
registerPrLandOptions(land);
|
|
92
|
+
land.action(async () => {
|
|
93
|
+
const { registerPrCommands } = await import('./cli/pr-cli.js');
|
|
94
|
+
const fullProgram = new Command().name('elanous').enablePositionalOptions();
|
|
95
|
+
registerPrCommands(fullProgram);
|
|
96
|
+
const prLandUserArgs = process.argv.slice(2);
|
|
97
|
+
await fullProgram.parseAsync(prLandUserArgs, { from: 'user' });
|
|
98
|
+
});
|
|
99
|
+
break;
|
|
100
|
+
}
|
|
58
101
|
case 'logs': {
|
|
59
102
|
const { registerLogsCommands } = await import('./cli/logs-cli.js');
|
|
60
103
|
registerLogsCommands(program);
|
|
@@ -110,7 +153,11 @@ export async function runLightCli(route: LightCliRoute): Promise<void> {
|
|
|
110
153
|
try {
|
|
111
154
|
await program.parseAsync(['node', 'elanous', ...process.argv.slice(2)]);
|
|
112
155
|
} catch (error) {
|
|
113
|
-
|
|
156
|
+
if (error instanceof CommanderError) {
|
|
157
|
+
process.exitCode = ['commander.helpDisplayed', 'commander.version'].includes(error.code) ? 0 : route === 'msg' ? 2 : error.exitCode;
|
|
158
|
+
return;
|
|
159
|
+
}
|
|
160
|
+
console.error(error instanceof Error && isCliUserError(error) ? formatCliUserError(error) : error instanceof Error ? error.message : String(error));
|
|
114
161
|
process.exitCode = 1;
|
|
115
162
|
}
|
|
116
163
|
}
|
package/src/llm.ts
CHANGED
|
@@ -286,6 +286,12 @@ export interface LLMMessage {
|
|
|
286
286
|
* prefix reuse) and sends them as a `developer` item placed just before
|
|
287
287
|
* the latest user message. Other providers ignore the flag. */
|
|
288
288
|
cacheVolatile?: boolean;
|
|
289
|
+
/** Internal dashboard-only marker for system messages injected for one
|
|
290
|
+
* request. It is deliberately ignored by provider serializers and removed
|
|
291
|
+
* before a compacted transcript is persisted. */
|
|
292
|
+
transientPreamble?: true;
|
|
293
|
+
/** Internal marker for the user message belonging to the active turn. */
|
|
294
|
+
transientTurnUser?: true;
|
|
289
295
|
}
|
|
290
296
|
|
|
291
297
|
/** JSONSchema-shaped tool definition sent to the provider (no handler). */
|
|
@@ -436,6 +442,13 @@ export type LLMStreamEvent =
|
|
|
436
442
|
* model from ever emitting a final text answer (loop never terminates). */
|
|
437
443
|
export type ToolChoice = 'auto' | 'required' | 'none' | { name: string };
|
|
438
444
|
|
|
445
|
+
class RequestSizeLimitError extends Error {
|
|
446
|
+
constructor(requestChars: number, maxChars: number, reason: string) {
|
|
447
|
+
super(`Codex request remains over the ${maxChars}-character limit after compaction (${requestChars}; ${reason})`);
|
|
448
|
+
this.name = 'RequestSizeLimitError';
|
|
449
|
+
}
|
|
450
|
+
}
|
|
451
|
+
|
|
439
452
|
export interface LLMOpts {
|
|
440
453
|
model?: string;
|
|
441
454
|
/** Explicit research surface verdict from the turn router. Relaxes early
|
|
@@ -459,6 +472,8 @@ export interface LLMOpts {
|
|
|
459
472
|
messages: LLMMessage[],
|
|
460
473
|
info: { provider: string; requestChars: number; maxChars: number },
|
|
461
474
|
) => Promise<{ messages: LLMMessage[]; reason: string } | null>;
|
|
475
|
+
/** Receives compacted provider messages so the tool-loop can replace its canonical history. */
|
|
476
|
+
onCompacted?: (messages: LLMMessage[]) => void | Promise<void>;
|
|
462
477
|
onMeasured?: (info: {
|
|
463
478
|
provider: string;
|
|
464
479
|
requestChars: number;
|
|
@@ -1908,7 +1923,13 @@ export function messagesToResponsesInput(
|
|
|
1908
1923
|
if (textBuf) input.push({ role: 'developer', content: [{ type: 'input_text', text: textBuf }] });
|
|
1909
1924
|
continue;
|
|
1910
1925
|
}
|
|
1911
|
-
|
|
1926
|
+
// Compaction summaries can be the first retained history item and are
|
|
1927
|
+
// persisted without LLMMessage metadata. Treat the stable XML marker as
|
|
1928
|
+
// volatile too, so changing summary text never rewrites `instructions`.
|
|
1929
|
+
const compactedSummary = typeof m.content === 'string'
|
|
1930
|
+
&& m.content.startsWith('<context_summary>\n')
|
|
1931
|
+
&& m.content.endsWith('\n</context_summary>');
|
|
1932
|
+
if (stablePrefix && (m.cacheVolatile || compactedSummary)) {
|
|
1912
1933
|
if (textBuf) volatileSys.push(textBuf);
|
|
1913
1934
|
continue;
|
|
1914
1935
|
}
|
|
@@ -2042,6 +2063,27 @@ export function codexSessionCacheKey(
|
|
|
2042
2063
|
return { key: `elanous-${createHash('sha256').update(raw).digest('hex').slice(0, 32)}`, source, hashed: true };
|
|
2043
2064
|
}
|
|
2044
2065
|
|
|
2066
|
+
/** Route a session to a stable cache bucket for one model/tool stage.
|
|
2067
|
+
* The Responses prompt cache is model-scoped and tool definitions are part
|
|
2068
|
+
* of the prompt. Keeping their canonical signature in the routing key avoids
|
|
2069
|
+
* sending intentionally different tool stages to the same affinity bucket. */
|
|
2070
|
+
export function codexStagePromptCacheKey(
|
|
2071
|
+
sessionKey: string,
|
|
2072
|
+
model: string,
|
|
2073
|
+
tools: unknown[] | undefined,
|
|
2074
|
+
): string {
|
|
2075
|
+
const signature = JSON.stringify({ model, tools: canonicalCodexValue(tools ?? []) });
|
|
2076
|
+
return `elanous-${createHash('sha256').update(`${sessionKey}::${signature}`).digest('hex').slice(0, 32)}`;
|
|
2077
|
+
}
|
|
2078
|
+
|
|
2079
|
+
function canonicalCodexValue(value: unknown): unknown {
|
|
2080
|
+
if (Array.isArray(value)) return value.map(canonicalCodexValue);
|
|
2081
|
+
if (!value || typeof value !== 'object') return value;
|
|
2082
|
+
return Object.fromEntries(Object.entries(value as Record<string, unknown>)
|
|
2083
|
+
.sort(([a], [b]) => a < b ? -1 : a > b ? 1 : 0)
|
|
2084
|
+
.map(([key, child]) => [key, canonicalCodexValue(child)]));
|
|
2085
|
+
}
|
|
2086
|
+
|
|
2045
2087
|
/** Short content hash for request-stability observation (logs only). */
|
|
2046
2088
|
function stabilityHash(value: string): string {
|
|
2047
2089
|
return createHash('sha256').update(value).digest('hex').slice(0, 16);
|
|
@@ -2331,7 +2373,9 @@ function buildCodexResponsesWireBody(
|
|
|
2331
2373
|
sessionCacheKey?: string,
|
|
2332
2374
|
): Record<string, unknown> {
|
|
2333
2375
|
const cacheKey = promptCache
|
|
2334
|
-
? (sessionCacheKey
|
|
2376
|
+
? (sessionCacheKey
|
|
2377
|
+
? codexStagePromptCacheKey(sessionCacheKey, body.model, body.tools)
|
|
2378
|
+
: computePromptCacheKey(body.model, body.instructions))
|
|
2335
2379
|
: undefined;
|
|
2336
2380
|
return {
|
|
2337
2381
|
...body,
|
|
@@ -2444,8 +2488,10 @@ export async function* streamCodexResponsesEvents(
|
|
|
2444
2488
|
toolChoice: body.tool_choice ?? null,
|
|
2445
2489
|
promptCacheKey: extra.promptCache === false
|
|
2446
2490
|
? null
|
|
2447
|
-
: (sessionAffinity
|
|
2448
|
-
|
|
2491
|
+
: (sessionAffinity
|
|
2492
|
+
? codexStagePromptCacheKey(sessionAffinity.key, body.model, body.tools)
|
|
2493
|
+
: computePromptCacheKey(body.model, body.instructions)).slice(0, 24),
|
|
2494
|
+
cacheKeySource: extra.promptCache === false ? 'off' : (sessionAffinity ? `${sessionAffinity.source}-model-tools` : 'instructions-prefix'),
|
|
2449
2495
|
sessionHeader: sessionAffinity !== null,
|
|
2450
2496
|
tools: observeRequestTools(body.tools),
|
|
2451
2497
|
instructions: body.instructions.slice(0, 200),
|
|
@@ -2479,6 +2525,12 @@ export async function* streamCodexResponsesEvents(
|
|
|
2479
2525
|
debug.log('llm.request', 'request-size', {
|
|
2480
2526
|
provider: 'openai-codex',
|
|
2481
2527
|
requestChars: wireJson.length,
|
|
2528
|
+
// TUI-PROMPT-CACHE-PREFIX — hash the exact serialized body that is
|
|
2529
|
+
// handed to fetch (including any preflight serialization), without
|
|
2530
|
+
// persisting prompt text. This lets two mock turns compare the actual
|
|
2531
|
+
// byte prefix rather than infer it from per-field character counts.
|
|
2532
|
+
requestBytes: Buffer.byteLength(wireJson, 'utf8'),
|
|
2533
|
+
requestSha256: createHash('sha256').update(wireJson).digest('hex'),
|
|
2482
2534
|
store: body.store === true,
|
|
2483
2535
|
previousResponseId: body.previousResponseId ? `${body.previousResponseId.slice(0, 12)}…` : null,
|
|
2484
2536
|
});
|
|
@@ -2800,7 +2852,17 @@ export function toCodexResponsesTools(
|
|
|
2800
2852
|
...(opts.background ? { background: opts.background } : {}),
|
|
2801
2853
|
});
|
|
2802
2854
|
}
|
|
2803
|
-
|
|
2855
|
+
if (out.length === 0) return undefined;
|
|
2856
|
+
// Tool declaration order is semantically irrelevant to Responses, but it
|
|
2857
|
+
// changes serialized prompt bytes. Canonicalize nested schema keys and sort
|
|
2858
|
+
// declarations so callers with the same tool set produce identical bytes.
|
|
2859
|
+
return out.map(canonicalCodexValue).sort((a, b) => {
|
|
2860
|
+
const left = a as Record<string, unknown>;
|
|
2861
|
+
const right = b as Record<string, unknown>;
|
|
2862
|
+
const leftKey = `${left.type ?? ''}:${left.name ?? ''}`;
|
|
2863
|
+
const rightKey = `${right.type ?? ''}:${right.name ?? ''}`;
|
|
2864
|
+
return leftKey < rightKey ? -1 : leftKey > rightKey ? 1 : 0;
|
|
2865
|
+
});
|
|
2804
2866
|
}
|
|
2805
2867
|
|
|
2806
2868
|
/** Translate plugin LLMToolSpec → OpenAI wire format. */
|
|
@@ -4676,12 +4738,12 @@ function remainingFallbackProviderNames(
|
|
|
4676
4738
|
|
|
4677
4739
|
/** 폴백 후보를 고르는 «그 순간»에 빠진 칸과 이유를 남긴다 — `provider-fallback-exhausted` 가
|
|
4678
4740
|
* 「무엇을 봤고 왜 아무도 안 남았나」를 혼자 말하지 못하던 결손(2026-10-14 TUI 실측) 수리. */
|
|
4679
|
-
function
|
|
4741
|
+
function explainAndLogFallbackCandidatesDetails(
|
|
4680
4742
|
attemptedProviders: ReadonlySet<string>,
|
|
4681
4743
|
opts: LLMOpts & { provider?: LLMProvider },
|
|
4682
4744
|
context: { failedProvider: string; turn?: number },
|
|
4683
4745
|
chain?: readonly string[],
|
|
4684
|
-
): string[] {
|
|
4746
|
+
): { candidates: string[]; skipped: FallbackCandidateSkip[] } {
|
|
4685
4747
|
const { candidates, skipped } = explainFallbackCandidates(attemptedProviders, opts, chain);
|
|
4686
4748
|
debug.log('llm.router', 'fallback-candidates', {
|
|
4687
4749
|
...(context.turn !== undefined ? { turn: context.turn } : {}),
|
|
@@ -4689,7 +4751,26 @@ function explainAndLogFallbackCandidates(
|
|
|
4689
4751
|
candidates,
|
|
4690
4752
|
skipped,
|
|
4691
4753
|
});
|
|
4692
|
-
return candidates;
|
|
4754
|
+
return { candidates, skipped };
|
|
4755
|
+
}
|
|
4756
|
+
|
|
4757
|
+
function explainAndLogFallbackCandidates(
|
|
4758
|
+
attemptedProviders: ReadonlySet<string>,
|
|
4759
|
+
opts: LLMOpts & { provider?: LLMProvider },
|
|
4760
|
+
context: { failedProvider: string; turn?: number },
|
|
4761
|
+
chain?: readonly string[],
|
|
4762
|
+
): string[] {
|
|
4763
|
+
return explainAndLogFallbackCandidatesDetails(attemptedProviders, opts, context, chain).candidates;
|
|
4764
|
+
}
|
|
4765
|
+
|
|
4766
|
+
function podNoUsableProviderReason(
|
|
4767
|
+
action: 'stop' | 'exhaust',
|
|
4768
|
+
skipped: readonly FallbackCandidateSkip[],
|
|
4769
|
+
): string | undefined {
|
|
4770
|
+
if (process.env.ELANOUS_SUBSTRATE !== 'pod' || action !== 'exhaust'
|
|
4771
|
+
|| skipped.length === 0) return undefined;
|
|
4772
|
+
const reasons = skipped.map((candidate) => `${candidate.step}${candidate.provider ? `(${candidate.provider})` : ''}=${candidate.reason}`);
|
|
4773
|
+
return `no-usable-provider: ${reasons.join(', ')}`;
|
|
4693
4774
|
}
|
|
4694
4775
|
|
|
4695
4776
|
/** 스트림 중 끊김 재시도 상한 — codex `DEFAULT_STREAM_MAX_RETRIES`(5) 와 같은 값. */
|
|
@@ -4745,7 +4826,8 @@ function terminalFallbackVerdict(
|
|
|
4745
4826
|
attempts: readonly ProviderFallbackAttempt[],
|
|
4746
4827
|
reason: string,
|
|
4747
4828
|
): ProviderFallbackTerminalVerdict {
|
|
4748
|
-
|
|
4829
|
+
const unavailablePodChain = reason.startsWith('no-usable-provider:');
|
|
4830
|
+
if (!unavailablePodChain && (verdict.action === 'stop' || verdict.action === 'exhaust')) return verdict;
|
|
4749
4831
|
return { action: 'exhaust', category: verdict.category, attempts, reason };
|
|
4750
4832
|
}
|
|
4751
4833
|
|
|
@@ -4769,6 +4851,13 @@ function firstAvailableFallbackProvider(attempted: ReadonlySet<string>, opts: LL
|
|
|
4769
4851
|
return undefined;
|
|
4770
4852
|
}
|
|
4771
4853
|
|
|
4854
|
+
/** Codex overload failover can enumerate a Pod credential just before it disappears.
|
|
4855
|
+
* Recheck at the actual handoff boundary in Pods; the host path keeps its existing behavior. */
|
|
4856
|
+
function overloadFallbackStillAvailable(failedProvider: string, candidate: LLMProvider): boolean {
|
|
4857
|
+
if (failedProvider === 'openai-codex' && process.env.ELANOUS_SUBSTRATE !== 'pod') return true;
|
|
4858
|
+
return candidate.available();
|
|
4859
|
+
}
|
|
4860
|
+
|
|
4772
4861
|
function finalizeStreamingProviderModel(provider: LLMProvider, model: string): { provider: LLMProvider; model: string } {
|
|
4773
4862
|
if (!isKnownProviderName(provider.name)) return { provider, model };
|
|
4774
4863
|
|
|
@@ -5209,7 +5298,7 @@ export async function streamLLM(
|
|
|
5209
5298
|
? firstAvailableFallbackProvider(attemptedProviders, opts)
|
|
5210
5299
|
: providerByName('grok');
|
|
5211
5300
|
if (switched && !attemptedProviders.has(switched.name)
|
|
5212
|
-
&& (activeProvider.name
|
|
5301
|
+
&& overloadFallbackStillAvailable(activeProvider.name, switched) && full.length === 0) {
|
|
5213
5302
|
debug.log('llm.router', 'overload-failover', {
|
|
5214
5303
|
blockedProvider: activeProvider.name,
|
|
5215
5304
|
fallbackProvider: switched.name,
|
|
@@ -5237,11 +5326,11 @@ export async function streamLLM(
|
|
|
5237
5326
|
debug.log('llm', 'outcome', { provider: activeProvider.name, status: 'error', kind: 'streamLLM', durationMs: Date.now() - started });
|
|
5238
5327
|
throw err;
|
|
5239
5328
|
}
|
|
5240
|
-
const
|
|
5329
|
+
const fallbackPlan = explainAndLogFallbackCandidatesDetails(attemptedProviders, opts, { failedProvider: activeProvider.name });
|
|
5241
5330
|
const verdict = decideProviderFallback({
|
|
5242
5331
|
err,
|
|
5243
5332
|
failedProvider: activeProvider.name,
|
|
5244
|
-
remainingProviders:
|
|
5333
|
+
remainingProviders: fallbackPlan.candidates,
|
|
5245
5334
|
attempted: blockedProviders,
|
|
5246
5335
|
});
|
|
5247
5336
|
blockedProviders = [...verdict.attempts];
|
|
@@ -5261,7 +5350,10 @@ export async function streamLLM(
|
|
|
5261
5350
|
attemptedProviders.add(activeProvider.name);
|
|
5262
5351
|
continue;
|
|
5263
5352
|
}
|
|
5264
|
-
|
|
5353
|
+
const noUsableProviderReason = podNoUsableProviderReason(
|
|
5354
|
+
verdict.action === 'exhaust' ? 'exhaust' : 'stop', fallbackPlan.skipped,
|
|
5355
|
+
);
|
|
5356
|
+
if (verdict.action === 'stop' && !noUsableProviderReason) {
|
|
5265
5357
|
debug.log('llm', 'outcome', { provider: activeProvider.name, status: 'error', kind: 'streamLLM', durationMs: Date.now() - started });
|
|
5266
5358
|
debug.log('llm.router', 'provider-fallback-stop', {
|
|
5267
5359
|
blockedProviders,
|
|
@@ -5270,7 +5362,8 @@ export async function streamLLM(
|
|
|
5270
5362
|
}, { level: 'error' });
|
|
5271
5363
|
throw err;
|
|
5272
5364
|
}
|
|
5273
|
-
const terminal = terminalFallbackVerdict(verdict, blockedProviders,
|
|
5365
|
+
const terminal = terminalFallbackVerdict(verdict, blockedProviders,
|
|
5366
|
+
noUsableProviderReason ?? 'fallback candidates exhausted');
|
|
5274
5367
|
const screenError = formatProviderFallbackOutput(terminal);
|
|
5275
5368
|
const finalText = full.length > 0 ? `${full}\n\n${screenError}` : screenError;
|
|
5276
5369
|
const finalDelta = finalText.slice(full.length);
|
|
@@ -6255,7 +6348,7 @@ const TOOL_LOOP_PHASE_DIRECTIVES: Record<ToolLoopFollowupPhase, (autoNarrowedRea
|
|
|
6255
6348
|
+ 'or answer in plain text if no code change is needed (e.g. a read-only investigation whose finding is the deliverable).',
|
|
6256
6349
|
'verify-action': () =>
|
|
6257
6350
|
'VERIFY ACTION REQUIRED — edits already happened. '
|
|
6258
|
-
+ 'Stop gathering more files and move to RunShell/Bash/Agent or a narrow verification followup (Read/Lsp/Grep content/count), '
|
|
6351
|
+
+ 'Stop gathering more files and move to RunShell/Bash/Agent, ScheduleWakeup, a policy-allowed skill_exec, or a narrow verification followup (Read/Lsp/Grep content/count), '
|
|
6259
6352
|
+ 'ops ledger/delegate tools (MsgList/MsgPost/MsgAck/Checklist*/AgentOutput) still run, '
|
|
6260
6353
|
+ 'or answer in plain text if verification is not needed.',
|
|
6261
6354
|
};
|
|
@@ -8182,6 +8275,8 @@ const VERIFY_ACTION_TOOLS = new Set([
|
|
|
8182
8275
|
'RunShell',
|
|
8183
8276
|
'Bash',
|
|
8184
8277
|
'Agent',
|
|
8278
|
+
'ScheduleWakeup',
|
|
8279
|
+
'skill_exec',
|
|
8185
8280
|
'UpdatePlan',
|
|
8186
8281
|
'Plan',
|
|
8187
8282
|
'MarkStepDone',
|
|
@@ -9371,8 +9466,18 @@ export async function streamLLMWithTools(
|
|
|
9371
9466
|
collectTupleItemsSchemaPaths(tool.parameters).map((path, pathIndex) => [String(pathIndex), path]),
|
|
9372
9467
|
),
|
|
9373
9468
|
}]));
|
|
9469
|
+
const requestSizeGuard = turnOpts.requestSizeGuard;
|
|
9470
|
+
const providerRequestSizeGuard = requestSizeGuard ? {
|
|
9471
|
+
...requestSizeGuard,
|
|
9472
|
+
onCompacted: async (compactedProviderMessages: LLMMessage[]) => {
|
|
9473
|
+
const compactedHistory = mapProviderToolNamesInMessages(compactedProviderMessages, nameMap.toOriginalName);
|
|
9474
|
+
history.splice(0, history.length, ...compactedHistory);
|
|
9475
|
+
await requestSizeGuard.onCompacted?.(compactedHistory);
|
|
9476
|
+
},
|
|
9477
|
+
} : undefined;
|
|
9374
9478
|
const providerOpts: LLMOpts = {
|
|
9375
9479
|
...turnOpts,
|
|
9480
|
+
...(providerRequestSizeGuard ? { requestSizeGuard: providerRequestSizeGuard } : {}),
|
|
9376
9481
|
signal: attemptAbort.signal,
|
|
9377
9482
|
tools: turnOpts.tools?.map((tool) => ({ ...tool, name: nameMap.toProviderName(tool.name) })),
|
|
9378
9483
|
toolChoice: turnOpts.toolChoice && typeof turnOpts.toolChoice === 'object'
|
|
@@ -9398,6 +9503,7 @@ export async function streamLLMWithTools(
|
|
|
9398
9503
|
await recordChildFirstLlmResponse({ status: 'error', ...(status === undefined ? {} : { httpStatus: status }), error: err });
|
|
9399
9504
|
if (idleTimer) clearTimeout(idleTimer);
|
|
9400
9505
|
releaseStreamAttempt(true, err);
|
|
9506
|
+
if (err instanceof RequestSizeLimitError) throw err;
|
|
9401
9507
|
if (err instanceof ApiHttpError && err.status === 400 && providerToolSchemaDiagnostics) {
|
|
9402
9508
|
debug.log('llm.tool-schema', 'provider-request-rejected', {
|
|
9403
9509
|
provider: activeProvider.name,
|
|
@@ -9454,7 +9560,7 @@ export async function streamLLMWithTools(
|
|
|
9454
9560
|
? firstAvailableFallbackProvider(attemptedProviders, opts)
|
|
9455
9561
|
: providerByName('grok');
|
|
9456
9562
|
if (switched && !attemptedProviders.has(switched.name)
|
|
9457
|
-
&& (activeProvider.name
|
|
9563
|
+
&& overloadFallbackStillAvailable(activeProvider.name, switched) && evCount === 0) {
|
|
9458
9564
|
(circuit ?? await import('./session-runtime/provider-circuit.js')).recordProviderFailure(activeProvider.name, 'overload-failover', Date.now());
|
|
9459
9565
|
debug.log('llm.router', 'overload-failover', {
|
|
9460
9566
|
turn,
|
|
@@ -9511,13 +9617,13 @@ export async function streamLLMWithTools(
|
|
|
9511
9617
|
turn, failedProvider: activeProvider.name, candidates: [], skipped: [], outputEmitted: true, evCount, pendingCalls: pendingCalls.length,
|
|
9512
9618
|
});
|
|
9513
9619
|
}
|
|
9514
|
-
const
|
|
9515
|
-
?
|
|
9516
|
-
: [];
|
|
9620
|
+
const fallbackPlan = evCount === 0
|
|
9621
|
+
? explainAndLogFallbackCandidatesDetails(attemptedProviders, opts, { failedProvider: activeProvider.name, turn })
|
|
9622
|
+
: { candidates: [], skipped: [] };
|
|
9517
9623
|
const verdict = decideProviderFallback({
|
|
9518
9624
|
err,
|
|
9519
9625
|
failedProvider: activeProvider.name,
|
|
9520
|
-
remainingProviders:
|
|
9626
|
+
remainingProviders: fallbackPlan.candidates,
|
|
9521
9627
|
attempted: blockedProviders,
|
|
9522
9628
|
});
|
|
9523
9629
|
(circuit ?? await import('./session-runtime/provider-circuit.js')).recordProviderFailure(activeProvider.name, verdict.category, Date.now());
|
|
@@ -9527,7 +9633,8 @@ export async function streamLLMWithTools(
|
|
|
9527
9633
|
const terminal = terminalFallbackVerdict(
|
|
9528
9634
|
verdict,
|
|
9529
9635
|
blockedProviders,
|
|
9530
|
-
verdict.action === '
|
|
9636
|
+
podNoUsableProviderReason(verdict.action === 'exhaust' ? 'exhaust' : 'stop', fallbackPlan.skipped)
|
|
9637
|
+
?? (verdict.action === 'stop' ? verdict.reason : 'fallback candidates exhausted'),
|
|
9531
9638
|
);
|
|
9532
9639
|
debug.log('llm.router', terminal.action === 'exhaust' ? 'provider-fallback-exhausted' : 'provider-fallback-stop', {
|
|
9533
9640
|
blockedProviders,
|
|
@@ -12550,6 +12657,7 @@ function makeCodexProvider(cfg: UCLLMConfig): LLMProvider {
|
|
|
12550
12657
|
const compactChars = compactWireBody.length;
|
|
12551
12658
|
if (compactChars < requestChars) {
|
|
12552
12659
|
messages.splice(0, messages.length, ...compacted.messages);
|
|
12660
|
+
await requestGuard.onCompacted?.(messages);
|
|
12553
12661
|
requestBody = compactBody;
|
|
12554
12662
|
serializedWireBody = compactWireBody;
|
|
12555
12663
|
requestChars = compactChars;
|
|
@@ -12586,6 +12694,13 @@ function makeCodexProvider(cfg: UCLLMConfig): LLMProvider {
|
|
|
12586
12694
|
compacted: requestCompacted,
|
|
12587
12695
|
reason: requestCompactReason,
|
|
12588
12696
|
});
|
|
12697
|
+
if (requestChars > requestGuard.maxChars) {
|
|
12698
|
+
debug.log('llm.request', 'request-size-limit-blocked', {
|
|
12699
|
+
provider: 'openai-codex', requestChars, maxChars: requestGuard.maxChars,
|
|
12700
|
+
compacted: requestCompacted, reason: requestCompactReason,
|
|
12701
|
+
}, { level: 'error' });
|
|
12702
|
+
throw new RequestSizeLimitError(requestChars, requestGuard.maxChars, requestCompactReason);
|
|
12703
|
+
}
|
|
12589
12704
|
}
|
|
12590
12705
|
yield* streamCodexResponsesEvents(responsesUrl, tokens.accessToken, requestBody, opts.signal, {
|
|
12591
12706
|
accountId,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { withFileLockSync } from '../../storage/file-lock.js';
|
|
2
|
-
import { appendFileSync, existsSync, mkdirSync, readFileSync, readdirSync, renameSync, statSync, writeFileSync } from 'node:fs';
|
|
2
|
+
import { appendFileSync, closeSync, existsSync, lstatSync, mkdirSync, openSync, readFileSync, readdirSync, renameSync, statSync, unlinkSync, writeFileSync } from 'node:fs';
|
|
3
3
|
import { dirname, join } from 'node:path';
|
|
4
4
|
import { CardStore, taskCardsDir, type TaskCard } from '../../task-cards/card-store.js';
|
|
5
5
|
import { Database } from 'bun:sqlite';
|
|
@@ -433,13 +433,36 @@ export function readCompletionHeartbeat(root: string): CompletionHeartbeat | und
|
|
|
433
433
|
return { runId, node: node as Node, window: window as Window, mode: mode as Mode, boardWrittenAt, tickCompletedAt };
|
|
434
434
|
} catch { return undefined; }
|
|
435
435
|
}
|
|
436
|
-
/**
|
|
436
|
+
/** Serialize read/merge/write so overlapping runs cannot replace a newer heartbeat with stale timestamps. */
|
|
437
437
|
function recordCompletionHeartbeat(root: string, completion: CompletionHeartbeat): void {
|
|
438
438
|
const path = completionHeartbeatPath(root);
|
|
439
439
|
mkdirSync(dirname(path), { recursive: true });
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
440
|
+
withFileLockSync(`${path}.lock`, () => {
|
|
441
|
+
const previous = readCompletionHeartbeat(root);
|
|
442
|
+
const later = (left: string | null | undefined, right: string | null): string | null => {
|
|
443
|
+
if (!left) return right;
|
|
444
|
+
if (!right) return left;
|
|
445
|
+
return Date.parse(left) >= Date.parse(right) ? left : right;
|
|
446
|
+
};
|
|
447
|
+
const tickCompletedAt = later(previous?.tickCompletedAt, completion.tickCompletedAt);
|
|
448
|
+
const boardWrittenAt = later(previous?.boardWrittenAt, completion.boardWrittenAt);
|
|
449
|
+
const completionIsNewest = !!completion.tickCompletedAt
|
|
450
|
+
&& (!previous?.tickCompletedAt || Date.parse(completion.tickCompletedAt) >= Date.parse(previous.tickCompletedAt));
|
|
451
|
+
const metadata = previous && !completionIsNewest ? previous : completion;
|
|
452
|
+
const merged: CompletionHeartbeat = { ...metadata, boardWrittenAt, tickCompletedAt };
|
|
453
|
+
const temp = `${path}.${process.pid}.tmp`;
|
|
454
|
+
try {
|
|
455
|
+
const previousTemp = lstatSync(temp);
|
|
456
|
+
if (previousTemp.isSymbolicLink()) throw new Error(`completion heartbeat temp is a symlink: ${temp}`);
|
|
457
|
+
unlinkSync(temp); // Recover a regular temp left by a crashed writer while holding the record lock.
|
|
458
|
+
} catch (error) {
|
|
459
|
+
if (!(error instanceof Error && 'code' in error && error.code === 'ENOENT')) throw error;
|
|
460
|
+
}
|
|
461
|
+
const fd = openSync(temp, 'wx'); // Never follow a temp-path symlink.
|
|
462
|
+
try { writeFileSync(fd, JSON.stringify(merged)); }
|
|
463
|
+
finally { closeSync(fd); }
|
|
464
|
+
renameSync(temp, path);
|
|
465
|
+
});
|
|
443
466
|
}
|
|
444
467
|
function restorePrevious(root: string, day: string, mode: Mode): Pick<TickState, 'cards' | 'cells' | 'launched'> | null {
|
|
445
468
|
const dir = join(root, 'loop', 'orchestrator');
|
|
@@ -1027,10 +1050,7 @@ export async function runOrchestratorNode(node: Node, deps: TickDeps = {}): Prom
|
|
|
1027
1050
|
observe('tick', state.nodes[node], state.cells.length);
|
|
1028
1051
|
if (mode === 'live' && node === 'place' && state.boardWrittenAt) {
|
|
1029
1052
|
// A board write can succeed even when a later cell fails. Advance its clock without claiming run completion.
|
|
1030
|
-
|
|
1031
|
-
recordCompletionHeartbeat(root, previous
|
|
1032
|
-
? { ...previous, boardWrittenAt: state.boardWrittenAt }
|
|
1033
|
-
: { runId, node, window, mode, boardWrittenAt: state.boardWrittenAt, tickCompletedAt: null });
|
|
1053
|
+
recordCompletionHeartbeat(root, { runId, node, window, mode, boardWrittenAt: state.boardWrittenAt, tickCompletedAt: null });
|
|
1034
1054
|
}
|
|
1035
1055
|
mkdirSync(dirname(path), { recursive: true });
|
|
1036
1056
|
writeFileSync(path, JSON.stringify(state));
|
|
@@ -45,6 +45,7 @@ export const FEATURE_MATURITY = {
|
|
|
45
45
|
'/loops': { pwa: 'beta' },
|
|
46
46
|
'/ops/release': { pwa: 'ops' },
|
|
47
47
|
'/ops/seats': { pwa: 'ops' },
|
|
48
|
+
'/ops/resources': { pwa: 'ops' },
|
|
48
49
|
'/ops/checklist': { pwa: 'ops' },
|
|
49
50
|
'/ceo': { pwa: 'ops' },
|
|
50
51
|
'/decisions': { pwa: 'ops' },
|
|
@@ -61,7 +62,7 @@ export const FEATURE_MATURITY = {
|
|
|
61
62
|
cliRoot: {
|
|
62
63
|
preview: 'beta', pty: 'beta', pr: 'beta', repo: 'beta', role: 'beta', machine: 'beta', image: 'beta', 'agent-env': 'beta', catalog: 'beta',
|
|
63
64
|
where: 'stable', bench: 'beta', shadow: 'beta', llm: 'beta', storage: 'beta', leader: 'beta',
|
|
64
|
-
pod: 'beta', browser: 'beta', questions: 'beta', usage: 'stable', live: 'beta',
|
|
65
|
+
pod: 'beta', browser: 'beta', questions: 'beta', usage: 'stable', runs: 'beta', live: 'beta',
|
|
65
66
|
research: 'beta', release: 'beta', rfc: 'beta', know: 'beta', life: 'beta', freeze: 'beta', herdr: 'beta', flow: 'beta', seat: 'beta', hq: 'beta', steward: 'beta', coord: 'beta', context: 'beta', 'model-watch': 'beta', doctor: 'stable',
|
|
66
67
|
control: 'beta', resources: 'beta', hooks: 'beta', setup: 'stable', start: 'stable',
|
|
67
68
|
grounding: 'beta', graph: 'beta', loop: 'stable', resource: 'beta', card: 'stable', 'launch-head': 'beta',
|
package/src/msg/msg-store.ts
CHANGED
|
@@ -220,11 +220,14 @@ export class MsgStore {
|
|
|
220
220
|
|
|
221
221
|
/** Append once for a coordination comment, task failure, or decided notification. */
|
|
222
222
|
appendWithProvenance(input: MessageEnvelope, provenanceKey: string): Message {
|
|
223
|
-
if (typeof provenanceKey !== 'string' || !/^(?:coord|ta-failure|decision):[^:]+:[^:]+$/.test(provenanceKey)
|
|
223
|
+
if (typeof provenanceKey !== 'string' || !/^(?:coord|ta-failure|decision):[^:]+:[^:]+$/.test(provenanceKey) &&
|
|
224
|
+
!/^release-stage:[^:]+:event$/.test(provenanceKey)) {
|
|
224
225
|
throw new Error('invalid message provenance key');
|
|
225
226
|
}
|
|
226
227
|
const msg = validateMessageEnvelope(input);
|
|
227
|
-
if (provenanceKey.split(':')[2] !== msg.to)
|
|
228
|
+
if (!provenanceKey.startsWith('release-stage:') && provenanceKey.split(':')[2] !== msg.to) {
|
|
229
|
+
throw new Error('provenance recipient does not match message recipient');
|
|
230
|
+
}
|
|
228
231
|
return this.db.transaction(() => {
|
|
229
232
|
const existing = this.db.query(`SELECT m.id, m.sender, m.recipient, m.body, m.kind, m.reply_to, m.created_at
|
|
230
233
|
FROM msg_provenance p JOIN msg_messages m ON m.id = p.message_id WHERE p.provenance_key = ?`)
|
|
@@ -723,6 +723,19 @@ export const nativeToolCatalog: NativeToolCatalogEntry[] = [
|
|
|
723
723
|
defaultEnabled: true,
|
|
724
724
|
intentScope: 'ops-ui',
|
|
725
725
|
},
|
|
726
|
+
{
|
|
727
|
+
id: 'elanous_ux_sim_devices',
|
|
728
|
+
kind: 'other',
|
|
729
|
+
aliases: ['ElanousUxSimDevices'],
|
|
730
|
+
displayName: 'ElanousUxSimDevices',
|
|
731
|
+
description: 'Read the canonical mock/test-device catalog and its scenarios. Does not execute devices or update usage metadata. MCP callback only.',
|
|
732
|
+
promptSummary: '`elanous_ux_sim_devices` (read-only catalog of mock/test devices and reusable scenarios)',
|
|
733
|
+
host: ['mcp'],
|
|
734
|
+
safety: ['read-only'],
|
|
735
|
+
supportsParallel: true,
|
|
736
|
+
defaultEnabled: true,
|
|
737
|
+
intentScope: 'ops-ui',
|
|
738
|
+
},
|
|
726
739
|
{
|
|
727
740
|
id: 'elanous_asana_workspaces',
|
|
728
741
|
kind: 'other', aliases: ['ElanousAsanaWorkspaces'], displayName: 'ElanousAsanaWorkspaces',
|
|
@@ -86,6 +86,7 @@ import {
|
|
|
86
86
|
isTemplateCapabilityPreviewPath,
|
|
87
87
|
type DevicesRouteOpts,
|
|
88
88
|
} from './devices.js';
|
|
89
|
+
import { handleUxSimDevices, isUxSimDevicesPath } from './ux-sim-devices.js';
|
|
89
90
|
import {
|
|
90
91
|
handleMissionsTest,
|
|
91
92
|
isMissionsTestPath,
|
|
@@ -1477,6 +1478,13 @@ export async function routeRequest(
|
|
|
1477
1478
|
return handleDevices(req, opts.devices);
|
|
1478
1479
|
}
|
|
1479
1480
|
|
|
1481
|
+
// Mock/test devices are a catalog reference, separate from the live fleet at /v1/devices.
|
|
1482
|
+
if (isUxSimDevicesPath(pathname)) {
|
|
1483
|
+
if (!opts.metaApi) return jsonResponse({ error: 'meta-api-not-wired' }, 503);
|
|
1484
|
+
if (!checkAuth(req, opts.metaApi)) return jsonResponse({ error: 'unauthorized' }, 401);
|
|
1485
|
+
return handleUxSimDevices(req);
|
|
1486
|
+
}
|
|
1487
|
+
|
|
1480
1488
|
// Same owner auth as the neighbouring GETs (short-lived owner tokens · same-origin PWA); #23932 compared the admin
|
|
1481
1489
|
// bearer only, so a PWA on a short-lived token got 401 and the loop map stayed empty.
|
|
1482
1490
|
if (pathname === '/v1/loops/resources' && method === 'GET') {
|
package/src/nexus/api/ops-api.ts
CHANGED
|
@@ -13,6 +13,8 @@ import { createOverviewCache } from '../../ops/overview-cache.js';
|
|
|
13
13
|
import { resourcesFromOverview } from '../../ops/resources.js';
|
|
14
14
|
import { loopsMapFromCache } from '../../ops/loops-map.js';
|
|
15
15
|
import { parseSince } from '../../ops/overview-collect.js';
|
|
16
|
+
import { handleResourceLedgerApi } from './resource-ledger.js';
|
|
17
|
+
import { handleResourceGuardianApi } from './resource-guardian.js';
|
|
16
18
|
import type { MetaApiOpts } from './meta-api.js';
|
|
17
19
|
|
|
18
20
|
const VERSION = /^\d+\.\d+\.\d+(?:-(?:rc|alpha|beta)\.\d+)?$/;
|
|
@@ -204,6 +206,8 @@ export function handleOpsApi(req: Request, metaApi: MetaApiOpts | undefined): Re
|
|
|
204
206
|
debug.log('ops.api', 'refused', { path: pathname, source: signal.operatorSource });
|
|
205
207
|
// RES-FLOOR-API: no credential was offered at all — this endpoint names it 401; every other path keeps 403.
|
|
206
208
|
if (pathname === '/v1/ops/resources') return jsonResponse({ error: 'unauthorized' }, 401);
|
|
209
|
+
if (pathname === '/v1/ops/resources/ledger' && !offeredCredential(req)) return jsonResponse({ error: 'unauthorized' }, 401);
|
|
210
|
+
if (pathname === '/v1/ops/resources/guardian' && !offeredCredential(req)) return jsonResponse({ error: 'unauthorized' }, 401);
|
|
207
211
|
// LOOP-MAP-API: a request that offers no credential at all is 401 in the same body shape;
|
|
208
212
|
// a credential that is not an operator stays 403, exactly like the neighbouring ops paths.
|
|
209
213
|
if (pathname === '/v1/ops/loops-map' && !offeredCredential(req)) return jsonResponse({ error: 'unauthorized' }, 401);
|
|
@@ -233,6 +237,8 @@ export function handleOpsApi(req: Request, metaApi: MetaApiOpts | undefined): Re
|
|
|
233
237
|
? served(jsonResponse(resourcesFromOverview(peeked.snapshot, peeked.pods, peeked.at)))
|
|
234
238
|
: served(jsonResponse({ stale: true })));
|
|
235
239
|
}
|
|
240
|
+
if (pathname === '/v1/ops/resources/ledger') return served(handleResourceLedgerApi());
|
|
241
|
+
if (pathname === '/v1/ops/resources/guardian') return served(handleResourceGuardianApi());
|
|
236
242
|
if (pathname === '/v1/ops/loops-map') {
|
|
237
243
|
// LOOP-MAP-API — projects only the shared overview cache's loops snapshot
|
|
238
244
|
// (name·era·beat cell observedAt; null/unmeasured value and reason preserved);
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { getLatestResourceFailure, getLatestResourceSnapshot } from '../../resource-ledger/guardian-reconcile.js';
|
|
2
|
+
import { redactSecretText } from '../../debug/log.js';
|
|
3
|
+
import { jsonResponse } from './json-response.js';
|
|
4
|
+
|
|
5
|
+
const safeText = (text: string) => redactSecretText(text).split(/(\s+)/u).map(part => part.includes('/') ? '[path]' : part).join('');
|
|
6
|
+
|
|
7
|
+
/** Project the last guardian decision only. This endpoint never triggers collection or cleanup. */
|
|
8
|
+
export function handleResourceGuardianApi(): Response {
|
|
9
|
+
const snapshot = getLatestResourceSnapshot();
|
|
10
|
+
if (!snapshot) {
|
|
11
|
+
const failure = getLatestResourceFailure();
|
|
12
|
+
return jsonResponse({ state: failure ? 'failed' : 'pending', stale: true, observedAt: null,
|
|
13
|
+
...(failure ? { staleReason: safeText(failure.reason), lastFailureAt: failure.failedAt } : { staleReason: 'guardian-has-not-reconciled' }),
|
|
14
|
+
findings: [], cleanup: { reaped: 0, skipped: 0, errors: 0 } });
|
|
15
|
+
}
|
|
16
|
+
return jsonResponse({ state: snapshot.stale ? 'stale' : 'ready', stale: snapshot.stale,
|
|
17
|
+
observedAt: snapshot.observedAt,
|
|
18
|
+
...(snapshot.staleReason ? { staleReason: safeText(snapshot.staleReason) } : {}),
|
|
19
|
+
...(snapshot.lastFailureAt ? { lastFailureAt: snapshot.lastFailureAt } : {}),
|
|
20
|
+
findings: snapshot.findings.map(finding => ({ kind: finding.kind, host: finding.host, id: finding.id,
|
|
21
|
+
...('fp' in finding && finding.fp ? { fp: finding.fp } : {}), detail: safeText(finding.detail), action: finding.action })),
|
|
22
|
+
cleanup: { reaped: snapshot.cleanup.reaped.length, skipped: snapshot.cleanup.skipped.length, errors: snapshot.cleanup.errors.length },
|
|
23
|
+
releaseReservation: { status: snapshot.releaseReservation.status,
|
|
24
|
+
reason: 'reason' in snapshot.releaseReservation ? safeText(snapshot.releaseReservation.reason) : 'free' },
|
|
25
|
+
});
|
|
26
|
+
}
|