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.
Files changed (507) hide show
  1. package/apps/pwa/out/404/index.html +1 -1
  2. package/apps/pwa/out/404.html +1 -1
  3. package/apps/pwa/out/_next/static/{98VlBaYvL-VVnCq93_lFS → K-ckEB9hu9tXQ6iqnl27L}/_buildManifest.js +1 -1
  4. package/apps/pwa/out/_next/static/chunks/001d1d30.3b264a3a5834784b.js +1 -0
  5. package/apps/pwa/out/_next/static/chunks/{9531.ffbcd1e59e2c32fc.js → 1004.b334bd3d776bd455.js} +4 -4
  6. package/apps/pwa/out/_next/static/chunks/1044.f780ef30fbeec1d2.js +1 -0
  7. package/apps/pwa/out/_next/static/chunks/106.ef1dcdfef46b0b72.js +1 -0
  8. package/apps/pwa/out/_next/static/chunks/1207.912f5869bdf13244.js +1 -0
  9. package/apps/pwa/out/_next/static/chunks/1226-29248177d8e43df5.js +1 -0
  10. package/apps/pwa/out/_next/static/chunks/128757ea.677175b2ad79b371.js +1 -0
  11. package/apps/pwa/out/_next/static/chunks/1469.157ee10170c461ab.js +1 -0
  12. package/apps/pwa/out/_next/static/chunks/1475-f4208d07b2b41e44.js +1 -0
  13. package/apps/pwa/out/_next/static/chunks/1525.9fd05c15746d77c8.js +1 -0
  14. package/apps/pwa/out/_next/static/chunks/{5536.bbb17703f46e52e7.js → 1549.81d2a59aa303b629.js} +2 -2
  15. package/apps/pwa/out/_next/static/chunks/1596-80cc66168f6a520b.js +1 -0
  16. package/apps/pwa/out/_next/static/chunks/1695-e63446cc38743225.js +1 -0
  17. package/apps/pwa/out/_next/static/chunks/224.0585d01ba7f4f898.js +226 -0
  18. package/apps/pwa/out/_next/static/chunks/2277.80d00b0a6fe67cad.js +94 -0
  19. package/apps/pwa/out/_next/static/chunks/2287.6a4cce8ac8897fda.js +1 -0
  20. package/apps/pwa/out/_next/static/chunks/2378.0805bd9972a241f3.js +24 -0
  21. package/apps/pwa/out/_next/static/chunks/{751.95d127a92f7817e3.js → 2538.f7b0fd1f3b0c2bff.js} +1 -1
  22. package/apps/pwa/out/_next/static/chunks/25600806.42d40cb74fdc4bf3.js +122 -0
  23. package/apps/pwa/out/_next/static/chunks/2785-33003c356341fab5.js +1 -0
  24. package/apps/pwa/out/_next/static/chunks/280-53fe7ab5dbd19607.js +1 -0
  25. package/apps/pwa/out/_next/static/chunks/29.135cc356bdf1a8be.js +1 -0
  26. package/apps/pwa/out/_next/static/chunks/2987.f36195bfacdbcc4e.js +148 -0
  27. package/apps/pwa/out/_next/static/chunks/3111-f3c2382dc49d4719.js +1 -0
  28. package/apps/pwa/out/_next/static/chunks/{7479.d00f44fde98cf34e.js → 3130.69315cfa410b3cc7.js} +1 -1
  29. package/apps/pwa/out/_next/static/chunks/3135-4f30d19149be541d.js +1 -0
  30. package/apps/pwa/out/_next/static/chunks/336.dd6c1b81512124e6.js +74 -0
  31. package/apps/pwa/out/_next/static/chunks/337.35019dda0819a283.js +64 -0
  32. package/apps/pwa/out/_next/static/chunks/3393.cbbe17ef7aeee5e7.js +2 -0
  33. package/apps/pwa/out/_next/static/chunks/3394.8a08fac56ac2f941.js +1 -0
  34. package/apps/pwa/out/_next/static/chunks/3461-113eb7d3afb5969e.js +1 -0
  35. package/apps/pwa/out/_next/static/chunks/3603-473956ca996d5b03.js +1 -0
  36. package/apps/pwa/out/_next/static/chunks/3687.55335796604accd0.js +1 -0
  37. package/apps/pwa/out/_next/static/chunks/3692-ed2cebf0d6c4e273.js +1 -0
  38. package/apps/pwa/out/_next/static/chunks/3702-d50492fee8529bd7.js +1 -0
  39. package/apps/pwa/out/_next/static/chunks/3782.3ead96e62c8ac5c5.js +1 -0
  40. package/apps/pwa/out/_next/static/chunks/3849-59a5a66baa48998b.js +1 -0
  41. package/apps/pwa/out/_next/static/chunks/3965.1ae261de91a7507b.js +115 -0
  42. package/apps/pwa/out/_next/static/chunks/3985-432efaf9bc4e4123.js +1 -0
  43. package/apps/pwa/out/_next/static/chunks/4055-90325ff209cd557e.js +1 -0
  44. package/apps/pwa/out/_next/static/chunks/4174.d97cc593a5cf01bc.js +1 -0
  45. package/apps/pwa/out/_next/static/chunks/4276.863502da440e095f.js +1 -0
  46. package/apps/pwa/out/_next/static/chunks/4450-ea0ec552f18d799d.js +1 -0
  47. package/apps/pwa/out/_next/static/chunks/{5571.a062963c309338b4.js → 448.26b198f3b58cbcf9.js} +2 -2
  48. package/apps/pwa/out/_next/static/chunks/4495.2fbef8546af0792c.js +1 -0
  49. package/apps/pwa/out/_next/static/chunks/4578.04c77c13e3c62361.js +1 -0
  50. package/apps/pwa/out/_next/static/chunks/4674.e41c0f9b62fed6e2.js +36 -0
  51. package/apps/pwa/out/_next/static/chunks/{7197.7b19aa948048e19a.js → 482.52b487cbac96db29.js} +2 -2
  52. package/apps/pwa/out/_next/static/chunks/4841.b78af1deed2d3d3f.js +23 -0
  53. package/apps/pwa/out/_next/static/chunks/4869.839bacfaab182108.js +1 -0
  54. package/apps/pwa/out/_next/static/chunks/49263d14.0a995d745de3f818.js +1 -0
  55. package/apps/pwa/out/_next/static/chunks/4935.7f5b0bd162f201cc.js +1 -0
  56. package/apps/pwa/out/_next/static/chunks/500-57c24ef4341cdb21.js +1 -0
  57. package/apps/pwa/out/_next/static/chunks/5017-e079ea96feddbe85.js +1 -0
  58. package/apps/pwa/out/_next/static/chunks/{6932.f80f616260b74131.js → 5135.7b73d384c46dc26b.js} +1 -1
  59. package/apps/pwa/out/_next/static/chunks/5359-7aa498ded308ea17.js +1 -0
  60. package/apps/pwa/out/_next/static/chunks/{9705-bbcd00db4ffd3484.js → 5456-e9f9027af2bb4799.js} +1 -1
  61. package/apps/pwa/out/_next/static/chunks/{4506-f8439f6fbd0a8483.js → 5457-5459ae7638b42dff.js} +1 -1
  62. package/apps/pwa/out/_next/static/chunks/5521-16fb56b15c809e4a.js +1 -0
  63. package/apps/pwa/out/_next/static/chunks/5616-33de319a016180cd.js +1 -0
  64. package/apps/pwa/out/_next/static/chunks/5646.41a48aad446799fa.js +1 -0
  65. package/apps/pwa/out/_next/static/chunks/5716.ad2c840320ab9472.js +41 -0
  66. package/apps/pwa/out/_next/static/chunks/5730-ca5565abe3d360ad.js +1 -0
  67. package/apps/pwa/out/_next/static/chunks/{4069a63b.a074c39997560438.js → 57af6223.b79d56584a040f84.js} +7 -7
  68. package/apps/pwa/out/_next/static/chunks/5841.26bcfac34b5889b4.js +1 -0
  69. package/apps/pwa/out/_next/static/chunks/586.658dedb3bc558b22.js +1 -0
  70. package/apps/pwa/out/_next/static/chunks/{9693-ab5bc28704a66601.js → 5892-6f0a1ee3c6c38173.js} +3 -3
  71. package/apps/pwa/out/_next/static/chunks/5894-7d90af46a43f80d2.js +1 -0
  72. package/apps/pwa/out/_next/static/chunks/5927-88cbc16437430987.js +1 -0
  73. package/apps/pwa/out/_next/static/chunks/5960.0dfb8bd3d27e1063.js +1 -0
  74. package/apps/pwa/out/_next/static/chunks/597-9bf9f66dba4ccae9.js +1 -0
  75. package/apps/pwa/out/_next/static/chunks/6064.f425ee61836bb5c7.js +1 -0
  76. package/apps/pwa/out/_next/static/chunks/6074.39f84a90284749de.js +1 -0
  77. package/apps/pwa/out/_next/static/chunks/61.cbbe643a52cf53ab.js +62 -0
  78. package/apps/pwa/out/_next/static/chunks/6184.4c0ba455eb3d27a1.js +79 -0
  79. package/apps/pwa/out/_next/static/chunks/6224.cd0ca2a16727e9a9.js +1 -0
  80. package/apps/pwa/out/_next/static/chunks/6229-a83289910e01869b.js +1 -0
  81. package/apps/pwa/out/_next/static/chunks/6243.61e6f450a70a8d91.js +90 -0
  82. package/apps/pwa/out/_next/static/chunks/6295-4f1a1386f8667fd1.js +1 -0
  83. package/apps/pwa/out/_next/static/chunks/{5709.867a5086d782dd97.js → 6310.5fb57ba0781bc476.js} +2 -2
  84. package/apps/pwa/out/_next/static/chunks/{7087.99662912e4db6255.js → 6355.34fd60aca3e95acf.js} +1 -1
  85. package/apps/pwa/out/_next/static/chunks/6653.f3f30affdbe694aa.js +32 -0
  86. package/apps/pwa/out/_next/static/chunks/6657.f57e1d8511e510ce.js +1 -0
  87. package/apps/pwa/out/_next/static/chunks/6672-bc0f317b72f0bbd2.js +1 -0
  88. package/apps/pwa/out/_next/static/chunks/6761-2143fe6fe3578118.js +1 -0
  89. package/apps/pwa/out/_next/static/chunks/{6747.365eefdf3b4a0226.js → 6764.ec2d2cf14278c473.js} +3 -3
  90. package/apps/pwa/out/_next/static/chunks/6955-75b2659eafd27893.js +1 -0
  91. package/apps/pwa/out/_next/static/chunks/{52bafb67.054ec9d048116d83.js → 6cd6be76.9d27e7414d939d53.js} +1 -1
  92. package/apps/pwa/out/_next/static/chunks/{77a1aef7.ba1c04f78a1493d9.js → 6fa80ede.7b05276e6be12b1d.js} +1 -1
  93. package/apps/pwa/out/_next/static/chunks/7051-406b0538949c932f.js +1 -0
  94. package/apps/pwa/out/_next/static/chunks/7222.df77e48936e60d2e.js +1 -0
  95. package/apps/pwa/out/_next/static/chunks/7242-08db87893cf792b7.js +1 -0
  96. package/apps/pwa/out/_next/static/chunks/7307-3172df9d07acb8e0.js +1 -0
  97. package/apps/pwa/out/_next/static/chunks/{156.389be47355dc94c7.js → 7613.4523dc082005e359.js} +1 -1
  98. package/apps/pwa/out/_next/static/chunks/{234.f25f5b0d65f89af8.js → 7644.bdbfed1da174219e.js} +2 -2
  99. package/apps/pwa/out/_next/static/chunks/7648-7c7346c2a73503f9.js +1 -0
  100. package/apps/pwa/out/_next/static/chunks/7788.ffd9f4d57647a354.js +149 -0
  101. package/apps/pwa/out/_next/static/chunks/{1972.a8d37aadbc59ac43.js → 7793.4d3de6ce591fbc21.js} +1 -1
  102. package/apps/pwa/out/_next/static/chunks/{8469.f67afe44a0fa8af0.js → 7816.4b8c0fa1e5b4ec4f.js} +1 -1
  103. package/apps/pwa/out/_next/static/chunks/7988-bbcd506079ceceb6.js +1 -0
  104. package/apps/pwa/out/_next/static/chunks/{367.1ffe524fe1ee7803.js → 8066.32863fb9dd2dc278.js} +1 -1
  105. package/apps/pwa/out/_next/static/chunks/8073-cdf4607b80d127fe.js +1 -0
  106. package/apps/pwa/out/_next/static/chunks/{691.6ff56b5f4b6ec918.js → 8108.2cd332dff4f07acd.js} +4 -4
  107. package/apps/pwa/out/_next/static/chunks/8414-77dbc0c35bc85f42.js +1 -0
  108. package/apps/pwa/out/_next/static/chunks/849.fe241354322a97e9.js +27 -0
  109. package/apps/pwa/out/_next/static/chunks/8665.900daf2473f7032a.js +1 -0
  110. package/apps/pwa/out/_next/static/chunks/8713.11d79e4e023ab74f.js +1 -0
  111. package/apps/pwa/out/_next/static/chunks/8718.137b7ce2c3cae66b.js +8 -0
  112. package/apps/pwa/out/_next/static/chunks/8764.39400f626e015e79.js +287 -0
  113. package/apps/pwa/out/_next/static/chunks/8803.d3504166481bc91e.js +24 -0
  114. package/apps/pwa/out/_next/static/chunks/{9103.bd34694d18c05083.js → 8939.a14783a0a81e5e62.js} +1 -1
  115. package/apps/pwa/out/_next/static/chunks/8963.928e777871d1d637.js +104 -0
  116. package/apps/pwa/out/_next/static/chunks/8987-372a6317aaf83fa9.js +1 -0
  117. package/apps/pwa/out/_next/static/chunks/9039.03e40d9f9fd90920.js +1 -0
  118. package/apps/pwa/out/_next/static/chunks/{c58bec24.d208786405e23259.js → 922c23f1.797bdf68f73f0488.js} +1 -1
  119. package/apps/pwa/out/_next/static/chunks/{5998.d426273cdd00305a.js → 9546.3a0afc5d5fa0851d.js} +1 -1
  120. package/apps/pwa/out/_next/static/chunks/9671.d935d274b65718e4.js +1 -0
  121. package/apps/pwa/out/_next/static/chunks/9756.24e020ddf99f7020.js +77 -0
  122. package/apps/pwa/out/_next/static/chunks/9777-6b21b6f1989ea7b1.js +1 -0
  123. package/apps/pwa/out/_next/static/chunks/9947.7a8d89554e873316.js +1 -0
  124. package/apps/pwa/out/_next/static/chunks/9980.fd66776b3782eeb4.js +1 -0
  125. package/apps/pwa/out/_next/static/chunks/app/_not-found/page-2c29b6716055aa54.js +1 -0
  126. package/apps/pwa/out/_next/static/chunks/app/approvals/page-c9e997416c86c8dd.js +1 -0
  127. package/apps/pwa/out/_next/static/chunks/app/autopilot/{page-e4f014aa82483cae.js → page-4e24912975188223.js} +1 -1
  128. package/apps/pwa/out/_next/static/chunks/app/board/page-b117b7ee316afe86.js +1 -0
  129. package/apps/pwa/out/_next/static/chunks/app/botlab/{page-dbc30fbf2e8933d9.js → page-a447a17fd887c68e.js} +1 -1
  130. package/apps/pwa/out/_next/static/chunks/app/bots/page-2b3e0df385eba76f.js +1 -0
  131. package/apps/pwa/out/_next/static/chunks/app/ceo/page-409ed1d2f2c5f706.js +1 -0
  132. package/apps/pwa/out/_next/static/chunks/app/chat/page-1e90543da0a66b63.js +1 -0
  133. package/apps/pwa/out/_next/static/chunks/app/consult/page-f68c84b50dee9796.js +1 -0
  134. package/apps/pwa/out/_next/static/chunks/app/control/page-afefb7fac0047855.js +1 -0
  135. package/apps/pwa/out/_next/static/chunks/app/decisions/page-79f9d6ae042c07b4.js +1 -0
  136. package/apps/pwa/out/_next/static/chunks/app/design-check/page-9726864cd21303a2.js +1 -0
  137. package/apps/pwa/out/_next/static/chunks/app/editor/page-ab0febcc6695f4e4.js +1 -0
  138. package/apps/pwa/out/_next/static/chunks/app/exec/page-6f6b157c52869db0.js +1 -0
  139. package/apps/pwa/out/_next/static/chunks/app/field/page-78aef36734ddd588.js +1 -0
  140. package/apps/pwa/out/_next/static/chunks/app/healthz/route-2c29b6716055aa54.js +1 -0
  141. package/apps/pwa/out/_next/static/chunks/app/inside/{page-ffca50fc1f13759c.js → page-6a634383e6247c6b.js} +1 -1
  142. package/apps/pwa/out/_next/static/chunks/app/intake/page-66f0dc569bce5230.js +1 -0
  143. package/apps/pwa/out/_next/static/chunks/app/layout-fda2f39e4d21744c.js +1 -0
  144. package/apps/pwa/out/_next/static/chunks/app/live/page-a6fd7cb710d80092.js +1 -0
  145. package/apps/pwa/out/_next/static/chunks/app/live-run/page-2a7c714e7f65229d.js +1 -0
  146. package/apps/pwa/out/_next/static/chunks/app/loops/page-a71ad5f5b075be8d.js +1 -0
  147. package/apps/pwa/out/_next/static/chunks/app/market/page-df7f2d252ff836b5.js +1 -0
  148. package/apps/pwa/out/_next/static/chunks/app/missions/[id]/page-7f38deb0998488bf.js +1 -0
  149. package/apps/pwa/out/_next/static/chunks/app/morning/page-7e80f3b354be205e.js +1 -0
  150. package/apps/pwa/out/_next/static/chunks/app/not-found-5ea0e042882e87de.js +1 -0
  151. package/apps/pwa/out/_next/static/chunks/app/observatory/page-f3df76408c930b99.js +1 -0
  152. package/apps/pwa/out/_next/static/chunks/app/ops/checklist/page-88996ccc31edf06c.js +1 -0
  153. package/apps/pwa/out/_next/static/chunks/app/ops/release/page-d95db9df4a907fe1.js +1 -0
  154. package/apps/pwa/out/_next/static/chunks/app/ops/resources/page-5a518950f4136aad.js +1 -0
  155. package/apps/pwa/out/_next/static/chunks/app/ops/seats/page-d9e070e009e1a521.js +1 -0
  156. package/apps/pwa/out/_next/static/chunks/app/outputs/page-167c44a8ff378706.js +1 -0
  157. package/apps/pwa/out/_next/static/chunks/app/page-4763cf1b0e52e28b.js +1 -0
  158. package/apps/pwa/out/_next/static/chunks/app/reflection/page-a5bcd883385064d4.js +1 -0
  159. package/apps/pwa/out/_next/static/chunks/app/scheduler/page-f9ef43f59ba98937.js +1 -0
  160. package/apps/pwa/out/_next/static/chunks/app/sessions/page-43c5d7004582f888.js +1 -0
  161. package/apps/pwa/out/_next/static/chunks/app/settings/devices/{page-decfacd2237da403.js → page-20dfe2b5bca855eb.js} +1 -1
  162. package/apps/pwa/out/_next/static/chunks/app/settings/page-7c022f7edf3203d5.js +1 -0
  163. package/apps/pwa/out/_next/static/chunks/app/setup/done/page-adc6daed842128e6.js +1 -0
  164. package/apps/pwa/out/_next/static/chunks/app/setup/layout-2c29b6716055aa54.js +1 -0
  165. package/apps/pwa/out/_next/static/chunks/app/setup/page-683c175da53e9ec3.js +1 -0
  166. package/apps/pwa/out/_next/static/chunks/app/share/page-a91d9cbaf50cc8b4.js +1 -0
  167. package/apps/pwa/out/_next/static/chunks/app/showroom/page-376f3a03f4d31706.js +1 -0
  168. package/apps/pwa/out/_next/static/chunks/app/tasks/page-256d83e84ed55191.js +1 -0
  169. package/apps/pwa/out/_next/static/chunks/app/term/page-5e1fb7a8e0927cf6.js +1 -0
  170. package/apps/pwa/out/_next/static/chunks/app/today/page-95994b2b507ee120.js +1 -0
  171. package/apps/pwa/out/_next/static/chunks/app/trace/page-486b1d3605dbd5f3.js +1 -0
  172. package/apps/pwa/out/_next/static/chunks/app/vault/page-0159591688c45cae.js +1 -0
  173. package/apps/pwa/out/_next/static/chunks/app/workflows/chat-ui/page-e640489e459c2789.js +1 -0
  174. package/apps/pwa/out/_next/static/chunks/app/workflows/page-89c00bebfb27b5d5.js +1 -0
  175. package/apps/pwa/out/_next/static/chunks/app/workspace/page-edf90eaa6d354fee.js +1 -0
  176. package/apps/pwa/out/_next/static/chunks/app/worktrees/page-2f2bd38085305ef0.js +1 -0
  177. package/apps/pwa/out/_next/static/chunks/{e7a93f74.aa8572069f848f17.js → d7c7394d.c015f14113d7faef.js} +1 -1
  178. package/apps/pwa/out/_next/static/chunks/db2f0161-8781ed841c51137a.js +1 -0
  179. package/apps/pwa/out/_next/static/chunks/f6a577ab-4b799b8c69e49cfd.js +1 -0
  180. package/apps/pwa/out/_next/static/chunks/framework-01d45c12f1bce665.js +1 -0
  181. package/apps/pwa/out/_next/static/chunks/main-0a9bbda118d4e9dc.js +1 -0
  182. package/apps/pwa/out/_next/static/chunks/main-app-7f817b9fe2a360cc.js +1 -0
  183. package/apps/pwa/out/_next/static/chunks/pages/_app-f953b3d6c9ece48e.js +1 -0
  184. package/apps/pwa/out/_next/static/chunks/pages/_error-1a3e6e3f0aa99004.js +1 -0
  185. package/apps/pwa/out/_next/static/chunks/webpack-090556529ba4efb6.js +1 -0
  186. package/apps/pwa/out/approvals/index.html +1 -1
  187. package/apps/pwa/out/approvals/index.txt +22 -22
  188. package/apps/pwa/out/autopilot/index.html +1 -1
  189. package/apps/pwa/out/autopilot/index.txt +22 -22
  190. package/apps/pwa/out/board/index.html +1 -1
  191. package/apps/pwa/out/board/index.txt +22 -22
  192. package/apps/pwa/out/botlab/index.html +1 -1
  193. package/apps/pwa/out/botlab/index.txt +21 -21
  194. package/apps/pwa/out/bots/index.html +1 -1
  195. package/apps/pwa/out/bots/index.txt +21 -21
  196. package/apps/pwa/out/ceo/index.html +1 -1
  197. package/apps/pwa/out/ceo/index.txt +22 -22
  198. package/apps/pwa/out/chat/index.html +1 -1
  199. package/apps/pwa/out/chat/index.txt +21 -21
  200. package/apps/pwa/out/consult/index.html +1 -1
  201. package/apps/pwa/out/consult/index.txt +22 -22
  202. package/apps/pwa/out/control/index.html +1 -1
  203. package/apps/pwa/out/control/index.txt +22 -22
  204. package/apps/pwa/out/decisions/index.html +1 -1
  205. package/apps/pwa/out/decisions/index.txt +21 -21
  206. package/apps/pwa/out/design-check/index.html +1 -1
  207. package/apps/pwa/out/design-check/index.txt +22 -22
  208. package/apps/pwa/out/editor/index.html +1 -1
  209. package/apps/pwa/out/editor/index.txt +22 -22
  210. package/apps/pwa/out/exec/index.html +1 -1
  211. package/apps/pwa/out/exec/index.txt +22 -22
  212. package/apps/pwa/out/field/index.html +1 -1
  213. package/apps/pwa/out/field/index.txt +22 -22
  214. package/apps/pwa/out/healthz +1 -1
  215. package/apps/pwa/out/index.html +1 -1
  216. package/apps/pwa/out/index.txt +21 -21
  217. package/apps/pwa/out/inside/index.html +1 -1
  218. package/apps/pwa/out/inside/index.txt +21 -21
  219. package/apps/pwa/out/intake/index.html +1 -1
  220. package/apps/pwa/out/intake/index.txt +22 -22
  221. package/apps/pwa/out/live/index.html +1 -1
  222. package/apps/pwa/out/live/index.txt +22 -22
  223. package/apps/pwa/out/live-run/index.html +1 -1
  224. package/apps/pwa/out/live-run/index.txt +22 -22
  225. package/apps/pwa/out/loops/index.html +1 -1
  226. package/apps/pwa/out/loops/index.txt +21 -21
  227. package/apps/pwa/out/market/index.html +1 -1
  228. package/apps/pwa/out/market/index.txt +21 -21
  229. package/apps/pwa/out/missions/placeholder/index.html +1 -1
  230. package/apps/pwa/out/missions/placeholder/index.txt +21 -21
  231. package/apps/pwa/out/morning/index.html +1 -1
  232. package/apps/pwa/out/morning/index.txt +22 -22
  233. package/apps/pwa/out/observatory/index.html +1 -1
  234. package/apps/pwa/out/observatory/index.txt +22 -22
  235. package/apps/pwa/out/ops/checklist/index.html +1 -1
  236. package/apps/pwa/out/ops/checklist/index.txt +21 -21
  237. package/apps/pwa/out/ops/release/index.html +1 -1
  238. package/apps/pwa/out/ops/release/index.txt +21 -21
  239. package/apps/pwa/out/ops/resources/index.html +1 -1
  240. package/apps/pwa/out/ops/resources/index.txt +21 -21
  241. package/apps/pwa/out/ops/seats/index.html +1 -1
  242. package/apps/pwa/out/ops/seats/index.txt +21 -21
  243. package/apps/pwa/out/outputs/index.html +1 -1
  244. package/apps/pwa/out/outputs/index.txt +21 -21
  245. package/apps/pwa/out/reflection/index.html +1 -1
  246. package/apps/pwa/out/reflection/index.txt +22 -22
  247. package/apps/pwa/out/scheduler/index.html +1 -1
  248. package/apps/pwa/out/scheduler/index.txt +22 -22
  249. package/apps/pwa/out/sessions/index.html +1 -1
  250. package/apps/pwa/out/sessions/index.txt +21 -21
  251. package/apps/pwa/out/settings/devices/index.html +1 -1
  252. package/apps/pwa/out/settings/devices/index.txt +22 -22
  253. package/apps/pwa/out/settings/index.html +1 -1
  254. package/apps/pwa/out/settings/index.txt +22 -22
  255. package/apps/pwa/out/setup/done/index.html +1 -1
  256. package/apps/pwa/out/setup/done/index.txt +22 -22
  257. package/apps/pwa/out/setup/index.html +1 -1
  258. package/apps/pwa/out/setup/index.txt +22 -22
  259. package/apps/pwa/out/share/index.html +1 -1
  260. package/apps/pwa/out/share/index.txt +22 -22
  261. package/apps/pwa/out/showroom/index.html +1 -1
  262. package/apps/pwa/out/showroom/index.txt +21 -21
  263. package/apps/pwa/out/tasks/index.html +1 -1
  264. package/apps/pwa/out/tasks/index.txt +22 -22
  265. package/apps/pwa/out/term/index.html +1 -1
  266. package/apps/pwa/out/term/index.txt +22 -22
  267. package/apps/pwa/out/today/index.html +1 -1
  268. package/apps/pwa/out/today/index.txt +22 -22
  269. package/apps/pwa/out/trace/index.html +1 -1
  270. package/apps/pwa/out/trace/index.txt +22 -22
  271. package/apps/pwa/out/vault/index.html +1 -1
  272. package/apps/pwa/out/vault/index.txt +22 -22
  273. package/apps/pwa/out/workflows/chat-ui/index.html +1 -1
  274. package/apps/pwa/out/workflows/chat-ui/index.txt +22 -22
  275. package/apps/pwa/out/workflows/index.html +1 -1
  276. package/apps/pwa/out/workflows/index.txt +22 -22
  277. package/apps/pwa/out/workspace/index.html +1 -1
  278. package/apps/pwa/out/workspace/index.txt +22 -22
  279. package/apps/pwa/out/worktrees/index.html +1 -1
  280. package/apps/pwa/out/worktrees/index.txt +22 -22
  281. package/graphs/natural-language-research.yaml +38 -0
  282. package/package.json +1 -1
  283. package/personas/botlab-4.yaml +8 -0
  284. package/scripts/release-loop/auto-approve-node.ts +2 -1
  285. package/scripts/release-loop/gate-node.ts +13 -6
  286. package/scripts/release-loop/gate-shard-receipts.ts +5 -0
  287. package/scripts/release-loop/publish-node.ts +2 -1
  288. package/scripts/release-loop/pwa-scenarios-node.ts +10 -1
  289. package/scripts/zero-sim-world.sh +1 -1
  290. package/src/auto-research/research-turn.ts +120 -5
  291. package/src/autopilot/track-courier.ts +48 -8
  292. package/src/browser-cdp/client.ts +17 -3
  293. package/src/cli/fleet-cli.ts +9 -2
  294. package/src/cli/intake-source-cli.ts +9 -4
  295. package/src/cli/release-cli.ts +11 -5
  296. package/src/cli/setup-cli.ts +2 -2
  297. package/src/cli/setup-keys.ts +8 -5
  298. package/src/cli/task-plugin-wizard-host.ts +22 -3
  299. package/src/cli/test-state-dir-flag.ts +4 -1
  300. package/src/core-turn/run-core-turn.ts +93 -14
  301. package/src/dashboard/first-screen-band.ts +2 -6
  302. package/src/dashboard/index.ts +45 -32
  303. package/src/dashboard/plugin-wizard-runtime.ts +68 -7
  304. package/src/dashboard/plugin-wizard-tool.ts +16 -2
  305. package/src/dashboard/turn-preamble.ts +8 -0
  306. package/src/fleet/cloud-resource-discovery.ts +95 -0
  307. package/src/fleet/resource-inventory.ts +12 -3
  308. package/src/graph-runner/runner.ts +3 -1
  309. package/src/graph-wizard/mission-compose.ts +7 -1
  310. package/src/harness/harness-queue.ts +74 -6
  311. package/src/index.ts +26 -0
  312. package/src/intake-plane/actions.ts +20 -12
  313. package/src/intake-plane/intake-sources.ts +32 -11
  314. package/src/intake-plane/items.ts +1 -1
  315. package/src/llm.ts +4 -0
  316. package/src/loops/budget.ts +20 -0
  317. package/src/mcp/server.ts +7 -2
  318. package/src/native-tool-catalog.ts +3 -0
  319. package/src/nexus/api/harness-traversal.ts +3 -3
  320. package/src/nexus/api/meta-api.ts +3 -1
  321. package/src/nexus/api/research-run-observer.ts +59 -0
  322. package/src/onboarding/first-chat-gate.ts +4 -1
  323. package/src/onboarding/first-run-doctor-test-control.ts +42 -0
  324. package/src/onboarding/first-run-doctor.ts +1 -0
  325. package/src/onboarding/first-run.ts +8 -1
  326. package/src/onboarding.ts +5 -1
  327. package/src/pr-tool/census.ts +42 -5
  328. package/src/prompt-library/session-guidance.ts +7 -6
  329. package/src/pty-shell/pty-manifest.ts +15 -6
  330. package/src/release-loop/light-rc.ts +47 -0
  331. package/src/research/axis-fanout.ts +15 -8
  332. package/src/self-dev/dev-pipeline.ts +67 -8
  333. package/src/self-implement/gate-remote.ts +13 -7
  334. package/src/self-implement/run-ledger.ts +1 -1
  335. package/src/self-implement/run-step-projection.ts +10 -2
  336. package/src/session/chat.ts +2 -0
  337. package/src/session-runtime/index.ts +47 -5
  338. package/src/setup/service-key-catalog.ts +4 -2
  339. package/src/setup/service-keys.ts +34 -10
  340. package/src/sidetab-core/model.ts +64 -6
  341. package/src/task-orchestrator/surfaces/pod-source-receive.ts +10 -1
  342. package/src/terminal/coding-agent.ts +12 -1
  343. package/src/tool-hints/gate.ts +7 -3
  344. package/src/tool-hints/signals.ts +43 -1
  345. package/src/tool-runtime/aside-selection-runtime.ts +89 -0
  346. package/src/tool-runtime/index.ts +2 -0
  347. package/src/tui/entry.ts +75 -21
  348. package/src/tui/sidetab/attach.ts +1 -0
  349. package/src/tui/sidetab/list.ts +2 -1
  350. package/src/tui.ts +97 -4
  351. package/src/ux-sim/classic-tui-seat-scenarios.ts +54 -4
  352. package/src/ux-sim/mock-scenario-catalog.json +8 -3
  353. package/src/ux-sim/release-sim-rig.ts +244 -7
  354. package/src/version/packed-revision.json +1 -1
  355. package/apps/pwa/out/_next/static/chunks/1388-1eb6df003f29bb9c.js +0 -1
  356. package/apps/pwa/out/_next/static/chunks/1434-a2c279f005d9c501.js +0 -1
  357. package/apps/pwa/out/_next/static/chunks/1464.14588e93d2ab3190.js +0 -24
  358. package/apps/pwa/out/_next/static/chunks/1465.85f9a1708f17853a.js +0 -1
  359. package/apps/pwa/out/_next/static/chunks/162.c03cf23572cb4136.js +0 -1
  360. package/apps/pwa/out/_next/static/chunks/1831.25868bc1e2cc0dae.js +0 -1
  361. package/apps/pwa/out/_next/static/chunks/1896.b6c635d0c8f65727.js +0 -1
  362. package/apps/pwa/out/_next/static/chunks/1939.3fa2506ad8e585bc.js +0 -1
  363. package/apps/pwa/out/_next/static/chunks/1997-f22e6f9510520182.js +0 -1
  364. package/apps/pwa/out/_next/static/chunks/2242-6edf27c6c0ae7589.js +0 -1
  365. package/apps/pwa/out/_next/static/chunks/2344.795de26da3261060.js +0 -23
  366. package/apps/pwa/out/_next/static/chunks/2491.9ac5bd2f48bcd60c.js +0 -226
  367. package/apps/pwa/out/_next/static/chunks/2513.e03f6479c0079b6e.js +0 -79
  368. package/apps/pwa/out/_next/static/chunks/2551-43782d8812989ae7.js +0 -1
  369. package/apps/pwa/out/_next/static/chunks/2799.12b1a3e7090e27ef.js +0 -1
  370. package/apps/pwa/out/_next/static/chunks/2806.f04d7923f2adadb1.js +0 -1
  371. package/apps/pwa/out/_next/static/chunks/2862.b8ea08cbc69a63d4.js +0 -1
  372. package/apps/pwa/out/_next/static/chunks/295-1ff35d6a06be8400.js +0 -1
  373. package/apps/pwa/out/_next/static/chunks/3161.b9eb612f66d5ff04.js +0 -1
  374. package/apps/pwa/out/_next/static/chunks/3233.46021e4acc520c03.js +0 -1
  375. package/apps/pwa/out/_next/static/chunks/325.3cfd5b7571a9f740.js +0 -1
  376. package/apps/pwa/out/_next/static/chunks/3384.d91656787bec7922.js +0 -104
  377. package/apps/pwa/out/_next/static/chunks/3414f5fa-46ae45073dca64f0.js +0 -1
  378. package/apps/pwa/out/_next/static/chunks/3589.a9094c2bc034055c.js +0 -287
  379. package/apps/pwa/out/_next/static/chunks/3777.1450df79d987816d.js +0 -1
  380. package/apps/pwa/out/_next/static/chunks/3877-871ea505d778a6a7.js +0 -1
  381. package/apps/pwa/out/_next/static/chunks/4021.28d034c7fb0a6732.js +0 -1
  382. package/apps/pwa/out/_next/static/chunks/4212.873105c37a871421.js +0 -1
  383. package/apps/pwa/out/_next/static/chunks/423-6be27163a1bce5d7.js +0 -1
  384. package/apps/pwa/out/_next/static/chunks/4231.644cd1e23974f1f6.js +0 -1
  385. package/apps/pwa/out/_next/static/chunks/4362.1adc1412509b7bb8.js +0 -94
  386. package/apps/pwa/out/_next/static/chunks/4431.83a630154376636a.js +0 -41
  387. package/apps/pwa/out/_next/static/chunks/4540-993e2e4e1d485a9a.js +0 -1
  388. package/apps/pwa/out/_next/static/chunks/4719-1d04b01d4d6166fc.js +0 -1
  389. package/apps/pwa/out/_next/static/chunks/4754-bfd5e1ad9016e176.js +0 -1
  390. package/apps/pwa/out/_next/static/chunks/5001.b39bf6d792509317.js +0 -64
  391. package/apps/pwa/out/_next/static/chunks/5021.7234ae147ab0a3e1.js +0 -77
  392. package/apps/pwa/out/_next/static/chunks/5230.3e562ed2a69cbc7b.js +0 -1
  393. package/apps/pwa/out/_next/static/chunks/5279.f75fafa19de6e131.js +0 -1
  394. package/apps/pwa/out/_next/static/chunks/5325-b9c1258cc7e579f9.js +0 -1
  395. package/apps/pwa/out/_next/static/chunks/5495-37306015ec740354.js +0 -1
  396. package/apps/pwa/out/_next/static/chunks/5658.d1e61315cb865f82.js +0 -32
  397. package/apps/pwa/out/_next/static/chunks/5765.5949ec61cec63eac.js +0 -1
  398. package/apps/pwa/out/_next/static/chunks/587.e6b35bcbd947c58e.js +0 -8
  399. package/apps/pwa/out/_next/static/chunks/5951-f25e14d03e72135a.js +0 -1
  400. package/apps/pwa/out/_next/static/chunks/5962-1ab68b213684716b.js +0 -1
  401. package/apps/pwa/out/_next/static/chunks/6352.20c708245475cf50.js +0 -1
  402. package/apps/pwa/out/_next/static/chunks/6548-a160aa580fb9a8ff.js +0 -1
  403. package/apps/pwa/out/_next/static/chunks/673-40c924b2095a05eb.js +0 -1
  404. package/apps/pwa/out/_next/static/chunks/6731-c9308c2f71a1b8e3.js +0 -1
  405. package/apps/pwa/out/_next/static/chunks/6950-5d5edab502cc208b.js +0 -1
  406. package/apps/pwa/out/_next/static/chunks/6982.e8fecbf7feb3aba5.js +0 -1
  407. package/apps/pwa/out/_next/static/chunks/7051-0dbbb2c1ce4f519e.js +0 -1
  408. package/apps/pwa/out/_next/static/chunks/709.bd9939dbb991de9f.js +0 -1
  409. package/apps/pwa/out/_next/static/chunks/7230-6527ac6be205c096.js +0 -1
  410. package/apps/pwa/out/_next/static/chunks/7233-d93f8ce1475f730c.js +0 -1
  411. package/apps/pwa/out/_next/static/chunks/7292-a4d5c8d2fe255e06.js +0 -1
  412. package/apps/pwa/out/_next/static/chunks/7304-dae57d61a8ccccf0.js +0 -1
  413. package/apps/pwa/out/_next/static/chunks/7382.bf53ab097670a235.js +0 -27
  414. package/apps/pwa/out/_next/static/chunks/7434.99c31fb661085b6a.js +0 -1
  415. package/apps/pwa/out/_next/static/chunks/7457-9ceddd4301467503.js +0 -1
  416. package/apps/pwa/out/_next/static/chunks/7494.d8b8d01d8dcbafe8.js +0 -2
  417. package/apps/pwa/out/_next/static/chunks/7554-d9cec4ac2e6d556d.js +0 -1
  418. package/apps/pwa/out/_next/static/chunks/7733-6f0d8da7a3f3ce91.js +0 -1
  419. package/apps/pwa/out/_next/static/chunks/7757-6f4b6363cc651de5.js +0 -1
  420. package/apps/pwa/out/_next/static/chunks/787-4d1d55b1311a5019.js +0 -1
  421. package/apps/pwa/out/_next/static/chunks/7915-a755af5ea69cfcfe.js +0 -1
  422. package/apps/pwa/out/_next/static/chunks/8029-2963385667511b16.js +0 -1
  423. package/apps/pwa/out/_next/static/chunks/8090.bc2349b6133b2cd5.js +0 -1
  424. package/apps/pwa/out/_next/static/chunks/8136.8ff2113530c27083.js +0 -1
  425. package/apps/pwa/out/_next/static/chunks/819.632a2a50f814f98e.js +0 -74
  426. package/apps/pwa/out/_next/static/chunks/8328.72a79ba9b81971ad.js +0 -1
  427. package/apps/pwa/out/_next/static/chunks/8448.4e25153e035786b0.js +0 -62
  428. package/apps/pwa/out/_next/static/chunks/8613.76dfc054055f06ba.js +0 -1
  429. package/apps/pwa/out/_next/static/chunks/8649-fe9165a8879fad56.js +0 -1
  430. package/apps/pwa/out/_next/static/chunks/8840-53feb140de04dcfe.js +0 -1
  431. package/apps/pwa/out/_next/static/chunks/8873.ef8a37057644f876.js +0 -1
  432. package/apps/pwa/out/_next/static/chunks/8917-46eb4e608f44bf74.js +0 -1
  433. package/apps/pwa/out/_next/static/chunks/8954.e749ad9e9c5ca512.js +0 -115
  434. package/apps/pwa/out/_next/static/chunks/9065.8134b756614cf83f.js +0 -36
  435. package/apps/pwa/out/_next/static/chunks/9089.087fcd352568af49.js +0 -1
  436. package/apps/pwa/out/_next/static/chunks/9140-bfcc4075cac3c387.js +0 -1
  437. package/apps/pwa/out/_next/static/chunks/9272.787cb6d987824708.js +0 -1
  438. package/apps/pwa/out/_next/static/chunks/9361-5b10273d3f34b21d.js +0 -1
  439. package/apps/pwa/out/_next/static/chunks/9396.097c14dd4df77c43.js +0 -1
  440. package/apps/pwa/out/_next/static/chunks/9468.370ef15c86f7b141.js +0 -1
  441. package/apps/pwa/out/_next/static/chunks/963-66d3a6d98e977ae5.js +0 -1
  442. package/apps/pwa/out/_next/static/chunks/9644.a615f56876ed37b8.js +0 -90
  443. package/apps/pwa/out/_next/static/chunks/9786.2d8c3b7368f18f1b.js +0 -148
  444. package/apps/pwa/out/_next/static/chunks/9805.e17f9c6e3811e48b.js +0 -24
  445. package/apps/pwa/out/_next/static/chunks/9876-49a1e08c0dfe7b8c.js +0 -1
  446. package/apps/pwa/out/_next/static/chunks/9891.5995e75a99b53d4e.js +0 -149
  447. package/apps/pwa/out/_next/static/chunks/9912-2be6b6ea0321c365.js +0 -1
  448. package/apps/pwa/out/_next/static/chunks/app/_not-found/page-c0543429ffa9cdfb.js +0 -1
  449. package/apps/pwa/out/_next/static/chunks/app/approvals/page-39f04d88df12b3e9.js +0 -1
  450. package/apps/pwa/out/_next/static/chunks/app/board/page-e86f9273877eab46.js +0 -1
  451. package/apps/pwa/out/_next/static/chunks/app/bots/page-d83a916672a8cfd3.js +0 -1
  452. package/apps/pwa/out/_next/static/chunks/app/ceo/page-22f27eaa5e6e68c7.js +0 -1
  453. package/apps/pwa/out/_next/static/chunks/app/chat/page-66477bf22d33b56e.js +0 -1
  454. package/apps/pwa/out/_next/static/chunks/app/consult/page-913f2a86ea109c65.js +0 -1
  455. package/apps/pwa/out/_next/static/chunks/app/control/page-ac51dc349381d564.js +0 -1
  456. package/apps/pwa/out/_next/static/chunks/app/decisions/page-cd09fc74dca72511.js +0 -1
  457. package/apps/pwa/out/_next/static/chunks/app/design-check/page-6c357f5b58598b67.js +0 -1
  458. package/apps/pwa/out/_next/static/chunks/app/editor/page-ab83de8c73bd2e4f.js +0 -1
  459. package/apps/pwa/out/_next/static/chunks/app/exec/page-6402ad2273b6f7b5.js +0 -1
  460. package/apps/pwa/out/_next/static/chunks/app/field/page-50d9b8d13b33f785.js +0 -1
  461. package/apps/pwa/out/_next/static/chunks/app/healthz/route-c0543429ffa9cdfb.js +0 -1
  462. package/apps/pwa/out/_next/static/chunks/app/intake/page-3316bfc28a901722.js +0 -1
  463. package/apps/pwa/out/_next/static/chunks/app/layout-aef93e049341011e.js +0 -1
  464. package/apps/pwa/out/_next/static/chunks/app/live/page-8e67bb49fa81d4e5.js +0 -1
  465. package/apps/pwa/out/_next/static/chunks/app/live-run/page-8b8c8ac4a3edf0eb.js +0 -1
  466. package/apps/pwa/out/_next/static/chunks/app/loops/page-b5b994c9ea03f6d7.js +0 -1
  467. package/apps/pwa/out/_next/static/chunks/app/market/page-1a06f6f510439341.js +0 -1
  468. package/apps/pwa/out/_next/static/chunks/app/missions/[id]/page-d9720f6a03f31fa7.js +0 -1
  469. package/apps/pwa/out/_next/static/chunks/app/morning/page-d7c891d78672d771.js +0 -1
  470. package/apps/pwa/out/_next/static/chunks/app/not-found-e915872b37ca7dcf.js +0 -1
  471. package/apps/pwa/out/_next/static/chunks/app/observatory/page-43c2ec7c00978377.js +0 -1
  472. package/apps/pwa/out/_next/static/chunks/app/ops/checklist/page-c2537aa89b121637.js +0 -1
  473. package/apps/pwa/out/_next/static/chunks/app/ops/release/page-3264666f6ef99431.js +0 -1
  474. package/apps/pwa/out/_next/static/chunks/app/ops/resources/page-efe9dd7bc58d4fc6.js +0 -1
  475. package/apps/pwa/out/_next/static/chunks/app/ops/seats/page-153277343c9956b8.js +0 -1
  476. package/apps/pwa/out/_next/static/chunks/app/outputs/page-c1457829d1506ad7.js +0 -1
  477. package/apps/pwa/out/_next/static/chunks/app/page-9622573651a4b6ce.js +0 -1
  478. package/apps/pwa/out/_next/static/chunks/app/reflection/page-5aeba1aa69ec67ad.js +0 -1
  479. package/apps/pwa/out/_next/static/chunks/app/scheduler/page-29cf1ba9ae2fdb92.js +0 -1
  480. package/apps/pwa/out/_next/static/chunks/app/sessions/page-99a060c6edd4726c.js +0 -1
  481. package/apps/pwa/out/_next/static/chunks/app/settings/page-3650eed85a5c5c93.js +0 -1
  482. package/apps/pwa/out/_next/static/chunks/app/setup/done/page-14077f0eddcae22f.js +0 -1
  483. package/apps/pwa/out/_next/static/chunks/app/setup/layout-c0543429ffa9cdfb.js +0 -1
  484. package/apps/pwa/out/_next/static/chunks/app/setup/page-364ee29f223bdc6b.js +0 -1
  485. package/apps/pwa/out/_next/static/chunks/app/share/page-905fb1f67c2665a7.js +0 -1
  486. package/apps/pwa/out/_next/static/chunks/app/showroom/page-79907fc36e3113f4.js +0 -1
  487. package/apps/pwa/out/_next/static/chunks/app/tasks/page-8f01867ee2a701b6.js +0 -1
  488. package/apps/pwa/out/_next/static/chunks/app/term/page-310b734167671ba8.js +0 -1
  489. package/apps/pwa/out/_next/static/chunks/app/today/page-cb1ca7ae52803603.js +0 -1
  490. package/apps/pwa/out/_next/static/chunks/app/trace/page-5491f2fb8e9376b5.js +0 -1
  491. package/apps/pwa/out/_next/static/chunks/app/vault/page-7e98befd36460b21.js +0 -1
  492. package/apps/pwa/out/_next/static/chunks/app/workflows/chat-ui/page-220923eefd5149b5.js +0 -1
  493. package/apps/pwa/out/_next/static/chunks/app/workflows/page-afdef54bb570da39.js +0 -1
  494. package/apps/pwa/out/_next/static/chunks/app/workspace/page-19f8acddbff16091.js +0 -1
  495. package/apps/pwa/out/_next/static/chunks/app/worktrees/page-d327a7647a075184.js +0 -1
  496. package/apps/pwa/out/_next/static/chunks/bc1f8ef9.b79035bd0f565c66.js +0 -1
  497. package/apps/pwa/out/_next/static/chunks/cf9ff424.b702f4a2ac70d836.js +0 -1
  498. package/apps/pwa/out/_next/static/chunks/d90ea774-d492ff408af303c1.js +0 -1
  499. package/apps/pwa/out/_next/static/chunks/ec9064d2.691021d974525713.js +0 -122
  500. package/apps/pwa/out/_next/static/chunks/ef9d715f.186b83d00befb229.js +0 -1
  501. package/apps/pwa/out/_next/static/chunks/framework-f01b715c1ec2fb74.js +0 -1
  502. package/apps/pwa/out/_next/static/chunks/main-3267c2e627901292.js +0 -1
  503. package/apps/pwa/out/_next/static/chunks/main-app-a690bcbeac3c465d.js +0 -1
  504. package/apps/pwa/out/_next/static/chunks/pages/_app-124f11699738fd43.js +0 -1
  505. package/apps/pwa/out/_next/static/chunks/pages/_error-754b7bd073a36a5f.js +0 -1
  506. package/apps/pwa/out/_next/static/chunks/webpack-8ded1efe8121eba0.js +0 -1
  507. /package/apps/pwa/out/_next/static/{98VlBaYvL-VVnCq93_lFS → K-ckEB9hu9tXQ6iqnl27L}/_ssgManifest.js +0 -0
@@ -4,27 +4,76 @@ import { createTaskPluginWizardHostDeps, type TaskPluginWizardHostResult } from
4
4
  import { defaultTaskLauncher } from '../cli/tasks-cli.js';
5
5
  import { handTask, type HandTaskOptions } from '../task-agent/task-hand.js';
6
6
  import { TASK_CARD_PREFIX } from '../task-agent/task-card-prefix.js';
7
- import type { PluginMaker, PluginWizardDeps } from '../graph-wizard/mission-compose.js';
7
+ import type { ClassicSidetabMissionIntegration } from './classic-sidetab-mission.js';
8
+ import type { ClassicSidetabMissionPairCompletionResult } from './classic-sidetab-mission-job.js';
9
+ import type { PluginMaker, PluginWizardDeps, PluginWizardPairDecomposition } from '../graph-wizard/mission-compose.js';
8
10
  import { createTuiPluginWizardTool, type TuiPluginWizardTool } from './plugin-wizard-tool.js';
9
11
  import type { TuiPluginWizardRequest } from './plugin-wizard-tool.js';
12
+ import { dispatchToolSearch } from '../skills/tools/tool-search.js';
13
+ import { filterAvailableToolSpecs } from '../session-runtime/index.js';
14
+ import type { LLMToolSpec } from '../llm.js';
10
15
 
16
+ /** Search only the tools that pass the session runtime's availability guard. */
17
+ export function searchAvailablePluginWizardTools(
18
+ capability: string,
19
+ specs: readonly LLMToolSpec[],
20
+ toolAvailability?: Readonly<Record<string, boolean>>,
21
+ ): string[] {
22
+ const searchable = filterAvailableToolSpecs(specs, toolAvailability)
23
+ .filter(spec => spec.name !== 'ToolSearch' && spec.name !== 'StartPluginWizard');
24
+ return dispatchToolSearch({ query: capability, max_results: 25 }, { specs: searchable }).matched;
25
+ }
11
26
  export interface DashboardPluginWizardRuntimePorts {
12
- runMissionPair: (request: {
13
- runId: string;
14
- prompt: string;
15
- context?: TuiPluginWizardRequest['context'];
16
- }) => Promise<Partial<Record<PluginMaker, TaskPluginWizardHostResult>>>;
27
+ pair: {
28
+ dispatchTool: ClassicSidetabMissionIntegration['dispatchTool'];
29
+ completions: Map<string, Promise<ClassicSidetabMissionPairCompletionResult>>;
30
+ };
17
31
  getWorkspace: () => string;
18
32
  taskHand?: (options: HandTaskOptions) => Promise<unknown>;
19
33
  launcher?: HandTaskOptions['launcher'];
20
34
  onEvent?: PluginWizardDeps['onEvent'];
35
+ findAvailableTools?: (capability: string) => readonly string[];
36
+ }
37
+
38
+ type PluginWizardPairRequest = {
39
+ runId: string;
40
+ prompt: string;
41
+ decomposition: PluginWizardPairDecomposition;
42
+ context?: TuiPluginWizardRequest['context'];
43
+ };
44
+
45
+ /** The production RunSidetabMission adapter used by the dashboard entrypoint. */
46
+ export function createTuiPluginWizardPairRunner(
47
+ dispatchTool: ClassicSidetabMissionIntegration['dispatchTool'],
48
+ completions: Map<string, Promise<ClassicSidetabMissionPairCompletionResult>>,
49
+ ): (request: PluginWizardPairRequest) => Promise<Partial<Record<PluginMaker, TaskPluginWizardHostResult>>> {
50
+ return async ({ runId, prompt, decomposition, context }) => {
51
+ const pairCallId = `plugin-wizard:${runId}`;
52
+ const started = await dispatchTool('RunSidetabMission', {
53
+ agent: 'codex', mission: prompt, decomposition,
54
+ }, { callId: pairCallId, ...(context?.parentSessionId ? { parentSessionId: context.parentSessionId } : {}) });
55
+ const completion = completions.get(pairCallId);
56
+ if (!completion || started?.status === 'error') {
57
+ completions.delete(pairCallId);
58
+ throw new Error(started?.body ?? 'Codex/Claude pair did not start');
59
+ }
60
+ try {
61
+ const result = await completion;
62
+ return {
63
+ codex: { ok: result.codex.ok, ...(result.codex.content ? { content: result.codex.content } : {}), ...(result.codex.error ? { error: result.codex.error } : {}) },
64
+ claude: { ok: result.claude.ok, ...(result.claude.content ? { content: result.claude.content } : {}), ...(result.claude.error ? { error: result.claude.error } : {}) },
65
+ };
66
+ } finally { completions.delete(pairCallId); }
67
+ };
21
68
  }
22
69
 
23
70
  /** Connect the TUI entry tool to handTask and the existing plugin composer without blocking the ACP turn. */
24
71
  export function createDashboardPluginWizardRuntime(ports: DashboardPluginWizardRuntimePorts): TuiPluginWizardTool {
72
+ const runMissionPair = createTuiPluginWizardPairRunner(ports.pair.dispatchTool, ports.pair.completions);
25
73
  return createTuiPluginWizardTool(async (request) => {
26
74
  const pluginWizardDeps = createTaskPluginWizardHostDeps({
27
- runMissionPair: ({ prompt }) => ports.runMissionPair({ runId: request.runId, prompt, ...(request.context ? { context: request.context } : {}) }),
75
+ wizardId: request.runId,
76
+ runMissionPair: ({ prompt, decomposition }) => runMissionPair({ runId: request.runId, prompt, decomposition, ...(request.context ? { context: request.context } : {}) }),
28
77
  onEvent: ports.onEvent ?? ((event) => {
29
78
  if (event.step !== 'validate' || !event.detail || typeof event.detail !== 'object') return;
30
79
  const winner = (event.detail as { winner?: unknown }).winner;
@@ -46,5 +95,17 @@ export function createDashboardPluginWizardRuntime(ports: DashboardPluginWizardR
46
95
  },
47
96
  pluginWizardDeps,
48
97
  });
98
+ }, { findAvailableTools: ports.findAvailableTools });
99
+ }
100
+
101
+ /** Build the dashboard wizard with the same classic sidetab wiring used by the TUI entrypoint. */
102
+ export function createDashboardPluginWizardRuntimeFromSidetab(
103
+ sidetab: ClassicSidetabMissionIntegration,
104
+ completions: Map<string, Promise<ClassicSidetabMissionPairCompletionResult>>,
105
+ ports: Omit<DashboardPluginWizardRuntimePorts, 'pair'>,
106
+ ): TuiPluginWizardTool {
107
+ return createDashboardPluginWizardRuntime({
108
+ ...ports,
109
+ pair: { dispatchTool: sidetab.dispatchTool, completions },
49
110
  });
50
111
  }
@@ -17,11 +17,21 @@ export interface TuiPluginWizardTool {
17
17
  dispatchTool(name: string, args: unknown, context?: ClassicSidetabMissionDispatchContext): Promise<unknown> | undefined;
18
18
  }
19
19
 
20
+ export interface TuiPluginWizardToolOptions {
21
+ createId?: () => string;
22
+ findAvailableTools?: (capability: string) => readonly string[];
23
+ }
24
+
20
25
  /** Add a non-blocking TUI entry point; the injected host runs the shared task/plugin-wizard path. */
21
- export function createTuiPluginWizardTool(start: (request: TuiPluginWizardRequest) => Promise<void>, createId: () => string = randomUUID): TuiPluginWizardTool {
26
+ export function createTuiPluginWizardTool(
27
+ start: (request: TuiPluginWizardRequest) => Promise<void>,
28
+ createIdOrOptions: (() => string) | TuiPluginWizardToolOptions = randomUUID,
29
+ ): TuiPluginWizardTool {
30
+ const createId = typeof createIdOrOptions === 'function' ? createIdOrOptions : createIdOrOptions.createId ?? randomUUID;
31
+ const findAvailableTools = typeof createIdOrOptions === 'function' ? undefined : createIdOrOptions.findAvailableTools;
22
32
  const spec: LLMToolSpec = {
23
33
  name: TUI_PLUGIN_WIZARD_TOOL_NAME,
24
- description: 'When a needed capability is missing, start the plugin wizard in this TUI session. It asks a short question, searches trusted plugins, and if needed launches the visible Codex and Claude side-tab pair. Returns a run ID immediately; check the task notification for completion.',
34
+ description: 'Only when ToolSearch confirms no available tool can perform the requested capability, start the plugin wizard in this TUI session. If a matching tool is found, call that tool instead. The wizard asks a short question, searches trusted plugins, and if needed launches the visible Codex and Claude side-tab pair. Returns a run ID immediately; check the task notification for completion.',
25
35
  parameters: {
26
36
  type: 'object',
27
37
  properties: {
@@ -44,6 +54,10 @@ export function createTuiPluginWizardTool(start: (request: TuiPluginWizardReques
44
54
  const mission = typeof input.mission === 'string' ? input.mission.trim() : '';
45
55
  const missing = typeof input.missing === 'string' ? input.missing.trim() : '';
46
56
  if (!mission || !missing) return Promise.resolve(output('error', 'mission and missing capability are required'));
57
+ const matches = findAvailableTools?.(missing) ?? [];
58
+ if (matches.length > 0) {
59
+ return Promise.resolve(output('error', `Plugin wizard was not started: ToolSearch found matching available tool(s): ${matches.join(', ')}. Call a matching tool directly to complete the request.`));
60
+ }
47
61
  const runId = createId();
48
62
  void Promise.resolve().then(() => start({ runId, mission, missing, ...(context ? { context } : {}) })).catch((error) => {
49
63
  try { debug.log('plugin-wizard.tool', 'start-failed', { runId, reason: error instanceof Error ? error.message : String(error) }, { level: 'error' }); }
@@ -47,6 +47,9 @@ import { effectiveInstanceRoot, prodInstanceRoot } from '../instance/resolve.js'
47
47
  import { buildSelfHealthLine, type InstalledRecord, type SelfHealthErrors } from '../pty-shell/tui-run-state.js';
48
48
  import type { PtyBuildIdentity } from '../pty-shell/pty-manifest.js';
49
49
 
50
+ const TUI_INTEGRATION_TOOL_SELECTION_GUIDANCE =
51
+ 'For one explicit action in an external service, choose the narrow direct-action integration tool over any secretary or multi-step workflow tool. Use a secretary or workflow tool only when the user asks for its multi-step workflow. If no matching integration tool is active, use `ToolSearch` before inspecting local plugin, config, or CLI files. When ToolSearch finds a matching tool, call it directly. Start `StartPluginWizard` only after ToolSearch finds no matching tool for the requested capability.';
52
+
50
53
  type UserConfig = ReturnType<typeof getUserConfig>;
51
54
 
52
55
  export interface DashboardTurnPreambleContext {
@@ -326,6 +329,7 @@ function buildDashboardTurnPreambleUnmeasured(
326
329
  const preamble: LLMMessage[] = [
327
330
  ...skillCatalogSystemMsgs,
328
331
  ...universalPreamble,
332
+ { role: 'system', content: TUI_INTEGRATION_TOOL_SELECTION_GUIDANCE },
329
333
  ...markCacheVolatile([
330
334
  ...seatBootSystemMsgs,
331
335
  ...planModeSystemMsgs,
@@ -340,6 +344,10 @@ function buildDashboardTurnPreambleUnmeasured(
340
344
  ...controllerSystemMsgs,
341
345
  ...implDisciplineSystemMsgs,
342
346
  ...concisenessSystemMsgs,
347
+ {
348
+ role: 'system' as const,
349
+ content: '## Response language\nAnswer entirely in the primary natural language of the user’s latest message. Determine it from the user’s grammar and request, not from quoted text, proper nouns, or isolated foreign words. For a Korean request containing Japanese or other foreign text, answer in Korean. Preserve foreign names, quotes, and tool names as written without switching the response language.',
350
+ },
343
351
  ]),
344
352
  ];
345
353
  // Capture exactly what the ACP path's getPreamble emits so we can
@@ -0,0 +1,95 @@
1
+ import { execFile } from 'node:child_process';
2
+ import { debug } from '../debug/log.js';
3
+ import type { DiscoveredInventoryResource } from './resource-inventory.js';
4
+
5
+ export interface CloudDiscoveryProviderStatus {
6
+ provider: 'aws' | 'gcp';
7
+ status: 'measured' | 'partial' | 'unavailable';
8
+ resources: number;
9
+ }
10
+
11
+ export interface CloudDiscoveryResult {
12
+ resources: DiscoveredInventoryResource[];
13
+ providers: CloudDiscoveryProviderStatus[];
14
+ }
15
+
16
+ export interface CloudListResult { status: number; stdout: string }
17
+ export type CloudListCommand = (command: string, args: string[]) => CloudListResult | Promise<CloudListResult>;
18
+
19
+ const MAX_OUTPUT_BYTES = 8 * 1024 * 1024;
20
+
21
+ function runCloudListCommand(command: string, args: string[]): Promise<CloudListResult> {
22
+ return new Promise(resolve => {
23
+ execFile(command, args, { encoding: 'utf8', timeout: 20_000, maxBuffer: MAX_OUTPUT_BYTES }, (error, stdout) => {
24
+ resolve({ status: error ? (typeof error.code === 'number' ? error.code : 1) : 0, stdout: stdout ?? '' });
25
+ });
26
+ });
27
+ }
28
+
29
+ function parseJson(stdout: string): unknown {
30
+ return JSON.parse(stdout);
31
+ }
32
+
33
+ function awsRunningInstances(value: unknown): DiscoveredInventoryResource[] {
34
+ if (!value || typeof value !== 'object' || !Array.isArray((value as { Reservations?: unknown }).Reservations))
35
+ throw new Error('invalid aws response');
36
+ const instances = (value as { Reservations: Array<{ Instances?: unknown }> }).Reservations.flatMap(row => Array.isArray(row.Instances) ? row.Instances : []);
37
+ return instances.flatMap(raw => {
38
+ if (!raw || typeof raw !== 'object') return [];
39
+ const row = raw as { InstanceId?: unknown; State?: { Name?: unknown }; Tags?: unknown };
40
+ if (row.State?.Name !== 'running' || typeof row.InstanceId !== 'string' || !row.InstanceId) return [];
41
+ const nameTag = Array.isArray(row.Tags)
42
+ ? row.Tags.find(tag => !!tag && typeof tag === 'object' && (tag as { Key?: unknown }).Key === 'Name') as { Value?: unknown } | undefined
43
+ : undefined;
44
+ const name = typeof nameTag?.Value === 'string' ? nameTag.Value : undefined;
45
+ return [{ id: row.InstanceId, machine: 'aws', provider: 'aws', ...(name ? { name } : {}) }];
46
+ });
47
+ }
48
+
49
+ interface ParsedCloudResources { resources: DiscoveredInventoryResource[]; incomplete: boolean }
50
+
51
+ function gcpRunningInstances(value: unknown): ParsedCloudResources {
52
+ if (!Array.isArray(value)) throw new Error('invalid gcp response');
53
+ let incomplete = false;
54
+ const resources = value.flatMap(raw => {
55
+ if (!raw || typeof raw !== 'object') { incomplete = true; return []; }
56
+ const row = raw as { id?: unknown; name?: unknown; status?: unknown; zone?: unknown; selfLink?: unknown };
57
+ if (row.status !== 'RUNNING') return [];
58
+ const id = typeof row.id === 'string' || typeof row.id === 'number' ? String(row.id) : '';
59
+ if (typeof row.name !== 'string' || !row.name || !/^\d+$/.test(id)) { incomplete = true; return []; }
60
+ const zone = typeof row.zone === 'string' ? row.zone.split('/').at(-1) : '';
61
+ const project = typeof row.selfLink === 'string' ? row.selfLink.match(/\/projects\/([^/]+)/)?.[1] : undefined;
62
+ const selfLinkPath = typeof row.selfLink === 'string' ? row.selfLink.match(/compute\/v1\/(projects\/.*)$/)?.[1] : undefined;
63
+ const canonicalPath = selfLinkPath ?? (project && zone ? `projects/${project}/zones/${zone}/instances/${row.name}` : undefined);
64
+ return [{ id, machine: 'gcp', provider: 'gcp', name: row.name,
65
+ aliases: canonicalPath ? [canonicalPath] : [] }];
66
+ });
67
+ return { resources, incomplete };
68
+ }
69
+
70
+ /** Read-only current-account discovery. Provider errors are kept as status, never raw stderr (which can contain credentials). */
71
+ export async function discoverCloudResources(run: CloudListCommand = runCloudListCommand): Promise<CloudDiscoveryResult> {
72
+ const queries: Array<{ provider: 'aws' | 'gcp'; command: string; args: string[]; parse: (value: unknown) => ParsedCloudResources }> = [
73
+ { provider: 'aws', command: 'aws', args: ['ec2', 'describe-instances', '--no-cli-pager', '--output', 'json'], parse: value => ({ resources: awsRunningInstances(value), incomplete: false }) },
74
+ { provider: 'gcp', command: 'gcloud', args: ['compute', 'instances', 'list', '--format=json'], parse: gcpRunningInstances },
75
+ ];
76
+ const outcomes = await Promise.all(queries.map(async query => {
77
+ try {
78
+ const result = await run(query.command, query.args);
79
+ if (result.status !== 0) {
80
+ return { provider: query.provider, status: 'unavailable' as const, resources: [] };
81
+ }
82
+ const parsed = query.parse(parseJson(result.stdout));
83
+ return { provider: query.provider, status: parsed.incomplete ? 'partial' as const : 'measured' as const, resources: parsed.resources };
84
+ } catch {
85
+ return { provider: query.provider, status: 'unavailable' as const, resources: [] };
86
+ }
87
+ }));
88
+ for (const outcome of outcomes) debug.log('fleet.inventory', outcome.status === 'unavailable' ? 'cloud-discovery-unavailable' : 'cloud-discovery-measured', {
89
+ provider: outcome.provider, ...(outcome.status !== 'unavailable' ? { resources: outcome.resources.length, partial: outcome.status === 'partial' } : {}),
90
+ });
91
+ return {
92
+ resources: outcomes.flatMap(outcome => outcome.resources),
93
+ providers: outcomes.map(outcome => ({ provider: outcome.provider, status: outcome.status, resources: outcome.resources.length })),
94
+ };
95
+ }
@@ -8,7 +8,7 @@ export interface InventoryResourceInput {
8
8
  hourlyCost?: number; startSignedAt: number; firstWorkAt?: number; expiresAt?: number; lastActivityAt?: number;
9
9
  state?: Record<string, unknown>; releaseConditions?: { expiresAt?: number; idleMinutes?: number };
10
10
  }
11
- export interface DiscoveredInventoryResource { id: string; machine: string; provider: string; name?: string }
11
+ export interface DiscoveredInventoryResource { id: string; machine: string; provider: string; name?: string; aliases?: readonly string[] }
12
12
  export interface InventoryAlert { id: string; reason: 'unregistered' | 'expired' | 'missing-purpose' | 'idle-over-7-days'; message: string }
13
13
  export interface InventorySnapshot { resources: ResourceView[]; alerts: InventoryAlert[]; estimatedCostToday: number; estimatedCumulativeCost: number; unpricedResources: number }
14
14
  const NEVER_EXPIRES_MS = 100 * 365 * 24 * 60 * 60 * 1000;
@@ -86,7 +86,7 @@ export function inspectInventory(ledger = new ResourceLedger(), discovered: read
86
86
  const resources = ledgerRows.filter(row => row.attrs.inventory === true);
87
87
  const costRows = ledgerRows.filter(row => row.attrs.inventory === true || row.attrs.inventory === 'archived');
88
88
  const unpricedResources = costRows.filter(row => typeof row.attrs.hourlyCost !== 'number' || !Number.isFinite(row.attrs.hourlyCost)).length;
89
- const registered = new Set(resources.map(row => row.id.slice('fleet:'.length)));
89
+ const registered = new Set(resources.map(row => `${String(row.attrs.provider)}\0${row.id.slice('fleet:'.length)}`));
90
90
  const alerts: InventoryAlert[] = [];
91
91
  for (const row of resources) {
92
92
  const id = row.id.slice('fleet:'.length);
@@ -95,7 +95,16 @@ export function inspectInventory(ledger = new ResourceLedger(), discovered: read
95
95
  const lastActivityAt = typeof row.attrs.lastActivityAt === 'number' ? row.attrs.lastActivityAt : row.observedAt;
96
96
  if (now - lastActivityAt > 7 * DAY_MS) alerts.push({ id, reason: 'idle-over-7-days', message: id + ' idle for more than 7 days' });
97
97
  }
98
- for (const item of discovered) if (!registered.has(item.id)) alerts.push({ id: item.id, reason: 'unregistered', message: item.provider + ' resource ' + item.id + ' is outside the inventory' });
98
+ for (const item of discovered) {
99
+ const aliases = item.provider === 'gcp'
100
+ ? (item.aliases ?? []).filter(id => /^projects\/[^/]+\/zones\/[^/]+\/instances\/[^/]+$/.test(id))
101
+ : (item.aliases ?? []);
102
+ const identities = item.provider === 'gcp'
103
+ ? [...(/^\d+$/.test(item.id) ? [item.id] : []), ...aliases]
104
+ : [item.id, ...aliases];
105
+ if (!identities.some(id => registered.has(`${item.provider}\0${id}`))) alerts.push({ id: item.id, reason: 'unregistered',
106
+ message: item.provider + ' resource ' + (item.name ? item.name + ' (' + item.id + ')' : item.id) + ' is outside the inventory' });
107
+ }
99
108
  const estimatedCumulativeCost = costRows.reduce((sum, row) => {
100
109
  if (row.attrs.inventory === 'archived') {
101
110
  const stoppedAt = Number(row.attrs.stoppedAt) || now;
@@ -1523,7 +1523,9 @@ export async function runGraph(path: string, options: GraphRunOptions = {}): Pro
1523
1523
  const nodeEndedAt = new Date(Math.max(Date.now(), Date.parse(nodeStartedAt))).toISOString();
1524
1524
  delete state.currentNode;
1525
1525
  if (waiving) {
1526
- output = JSON.stringify(options.releaseWaiver!.ownerWaived ? { outcome: 'pass(owner-waived)', verdict: 'owner-waived', summary: `owner waived ${current}`, reason: options.releaseWaiver!.reason, approvedBy: options.releaseWaiver!.approvedBy } : { outcome: 'ok', verdict: 'waived', summary: `waived ${current}`, reason: options.releaseWaiver!.reason });
1526
+ // Keep the graph contract outcome stable for downstream nodes; the distinct verdict and waiver record carry
1527
+ // the audit meaning. A waived gate is an approved continuation, not a new graph outcome value.
1528
+ output = JSON.stringify(options.releaseWaiver!.ownerWaived ? { outcome: 'ok', verdict: 'owner-waived', summary: `owner waived ${current}`, reason: options.releaseWaiver!.reason, approvedBy: options.releaseWaiver!.approvedBy } : { outcome: 'ok', verdict: 'waived', summary: `waived ${current}`, reason: options.releaseWaiver!.reason });
1527
1529
  ok = true;
1528
1530
  exit = 0;
1529
1531
  }
@@ -238,6 +238,12 @@ export async function composeMissionGraph(input: MissionComposeInput, deps: Miss
238
238
 
239
239
  export type PluginMaker = 'claude' | 'codex';
240
240
 
241
+ export interface PluginWizardPairDecomposition {
242
+ status: 'ready';
243
+ codex: { scope: string; deliverables: string; dependsOn: string };
244
+ claude: { scope: string; deliverables: string; dependsOn: string };
245
+ }
246
+
241
247
  export interface PluginWizardInput {
242
248
  /** The one-line mission the sub-assistant is working on. */
243
249
  mission: string;
@@ -303,7 +309,7 @@ export interface PluginWizardDeps {
303
309
  searchMarket?: (request: { missing: string; mission: string; query: string }) => Promise<PluginMarketSearchResult>;
304
310
  /** Side-tab maker contract (Claude Code / Codex): same goal text, same session workroom. */
305
311
  develop?: (request: { maker: PluginMaker; goal: string; workspace: string }) => Promise<{ spec: string }>;
306
- /** Optional classic pair seam: one paired launch returns both maker artifacts from the same workroom. */
312
+ /** Optional classic pair seam: dispatches distinct maker briefs and returns both artifacts from the shared workroom. */
307
313
  developPair?: (request: { makers: readonly PluginMaker[]; goal: string; workspace: string }) => Promise<Partial<Record<PluginMaker, { spec: string }>>>;
308
314
  /** Resolved CLI path per maker; absent means the caller's `develop` owns it. */
309
315
  makerCli?: Partial<Record<PluginMaker, string>>;
@@ -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 } from '../loops/budget.js';
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
- return {
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: members.reduce((sum, member) => sum + member.capacity, 0),
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/index.ts CHANGED
@@ -11564,6 +11564,23 @@ const nexusPwaCmd = nexusCmd
11564
11564
  .command('pwa')
11565
11565
  .description('PWA operational helpers — stop / show / global / share / restart / dev. (start/test/build are deprecated → use `nexus run` / `nexus run --test` / `nexus build`.)');
11566
11566
 
11567
+ nexusPwaCmd
11568
+ .command('connect-link')
11569
+ .description('Issue a one-use 10-minute link to connect a remote PWA device.')
11570
+ .action(async () => {
11571
+ const { runNexusShow } = await import('./cli/nexus-show.js');
11572
+ const shown = await runNexusShow({ format: 'json', out: { log: () => {}, error: () => {} } });
11573
+ const pwaUrl = shown.urls?.pwa.tailnet;
11574
+ if (!pwaUrl) {
11575
+ console.error('elanous nexus pwa connect-link: 원격 접속 URL이 없습니다. nexus pwa share enable 후 다시 시도하세요.');
11576
+ process.exit(1);
11577
+ }
11578
+ const { issueSetupLinkToken } = await import('./auth/setup-link-tokens.js');
11579
+ const { token } = issueSetupLinkToken();
11580
+ const base = pwaUrl.replace(/\/app\/?$/, '').replace(/\/$/, '');
11581
+ console.log(`${base}/app/live-run#t=${encodeURIComponent(token)}`);
11582
+ });
11583
+
11567
11584
  // Deprecation forward: `nexus pwa build` → `nexus build`.
11568
11585
  nexusPwaCmd
11569
11586
  .command('build')
@@ -13308,6 +13325,15 @@ async function defaultTuiSelfRestartSpawn(command: string, argv: readonly string
13308
13325
  * 회귀 방어 = `src/cli-entry.test.ts`(실물 `bin/elanous.mjs` 를 spawn 한다).
13309
13326
  */
13310
13327
  export function runCli(): void {
13328
+ if (process.env.NODE_ENV === 'test' && process.env.ELANOUS_TEST_FIRSTRUN_DOCTOR_PROBE === '1') {
13329
+ void import('./onboarding/first-run-doctor-test-control.js').then(({ runFirstRunDoctorTestControl }) => {
13330
+ runFirstRunDoctorTestControl();
13331
+ }).catch((error) => {
13332
+ console.error(error instanceof Error ? error.message : String(error));
13333
+ process.exit(1);
13334
+ });
13335
+ return;
13336
+ }
13311
13337
  main().catch(async (err) => {
13312
13338
  closeTui();
13313
13339
  if (isCliUserError(err)) {
@@ -96,6 +96,13 @@ export function isDecisionImpactingTopicEvidence(items: readonly BriefItem[]): b
96
96
  return items.some(item => decisionTerms.test(item.text));
97
97
  }
98
98
 
99
+ function formatRelatedIssueBriefing(input: { linearIssueId: string; issueLabel?: string; summary: string; items: readonly BriefItem[] }): string {
100
+ const related = input.items.filter(item => item.linearIssueId?.toLowerCase() === input.linearIssueId.toLowerCase());
101
+ if (related.length === 0) return '';
102
+ const sources = related.map(item => item.evidence).filter((url): url is string => !!url);
103
+ return `관련 이슈: ${input.issueLabel?.trim() || input.linearIssueId}\n\n${input.summary.trim()}${sources.length ? `\n\n출처\n${sources.map(url => `- ${url}`).join('\n')}` : ''}`;
104
+ }
105
+
99
106
  /** Project only issue-linked findings; scheduled callers may invoke this after every run, including after Done. */
100
107
  export async function deliverTopicBriefing(input: {
101
108
  linearIssueId: string;
@@ -105,15 +112,14 @@ export async function deliverTopicBriefing(input: {
105
112
  }, deps: TopicBriefingDeliveryDeps): Promise<{ related: number; reopened: boolean }> {
106
113
  const related = input.items.filter(item => item.linearIssueId?.toLowerCase() === input.linearIssueId.toLowerCase());
107
114
  if (related.length === 0) return { related: 0, reopened: false };
108
- const sources = related.map(item => item.evidence).filter((url): url is string => !!url);
109
- const text = `관련 이슈 · ${input.issueLabel?.trim() || input.linearIssueId}\n\n${input.summary.trim()}${sources.length ? `\n\n출처\n${sources.map(url => `- ${url}`).join('\n')}` : ''}`;
115
+ const text = formatRelatedIssueBriefing(input);
110
116
  await deps.sendIssueCard({ linearIssueId: input.linearIssueId, text });
111
117
  await deps.commentIssue(input.linearIssueId, text);
112
118
  const reopened = await deps.issueIsDone(input.linearIssueId) && await deps.isDecisionImpacting(related);
113
119
  if (reopened) {
114
120
  await deps.reopenIssue(input.linearIssueId);
115
121
  await deps.sendMemoUpdateCard({ linearIssueId: input.linearIssueId,
116
- text: `관련 이슈 · ${input.issueLabel?.trim() || input.linearIssueId}\n메모 갱신?\n\n${input.summary.trim()}` });
122
+ text: `관련 이슈: ${input.issueLabel?.trim() || input.linearIssueId}\n메모 갱신?\n\n${input.summary.trim()}` });
117
123
  }
118
124
  return { related: related.length, reopened };
119
125
  }
@@ -127,31 +133,33 @@ export function appendTopicBriefingTelegramDryRun(file: string, input: { linearI
127
133
  export async function projectTopicBriefing(source: RegisteredIntakeSource, items: BriefItem[], stateDir = effectiveInstanceRoot(),
128
134
  options: { telegramDryRunFile?: string } = {}): Promise<void> {
129
135
  if (!source.linearIssueId || items.length === 0) return;
136
+ const input = { linearIssueId: source.linearIssueId, issueLabel: source.briefingTopic ?? source.spec,
137
+ summary: items.map(item => item.text).join('\n'), items };
138
+ if (options.telegramDryRunFile) {
139
+ const text = formatRelatedIssueBriefing(input);
140
+ if (text) appendTopicBriefingTelegramDryRun(options.telegramDryRunFile, { linearIssueId: source.linearIssueId, text, kind: 'issue' });
141
+ return;
142
+ }
130
143
  const [{ getSecretAsync }, { commentLinearIssue, fetchLinearIssueStateType, moveLinearIssueToStateType },
131
144
  { kindRouteTarget }, { getUserConfig }, { sendTelegramTo }] = await Promise.all([
132
145
  import('../nexus/config/secrets/index.js'), import('../connectors/linear.js'), import('../domains/telegram-kind-route.js'),
133
146
  import('../user-config.js'), import('../autopilot/mission-notify.js'),
134
147
  ]);
135
- const target = options.telegramDryRunFile ? undefined : kindRouteTarget(getUserConfig(), 'ops-report');
136
- if (!options.telegramDryRunFile && !target) throw new Error('관련 이슈 브리핑 Telegram ops-report 대상이 없습니다');
148
+ const target = kindRouteTarget(getUserConfig(), 'ops-report');
149
+ if (!target) throw new Error('관련 이슈 브리핑 Telegram ops-report 대상이 없습니다');
137
150
  const send = async (text: string, kind: 'issue' | 'memo'): Promise<void> => {
138
- if (options.telegramDryRunFile) {
139
- appendTopicBriefingTelegramDryRun(options.telegramDryRunFile, { linearIssueId: source.linearIssueId!, text, kind });
140
- return;
141
- }
142
151
  if (!target || !sendTelegramTo(target.botToken, target.chatId, text)) throw new Error('관련 이슈 브리핑 Telegram 발송 실패');
143
152
  };
144
153
  const apiKey = await getSecretAsync('connector.linear.apiKey');
145
154
  if (!apiKey) throw new Error('Linear 키가 없습니다');
146
- await deliverTopicBriefingWithReceipts({ linearIssueId: source.linearIssueId, issueLabel: source.spec,
147
- summary: items.map(item => item.text).join('\n'), items }, stateDir, {
155
+ await deliverTopicBriefingWithReceipts(input, stateDir, {
148
156
  sendIssueCard: async ({ text }) => send(text, 'issue'),
149
157
  commentIssue: async (issueId, body) => commentLinearIssue({ apiKey, issueId, body }),
150
158
  issueIsDone: async issueId => await fetchLinearIssueStateType({ apiKey, issueId }) === 'completed',
151
159
  isDecisionImpacting: async related => isDecisionImpactingTopicEvidence(related),
152
160
  reopenIssue: async issueId => moveLinearIssueToStateType({ apiKey, issueId, type: 'started' }),
153
161
  sendMemoUpdateCard: async ({ text }) => send(text, 'memo'),
154
- }, options.telegramDryRunFile ? 'telegram-dry-run' : 'live');
162
+ }, 'live');
155
163
  }
156
164
 
157
165
  export interface SubscribeTopicSearchInput {