elanous 0.3.1 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/apps/pwa/out/404/index.html +1 -1
- package/apps/pwa/out/404.html +1 -1
- package/apps/pwa/out/_next/static/{98VlBaYvL-VVnCq93_lFS → 5URFQKPO21SIgTlLvb1Jv}/_buildManifest.js +1 -1
- package/apps/pwa/out/_next/static/chunks/001d1d30.3b264a3a5834784b.js +1 -0
- package/apps/pwa/out/_next/static/chunks/{9531.ffbcd1e59e2c32fc.js → 1004.b334bd3d776bd455.js} +4 -4
- package/apps/pwa/out/_next/static/chunks/1044.f780ef30fbeec1d2.js +1 -0
- package/apps/pwa/out/_next/static/chunks/106.ef1dcdfef46b0b72.js +1 -0
- package/apps/pwa/out/_next/static/chunks/1207.912f5869bdf13244.js +1 -0
- package/apps/pwa/out/_next/static/chunks/1226-29248177d8e43df5.js +1 -0
- package/apps/pwa/out/_next/static/chunks/128757ea.677175b2ad79b371.js +1 -0
- package/apps/pwa/out/_next/static/chunks/1469.157ee10170c461ab.js +1 -0
- package/apps/pwa/out/_next/static/chunks/1475-f4208d07b2b41e44.js +1 -0
- package/apps/pwa/out/_next/static/chunks/1525.9fd05c15746d77c8.js +1 -0
- package/apps/pwa/out/_next/static/chunks/{5536.bbb17703f46e52e7.js → 1549.81d2a59aa303b629.js} +2 -2
- package/apps/pwa/out/_next/static/chunks/1596-80cc66168f6a520b.js +1 -0
- package/apps/pwa/out/_next/static/chunks/1695-e63446cc38743225.js +1 -0
- package/apps/pwa/out/_next/static/chunks/224.0585d01ba7f4f898.js +226 -0
- package/apps/pwa/out/_next/static/chunks/2277.80d00b0a6fe67cad.js +94 -0
- package/apps/pwa/out/_next/static/chunks/2287.6a4cce8ac8897fda.js +1 -0
- package/apps/pwa/out/_next/static/chunks/2378.0805bd9972a241f3.js +24 -0
- package/apps/pwa/out/_next/static/chunks/{751.95d127a92f7817e3.js → 2538.f7b0fd1f3b0c2bff.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/25600806.42d40cb74fdc4bf3.js +122 -0
- package/apps/pwa/out/_next/static/chunks/2785-33003c356341fab5.js +1 -0
- package/apps/pwa/out/_next/static/chunks/280-f880696e14bc1032.js +1 -0
- package/apps/pwa/out/_next/static/chunks/29.135cc356bdf1a8be.js +1 -0
- package/apps/pwa/out/_next/static/chunks/2987.f36195bfacdbcc4e.js +148 -0
- package/apps/pwa/out/_next/static/chunks/3111-f3c2382dc49d4719.js +1 -0
- package/apps/pwa/out/_next/static/chunks/{7479.d00f44fde98cf34e.js → 3130.69315cfa410b3cc7.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/3135-4f30d19149be541d.js +1 -0
- package/apps/pwa/out/_next/static/chunks/336.dd6c1b81512124e6.js +74 -0
- package/apps/pwa/out/_next/static/chunks/337.35019dda0819a283.js +64 -0
- package/apps/pwa/out/_next/static/chunks/3393.cbbe17ef7aeee5e7.js +2 -0
- package/apps/pwa/out/_next/static/chunks/3394.8a08fac56ac2f941.js +1 -0
- package/apps/pwa/out/_next/static/chunks/3461-113eb7d3afb5969e.js +1 -0
- package/apps/pwa/out/_next/static/chunks/3603-473956ca996d5b03.js +1 -0
- package/apps/pwa/out/_next/static/chunks/3687.55335796604accd0.js +1 -0
- package/apps/pwa/out/_next/static/chunks/3692-ed2cebf0d6c4e273.js +1 -0
- package/apps/pwa/out/_next/static/chunks/3702-d50492fee8529bd7.js +1 -0
- package/apps/pwa/out/_next/static/chunks/3782.3ead96e62c8ac5c5.js +1 -0
- package/apps/pwa/out/_next/static/chunks/3849-59a5a66baa48998b.js +1 -0
- package/apps/pwa/out/_next/static/chunks/3965.1ae261de91a7507b.js +115 -0
- package/apps/pwa/out/_next/static/chunks/3985-432efaf9bc4e4123.js +1 -0
- package/apps/pwa/out/_next/static/chunks/4055-90325ff209cd557e.js +1 -0
- package/apps/pwa/out/_next/static/chunks/4174.d97cc593a5cf01bc.js +1 -0
- package/apps/pwa/out/_next/static/chunks/4276.863502da440e095f.js +1 -0
- package/apps/pwa/out/_next/static/chunks/4450-ea0ec552f18d799d.js +1 -0
- package/apps/pwa/out/_next/static/chunks/{5571.a062963c309338b4.js → 448.26b198f3b58cbcf9.js} +2 -2
- package/apps/pwa/out/_next/static/chunks/4495.2fbef8546af0792c.js +1 -0
- package/apps/pwa/out/_next/static/chunks/4578.04c77c13e3c62361.js +1 -0
- package/apps/pwa/out/_next/static/chunks/4674.e41c0f9b62fed6e2.js +36 -0
- package/apps/pwa/out/_next/static/chunks/{7197.7b19aa948048e19a.js → 482.52b487cbac96db29.js} +2 -2
- package/apps/pwa/out/_next/static/chunks/4841.b78af1deed2d3d3f.js +23 -0
- package/apps/pwa/out/_next/static/chunks/4869.839bacfaab182108.js +1 -0
- package/apps/pwa/out/_next/static/chunks/49263d14.0a995d745de3f818.js +1 -0
- package/apps/pwa/out/_next/static/chunks/4935.7f5b0bd162f201cc.js +1 -0
- package/apps/pwa/out/_next/static/chunks/500-57c24ef4341cdb21.js +1 -0
- package/apps/pwa/out/_next/static/chunks/5017-e079ea96feddbe85.js +1 -0
- package/apps/pwa/out/_next/static/chunks/{6932.f80f616260b74131.js → 5135.7b73d384c46dc26b.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/5359-11952bdf39bae0c7.js +1 -0
- package/apps/pwa/out/_next/static/chunks/{9705-bbcd00db4ffd3484.js → 5456-e9f9027af2bb4799.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/{4506-f8439f6fbd0a8483.js → 5457-5459ae7638b42dff.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/5521-16fb56b15c809e4a.js +1 -0
- package/apps/pwa/out/_next/static/chunks/5616-33de319a016180cd.js +1 -0
- package/apps/pwa/out/_next/static/chunks/5646.41a48aad446799fa.js +1 -0
- package/apps/pwa/out/_next/static/chunks/5716.ad2c840320ab9472.js +41 -0
- package/apps/pwa/out/_next/static/chunks/5730-ca5565abe3d360ad.js +1 -0
- package/apps/pwa/out/_next/static/chunks/{4069a63b.a074c39997560438.js → 57af6223.b79d56584a040f84.js} +7 -7
- package/apps/pwa/out/_next/static/chunks/5841.26bcfac34b5889b4.js +1 -0
- package/apps/pwa/out/_next/static/chunks/586.658dedb3bc558b22.js +1 -0
- package/apps/pwa/out/_next/static/chunks/{9693-ab5bc28704a66601.js → 5892-6f0a1ee3c6c38173.js} +3 -3
- package/apps/pwa/out/_next/static/chunks/5894-7d90af46a43f80d2.js +1 -0
- package/apps/pwa/out/_next/static/chunks/5927-88cbc16437430987.js +1 -0
- package/apps/pwa/out/_next/static/chunks/5960.0dfb8bd3d27e1063.js +1 -0
- package/apps/pwa/out/_next/static/chunks/597-9bf9f66dba4ccae9.js +1 -0
- package/apps/pwa/out/_next/static/chunks/6064.f425ee61836bb5c7.js +1 -0
- package/apps/pwa/out/_next/static/chunks/6074.39f84a90284749de.js +1 -0
- package/apps/pwa/out/_next/static/chunks/61.cbbe643a52cf53ab.js +62 -0
- package/apps/pwa/out/_next/static/chunks/6184.4c0ba455eb3d27a1.js +79 -0
- package/apps/pwa/out/_next/static/chunks/6224.cd0ca2a16727e9a9.js +1 -0
- package/apps/pwa/out/_next/static/chunks/6229-a83289910e01869b.js +1 -0
- package/apps/pwa/out/_next/static/chunks/6243.61e6f450a70a8d91.js +90 -0
- package/apps/pwa/out/_next/static/chunks/6295-4f1a1386f8667fd1.js +1 -0
- package/apps/pwa/out/_next/static/chunks/{5709.867a5086d782dd97.js → 6310.5fb57ba0781bc476.js} +2 -2
- package/apps/pwa/out/_next/static/chunks/{7087.99662912e4db6255.js → 6355.34fd60aca3e95acf.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/6653.f3f30affdbe694aa.js +32 -0
- package/apps/pwa/out/_next/static/chunks/6657.f57e1d8511e510ce.js +1 -0
- package/apps/pwa/out/_next/static/chunks/6672-bc0f317b72f0bbd2.js +1 -0
- package/apps/pwa/out/_next/static/chunks/6761-2143fe6fe3578118.js +1 -0
- package/apps/pwa/out/_next/static/chunks/{6747.365eefdf3b4a0226.js → 6764.ec2d2cf14278c473.js} +3 -3
- package/apps/pwa/out/_next/static/chunks/6955-75b2659eafd27893.js +1 -0
- package/apps/pwa/out/_next/static/chunks/{52bafb67.054ec9d048116d83.js → 6cd6be76.9d27e7414d939d53.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/{77a1aef7.ba1c04f78a1493d9.js → 6fa80ede.7b05276e6be12b1d.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/7051-406b0538949c932f.js +1 -0
- package/apps/pwa/out/_next/static/chunks/7222.df77e48936e60d2e.js +1 -0
- package/apps/pwa/out/_next/static/chunks/7242-08db87893cf792b7.js +1 -0
- package/apps/pwa/out/_next/static/chunks/7307-3172df9d07acb8e0.js +1 -0
- package/apps/pwa/out/_next/static/chunks/{156.389be47355dc94c7.js → 7613.4523dc082005e359.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/{234.f25f5b0d65f89af8.js → 7644.bdbfed1da174219e.js} +2 -2
- package/apps/pwa/out/_next/static/chunks/7648-7c7346c2a73503f9.js +1 -0
- package/apps/pwa/out/_next/static/chunks/7788.ffd9f4d57647a354.js +149 -0
- package/apps/pwa/out/_next/static/chunks/{1972.a8d37aadbc59ac43.js → 7793.4d3de6ce591fbc21.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/{8469.f67afe44a0fa8af0.js → 7816.4b8c0fa1e5b4ec4f.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/7988-bbcd506079ceceb6.js +1 -0
- package/apps/pwa/out/_next/static/chunks/{367.1ffe524fe1ee7803.js → 8066.32863fb9dd2dc278.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/8073-cdf4607b80d127fe.js +1 -0
- package/apps/pwa/out/_next/static/chunks/{691.6ff56b5f4b6ec918.js → 8108.2cd332dff4f07acd.js} +4 -4
- package/apps/pwa/out/_next/static/chunks/8414-77dbc0c35bc85f42.js +1 -0
- package/apps/pwa/out/_next/static/chunks/849.fe241354322a97e9.js +27 -0
- package/apps/pwa/out/_next/static/chunks/8665.900daf2473f7032a.js +1 -0
- package/apps/pwa/out/_next/static/chunks/8713.11d79e4e023ab74f.js +1 -0
- package/apps/pwa/out/_next/static/chunks/8718.137b7ce2c3cae66b.js +8 -0
- package/apps/pwa/out/_next/static/chunks/8764.39400f626e015e79.js +287 -0
- package/apps/pwa/out/_next/static/chunks/8803.d3504166481bc91e.js +24 -0
- package/apps/pwa/out/_next/static/chunks/{9103.bd34694d18c05083.js → 8939.a14783a0a81e5e62.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/8963.928e777871d1d637.js +104 -0
- package/apps/pwa/out/_next/static/chunks/8987-372a6317aaf83fa9.js +1 -0
- package/apps/pwa/out/_next/static/chunks/9039.03e40d9f9fd90920.js +1 -0
- package/apps/pwa/out/_next/static/chunks/{c58bec24.d208786405e23259.js → 922c23f1.797bdf68f73f0488.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/{5998.d426273cdd00305a.js → 9546.3a0afc5d5fa0851d.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/9671.d935d274b65718e4.js +1 -0
- package/apps/pwa/out/_next/static/chunks/9756.24e020ddf99f7020.js +77 -0
- package/apps/pwa/out/_next/static/chunks/9777-6b21b6f1989ea7b1.js +1 -0
- package/apps/pwa/out/_next/static/chunks/9947.7a8d89554e873316.js +1 -0
- package/apps/pwa/out/_next/static/chunks/9980.fd66776b3782eeb4.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/_not-found/page-2c29b6716055aa54.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/approvals/page-822c5395a88eb1e5.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/autopilot/page-9d7432ad7cb155ce.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/board/page-26941f067e899ed3.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/botlab/{page-dbc30fbf2e8933d9.js → page-3c29b0e0d681e33d.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/app/bots/page-d1cdb65c4ceb5c33.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/ceo/page-1224ce11e2a2eef5.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/chat/page-940b44876305fac2.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/consult/page-c5b8f3b77568a8e9.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/control/page-77db1e47b120b94e.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/decisions/page-3048505d466ec98a.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/design-check/page-8d97da172a2cd552.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/editor/page-6a36535d413596b1.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/exec/page-8696a777c88bacc2.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/field/page-c4f1095489266f97.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/healthz/route-2c29b6716055aa54.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/inside/page-ea374796ca2317b9.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/intake/page-111a4245428caa84.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/layout-956789c8340e289e.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/live/page-7645ef6d17d2314b.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/live-run/page-3448160192777209.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/loops/page-e911bcd2bfb5c305.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/market/page-52b55f54c9d8e0fb.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/missions/[id]/page-6a904a7d1b3aee11.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/morning/page-afa5068541a55cd1.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/not-found-3eb72a4f6788a903.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/observatory/page-527a398eac0b4699.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/ops/checklist/page-c9e4ca5025534239.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/ops/release/page-63c8938149254e9d.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/ops/resources/page-da8f855dc25cae3d.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/ops/seats/page-f48403ffee4c4b77.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/outputs/page-905013106f55daad.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/page-f95beb047d743d09.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/reflection/page-3b0434a6fc1154e1.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/scheduler/page-9deae0524ce7a7e2.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/sessions/page-4f4f0858754f73a4.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/settings/devices/page-73857fa536e7c832.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/settings/page-c0bdee145df0f6c9.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/setup/done/page-2e8cc4d212f1ca01.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/setup/layout-2c29b6716055aa54.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/setup/page-fe67b4e66f496b3a.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/share/page-b8c0c73c2e5a8917.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/showroom/page-2e8ed69b1a70c746.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/tasks/page-aedaede687cc293d.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/term/page-bb5c95ce68358be2.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/today/page-c6b096777f73c43a.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/trace/page-45967d78c1748112.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/vault/page-9a1cdd7c5a50bf73.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/workflows/chat-ui/page-c54c8b957ebf94e2.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/workflows/page-9dc19aee0932542a.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/workspace/page-8f291522cb3d91a6.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/worktrees/page-52b36e1c8acd087f.js +1 -0
- package/apps/pwa/out/_next/static/chunks/{e7a93f74.aa8572069f848f17.js → d7c7394d.c015f14113d7faef.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/db2f0161-8781ed841c51137a.js +1 -0
- package/apps/pwa/out/_next/static/chunks/f6a577ab-4b799b8c69e49cfd.js +1 -0
- package/apps/pwa/out/_next/static/chunks/framework-01d45c12f1bce665.js +1 -0
- package/apps/pwa/out/_next/static/chunks/main-0a9bbda118d4e9dc.js +1 -0
- package/apps/pwa/out/_next/static/chunks/main-app-7f817b9fe2a360cc.js +1 -0
- package/apps/pwa/out/_next/static/chunks/pages/_app-f953b3d6c9ece48e.js +1 -0
- package/apps/pwa/out/_next/static/chunks/pages/_error-1a3e6e3f0aa99004.js +1 -0
- package/apps/pwa/out/_next/static/chunks/webpack-090556529ba4efb6.js +1 -0
- package/apps/pwa/out/approvals/index.html +1 -1
- package/apps/pwa/out/approvals/index.txt +22 -22
- package/apps/pwa/out/autopilot/index.html +1 -1
- package/apps/pwa/out/autopilot/index.txt +22 -22
- package/apps/pwa/out/board/index.html +1 -1
- package/apps/pwa/out/board/index.txt +22 -22
- package/apps/pwa/out/botlab/index.html +1 -1
- package/apps/pwa/out/botlab/index.txt +21 -21
- package/apps/pwa/out/bots/index.html +1 -1
- package/apps/pwa/out/bots/index.txt +21 -21
- package/apps/pwa/out/ceo/index.html +1 -1
- package/apps/pwa/out/ceo/index.txt +22 -22
- package/apps/pwa/out/chat/index.html +1 -1
- package/apps/pwa/out/chat/index.txt +21 -21
- package/apps/pwa/out/consult/index.html +1 -1
- package/apps/pwa/out/consult/index.txt +22 -22
- package/apps/pwa/out/control/index.html +1 -1
- package/apps/pwa/out/control/index.txt +22 -22
- package/apps/pwa/out/decisions/index.html +1 -1
- package/apps/pwa/out/decisions/index.txt +21 -21
- package/apps/pwa/out/design-check/index.html +1 -1
- package/apps/pwa/out/design-check/index.txt +22 -22
- package/apps/pwa/out/editor/index.html +1 -1
- package/apps/pwa/out/editor/index.txt +22 -22
- package/apps/pwa/out/exec/index.html +1 -1
- package/apps/pwa/out/exec/index.txt +22 -22
- package/apps/pwa/out/field/index.html +1 -1
- package/apps/pwa/out/field/index.txt +22 -22
- package/apps/pwa/out/healthz +1 -1
- package/apps/pwa/out/index.html +1 -1
- package/apps/pwa/out/index.txt +21 -21
- package/apps/pwa/out/inside/index.html +1 -1
- package/apps/pwa/out/inside/index.txt +21 -21
- package/apps/pwa/out/intake/index.html +1 -1
- package/apps/pwa/out/intake/index.txt +22 -22
- package/apps/pwa/out/live/index.html +1 -1
- package/apps/pwa/out/live/index.txt +22 -22
- package/apps/pwa/out/live-run/index.html +1 -1
- package/apps/pwa/out/live-run/index.txt +22 -22
- package/apps/pwa/out/loops/index.html +1 -1
- package/apps/pwa/out/loops/index.txt +21 -21
- package/apps/pwa/out/market/index.html +1 -1
- package/apps/pwa/out/market/index.txt +21 -21
- package/apps/pwa/out/missions/placeholder/index.html +1 -1
- package/apps/pwa/out/missions/placeholder/index.txt +21 -21
- package/apps/pwa/out/morning/index.html +1 -1
- package/apps/pwa/out/morning/index.txt +22 -22
- package/apps/pwa/out/observatory/index.html +1 -1
- package/apps/pwa/out/observatory/index.txt +22 -22
- package/apps/pwa/out/ops/checklist/index.html +1 -1
- package/apps/pwa/out/ops/checklist/index.txt +21 -21
- package/apps/pwa/out/ops/release/index.html +1 -1
- package/apps/pwa/out/ops/release/index.txt +21 -21
- package/apps/pwa/out/ops/resources/index.html +1 -1
- package/apps/pwa/out/ops/resources/index.txt +21 -21
- package/apps/pwa/out/ops/seats/index.html +1 -1
- package/apps/pwa/out/ops/seats/index.txt +21 -21
- package/apps/pwa/out/outputs/index.html +1 -1
- package/apps/pwa/out/outputs/index.txt +21 -21
- package/apps/pwa/out/reflection/index.html +1 -1
- package/apps/pwa/out/reflection/index.txt +22 -22
- package/apps/pwa/out/scheduler/index.html +1 -1
- package/apps/pwa/out/scheduler/index.txt +22 -22
- package/apps/pwa/out/sessions/index.html +1 -1
- package/apps/pwa/out/sessions/index.txt +21 -21
- package/apps/pwa/out/settings/devices/index.html +1 -1
- package/apps/pwa/out/settings/devices/index.txt +22 -22
- package/apps/pwa/out/settings/index.html +1 -1
- package/apps/pwa/out/settings/index.txt +22 -22
- package/apps/pwa/out/setup/done/index.html +1 -1
- package/apps/pwa/out/setup/done/index.txt +22 -22
- package/apps/pwa/out/setup/index.html +1 -1
- package/apps/pwa/out/setup/index.txt +22 -22
- package/apps/pwa/out/share/index.html +1 -1
- package/apps/pwa/out/share/index.txt +22 -22
- package/apps/pwa/out/showroom/index.html +1 -1
- package/apps/pwa/out/showroom/index.txt +21 -21
- package/apps/pwa/out/tasks/index.html +1 -1
- package/apps/pwa/out/tasks/index.txt +22 -22
- package/apps/pwa/out/term/index.html +1 -1
- package/apps/pwa/out/term/index.txt +22 -22
- package/apps/pwa/out/today/index.html +1 -1
- package/apps/pwa/out/today/index.txt +22 -22
- package/apps/pwa/out/trace/index.html +1 -1
- package/apps/pwa/out/trace/index.txt +22 -22
- package/apps/pwa/out/vault/index.html +1 -1
- package/apps/pwa/out/vault/index.txt +22 -22
- package/apps/pwa/out/workflows/chat-ui/index.html +1 -1
- package/apps/pwa/out/workflows/chat-ui/index.txt +22 -22
- package/apps/pwa/out/workflows/index.html +1 -1
- package/apps/pwa/out/workflows/index.txt +22 -22
- package/apps/pwa/out/workspace/index.html +1 -1
- package/apps/pwa/out/workspace/index.txt +22 -22
- package/apps/pwa/out/worktrees/index.html +1 -1
- package/apps/pwa/out/worktrees/index.txt +22 -22
- package/package.json +1 -1
- package/scripts/release-loop/auto-approve-node.ts +2 -1
- package/scripts/release-loop/gate-node.ts +13 -6
- package/scripts/release-loop/gate-shard-receipts.ts +5 -0
- package/scripts/release-loop/publish-node.ts +2 -1
- package/scripts/release-loop/pwa-scenarios-node.ts +10 -1
- package/scripts/zero-sim-world.sh +1 -1
- package/src/autopilot/track-courier.ts +48 -8
- package/src/browser-cdp/client.ts +17 -3
- package/src/cli/fleet-cli.ts +9 -2
- package/src/cli/release-cli.ts +4 -3
- package/src/cli/task-plugin-wizard-host.ts +22 -3
- package/src/cli/test-state-dir-flag.ts +4 -1
- package/src/dashboard/index.ts +5 -20
- package/src/dashboard/plugin-wizard-runtime.ts +54 -7
- package/src/fleet/cloud-resource-discovery.ts +95 -0
- package/src/fleet/resource-inventory.ts +12 -3
- package/src/graph-runner/runner.ts +3 -1
- package/src/graph-wizard/mission-compose.ts +7 -1
- package/src/harness/harness-queue.ts +74 -6
- package/src/llm.ts +4 -0
- package/src/loops/budget.ts +20 -0
- package/src/onboarding/first-chat-gate.ts +4 -1
- package/src/onboarding/first-run.ts +8 -1
- package/src/onboarding.ts +5 -1
- package/src/pr-tool/census.ts +42 -5
- package/src/pty-shell/pty-manifest.ts +15 -6
- package/src/release-loop/light-rc.ts +47 -0
- package/src/research/axis-fanout.ts +15 -8
- package/src/self-dev/dev-pipeline.ts +67 -8
- package/src/self-implement/gate-remote.ts +13 -7
- package/src/sidetab-core/model.ts +64 -6
- package/src/task-orchestrator/surfaces/pod-source-receive.ts +10 -1
- package/src/tool-runtime/aside-selection-runtime.ts +89 -0
- package/src/tool-runtime/index.ts +2 -0
- package/src/tui/entry.ts +75 -21
- package/src/tui/sidetab/attach.ts +1 -0
- package/src/tui/sidetab/list.ts +2 -1
- package/src/ux-sim/release-sim-rig.ts +244 -7
- package/src/version/packed-revision.json +1 -1
- package/apps/pwa/out/_next/static/chunks/1388-1eb6df003f29bb9c.js +0 -1
- package/apps/pwa/out/_next/static/chunks/1434-a2c279f005d9c501.js +0 -1
- package/apps/pwa/out/_next/static/chunks/1464.14588e93d2ab3190.js +0 -24
- package/apps/pwa/out/_next/static/chunks/1465.85f9a1708f17853a.js +0 -1
- package/apps/pwa/out/_next/static/chunks/162.c03cf23572cb4136.js +0 -1
- package/apps/pwa/out/_next/static/chunks/1831.25868bc1e2cc0dae.js +0 -1
- package/apps/pwa/out/_next/static/chunks/1896.b6c635d0c8f65727.js +0 -1
- package/apps/pwa/out/_next/static/chunks/1939.3fa2506ad8e585bc.js +0 -1
- package/apps/pwa/out/_next/static/chunks/1997-f22e6f9510520182.js +0 -1
- package/apps/pwa/out/_next/static/chunks/2242-6edf27c6c0ae7589.js +0 -1
- package/apps/pwa/out/_next/static/chunks/2344.795de26da3261060.js +0 -23
- package/apps/pwa/out/_next/static/chunks/2491.9ac5bd2f48bcd60c.js +0 -226
- package/apps/pwa/out/_next/static/chunks/2513.e03f6479c0079b6e.js +0 -79
- package/apps/pwa/out/_next/static/chunks/2551-43782d8812989ae7.js +0 -1
- package/apps/pwa/out/_next/static/chunks/2799.12b1a3e7090e27ef.js +0 -1
- package/apps/pwa/out/_next/static/chunks/2806.f04d7923f2adadb1.js +0 -1
- package/apps/pwa/out/_next/static/chunks/2862.b8ea08cbc69a63d4.js +0 -1
- package/apps/pwa/out/_next/static/chunks/295-1ff35d6a06be8400.js +0 -1
- package/apps/pwa/out/_next/static/chunks/3161.b9eb612f66d5ff04.js +0 -1
- package/apps/pwa/out/_next/static/chunks/3233.46021e4acc520c03.js +0 -1
- package/apps/pwa/out/_next/static/chunks/325.3cfd5b7571a9f740.js +0 -1
- package/apps/pwa/out/_next/static/chunks/3384.d91656787bec7922.js +0 -104
- package/apps/pwa/out/_next/static/chunks/3414f5fa-46ae45073dca64f0.js +0 -1
- package/apps/pwa/out/_next/static/chunks/3589.a9094c2bc034055c.js +0 -287
- package/apps/pwa/out/_next/static/chunks/3777.1450df79d987816d.js +0 -1
- package/apps/pwa/out/_next/static/chunks/3877-871ea505d778a6a7.js +0 -1
- package/apps/pwa/out/_next/static/chunks/4021.28d034c7fb0a6732.js +0 -1
- package/apps/pwa/out/_next/static/chunks/4212.873105c37a871421.js +0 -1
- package/apps/pwa/out/_next/static/chunks/423-6be27163a1bce5d7.js +0 -1
- package/apps/pwa/out/_next/static/chunks/4231.644cd1e23974f1f6.js +0 -1
- package/apps/pwa/out/_next/static/chunks/4362.1adc1412509b7bb8.js +0 -94
- package/apps/pwa/out/_next/static/chunks/4431.83a630154376636a.js +0 -41
- package/apps/pwa/out/_next/static/chunks/4540-993e2e4e1d485a9a.js +0 -1
- package/apps/pwa/out/_next/static/chunks/4719-1d04b01d4d6166fc.js +0 -1
- package/apps/pwa/out/_next/static/chunks/4754-bfd5e1ad9016e176.js +0 -1
- package/apps/pwa/out/_next/static/chunks/5001.b39bf6d792509317.js +0 -64
- package/apps/pwa/out/_next/static/chunks/5021.7234ae147ab0a3e1.js +0 -77
- package/apps/pwa/out/_next/static/chunks/5230.3e562ed2a69cbc7b.js +0 -1
- package/apps/pwa/out/_next/static/chunks/5279.f75fafa19de6e131.js +0 -1
- package/apps/pwa/out/_next/static/chunks/5325-b9c1258cc7e579f9.js +0 -1
- package/apps/pwa/out/_next/static/chunks/5495-37306015ec740354.js +0 -1
- package/apps/pwa/out/_next/static/chunks/5658.d1e61315cb865f82.js +0 -32
- package/apps/pwa/out/_next/static/chunks/5765.5949ec61cec63eac.js +0 -1
- package/apps/pwa/out/_next/static/chunks/587.e6b35bcbd947c58e.js +0 -8
- package/apps/pwa/out/_next/static/chunks/5951-f25e14d03e72135a.js +0 -1
- package/apps/pwa/out/_next/static/chunks/5962-1ab68b213684716b.js +0 -1
- package/apps/pwa/out/_next/static/chunks/6352.20c708245475cf50.js +0 -1
- package/apps/pwa/out/_next/static/chunks/6548-a160aa580fb9a8ff.js +0 -1
- package/apps/pwa/out/_next/static/chunks/673-40c924b2095a05eb.js +0 -1
- package/apps/pwa/out/_next/static/chunks/6731-c9308c2f71a1b8e3.js +0 -1
- package/apps/pwa/out/_next/static/chunks/6950-5d5edab502cc208b.js +0 -1
- package/apps/pwa/out/_next/static/chunks/6982.e8fecbf7feb3aba5.js +0 -1
- package/apps/pwa/out/_next/static/chunks/7051-0dbbb2c1ce4f519e.js +0 -1
- package/apps/pwa/out/_next/static/chunks/709.bd9939dbb991de9f.js +0 -1
- package/apps/pwa/out/_next/static/chunks/7230-6527ac6be205c096.js +0 -1
- package/apps/pwa/out/_next/static/chunks/7233-d93f8ce1475f730c.js +0 -1
- package/apps/pwa/out/_next/static/chunks/7292-a4d5c8d2fe255e06.js +0 -1
- package/apps/pwa/out/_next/static/chunks/7304-dae57d61a8ccccf0.js +0 -1
- package/apps/pwa/out/_next/static/chunks/7382.bf53ab097670a235.js +0 -27
- package/apps/pwa/out/_next/static/chunks/7434.99c31fb661085b6a.js +0 -1
- package/apps/pwa/out/_next/static/chunks/7457-9ceddd4301467503.js +0 -1
- package/apps/pwa/out/_next/static/chunks/7494.d8b8d01d8dcbafe8.js +0 -2
- package/apps/pwa/out/_next/static/chunks/7554-d9cec4ac2e6d556d.js +0 -1
- package/apps/pwa/out/_next/static/chunks/7733-6f0d8da7a3f3ce91.js +0 -1
- package/apps/pwa/out/_next/static/chunks/7757-6f4b6363cc651de5.js +0 -1
- package/apps/pwa/out/_next/static/chunks/787-4d1d55b1311a5019.js +0 -1
- package/apps/pwa/out/_next/static/chunks/7915-a755af5ea69cfcfe.js +0 -1
- package/apps/pwa/out/_next/static/chunks/8029-2963385667511b16.js +0 -1
- package/apps/pwa/out/_next/static/chunks/8090.bc2349b6133b2cd5.js +0 -1
- package/apps/pwa/out/_next/static/chunks/8136.8ff2113530c27083.js +0 -1
- package/apps/pwa/out/_next/static/chunks/819.632a2a50f814f98e.js +0 -74
- package/apps/pwa/out/_next/static/chunks/8328.72a79ba9b81971ad.js +0 -1
- package/apps/pwa/out/_next/static/chunks/8448.4e25153e035786b0.js +0 -62
- package/apps/pwa/out/_next/static/chunks/8613.76dfc054055f06ba.js +0 -1
- package/apps/pwa/out/_next/static/chunks/8649-fe9165a8879fad56.js +0 -1
- package/apps/pwa/out/_next/static/chunks/8840-53feb140de04dcfe.js +0 -1
- package/apps/pwa/out/_next/static/chunks/8873.ef8a37057644f876.js +0 -1
- package/apps/pwa/out/_next/static/chunks/8917-46eb4e608f44bf74.js +0 -1
- package/apps/pwa/out/_next/static/chunks/8954.e749ad9e9c5ca512.js +0 -115
- package/apps/pwa/out/_next/static/chunks/9065.8134b756614cf83f.js +0 -36
- package/apps/pwa/out/_next/static/chunks/9089.087fcd352568af49.js +0 -1
- package/apps/pwa/out/_next/static/chunks/9140-bfcc4075cac3c387.js +0 -1
- package/apps/pwa/out/_next/static/chunks/9272.787cb6d987824708.js +0 -1
- package/apps/pwa/out/_next/static/chunks/9361-5b10273d3f34b21d.js +0 -1
- package/apps/pwa/out/_next/static/chunks/9396.097c14dd4df77c43.js +0 -1
- package/apps/pwa/out/_next/static/chunks/9468.370ef15c86f7b141.js +0 -1
- package/apps/pwa/out/_next/static/chunks/963-66d3a6d98e977ae5.js +0 -1
- package/apps/pwa/out/_next/static/chunks/9644.a615f56876ed37b8.js +0 -90
- package/apps/pwa/out/_next/static/chunks/9786.2d8c3b7368f18f1b.js +0 -148
- package/apps/pwa/out/_next/static/chunks/9805.e17f9c6e3811e48b.js +0 -24
- package/apps/pwa/out/_next/static/chunks/9876-49a1e08c0dfe7b8c.js +0 -1
- package/apps/pwa/out/_next/static/chunks/9891.5995e75a99b53d4e.js +0 -149
- package/apps/pwa/out/_next/static/chunks/9912-2be6b6ea0321c365.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/_not-found/page-c0543429ffa9cdfb.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/approvals/page-39f04d88df12b3e9.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/autopilot/page-e4f014aa82483cae.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/board/page-e86f9273877eab46.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/bots/page-d83a916672a8cfd3.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/ceo/page-22f27eaa5e6e68c7.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/chat/page-66477bf22d33b56e.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/consult/page-913f2a86ea109c65.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/control/page-ac51dc349381d564.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/decisions/page-cd09fc74dca72511.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/design-check/page-6c357f5b58598b67.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/editor/page-ab83de8c73bd2e4f.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/exec/page-6402ad2273b6f7b5.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/field/page-50d9b8d13b33f785.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/healthz/route-c0543429ffa9cdfb.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/inside/page-ffca50fc1f13759c.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/intake/page-3316bfc28a901722.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/layout-aef93e049341011e.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/live/page-8e67bb49fa81d4e5.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/live-run/page-8b8c8ac4a3edf0eb.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/loops/page-b5b994c9ea03f6d7.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/market/page-1a06f6f510439341.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/missions/[id]/page-d9720f6a03f31fa7.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/morning/page-d7c891d78672d771.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/not-found-e915872b37ca7dcf.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/observatory/page-43c2ec7c00978377.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/ops/checklist/page-c2537aa89b121637.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/ops/release/page-3264666f6ef99431.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/ops/resources/page-efe9dd7bc58d4fc6.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/ops/seats/page-153277343c9956b8.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/outputs/page-c1457829d1506ad7.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/page-9622573651a4b6ce.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/reflection/page-5aeba1aa69ec67ad.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/scheduler/page-29cf1ba9ae2fdb92.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/sessions/page-99a060c6edd4726c.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/settings/devices/page-decfacd2237da403.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/settings/page-3650eed85a5c5c93.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/setup/done/page-14077f0eddcae22f.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/setup/layout-c0543429ffa9cdfb.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/setup/page-364ee29f223bdc6b.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/share/page-905fb1f67c2665a7.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/showroom/page-79907fc36e3113f4.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/tasks/page-8f01867ee2a701b6.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/term/page-310b734167671ba8.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/today/page-cb1ca7ae52803603.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/trace/page-5491f2fb8e9376b5.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/vault/page-7e98befd36460b21.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/workflows/chat-ui/page-220923eefd5149b5.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/workflows/page-afdef54bb570da39.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/workspace/page-19f8acddbff16091.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/worktrees/page-d327a7647a075184.js +0 -1
- package/apps/pwa/out/_next/static/chunks/bc1f8ef9.b79035bd0f565c66.js +0 -1
- package/apps/pwa/out/_next/static/chunks/cf9ff424.b702f4a2ac70d836.js +0 -1
- package/apps/pwa/out/_next/static/chunks/d90ea774-d492ff408af303c1.js +0 -1
- package/apps/pwa/out/_next/static/chunks/ec9064d2.691021d974525713.js +0 -122
- package/apps/pwa/out/_next/static/chunks/ef9d715f.186b83d00befb229.js +0 -1
- package/apps/pwa/out/_next/static/chunks/framework-f01b715c1ec2fb74.js +0 -1
- package/apps/pwa/out/_next/static/chunks/main-3267c2e627901292.js +0 -1
- package/apps/pwa/out/_next/static/chunks/main-app-a690bcbeac3c465d.js +0 -1
- package/apps/pwa/out/_next/static/chunks/pages/_app-124f11699738fd43.js +0 -1
- package/apps/pwa/out/_next/static/chunks/pages/_error-754b7bd073a36a5f.js +0 -1
- package/apps/pwa/out/_next/static/chunks/webpack-8ded1efe8121eba0.js +0 -1
- /package/apps/pwa/out/_next/static/{98VlBaYvL-VVnCq93_lFS → 5URFQKPO21SIgTlLvb1Jv}/_ssgManifest.js +0 -0
|
@@ -2,6 +2,7 @@ import { spawn, spawnSync } from 'node:child_process';
|
|
|
2
2
|
import { createHash, randomUUID } from 'node:crypto';
|
|
3
3
|
import { appendFileSync, closeSync, existsSync, mkdirSync, openSync, readdirSync, readFileSync, readlinkSync, renameSync, statSync, unlinkSync, writeFileSync } from 'node:fs';
|
|
4
4
|
import { join, resolve } from 'node:path';
|
|
5
|
+
import { cpus, loadavg } from 'node:os';
|
|
5
6
|
import { Database } from 'bun:sqlite';
|
|
6
7
|
import { debug } from '../debug/log.js';
|
|
7
8
|
import { stateDirSourceForChild } from '../agent/identity-env.js';
|
|
@@ -14,12 +15,14 @@ import { listSchedules } from '../release-loop/release-schedule.js';
|
|
|
14
15
|
import { parseRubric, readRubricItems, rubricScore } from '../release-loop/rubric.js';
|
|
15
16
|
import { withFileLockSync } from '../storage/file-lock.js';
|
|
16
17
|
import { trafficTick, TRAFFIC_SEATS, type TrafficCell } from '../loops/orchestrator/traffic.js';
|
|
17
|
-
import { decideSpawn, SEAT_CAP_STALE_RUN_MINUTES, SEAT_CAP_UNKNOWN_SEAT_CAP, seatCapDetails, seatCapExclusion, seatCapReason
|
|
18
|
+
import { decideResourceAdmission, decideSpawn, SEAT_CAP_STALE_RUN_MINUTES, SEAT_CAP_UNKNOWN_SEAT_CAP, seatCapDetails, seatCapExclusion, seatCapReason,
|
|
19
|
+
type ResourceAdmissionDecision, type SpawnBudgetDecision } from '../loops/budget.js';
|
|
18
20
|
import { listSelfDevRuns, processBirthId, selfDevRunsDir } from '../self-dev/run-store.js';
|
|
19
21
|
import { getUserConfig, userConfigPath, type OrchestratorLoopConfig } from '../user-config.js';
|
|
20
22
|
import { hostLeaseCounts, leaseHasPendingPod } from '../pod-lease/host-lease.js';
|
|
21
|
-
import { leaseKubectl, measurePoolLease } from '../task-orchestrator/surfaces/pod-lease.js';
|
|
23
|
+
import { leaseKubectl, measurePoolLease, recommendConcurrency } from '../task-orchestrator/surfaces/pod-lease.js';
|
|
22
24
|
import { parsePodPool, podPoolHostLease, resolvePodPoolSpec } from '../task-orchestrator/surfaces/pod-pool.js';
|
|
25
|
+
import { listCodexAccountsInStore } from '../oauth/codex-account-store.js';
|
|
23
26
|
import { writeHarnessQueueReceipt } from './harness-queue-child.js';
|
|
24
27
|
import { detectReleaseGateActive, gateReserve } from './gate-reserve.js';
|
|
25
28
|
import { adviseLaunch, compareLaunchAdvice, type LaunchAdvice } from './launch-advice.js';
|
|
@@ -34,7 +37,7 @@ export type QueueItem = {
|
|
|
34
37
|
/** TASK-QUEUE: larger launches first within a seat; a row without it ranks below every prioritized row (FIFO among equals). */
|
|
35
38
|
priority?: number;
|
|
36
39
|
};
|
|
37
|
-
export type QueuePool = { running: number; pending: number; reserved: number; limit: number };
|
|
40
|
+
export type QueuePool = { running: number; pending: number; reserved: number; limit: number; recommended?: number | null };
|
|
38
41
|
export type QueueTick = { outcome: 'launched' | 'waiting' | 'skipped'; item?: QueueItem; reason: string;
|
|
39
42
|
/** QUEUE-BURST: every row this tick launched, first one = `item` (present only on a scheduled tick that launched). */ launched?: QueueItem[] };
|
|
40
43
|
/** progressAt = newest run-ledger updatedAt among the tree's members; stopReason = the ledger's supervisor stop (SEAT-CAP-STALE).
|
|
@@ -84,6 +87,8 @@ export interface HarnessQueueDeps {
|
|
|
84
87
|
* Tests assert this option instead of inferring the boundary from which seams are injected. */
|
|
85
88
|
needsOwnerGate?: boolean;
|
|
86
89
|
pool?: () => QueuePool;
|
|
90
|
+
/** Resource shadow input only; normalized one-minute load per logical core. */
|
|
91
|
+
resourceHostLoad?: () => number | null;
|
|
87
92
|
/** Shadow-only advice seam; exceptions must not affect the queue decision. */
|
|
88
93
|
advice?: typeof adviseLaunch;
|
|
89
94
|
/** Gate-reserve observation only; never changes seatCapDetails or decideSpawn inputs. */
|
|
@@ -542,12 +547,72 @@ export function readHarnessQueuePool(): QueuePool {
|
|
|
542
547
|
if (observed.members.some((member) => member.running === null || member.pending === null)) throw new Error('pod lease status: incomplete running/pending measurement');
|
|
543
548
|
const pendingJobs = observed.members.flatMap((member) => member.pendingJobs ?? []);
|
|
544
549
|
const records = podPoolHostLease(members).live();
|
|
545
|
-
|
|
550
|
+
const limit = members.reduce((sum, member) => sum + member.capacity, 0);
|
|
551
|
+
const pool: QueuePool = {
|
|
546
552
|
running: observed.members.reduce((sum, member) => sum + member.running!, 0),
|
|
547
553
|
pending: observed.members.reduce((sum, member) => sum + member.pending!, 0),
|
|
548
554
|
reserved: hostLeaseCounts(records).reserved + records.filter((row) => row.stage === 'job' && !leaseHasPendingPod(row, pendingJobs)).length,
|
|
549
|
-
limit
|
|
555
|
+
limit,
|
|
550
556
|
};
|
|
557
|
+
// The recommendation is shadow-only: config/account/recommendation failures must
|
|
558
|
+
// leave the established pool fields usable by the queue's real policy checks.
|
|
559
|
+
return withQueueRecommendation(pool, () => {
|
|
560
|
+
let accounts = -1;
|
|
561
|
+
try { accounts = listCodexAccountsInStore().length; } catch { /* Account count is observed only, never a bound. */ }
|
|
562
|
+
return recommendConcurrency(observed, {
|
|
563
|
+
capacity: limit,
|
|
564
|
+
accounts,
|
|
565
|
+
perAccount: getUserConfig().pod?.lease?.perAccount ?? 4,
|
|
566
|
+
}).recommended;
|
|
567
|
+
});
|
|
568
|
+
}
|
|
569
|
+
|
|
570
|
+
/** Attach an optional shadow value without allowing its reader to invalidate required pool measurements. */
|
|
571
|
+
export function withQueueRecommendation(pool: Omit<QueuePool, 'recommended'>, read: () => number | null): QueuePool {
|
|
572
|
+
let recommended: number | null = null;
|
|
573
|
+
try {
|
|
574
|
+
const value = read();
|
|
575
|
+
if (value === null || (Number.isSafeInteger(value) && value >= 0)) recommended = value;
|
|
576
|
+
} catch { /* The resource recommendation is unmeasured; required pool fields remain available. */ }
|
|
577
|
+
return { ...pool, recommended };
|
|
578
|
+
}
|
|
579
|
+
|
|
580
|
+
function logResourceAdmissionShadow(input: {
|
|
581
|
+
id: string;
|
|
582
|
+
seat: QueueSeat;
|
|
583
|
+
policy: SpawnBudgetDecision;
|
|
584
|
+
pool: QueuePool | undefined;
|
|
585
|
+
queueLaunching: number;
|
|
586
|
+
unreadablePenalty: number;
|
|
587
|
+
readHostLoad: () => number | null;
|
|
588
|
+
}): void {
|
|
589
|
+
let poolHeadroom: number | null = null;
|
|
590
|
+
let hostLoad: number | null = null;
|
|
591
|
+
let resource: ResourceAdmissionDecision = { verdict: 'unmeasured', reason: 'resource-input-unmeasured' };
|
|
592
|
+
try {
|
|
593
|
+
poolHeadroom = typeof input.pool?.recommended === 'number' && Number.isSafeInteger(input.pool.recommended) && input.pool.recommended >= 0
|
|
594
|
+
? Math.max(0, input.pool.recommended - (input.pool.reserved ?? 0) - input.queueLaunching - input.unreadablePenalty) : null;
|
|
595
|
+
try {
|
|
596
|
+
hostLoad = input.readHostLoad();
|
|
597
|
+
resource = decideResourceAdmission({ poolHeadroom, hostLoad });
|
|
598
|
+
} catch { /* An incomplete or throwing shadow observation is unmeasured. */ }
|
|
599
|
+
debug.log('harness.queue', 'admission-shadow', {
|
|
600
|
+
id: input.id,
|
|
601
|
+
seat: input.seat,
|
|
602
|
+
policy: { allow: input.policy.allow, reason: input.policy.reason, cap: input.policy.cap },
|
|
603
|
+
resource: resource.verdict,
|
|
604
|
+
resourceReason: resource.reason,
|
|
605
|
+
poolHeadroom,
|
|
606
|
+
hostLoad,
|
|
607
|
+
agree: resource.verdict === 'unmeasured' ? null : (resource.verdict === 'allow') === input.policy.allow,
|
|
608
|
+
});
|
|
609
|
+
} catch { /* Resource shadow work never changes queue approval. */ }
|
|
610
|
+
}
|
|
611
|
+
|
|
612
|
+
function readQueueHostLoadPerCore(): number | null {
|
|
613
|
+
const cores = cpus().length;
|
|
614
|
+
const oneMinute = loadavg()[0];
|
|
615
|
+
return cores > 0 && Number.isFinite(oneMinute) && oneMinute >= 0 ? oneMinute / cores : null;
|
|
551
616
|
}
|
|
552
617
|
|
|
553
618
|
/** Same sanitizing as `k8sLabelValue` (self-implement-pod.ts), which writes the `elanous.run` label value. */
|
|
@@ -1548,8 +1613,11 @@ async function tickHarnessQueueOnce(deps: HarnessQueueDeps, requestedId: string
|
|
|
1548
1613
|
}
|
|
1549
1614
|
}
|
|
1550
1615
|
}
|
|
1551
|
-
if (poolReason) { blocked.set(item.seat, { reason: poolReason, active }); continue; }
|
|
1552
1616
|
const budget = decideSpawn({ seat: item.seat, running: active, caps, gate, injectedCap });
|
|
1617
|
+
const queueLaunching = current.filter((row) => row.status === 'launching' || row.status === 'launched').length;
|
|
1618
|
+
logResourceAdmissionShadow({ id: item.id, seat: item.seat, policy: budget, pool, queueLaunching,
|
|
1619
|
+
unreadablePenalty: unreadableState.penalty, readHostLoad: deps.resourceHostLoad ?? readQueueHostLoadPerCore });
|
|
1620
|
+
if (poolReason) { blocked.set(item.seat, { reason: poolReason, active }); continue; }
|
|
1553
1621
|
if (!budget.allow) {
|
|
1554
1622
|
blocked.set(item.seat, { reason: `${budget.reason}: ${seatLine(item.seat, active, details)}`, active });
|
|
1555
1623
|
continue;
|
package/src/llm.ts
CHANGED
|
@@ -9211,6 +9211,10 @@ export async function streamLLMWithTools(
|
|
|
9211
9211
|
const message = buildInterjectionMessage(pending, 'mid-turn');
|
|
9212
9212
|
if (message) {
|
|
9213
9213
|
history.push({ role: 'user', content: message });
|
|
9214
|
+
// A queued user message begins a fresh request. Keep the repair
|
|
9215
|
+
// allowlist narrow for the failed request, but do not let its
|
|
9216
|
+
// one-turn gate reject tools requested by this new user turn.
|
|
9217
|
+
repairActionArmed = false;
|
|
9214
9218
|
debug.log('llm.interjection', 'drained-mid-turn', {
|
|
9215
9219
|
turn, count: pending.length, chars: message.length,
|
|
9216
9220
|
}, { level: 'info' });
|
package/src/loops/budget.ts
CHANGED
|
@@ -153,6 +153,26 @@ export function decideSpawn({ seat, running, caps, gate, injectedCap }: SpawnBud
|
|
|
153
153
|
: { allow: false, reason: 'seat-cap', cap };
|
|
154
154
|
}
|
|
155
155
|
|
|
156
|
+
export type ResourceAdmissionVerdict = 'allow' | 'deny' | 'unmeasured';
|
|
157
|
+
export interface ResourceAdmissionDecision {
|
|
158
|
+
verdict: ResourceAdmissionVerdict;
|
|
159
|
+
reason: 'resource-headroom' | 'pool-headroom-empty' | 'host-load-saturated' | 'resource-input-unmeasured';
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
/** Shadow-only resource signal. `hostLoad` is one-minute load normalized by logical cores. */
|
|
163
|
+
export function decideResourceAdmission(input: {
|
|
164
|
+
poolHeadroom: number | null | undefined;
|
|
165
|
+
hostLoad: number | null | undefined;
|
|
166
|
+
}): ResourceAdmissionDecision {
|
|
167
|
+
const { poolHeadroom, hostLoad } = input;
|
|
168
|
+
if (!Number.isSafeInteger(poolHeadroom) || poolHeadroom === null || poolHeadroom === undefined || poolHeadroom < 0
|
|
169
|
+
|| typeof hostLoad !== 'number' || !Number.isFinite(hostLoad) || hostLoad < 0)
|
|
170
|
+
return { verdict: 'unmeasured', reason: 'resource-input-unmeasured' };
|
|
171
|
+
if (poolHeadroom === 0) return { verdict: 'deny', reason: 'pool-headroom-empty' };
|
|
172
|
+
if (hostLoad >= 1) return { verdict: 'deny', reason: 'host-load-saturated' };
|
|
173
|
+
return { verdict: 'allow', reason: 'resource-headroom' };
|
|
174
|
+
}
|
|
175
|
+
|
|
156
176
|
/** SEAT-CAP-STALE: why a run or a queue row is left out of a seat's running count (counting only — nothing is stopped). */
|
|
157
177
|
export type SeatCapExclusionReason = 'stale' | 'soft-stopped' | 'unknown-seat' | 'dead-row';
|
|
158
178
|
export const SEAT_CAP_STALE_RUN_MINUTES = 30;
|
|
@@ -20,7 +20,10 @@ export async function firstChatGate(cfg: UserConfig, deps: FirstChatGateDeps): P
|
|
|
20
20
|
if (deps.isTTY) {
|
|
21
21
|
return decide(await deps.runInteractive() ? 'continue' : 'stop', 'interactive');
|
|
22
22
|
}
|
|
23
|
-
|
|
23
|
+
// This gate decides whether the chat can run without an LLM. `needsFirstRun`
|
|
24
|
+
// also keeps the CLI's web-first setup available until detailed onboarding
|
|
25
|
+
// completes, so a ready provider must bypass this chat-only gate.
|
|
26
|
+
if (cfg.onboarding.ready === true || !needsFirstRun(cfg)) return decide('continue', 'already-ready');
|
|
24
27
|
const result = await deps.runFirstRun({ config: cfg, isTTY: false, print: () => {} });
|
|
25
28
|
if (result.outcome === 'ready') return decide('continue', result.outcome);
|
|
26
29
|
deps.print(`다음: elanous setup llm (또는 ${UNATTENDED_SETUP_COMMAND})`);
|
|
@@ -171,7 +171,8 @@ export async function runFirstRun(deps: FirstRunDeps = {}): Promise<{
|
|
|
171
171
|
provider = typeof setupResult === 'string' ? setupResult : null;
|
|
172
172
|
if (!provider) {
|
|
173
173
|
print('LLM 없이 첫 화면을 엽니다. LLM 기능은 사용할 수 없습니다. 다시 설정: `elanous setup keys` 또는 `elanous login openai-codex`.');
|
|
174
|
-
|
|
174
|
+
// Skipping provider setup keeps this invocation reachable, but it must
|
|
175
|
+
// not persist `ready`: a later bare launch still needs web-first setup.
|
|
175
176
|
observe('ready', inputs);
|
|
176
177
|
return { outcome: 'ready', inputs };
|
|
177
178
|
}
|
|
@@ -191,7 +192,13 @@ export async function runFirstRun(deps: FirstRunDeps = {}): Promise<{
|
|
|
191
192
|
env: deps.env,
|
|
192
193
|
}, deps.getSecretAsync)
|
|
193
194
|
: undefined;
|
|
195
|
+
// OAuth and agent-CLI credentials are discovered above, outside the API-key
|
|
196
|
+
// resolver. A user who picked one of those detected subscriptions has a
|
|
197
|
+
// usable provider even when no API key exists; sending them into key setup
|
|
198
|
+
// would contradict the subscription choice and prompt for an irrelevant key.
|
|
199
|
+
const selectedSubscription = subscriptions.some((item) => item.provider === provider);
|
|
194
200
|
if (inputs === 1 && credential?.source === 'none'
|
|
201
|
+
&& !selectedSubscription
|
|
195
202
|
&& !(providerSetUpInPlace && provider === 'openai-codex')) {
|
|
196
203
|
if ((deps.isTTY ?? process.stdin.isTTY) !== true) return needsLlm(inputs);
|
|
197
204
|
try {
|
package/src/onboarding.ts
CHANGED
|
@@ -1688,7 +1688,11 @@ export function needsOnboarding(cfg: UserConfig): boolean {
|
|
|
1688
1688
|
}
|
|
1689
1689
|
|
|
1690
1690
|
export function needsFirstRun(cfg: UserConfig): boolean {
|
|
1691
|
-
|
|
1691
|
+
// `ready` means first-run provider setup can open the dashboard; it does not
|
|
1692
|
+
// mean the default web-first setup was completed. Keep offering web-first
|
|
1693
|
+
// until onboarding completes, unless the user explicitly disabled it.
|
|
1694
|
+
return !cfg.onboarding.completed
|
|
1695
|
+
&& (cfg.onboarding.ready !== true || cfg.onboarding.webFirst !== false);
|
|
1692
1696
|
}
|
|
1693
1697
|
|
|
1694
1698
|
/** γ (2026-04-28) · per-step wizard. Runs ONE of the 5 steps,
|
package/src/pr-tool/census.ts
CHANGED
|
@@ -251,15 +251,52 @@ export function parseDiffHunks(patch: string): DiffHunk[] {
|
|
|
251
251
|
return hunks;
|
|
252
252
|
}
|
|
253
253
|
|
|
254
|
-
/** `gh api --paginate
|
|
255
|
-
function pagesArgs(endpoint: string): string[] { return ['api', '--paginate',
|
|
254
|
+
/** `gh api --paginate` emits one JSON document per page on older gh versions. */
|
|
255
|
+
function pagesArgs(endpoint: string): string[] { return ['api', '--paginate', endpoint]; }
|
|
256
|
+
function jsonDocuments(raw: string, endpoint: string): unknown[] {
|
|
257
|
+
const documents: unknown[] = [];
|
|
258
|
+
let start = -1, depth = 0, quoted = false, escaped = false;
|
|
259
|
+
for (let i = 0; i < raw.length; i += 1) {
|
|
260
|
+
const char = raw[i]!;
|
|
261
|
+
if (start < 0) {
|
|
262
|
+
if (/\s/.test(char)) continue;
|
|
263
|
+
if (char !== '[' && char !== '{') throw new Error(`gh api ${endpoint}: JSON 오류`);
|
|
264
|
+
start = i; depth = 1; continue;
|
|
265
|
+
}
|
|
266
|
+
if (quoted) {
|
|
267
|
+
if (escaped) escaped = false;
|
|
268
|
+
else if (char === '\\') escaped = true;
|
|
269
|
+
else if (char === '"') quoted = false;
|
|
270
|
+
continue;
|
|
271
|
+
}
|
|
272
|
+
if (char === '"') quoted = true;
|
|
273
|
+
else if (char === '[' || char === '{') depth += 1;
|
|
274
|
+
else if (char === ']' || char === '}') {
|
|
275
|
+
depth -= 1;
|
|
276
|
+
if (depth === 0) {
|
|
277
|
+
try { documents.push(JSON.parse(raw.slice(start, i + 1))); }
|
|
278
|
+
catch { throw new Error(`gh api ${endpoint}: JSON 오류`); }
|
|
279
|
+
start = -1;
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
if (start >= 0 || quoted || documents.length === 0) throw new Error(`gh api ${endpoint}: JSON 오류`);
|
|
284
|
+
return documents;
|
|
285
|
+
}
|
|
256
286
|
function parsePages(result: PrToolCommandResult, endpoint: string): readonly unknown[] {
|
|
257
287
|
if (!result.ok) throw new Error(`gh api ${endpoint}: ${result.err || result.out || '조회 실패'}`);
|
|
258
|
-
let parsed: unknown;
|
|
259
|
-
try { parsed =
|
|
260
|
-
if (
|
|
288
|
+
let parsed: unknown[];
|
|
289
|
+
try { parsed = jsonDocuments(result.out, endpoint); } catch (error) { throw error; }
|
|
290
|
+
if (parsed.length >= MAX_PAGES || !parsed.every(Array.isArray)) {
|
|
261
291
|
throw new Error(`gh api ${endpoint}: 페이지 형식·상한 판정 불가`);
|
|
262
292
|
}
|
|
293
|
+
// gh 2.45 merges --paginate pages into one array without --slurp; newer builds
|
|
294
|
+
// may emit one JSON array per page. Accept either shape while keeping a hard cap.
|
|
295
|
+
if (parsed.length === 1 && (parsed[0] as unknown[]).every(row => !Array.isArray(row))) {
|
|
296
|
+
if ((parsed[0] as unknown[]).length > MAX_PAGES * 100) throw new Error(`gh api ${endpoint}: 페이지 형식·상한 판정 불가`);
|
|
297
|
+
return parsed[0] as unknown[];
|
|
298
|
+
}
|
|
299
|
+
if (!parsed.every(page => (page as unknown[]).length <= 100)) throw new Error(`gh api ${endpoint}: 페이지 형식·상한 판정 불가`);
|
|
263
300
|
return parsed.flat();
|
|
264
301
|
}
|
|
265
302
|
function pages(run: PrToolCommand, endpoint: string, cwd?: string): readonly unknown[] {
|
|
@@ -8,7 +8,7 @@ import { dirname, join } from 'node:path';
|
|
|
8
8
|
import { existsSync, mkdirSync } from 'node:fs';
|
|
9
9
|
import { elanousStateRoot } from '../autopilot/state-paths.js';
|
|
10
10
|
import { resolveInstanceName } from '../instance-identity.js';
|
|
11
|
-
import { getHarnessRunId, getHarnessRunIdSource, normalizeRunIdSource, type RunIdSource } from '../harness/harness-space.js';
|
|
11
|
+
import { getHarnessRunId, getHarnessRunIdSource, getHarnessSpace, normalizeRunIdSource, type HarnessSpaceKind, type RunIdSource } from '../harness/harness-space.js';
|
|
12
12
|
import { getParentPtyId, getPtyChainOrigin } from '../agent/pty-identity.js';
|
|
13
13
|
import { getNestDepth } from '../agent/nest-depth.js';
|
|
14
14
|
import { originObservationFields } from '../agent/origin-observation.js';
|
|
@@ -86,6 +86,7 @@ export interface PtyManifestRow {
|
|
|
86
86
|
runId: string;
|
|
87
87
|
runIdSource: RunIdSource | '';
|
|
88
88
|
spaceId: string;
|
|
89
|
+
spaceKind?: HarnessSpaceKind | '';
|
|
89
90
|
sessionId: string;
|
|
90
91
|
parentPtyId: string;
|
|
91
92
|
parentPid: number;
|
|
@@ -191,6 +192,7 @@ export function migratePtyManifestSchema(d: Database): void {
|
|
|
191
192
|
try { d.run(`ALTER TABLE pty_manifest ADD COLUMN run_id TEXT NOT NULL DEFAULT ''`); } catch { /* already exists */ }
|
|
192
193
|
try { d.run(`ALTER TABLE pty_manifest ADD COLUMN run_id_source TEXT NOT NULL DEFAULT ''`); } catch { /* already exists */ }
|
|
193
194
|
try { d.run(`ALTER TABLE pty_manifest ADD COLUMN space_id TEXT NOT NULL DEFAULT ''`); } catch { /* already exists */ }
|
|
195
|
+
try { d.run(`ALTER TABLE pty_manifest ADD COLUMN space_kind TEXT NOT NULL DEFAULT ''`); } catch { /* already exists */ }
|
|
194
196
|
try { d.run(`ALTER TABLE pty_manifest ADD COLUMN session_id TEXT NOT NULL DEFAULT ''`); } catch { /* already exists */ }
|
|
195
197
|
try { d.run('ALTER TABLE pty_manifest ADD COLUMN closed_at INTEGER NOT NULL DEFAULT 0'); } catch { /* already exists */ }
|
|
196
198
|
try { d.run('ALTER TABLE pty_manifest ADD COLUMN pty_pid INTEGER NOT NULL DEFAULT 0'); } catch { /* already exists */ }
|
|
@@ -305,6 +307,7 @@ export function upsertPtyManifest(row: {
|
|
|
305
307
|
origin?: { originRoot: string; controller?: string };
|
|
306
308
|
identity?: {
|
|
307
309
|
spaceId?: string;
|
|
310
|
+
spaceKind?: HarnessSpaceKind | '';
|
|
308
311
|
parentPtyId?: string;
|
|
309
312
|
parentPid?: number;
|
|
310
313
|
controller?: string;
|
|
@@ -320,6 +323,7 @@ export function upsertPtyManifest(row: {
|
|
|
320
323
|
const runId = getHarnessRunId(process.env);
|
|
321
324
|
const runIdSource = getHarnessRunIdSource();
|
|
322
325
|
const defaultSpaceId = process.env.ELANOUS_HARNESS_SPACE_ID?.trim() ?? '';
|
|
326
|
+
const defaultSpaceKind: HarnessSpaceKind | '' = getHarnessSpace()?.kind ?? '';
|
|
323
327
|
const sessionId = process.env.ELANOUS_SESSION_ID?.trim() ?? '';
|
|
324
328
|
const defaultParentPtyId = getParentPtyId() ?? '';
|
|
325
329
|
const defaultParentPid = process.ppid;
|
|
@@ -334,14 +338,18 @@ export function upsertPtyManifest(row: {
|
|
|
334
338
|
const codeSha = codeShaForWorkdir(row.workdir);
|
|
335
339
|
d.run('BEGIN IMMEDIATE');
|
|
336
340
|
try {
|
|
337
|
-
const previous = d.query('SELECT alive, space_id, parent_pty_id, parent_pid, controller FROM pty_manifest WHERE id=?').get(row.id) as {
|
|
341
|
+
const previous = d.query('SELECT alive, space_id, space_kind, parent_pty_id, parent_pid, controller FROM pty_manifest WHERE id=?').get(row.id) as {
|
|
338
342
|
alive: number;
|
|
339
343
|
space_id: string;
|
|
344
|
+
space_kind: HarnessSpaceKind | '';
|
|
340
345
|
parent_pty_id: string;
|
|
341
346
|
parent_pid: number;
|
|
342
347
|
controller: string | null;
|
|
343
348
|
} | null;
|
|
344
349
|
const spaceId = row.identity?.spaceId ?? previous?.space_id ?? defaultSpaceId;
|
|
350
|
+
const previousSpaceKind = previous?.space_id === spaceId ? previous.space_kind : '';
|
|
351
|
+
const defaultKindForSpace = defaultSpaceId === spaceId ? defaultSpaceKind : '';
|
|
352
|
+
const spaceKind = row.identity?.spaceKind || previousSpaceKind || defaultKindForSpace;
|
|
345
353
|
const parentPtyId = row.identity?.parentPtyId ?? previous?.parent_pty_id ?? defaultParentPtyId;
|
|
346
354
|
const parentPid = row.identity?.parentPid ?? previous?.parent_pid ?? defaultParentPid;
|
|
347
355
|
const manifestController = row.identity?.controller ?? controller ?? previous?.controller ?? undefined;
|
|
@@ -353,16 +361,16 @@ export function upsertPtyManifest(row: {
|
|
|
353
361
|
const shouldRecordSpawned = previous === null || previous.alive === 0;
|
|
354
362
|
const values = [
|
|
355
363
|
row.id, row.kind, row.nickname ?? null, row.cmd, row.workdir ?? null, row.purpose ?? null, row.seat ?? null, process.pid, row.ptyPid ?? 0, resolveInstanceName(),
|
|
356
|
-
runId, runIdSource, spaceId, sessionId, codeSha, parentPtyId, parentPid, parentKind, chainOrigin ?? null, nestDepth ?? null,
|
|
364
|
+
runId, runIdSource, spaceId, spaceKind, sessionId, codeSha, parentPtyId, parentPid, parentKind, chainOrigin ?? null, nestDepth ?? null,
|
|
357
365
|
originRoot ?? null, originAgent ?? null, originSession ?? null, manifestController ?? null, terminalOrigin.category, terminalOrigin.reason,
|
|
358
366
|
terminalOrigin.externalToolName ?? null, row.startedAt, 1, null, '', 0, row.now,
|
|
359
367
|
];
|
|
360
368
|
d.run(
|
|
361
|
-
`INSERT INTO pty_manifest (id, kind, nickname, cmd, workdir, purpose, seat, owner_pid, pty_pid, instance, run_id, run_id_source, space_id, session_id, code_sha, parent_pty_id, parent_pid, parent_kind, chain_origin, nest_depth, origin_root, origin_agent, origin_session, controller, terminal_origin_category, terminal_origin_reason, external_tool_name, started_at, alive, exit_code, snapshot, snapshot_at, updated_at)
|
|
369
|
+
`INSERT INTO pty_manifest (id, kind, nickname, cmd, workdir, purpose, seat, owner_pid, pty_pid, instance, run_id, run_id_source, space_id, space_kind, session_id, code_sha, parent_pty_id, parent_pid, parent_kind, chain_origin, nest_depth, origin_root, origin_agent, origin_session, controller, terminal_origin_category, terminal_origin_reason, external_tool_name, started_at, alive, exit_code, snapshot, snapshot_at, updated_at)
|
|
362
370
|
VALUES (${values.map(() => '?').join(', ')})
|
|
363
371
|
ON CONFLICT(id) DO UPDATE SET kind=excluded.kind, nickname=excluded.nickname, cmd=excluded.cmd, workdir=excluded.workdir, purpose=excluded.purpose, seat=excluded.seat,
|
|
364
372
|
owner_pid=excluded.owner_pid, pty_pid=excluded.pty_pid, instance=excluded.instance,
|
|
365
|
-
run_id=excluded.run_id, run_id_source=excluded.run_id_source, space_id=excluded.space_id, session_id=excluded.session_id, code_sha=excluded.code_sha,
|
|
373
|
+
run_id=excluded.run_id, run_id_source=excluded.run_id_source, space_id=excluded.space_id, space_kind=excluded.space_kind, session_id=excluded.session_id, code_sha=excluded.code_sha,
|
|
366
374
|
parent_pty_id=excluded.parent_pty_id, parent_pid=excluded.parent_pid, parent_kind=excluded.parent_kind,
|
|
367
375
|
chain_origin=excluded.chain_origin, nest_depth=excluded.nest_depth, origin_root=excluded.origin_root, origin_agent=excluded.origin_agent,
|
|
368
376
|
origin_session=excluded.origin_session, controller=excluded.controller, terminal_origin_category=excluded.terminal_origin_category,
|
|
@@ -380,7 +388,7 @@ export function upsertPtyManifest(row: {
|
|
|
380
388
|
...(row.seat ? { seat: row.seat } : {}),
|
|
381
389
|
...(row.workdir ? { workdir: row.workdir } : {}), ownerPid: process.pid, ptyPid: row.ptyPid ?? 0, instance: resolveInstanceName(),
|
|
382
390
|
startedAt: row.startedAt, alive: true, exitCode: null, snapshot: '', snapshotAt: 0, outputBytesTotal: 0, updatedAt: row.now,
|
|
383
|
-
frame: '', frameAt: 0, runId, runIdSource, spaceId, sessionId, parentPtyId, parentPid, parentKind,
|
|
391
|
+
frame: '', frameAt: 0, runId, runIdSource, spaceId, spaceKind, sessionId, parentPtyId, parentPid, parentKind,
|
|
384
392
|
...(chainOrigin === undefined ? {} : { chainOrigin }),
|
|
385
393
|
...(nestDepth === undefined ? {} : { nestDepth }),
|
|
386
394
|
...(originRoot === undefined ? {} : { originRoot }),
|
|
@@ -948,6 +956,7 @@ function mapRow(r: Record<string, unknown>): PtyManifestRow {
|
|
|
948
956
|
runId: String(r.run_id ?? ''),
|
|
949
957
|
runIdSource: normalizeRunIdSource(r.run_id_source),
|
|
950
958
|
spaceId: String(r.space_id ?? ''),
|
|
959
|
+
spaceKind: String(r.space_kind ?? '') as HarnessSpaceKind | '',
|
|
951
960
|
sessionId: String(r.session_id ?? ''),
|
|
952
961
|
parentPtyId: String(r.parent_pty_id ?? ''),
|
|
953
962
|
parentPid: Number(r.parent_pid ?? 0),
|
|
@@ -11,6 +11,7 @@ import { runSelfGateCliAsync, type SelfGateCliOptions, type SelfGateCliResult }
|
|
|
11
11
|
import { dispatchHeavyCheck, isValidGateHost, type DispatchDeps, type DispatchOptions } from '../self-implement/gate-remote.js';
|
|
12
12
|
import { latestPublishedPreviousVersion } from '../../scripts/release-loop/unattended-release.js';
|
|
13
13
|
import { baseVersion, isReleaseVersion } from '../../scripts/release-loop/release-version.js';
|
|
14
|
+
import type { GateOptions, GateResult, GateRunner } from '../../scripts/release-loop/gate-node.js';
|
|
14
15
|
import { executeTuiNodeCheck, type ExecutedTuiCheck } from '../../scripts/release-loop/tui-node-checks.js';
|
|
15
16
|
|
|
16
17
|
export const LIGHT_RC_ALWAYS_FILE = 'release/light-rc-always.txt';
|
|
@@ -26,6 +27,8 @@ export interface LightRcOptions {
|
|
|
26
27
|
head?: string;
|
|
27
28
|
/** Gate host; absent = config gateRemote.host (the dispatch's own default). */
|
|
28
29
|
remote?: string;
|
|
30
|
+
/** Compare the pre-recipe remote path; intentionally hidden from normal CLI help. */
|
|
31
|
+
legacySelfGate?: boolean;
|
|
29
32
|
/** Run on this machine (the remote child is re-invoked with it). */
|
|
30
33
|
local?: boolean;
|
|
31
34
|
shards?: number;
|
|
@@ -74,6 +77,10 @@ export interface LightRcDeps {
|
|
|
74
77
|
previousVersion?: (version: string, ledgerRoot?: string) => string;
|
|
75
78
|
readFile?: (path: string) => string | undefined;
|
|
76
79
|
runGate?: (cwd: string, options: SelfGateCliOptions) => SelfGateCliResult | Promise<SelfGateCliResult>;
|
|
80
|
+
/** Release gate recipe seam for explicitly selected remote rehearsal hosts. */
|
|
81
|
+
runFormalHostGate?: (options: GateOptions, runner?: GateRunner) => Promise<GateResult>;
|
|
82
|
+
/** Optional runner injection for tests that exercise judgeGate itself without remote side effects. */
|
|
83
|
+
formalHostGateRunner?: GateRunner;
|
|
77
84
|
dispatch?: (opts: DispatchOptions, deps?: DispatchDeps) => Promise<number>;
|
|
78
85
|
/** Extra dispatch deps (runner · settings) — tests drive the real dispatch with a fake host. */
|
|
79
86
|
dispatchDeps?: Omit<DispatchDeps, 'write'>;
|
|
@@ -190,6 +197,46 @@ export async function runLightRc(version: string, opts: LightRcOptions = {}, dep
|
|
|
190
197
|
};
|
|
191
198
|
let alwaysInclude = readList(cwd);
|
|
192
199
|
|
|
200
|
+
// A named remote rehearsal must measure with the release graph's host gate recipe. The public light-rc result shape
|
|
201
|
+
// stays the same; only its execution path changes. Host gate shard assignment is currently the graph's four groups.
|
|
202
|
+
if (opts.remote !== undefined && !opts.legacySelfGate) {
|
|
203
|
+
if (shards !== LIGHT_RC_DEFAULT_SHARDS) return {
|
|
204
|
+
version, base, measuredCommit, worktreeHead, importerTests: null, introduced: null, preexisting: null,
|
|
205
|
+
unclassified: null, alwaysInclude: alwaysInclude.length, alwaysIncludeMissing: [], shards, remote: opts.remote,
|
|
206
|
+
gateExitCode: 2, ok: false, unmeasured: 'host-gate-shard-contract-mismatch',
|
|
207
|
+
};
|
|
208
|
+
const resolvedBase = (deps.git ?? defaultGit)(['rev-parse', '--verify', '--quiet', `${base}^{commit}`], cwd);
|
|
209
|
+
const base40 = resolvedBase.stdout.trim();
|
|
210
|
+
if (resolvedBase.rc !== 0 || !SHA_RE.test(base40)) throw new Error(`release light-rc: --base does not resolve to a commit (${base})`);
|
|
211
|
+
const scratch = mkdtempSync(join(tmpdir(), 'elanous-light-rc-host-gate-'));
|
|
212
|
+
try {
|
|
213
|
+
const previous = (() => { try { return (deps.previousVersion ?? latestPublishedPreviousVersion)(baseVersion(version), opts.ledgerRoot); } catch { return undefined; } })();
|
|
214
|
+
const options: GateOptions = {
|
|
215
|
+
commit: measuredCommit, version, baselineCommit: base40, ...(previous ? { baselineVersion: previous } : {}),
|
|
216
|
+
executor: 'host', remote: opts.remote, full: true, rehearsalTui: opts.rehearsalTui,
|
|
217
|
+
repo: cwd, instanceRoot: scratch, ledgerRoot: scratch,
|
|
218
|
+
};
|
|
219
|
+
const gate = deps.runFormalHostGate
|
|
220
|
+
? await deps.runFormalHostGate(options, deps.formalHostGateRunner)
|
|
221
|
+
: await import('../../scripts/release-loop/gate-node.js').then(({ judgeGate }) => judgeGate(options, deps.formalHostGateRunner));
|
|
222
|
+
const unclassifiedCount = (gate.stalledShards?.length ?? 0) + (gate.unmeasuredErrors?.length ?? 0)
|
|
223
|
+
+ (gate.unmeasuredRecheckFiles?.length ?? 0) + gate.stalledEnv.length;
|
|
224
|
+
const alwaysIncludeMissing = alwaysInclude.filter((path) => !existsSync(join(cwd, path)));
|
|
225
|
+
const rehearsalTui = opts.rehearsalTui ? gate.rehearsalTui ?? { outcome: 'unmeasured' as const, detail: 'release host gate runner did not return remote TUI evidence' } : undefined;
|
|
226
|
+
return {
|
|
227
|
+
version, base: base40, measuredCommit, worktreeHead, importerTests: null,
|
|
228
|
+
introduced: gate.outcome === 'error' ? null : gate.introduced.length,
|
|
229
|
+
preexisting: gate.outcome === 'error' ? null : gate.preexisting,
|
|
230
|
+
unclassified: gate.outcome === 'error' ? null : unclassifiedCount,
|
|
231
|
+
alwaysInclude: alwaysInclude.length, alwaysIncludeMissing, shards, remote: opts.remote,
|
|
232
|
+
gateExitCode: rehearsalTui && rehearsalTui.outcome !== 'ok' ? 2 : gate.outcome === 'ok' ? 0 : gate.outcome === 'regression' ? 1 : 2,
|
|
233
|
+
ok: gate.outcome === 'ok' && unclassifiedCount === 0 && (!rehearsalTui || rehearsalTui.outcome === 'ok'),
|
|
234
|
+
unmeasured: gate.outcome === 'error' ? gate.error ?? 'host-gate-unmeasured' : null,
|
|
235
|
+
...(rehearsalTui ? { rehearsalTui } : {}),
|
|
236
|
+
};
|
|
237
|
+
} finally { rmSync(scratch, { recursive: true, force: true }); }
|
|
238
|
+
}
|
|
239
|
+
|
|
193
240
|
let local: SelfGateCliResult | undefined;
|
|
194
241
|
let localTui: ExecutedTuiCheck | undefined;
|
|
195
242
|
const runLocal = async () => {
|
|
@@ -6,8 +6,8 @@ import type { WebSearchHit, WebSearchProvider } from '../web-search/provider.js'
|
|
|
6
6
|
import { debug } from '../debug/log.js';
|
|
7
7
|
import { dispatchWebFetch } from '../skills/tools/webfetch.js';
|
|
8
8
|
|
|
9
|
-
const
|
|
10
|
-
const
|
|
9
|
+
const RESEARCH_PAID_WEB_FALLBACK_IDS = ['exa', 'firecrawl'] as const;
|
|
10
|
+
const RESEARCH_KEYLESS_WEB_FALLBACK_IDS = ['ddg-free'] as const;
|
|
11
11
|
const RESEARCH_EXA_TIMEOUT_MS = 4_500;
|
|
12
12
|
// Leave scheduler/logging headroom under the user-visible 15s aggregate cap.
|
|
13
13
|
export const RESEARCH_SEARCH_BUDGET_MS = 14_500;
|
|
@@ -65,25 +65,32 @@ interface ProviderHealth {
|
|
|
65
65
|
open: boolean;
|
|
66
66
|
}
|
|
67
67
|
|
|
68
|
-
/** Build one bounded searcher per research prepass.
|
|
69
|
-
*
|
|
68
|
+
/** Build one bounded searcher per research prepass. Paid Exa/Firecrawl routes
|
|
69
|
+
* take precedence; DDG is used only when neither paid route is available. Grok
|
|
70
|
+
* is reserved for explicit X intent.
|
|
70
71
|
* Per-engine serialization lets a timeout open that engine's
|
|
71
72
|
* breaker before queued Bloom axes start. */
|
|
72
73
|
export function createResearchAxisSearcher(
|
|
73
74
|
availableProviders: readonly WebSearchProvider[] = getAvailableResearchWebSearchProviders(),
|
|
74
75
|
now: () => number = Date.now,
|
|
75
76
|
): AxisSearch {
|
|
76
|
-
const
|
|
77
|
+
const paidProviders = RESEARCH_PAID_WEB_FALLBACK_IDS.flatMap(id => availableProviders.filter(provider => provider.id === id));
|
|
78
|
+
const webFallback = paidProviders.length > 0
|
|
79
|
+
? paidProviders
|
|
80
|
+
: RESEARCH_KEYLESS_WEB_FALLBACK_IDS.flatMap(id => availableProviders.filter(provider => provider.id === id));
|
|
77
81
|
const allowed = [...webFallback];
|
|
82
|
+
const keylessFallback = paidProviders.length === 0 && allowed.some(provider =>
|
|
83
|
+
(RESEARCH_KEYLESS_WEB_FALLBACK_IDS as readonly string[]).includes(provider.id));
|
|
78
84
|
const health = new Map(allowed.map(provider => [provider.id, { failures: 0, open: false }]));
|
|
79
85
|
const deadline = now() + RESEARCH_SEARCH_BUDGET_MS;
|
|
80
86
|
let searchBudgetExhausted = false;
|
|
81
87
|
const tails = new Map<string, Promise<void>>();
|
|
82
88
|
|
|
83
89
|
debug.log('research.search', 'provider-preflight', {
|
|
84
|
-
allowed:
|
|
90
|
+
allowed: allowed.map(provider => provider.id),
|
|
85
91
|
available: allowed.map(provider => provider.id),
|
|
86
|
-
|
|
92
|
+
keylessFallback: keylessFallback ? 'ddg-free' : null,
|
|
93
|
+
excluded: availableProviders.filter(provider => !allowed.some(allowedProvider => allowedProvider.id === provider.id))
|
|
87
94
|
.map(provider => provider.id),
|
|
88
95
|
budgetMs: RESEARCH_SEARCH_BUDGET_MS,
|
|
89
96
|
});
|
|
@@ -167,7 +174,7 @@ export function createResearchAxisSearcher(
|
|
|
167
174
|
}
|
|
168
175
|
};
|
|
169
176
|
await runWebFallback();
|
|
170
|
-
if (hits.length === 0 && errors.length === 0) errors.push('no healthy
|
|
177
|
+
if (hits.length === 0 && errors.length === 0) errors.push('no healthy research search provider');
|
|
171
178
|
return { hits, errors, ...(budgetExhausted || searchBudgetExhausted ? { budgetExhausted: true } : {}) };
|
|
172
179
|
};
|
|
173
180
|
}
|