elanous 0.3.1 → 0.3.3
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 → K-ckEB9hu9tXQ6iqnl27L}/_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-53fe7ab5dbd19607.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-7aa498ded308ea17.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-c9e997416c86c8dd.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/autopilot/{page-e4f014aa82483cae.js → page-4e24912975188223.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/app/board/page-b117b7ee316afe86.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/botlab/{page-dbc30fbf2e8933d9.js → page-a447a17fd887c68e.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/app/bots/page-2b3e0df385eba76f.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/ceo/page-409ed1d2f2c5f706.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/chat/page-1e90543da0a66b63.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/consult/page-f68c84b50dee9796.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/control/page-afefb7fac0047855.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/decisions/page-79f9d6ae042c07b4.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/design-check/page-9726864cd21303a2.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/editor/page-ab0febcc6695f4e4.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/exec/page-6f6b157c52869db0.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/field/page-78aef36734ddd588.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-ffca50fc1f13759c.js → page-6a634383e6247c6b.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/app/intake/page-66f0dc569bce5230.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/layout-fda2f39e4d21744c.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/live/page-a6fd7cb710d80092.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/live-run/page-2a7c714e7f65229d.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/loops/page-a71ad5f5b075be8d.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/market/page-df7f2d252ff836b5.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/missions/[id]/page-7f38deb0998488bf.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/morning/page-7e80f3b354be205e.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/not-found-5ea0e042882e87de.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/observatory/page-f3df76408c930b99.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/ops/checklist/page-88996ccc31edf06c.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/ops/release/page-d95db9df4a907fe1.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/ops/resources/page-5a518950f4136aad.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/ops/seats/page-d9e070e009e1a521.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/outputs/page-167c44a8ff378706.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/page-4763cf1b0e52e28b.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/reflection/page-a5bcd883385064d4.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/scheduler/page-f9ef43f59ba98937.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/sessions/page-43c5d7004582f888.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/settings/devices/{page-decfacd2237da403.js → page-20dfe2b5bca855eb.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/app/settings/page-7c022f7edf3203d5.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/setup/done/page-adc6daed842128e6.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-683c175da53e9ec3.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/share/page-a91d9cbaf50cc8b4.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/showroom/page-376f3a03f4d31706.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/tasks/page-256d83e84ed55191.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/term/page-5e1fb7a8e0927cf6.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/today/page-95994b2b507ee120.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/trace/page-486b1d3605dbd5f3.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/vault/page-0159591688c45cae.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/workflows/chat-ui/page-e640489e459c2789.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/workflows/page-89c00bebfb27b5d5.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/workspace/page-edf90eaa6d354fee.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/worktrees/page-2f2bd38085305ef0.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/graphs/natural-language-research.yaml +38 -0
- package/package.json +1 -1
- package/personas/botlab-4.yaml +8 -0
- 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/auto-research/research-turn.ts +120 -5
- 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/intake-source-cli.ts +9 -4
- package/src/cli/release-cli.ts +11 -5
- package/src/cli/setup-cli.ts +2 -2
- package/src/cli/setup-keys.ts +8 -5
- package/src/cli/task-plugin-wizard-host.ts +22 -3
- package/src/cli/test-state-dir-flag.ts +4 -1
- package/src/core-turn/run-core-turn.ts +93 -14
- package/src/dashboard/first-screen-band.ts +2 -6
- package/src/dashboard/index.ts +45 -32
- package/src/dashboard/plugin-wizard-runtime.ts +68 -7
- package/src/dashboard/plugin-wizard-tool.ts +16 -2
- package/src/dashboard/turn-preamble.ts +8 -0
- 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/index.ts +26 -0
- package/src/intake-plane/actions.ts +20 -12
- package/src/intake-plane/intake-sources.ts +32 -11
- package/src/intake-plane/items.ts +1 -1
- package/src/llm.ts +4 -0
- package/src/loops/budget.ts +20 -0
- package/src/mcp/server.ts +7 -2
- package/src/native-tool-catalog.ts +3 -0
- package/src/nexus/api/harness-traversal.ts +3 -3
- package/src/nexus/api/meta-api.ts +3 -1
- package/src/nexus/api/research-run-observer.ts +59 -0
- package/src/onboarding/first-chat-gate.ts +4 -1
- package/src/onboarding/first-run-doctor-test-control.ts +42 -0
- package/src/onboarding/first-run-doctor.ts +1 -0
- package/src/onboarding/first-run.ts +8 -1
- package/src/onboarding.ts +5 -1
- package/src/pr-tool/census.ts +42 -5
- package/src/prompt-library/session-guidance.ts +7 -6
- 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/self-implement/run-ledger.ts +1 -1
- package/src/self-implement/run-step-projection.ts +10 -2
- package/src/session/chat.ts +2 -0
- package/src/session-runtime/index.ts +47 -5
- package/src/setup/service-key-catalog.ts +4 -2
- package/src/setup/service-keys.ts +34 -10
- package/src/sidetab-core/model.ts +64 -6
- package/src/task-orchestrator/surfaces/pod-source-receive.ts +10 -1
- package/src/terminal/coding-agent.ts +12 -1
- package/src/tool-hints/gate.ts +7 -3
- package/src/tool-hints/signals.ts +43 -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/tui.ts +97 -4
- package/src/ux-sim/classic-tui-seat-scenarios.ts +54 -4
- package/src/ux-sim/mock-scenario-catalog.json +8 -3
- 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/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/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/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 → K-ckEB9hu9tXQ6iqnl27L}/_ssgManifest.js +0 -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
|
}
|
|
@@ -26,7 +26,7 @@ import { appendEvidenceLocationRequirement, extractVerbatimOriginalAsk, formatGo
|
|
|
26
26
|
import { createRepositoryReferencedFileReader, type ReferencedFileReader } from '../self-implement/goal-file-reader.js';
|
|
27
27
|
import { parseGoalDocumentClarifications } from '../self-implement/goal-author-clarification.js';
|
|
28
28
|
import { requiredEvidenceFromGoal } from '../self-implement/off-diff-evidence.js';
|
|
29
|
-
import { debug } from '../debug/log.js';
|
|
29
|
+
import { debug, redactSecretText } from '../debug/log.js';
|
|
30
30
|
import { REVIEW_DEFERRED_TO_HOST_ENV, reviewDeferredToHostFromEnv } from '../self-implement/review-deferred-to-host.js';
|
|
31
31
|
import { releasePathHold, releasePathHoldComment, RELEASE_PATH_LABEL } from './release-path-guard.js';
|
|
32
32
|
import { findGitDir } from '../git-fs/locate.js';
|
|
@@ -1883,6 +1883,19 @@ export function assertDispatchHonorsOptions(plan: ResolvedDevPlan): void {
|
|
|
1883
1883
|
/** 최상단 관측이 `plan`·`goalId` 를 나중에 받아 적기 위한 통. 디스패치가 채운다. */
|
|
1884
1884
|
type PlanObservationSink = { plan?: ReturnType<typeof planDevPipeline>; goalId?: string | null };
|
|
1885
1885
|
|
|
1886
|
+
function boundedNoLaunchReason(error: unknown): { errorClass: string; reason: string } {
|
|
1887
|
+
try {
|
|
1888
|
+
const isError = error instanceof Error;
|
|
1889
|
+
const rawClass = isError ? error.name : typeof error;
|
|
1890
|
+
const errorClass = redactSecretText(String(rawClass).replace(/\s+/g, ' ').trim()).slice(0, 80) || 'unknown';
|
|
1891
|
+
const message = isError ? error.message : String(error);
|
|
1892
|
+
const safe = redactSecretText(message.replace(/\s+/g, ' ').trim()).slice(0, 240);
|
|
1893
|
+
return { errorClass, reason: safe || errorClass };
|
|
1894
|
+
} catch {
|
|
1895
|
+
return { errorClass: 'unknown', reason: 'unprintable thrown value' };
|
|
1896
|
+
}
|
|
1897
|
+
}
|
|
1898
|
+
|
|
1886
1899
|
/**
|
|
1887
1900
|
* ⛔⭐⭐⭐ **관측이 무엇보다 앞이어야 한다**(무인 리뷰 must-fix 3회 · 매번 다른 자리에서).
|
|
1888
1901
|
* 종전엔 관측이 ⑴ 골 읽기·preflight 뒤 ⑵ `parallel` 조기 반환 뒤 ⑶ `planDevPipeline` 뒤에
|
|
@@ -1915,6 +1928,8 @@ export async function runDevPipeline(spec: DevPipelineSpec, deps: DevPipelineDep
|
|
|
1915
1928
|
const seen: PlanObservationSink = {};
|
|
1916
1929
|
let gitResidue: GitResidueObservation = { state: 'unreadable' };
|
|
1917
1930
|
let emitted = false;
|
|
1931
|
+
let dispatchAttempted = false;
|
|
1932
|
+
let stage = 'git-residue';
|
|
1918
1933
|
|
|
1919
1934
|
// ⭐ **정상 경로에서는 디스패치 前에 한 번 찍고**(run-start 의미 보존 — 긴 런 중에도 사전에
|
|
1920
1935
|
// 보인다), 그 앞 단계가 던진 경우에만 `finally` 의 단회 fallback 이 찍는다.
|
|
@@ -1993,7 +2008,24 @@ export async function runDevPipeline(spec: DevPipelineSpec, deps: DevPipelineDep
|
|
|
1993
2008
|
try {
|
|
1994
2009
|
// ⛔ 조회도 `try` **안**이다 — 주입된 관측기가 던져도 행은 남아야 한다(무인 리뷰).
|
|
1995
2010
|
gitResidue = spec.gitResidueSnapshot?.observation ?? await (deps.observeGitResidue ?? observeGitResidue)(gitResiduePath);
|
|
1996
|
-
return await runDevPipelineDispatch(spec, deps, seen, emitPlanRow
|
|
2011
|
+
return await runDevPipelineDispatch(spec, deps, seen, emitPlanRow,
|
|
2012
|
+
(next) => { stage = next; },
|
|
2013
|
+
() => { stage = 'dispatch'; dispatchAttempted = true; });
|
|
2014
|
+
} catch (error) {
|
|
2015
|
+
if (!dispatchAttempted) {
|
|
2016
|
+
const details = {
|
|
2017
|
+
...(spec.runId ? { runId: spec.runId } : {}),
|
|
2018
|
+
...(seen.plan ? { dispatch: seen.plan.dispatch, executor: seen.plan.executor.kind } : {}),
|
|
2019
|
+
stage,
|
|
2020
|
+
...boundedNoLaunchReason(error),
|
|
2021
|
+
};
|
|
2022
|
+
try { debug.log('dev-pipeline', 'no-launch', details, { level: 'warn' }); } catch { /* preserve the launch failure */ }
|
|
2023
|
+
if (spec.runId) {
|
|
2024
|
+
try { appendRunLedgerEntry({ timestamp: new Date().toISOString(), runId: spec.runId, event: 'no-launch', data: details }); }
|
|
2025
|
+
catch { /* incident observation must not replace the launch failure */ }
|
|
2026
|
+
}
|
|
2027
|
+
}
|
|
2028
|
+
throw error;
|
|
1997
2029
|
} finally {
|
|
1998
2030
|
cancelResourceHeartbeat?.();
|
|
1999
2031
|
if (resourceLeaseStarted && resourceFp) {
|
|
@@ -2086,9 +2118,13 @@ async function runDevPipelineDispatch(
|
|
|
2086
2118
|
deps: DevPipelineDeps,
|
|
2087
2119
|
seen: PlanObservationSink,
|
|
2088
2120
|
emitPlanRow: () => Promise<void>,
|
|
2121
|
+
setStage: (stage: string) => void,
|
|
2122
|
+
markDispatchAttempt: () => void,
|
|
2089
2123
|
): Promise<DevPipelineRunResult> {
|
|
2124
|
+
setStage('plan');
|
|
2090
2125
|
const plan = planDevPipeline(spec);
|
|
2091
2126
|
seen.plan = plan;
|
|
2127
|
+
setStage('route-preflight');
|
|
2092
2128
|
await observeDevTaskDispatch(spec, plan, deps);
|
|
2093
2129
|
if (!plan.wired) {
|
|
2094
2130
|
throw new DevPipelineError(
|
|
@@ -2110,10 +2146,14 @@ async function runDevPipelineDispatch(
|
|
|
2110
2146
|
// ★ U4b — parallel → orchestrateSelfDev(TOX coordinator). goals/concurrency=spec·감독 콜백=orchestrateRuntime.
|
|
2111
2147
|
// input 텍스트는 parallel 에 무의미(goals 가 작업) → text 해석 前에 분기(빈 input 요구 회피).
|
|
2112
2148
|
await emitPlanRow(); // ⭐ 이 경로는 골을 안 읽으므로 **디스패치 직전**이 사전 관측 자리다.
|
|
2149
|
+
setStage('dispatch-setup');
|
|
2113
2150
|
const run = deps.orchestrateSelfDev ?? (await import('./orchestrate.js')).orchestrateSelfDev;
|
|
2114
|
-
|
|
2151
|
+
const options = toOrchestrateOptions(plan, deps.orchestrateRuntime ?? {});
|
|
2152
|
+
markDispatchAttempt();
|
|
2153
|
+
return { plan, kind: 'parallel', result: await run(options) };
|
|
2115
2154
|
}
|
|
2116
2155
|
|
|
2156
|
+
setStage('goal-preflight');
|
|
2117
2157
|
const readFile = deps.readFile ?? ((p: string) => readFileSync(p, 'utf8'));
|
|
2118
2158
|
const inputText = resolveDevInputText(plan.input, readFile);
|
|
2119
2159
|
preflightGoalDoneBoundary(plan.input, inputText, process.env.ELANOUS_TASK_CARD_ID, plan.entrance);
|
|
@@ -2152,7 +2192,10 @@ async function runDevPipelineDispatch(
|
|
|
2152
2192
|
if (!deps.runChatTurn) {
|
|
2153
2193
|
throw new DevPipelineError('interactive dispatch 는 runChatTurn 주입 필요(chat 엔진은 CLI 레이어 소유·index.ts)');
|
|
2154
2194
|
}
|
|
2155
|
-
|
|
2195
|
+
const options = plan.chat ?? {};
|
|
2196
|
+
setStage('dispatch-setup');
|
|
2197
|
+
markDispatchAttempt();
|
|
2198
|
+
await deps.runChatTurn(text, options);
|
|
2156
2199
|
return { plan, kind: 'interactive', result: null };
|
|
2157
2200
|
}
|
|
2158
2201
|
|
|
@@ -2164,6 +2207,7 @@ async function runDevPipelineDispatch(
|
|
|
2164
2207
|
// ★ T1 — self implement --plan → staged 하니스(Clarify→Plan→Execute→Review→Deploy). 기존 dispatchRunDevHarness
|
|
2165
2208
|
// 위임(재발명 0). autoDrive 는 completion 에서 파생(pr/auto-merge=on·worktree-only=safe·원 액션 openPr||autoMerge 등가).
|
|
2166
2209
|
const harness = plan.harness;
|
|
2210
|
+
setStage('dispatch-setup');
|
|
2167
2211
|
const dispatch = deps.dispatchRunDevHarness ?? (await import('../skills/tools/dev-harness.js')).dispatchRunDevHarness;
|
|
2168
2212
|
const args: DevHarnessDispatchArgs = harness
|
|
2169
2213
|
? {
|
|
@@ -2187,18 +2231,25 @@ async function runDevPipelineDispatch(
|
|
|
2187
2231
|
...(plan.base ? { base: plan.base } : {}),
|
|
2188
2232
|
...(spec.runId ? { runId: spec.runId } : {}),
|
|
2189
2233
|
};
|
|
2234
|
+
setStage('dispatch-setup');
|
|
2235
|
+
markDispatchAttempt();
|
|
2190
2236
|
const res = await dispatch(args);
|
|
2191
2237
|
return { plan, kind: 'plan-staged', result: { output: res.output } };
|
|
2192
2238
|
}
|
|
2193
2239
|
|
|
2194
2240
|
if (plan.dispatch === 'elanous-tui') {
|
|
2241
|
+
setStage('dispatch-setup');
|
|
2195
2242
|
const run = deps.runPtyDrive ?? (await import('../cli/pty-drive-cli.js')).runPtyDrive;
|
|
2243
|
+
markDispatchAttempt();
|
|
2196
2244
|
return { plan, kind: 'elanous-tui', result: await run({ elanous: true, ...plan.elanous! }) };
|
|
2197
2245
|
}
|
|
2198
2246
|
if (plan.dispatch === 'shell-drive') {
|
|
2247
|
+
setStage('dispatch-setup');
|
|
2199
2248
|
const run = deps.runPtyDrive ?? (await import('../cli/pty-drive-cli.js')).runPtyDrive;
|
|
2249
|
+
markDispatchAttempt();
|
|
2200
2250
|
return { plan, kind: 'shell-drive', result: await run(plan.drive!) };
|
|
2201
2251
|
}
|
|
2252
|
+
setStage('target-preparation');
|
|
2202
2253
|
const confirmNonGit = async (target: string): Promise<void> => {
|
|
2203
2254
|
const ask = deps.askNonGitInit ?? (async (prompt: string) => {
|
|
2204
2255
|
const reader = createInterface({ input: process.stdin, output: process.stderr });
|
|
@@ -2324,12 +2375,15 @@ async function runDevPipelineDispatch(
|
|
|
2324
2375
|
// ⛔ 새 관을 만들지 않는다 — 이미 있는 이음매에 «소비자»를 붙인다.
|
|
2325
2376
|
// ⛔ 관측용이다 — 흐름을 바꾸지 않는다.
|
|
2326
2377
|
const walk: { node: string; round: number }[] = [];
|
|
2327
|
-
const
|
|
2378
|
+
const options: SelfImplementOptions = {
|
|
2328
2379
|
...toSelfImplementOptions(text, plan, seams),
|
|
2329
2380
|
...(spec.runId ? { runId: spec.runId } : {}),
|
|
2330
2381
|
...(deps.signal ? { signal: deps.signal } : {}),
|
|
2331
2382
|
onNodeEntry: (node, round) => { walk.push({ node, round }); },
|
|
2332
|
-
}
|
|
2383
|
+
};
|
|
2384
|
+
setStage('dispatch-setup');
|
|
2385
|
+
markDispatchAttempt();
|
|
2386
|
+
const result = await run(options);
|
|
2333
2387
|
// ⛔ 「걸음이 비었다」와 「안 걸었다」를 가른다 — 빈 배열은 «싣지 않는다».
|
|
2334
2388
|
return { plan, kind: 'self', result: walk.length === 0 ? result : { ...result, walk } };
|
|
2335
2389
|
}
|
|
@@ -2339,6 +2393,8 @@ async function runDevPipelineDispatch(
|
|
|
2339
2393
|
const cwd = deps.cwd ?? process.cwd();
|
|
2340
2394
|
const signal = deps.signal ?? new AbortController().signal; // 상위 취소 신호 전달(미제공 시 non-abort)
|
|
2341
2395
|
const args = toAcpAgentArgs(text, plan, cwd);
|
|
2396
|
+
setStage('dispatch-setup');
|
|
2397
|
+
markDispatchAttempt();
|
|
2342
2398
|
const raw = deps.dispatchAcpAgent ? await deps.dispatchAcpAgent(args, signal) : await defaultDispatchAcp(args, signal);
|
|
2343
2399
|
// 결과 정규화 — {error}/{cancelled}를 성공으로 오판하지 않게 {ok} 계약으로(CLI exit-code 호환·fail-closed).
|
|
2344
2400
|
return { plan, kind: 'acp', result: normalizeAcpResult(raw) };
|
|
@@ -2346,8 +2402,11 @@ async function runDevPipelineDispatch(
|
|
|
2346
2402
|
// agent-mission-pty
|
|
2347
2403
|
const run = deps.runAgentMission ?? (await import('../agent-mission/driver.js')).runAgentMission;
|
|
2348
2404
|
const resolveBackend = deps.resolveBackend ?? (await import('../agent-mission/driver.js')).resolveBackend;
|
|
2349
|
-
|
|
2405
|
+
const mission = {
|
|
2350
2406
|
...toAgentMissionSpec(text, plan, resolveBackend),
|
|
2351
2407
|
...(deps.signal ? { signal: deps.signal } : {}),
|
|
2352
|
-
}
|
|
2408
|
+
};
|
|
2409
|
+
setStage('dispatch-setup');
|
|
2410
|
+
markDispatchAttempt();
|
|
2411
|
+
return { plan, kind: 'agent-mission', result: await run(mission) };
|
|
2353
2412
|
}
|
|
@@ -631,7 +631,7 @@ export async function dispatchHeavyCheck(opts: DispatchOptions, deps: DispatchDe
|
|
|
631
631
|
? opts.reservationRoot ?? (deps.runner ? undefined : gateHostReservationRoot()) : undefined;
|
|
632
632
|
if (reservationRoot) {
|
|
633
633
|
type ReservationObservation = { status: 'free'; probeFailed: boolean; probeFailure?: string }
|
|
634
|
-
|
|
|
634
|
+
| { status: 'reserved' | 'unknown'; reason: string; runId?: string; reservedAt?: number; podReservations?: number };
|
|
635
635
|
const resourceStatus = (target: string) => {
|
|
636
636
|
if (!deps.readHostResources && deps.runner) return null; // fake runners keep tests hermetic unless the producer is explicitly exercised
|
|
637
637
|
return (deps.readHostResources ?? ((selected) => readGateHostResourcesForHost(selected, env)))(target.split('@').at(-1)!);
|
|
@@ -646,7 +646,7 @@ export async function dispatchHeavyCheck(opts: DispatchOptions, deps: DispatchDe
|
|
|
646
646
|
if (claim.status !== 'free') return claim;
|
|
647
647
|
return { status: 'free', probeFailed: true, probeFailure: resources.reason.trim() || 'unspecified' };
|
|
648
648
|
}
|
|
649
|
-
if (!resources.empty) return { status: 'reserved' as const, reason: `Pod resource pool occupied (${resources.reservations} reservations)
|
|
649
|
+
if (!resources.empty) return { status: 'reserved' as const, reason: `Pod resource pool occupied (${resources.reservations} reservations)`, podReservations: resources.reservations };
|
|
650
650
|
return claim.status === 'free' ? { status: 'free', probeFailed: false } : claim;
|
|
651
651
|
};
|
|
652
652
|
const warnProbeFailure = (target: string, reason: string) => {
|
|
@@ -661,6 +661,8 @@ export async function dispatchHeavyCheck(opts: DispatchOptions, deps: DispatchDe
|
|
|
661
661
|
// the owner and the observation stamp.
|
|
662
662
|
const observedAt = formatReservationStamp(now());
|
|
663
663
|
const owner = first.runId || 'unknown';
|
|
664
|
+
const podPoolReason = first.podReservations === undefined
|
|
665
|
+
? undefined : `Pod resource pool occupied (${first.podReservations} reservations) on ${reservationHost}`;
|
|
664
666
|
// Owner (runId) plus 시각: the claim's own reservedAt when recorded, else the moment this gate observed it.
|
|
665
667
|
const stamp = first.reservedAt !== undefined
|
|
666
668
|
? `reserved-at=${formatReservationStamp(first.reservedAt)}`
|
|
@@ -679,8 +681,10 @@ export async function dispatchHeavyCheck(opts: DispatchOptions, deps: DispatchDe
|
|
|
679
681
|
});
|
|
680
682
|
if (alternate) {
|
|
681
683
|
const rerouted = host.includes('@') ? `${host.slice(0, host.lastIndexOf('@'))}@${alternate}` : alternate;
|
|
682
|
-
debug.log('gate.remote', 'host-reserved-reroute', { tool: opts.tool, from: host, to: rerouted, owner, reason: first.reason, reservedAt: first.reservedAt, observedAt });
|
|
683
|
-
write.err(
|
|
684
|
+
debug.log('gate.remote', 'host-reserved-reroute', { tool: opts.tool, from: host, to: rerouted, ...(podPoolReason ? { reason: podPoolReason, podReservations: first.podReservations } : { owner, reason: first.reason }), reservedAt: first.reservedAt, observedAt });
|
|
685
|
+
write.err(podPoolReason
|
|
686
|
+
? `[gate.remote] ${podPoolReason} — rerouting to ${rerouted}\n`
|
|
687
|
+
: `[gate.remote] host-reserved: ${host} (${first.reason}) owner=${owner} ${stamp} — rerouting to ${rerouted}\n`);
|
|
684
688
|
host = rerouted;
|
|
685
689
|
} else {
|
|
686
690
|
const waitSeconds = opts.tool === 'self-gate' ? opts.reservationWaitSeconds ?? settings.slotWaitSeconds : 0;
|
|
@@ -705,12 +709,14 @@ export async function dispatchHeavyCheck(opts: DispatchOptions, deps: DispatchDe
|
|
|
705
709
|
write.err(`[gate.remote] host-reserved released on ${host} after ${Math.floor(waitedMs / 1000)}s — proceeding remotely\n`);
|
|
706
710
|
}
|
|
707
711
|
} else {
|
|
708
|
-
const
|
|
712
|
+
const latestPodPoolReason = latest.podReservations === undefined
|
|
713
|
+
? undefined : `Pod resource pool occupied (${latest.podReservations} reservations) on ${reservationHost}`;
|
|
714
|
+
const reason = latestPodPoolReason ?? `host-reserved: ${host} (${latest.reason})`;
|
|
709
715
|
const manualAlternative = reservationHost === 'node-b'
|
|
710
716
|
? '; if available, non-PWA checks may explicitly select --remote host-e-wsl' : '';
|
|
711
|
-
debug.log('gate.remote', 'host-reserved-unmeasured', { host, reason, owner, reservedAt: latest.reservedAt ?? first.reservedAt, observedAt, waitedMs, alternates: alternates.length });
|
|
717
|
+
debug.log('gate.remote', 'host-reserved-unmeasured', { host, reason, ...(latestPodPoolReason ? { podReservations: latest.podReservations } : { owner }), reservedAt: latest.reservedAt ?? first.reservedAt, observedAt, waitedMs, alternates: alternates.length });
|
|
712
718
|
write.err(opts.tool === 'self-gate'
|
|
713
|
-
? `[gate.remote] remote unmeasured on ${host} (stage=host-reserved, rc=unknown) — ${reason}
|
|
719
|
+
? `[gate.remote] remote unmeasured on ${host} (stage=host-reserved, rc=unknown) — ${reason}${latestPodPoolReason ? '' : `; owner=${owner} ${stamp}`} waited=${Math.floor(waitedMs / 1000)}s${manualAlternative}\n`
|
|
714
720
|
: `[gate.remote] remote unmeasured — ${reason}\n`);
|
|
715
721
|
return 1;
|
|
716
722
|
}
|
|
@@ -39,7 +39,7 @@ export function pathSignatureOf(steps: readonly { readonly from: string; readonl
|
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
const RUN_GRAPH_STEP_EVENTS = new Set([
|
|
42
|
-
'node-enter', 'node-exit', 'edge-taken', 'node-skipped', 'node-added', 'edge-rerouted',
|
|
42
|
+
'node-enter', 'node-exit', 'edge-taken', 'node-skipped', 'node-added', 'edge-rerouted', 'priority-changed',
|
|
43
43
|
'unit-expanded', 'unit-collapsed', 'pipeline-node-entry', 'pipeline-node-exit', 'graph-edge-taken',
|
|
44
44
|
'graph.path',
|
|
45
45
|
]);
|
|
@@ -7,6 +7,7 @@ export type RunStep =
|
|
|
7
7
|
| { seq: number; ts: string; type: 'node-skipped'; node: string; reason: string; condition?: string }
|
|
8
8
|
| { seq: number; ts: string; type: 'node-added'; node: string; kind: string; decider: string; reason: string; trigger?: unknown; undo?: unknown; source?: string; injected?: boolean; scene?: string; demo1104Scene?: string; mockOutcome?: string }
|
|
9
9
|
| { seq: number; ts: string; type: 'edge-rerouted'; from: string; outcome: string; to: string; was: string; decider: string; reason: string; source?: string; injected?: boolean; scene?: string; demo1104Scene?: string; mockOutcome?: string }
|
|
10
|
+
| { seq: number; ts: string; type: 'priority-changed'; node: string; from: number; to: number; decider: string; reason: string }
|
|
10
11
|
| { seq: number; ts: string; type: 'unit-expanded'; node: string; unit: string; childRunId: string; resolution: number; decider: string; reason: string }
|
|
11
12
|
| { seq: number; ts: string; type: 'unit-collapsed'; node: string; resolution: number; decider: string; reason: string };
|
|
12
13
|
|
|
@@ -23,10 +24,10 @@ export interface RunStepProjection {
|
|
|
23
24
|
|
|
24
25
|
const STEP_EVENTS = new Set([
|
|
25
26
|
'node-enter', 'node-exit', 'edge-taken', 'node-skipped',
|
|
26
|
-
'node-added', 'edge-rerouted', 'unit-expanded', 'unit-collapsed',
|
|
27
|
+
'node-added', 'edge-rerouted', 'priority-changed', 'unit-expanded', 'unit-collapsed',
|
|
27
28
|
'pipeline-node-entry', 'pipeline-node-exit', 'graph-edge-taken',
|
|
28
29
|
]);
|
|
29
|
-
const STRUCTURAL_EVENTS = new Set(['node-added', 'edge-rerouted', 'unit-expanded', 'unit-collapsed']);
|
|
30
|
+
const STRUCTURAL_EVENTS = new Set(['node-added', 'edge-rerouted', 'priority-changed', 'unit-expanded', 'unit-collapsed']);
|
|
30
31
|
|
|
31
32
|
function text(data: Record<string, unknown>, key: string): string | null {
|
|
32
33
|
const value = data[key];
|
|
@@ -104,6 +105,13 @@ function projectStep(entry: RunLedgerEntry, type: string, seq: number): RunStep
|
|
|
104
105
|
const was = text(data, 'was');
|
|
105
106
|
return from && outcome && to && was ? { seq, ts, type, from, outcome, to, was, decider: text(data, 'decider')!, reason: text(data, 'reason')!, ...structuralProvenance(data) } : 'edge-rerouted requires from, outcome, to and was';
|
|
106
107
|
}
|
|
108
|
+
case 'priority-changed': {
|
|
109
|
+
const from = data.from;
|
|
110
|
+
const to = data.to;
|
|
111
|
+
return node && typeof from === 'number' && Number.isFinite(from) && typeof to === 'number' && Number.isFinite(to)
|
|
112
|
+
? { seq, ts, type, node, from, to, decider: text(data, 'decider')!, reason: text(data, 'reason')! }
|
|
113
|
+
: 'priority-changed requires node and numeric from/to';
|
|
114
|
+
}
|
|
107
115
|
case 'unit-expanded': {
|
|
108
116
|
const unit = text(data, 'unit') ?? text(data, 'into');
|
|
109
117
|
const childRunId = text(data, 'childRunId');
|
package/src/session/chat.ts
CHANGED
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
// path is untouched — wiring that in is follow-up work the user can
|
|
13
13
|
// approve separately (lots of UI surface; one bug = broken dashboard).
|
|
14
14
|
|
|
15
|
+
import { randomUUID } from 'node:crypto';
|
|
15
16
|
import {
|
|
16
17
|
createSession, appendMessage, loadSession,
|
|
17
18
|
type SessionMeta, type SerializedMessage, type CreateSessionOpts,
|
|
@@ -551,6 +552,7 @@ export async function runTurn(opts: RunTurnOpts): Promise<RunTurnResult> {
|
|
|
551
552
|
}
|
|
552
553
|
const coreCtx: CoreTurnContext = {
|
|
553
554
|
sessionId: opts.sessionId,
|
|
555
|
+
...(armResearchTurn ? { runId: randomUUID() } : {}),
|
|
554
556
|
// ⭐ 이 턴의 «사람 문장» 운반자. 없으면 표면 판정이 늘 기본값으로 떨어진다
|
|
555
557
|
// (골 루프가 라운드 사이에 기계 문장을 밀어 넣기 때문 — run-goal-loop.ts 진입 주석).
|
|
556
558
|
userText: opts.userText,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { buildGitSnapshot } from '../git-fs/index.js';
|
|
2
2
|
import { classifyTuiChatIntent } from '../core-turn/short-question.js';
|
|
3
3
|
import { debug } from '../debug/log.js';
|
|
4
|
-
import { isResearchAgentIntent } from '../tool-hints/signals.js';
|
|
4
|
+
import { isOrderedNonResearchWorkflow, isResearchAgentIntent } from '../tool-hints/signals.js';
|
|
5
5
|
import { resolve } from 'node:path';
|
|
6
6
|
import type { ModelFamily } from '../models/prompts.js';
|
|
7
7
|
import type { InputSourceKind, InputSourceRef } from '../input/input-source-kind.js';
|
|
@@ -1541,8 +1541,11 @@ export function resolveSessionSurfaceProfile(opts: {
|
|
|
1541
1541
|
const text = String(opts.userText ?? '').toLowerCase();
|
|
1542
1542
|
if (hasOpsFleetIntent(text)) return decision('ops-fleet/agent', 'ops-fleet-intent');
|
|
1543
1543
|
if (hasOpsUiIntent(text)) return decision('ops-ui/agent', 'ops-ui-intent');
|
|
1544
|
-
|
|
1545
|
-
if (
|
|
1544
|
+
const orderedNonResearchWorkflow = isOrderedNonResearchWorkflow(text);
|
|
1545
|
+
if (!orderedNonResearchWorkflow && hasResearchSearchIntent(text)) return decision('research/agent', 'research-search-intent');
|
|
1546
|
+
if (!orderedNonResearchWorkflow && (hasWebSearchIntent(text) || hasWebFetchIntent(text))) {
|
|
1547
|
+
return decision('research/turn', 'web-search-or-fetch-intent');
|
|
1548
|
+
}
|
|
1546
1549
|
if (hasDevHarnessIntent(text)) return decision('coding/agent', 'dev-harness-intent');
|
|
1547
1550
|
return decision('coding/turn', 'fallback-default');
|
|
1548
1551
|
}
|
|
@@ -1761,6 +1764,7 @@ const ESSENTIAL_HOST_FAMILY_IDS = ['self-ops', 'release-read'] as const;
|
|
|
1761
1764
|
// ScheduleWakeup (H5) is a dashboard-only host tool — present only when the TUI registered it.
|
|
1762
1765
|
const ESSENTIAL_HOST_EXTRA_NAMES = ['logs_query', 'ScheduleWakeup'] as const;
|
|
1763
1766
|
const ESSENTIAL_RUNTIME_FAMILY_IDS = ['bash', 'run-shell', 'ops-ledger', 'pty-shell', 'run-tests', 'elanous_skills_list', 'skill_exec', 'code-grounding'] as const;
|
|
1767
|
+
const ESSENTIAL_RUNTIME_EXTRA_NAMES = ['tool_search'] as const;
|
|
1764
1768
|
const ESSENTIAL_OPTIONAL_TOOL_NAMES = [
|
|
1765
1769
|
'GetDashboardState',
|
|
1766
1770
|
'TerminalModalList', 'TerminalModalObserve', 'TerminalModalFocus', 'TerminalModalDetach', 'TerminalModalKill',
|
|
@@ -1809,6 +1813,23 @@ function buildEssentialSessionRuntimeToolSpecs(opts: {
|
|
|
1809
1813
|
.map(tool => tool.spec)
|
|
1810
1814
|
: [];
|
|
1811
1815
|
});
|
|
1816
|
+
const runtimeExtras = ESSENTIAL_RUNTIME_EXTRA_NAMES
|
|
1817
|
+
.map(name => runtimeById.get(name))
|
|
1818
|
+
.filter((tool): tool is ToolRuntime<Record<string, unknown>, ToolRunResult> => !!tool)
|
|
1819
|
+
.filter(tool => isToolAvailable(tool.spec.name, opts.toolAvailability))
|
|
1820
|
+
.map(tool => tool.spec);
|
|
1821
|
+
// Keep explicit external-service actions callable in the TUI. The catalog metadata, not a service-name list, defines this lane.
|
|
1822
|
+
const explicitIntegrationSpecs = opts.runtimeTools
|
|
1823
|
+
.filter(tool => {
|
|
1824
|
+
const entry = findNativeTool(tool.id);
|
|
1825
|
+
return entry?.host.includes('tui')
|
|
1826
|
+
&& entry.safety.includes('mutating')
|
|
1827
|
+
&& entry.safety.includes('network')
|
|
1828
|
+
&& entry.intentScope === 'ops-fleet'
|
|
1829
|
+
&& entry.alwaysLoad !== false;
|
|
1830
|
+
})
|
|
1831
|
+
.filter(tool => isToolAvailable(tool.spec.name, opts.toolAvailability))
|
|
1832
|
+
.map(tool => tool.spec);
|
|
1812
1833
|
// External MCP proxy runtimes are registered asynchronously by the TUI boot
|
|
1813
1834
|
// path and carry both `mcp` and `tui` surfaces. They are intentionally not
|
|
1814
1835
|
// part of the fixed built-in family allowlist above; include these explicit
|
|
@@ -1822,7 +1843,7 @@ function buildEssentialSessionRuntimeToolSpecs(opts: {
|
|
|
1822
1843
|
.map(name => optionalByName.get(name))
|
|
1823
1844
|
.filter((tool): tool is LLMToolSpec => !!tool)
|
|
1824
1845
|
.filter(tool => isToolAvailable(tool.name, opts.toolAvailability));
|
|
1825
|
-
return [...nativeSpecs, ...hostSpecs, ...runtimeSpecs, ...mcpProxySpecs, ...optionalSpecs];
|
|
1846
|
+
return [...nativeSpecs, ...hostSpecs, ...runtimeSpecs, ...runtimeExtras, ...explicitIntegrationSpecs, ...mcpProxySpecs, ...optionalSpecs];
|
|
1826
1847
|
}
|
|
1827
1848
|
|
|
1828
1849
|
/** Build the full TUI-visible catalog for Agent children. The parent model's
|
|
@@ -1897,13 +1918,26 @@ export function buildSessionRuntimeToolSpecs(opts: {
|
|
|
1897
1918
|
.map(name => hostByName.get(name))
|
|
1898
1919
|
.filter((tool): tool is LLMToolDef => !!tool)
|
|
1899
1920
|
.map(toSpec);
|
|
1921
|
+
// classic dashboard turns use rich=false, whose essential catalog skips
|
|
1922
|
+
// intent-based native selection. Preserve the explicitly registered
|
|
1923
|
+
// Linear runtime there; put it first for ordered issue-then-research asks.
|
|
1924
|
+
const linearIssueSpec = hasAny(normalizedIntentText, ['linear', '리니어'])
|
|
1925
|
+
? (opts.runtimeTools ?? []).find(tool => tool.id === 'elanous_linear_issue')?.spec
|
|
1926
|
+
: undefined;
|
|
1927
|
+
const orderedLinear = !!linearIssueSpec && isOrderedNonResearchWorkflow(opts.userText)
|
|
1928
|
+
&& hasAny(normalizedIntentText, ['linear', '리니어']);
|
|
1900
1929
|
const droppedNames = new Set(['Edit', 'Write']);
|
|
1901
1930
|
const dropWriteTools = hasDevHarnessIntent(opts.userText);
|
|
1902
1931
|
const droppedWriteSpecs = dropWriteTools
|
|
1903
1932
|
? essentialSpecs.filter(spec => droppedNames.has(spec.name))
|
|
1904
1933
|
: [];
|
|
1905
1934
|
const finalSpecs: LLMToolSpec[] = [...new Map(
|
|
1906
|
-
[
|
|
1935
|
+
[
|
|
1936
|
+
...(orderedLinear && linearIssueSpec ? [linearIssueSpec] : []),
|
|
1937
|
+
...essentialSpecs,
|
|
1938
|
+
...intentHostSpecs,
|
|
1939
|
+
...(!orderedLinear && linearIssueSpec ? [linearIssueSpec] : []),
|
|
1940
|
+
]
|
|
1907
1941
|
.filter(spec => !dropWriteTools || !droppedNames.has(spec.name))
|
|
1908
1942
|
.map(spec => [spec.name, spec] as const),
|
|
1909
1943
|
).values()];
|
|
@@ -2755,6 +2789,14 @@ function isToolAvailable(
|
|
|
2755
2789
|
return true;
|
|
2756
2790
|
}
|
|
2757
2791
|
|
|
2792
|
+
/** Filter a surface's candidate tool specs through the same availability gate used by the session catalog. */
|
|
2793
|
+
export function filterAvailableToolSpecs(
|
|
2794
|
+
specs: readonly LLMToolSpec[],
|
|
2795
|
+
overrides?: Readonly<Record<string, boolean>>,
|
|
2796
|
+
): LLMToolSpec[] {
|
|
2797
|
+
return specs.filter(spec => isToolAvailable(spec.name, overrides));
|
|
2798
|
+
}
|
|
2799
|
+
|
|
2758
2800
|
function isNativeToolAvailable(
|
|
2759
2801
|
name: string,
|
|
2760
2802
|
rule: SessionNativeToolRule,
|
|
@@ -4,6 +4,8 @@ export interface ServiceKeyCatalogEntry {
|
|
|
4
4
|
label: string;
|
|
5
5
|
kind: 'api-key' | 'subscription' | 'oauth' | 'cli' | 'local';
|
|
6
6
|
envNames: readonly string[];
|
|
7
|
+
/** Secret-store IDs read by the runtime consumer for this service. */
|
|
8
|
+
storeIds?: readonly string[];
|
|
7
9
|
setupUrl: string;
|
|
8
10
|
usedBy: string;
|
|
9
11
|
cost: 'account-plan' | 'usage-based' | 'plan-dependent' | 'local';
|
|
@@ -19,7 +21,7 @@ export const SERVICE_KEY_CATALOG: readonly ServiceKeyCatalogEntry[] = [
|
|
|
19
21
|
{ id: 'xai', label: 'xAI / Grok API', kind: 'api-key', envNames: ['XAI_API_KEY', 'GROK_API_KEY'], setupUrl: 'https://console.x.ai/', usedBy: '씬 2 흡수 · Grok API', cost: 'usage-based', verification: 'GET /v1/models · 상태 코드만', demoRequired: true },
|
|
20
22
|
{ id: 'tavily', label: 'Tavily', kind: 'api-key', envNames: ['TAVILY_API_KEY', 'TAVILY_KEY'], setupUrl: 'https://app.tavily.com/home', usedBy: '웹 검색 대체 경로', cost: 'usage-based', verification: 'POST /search · 상태 코드만', demoRequired: false },
|
|
21
23
|
{ id: 'openrouter', label: 'OpenRouter · GLM', kind: 'api-key', envNames: ['OPENROUTER_API_KEY'], setupUrl: 'https://openrouter.ai/keys', usedBy: 'GLM · OpenRouter 모델', cost: 'usage-based', verification: 'GET /api/v1/key · 상태 코드만', demoRequired: true },
|
|
22
|
-
{ id: 'linear', label: 'Linear API', kind: 'api-key', envNames: ['LINEAR_API_KEY'], setupUrl: 'https://linear.app/settings/api', usedBy: '씬 2 능동 비서', cost: 'plan-dependent', verification: 'GraphQL viewer · 상태 코드만', demoRequired: true },
|
|
24
|
+
{ id: 'linear', label: 'Linear API', kind: 'api-key', envNames: ['LINEAR_API_KEY'], storeIds: ['connector.linear.apiKey'], setupUrl: 'https://linear.app/settings/api', usedBy: '씬 2 능동 비서', cost: 'plan-dependent', verification: 'GraphQL viewer · 상태 코드만', demoRequired: true },
|
|
23
25
|
{ id: 'telegram', label: 'Telegram bot', kind: 'api-key', envNames: ['ELANOUS_TELEGRAM_BOT_TOKEN'], setupUrl: 'https://t.me/BotFather', usedBy: '씬 2 · 씬 3 채널', cost: 'local', verification: 'getMe · 상태 코드만', demoRequired: true },
|
|
24
26
|
{ id: 'telegram-chat', label: 'Telegram chat ID', kind: 'api-key', envNames: ['ELANOUS_TELEGRAM_CHAT_ID'], setupUrl: 'https://core.telegram.org/bots/features#botfather', usedBy: '데모 알림 대상', cost: 'local', verification: 'getChat · 상태 코드만 · 미발송', demoRequired: true },
|
|
25
27
|
{ id: 'google-workspace', label: 'Google Workspace', kind: 'oauth', envNames: [], setupUrl: 'https://developers.google.com/workspace/guides/get-started', usedBy: 'Gmail · Drive 커넥터', cost: 'account-plan', verification: '로그인 상태 확인 · 토큰 미표시', demoRequired: false },
|
|
@@ -41,6 +43,6 @@ export const SERVICE_KEY_CATALOG: readonly ServiceKeyCatalogEntry[] = [
|
|
|
41
43
|
] as const;
|
|
42
44
|
|
|
43
45
|
export function renderServiceKeyCatalogMarkdown(): string {
|
|
44
|
-
const rows = SERVICE_KEY_CATALOG.map(item => `| ${item.id} | ${item.label} | ${item.kind} | ${item.envNames.join(', ') || '로그인/설치'} | ${item.setupUrl} | ${item.cost} | ${item.usedBy} | ${item.verification} | ${item.demoRequired ? '씬 사용' : '선택'} |`);
|
|
46
|
+
const rows = SERVICE_KEY_CATALOG.map(item => `| ${item.id} | ${item.label} | ${item.kind} | ${[...item.envNames, ...(item.storeIds ?? [])].join(', ') || '로그인/설치'} | ${item.setupUrl} | ${item.cost} | ${item.usedBy} | ${item.verification} | ${item.demoRequired ? '씬 사용' : '선택'} |`);
|
|
45
47
|
return ['| id | 서비스 | 인증 | 환경 이름 | 설정 위치 | 비용 유형 | 사용처 | 최소 확인 | 판정 |', '|---|---|---|---|---|---|---|---|---|', ...rows].join('\n');
|
|
46
48
|
}
|
|
@@ -95,6 +95,10 @@ export interface ServiceKeyStatus {
|
|
|
95
95
|
label: string;
|
|
96
96
|
envNames: string[];
|
|
97
97
|
configured: boolean;
|
|
98
|
+
/** Names of sources that currently contain a usable value; secret values are never returned. */
|
|
99
|
+
sources: string[];
|
|
100
|
+
/** True when at least one secret-store source could not be checked. */
|
|
101
|
+
sourceCheckFailed: boolean;
|
|
98
102
|
kind: string;
|
|
99
103
|
}
|
|
100
104
|
|
|
@@ -113,20 +117,40 @@ function cachedValue(name: string, cacheDir: string): string | undefined {
|
|
|
113
117
|
} catch { return undefined; }
|
|
114
118
|
}
|
|
115
119
|
|
|
116
|
-
export function serviceKeyStatus(options: {
|
|
120
|
+
export async function serviceKeyStatus(options: {
|
|
117
121
|
env?: NodeJS.ProcessEnv;
|
|
118
122
|
cacheDir?: string;
|
|
119
|
-
|
|
123
|
+
getSecret?: (id: string) => Promise<string | undefined>;
|
|
124
|
+
} = {}): Promise<ServiceKeyStatus[]> {
|
|
120
125
|
const env = options.env ?? process.env;
|
|
121
126
|
const cacheDir = options.cacheDir ?? (process.env.ELANOUS_KEY_CACHE_DIR?.trim() || join(homedir(), '.cache'));
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
127
|
+
// Keep bare CLI startup independent of the NEXUS secret backend; load it
|
|
128
|
+
// only when explicit status inspection needs a secret-store entry.
|
|
129
|
+
const getSecret = options.getSecret ?? (async (id: string) => {
|
|
130
|
+
const { getSecretAsync } = await import('../nexus/config/secrets/index.js');
|
|
131
|
+
return getSecretAsync(id);
|
|
132
|
+
});
|
|
133
|
+
return Promise.all(SERVICE_KEY_CATALOG.map(async item => {
|
|
134
|
+
const envSources = item.envNames.filter(name => Boolean(env[name]?.trim()));
|
|
135
|
+
const cacheSources = item.storeIds?.length
|
|
136
|
+
? [] // A cached LINEAR_API_KEY is not one of the runtime credential sources.
|
|
137
|
+
: item.envNames.filter(name => Boolean(cachedValue(name, cacheDir))).map(name => `cache:${name}`);
|
|
138
|
+
const secretSources: string[] = [];
|
|
139
|
+
let sourceCheckFailed = false;
|
|
140
|
+
for (const id of item.storeIds ?? []) {
|
|
141
|
+
try { if ((await getSecret(id))?.trim()) secretSources.push(id); }
|
|
142
|
+
catch { sourceCheckFailed = true; }
|
|
143
|
+
}
|
|
144
|
+
const sources = [...envSources, ...cacheSources, ...secretSources];
|
|
145
|
+
return {
|
|
146
|
+
id: item.id,
|
|
147
|
+
label: item.label,
|
|
148
|
+
envNames: [...item.envNames],
|
|
149
|
+
kind: item.kind,
|
|
150
|
+
sources,
|
|
151
|
+
sourceCheckFailed,
|
|
152
|
+
configured: item.kind === 'api-key' && sources.length > 0,
|
|
153
|
+
};
|
|
130
154
|
}));
|
|
131
155
|
}
|
|
132
156
|
|