elanous 0.3.10 → 0.3.11

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 (1495) hide show
  1. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/404/index.html +1 -0
  2. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/404.html +1 -0
  3. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/EYSh3cX6PSbWZ9jfAV-ZL/_buildManifest.js +1 -0
  4. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/EYSh3cX6PSbWZ9jfAV-ZL/_ssgManifest.js +1 -0
  5. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/01d37f32.f1ecc352bfc51dba.js +1 -0
  6. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/1205.fe10b7987f8524ef.js +1 -0
  7. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/1349.f7811f2ffa218061.js +115 -0
  8. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/1384.1cb410c0f56171eb.js +1 -0
  9. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/1428.0e64b175c610d66f.js +217 -0
  10. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/1573.f7798ecec5a0c856.js +62 -0
  11. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/1704.873747d458a61393.js +226 -0
  12. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/1744.be78cf6a0a3a74d6.js +1 -0
  13. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/1984-49012b18b68b1cf9.js +1 -0
  14. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/2148-6f0c9b53f41fe475.js +1 -0
  15. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/2320.b695c0cf2687a257.js +86 -0
  16. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/2361246f.b0c89bf269cf461a.js +18 -0
  17. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/2435.f5c7a8ec43bf380d.js +148 -0
  18. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/2444-14f479a9f931d064.js +1 -0
  19. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/2546.54bca8b2efbfc20f.js +1 -0
  20. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/2548.d44d521b5f8c4430.js +149 -0
  21. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/261-a046190a9a00a2e9.js +1 -0
  22. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/2797.075b49a780b777f9.js +1 -0
  23. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/2869.89f22df850ffcffb.js +1 -0
  24. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/293a491b.83fead916f3d4b84.js +1 -0
  25. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/3061-347b0ea159fbd1ff.js +1 -0
  26. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/3090.1ce88a5426850ed6.js +1 -0
  27. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/3092.7ba336afc0ff5129.js +1 -0
  28. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/3191.8ba727790cf10b35.js +1 -0
  29. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/3305-72701e4eaf50e6df.js +1 -0
  30. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/3346.ce452aec61c3b95c.js +66 -0
  31. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/3377-ee5f16870d6175ba.js +1 -0
  32. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/3429.26af58ade120e0f6.js +32 -0
  33. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/3441.4826303af0ba2719.js +23 -0
  34. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/3476.83efa7b4266c7e51.js +77 -0
  35. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/3586.51fa867dadba71b6.js +1 -0
  36. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/3614-9958a689c070352d.js +1 -0
  37. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/3694.b629d2f7208eac8f.js +1 -0
  38. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/3722-ccce3970d69d2872.js +1 -0
  39. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/3730-21d7ec4ebcc8c568.js +1 -0
  40. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/3778.7c2878335b916833.js +1 -0
  41. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/3830.397d404d47d8a062.js +8 -0
  42. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/3b874777.9cb8232267532d67.js +1 -0
  43. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/4009.77649c720a2856f6.js +27 -0
  44. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/4215-b3f308605f4b13a8.js +1 -0
  45. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/4244.d72a596d89009db0.js +287 -0
  46. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/4319.00de505e04749979.js +1 -0
  47. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/4377.afed39cdcc4a27ac.js +34 -0
  48. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/4512-aaced97ea8e990bb.js +25 -0
  49. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/4639-33bcab91d6560f78.js +1 -0
  50. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/4679-58da0c73ea8fd4c0.js +1 -0
  51. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/4739.eb609076dc7d0ce5.js +1 -0
  52. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/474.3358006016a4c378.js +1 -0
  53. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/4775.4dcbb1305bc9fdc0.js +1 -0
  54. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/479-e85749bccf84c3a1.js +1 -0
  55. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/4861.4f637b319161ac19.js +94 -0
  56. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/4912.bb366634a6b91a57.js +1 -0
  57. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/5015-9e7cd0f0977b5fca.js +1 -0
  58. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/5051.8970f4af47f47d8a.js +24 -0
  59. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/5063.29502b1640091906.js +1 -0
  60. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/514.d0f3de1f9677a072.js +5 -0
  61. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/5217-4a8b3b42eb940df6.js +1 -0
  62. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/5274-170b82d1f713ef4e.js +1 -0
  63. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/529.7900408e7a632b2a.js +1 -0
  64. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/5319.e66b9cc59edf68ed.js +1 -0
  65. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/5481.c7257f98606bca86.js +1 -0
  66. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/5486.b2f3ef1cc08a5f44.js +1 -0
  67. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/5493.5ad34e07e4d2e24e.js +38 -0
  68. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/5646-4a4067780272d157.js +1 -0
  69. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/56667286.ca5125d61802d0fc.js +1 -0
  70. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/5771-e4339e65e1a8e6e6.js +1 -0
  71. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/5787.6c56877c23d51f70.js +90 -0
  72. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/586.ff5c84cbb8592a98.js +2 -0
  73. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/5980.ed2554b4e5883ef8.js +1 -0
  74. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/6037.a946c7b0d3ccbbf2.js +1 -0
  75. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/6118.194e7e1a958f3f0e.js +1 -0
  76. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/6136.5a9cd50e34193654.js +1 -0
  77. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/6177.ab44c9a7bfebdff9.js +1 -0
  78. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/6226-be213570dc2842c5.js +1 -0
  79. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/624.4f0dbb8a82bae173.js +79 -0
  80. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/6334-5efa5dc3a22e32be.js +1 -0
  81. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/6602.87ab7eda9e749a9a.js +36 -0
  82. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/669.7dca63fb3b95ddc1.js +1 -0
  83. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/6779-35afb880061a9ed1.js +1 -0
  84. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/684.7ca728c023a5be43.js +9 -0
  85. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/6944.e9ef3404b61b22ce.js +1 -0
  86. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/697.044dbc2599425241.js +64 -0
  87. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/7016-71707efce1d33e5f.js +1 -0
  88. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/703.22d162ce983376c7.js +1 -0
  89. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/7147.fd66f2c11680c3e7.js +104 -0
  90. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/730.d287a7a56dc4215c.js +93 -0
  91. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/7504-69e607e9d2ccb233.js +1 -0
  92. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/7647.013fa7f7dd501ed8.js +1 -0
  93. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/7747.4f032894f7b78fc8.js +1 -0
  94. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/7806.06d650368ecaf19f.js +286 -0
  95. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/7845-409d6e1159d19ed2.js +1 -0
  96. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/8047-92020eb3411682d0.js +1 -0
  97. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/8066.c20a12b9b6773b64.js +24 -0
  98. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/8279.57d08b9e979bc906.js +1 -0
  99. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/83-f25b23c8bea39fe4.js +1 -0
  100. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/8415.bcf8d2b3ea589c60.js +1 -0
  101. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/8650.c195cacb1e3abfaf.js +1 -0
  102. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/8668.b01c159a88f542c0.js +41 -0
  103. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/8998.06aa9e56b8064e1b.js +1 -0
  104. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/9032.acf91f7cb1584b78.js +1 -0
  105. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/9383.40bd9676ab465b77.js +74 -0
  106. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/9460.65cd2094d0bc9c9c.js +309 -0
  107. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/9482.2b76ee1769f3ec4e.js +1 -0
  108. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/9673-ba8a3c4683caac32.js +1 -0
  109. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/9716.2185e2ff59e8ba1e.js +193 -0
  110. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/a886a261.307a967dd06d12b7.js +66 -0
  111. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/app/_not-found/page-c775796a00d9389e.js +1 -0
  112. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/app/apps/page-7775cfa4c480b4db.js +1 -0
  113. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/app/apps/report/page-6e3a012662c704c6.js +1 -0
  114. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/app/board/page-755cecfc4a9b8ed8.js +1 -0
  115. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/app/chat/page-b616ac17834db5d8.js +1 -0
  116. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/app/credentials/page-8182cf153d7d41f8.js +1 -0
  117. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/app/credentials/register/claim/page-3f539594c23d3f8e.js +1 -0
  118. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/app/credentials/register/page-ea4f262cb9aba420.js +1 -0
  119. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/app/design-check/page-8165faf239f6e27e.js +1 -0
  120. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/app/editor/page-1cf7bd94569f060b.js +1 -0
  121. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/app/healthz/route-c775796a00d9389e.js +1 -0
  122. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/app/layout-444d1c4c8fabdbea.js +1 -0
  123. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/app/live-run/adaptive/page-1f4aee3b56fd22f0.js +1 -0
  124. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/app/live-run/page-29d6b10ace96d7af.js +1 -0
  125. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/app/member/invite/page-02ec6c1f61c37ed7.js +1 -0
  126. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/app/not-found-008e905e8d38bf0b.js +1 -0
  127. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/app/ops/release/page-770c3b6e5356cc91.js +1 -0
  128. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/app/page-c775796a00d9389e.js +1 -0
  129. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/app/settings/page-93b362aa4a88d529.js +1 -0
  130. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/app/setup/done/page-1cf98810677499bc.js +1 -0
  131. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/app/setup/layout-c775796a00d9389e.js +1 -0
  132. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/app/setup/page-9698cb2297abfb29.js +1 -0
  133. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/app/share/received/page-3be6f5986ce29402.js +1 -0
  134. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/app/signup/complete/page-c5b4b6795a11f869.js +1 -0
  135. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/app/signup/page-fc2da335d0504034.js +1 -0
  136. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/app/term/page-3f7ee4b011d2ef8b.js +1 -0
  137. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/app/vault/page-4c7e6af7c5347116.js +1 -0
  138. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/bffd1d00-2d9bdb4c8a5d9104.js +1 -0
  139. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/cd29f327-7f91f59b9139237c.js +1 -0
  140. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/d110d9e0.f5573b826f27af65.js +160 -0
  141. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/d14cd3a4.6d09bf3f19730f21.js +122 -0
  142. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/db225b10.128c168f4a6546cf.js +62 -0
  143. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/framework-8678a23bfc3bab37.js +1 -0
  144. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/main-ad7216630e0b83b8.js +1 -0
  145. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/main-app-4572a82b0e60345c.js +1 -0
  146. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/pages/_app-9a06989434b6a0f6.js +1 -0
  147. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/pages/_error-47654d73dd8821dc.js +1 -0
  148. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/polyfills-42372ed130431b0a.js +1 -0
  149. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/webpack-1e12b19ca7234d95.js +1 -0
  150. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/css/085673d826b98b62.css +1 -0
  151. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/css/0963166d1794fcd2.css +1 -0
  152. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/css/0d7fd8c441e32b99.css +1 -0
  153. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/css/599369d853c61df7.css +31 -0
  154. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/css/659eccb5db697b76.css +1 -0
  155. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/media/22a5144ee8d83bca-s.p.woff2 +0 -0
  156. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/media/9766a7e9e2e0ad5a-s.woff2 +0 -0
  157. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/media/aa016aab0e6d1295-s.woff2 +0 -0
  158. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/media/b66cf8e69499582a-s.woff2 +0 -0
  159. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/media/f639721981034f88-s.woff2 +0 -0
  160. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/apps/index.html +1 -0
  161. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/apps/index.txt +33 -0
  162. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/apps/report/index.html +1 -0
  163. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/apps/report/index.txt +33 -0
  164. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/board/index.html +1 -0
  165. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/board/index.txt +33 -0
  166. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/chat/index.html +1 -0
  167. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/chat/index.txt +30 -0
  168. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/credentials/index.html +1 -0
  169. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/credentials/index.txt +33 -0
  170. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/credentials/register/claim/index.html +1 -0
  171. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/credentials/register/claim/index.txt +33 -0
  172. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/credentials/register/index.html +1 -0
  173. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/credentials/register/index.txt +33 -0
  174. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/design-check/index.html +1 -0
  175. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/design-check/index.txt +33 -0
  176. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/editor/index.html +1 -0
  177. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/editor/index.txt +35 -0
  178. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/fonts/JetBrainsMonoNerdFontMono-Bold.ttf +0 -0
  179. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/fonts/JetBrainsMonoNerdFontMono-BoldItalic.ttf +0 -0
  180. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/fonts/JetBrainsMonoNerdFontMono-Italic.ttf +0 -0
  181. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/fonts/JetBrainsMonoNerdFontMono-Regular.ttf +0 -0
  182. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/healthz +1 -0
  183. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/icons/elanous-16.png +0 -0
  184. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/icons/elanous-180.png +0 -0
  185. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/icons/elanous-192.png +0 -0
  186. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/icons/elanous-32.png +0 -0
  187. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/icons/elanous-512.png +0 -0
  188. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/index.html +1 -0
  189. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/index.txt +30 -0
  190. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/live-run/adaptive/index.html +1 -0
  191. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/live-run/adaptive/index.txt +31 -0
  192. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/live-run/index.html +1 -0
  193. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/live-run/index.txt +35 -0
  194. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/manifest.webmanifest +31 -0
  195. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/member/invite/index.html +1 -0
  196. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/member/invite/index.txt +33 -0
  197. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/offline.html +84 -0
  198. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/ops/release/index.html +1 -0
  199. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/ops/release/index.txt +34 -0
  200. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/settings/index.html +1 -0
  201. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/settings/index.txt +33 -0
  202. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/setup/done/index.html +1 -0
  203. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/setup/done/index.txt +33 -0
  204. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/setup/index.html +1 -0
  205. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/setup/index.txt +33 -0
  206. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/share/received/index.html +1 -0
  207. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/share/received/index.txt +33 -0
  208. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/signup/complete/index.html +1 -0
  209. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/signup/complete/index.txt +33 -0
  210. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/signup/index.html +1 -0
  211. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/signup/index.txt +33 -0
  212. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/sw-strategies.js +44 -0
  213. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/sw.js +388 -0
  214. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/term/index.html +1 -0
  215. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/term/index.txt +33 -0
  216. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/vault/index.html +1 -0
  217. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/vault/index.txt +33 -0
  218. package/apps/pwa/README.md +59 -0
  219. package/apps/pwa/bun.lock +1530 -0
  220. package/apps/pwa/components.json +25 -0
  221. package/apps/pwa/next.config.ts +60 -0
  222. package/apps/pwa/package-lock.json +7538 -0
  223. package/apps/pwa/package.json +73 -0
  224. package/apps/pwa/postcss.config.mjs +5 -0
  225. package/apps/pwa/public/fonts/JetBrainsMonoNerdFontMono-Bold.ttf +0 -0
  226. package/apps/pwa/public/fonts/JetBrainsMonoNerdFontMono-BoldItalic.ttf +0 -0
  227. package/apps/pwa/public/fonts/JetBrainsMonoNerdFontMono-Italic.ttf +0 -0
  228. package/apps/pwa/public/fonts/JetBrainsMonoNerdFontMono-Regular.ttf +0 -0
  229. package/apps/pwa/public/icons/elanous-16.png +0 -0
  230. package/apps/pwa/public/icons/elanous-180.png +0 -0
  231. package/apps/pwa/public/icons/elanous-192.png +0 -0
  232. package/apps/pwa/public/icons/elanous-32.png +0 -0
  233. package/apps/pwa/public/icons/elanous-512.png +0 -0
  234. package/apps/pwa/public/manifest.webmanifest +31 -0
  235. package/apps/pwa/public/offline.html +84 -0
  236. package/apps/pwa/public/sw-strategies.js +44 -0
  237. package/apps/pwa/public/sw.js +388 -0
  238. package/apps/pwa/scripts/static-entry.ts +54 -0
  239. package/apps/pwa/scripts/static-generation.ts +190 -0
  240. package/apps/pwa/src/app/apps/page.tsx +135 -0
  241. package/apps/pwa/src/app/apps/report/page.tsx +50 -0
  242. package/apps/pwa/src/app/board/page.tsx +12 -0
  243. package/apps/pwa/src/app/chat/page.tsx +5 -0
  244. package/apps/pwa/src/app/credentials/CredentialVaultView.tsx +99 -0
  245. package/apps/pwa/src/app/credentials/page.tsx +15 -0
  246. package/apps/pwa/src/app/credentials/register/CredentialRegisterView.tsx +123 -0
  247. package/apps/pwa/src/app/credentials/register/claim/CredentialClaimView.tsx +88 -0
  248. package/apps/pwa/src/app/credentials/register/claim/page.tsx +35 -0
  249. package/apps/pwa/src/app/credentials/register/page.tsx +18 -0
  250. package/apps/pwa/src/app/design-check/page.tsx +17 -0
  251. package/apps/pwa/src/app/editor/page.tsx +8 -0
  252. package/apps/pwa/src/app/globals.css +351 -0
  253. package/apps/pwa/src/app/healthz/route.ts +12 -0
  254. package/apps/pwa/src/app/layout.tsx +77 -0
  255. package/apps/pwa/src/app/live-run/adaptive/page.tsx +6 -0
  256. package/apps/pwa/src/app/live-run/page.tsx +94 -0
  257. package/apps/pwa/src/app/member/invite/page.tsx +75 -0
  258. package/apps/pwa/src/app/not-found.tsx +29 -0
  259. package/apps/pwa/src/app/ops/release/page.tsx +8 -0
  260. package/apps/pwa/src/app/page.tsx +5 -0
  261. package/apps/pwa/src/app/settings/page.tsx +13 -0
  262. package/apps/pwa/src/app/setup/done/SetupNextSteps.tsx +75 -0
  263. package/apps/pwa/src/app/setup/done/page.tsx +182 -0
  264. package/apps/pwa/src/app/setup/done/setup-links.ts +55 -0
  265. package/apps/pwa/src/app/setup/layout.tsx +33 -0
  266. package/apps/pwa/src/app/setup/page.tsx +501 -0
  267. package/apps/pwa/src/app/share/received/page.tsx +86 -0
  268. package/apps/pwa/src/app/signup/complete/page.tsx +92 -0
  269. package/apps/pwa/src/app/signup/page.tsx +62 -0
  270. package/apps/pwa/src/app/term/page.tsx +29 -0
  271. package/apps/pwa/src/app/term/pty-selection-url.ts +8 -0
  272. package/apps/pwa/src/app/vault/page.tsx +14 -0
  273. package/apps/pwa/src/components/agent/CollapsibleCodeBlock.tsx +90 -0
  274. package/apps/pwa/src/components/apps/AppSimLiveView.tsx +161 -0
  275. package/apps/pwa/src/components/ask-user-question/AskQuestionSheet.tsx +309 -0
  276. package/apps/pwa/src/components/ask-user-question/use-ask-question.ts +167 -0
  277. package/apps/pwa/src/components/chat/BudgetPill.tsx +92 -0
  278. package/apps/pwa/src/components/chat/ChatApprovalsChip.tsx +74 -0
  279. package/apps/pwa/src/components/chat/ChatConversationList.tsx +190 -0
  280. package/apps/pwa/src/components/chat/ChatCurrentProject.tsx +239 -0
  281. package/apps/pwa/src/components/chat/ChatDecisionsChip.tsx +95 -0
  282. package/apps/pwa/src/components/chat/ChatDropOverlay.tsx +17 -0
  283. package/apps/pwa/src/components/chat/ChatHistory.tsx +266 -0
  284. package/apps/pwa/src/components/chat/ChatInput.tsx +1091 -0
  285. package/apps/pwa/src/components/chat/ChatLayout.tsx +1594 -0
  286. package/apps/pwa/src/components/chat/ChatMessage.tsx +380 -0
  287. package/apps/pwa/src/components/chat/ChatPanel.tsx +96 -0
  288. package/apps/pwa/src/components/chat/ChatPendingDecision.tsx +76 -0
  289. package/apps/pwa/src/components/chat/ChatProjectSwitcher.tsx +101 -0
  290. package/apps/pwa/src/components/chat/ChatQueueChips.tsx +20 -0
  291. package/apps/pwa/src/components/chat/ContextSourcesCard.tsx +14 -0
  292. package/apps/pwa/src/components/chat/DeployConfirmCard.tsx +13 -0
  293. package/apps/pwa/src/components/chat/DeployResultCard.tsx +18 -0
  294. package/apps/pwa/src/components/chat/ElanousCard.tsx +80 -0
  295. package/apps/pwa/src/components/chat/ElanousProviderChip.tsx +85 -0
  296. package/apps/pwa/src/components/chat/HarnessAskCard.tsx +61 -0
  297. package/apps/pwa/src/components/chat/MemberProposalCard.tsx +75 -0
  298. package/apps/pwa/src/components/chat/MobileChatStatus.tsx +32 -0
  299. package/apps/pwa/src/components/chat/NowSpeakButton.tsx +78 -0
  300. package/apps/pwa/src/components/chat/SeatPicker.tsx +27 -0
  301. package/apps/pwa/src/components/chat/SeatsNowStrip.tsx +43 -0
  302. package/apps/pwa/src/components/chat/SessionDeleteConfirm.tsx +91 -0
  303. package/apps/pwa/src/components/chat/SessionIdChip.tsx +120 -0
  304. package/apps/pwa/src/components/chat/SessionPill.tsx +276 -0
  305. package/apps/pwa/src/components/chat/VoiceCostPill.tsx +114 -0
  306. package/apps/pwa/src/components/chat/VoiceOverlay.tsx +181 -0
  307. package/apps/pwa/src/components/chat/blocks/ChatHud.tsx +165 -0
  308. package/apps/pwa/src/components/chat/blocks/ChatHudGaugeBar.tsx +90 -0
  309. package/apps/pwa/src/components/chat/blocks/DebugTapDrawer.tsx +189 -0
  310. package/apps/pwa/src/components/chat/blocks/DiffBlock.tsx +114 -0
  311. package/apps/pwa/src/components/chat/blocks/McpAppBlock.tsx +103 -0
  312. package/apps/pwa/src/components/chat/blocks/McpAppFrame.tsx +81 -0
  313. package/apps/pwa/src/components/chat/blocks/PerfTickSparkline.tsx +154 -0
  314. package/apps/pwa/src/components/chat/blocks/PlanBlock.tsx +70 -0
  315. package/apps/pwa/src/components/chat/blocks/SearchHitList.tsx +122 -0
  316. package/apps/pwa/src/components/chat/blocks/StatusChip.tsx +63 -0
  317. package/apps/pwa/src/components/chat/blocks/ThinkingPill.tsx +63 -0
  318. package/apps/pwa/src/components/chat/blocks/ToolProgressCard.tsx +106 -0
  319. package/apps/pwa/src/components/chat/budget-pill-view.ts +22 -0
  320. package/apps/pwa/src/components/chat/context-sources.ts +88 -0
  321. package/apps/pwa/src/components/chat/seats-now-line.ts +20 -0
  322. package/apps/pwa/src/components/chat/session-id-utils.ts +22 -0
  323. package/apps/pwa/src/components/decisions/DecisionCard.tsx +28 -0
  324. package/apps/pwa/src/components/design/DesignCheckPanel.tsx +318 -0
  325. package/apps/pwa/src/components/design/DirectionCards.tsx +178 -0
  326. package/apps/pwa/src/components/design/MakeMySystem.tsx +177 -0
  327. package/apps/pwa/src/components/editor/GraphCanvasEditor.tsx +853 -0
  328. package/apps/pwa/src/components/editor/GraphCanvasRunStatus.tsx +88 -0
  329. package/apps/pwa/src/components/editor/GraphEditor.tsx +357 -0
  330. package/apps/pwa/src/components/editor/GraphGroupBox.tsx +47 -0
  331. package/apps/pwa/src/components/editor/GraphRunControl.tsx +127 -0
  332. package/apps/pwa/src/components/editor/GraphWizardChat.tsx +292 -0
  333. package/apps/pwa/src/components/editor/graph-canvas-model.ts +570 -0
  334. package/apps/pwa/src/components/editor/graph-canvas-save.ts +52 -0
  335. package/apps/pwa/src/components/editor/graph-editor-mode.ts +41 -0
  336. package/apps/pwa/src/components/editor/graph-groups.ts +139 -0
  337. package/apps/pwa/src/components/editor/graph-wizard.ts +154 -0
  338. package/apps/pwa/src/components/editor/use-wizard-canvas.ts +66 -0
  339. package/apps/pwa/src/components/exec/ExecApprovals.tsx +77 -0
  340. package/apps/pwa/src/components/fluent-chain/NextFluentChip.tsx +91 -0
  341. package/apps/pwa/src/components/idle-nudge/IdleNudgeBadge.tsx +79 -0
  342. package/apps/pwa/src/components/inside/loop-agents-view.ts +75 -0
  343. package/apps/pwa/src/components/inside/pty-decisions.ts +72 -0
  344. package/apps/pwa/src/components/inside/public-text.ts +35 -0
  345. package/apps/pwa/src/components/install-banner.tsx +192 -0
  346. package/apps/pwa/src/components/intent-panel/IntentButton.tsx +67 -0
  347. package/apps/pwa/src/components/intent-panel/IntentPanel.tsx +244 -0
  348. package/apps/pwa/src/components/intent-panel/intent-panel-storage.ts +140 -0
  349. package/apps/pwa/src/components/intent-panel/use-intent-prediction.ts +269 -0
  350. package/apps/pwa/src/components/live-run/AdaptiveGraphReplay.tsx +115 -0
  351. package/apps/pwa/src/components/live-run/GraphInstanceLiveScreen.tsx +95 -0
  352. package/apps/pwa/src/components/live-run/GraphInstanceRichView.tsx +124 -0
  353. package/apps/pwa/src/components/live-run/GraphInstanceSimulationScreen.tsx +34 -0
  354. package/apps/pwa/src/components/live-run/LiveRunAutoFollowPanel.tsx +70 -0
  355. package/apps/pwa/src/components/live-run/LiveRunGraph.tsx +621 -0
  356. package/apps/pwa/src/components/live-run/LiveRunPanel.tsx +96 -0
  357. package/apps/pwa/src/components/live-run/live-run-stage.css +62 -0
  358. package/apps/pwa/src/components/loops/loop-status.ts +5 -0
  359. package/apps/pwa/src/components/member-board/MemberMiniBoardView.tsx +163 -0
  360. package/apps/pwa/src/components/member-board/member-board-model.ts +113 -0
  361. package/apps/pwa/src/components/nexus/ChannelBotSetupCard.tsx +103 -0
  362. package/apps/pwa/src/components/notes/NoteFromImageModal.tsx +477 -0
  363. package/apps/pwa/src/components/notes/SaveAsNoteButton.tsx +71 -0
  364. package/apps/pwa/src/components/observatory/subject-list.ts +242 -0
  365. package/apps/pwa/src/components/ops/GateShards.tsx +87 -0
  366. package/apps/pwa/src/components/ops/OperatorReleaseRoute.tsx +8 -0
  367. package/apps/pwa/src/components/ops/ReleaseFlow.tsx +143 -0
  368. package/apps/pwa/src/components/ops/ReleaseGraphRunView.tsx +89 -0
  369. package/apps/pwa/src/components/ops/ReleaseRunsView.tsx +227 -0
  370. package/apps/pwa/src/components/provenance/ProvenanceBadge.tsx +15 -0
  371. package/apps/pwa/src/components/providers/DaemonProvider.tsx +126 -0
  372. package/apps/pwa/src/components/providers/NewBuildBanner.tsx +55 -0
  373. package/apps/pwa/src/components/providers/NexusClientProvider.tsx +69 -0
  374. package/apps/pwa/src/components/providers/OperatorRoleDefault.tsx +16 -0
  375. package/apps/pwa/src/components/providers/ServiceWorkerRegister.tsx +32 -0
  376. package/apps/pwa/src/components/providers/ThemeProvider.tsx +93 -0
  377. package/apps/pwa/src/components/providers/ToastProvider.tsx +12 -0
  378. package/apps/pwa/src/components/settings/AdvancedSetupMap.tsx +76 -0
  379. package/apps/pwa/src/components/settings/AnswerDepthCard.tsx +90 -0
  380. package/apps/pwa/src/components/settings/BudgetGuardWatcher.tsx +125 -0
  381. package/apps/pwa/src/components/settings/BudgetThresholdModal.tsx +200 -0
  382. package/apps/pwa/src/components/settings/BuildInfoCard.tsx +70 -0
  383. package/apps/pwa/src/components/settings/ChannelBotSetupCard.tsx +107 -0
  384. package/apps/pwa/src/components/settings/ChatRoutingCard.tsx +67 -0
  385. package/apps/pwa/src/components/settings/ChildLlmPreferenceCard.tsx +224 -0
  386. package/apps/pwa/src/components/settings/ConnectTokenCard.tsx +117 -0
  387. package/apps/pwa/src/components/settings/FastReplyCard.tsx +68 -0
  388. package/apps/pwa/src/components/settings/IntentPanelSettingsCard.tsx +107 -0
  389. package/apps/pwa/src/components/settings/LlmCatalogCard.tsx +284 -0
  390. package/apps/pwa/src/components/settings/LlmHostsCard.tsx +399 -0
  391. package/apps/pwa/src/components/settings/LlmModelTierCard.tsx +246 -0
  392. package/apps/pwa/src/components/settings/NotesMetricsCard.tsx +192 -0
  393. package/apps/pwa/src/components/settings/ObsidianSkillsCard.tsx +125 -0
  394. package/apps/pwa/src/components/settings/OcrPrefsCard.tsx +106 -0
  395. package/apps/pwa/src/components/settings/PersonaCard.tsx +353 -0
  396. package/apps/pwa/src/components/settings/PlatformConnectionsCard.tsx +113 -0
  397. package/apps/pwa/src/components/settings/PresetCardGrid.tsx +194 -0
  398. package/apps/pwa/src/components/settings/PushcutSettingsCard.tsx +208 -0
  399. package/apps/pwa/src/components/settings/QuickSetupCard.tsx +256 -0
  400. package/apps/pwa/src/components/settings/SettingsPanel.tsx +1184 -0
  401. package/apps/pwa/src/components/settings/TierChangeConfirmModal.tsx +244 -0
  402. package/apps/pwa/src/components/settings/TtsModelTierCard.tsx +231 -0
  403. package/apps/pwa/src/components/settings/TtsVoiceIdPickerCard.tsx +445 -0
  404. package/apps/pwa/src/components/settings/VoiceModelTierCard.tsx +318 -0
  405. package/apps/pwa/src/components/settings/VoicePrefsCard.tsx +127 -0
  406. package/apps/pwa/src/components/settings/WelcomeCard.tsx +126 -0
  407. package/apps/pwa/src/components/settings/persona-card-edits.ts +21 -0
  408. package/apps/pwa/src/components/shell/AppShell.tsx +126 -0
  409. package/apps/pwa/src/components/shell/AuthRequiredBanner.tsx +20 -0
  410. package/apps/pwa/src/components/shell/CompactTopBar.tsx +90 -0
  411. package/apps/pwa/src/components/shell/MaturityBanner.tsx +15 -0
  412. package/apps/pwa/src/components/shell/MobileBottomTabs.tsx +131 -0
  413. package/apps/pwa/src/components/shell/NavSearchProbe.tsx +13 -0
  414. package/apps/pwa/src/components/shell/PwaRolePicker.tsx +41 -0
  415. package/apps/pwa/src/components/shell/ShareCaptureButton.tsx +52 -0
  416. package/apps/pwa/src/components/shell/SidebarNav.tsx +196 -0
  417. package/apps/pwa/src/components/shell/SkillProblemsBanner.tsx +75 -0
  418. package/apps/pwa/src/components/shell/TopBar.tsx +269 -0
  419. package/apps/pwa/src/components/shell/TopBarActivityIndicator.tsx +51 -0
  420. package/apps/pwa/src/components/shell/activity-snapshot.ts +98 -0
  421. package/apps/pwa/src/components/shell/fetch-activity-snapshot.ts +43 -0
  422. package/apps/pwa/src/components/shell/nav-visibility-prefs.ts +16 -0
  423. package/apps/pwa/src/components/shell/nav-visit.ts +41 -0
  424. package/apps/pwa/src/components/shell/sidebar-nav-items.ts +122 -0
  425. package/apps/pwa/src/components/shell/sidebar-nav-private.ts +4 -0
  426. package/apps/pwa/src/components/shell/use-nav-visit-log.ts +34 -0
  427. package/apps/pwa/src/components/shell/use-shell-activity.ts +69 -0
  428. package/apps/pwa/src/components/showroom/ChainForwardGateModal.tsx +161 -0
  429. package/apps/pwa/src/components/showroom/CostGateModal.tsx +138 -0
  430. package/apps/pwa/src/components/showroom/HitlBanner.tsx +107 -0
  431. package/apps/pwa/src/components/showroom/ShowroomCameraIntake.tsx +263 -0
  432. package/apps/pwa/src/components/showroom/ShowroomHitlToggle.tsx +63 -0
  433. package/apps/pwa/src/components/showroom/ShowroomInput.tsx +1105 -0
  434. package/apps/pwa/src/components/showroom/ShowroomLayout.tsx +2166 -0
  435. package/apps/pwa/src/components/showroom/ShowroomPanel.tsx +722 -0
  436. package/apps/pwa/src/components/showroom/ShowroomShortcutHelp.tsx +98 -0
  437. package/apps/pwa/src/components/showroom/ShowroomVoiceIntake.tsx +271 -0
  438. package/apps/pwa/src/components/showroom/use-hitl-banner.ts +198 -0
  439. package/apps/pwa/src/components/terminal/CameraAttachButton.tsx +99 -0
  440. package/apps/pwa/src/components/terminal/CompactTerminalBar.tsx +54 -0
  441. package/apps/pwa/src/components/terminal/FileAttachButton.tsx +96 -0
  442. package/apps/pwa/src/components/terminal/LiveCameraControl.tsx +136 -0
  443. package/apps/pwa/src/components/terminal/ModifierBar.tsx +263 -0
  444. package/apps/pwa/src/components/terminal/MultiDeviceIndicator.tsx +117 -0
  445. package/apps/pwa/src/components/terminal/PtyLiveView.lazy.tsx +31 -0
  446. package/apps/pwa/src/components/terminal/PtyLiveView.tsx +289 -0
  447. package/apps/pwa/src/components/terminal/PtyWall.tsx +88 -0
  448. package/apps/pwa/src/components/terminal/TerminalChatDock.lazy.tsx +7 -0
  449. package/apps/pwa/src/components/terminal/TerminalChatDock.tsx +649 -0
  450. package/apps/pwa/src/components/terminal/TerminalControls.tsx +311 -0
  451. package/apps/pwa/src/components/terminal/TerminalDropZone.tsx +142 -0
  452. package/apps/pwa/src/components/terminal/TerminalPanel.tsx +936 -0
  453. package/apps/pwa/src/components/terminal/TerminalTabs.tsx +1108 -0
  454. package/apps/pwa/src/components/terminal/TuiMirrorView.lazy.tsx +8 -0
  455. package/apps/pwa/src/components/terminal/TuiMirrorView.tsx +129 -0
  456. package/apps/pwa/src/components/terminal/XtermView.lazy.tsx +30 -0
  457. package/apps/pwa/src/components/terminal/XtermView.tsx +658 -0
  458. package/apps/pwa/src/components/terminal/acp-failure.ts +21 -0
  459. package/apps/pwa/src/components/terminal/initial-terminal-notice.ts +45 -0
  460. package/apps/pwa/src/components/terminal/pane-layout.ts +132 -0
  461. package/apps/pwa/src/components/terminal/pane-plan.ts +73 -0
  462. package/apps/pwa/src/components/terminal/panel-view-state.ts +35 -0
  463. package/apps/pwa/src/components/terminal/pty-live-poll.ts +57 -0
  464. package/apps/pwa/src/components/terminal/pty-mouse-forward.ts +22 -0
  465. package/apps/pwa/src/components/terminal/pty-terminal-list.ts +470 -0
  466. package/apps/pwa/src/components/terminal/pty-terminal-row-summary.ts +129 -0
  467. package/apps/pwa/src/components/terminal/pty-wall.ts +46 -0
  468. package/apps/pwa/src/components/terminal/rename-outcome.ts +22 -0
  469. package/apps/pwa/src/components/terminal/tab-close-intent.ts +45 -0
  470. package/apps/pwa/src/components/terminal/terminal-chip-label.ts +78 -0
  471. package/apps/pwa/src/components/terminal/terminal-clear.ts +3 -0
  472. package/apps/pwa/src/components/terminal/terminal-input-registry.ts +87 -0
  473. package/apps/pwa/src/components/terminal/terminal-input-sender.ts +99 -0
  474. package/apps/pwa/src/components/terminal/terminal-origin-label.ts +22 -0
  475. package/apps/pwa/src/components/terminal/touch-scroll.ts +86 -0
  476. package/apps/pwa/src/components/tool-approval/ToolApprovalSheet.tsx +67 -0
  477. package/apps/pwa/src/components/tool-approval/use-tool-approval.ts +124 -0
  478. package/apps/pwa/src/components/ui/api-key-field.tsx +154 -0
  479. package/apps/pwa/src/components/ui/button.tsx +58 -0
  480. package/apps/pwa/src/components/ui/dialog.tsx +160 -0
  481. package/apps/pwa/src/components/ui/input.tsx +20 -0
  482. package/apps/pwa/src/components/ui/scroll-area.tsx +55 -0
  483. package/apps/pwa/src/components/ui/sheet.tsx +138 -0
  484. package/apps/pwa/src/components/ui/sonner.tsx +49 -0
  485. package/apps/pwa/src/components/ui/tabs.tsx +82 -0
  486. package/apps/pwa/src/components/ui/tooltip.tsx +66 -0
  487. package/apps/pwa/src/components/vault/MermaidDiagram.tsx +163 -0
  488. package/apps/pwa/src/components/vault/NewNoteDialog.tsx +73 -0
  489. package/apps/pwa/src/components/vault/NoteEditor.tsx +196 -0
  490. package/apps/pwa/src/components/vault/VaultGraph.tsx +77 -0
  491. package/apps/pwa/src/components/vault/VaultMarkdown.tsx +112 -0
  492. package/apps/pwa/src/components/vault/VaultPanel.tsx +216 -0
  493. package/apps/pwa/src/components/vault/VaultTagsPanel.tsx +47 -0
  494. package/apps/pwa/src/components/vault/mermaid-theme.ts +42 -0
  495. package/apps/pwa/src/components/voice/TailscaleSecurityBanner.tsx +108 -0
  496. package/apps/pwa/src/components/workflows/ApprovalModal.tsx +145 -0
  497. package/apps/pwa/src/components/workflows/ChatPreviewPanel.tsx +144 -0
  498. package/apps/pwa/src/components/workflows/ExpressionInput.tsx +212 -0
  499. package/apps/pwa/src/components/workflows/NodeRunPanel.tsx +134 -0
  500. package/apps/pwa/src/components/workflows/PluginCredentialsField.tsx +131 -0
  501. package/apps/pwa/src/components/workflows/RunGraphShowcase.tsx +183 -0
  502. package/apps/pwa/src/components/workflows/RunGraphView.tsx +343 -0
  503. package/apps/pwa/src/components/workflows/RunsListPanel.tsx +211 -0
  504. package/apps/pwa/src/components/workflows/SchemaForm.tsx +119 -0
  505. package/apps/pwa/src/components/workflows/TidyEdge.tsx +44 -0
  506. package/apps/pwa/src/components/workflows/WorkflowCreateModal.tsx +260 -0
  507. package/apps/pwa/src/components/workflows/WorkflowGraph.tsx +1151 -0
  508. package/apps/pwa/src/components/workflows/WorkflowHistoryPanel.tsx +93 -0
  509. package/apps/pwa/src/components/workflows/WorkflowNLPrompt.tsx +199 -0
  510. package/apps/pwa/src/components/workflows/WorkflowNodeEditor.tsx +509 -0
  511. package/apps/pwa/src/components/workflows/WorkflowPublishPanel.tsx +54 -0
  512. package/apps/pwa/src/components/workflows/WorkflowSynthPreview.tsx +122 -0
  513. package/apps/pwa/src/components/workflows/WorkflowsPanel.tsx +1226 -0
  514. package/apps/pwa/src/components/workflows/expression-completion.ts +43 -0
  515. package/apps/pwa/src/components/workflows/graph-clipboard.ts +78 -0
  516. package/apps/pwa/src/components/workflows/graph-drop.ts +56 -0
  517. package/apps/pwa/src/components/workflows/graph-history.ts +40 -0
  518. package/apps/pwa/src/components/workflows/graph-notes.ts +47 -0
  519. package/apps/pwa/src/components/workflows/node-run-result.ts +36 -0
  520. package/apps/pwa/src/components/workflows/node-status-class.ts +14 -0
  521. package/apps/pwa/src/components/workflows/node-status.css +152 -0
  522. package/apps/pwa/src/components/workflows/phone-pane.ts +9 -0
  523. package/apps/pwa/src/components/workflows/run-status-helpers.ts +126 -0
  524. package/apps/pwa/src/components/workflows/schema-form.ts +222 -0
  525. package/apps/pwa/src/components/workflows/triggers/ChatTriggerEditor.tsx +170 -0
  526. package/apps/pwa/src/components/workflows/triggers/DiscordTriggerEditor.tsx +152 -0
  527. package/apps/pwa/src/components/workflows/triggers/HttpRequestEditor.tsx +287 -0
  528. package/apps/pwa/src/components/workflows/triggers/ManualTriggerEditor.tsx +94 -0
  529. package/apps/pwa/src/components/workflows/triggers/ScheduleTriggerEditor.tsx +235 -0
  530. package/apps/pwa/src/components/workflows/triggers/TelegramTriggerEditor.tsx +160 -0
  531. package/apps/pwa/src/components/workflows/triggers/TriggerEditorBase.tsx +78 -0
  532. package/apps/pwa/src/components/workflows/triggers/WebhookTriggerEditor.tsx +197 -0
  533. package/apps/pwa/src/components/workflows/triggers/cron-preview.ts +81 -0
  534. package/apps/pwa/src/components/workflows/triggers/trigger-card-preview.ts +125 -0
  535. package/apps/pwa/src/components/workflows/use-graph-history.ts +32 -0
  536. package/apps/pwa/src/components/workflows/useKeyboardShortcuts.ts +81 -0
  537. package/apps/pwa/src/components/workflows/usePanelLayout.ts +135 -0
  538. package/apps/pwa/src/components/workflows/validation-helpers.ts +122 -0
  539. package/apps/pwa/src/components/workflows/workflow-file.ts +38 -0
  540. package/apps/pwa/src/components/workflows/workflow-graph-layout.ts +526 -0
  541. package/apps/pwa/src/components/workflows/workflow-graph-mutations.ts +415 -0
  542. package/apps/pwa/src/components/workflows/workflow-publish.ts +50 -0
  543. package/apps/pwa/src/components/workflows/workflow-save.ts +60 -0
  544. package/apps/pwa/src/lib/adaptive-graph-replay.ts +57 -0
  545. package/apps/pwa/src/lib/attachment-content.ts +140 -0
  546. package/apps/pwa/src/lib/audio-stt-extract.ts +69 -0
  547. package/apps/pwa/src/lib/auth-required.ts +30 -0
  548. package/apps/pwa/src/lib/bot-rounds.ts +129 -0
  549. package/apps/pwa/src/lib/botlab-wall.ts +64 -0
  550. package/apps/pwa/src/lib/budget-status.ts +114 -0
  551. package/apps/pwa/src/lib/camera-intake.ts +140 -0
  552. package/apps/pwa/src/lib/card-followup-client.ts +149 -0
  553. package/apps/pwa/src/lib/chat-autoscroll.ts +127 -0
  554. package/apps/pwa/src/lib/chat-deploy.ts +62 -0
  555. package/apps/pwa/src/lib/chat-fork.ts +31 -0
  556. package/apps/pwa/src/lib/chat-harness-ask.ts +24 -0
  557. package/apps/pwa/src/lib/chat-model-commands.ts +104 -0
  558. package/apps/pwa/src/lib/chat-paste-drop.ts +55 -0
  559. package/apps/pwa/src/lib/chat-persona.ts +38 -0
  560. package/apps/pwa/src/lib/chat-queue.ts +24 -0
  561. package/apps/pwa/src/lib/chat-routing-storage.ts +67 -0
  562. package/apps/pwa/src/lib/chat-runtime.ts +1956 -0
  563. package/apps/pwa/src/lib/chat-session-commands.ts +88 -0
  564. package/apps/pwa/src/lib/chat-status.ts +78 -0
  565. package/apps/pwa/src/lib/code-block-preview.ts +66 -0
  566. package/apps/pwa/src/lib/compact-mode.ts +52 -0
  567. package/apps/pwa/src/lib/control-signals-api.ts +76 -0
  568. package/apps/pwa/src/lib/daemon-client.ts +2637 -0
  569. package/apps/pwa/src/lib/daemon-config.ts +129 -0
  570. package/apps/pwa/src/lib/daemon-session.ts +51 -0
  571. package/apps/pwa/src/lib/debug.ts +391 -0
  572. package/apps/pwa/src/lib/decisions-api.ts +71 -0
  573. package/apps/pwa/src/lib/devices-api.ts +88 -0
  574. package/apps/pwa/src/lib/dock-attachment-count.ts +4 -0
  575. package/apps/pwa/src/lib/dock-history-hydrate.ts +149 -0
  576. package/apps/pwa/src/lib/drop-overlay.ts +14 -0
  577. package/apps/pwa/src/lib/elanous-ask-extensions.ts +90 -0
  578. package/apps/pwa/src/lib/elanous-card.ts +92 -0
  579. package/apps/pwa/src/lib/elanous-feedback-envelope.ts +40 -0
  580. package/apps/pwa/src/lib/elanous-term-envelope.ts +115 -0
  581. package/apps/pwa/src/lib/elevenlabs-voices.ts +115 -0
  582. package/apps/pwa/src/lib/feedback-block-accumulator.ts +567 -0
  583. package/apps/pwa/src/lib/feedback-envelope.ts +78 -0
  584. package/apps/pwa/src/lib/field-pick-limits.ts +30 -0
  585. package/apps/pwa/src/lib/fluent-chain-api.ts +111 -0
  586. package/apps/pwa/src/lib/graph-approvals-api.ts +112 -0
  587. package/apps/pwa/src/lib/graph-edge-route.ts +480 -0
  588. package/apps/pwa/src/lib/graph-run-api.ts +91 -0
  589. package/apps/pwa/src/lib/graph-wiring.css +9 -0
  590. package/apps/pwa/src/lib/hosted-chat-runtime.ts +158 -0
  591. package/apps/pwa/src/lib/hw-keyboard.ts +30 -0
  592. package/apps/pwa/src/lib/idle-nudge-api.ts +79 -0
  593. package/apps/pwa/src/lib/inject-attachment-paths.ts +83 -0
  594. package/apps/pwa/src/lib/inside-events.ts +219 -0
  595. package/apps/pwa/src/lib/install-banner-state.ts +106 -0
  596. package/apps/pwa/src/lib/intake-absorb-status.ts +27 -0
  597. package/apps/pwa/src/lib/intake-front-door-api.ts +127 -0
  598. package/apps/pwa/src/lib/intake-pipeline-api.ts +192 -0
  599. package/apps/pwa/src/lib/intake-run-timeline.ts +31 -0
  600. package/apps/pwa/src/lib/key-sequences.ts +116 -0
  601. package/apps/pwa/src/lib/live-gate-decision.ts +139 -0
  602. package/apps/pwa/src/lib/live-public.ts +92 -0
  603. package/apps/pwa/src/lib/live-run-metrics.ts +56 -0
  604. package/apps/pwa/src/lib/live-run-scene.ts +120 -0
  605. package/apps/pwa/src/lib/live-run-stage.ts +175 -0
  606. package/apps/pwa/src/lib/live-run-view.ts +89 -0
  607. package/apps/pwa/src/lib/live-signals.ts +341 -0
  608. package/apps/pwa/src/lib/live-v5.ts +244 -0
  609. package/apps/pwa/src/lib/markdown-render.ts +8 -0
  610. package/apps/pwa/src/lib/mcp-app-bridge-host.ts +102 -0
  611. package/apps/pwa/src/lib/mcp-app-bridge.ts +474 -0
  612. package/apps/pwa/src/lib/mcp-app-csp.ts +68 -0
  613. package/apps/pwa/src/lib/mcp-app-resource.ts +90 -0
  614. package/apps/pwa/src/lib/member-invite-api.ts +39 -0
  615. package/apps/pwa/src/lib/member-mini-board-api.ts +75 -0
  616. package/apps/pwa/src/lib/member-signup-intent.ts +20 -0
  617. package/apps/pwa/src/lib/merge-approvals-api.ts +94 -0
  618. package/apps/pwa/src/lib/migrate-base-url.ts +64 -0
  619. package/apps/pwa/src/lib/model-tier-prefs.ts +115 -0
  620. package/apps/pwa/src/lib/model-tier-spec.ts +339 -0
  621. package/apps/pwa/src/lib/model-tier-sync.ts +408 -0
  622. package/apps/pwa/src/lib/morning-showroom-api.ts +78 -0
  623. package/apps/pwa/src/lib/new-build.ts +14 -0
  624. package/apps/pwa/src/lib/notification-target-select.ts +76 -0
  625. package/apps/pwa/src/lib/ocr-prefs.ts +79 -0
  626. package/apps/pwa/src/lib/operator-role.ts +40 -0
  627. package/apps/pwa/src/lib/ops-api.ts +285 -0
  628. package/apps/pwa/src/lib/outputs-api.ts +20 -0
  629. package/apps/pwa/src/lib/peer-id.ts +40 -0
  630. package/apps/pwa/src/lib/preset-catalog.ts +92 -0
  631. package/apps/pwa/src/lib/projects-api.ts +67 -0
  632. package/apps/pwa/src/lib/public-app-report.ts +18 -0
  633. package/apps/pwa/src/lib/public-capture.tsx +19 -0
  634. package/apps/pwa/src/lib/pushcut-runtime.ts +144 -0
  635. package/apps/pwa/src/lib/pwa-role.ts +37 -0
  636. package/apps/pwa/src/lib/quiet-surface.ts +37 -0
  637. package/apps/pwa/src/lib/register-sw.ts +100 -0
  638. package/apps/pwa/src/lib/research-fan.ts +93 -0
  639. package/apps/pwa/src/lib/route-maturity.ts +28 -0
  640. package/apps/pwa/src/lib/run-graph-flow.ts +144 -0
  641. package/apps/pwa/src/lib/run-graph-yaml-edit.ts +393 -0
  642. package/apps/pwa/src/lib/secure-context-guard.ts +112 -0
  643. package/apps/pwa/src/lib/session-restore.ts +269 -0
  644. package/apps/pwa/src/lib/sessions-service.ts +294 -0
  645. package/apps/pwa/src/lib/sessions-store-api.ts +96 -0
  646. package/apps/pwa/src/lib/setup-link.ts +42 -0
  647. package/apps/pwa/src/lib/share-capture.ts +119 -0
  648. package/apps/pwa/src/lib/share-prefill.ts +21 -0
  649. package/apps/pwa/src/lib/share-scraps.ts +140 -0
  650. package/apps/pwa/src/lib/share-target-store.ts +234 -0
  651. package/apps/pwa/src/lib/shared-event-source.ts +158 -0
  652. package/apps/pwa/src/lib/show-beta.ts +48 -0
  653. package/apps/pwa/src/lib/showroom/cost-estimator.ts +97 -0
  654. package/apps/pwa/src/lib/showroom/hitl-toggle.ts +45 -0
  655. package/apps/pwa/src/lib/showroom/runtime.ts +1386 -0
  656. package/apps/pwa/src/lib/showroom/storage.ts +260 -0
  657. package/apps/pwa/src/lib/showroom/types.ts +323 -0
  658. package/apps/pwa/src/lib/showroom/use-personas.ts +126 -0
  659. package/apps/pwa/src/lib/showroom/use-resolved-view.ts +179 -0
  660. package/apps/pwa/src/lib/showroom-keyboard-shortcuts.ts +127 -0
  661. package/apps/pwa/src/lib/skill-exec-client.ts +54 -0
  662. package/apps/pwa/src/lib/snapshot.ts +75 -0
  663. package/apps/pwa/src/lib/swipe-gesture.ts +176 -0
  664. package/apps/pwa/src/lib/task-api.ts +141 -0
  665. package/apps/pwa/src/lib/term-focus.ts +52 -0
  666. package/apps/pwa/src/lib/terminal-stream.ts +38 -0
  667. package/apps/pwa/src/lib/testing/react-hook-harness.ts +269 -0
  668. package/apps/pwa/src/lib/tui-observe.ts +130 -0
  669. package/apps/pwa/src/lib/turn-busy.ts +38 -0
  670. package/apps/pwa/src/lib/upload-attachment.ts +95 -0
  671. package/apps/pwa/src/lib/use-focus-trap.ts +121 -0
  672. package/apps/pwa/src/lib/use-live-announcer.ts +79 -0
  673. package/apps/pwa/src/lib/use-live-camera.ts +289 -0
  674. package/apps/pwa/src/lib/use-mission-router.ts +126 -0
  675. package/apps/pwa/src/lib/use-operator.ts +35 -0
  676. package/apps/pwa/src/lib/use-pointer-capability.ts +53 -0
  677. package/apps/pwa/src/lib/use-sessions.ts +47 -0
  678. package/apps/pwa/src/lib/use-wake-lock.ts +104 -0
  679. package/apps/pwa/src/lib/user-intent-logger.ts +83 -0
  680. package/apps/pwa/src/lib/utils.ts +6 -0
  681. package/apps/pwa/src/lib/vault-api.ts +109 -0
  682. package/apps/pwa/src/lib/vault-helpers.ts +100 -0
  683. package/apps/pwa/src/lib/vault-tree.ts +22 -0
  684. package/apps/pwa/src/lib/video-frame-extract.ts +111 -0
  685. package/apps/pwa/src/lib/voice-intake.ts +232 -0
  686. package/apps/pwa/src/lib/voice-prefs.ts +81 -0
  687. package/apps/pwa/src/lib/web-push.ts +213 -0
  688. package/apps/pwa/src/lib/xterm-capability-filter.ts +50 -0
  689. package/apps/pwa/src/lib/xterm-resize-controller.ts +162 -0
  690. package/apps/pwa/src/nexus/client.ts +1719 -0
  691. package/apps/pwa/src/nexus/components/detail-views/channel-bot-detail.tsx +53 -0
  692. package/apps/pwa/src/nexus/components/detail-views/chat-detail.tsx +18 -0
  693. package/apps/pwa/src/nexus/components/detail-views/daemon-detail.tsx +27 -0
  694. package/apps/pwa/src/nexus/components/detail-views/index.ts +36 -0
  695. package/apps/pwa/src/nexus/components/detail-views/pwa-host-detail.tsx +33 -0
  696. package/apps/pwa/src/nexus/components/detail-views/webterm-detail.tsx +16 -0
  697. package/apps/pwa/src/nexus/components/log-line.tsx +14 -0
  698. package/apps/pwa/src/nexus/components/mini-term-dock.tsx +83 -0
  699. package/apps/pwa/src/nexus/components/nexus-sidebar.tsx +77 -0
  700. package/apps/pwa/src/nexus/components/sidebar-grouping.ts +50 -0
  701. package/apps/pwa/src/nexus/components/sidebar-tab-item.tsx +54 -0
  702. package/apps/pwa/src/nexus/components/status-badge.tsx +56 -0
  703. package/apps/pwa/src/nexus/components/tab-actions.tsx +82 -0
  704. package/apps/pwa/src/nexus/components/tab-detail.tsx +32 -0
  705. package/apps/pwa/src/nexus/components/tab-status-panel.tsx +51 -0
  706. package/apps/pwa/src/nexus/hooks/index.ts +25 -0
  707. package/apps/pwa/src/nexus/hooks/query-keys.ts +57 -0
  708. package/apps/pwa/src/nexus/hooks/use-bindings.ts +75 -0
  709. package/apps/pwa/src/nexus/hooks/use-config.ts +71 -0
  710. package/apps/pwa/src/nexus/hooks/use-design-check.ts +190 -0
  711. package/apps/pwa/src/nexus/hooks/use-events.ts +43 -0
  712. package/apps/pwa/src/nexus/hooks/use-live-signals.ts +71 -0
  713. package/apps/pwa/src/nexus/hooks/use-nexus-context.tsx +56 -0
  714. package/apps/pwa/src/nexus/hooks/use-nexus-state.ts +76 -0
  715. package/apps/pwa/src/nexus/hooks/use-platforms.ts +22 -0
  716. package/apps/pwa/src/nexus/hooks/use-tab-actions.ts +82 -0
  717. package/apps/pwa/src/nexus/hooks/use-tab-logs-stream.ts +89 -0
  718. package/apps/pwa/src/nexus/hooks/use-templates.ts +34 -0
  719. package/apps/pwa/src/nexus/hooks/use-workflow-pins.ts +34 -0
  720. package/apps/pwa/src/nexus/hooks/use-workflow-run-modes.ts +18 -0
  721. package/apps/pwa/src/nexus/hooks/use-workflows.ts +327 -0
  722. package/apps/pwa/src/nexus/hooks/use-worktrees.ts +76 -0
  723. package/apps/pwa/src/nexus/runtime-discovery.ts +66 -0
  724. package/apps/pwa/src/nexus/types.ts +89 -0
  725. package/apps/pwa/src/test-devices/graph-design-replay.ts +73 -0
  726. package/apps/pwa/src/voice/barge-in.ts +235 -0
  727. package/apps/pwa/src/voice/showroom-voice.ts +64 -0
  728. package/apps/pwa/src/voice/use-showroom-tts.ts +192 -0
  729. package/apps/pwa/src/voice/use-voice-controller.ts +291 -0
  730. package/apps/pwa/src/voice/use-voice-tts.ts +169 -0
  731. package/apps/pwa/src/voice/voice-capture.ts +182 -0
  732. package/apps/pwa/src/voice/voice-frame-protocol.ts +73 -0
  733. package/apps/pwa/src/voice/voice-phase-styles.ts +26 -0
  734. package/apps/pwa/src/voice/voice-playback.ts +73 -0
  735. package/apps/pwa/src/voice/voice-websocket.ts +191 -0
  736. package/apps/pwa/tsconfig.json +23 -0
  737. package/catalog/models/openrouter/onboarding-picks.json +16 -0
  738. package/catalog/models/openrouter/solar-mini4.yaml +27 -0
  739. package/catalog/models/openrouter/solar-pro4.yaml +27 -0
  740. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-APP-CONTRACT-SECRET-ENTROPY-TS.json +4 -1
  741. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-APP-KILL-SWITCH-WORLD-TS.json +4 -1
  742. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-APP-SCRATCH-BOOTSTRAP-TS.json +4 -1
  743. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-APP-UPGRADE-PATH-WORLD-TS.json +4 -1
  744. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-ARG-MACRO-CANVAS-SIM-TS.json +4 -1
  745. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-ASIDE-FEEDBACK-LOOP-TS.json +4 -1
  746. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-AUTHOR-REVIEWER-PRECHECK-DEVICE-TS.json +4 -1
  747. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-BACKEND-TIER-DEVICE-TS.json +4 -1
  748. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-BOOT-DAEMON-TOOLS-PTY-SHELL-DEVICE-TS.json +4 -1
  749. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-BROWSER-HAND-TS.json +4 -1
  750. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-BURST-READY-LADDER-SIM-TS.json +4 -1
  751. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-CENSUS-ORACLE-AXIS-WORLD-TS.json +4 -1
  752. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-CHAIN-LAND-TS.json +4 -1
  753. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-CLASSIC-TUI-SEAT-SCENARIOS-TS.json +4 -1
  754. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-CLI-CONFIG-AUDIT-DEVICE-TS.json +4 -1
  755. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-CODEX-WIRE-CAPTURE-TS.json +4 -1
  756. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-COMPUTER-USE-TS.json +4 -1
  757. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-DASHBOARD-EVENT-LOOP-STALL-MONITOR-DEVICE-TS.json +4 -1
  758. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-DELETE-IMPACT-SIM-TS.json +4 -0
  759. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-DEVICE-CATALOG-SNAPSHOT-FRAGMENTS-TS.json +4 -1
  760. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-DEVICE-FIDELITY-TS.json +4 -1
  761. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-DRAFT-INVENTORY-BUILDER-TS.json +4 -1
  762. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-EDGE-CREATOR-NIGHTLY-TS.json +4 -1
  763. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-EDGE-CREATOR-TS.json +4 -1
  764. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-EVENT-MONKEY-TS.json +4 -1
  765. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-ABSORB-INGEST-TS.json +4 -1
  766. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-ADB-PHONE-WORLD-TS.json +4 -1
  767. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-AGENT-HOOK-HOST-TS.json +4 -1
  768. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-ANDROID-CLIENT-TS.json +4 -1
  769. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-APP-AUTH-TS.json +4 -1
  770. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-APP-DB-BACKUP-WORLD-TS.json +4 -1
  771. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-APP-DB-WORLD-TS.json +4 -1
  772. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-APP-DRIVE-WORLD-TS.json +4 -1
  773. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-APP-FAILURES-TS.json +4 -1
  774. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-APP-HOST-TS.json +4 -1
  775. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-APP-REALTIME-TS.json +4 -1
  776. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-APP-SOURCE-CONCURRENT-WRITER-TS.json +4 -1
  777. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-APP-SOURCE-WORLD-TS.json +4 -1
  778. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-APP-STORAGE-TS.json +4 -1
  779. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-APP-TRAFFIC-TS.json +4 -1
  780. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-BIN-ARGS-SIM-TS.json +4 -1
  781. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-BIN-TS.json +4 -1
  782. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-BROWSER-PAGE-TS.json +4 -1
  783. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-CLOCK-TS.json +4 -1
  784. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-CLOUD-BILLING-WORLD-TS.json +4 -1
  785. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-CLOUD-VM-TS.json +4 -1
  786. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-DATA-GUARD-BOUNDARY-TS.json +4 -1
  787. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-DNS-CERT-TS.json +4 -1
  788. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-ELEVENLABS-TS.json +4 -1
  789. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-FEEDS-TS.json +4 -1
  790. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-FETCH-TS.json +4 -1
  791. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-FLEET-TS.json +4 -1
  792. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-GH-TS.json +4 -1
  793. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-GOOGLE-DRIVE-WORLD-TS.json +4 -1
  794. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-HERDR-TS.json +4 -1
  795. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-HIGGSFIELD-TS.json +4 -1
  796. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-KUBECTL-TS.json +4 -1
  797. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-LAND-QUEUE-TS.json +4 -1
  798. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-LINEAR-DEVICE-TS.json +4 -1
  799. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-LLM-TS.json +4 -1
  800. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-MEMBER-OIDC-WORLD-TS.json +4 -1
  801. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-MOBILE-TOOLCHAIN-TS.json +4 -1
  802. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-NEXUS-BOARD-SERVER-TS.json +4 -1
  803. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-PAYMENT-TS.json +4 -1
  804. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-PS-TS.json +4 -1
  805. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-RELAY-WORLD-TS.json +4 -1
  806. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-SSH-TS.json +4 -1
  807. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-STT-TS.json +4 -1
  808. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-TELEGRAM-OUTBOUND-TS.json +4 -1
  809. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-TELEGRAM-VIDEO-TS.json +4 -1
  810. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-TEMP-CLEANUP-TS.json +4 -1
  811. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAULT-CRED-EXPIRY-TS.json +4 -1
  812. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAULT-GLM-NO-CREDENTIAL-TS.json +4 -1
  813. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAULT-NEEDS-HUMAN-REASON-REPAIR-TS.json +4 -1
  814. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAULT-NEXTMOVE-DISPATCH-TS.json +4 -1
  815. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAULT-NEXUS-STALL-TS.json +4 -1
  816. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAULT-POD-CHILD-RESULT-TS.json +4 -1
  817. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAULT-POD-CODEX-503-TS.json +4 -1
  818. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAULT-POD-DEATH-TS.json +4 -1
  819. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAULT-POD-REUSE-RESIDUE-TS.json +4 -1
  820. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAULT-POOL-CAP-TS.json +4 -1
  821. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAULT-SCOPE-ESCAPE-LIFT-TS.json +4 -1
  822. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAULT-SQLITE-BUSY-TS.json +4 -1
  823. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAULT-TUI-400-AUTOHEAL-TS.json +4 -1
  824. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FIXTURES-GIT-WORKTREE-ACCEL-LINUX-JSON.json +4 -1
  825. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FLUTTER-DEPLOY-JOURNEY-TS.json +4 -1
  826. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-GATE-IMAGE-LAYERED-DELTA-SIM-TS.json +4 -1
  827. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-GATE-IMAGE-PREFLIGHT-RUNTIME-IDENTITY-FLOW-SIM-TS.json +4 -1
  828. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-GATE-ROSTER-SECOND-POOL-TS.json +4 -1
  829. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-GATE-SHARD-HOST-REROUTE-TS.json +4 -1
  830. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-GATE-STEADY-STATE-PROOF-SIM-TS.json +4 -1
  831. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-GCP-ARCHITECT-EXPAND-FAKE-WORLD-TS.json +7 -0
  832. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-GCP-ARCHITECT-EXPAND-TIERED-DESIGN-TS.json +6 -0
  833. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-GIT-PUSH-TIMEOUT-PARTIAL-OUTCOME-REMOTE-VERIFY-TS.json +4 -1
  834. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-GOAL-DEVICE-TS.json +4 -1
  835. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-GOAL-INTERIM-TRACE-TS.json +4 -1
  836. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-GRAPH-DIFF-APPLY-TS.json +4 -1
  837. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-GRAPH-ENGINE-SIM-TS.json +4 -1
  838. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-GRAPH-EVENT-ENTRY-WORLD-TS.json +5 -1
  839. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-GRAPH-PLACEMENT-LEASE-WORLD-TS.json +5 -1
  840. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-GRAPH-RUN-LIFECYCLE-WORLD-TS.json +4 -1
  841. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-GRAPH-RUNTIME-OVERLAY-EVENT-PATH-TS.json +4 -1
  842. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-GRAPH-RUNTIME-OVERLAY-EVENT-PATH-WORKER-TS.json +4 -1
  843. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-GRAPH-TRIGGER-HOOK-DEVICE-TS.json +6 -1
  844. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-GRID-CHAOS-DRIVER-TS.json +4 -1
  845. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-GRID-LEDGER-TS.json +4 -1
  846. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-GRID-READY-TIERS-TS.json +4 -1
  847. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-HEADLESS-TUI-TS.json +4 -1
  848. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-HEAL-REAUTHOR-MATERIALIZED-TS.json +4 -1
  849. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-HOTSPOT-FILE-LEASE-WORLD-TS.json +6 -1
  850. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-HQ-MOVE-SIM-TS.json +4 -1
  851. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-IN-PROCESS-CLI-539-FILE-ADOPTION-SIM-TS.json +4 -1
  852. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-IN-PROCESS-CLI-TS.json +4 -1
  853. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-INPUT-HISTORY-TS.json +4 -1
  854. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-INSTALL-CONSENT-DEVICE-TS.json +4 -1
  855. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-INTERACTION-TS.json +4 -1
  856. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-IOS-CHAT-EDGE-ADAPTER-TS.json +4 -1
  857. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-KAIST-APP-QR-SIM-TS.json +7 -0
  858. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-KAIST-CLASSIC-PWA-BROWSER-REPLAY-TS.json +7 -0
  859. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-KAIST-CLASSIC-PWA-REPLAY-WORLD-TS.json +7 -0
  860. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-LINEAR-SECRETARY-TS.json +4 -1
  861. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-MAPREDUCE-MULTIHOST-SIM-TS.json +4 -1
  862. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-MOCK-AUTHORING-FIRST-RUN-CHILD-TS.json +4 -1
  863. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-MOCK-AUTHORING-FIRST-RUN-TS.json +4 -1
  864. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-MOCK-DEVICE-REQUESTS-TS.json +4 -1
  865. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-MOCK-SCENARIO-CATALOG-TS.json +4 -1
  866. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-MOCK-SEAT-PTY-FRAME-CHILD-TS.json +4 -1
  867. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-MOCK-SEAT-PTY-FRAME-TS.json +4 -1
  868. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-MOCK-SEAT-PTY-SEQUENCE-CHILD-TS.json +4 -1
  869. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-MOCK-SEAT-PTY-SEQUENCE-TS.json +4 -1
  870. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-MULTI-ACTOR-WORLD-TS.json +4 -1
  871. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-MULTI-TENANT-RELAY-WORLD-TS.json +4 -1
  872. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-NETWORK-SANDBOX-TS.json +4 -1
  873. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-NEXT-TUI-CORE-INPUT-TS.json +4 -1
  874. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-NEXT-TUI-PLUGIN-WIZARD-WORLD-TS.json +8 -0
  875. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-NEXT-TUI-ROUTE-DEVICE-TS.json +4 -1
  876. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-NEXT-TUI-SEAT-SCENARIOS-TS.json +4 -1
  877. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-NL-SCENARIO-TS.json +4 -1
  878. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-ONBOARDING-FIRST-RUN-DEVICE-TS.json +4 -1
  879. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-OUTBOUND-GUARD-SIM-TS.json +4 -1
  880. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-PLUGIN-RELEASE-OBSERVE-ROUTE-WORLD-TS.json +4 -1
  881. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-PLUGIN-YAML-GEN-WORLD-TS.json +4 -1
  882. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-POD-FEDERATION-SIM-TS.json +4 -1
  883. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-POD-PHASE-PREWARM-TS.json +4 -1
  884. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-POD-REUSE-MATCH-BY-KIND-SIM-TS.json +4 -1
  885. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-POD-REUSE-SHARED-FAKE-BOUNDARY-TS.json +4 -1
  886. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-POD-REUSE-WORLD-TS.json +4 -1
  887. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-PR-LAND-DRIFT-AUTOREPAIR-DEVICE-TS.json +4 -1
  888. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-PR-LAND-DRIFT-GATE-DEVICE-TS.json +4 -1
  889. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-PTY-KEY-MODIFIERS-DEVICE-TS.json +4 -1
  890. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-PUBLIC-AUTH-PROVIDER-CLOUD-VM-SIM-TS.json +4 -1
  891. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-PWA-PROVENANCE-BADGE-WORLD-TS.json +6 -1
  892. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-PWA-RETAINED-ROUTES-WORLD-TS.json +4 -1
  893. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-READINESS-COUNTDOWN-TS.json +4 -1
  894. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-REAL-TARGET-SANDBOX-TS.json +4 -1
  895. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-RELEASE-EVENT-TRACE-TS.json +4 -1
  896. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-RELEASE-PUBLISH-DEVICES-TS.json +4 -1
  897. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-RELEASE-SAME-VERSION-RUN-ADOPTION-SIM-TS.json +4 -1
  898. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-RELEASE-SIM-RIG-SEAT-GUARD-CHILD-TS.json +4 -1
  899. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-RELEASE-SIM-RIG-TS.json +4 -1
  900. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-RENDER-FRAME-TS.json +4 -1
  901. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-RESEARCH-DECISION-CHAIN-TS.json +4 -1
  902. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-RESUME-PICKER-DEVICE-TS.json +4 -1
  903. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-RLA-EVENT-RESPONSE-SCORECARD-TS.json +4 -1
  904. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-RLA-MACROPHAGE-HEAL-TIMEOUT-STALE-OUTPUT-SIM-TS.json +6 -1
  905. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-SAFE-PUBLIC-COPY-PUBLISH-TS.json +4 -1
  906. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-SCENARIO-TARGET-TS.json +6 -0
  907. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-SCENARIO-TS.json +4 -1
  908. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-SECRET-CANARY-TS.json +4 -1
  909. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-SEMINAR-REHEARSAL-TS.json +4 -1
  910. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-SERVICE-KEY-SETUP-TS.json +4 -1
  911. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-SESSION-ID-SEED-TS.json +4 -1
  912. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-SIM-COVERAGE-TS.json +4 -1
  913. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-SIM-RECEIPT-TS.json +4 -1
  914. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-SKILLS-TOOLS-SHELL-DEVICE-TS.json +4 -1
  915. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-SLASH-MENU-FRAMES-TS.json +4 -1
  916. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-SMART-MERGE-WORLD-TS.json +4 -1
  917. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-SUBAGENT-TOOLS-DEVICE-TS.json +4 -1
  918. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-TA-LAND-COUNT-DISPATCHER-SIM-TS.json +4 -1
  919. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-TASK-AGENT-PARENT-HOST-DEVICE-TS.json +4 -1
  920. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-TASK-AGENT-REJUDGE-ON-HEAD-DEVICE-TS.json +4 -1
  921. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-TASK-ORCHESTRATOR-SURFACES-SELF-IMPLEMENT-POD-DEVICE-TS.json +4 -1
  922. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-TEMP-GIT-REMOTE-TS.json +4 -1
  923. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-TEMP-GIT-REPO-TS.json +4 -1
  924. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-TERM-SLASH-DEVICE-TS.json +4 -1
  925. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-TOOL-ASYNC-FAIL-LOOP-TS.json +4 -1
  926. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-TOOL-ROUTER-WORLD-TS.json +4 -1
  927. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-TRAIN-MANAGER-DECISION-SIM-TS.json +4 -1
  928. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-TRAIN-MANAGER-WORLD-TS.json +4 -1
  929. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-TTY-FOREGROUND-STEAL-CHILD-TS.json +4 -1
  930. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-TURN-STATES-TS.json +4 -1
  931. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-TURN-THROW-SIM-TS.json +4 -1
  932. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-USER-CONFIG-DEFAULT-SPARSE-SIM-TS.json +4 -1
  933. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-USER-CONFIG-TUI-DIET-SIM-TS.json +4 -1
  934. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-WARM-POOL-REUSE-SIM-TS.json +4 -1
  935. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-WARM-POOL-REUSE-SWITCH-SIM-TS.json +4 -1
  936. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-WARM-SI-REUSE-SIM-TS.json +4 -1
  937. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-WORLD-CHAOS-RUNTIME-TS.json +4 -1
  938. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-WORLD-HOST-CHAOS-TS.json +4 -1
  939. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-WORLD-REGRESSION-SUITE-TS.json +4 -1
  940. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-WORLD-SCHEMA-TS.json +4 -1
  941. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-WORLD-SNAPSHOT-TS.json +4 -1
  942. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-WORLD-STORE-TS.json +4 -1
  943. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-WORLD-TS.json +4 -1
  944. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-WORLD-WATCH-TS.json +4 -1
  945. package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00670--src-ux-sim-kaist-app-qr-sim-ts-a1e7116f.json +11 -0
  946. package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00680--src-ux-sim-kaist-app-qr-sim-test-ts-2b726ad2.json +11 -0
  947. package/catalog/ux-sim/mock-scenario-catalog-fragments/catalog-additions/00670--src-ux-sim-kaist-app-qr-sim-ts-a1e7116f.json +4 -0
  948. package/catalog/ux-sim/mock-scenario-catalog-fragments/catalog-additions/00680--src-ux-sim-kaist-app-qr-sim-test-ts-2b726ad2.json +4 -0
  949. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00060--fake-llm-4e9d0461.json +4 -2
  950. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00240--world-runtime-d26d02c9.json +2 -0
  951. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00340--fault-injection-60e2a635.json +1 -0
  952. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01855--pwa-installed-package-staging.json +31 -0
  953. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01870--knowledge-pack-auto-select--598a19aa.json +31 -0
  954. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01880--kaist-app-qr-public-isolation-7dff33f1.json +36 -0
  955. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01880--kaist-classic-pwa-browser-replay-7ba58169.json +42 -0
  956. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01880--self-edge-byoc-world.json +27 -0
  957. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01890--gcp-architect-expand-fake-world-1dc2b194.json +27 -0
  958. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01890--kaist-pwa-mobile-approval-extension.json +32 -0
  959. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01891--kcb-integrated-pwa-lap.json +32 -0
  960. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01892--gcp-architect-tiered-design.json +25 -0
  961. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/02000--delete-impact-sim.json +28 -0
  962. package/catalog/ux-sim/mock-scenario-catalog-fragments/metadata.json +1 -1
  963. package/catalog/ux-sim/mock-scenario-catalog-fragments/omission-required-paths/00670--src-ux-sim-kaist-app-qr-sim-ts-a1e7116f.json +1 -0
  964. package/catalog/ux-sim/mock-scenario-catalog-fragments/omission-required-paths/00680--src-ux-sim-kaist-app-qr-sim-test-ts-2b726ad2.json +1 -0
  965. package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/fake-llm--bcb74f41.json +4 -0
  966. package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/gcp-architect-tiered-design--972746e0.json +4 -0
  967. package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/kaist-classic-pwa-browser-replay--978b5da1.json +4 -0
  968. package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/kaist-classic-pwa-browser-replay--c8bdb3ba.json +4 -0
  969. package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/kaist-pwa-mobile-approval-extension--2b700ea3.json +4 -0
  970. package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/kcb-integrated-pwa-lap--b7be4c21.json +4 -0
  971. package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/r-arch-delete-impact-sim--1ba1037a.json +4 -0
  972. package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/tui-interaction--4336bdfe.json +4 -0
  973. package/catalog/ux-sim/mock-scenario-catalog-fragments/scenarios/00400--kaist-app-qr-live-c4d9f8a9.json +24 -0
  974. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00360--md-ux-sim-fake-llm-ts-df79e477.json +1 -1
  975. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01211--md-ux-sim-scenario-target-ts.json +10 -0
  976. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01880--md-ux-sim-kaist-app-qr-sim-ts-a39fa1af.json +10 -0
  977. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01880--md-ux-sim-kaist-classic-pwa-browser-replay-ts-e5635fd5.json +8 -0
  978. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01880--md-ux-sim-kaist-classic-pwa-replay-world-ts-8dba624f.json +8 -0
  979. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01890--md-ux-sim-gcp-architect-expand-fake-world-ts-50a192ca.json +10 -0
  980. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01892--md-ux-sim-gcp-architect-expand-tiered-design-ts.json +10 -0
  981. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/02000--md-ux-sim-delete-impact-sim-ts.json +8 -0
  982. package/docs/profiles/solar-only-demo.json +13 -0
  983. package/graphs/demo/integrated-ticketing.yaml +40 -0
  984. package/graphs/demo/recipes.yaml +8 -0
  985. package/graphs/drafts/recipes.yaml +1 -1
  986. package/graphs/ops/host-reservation-watch.yaml +18 -0
  987. package/graphs/ops/placement.yaml +45 -0
  988. package/graphs/ops/recipes.yaml +19 -0
  989. package/graphs/ops/silence-watch.yaml +24 -0
  990. package/graphs/release/node-command-bindings.json +27 -0
  991. package/graphs/release/plugin.json +123 -12
  992. package/graphs/release/recipes.yaml +11 -0
  993. package/graphs/release/release-loop-fanout.yaml +1 -0
  994. package/graphs/release/release-loop.yaml +25 -4
  995. package/graphs/release/rla/loop.yaml +2 -1
  996. package/graphs/work/web-app.yaml +21 -0
  997. package/package.json +10 -1
  998. package/packs/gcp-architect-expand/content/decision-table.md +6 -1
  999. package/packs/system-architecture-public/README.md +17 -0
  1000. package/packs/system-architecture-public/content/cqrs-event-sourcing-01.json +6 -0
  1001. package/packs/system-architecture-public/content/cqrs-event-sourcing-02.json +6 -0
  1002. package/packs/system-architecture-public/content/cqrs-event-sourcing-03.json +6 -0
  1003. package/packs/system-architecture-public/content/cqrs-event-sourcing-04.json +6 -0
  1004. package/packs/system-architecture-public/content/data-pipeline-01.json +6 -0
  1005. package/packs/system-architecture-public/content/data-pipeline-02.json +6 -0
  1006. package/packs/system-architecture-public/content/data-pipeline-03.json +6 -0
  1007. package/packs/system-architecture-public/content/data-pipeline-04.json +6 -0
  1008. package/packs/system-architecture-public/content/event-queue-01.json +6 -0
  1009. package/packs/system-architecture-public/content/event-queue-02.json +6 -0
  1010. package/packs/system-architecture-public/content/event-queue-03.json +6 -0
  1011. package/packs/system-architecture-public/content/event-queue-04.json +6 -0
  1012. package/packs/system-architecture-public/content/file-media-01.json +6 -0
  1013. package/packs/system-architecture-public/content/file-media-02.json +6 -0
  1014. package/packs/system-architecture-public/content/file-media-03.json +6 -0
  1015. package/packs/system-architecture-public/content/file-media-04.json +6 -0
  1016. package/packs/system-architecture-public/content/microservices-mesh-01.json +6 -0
  1017. package/packs/system-architecture-public/content/microservices-mesh-02.json +6 -0
  1018. package/packs/system-architecture-public/content/microservices-mesh-03.json +6 -0
  1019. package/packs/system-architecture-public/content/microservices-mesh-04.json +6 -0
  1020. package/packs/system-architecture-public/content/ml-serving-01.json +6 -0
  1021. package/packs/system-architecture-public/content/ml-serving-02.json +6 -0
  1022. package/packs/system-architecture-public/content/ml-serving-03.json +6 -0
  1023. package/packs/system-architecture-public/content/ml-serving-04.json +6 -0
  1024. package/packs/system-architecture-public/content/multi-tenant-saas-01.json +6 -0
  1025. package/packs/system-architecture-public/content/multi-tenant-saas-02.json +6 -0
  1026. package/packs/system-architecture-public/content/multi-tenant-saas-03.json +6 -0
  1027. package/packs/system-architecture-public/content/multi-tenant-saas-04.json +6 -0
  1028. package/packs/system-architecture-public/content/realtime-chat-notify-01.json +6 -0
  1029. package/packs/system-architecture-public/content/realtime-chat-notify-02.json +6 -0
  1030. package/packs/system-architecture-public/content/realtime-chat-notify-03.json +6 -0
  1031. package/packs/system-architecture-public/content/realtime-chat-notify-04.json +6 -0
  1032. package/packs/system-architecture-public/content/search-01.json +6 -0
  1033. package/packs/system-architecture-public/content/search-02.json +6 -0
  1034. package/packs/system-architecture-public/content/search-03.json +6 -0
  1035. package/packs/system-architecture-public/content/search-04.json +6 -0
  1036. package/packs/system-architecture-public/content/serverless-01.json +6 -0
  1037. package/packs/system-architecture-public/content/serverless-02.json +6 -0
  1038. package/packs/system-architecture-public/content/serverless-03.json +6 -0
  1039. package/packs/system-architecture-public/content/serverless-04.json +6 -0
  1040. package/packs/system-architecture-public/content/shared-patterns-01.json +6 -0
  1041. package/packs/system-architecture-public/content/shared-patterns-02.json +6 -0
  1042. package/packs/system-architecture-public/content/shared-patterns-03.json +6 -0
  1043. package/packs/system-architecture-public/content/shared-patterns-04.json +6 -0
  1044. package/packs/system-architecture-public/content/shared-patterns-05.json +6 -0
  1045. package/packs/system-architecture-public/content/shared-patterns-06.json +6 -0
  1046. package/packs/system-architecture-public/content/shared-patterns-07.json +6 -0
  1047. package/packs/system-architecture-public/content/three-tier-01.json +6 -0
  1048. package/packs/system-architecture-public/content/three-tier-02.json +6 -0
  1049. package/packs/system-architecture-public/content/three-tier-03.json +6 -0
  1050. package/packs/system-architecture-public/content/three-tier-04.json +6 -0
  1051. package/packs/system-architecture-public/knowledge-pack.json +219 -0
  1052. package/packs/ticketing-architecture-public/README.md +23 -0
  1053. package/packs/ticketing-architecture-public/content/01-scope.json +6 -0
  1054. package/packs/ticketing-architecture-public/content/02-seat.json +6 -0
  1055. package/packs/ticketing-architecture-public/content/03-unique.json +7 -0
  1056. package/packs/ticketing-architecture-public/content/04-queue.json +6 -0
  1057. package/packs/ticketing-architecture-public/content/05-redis.json +6 -0
  1058. package/packs/ticketing-architecture-public/content/06-payment.json +6 -0
  1059. package/packs/ticketing-architecture-public/content/07-idempotency.json +7 -0
  1060. package/packs/ticketing-architecture-public/content/08-webhook.json +6 -0
  1061. package/packs/ticketing-architecture-public/content/09-outbox.json +12 -0
  1062. package/packs/ticketing-architecture-public/content/10-kafka.json +6 -0
  1063. package/packs/ticketing-architecture-public/content/11-edge.json +6 -0
  1064. package/packs/ticketing-architecture-public/content/12-hpa.json +6 -0
  1065. package/packs/ticketing-architecture-public/content/13-probe.json +6 -0
  1066. package/packs/ticketing-architecture-public/content/14-decisions.json +6 -0
  1067. package/packs/ticketing-architecture-public/content/15-primer.json +6 -0
  1068. package/packs/ticketing-architecture-public/content/16-slo.json +6 -0
  1069. package/packs/ticketing-architecture-public/content/17-aws.json +6 -0
  1070. package/packs/ticketing-architecture-public/content/18-azure.json +6 -0
  1071. package/packs/ticketing-architecture-public/content/19-lease.json +6 -0
  1072. package/packs/ticketing-architecture-public/content/20-twelve-factor.json +6 -0
  1073. package/packs/ticketing-architecture-public/knowledge-pack.json +95 -0
  1074. package/plugins/README.md +7 -0
  1075. package/plugins/absorb/graph/absorb-build.yaml +83 -5
  1076. package/plugins/absorb/handlers/board-approval.ts +4 -2
  1077. package/plugins/absorb/plugin.json +11 -0
  1078. package/plugins/absorb/plugin.yaml +6 -2
  1079. package/plugins/absorb/sims/absorb-demo-world.yaml +3 -1
  1080. package/plugins/absorb/skills/absorb/build/SKILL.md +5 -1
  1081. package/plugins/architecture-deliverables/README.md +47 -0
  1082. package/plugins/architecture-deliverables/examples/input-sample.json +5 -0
  1083. package/plugins/architecture-deliverables/examples/legacy-finished-input.json +5 -0
  1084. package/plugins/architecture-deliverables/examples/structured-general.json +204 -0
  1085. package/plugins/architecture-deliverables/examples/structured-ticketing-gcp.json +210 -0
  1086. package/plugins/architecture-deliverables/graphs/architecture-deliverables.yaml +19 -0
  1087. package/plugins/architecture-deliverables/graphs/recipes.yaml +12 -0
  1088. package/plugins/architecture-deliverables/plugin.json +108 -0
  1089. package/plugins/architecture-deliverables/references/official-gcp-icon-data.json +1 -0
  1090. package/plugins/architecture-deliverables/references/official-gcp-icons.json +193 -0
  1091. package/plugins/architecture-deliverables/references/structured-design.schema.json +375 -0
  1092. package/plugins/architecture-deliverables/references/structured-template.css +1 -0
  1093. package/plugins/demo-brief-to-requirements/README.md +20 -0
  1094. package/plugins/demo-brief-to-requirements/examples/absorb-ticketing-records.json +20 -0
  1095. package/plugins/demo-brief-to-requirements/examples/ticketing-brief.json +20 -0
  1096. package/plugins/demo-brief-to-requirements/graphs/brief-to-requirements.yaml +10 -0
  1097. package/plugins/demo-brief-to-requirements/graphs/recipes.yaml +3 -0
  1098. package/plugins/demo-brief-to-requirements/graphs/scene4-architecture.yaml +15 -0
  1099. package/plugins/demo-brief-to-requirements/plugin.json +31 -0
  1100. package/plugins/demo-brief-to-requirements/references/input-contract.md +5 -0
  1101. package/plugins/gcp-architect-expand/README.md +23 -3
  1102. package/plugins/gcp-architect-expand/demo/BOARD-HANDOFF.md +17 -0
  1103. package/plugins/gcp-architect-expand/demo/KCB-SCENE5-RECORDING-SCRIPT.md +30 -0
  1104. package/plugins/gcp-architect-expand/demo/SOLAR-HANDOFF.md +93 -0
  1105. package/plugins/gcp-architect-expand/demo/brief-3-lines.ko.txt +3 -0
  1106. package/plugins/gcp-architect-expand/demo/classic-pty-live-ab56-receipt.json +52 -0
  1107. package/plugins/gcp-architect-expand/demo/classic-pty-seam-receipt.json +21 -0
  1108. package/plugins/gcp-architect-expand/demo/classic-pty-toolsearch-stack-receipt.json +24 -0
  1109. package/plugins/gcp-architect-expand/demo/fixtures/advanced-requirement.json +19 -0
  1110. package/plugins/gcp-architect-expand/demo/fixtures/pressure.json +8 -0
  1111. package/plugins/gcp-architect-expand/demo/fixtures/ticketing-design.json +21 -0
  1112. package/plugins/gcp-architect-expand/demo/graph-direct-test-world-receipt.json +114 -0
  1113. package/plugins/gcp-architect-expand/demo/scene4-json-bridge-test-receipt.json +119 -0
  1114. package/plugins/gcp-architect-expand/demo/security-defaults.json +6 -0
  1115. package/plugins/gcp-architect-expand/demo/solar-original-retest-receipt.json +182 -0
  1116. package/plugins/gcp-architect-expand/demo/structured-assumption-regression-receipt.json +182 -0
  1117. package/plugins/gcp-architect-expand/graph.yaml +52 -20
  1118. package/plugins/gcp-architect-expand/output-contract.json +31 -0
  1119. package/plugins/gcp-architect-expand/plugin.json +77 -2
  1120. package/plugins/gcp-architect-expand/recipes.yaml +12 -6
  1121. package/plugins/gcp-architect-expand/sim/assets/README.md +12 -0
  1122. package/plugins/gcp-architect-expand/sim/assets/cloud-storage.png +0 -0
  1123. package/plugins/gcp-architect-expand/sim/assets/compute-engine.png +0 -0
  1124. package/plugins/gcp-architect-expand/sim/assets/observability.png +0 -0
  1125. package/plugins/gcp-architect-expand/sim/assets/security-identity.png +0 -0
  1126. package/plugins/gcp-architect-expand/sim/sample-output/architecture-design.html +46 -0
  1127. package/plugins/gcp-architect-expand/sim/sample-output/architecture-design.pdf +0 -0
  1128. package/plugins/gcp-architect-expand/sim/sample-output/architecture.excalidraw +2638 -0
  1129. package/plugins/gcp-architect-expand/sim/sample-output/architecture.png +0 -0
  1130. package/plugins/gcp-architect-expand/sim/sample-output/board-attachments.json +45 -0
  1131. package/plugins/gcp-architect-expand/sim/sample-output/demo-result.json +22 -0
  1132. package/plugins/gcp-architect-expand/sim/sample-output/fake-world.json +46 -0
  1133. package/plugins/gcp-architect-expand/sim/sample-output/icon-provenance.json +14 -0
  1134. package/plugins/gcp-architect-expand/sim/sample-output/proposal.json +97 -0
  1135. package/plugins/gcp-architect-expand/tiered-graph.yaml +39 -0
  1136. package/plugins/graph-instance-view/evidence/pty-resource-screen.txt +31 -0
  1137. package/plugins/graph-instance-view/handlers/http-get.ts +22 -0
  1138. package/plugins/graph-instance-view/handlers/project-ledgers.ts +216 -0
  1139. package/plugins/graph-instance-view/handlers/render-terminal.ts +109 -0
  1140. package/plugins/graph-instance-view/handlers/view-model.ts +49 -0
  1141. package/plugins/graph-instance-view/plugin.yaml +16 -0
  1142. package/plugins/graph-instance-view/skills/read/SKILL.md +6 -0
  1143. package/plugins/invest-arg/recipes/notes-to-pack.yaml +10 -0
  1144. package/plugins/kr-flow-composites/plugin.json +1 -0
  1145. package/plugins/release-win-smoke/graphs/release-win-smoke.yaml +19 -0
  1146. package/plugins/release-win-smoke/plugin.json +46 -0
  1147. package/plugins/release-win-smoke/plugin.yaml +11 -0
  1148. package/plugins/release-win-smoke/sims/release-win-smoke.yaml +9 -0
  1149. package/plugins/release-win-smoke/skills/install/SKILL.md +3 -0
  1150. package/scripts/cycle-fired-judge.ts +8 -7
  1151. package/scripts/gcp-architect-expand/demo/design-result.ts +96 -0
  1152. package/scripts/gcp-architect-expand/demo/export-local-pressure.ts +15 -0
  1153. package/scripts/gcp-architect-expand/demo/pressure-input.ts +37 -0
  1154. package/scripts/gcp-architect-expand/demo/propose.ts +60 -0
  1155. package/scripts/gcp-architect-expand/demo/render-scene5-fallback.py +234 -0
  1156. package/scripts/gcp-architect-expand/demo/run-graph-test-world.ts +141 -0
  1157. package/scripts/gcp-architect-expand/demo/run.py +97 -0
  1158. package/scripts/gcp-architect-expand/demo/tui.py +153 -0
  1159. package/scripts/gcp-architect-expand/sim/build-sample.py +336 -0
  1160. package/scripts/gcp-architect-expand/sim/fake-world.ts +95 -0
  1161. package/scripts/gcp-architect-expand/sim/run-tiered-design.ts +91 -0
  1162. package/scripts/guardian-placement-shadow.ts +23 -0
  1163. package/scripts/heal/run-role.ts +21 -20
  1164. package/scripts/hq/cron-git-credential-audit.ts +200 -0
  1165. package/scripts/hq/hq-runaway-watch.ts +117 -0
  1166. package/scripts/lib/front-route-measurement.ts +1 -4
  1167. package/scripts/llm-cost-ledger.ts +9 -10
  1168. package/scripts/load/members-signup-burst.ts +5 -4
  1169. package/scripts/measure-key-arrival.ts +2 -4
  1170. package/scripts/measure-nl-routing-corpus.ts +1 -1
  1171. package/scripts/next-tui-default-sim.ts +43 -0
  1172. package/scripts/plugin-only-ratchet.ts +39 -14
  1173. package/scripts/release-loop/adaptive-gate-heal-adapter.ts +8 -7
  1174. package/scripts/release-loop/adaptive-gate-heal.ts +13 -7
  1175. package/scripts/release-loop/cloud-elastic-node.ts +454 -0
  1176. package/scripts/release-loop/cloud-lease-deadline.ts +14 -0
  1177. package/scripts/release-loop/cut-branch.ts +6 -0
  1178. package/scripts/release-loop/gate-closure.ts +12 -22
  1179. package/scripts/release-loop/gate-contract-surfaces.json +2 -0
  1180. package/scripts/release-loop/gate-cutover-switch-node.ts +12 -2
  1181. package/scripts/release-loop/gate-file-receipts.ts +10 -2
  1182. package/scripts/release-loop/gate-image-pin.ts +31 -3
  1183. package/scripts/release-loop/gate-node-sim.ts +5 -3
  1184. package/scripts/release-loop/gate-repair-node.ts +24 -0
  1185. package/scripts/release-loop/gate-runtime.ts +62 -14
  1186. package/scripts/release-loop/gate-shard-artifacts.ts +3 -1
  1187. package/scripts/release-loop/gate-shard-dispatch.ts +6 -2
  1188. package/scripts/release-loop/gate-triage-node.ts +1 -0
  1189. package/scripts/release-loop/resume.ts +6 -0
  1190. package/scripts/release-loop/runner-release-node-commands.ts +60 -0
  1191. package/scripts/release-loop/unattended-release.ts +10 -34
  1192. package/scripts/release-loop/version-node.ts +26 -99
  1193. package/scripts/solar-optimize-measure.ts +131 -0
  1194. package/scripts/ux/kcb-phone-rehearsal.ts +90 -0
  1195. package/scripts/ux-sim/openrouter-bare-first-run-no-network.ts +12 -0
  1196. package/scripts/ux-sim/openrouter-bare-first-run-pty.exp +35 -0
  1197. package/scripts/ux-sim/openrouter-first-run-pty.ts +32 -0
  1198. package/skills/diagram-master/references/engines/excalidraw/render_template.html +1 -1
  1199. package/skills/diagram-master/references/uv.lock +11 -8
  1200. package/skills/lecture-note-digitizer/references/convert_to_pdf.py +1 -0
  1201. package/src/agent/autonomous-tools.ts +5 -30
  1202. package/src/agent/self-ambient.ts +2 -2
  1203. package/src/agent-mission/cli-consumer.ts +165 -0
  1204. package/src/agent-substrate/review-cap-policy.ts +78 -0
  1205. package/src/agent-substrate/review-round-design-trigger.ts +89 -0
  1206. package/src/agent-substrate/self-review-cli.ts +158 -43
  1207. package/src/auth/setup-link-tokens.ts +12 -1
  1208. package/src/auto-research/auto-mode/context-keys-bridge.ts +2 -2
  1209. package/src/boot/daemon-prompt-turn.ts +2 -0
  1210. package/src/boot/daemon-tools/index.ts +2 -12
  1211. package/src/boot/daemon-tools/tool-catalog-observability.ts +21 -0
  1212. package/src/cft/andon-context-bridge.ts +2 -2
  1213. package/src/chat/internal-turn-contract.ts +20 -0
  1214. package/src/chat/solar-scene5-context.ts +1 -4
  1215. package/src/cli/agent-cli.ts +3 -1
  1216. package/src/cli/app-cli.ts +24 -2
  1217. package/src/cli/first-run/onboarding-pty-fixture.ts +34 -0
  1218. package/src/cli/first-run/openrouter-key-supply.ts +139 -0
  1219. package/src/cli/first-run/openrouter-picker.ts +19 -0
  1220. package/src/cli/msg-cli.ts +42 -4
  1221. package/src/cli/pr-cli.ts +199 -11
  1222. package/src/cli/release-cli.ts +39 -18
  1223. package/src/cli/release-manual-seat-claim.ts +108 -0
  1224. package/src/cli/resource-ledger-cli.ts +11 -4
  1225. package/src/cli/root-tui-entry.ts +4 -4
  1226. package/src/cli/seat-cli.ts +2 -2
  1227. package/src/cli/self-update.ts +25 -5
  1228. package/src/cli/setup-cli.ts +3 -1
  1229. package/src/cli/setup-keys.ts +68 -5
  1230. package/src/cli/sim-cli.ts +21 -8
  1231. package/src/cli/task-plugin-wizard-host.ts +2 -2
  1232. package/src/context-bus/context-now.ts +28 -15
  1233. package/src/context-bus/long-term-memory.ts +4 -1
  1234. package/src/context-bus/release-tui-status.ts +9 -0
  1235. package/src/conv-substrate/surface-detail.ts +19 -0
  1236. package/src/core-turn/provider-stop-reason.ts +6 -0
  1237. package/src/core-turn/run-core-turn.ts +7 -1
  1238. package/src/core-turn/types.ts +2 -0
  1239. package/src/dashboard/boot-timing.ts +1 -35
  1240. package/src/dashboard/classic-sidetab-mission-job.ts +3 -308
  1241. package/src/dashboard/classic-sidetab-mission-reconcile.ts +3 -212
  1242. package/src/dashboard/classic-sidetab-mission.ts +3 -20
  1243. package/src/dashboard/event-loop-stall-monitor.ts +1 -58
  1244. package/src/dashboard/index.ts +56 -86
  1245. package/src/dashboard/input/chat-main-plain-turn-runtime.ts +15 -0
  1246. package/src/dashboard/input/chat-main-submit-route.ts +0 -17
  1247. package/src/dashboard/input/goal-continue.ts +18 -220
  1248. package/src/dashboard/input/internal-turn.ts +19 -255
  1249. package/src/dashboard/input/turn-typeahead-prompt.ts +7 -31
  1250. package/src/dashboard/mission-cli-consumer.ts +2 -165
  1251. package/src/dashboard/seat-boot-preamble.ts +15 -428
  1252. package/src/dashboard/setup-inline.ts +14 -147
  1253. package/src/dashboard/sidetab-runtime.ts +2 -1
  1254. package/src/dashboard/skill-catalog-preamble.ts +6 -101
  1255. package/src/dashboard/slash-runtime/dashboard-handlers.ts +2 -3
  1256. package/src/dashboard/slash-runtime/registry.ts +1 -160
  1257. package/src/dashboard/term-slash-runtime.ts +1 -277
  1258. package/src/dashboard/terminal/session.ts +7 -35
  1259. package/src/dashboard/tui-400-runtime-adapter.ts +11 -0
  1260. package/src/dashboard/turn-start-segments.ts +16 -222
  1261. package/src/debug/log.ts +20 -4
  1262. package/src/display/dashboard-frame.ts +74 -0
  1263. package/src/display/essential-frame-cursor.ts +26 -0
  1264. package/src/display/events.ts +2 -4
  1265. package/src/esc-abort-gate.ts +1 -13
  1266. package/src/esc-shell-timing.ts +14 -0
  1267. package/src/event-loop-stall-monitor.ts +58 -0
  1268. package/src/exec-requests/planner.ts +10 -6
  1269. package/src/graph-runner/architecture-deliverables.ts +43 -0
  1270. package/src/graph-runner/architecture-output/pdf-body.ts +14 -0
  1271. package/src/graph-runner/architecture-output/run-step.ts +321 -0
  1272. package/src/graph-runner/architecture-output/structured-design.ts +201 -0
  1273. package/src/graph-runner/arg-feedback-consumer.ts +58 -0
  1274. package/src/graph-runner/arg-feedback-lifecycle.ts +312 -0
  1275. package/src/graph-runner/arg-open-proposal.ts +1 -4
  1276. package/src/graph-runner/arg-supervisor.ts +225 -78
  1277. package/src/graph-runner/briefing-requirements/convert.ts +79 -0
  1278. package/src/graph-runner/briefing-requirements/run-step.ts +20 -0
  1279. package/src/graph-runner/capabilities.ts +91 -2
  1280. package/src/graph-runner/capability-providers/architecture-deliverables.ts +51 -0
  1281. package/src/graph-runner/graph-cli.ts +76 -1
  1282. package/src/graph-runner/graph-events.ts +66 -2
  1283. package/src/graph-runner/graph-run-event-ledger.ts +102 -0
  1284. package/src/graph-runner/graph-run-msg-subscriptions.ts +84 -0
  1285. package/src/graph-runner/graph-subscriptions.ts +2 -2
  1286. package/src/graph-runner/in-process-registry.ts +2 -0
  1287. package/src/graph-runner/runner-types.ts +12 -0
  1288. package/src/graph-runner/runner.ts +343 -105
  1289. package/src/graph-runner/scene4-turn-policy.ts +68 -0
  1290. package/src/graph-runner/ticketing-scene4.ts +150 -0
  1291. package/src/graph-v2/input-bindings.ts +81 -0
  1292. package/src/graph-v2/lower.ts +2 -1
  1293. package/src/guardian/placement-shadow.ts +332 -0
  1294. package/src/harness/harness-cli-command.ts +2 -2
  1295. package/src/hq/promote.ts +1 -0
  1296. package/src/index.ts +37 -15
  1297. package/src/input-core/mode-context-bridge.ts +2 -2
  1298. package/src/instance/spawn-elanous.ts +10 -0
  1299. package/src/intelligence-map/budget-context-bridge.ts +2 -2
  1300. package/src/intelligence-map/model-catalog.ts +36 -0
  1301. package/src/intelligence-map/types.ts +1 -0
  1302. package/src/knowledge/notes-to-pack.ts +117 -0
  1303. package/src/knowledge/query.ts +88 -1
  1304. package/src/knowledge/tools/knowledge-query.ts +77 -10
  1305. package/src/llm.ts +99 -20
  1306. package/src/loops/graph-trigger-dispatch.ts +77 -3
  1307. package/src/loops/host-reservation-watch.ts +196 -0
  1308. package/src/loops/loop-scheduler.ts +72 -0
  1309. package/src/loops/loops-table.ts +77 -0
  1310. package/src/loops/msg-address.ts +5 -1
  1311. package/src/loops/msg-wake.ts +8 -2
  1312. package/src/loops/observe.ts +15 -2
  1313. package/src/loops/orchestrator/ready-queue.ts +113 -0
  1314. package/src/loops/orchestrator/tick.ts +31 -4
  1315. package/src/maturity/feature-maturity.ts +2 -2
  1316. package/src/mcp/server.ts +15 -3
  1317. package/src/memory.ts +17 -15
  1318. package/src/model-tier/llm-tier-map.ts +12 -0
  1319. package/src/msg/msg-store.ts +40 -18
  1320. package/src/msg/outbound-guard-world.ts +14 -0
  1321. package/src/mss/logging/record.ts +3 -0
  1322. package/src/native-tool-catalog.ts +15 -32
  1323. package/src/nexus/api/board-api.ts +2 -1
  1324. package/src/nexus/api/graph-run-events.ts +68 -0
  1325. package/src/nexus/api/http-server.ts +34 -2
  1326. package/src/nexus/api/meta-api.ts +2 -0
  1327. package/src/nexus/api/public-routes.ts +8 -0
  1328. package/src/nexus/api/resource-ledger.ts +29 -3
  1329. package/src/nexus/api/setup-child-llm.ts +1 -1
  1330. package/src/nexus/api/setup-credentials.ts +2 -4
  1331. package/src/nexus/api/setup-llm-provider.ts +1 -1
  1332. package/src/nexus/apps/app-api-contract-check.ts +45 -0
  1333. package/src/nexus/apps/app-storage.ts +39 -0
  1334. package/src/nexus/config/secrets/cred-owner.ts +15 -7
  1335. package/src/nexus/index.ts +0 -50
  1336. package/src/nexus/members/kcb-try-deadline.ts +20 -0
  1337. package/src/nexus/members/kcb-try.ts +55 -0
  1338. package/src/nexus/members/member-store.ts +151 -7
  1339. package/src/nexus/members/members-api.ts +69 -5
  1340. package/src/oauth/codex-owner-mirror.ts +49 -16
  1341. package/src/oauth/codex.ts +15 -22
  1342. package/src/onboarding/first-run.ts +64 -7
  1343. package/src/onboarding/non-interactive.ts +1 -0
  1344. package/src/onboarding/openrouter-model-picker.ts +78 -0
  1345. package/src/onboarding.ts +66 -23
  1346. package/src/plan-mode/context-bridge.ts +2 -2
  1347. package/src/plugins/core/declared-handler.ts +38 -0
  1348. package/src/plugins/core/feature-entitlements.ts +24 -0
  1349. package/src/plugins/core/host.ts +51 -3
  1350. package/src/plugins/core/manifest.ts +38 -2
  1351. package/src/plugins/core/plugin-yaml.ts +2 -1
  1352. package/src/plugins/install/plugin-install.ts +340 -13
  1353. package/src/prompt-library/providers/solar.ts +17 -0
  1354. package/src/prompt-library/registry.ts +3 -1
  1355. package/src/provenance/provenance.ts +111 -0
  1356. package/src/pwa/touch-input-mapper.ts +1 -1
  1357. package/src/release-loop/checklist.ts +42 -3
  1358. package/src/release-loop/cloud-elastic.ts +179 -0
  1359. package/src/release-loop/gate-shards.ts +11 -2
  1360. package/src/release-loop/macrophage-safe-cleanup.ts +12 -2
  1361. package/src/release-loop/outbound-guard-world.ts +16 -0
  1362. package/src/release-loop/rehearsal.ts +4 -2
  1363. package/src/release-loop/release-schedule.ts +28 -0
  1364. package/src/repl/index.ts +39 -10
  1365. package/src/resource-ledger/host-readiness.ts +82 -5
  1366. package/src/resource-ledger/resource-ledger.ts +143 -3
  1367. package/src/seat/seat-boot-preamble.ts +428 -0
  1368. package/src/seat-loop/seat-loop.ts +9 -4
  1369. package/src/selector.ts +1 -1
  1370. package/src/self-dev/entrance-registry.ts +1 -2
  1371. package/src/self-dev/shard-run.ts +4 -3
  1372. package/src/self-implement/gate-remote.ts +7 -6
  1373. package/src/self-implement/goal-author.ts +4 -6
  1374. package/src/self-implement/graph-yaml.ts +23 -2
  1375. package/src/session/chat.ts +13 -21
  1376. package/src/session/index.ts +6 -0
  1377. package/src/session-runtime/tier-flip.ts +7 -0
  1378. package/src/setup/provider-options.ts +150 -0
  1379. package/src/shell-runner/terminal-host-facade.ts +1 -1
  1380. package/src/sidetab-core/classic-sidetab-mission-job.ts +308 -0
  1381. package/src/sidetab-core/classic-sidetab-mission-reconcile.ts +212 -0
  1382. package/src/sidetab-core/classic-sidetab-mission-result.ts +20 -0
  1383. package/src/sidetab-core/mission-cli-consumer.ts +2 -0
  1384. package/src/sidetab-core/model.ts +3 -0
  1385. package/src/sidetab-core/workspace-input.ts +135 -0
  1386. package/src/sim-world-device-catalog-history.json +601 -0
  1387. package/src/skills/runner.ts +4 -5
  1388. package/src/skills/skill-catalog-preamble.ts +101 -0
  1389. package/src/skills/tools/acp-session.ts +3 -3
  1390. package/src/skills/tools/agent.ts +34 -12
  1391. package/src/skills/tools/dashboard-state.ts +1 -1
  1392. package/src/skills/tools/dev-harness.ts +1 -1
  1393. package/src/skills/tools/msg-inbox.ts +43 -0
  1394. package/src/skills/tools/schedule-wakeup.ts +8 -2
  1395. package/src/skills/tools/terminal-modal-inject.ts +1 -1
  1396. package/src/skills/tools/terminal-modal.ts +1 -1
  1397. package/src/skills/url-router.ts +19 -2
  1398. package/src/slash/registry.ts +160 -0
  1399. package/src/steward/triage.ts +5 -1
  1400. package/src/supervision/incident-claim.ts +253 -0
  1401. package/src/supervision/silence-watch.ts +221 -0
  1402. package/src/surface/terminal-surface-intent.ts +125 -0
  1403. package/src/telegram-commands.ts +0 -58
  1404. package/src/telegram.ts +0 -39
  1405. package/src/term-slash-runtime.ts +277 -0
  1406. package/src/terminal/coding-agent.ts +1 -0
  1407. package/src/terminal/session-access.ts +31 -0
  1408. package/src/terminal/session-registry.ts +1 -1
  1409. package/src/terminal/tty-required.ts +16 -0
  1410. package/src/tool-hints/gate.ts +1 -0
  1411. package/src/tool-hints/signals.ts +7 -0
  1412. package/src/tool-hints/types.ts +1 -1
  1413. package/src/tool-runtime/dashboard-state-runtime.ts +1 -1
  1414. package/src/tool-runtime/dashboard-state-snapshot.ts +196 -0
  1415. package/src/tool-runtime/index.ts +0 -2
  1416. package/src/tool-runtime/ops-ledger-runtimes.ts +35 -3
  1417. package/src/tool-runtime/types.ts +2 -0
  1418. package/src/tui/boot-timing.ts +35 -0
  1419. package/src/tui/branches/now.ts +50 -9
  1420. package/src/tui/branches/remaining.ts +49 -0
  1421. package/src/tui/branches/sidetab/route.ts +23 -2
  1422. package/src/tui/chat/error-card.ts +10 -0
  1423. package/src/tui/chat/log-view.ts +11 -1
  1424. package/src/tui/chat/status-line.ts +133 -0
  1425. package/src/tui/chat/status-model.ts +16 -0
  1426. package/src/tui/core/agents.ts +33 -5
  1427. package/src/tui/core/entry-render.ts +46 -0
  1428. package/src/tui/core/registry.ts +13 -2
  1429. package/src/tui/core/render.ts +2 -1
  1430. package/src/tui/entry.ts +182 -68
  1431. package/src/tui/input/goal-continue.ts +220 -0
  1432. package/src/tui/input/internal-turn.ts +230 -0
  1433. package/src/tui/input-lag-probe.ts +1 -1
  1434. package/src/tui/persistent-user-memory.ts +11 -4
  1435. package/src/tui/sidetab/attach.ts +28 -5
  1436. package/src/tui/turn-start-segments.ts +222 -0
  1437. package/src/tui-client/fast-repl-child.ts +36 -0
  1438. package/src/tui-client/local-chat-turn.ts +14 -2
  1439. package/src/tui-client/next-dashboard-runtime.ts +3 -3
  1440. package/src/tui-client/next-loop-command.ts +2 -2
  1441. package/src/tui-client/next-wakeup.ts +1 -1
  1442. package/src/tui-client/sidetab-agent-pty.ts +50 -0
  1443. package/src/user-config/read.ts +3 -1
  1444. package/src/user-config/sparse-config.ts +2 -4
  1445. package/src/user-config/write.ts +2 -0
  1446. package/src/user-config.ts +28 -25
  1447. package/src/ux-sim/absorb-v2-runGraph-sim.ts +131 -38
  1448. package/src/ux-sim/architecture-deliverables/run-step.ts +156 -0
  1449. package/src/ux-sim/classic-tui-seat-scenarios.ts +3 -3
  1450. package/src/ux-sim/dashboard-event-loop-stall-monitor-device.ts +1 -1
  1451. package/src/ux-sim/delete-impact-sim.ts +205 -0
  1452. package/src/ux-sim/fake-bin.ts +26 -6
  1453. package/src/ux-sim/fake-cloud-vm.ts +72 -0
  1454. package/src/ux-sim/fake-llm.ts +69 -5
  1455. package/src/ux-sim/fake-member-oidc-world.ts +2 -0
  1456. package/src/ux-sim/fault-pod-codex-503.ts +16 -3
  1457. package/src/ux-sim/fault-tui-400-autoheal.ts +24 -15
  1458. package/src/ux-sim/fixtures/kaist-classic-pty-receipt.json +260 -0
  1459. package/src/ux-sim/fixtures/kcb-ticket-classic-pty-receipt.json +270 -0
  1460. package/src/ux-sim/fixtures/kcb-ticket-requirements-mapping.json +60 -0
  1461. package/src/ux-sim/gcp-architect-expand/architecture-input.ts +45 -0
  1462. package/src/ux-sim/gcp-architect-expand/consumer.ts +18 -0
  1463. package/src/ux-sim/gcp-architect-expand/detect-step.ts +16 -0
  1464. package/src/ux-sim/gcp-architect-expand/local-signals.ts +41 -0
  1465. package/src/ux-sim/gcp-architect-expand/output-contract.ts +100 -0
  1466. package/src/ux-sim/gcp-architect-expand/scene5-fake-provider.ts +191 -0
  1467. package/src/ux-sim/gcp-architect-expand/shared-deliverables.ts +39 -0
  1468. package/src/ux-sim/gcp-architect-expand/tiered-design.ts +211 -0
  1469. package/src/ux-sim/gcp-architect-expand/unimplemented.ts +6 -0
  1470. package/src/ux-sim/gcp-architect-expand/verify-step.ts +8 -0
  1471. package/src/ux-sim/goal-interim-trace.ts +2 -2
  1472. package/src/ux-sim/graph-event-entry-world.ts +28 -20
  1473. package/src/ux-sim/graph-trigger-hook-device.ts +1 -1
  1474. package/src/ux-sim/headless-tui.ts +1 -1
  1475. package/src/ux-sim/kaist-app-qr-sim.ts +53 -0
  1476. package/src/ux-sim/kaist-classic-pwa-browser-replay.ts +568 -0
  1477. package/src/ux-sim/kaist-classic-pwa-replay-world.ts +244 -0
  1478. package/src/ux-sim/kcb-phone-rehearsal.ts +38 -0
  1479. package/src/ux-sim/knowledge-pack-auto-select.ts +144 -0
  1480. package/src/ux-sim/next-tui-seat-scenarios.ts +167 -99
  1481. package/src/ux-sim/onboarding-first-run-device.ts +1 -1
  1482. package/src/ux-sim/outbound-guard-sim.ts +43 -10
  1483. package/src/ux-sim/pty-key-modifiers-device.ts +6 -4
  1484. package/src/ux-sim/release-day-0307-replay.ts +140 -43
  1485. package/src/ux-sim/rla-context-release-status-arrival-event.ts +2 -5
  1486. package/src/ux-sim/scenario-target.ts +143 -0
  1487. package/src/ux-sim/self-edge-byoc-sim.ts +216 -0
  1488. package/src/ux-sim/ta-land-count-dispatcher-sim.ts +5 -5
  1489. package/src/ux-sim/term-slash-device.ts +2 -2
  1490. package/src/ux-sim/tui-400-runtime-contract.ts +8 -0
  1491. package/src/ux-sim/world-regression-suite.ts +2 -0
  1492. package/src/version/packed-revision.json +1 -1
  1493. package/src/voice/intent-router/voice-to-surface-intent.ts +1 -1
  1494. package/src/workflow-runtime/daemon.ts +4 -0
  1495. package/src/workflow-runtime/nodes/bash.ts +6 -1
@@ -0,0 +1,1719 @@
1
+ // PWA · Nexus HTTP + SSE client (Phase N-4 PR ν)
2
+ //
3
+ // Pure (no React import) so unit tests can exercise the wire layer
4
+ // without a DOM. React hooks (use-nexus-state etc.) wrap this client
5
+ // in PR ξ.
6
+ //
7
+ // HTTP API:
8
+ // - getHealth() / getNexus() / getTabs() / getTab(id)
9
+ // - createTab() / deleteTab() / patchTab() / startTab() / stopTab() / restartTab()
10
+ // - getTemplates() / getTemplate(name) / saveTemplate()
11
+ // - getConfig() / getSwitches() / putSwitch() / postSecret() / deleteSecret()
12
+ //
13
+ // SSE: subscribeEvents({topics, onEvent}) returns an Unsubscribe function.
14
+
15
+ import { reportAuthRequired } from '../lib/auth-required';
16
+ import { debugLog } from '../lib/debug';
17
+ import type {
18
+ NexusHealth,
19
+ NexusSnapshot,
20
+ NexusTabKind,
21
+ NexusTabState,
22
+ NexusEvent,
23
+ } from './types';
24
+
25
+ const TASK_CARDS_PATH = '/v1/task-cards';
26
+
27
+ export interface CredentialSlotWire {
28
+ id: string;
29
+ label: string;
30
+ present: boolean;
31
+ lastCheckedAt: string | null;
32
+ registerable?: boolean;
33
+ registrationPath?: string | null;
34
+ healthStatus?: 'missing' | 'valid' | 'expiring' | 'expired' | 'insufficient-permission' | 'unmeasured';
35
+ healthLabel?: string;
36
+ }
37
+
38
+ export class NexusApiError extends Error {
39
+ constructor(
40
+ public readonly status: number,
41
+ public readonly path: string,
42
+ public readonly body: unknown,
43
+ ) {
44
+ super(`nexus ${status} on ${path}: ${stringify(body)}`);
45
+ this.name = 'NexusApiError';
46
+ }
47
+ }
48
+
49
+ export class MissingUpstreamError extends NexusApiError {
50
+ readonly nodes: string[];
51
+
52
+ constructor(path: string, body: { error: 'missing-upstream'; nodes: string[] }) {
53
+ super(400, path, body);
54
+ this.name = 'MissingUpstreamError';
55
+ this.nodes = body.nodes;
56
+ }
57
+ }
58
+
59
+ export class NexusTimeoutError extends Error {
60
+ constructor(public readonly path: string, public readonly timeoutMs: number) {
61
+ super(`NEXUS 가 ${timeoutMs / 1000}초 안에 답하지 않았습니다 (${path}) — 방금 켰다면 잠시 뒤 다시 시도하세요.`);
62
+ this.name = 'NexusTimeoutError';
63
+ }
64
+ }
65
+
66
+ function stringify(body: unknown): string {
67
+ try { return JSON.stringify(body); } catch { return String(body); }
68
+ }
69
+
70
+ // ── M1-2b · friction-free model selection wire types ─────────────────
71
+ //
72
+ // Mirror of `src/model-tier/types.ts` shaped for the PWA so we don't
73
+ // import across the package boundary (apps/pwa tsconfig doesn't see
74
+ // parent src/). Drift kept in sync by `model-tier-spec.ts` mirror
75
+ // tests.
76
+
77
+ export type ModelTierWire = 'budget' | 'balanced' | 'better' | 'best' | 'loaded';
78
+
79
+ export interface ModelTierUserConfigWire {
80
+ profile?: 'casual' | 'power' | 'custom';
81
+ preset?: string;
82
+ voice?: { stt?: ModelTierWire; tts?: ModelTierWire };
83
+ llm?: ModelTierWire;
84
+ embedding?: ModelTierWire;
85
+ vision?: ModelTierWire;
86
+ }
87
+
88
+ export interface BudgetUserConfigWire {
89
+ monthlyUsdCap?: number;
90
+ dailyUsdCap?: number;
91
+ fallbackTier?: ModelTierWire;
92
+ notifyAtPct?: number;
93
+ }
94
+
95
+ export interface SmartDefaultsUserConfigWire {
96
+ autoSuggest?: boolean;
97
+ suppressPatternHints?: boolean;
98
+ }
99
+
100
+ export interface ModelTierPutWire {
101
+ modelTier?: ModelTierUserConfigWire | null;
102
+ budget?: BudgetUserConfigWire | null;
103
+ smartDefaults?: SmartDefaultsUserConfigWire | null;
104
+ }
105
+
106
+ export interface WishPlacementWire {
107
+ cellId: string;
108
+ cellTitle: string;
109
+ version: string;
110
+ status: 'green' | 'yellow' | 'red' | 'done';
111
+ }
112
+
113
+ export interface TaskCardWire {
114
+ id: string;
115
+ goalId: string;
116
+ title: string;
117
+ status: 'open' | 'closed';
118
+ closedReason?: string;
119
+ createdAt: string;
120
+ sections: Array<{ key: string; owner: string; content: string; createdAt: string }>;
121
+ }
122
+
123
+ export interface NexusClientOpts {
124
+ baseUrl: string;
125
+ /** Test seam — defaults to globalThis.fetch. */
126
+ fetchImpl?: typeof fetch;
127
+ /** Bearer credential sent on every request when present. */
128
+ token?: string;
129
+ /** Default request timeout (ms). 0 = no timeout. Default 8000. */
130
+ timeoutMs?: number;
131
+ }
132
+
133
+ export interface NexusClient {
134
+ readonly baseUrl: string;
135
+ // ---- read ----
136
+ getHealth(): Promise<NexusHealth>;
137
+ getCredentialSlots(): Promise<{ credentials: CredentialSlotWire[] }>;
138
+ startOpenRouterOAuth(): Promise<{ authorizationUrl: string }>;
139
+ listOpenRouterImportCandidates(): Promise<{ candidates: Array<{ id: string; name: string; source: string; lastFour: string }> }>;
140
+ importOpenRouterCandidate(id: string): Promise<{ saved: true; verification: 'verified'; lastFour: string }>;
141
+ createCredentialRegistrationLink(slot: string): Promise<{ slot: string; url: string; expiresAt: number }>;
142
+ revokeCredentialRegistrationLink(token: string): Promise<{ revoked: true }>;
143
+ claimCredentialRegistrationLink(token: string): Promise<{ slot: string; label: string; setupUrl: string; bearer: string; expiresAt: number }>;
144
+ submitCredentialRegistration(slot: string, bearer: string, value: string): Promise<{ saved: true; slot: string; verification: 'verified' }>;
145
+ registerCredentialSlot(slot: string, value: string): Promise<{ saved: true; slot: string; verification: 'verified' }>;
146
+ getNexus(): Promise<NexusSnapshot>;
147
+ getTabs(opts?: { kind?: NexusTabKind }): Promise<{ tabs: NexusTabState[] }>;
148
+ getTab(id: string): Promise<{ tab: NexusTabState; recentEvents: NexusEvent[] }>;
149
+ getTaskCards(): Promise<{ cards: TaskCardWire[] }>;
150
+ getTaskCard(id: string): Promise<{ card: TaskCardWire; placements?: WishPlacementWire[] }>;
151
+ closeTaskCard(id: string, reason: string): Promise<{ card: TaskCardWire }>;
152
+ /** PWA mirror PR 1 — chat-backend Quick Setup snapshot. PR 2's
153
+ * QuickSetupCard component consumes this to mirror the TUI Settings
154
+ * card on mobile / iOS / remote PWA users. Cache-free; the PWA's
155
+ * refresh button fires this fresh each time. */
156
+ getChatBackendDetection(): Promise<ChatBackendDetection>;
157
+ /** T4.D — mint a copy-friendly bearer token for paste-on-other-device. */
158
+ mintConnectToken(): Promise<MintConnectToken>;
159
+ // ---- mutation: tabs ----
160
+ createTab(body: CreateTabBody): Promise<{ tab: NexusTabState; started: boolean }>;
161
+ deleteTab(id: string): Promise<{ deleted: true; id: string }>;
162
+ patchTab(id: string, body: { label?: string }): Promise<{ tab: NexusTabState }>;
163
+ startTab(id: string): Promise<{ tab: NexusTabState; started: boolean }>;
164
+ stopTab(id: string, opts?: { graceMs?: number }): Promise<{ tab: NexusTabState; stopped: true }>;
165
+ restartTab(id: string, opts?: { graceMs?: number }): Promise<{ tab: NexusTabState; restarted: true; started: boolean }>;
166
+ // ---- templates ----
167
+ getTemplates(): Promise<{ templates: TemplateSummary[] }>;
168
+ getTemplate(name: string): Promise<{ template: NexusTemplate }>;
169
+ saveTemplate(body: SaveTemplateBody): Promise<{ saved: true; name: string; path?: string }>;
170
+ // ---- plugins market (daemon-verified reads and owner-only mutations) ----
171
+ getPluginsIndex(): Promise<MarketIndexResponse>;
172
+ getInstalledPlugins(): Promise<InstalledPluginWire[]>;
173
+ getWizardPlugins(): Promise<{ plugins: WizardPluginWire[] }>;
174
+ saveWizardPlugin(body: { name: string; draft: WizardDraftWire; regenerate?: boolean }): Promise<{ name: string; saved: true }>;
175
+ refreshPluginMarket(name: string): Promise<{ ok: boolean; plugins?: MarketPluginWire[]; reason?: string }>;
176
+ installMarketPlugin(spec: string, acceptedCapabilities: string[], onLine: (line: string) => void): Promise<void>;
177
+ removeMarketPlugin(name: string): Promise<{ removed: number }>;
178
+ getPluginCredentials(name: string): Promise<PluginCredentialsStatus>;
179
+ putPluginCredentials(name: string, fields: Record<string, string | null>): Promise<{ set: string[] }>;
180
+ // ---- harness execution graphs (core read-only · mine editable) ----
181
+ getRunGraphs(): Promise<{ graphs: RunGraphSummary[] }>;
182
+ getRunGraph(id: string): Promise<RunGraphDetail>;
183
+ /** Server-flattened read-only view of graph unit calls. Keeps `/yaml` as editable source. */
184
+ getRunGraphFlat?(id: string): Promise<RunGraphDetail>;
185
+ getRunGraphYaml(id: string): Promise<{ id: string; source: 'core' | 'mine'; editable: boolean; yaml: string; steps?: GraphWizardSteps }>;
186
+ getRunGraphAccess(id: string): Promise<{ grants: Array<{ recipient: string; permission: 'view' | 'edit' }> }>;
187
+ putRunGraphAccess(id: string, recipient: string, permission: 'view' | 'edit'): Promise<{ recipient: string; permission: 'view' | 'edit' }>;
188
+ /** `steps` (GRAPH-WIZARD-SAVE-RECIPES) — the wizard's node → library step map; the server validates it and builds the run commands itself. */
189
+ putRunGraphYaml(id: string, yaml: string, steps?: GraphWizardSteps): Promise<{ id: string; source: 'mine'; editable: true; saved: true; version?: number; previous?: number | null }>;
190
+ /** Create a «mine» run graph: 409 when the id exists, 403 for a core id, 400/422 for a bad id or an invalid graph. */
191
+ createRunGraph(id: string, yaml: string, steps?: GraphWizardSteps): Promise<{ id: string; source?: 'mine'; editable?: true; version?: number; previous?: number | null }>;
192
+ /** CGE-RUN — operator-only demo run of a «mine» graph (repository recipes only). */
193
+ startRunGraphRun(id: string): Promise<{ id: string; runId: string; demo?: boolean }>;
194
+ getRunGraphRun(id: string, runId: string): Promise<unknown>;
195
+ /** W9c — owner-only: approve the exact peer-edited version a run refusal named (409 when a newer peer save exists). */
196
+ approveRunGraph(id: string, version: string): Promise<{ id: string; approved: true; version: string }>;
197
+ cloneRunGraph(id: string, newId: string): Promise<{ id: string; source: 'mine'; editable: true; clonedFrom: string }>;
198
+ getGraphKinds(graph: 'workflow' | 'harness'): Promise<{ kinds: GraphKindEntry[] }>;
199
+ validateGraph(graph: 'workflow' | 'harness', yaml: string): Promise<GraphValidationResponse>;
200
+ /** GRAPH-WIZARD — «말로 만들기»: prompt (+ current canvas YAML and recent turns) → a validated graph draft.
201
+ * A 422 draft (ok:false) is returned, not thrown, so the canvas can still show it with its issues.
202
+ * Optional on the interface so hand-rolled test clients need not stub it; `createNexusClient` always has it. */
203
+ graphWizard?(body: GraphWizardRequest, opts?: { signal?: AbortSignal }): Promise<GraphWizardResponse>;
204
+ getGraphWizardPacks?(): Promise<{ packs: Array<{ id: string; title: string }> }>;
205
+ // ---- workflows (Archon-port T2.3) ----
206
+ getWorkflows(): Promise<{ workflows: WorkflowSummary[] }>;
207
+ getWorkflow(name: string): Promise<WorkflowDetail>;
208
+ getWorkflowHistory(name: string): Promise<WorkflowHistoryResponse>;
209
+ getWorkflowHistoryVersion(name: string, id: string): Promise<WorkflowHistoryVersionResponse>;
210
+ getWorkflowPins(name: string): Promise<WorkflowPinsResponse>;
211
+ putWorkflowPin(name: string, nodeId: string, value: unknown, note?: string): Promise<WorkflowPinResponse>;
212
+ deleteWorkflowPin(name: string, nodeId: string): Promise<{ workflow: string; removed: number }>;
213
+ saveWorkflow(name: string, body: SaveWorkflowBody): Promise<{ ok: true; path: string; scope: string }>;
214
+ deleteWorkflow(name: string, opts?: { scope?: 'project' | 'global' }): Promise<{ ok: true; path: string; scope: string }>;
215
+ validateWorkflow(yaml: string, opts?: { signal?: AbortSignal }): Promise<ValidateWorkflowResponse>;
216
+ /** ROADMAP Tier 1 W1 — natural-language → workflow YAML. */
217
+ generateWorkflow(body: GenerateWorkflowBody, opts?: { signal?: AbortSignal }): Promise<GenerateWorkflowResponse>;
218
+ /** Surface-unification §C1 (2026-05-11) — natural-language → workflow
219
+ * YAML + trigger via the R3 native skill (`workflow.synth_from_intent`).
220
+ * Richer than `generateWorkflow`: includes triggerSummary + name +
221
+ * preview/register modes + self-repair. */
222
+ synthesizeWorkflow(body: SynthesizeWorkflowBody, opts?: { signal?: AbortSignal }): Promise<SynthesizeWorkflowResponse>;
223
+ /** Surface-unification §E1 (2026-05-11) — flat inventory of every
224
+ * trigger node across the discovered workflows. Drives the PWA
225
+ * Active-triggers panel (E2). */
226
+ getTriggersSnapshot(opts?: { signal?: AbortSignal }): Promise<TriggerSnapshot>;
227
+ /** Surface-unification §F2 (2026-05-11) — starter workflow templates
228
+ * (raw YAML + parsed metadata) for the "+ New" picker. */
229
+ getWorkflowTemplates(opts?: { signal?: AbortSignal }): Promise<WorkflowTemplateList>;
230
+ runWorkflow(name: string, args: string, opts?: { dryRun?: boolean; onlyNode?: string; fromNode?: string; fromRunId?: string }): Promise<WorkflowRunStartResponse>;
231
+ getWorkflowRun(runId: string): Promise<WorkflowRunDetail>;
232
+ getWorkflowRuns(): Promise<{ runs: WorkflowRunSummary[] }>;
233
+ /** D4 · §6.4 SSE — URL for the workflow yaml fs.watch event stream.
234
+ * Used by `useWorkflows` to invalidate the cached list within
235
+ * <500ms of a disk yaml change (was 30s polling). Null when the
236
+ * client wasn't built with a base URL. */
237
+ workflowsEventsUrl(): string | null;
238
+ // §5.1 — approval surface
239
+ getPendingApprovals(): Promise<{ pending: PendingApproval[] }>;
240
+ approveRun(runId: string, body?: { response?: string }): Promise<{ ok: true; runId: string; decision: 'approved' }>;
241
+ rejectRun(runId: string, body?: { reason?: string }): Promise<{ ok: true; runId: string; decision: 'rejected' }>;
242
+ // ---- config + secrets ----
243
+ getConfig(): Promise<{ config: unknown }>;
244
+ getChatFastPath(): Promise<{ enabled: boolean }>;
245
+ getSwitches(): Promise<{ switches: SwitchWire[] }>;
246
+ getSwitch(id: string): Promise<{ switch: SwitchWire }>;
247
+ putSwitch(id: string, body: { value: unknown }): Promise<PutSwitchResult>;
248
+ postSecret(body: { id: string; value: string }): Promise<{ stored: true; id: string; ref: string }>;
249
+ deleteSecret(id: string): Promise<{ deleted: true; id: string }>;
250
+ getSecrets(): Promise<{ secrets: { id: string }[] }>;
251
+ /** M1-2b — friction-free model selection sub-trees (modelTier · budget ·
252
+ * smartDefaults). Returns each only when set; the PWA slider hydrates
253
+ * from this on mount to stay cross-device consistent. */
254
+ getModelTier(): Promise<{
255
+ modelTier?: ModelTierUserConfigWire;
256
+ budget?: BudgetUserConfigWire;
257
+ smartDefaults?: SmartDefaultsUserConfigWire;
258
+ }>;
259
+ /** M1-2b — partial PUT. Supplied sub-trees replace; omitted preserve;
260
+ * `null` clears. Echoes back the post-merge state from disk. */
261
+ putModelTier(body: ModelTierPutWire): Promise<{
262
+ modelTier?: ModelTierUserConfigWire;
263
+ budget?: BudgetUserConfigWire;
264
+ smartDefaults?: SmartDefaultsUserConfigWire;
265
+ }>;
266
+ /** BACKLOG #2 — connected/not-configured per integration channel. */
267
+ getPlatforms(): Promise<{ platforms: PlatformEntry[] }>;
268
+ // ---- /setup wizard (Phase 1 · 2026-05-19) ----
269
+ /** PWA `/setup` Phase 1 — LLM provider catalog for the first-boot
270
+ * picker. Server-authoritative (mirrors DASHBOARD_PROVIDER_SETUP_OPTIONS).
271
+ * `hasSavedKey` lets the UI render "already configured" hint without
272
+ * echoing the secret. */
273
+ getLlmProviders(): Promise<LlmProvidersResponse>;
274
+ /** PWA `/setup` Phase 1 — apply provider + apiKey. apiKey-flow + auto-
275
+ * flow only · codex / local surface 422 with TUI hint (Phase 1b). */
276
+ setLlmProvider(body: SetLlmProviderBody): Promise<SetLlmProviderResponse>;
277
+ getObsidianSkills(): Promise<ObsidianSkillsState>;
278
+ setObsidian(body: { vault: string }): Promise<{ ok: true; obsidian: { vault: string }; warning?: string }>;
279
+ setSkills(body: { activeSet: string } | { dirs: string[] }): Promise<{ ok: true; skills: { activeSet: string; dirs: string[] } }>;
280
+ getChannelBots(): Promise<ChannelBotsResponse>;
281
+ setChannelBot(body: ChannelBotSetBody): Promise<ChannelBotSetResponse>;
282
+ getChildLlmPreference(): Promise<ChildLlmPreferenceResponse>;
283
+ setChildLlmPreference(body: ChildLlmPreferenceBody): Promise<{ resolved: ChildLlmResolved }>;
284
+ getAnswerPriority(): Promise<AnswerPriorityResponse>;
285
+ setAnswerPriority(value: AnswerPriorityValue): Promise<{ value: AnswerPriorityValue }>;
286
+ // ---- /settings PersonaCard (Phase 3 · 2026-05-19) ----
287
+ /** §6.4 (existing) — list loaded personas + descriptions. */
288
+ getPersonas(): Promise<PersonasListResponse>;
289
+ getPersonaPresets(): Promise<PersonaPresetsResponse>;
290
+ createPersona(body: CreatePersonaBody): Promise<PersonaPatchResponse>;
291
+ patchPersona(id: string, edits: PersonaEdits): Promise<PersonaPatchResponse>;
292
+ /** Phase 3 — update description for a single persona. Surgical yaml
293
+ * edit (comments/custom keys preserved). Empty string clears. */
294
+ patchPersonaDescription(
295
+ personaId: string,
296
+ description: string,
297
+ ): Promise<PersonaPatchResponse>;
298
+ /** RFC #2161 Phase 3 — Layer A static catalog snapshot. Used by the
299
+ * Showroom dropdown + future LlmCatalogCard. Phase 5 sibling
300
+ * `getResolvedView()` will add live state on top. */
301
+ getRegistryCatalog(): Promise<RegistryCatalogResponse>;
302
+ /** BACKLOG #5 — active worktree visualization. */
303
+ getWorktrees(): Promise<WorktreesResponse>;
304
+ /** B4 — craft-rulebook verdict for the daemon's active repository. */
305
+ getDesignCheck(): Promise<DesignCheckResponse>;
306
+ /** Live 탭 — 런 원장. */
307
+ getHarnessRuns(): Promise<HarnessRunsResponse>;
308
+ /** HARNESS-RUN-LIVE-GRAPH — 도는 런 ⊕ `sinceMs` 이후 끝난 런(고르개). */
309
+ getHarnessRunsSince(sinceMs: number, options?: { includeLanded?: boolean }): Promise<HarnessRunsSinceResponse>;
310
+ /** HARNESS-RUN-LIVE-GRAPH — 런 하나의 노드 순서·결과·시각 ⊕ 여정 띠. */
311
+ getHarnessRunTraversal(runId: string): Promise<HarnessRunTraversal>;
312
+ /** R-SURFACE JSON v1: read-only plugin projection for graph, harness, release, or resources. */
313
+ getGraphInstanceView(query: { source: 'harness' | 'graph' | 'release' | 'resource'; runId?: string; graphId?: string }): Promise<unknown>;
314
+ /** Live 탭 — 로그 조회(최신순). `store` 는 다른 인스턴스 읽기 전용. */
315
+ getLogs(query: LogsQuery): Promise<LogsResponse>;
316
+ /** Live 탭 — 로그 저장소가 있는 인스턴스 목록. */
317
+ getLogInstances(): Promise<LogInstancesResponse>;
318
+ /** Live 탭 MAX — 하니스 상세 계측 스위치(🅢 #21452 · 소유자 토큰). */
319
+ getLiveDetail(): Promise<LiveDetailState>;
320
+ /** Live 탭 SHIPPED — GitHub 병합 PR 수(🅢 09-28 ① · 우주와 무관). 못 셌으면 `merged: null` ⊕ 이유. */
321
+ getLiveShipped(since: string): Promise<LiveShippedResponse>;
322
+ /** Trace 탭 — 판단 사슬(🅣 #21590 `GET /v1/trace`). 서버가 여러 우주를 모아 사슬·사실(PR·커밋·화면)을 붙여 준다. */
323
+ getTrace(query: TraceQuery): Promise<TraceResponse>;
324
+ /** Trace L4 — 로그 한 줄 원문(비밀 가림 · `ref = log:<우주>:<id>`). */
325
+ getTraceEvidence(ref: string): Promise<TraceEvidenceResponse>;
326
+ /** Live 탭 런 서랍 — 그 런의 화면 끝부분(`self screen --run` 과 같은 해석). */
327
+ getRunScreen(runId: string, lines?: number): Promise<RunScreenResponse>;
328
+ /** 하니스 런 멈춤(부드러운 멈춤 · 화면 키 = spaceId). */
329
+ stopHarness(spaceId: string): Promise<{ stopped?: string; error?: string }>;
330
+ setLiveDetail(body: { scope: string; ttlMin: number; by?: string }): Promise<LiveDetailState>;
331
+ /** RFC design loop §B — write the chosen direction into the same repository
332
+ * the design check reads (owner auth; same function as the CLI `--set`). */
333
+ setDesignDirection(id: string): Promise<SetDesignDirectionResponse>;
334
+ /** POST /v1/design-system — make a library system from a URL or a palette. */
335
+ createDesignSystem(body: CreateDesignSystemBody): Promise<CreateDesignSystemResponse>;
336
+ /** RFC design loop §A2 — HTML previews under the design-check repository. */
337
+ listDesignPreviews(): Promise<DesignPreviewsResponse>;
338
+ getDesignPreview(system: string): Promise<DesignPreviewDocument>;
339
+ /** HANDOFF §4.2 — GUI cleanup for worktrees + orphan sessions.
340
+ * Posts the path of a non-main worktree (or an orphaned session's
341
+ * worktreePath) to remove it. `force` runs `git worktree remove
342
+ * --force` for dirty checkouts. */
343
+ disposeWorktree(body: DisposeWorktreeBody): Promise<DisposeWorktreeResponse>;
344
+ // ---- log streaming ----
345
+ getLogsTail(id: string, opts?: { lines?: number }): Promise<LogsTailResult>;
346
+ // ---- SSE ----
347
+ subscribeEvents(opts: SubscribeOpts): Unsubscribe;
348
+ subscribeLogs(id: string, opts: SubscribeLogsOpts): Unsubscribe;
349
+ }
350
+
351
+ // ---- request bodies ----
352
+ export interface CreateTabBody {
353
+ kind: NexusTabKind;
354
+ id?: string;
355
+ label?: string;
356
+ kindOpts?: Record<string, unknown>;
357
+ start?: boolean;
358
+ }
359
+
360
+ export interface TemplateSummary {
361
+ name: string;
362
+ description: string;
363
+ source: 'builtin' | 'user';
364
+ tabCount: number;
365
+ }
366
+
367
+ export interface NexusTemplate {
368
+ version: number;
369
+ name: string;
370
+ description: string;
371
+ tabs: { kind: NexusTabKind; id?: string; label?: string; kindOpts?: Record<string, unknown>; start?: boolean }[];
372
+ }
373
+
374
+ export interface SaveTemplateBody {
375
+ name: string;
376
+ description?: string;
377
+ fromRegistry?: boolean;
378
+ tabs?: NexusTemplate['tabs'];
379
+ }
380
+
381
+ export interface GraphKindEntry {
382
+ graph: 'workflow' | 'harness';
383
+ kind: string;
384
+ plugin?: string | null;
385
+ description: string;
386
+ schema?: Record<string, unknown>;
387
+ core: boolean;
388
+ }
389
+
390
+ /** Node id → the wizard's library step (label · step · arg · retries). */
391
+ export type GraphWizardSteps = Record<string, { label?: string; step?: string; arg?: string; retries?: number }>;
392
+
393
+ export interface GraphWizardRequest {
394
+ prompt: string;
395
+ kind?: 'harness' | 'workflow';
396
+ /** The canvas as it stands — the wizard edits it instead of starting over. */
397
+ currentYaml?: string;
398
+ history?: Array<{ role: 'user' | 'assistant'; text: string }>;
399
+ packId?: string;
400
+ }
401
+
402
+ export interface GraphWizardResponse {
403
+ ok: boolean;
404
+ id?: string;
405
+ yaml?: string;
406
+ base?: string;
407
+ issues?: Array<string | { message: string; path?: string; nodeId?: string }>;
408
+ attempts?: number;
409
+ /** One line on what changed («노드 2개 추가 …»). */
410
+ summary?: string;
411
+ /** v2 (#24977) — Korean display names per node id («뉴스 수집»). Absent on older daemons. */
412
+ labels?: Record<string, string>;
413
+ /** v2 — why `base` was picked. */
414
+ baseReason?: string;
415
+ /** v2 — runnable steps / recipes.yaml text / dry-run walk (shown elsewhere; carried for completeness). */
416
+ steps?: GraphWizardSteps;
417
+ recipes?: string;
418
+ dryRun?: { status: string; path: string[] };
419
+ }
420
+
421
+ export interface GraphValidationResponse {
422
+ ok: boolean;
423
+ errors: Array<{ message: string; path?: string }>;
424
+ ignoredKeys: string[];
425
+ }
426
+
427
+ export interface WizardDraftWire {
428
+ description: string;
429
+ connectors?: Array<{ id: string; credentials?: Array<{ name: string }> }>;
430
+ skill?: { description: string; instructions: string; requires?: string[] };
431
+ }
432
+ export interface WizardPluginWire { name: string; description: string; draft: WizardDraftWire }
433
+
434
+ export interface MarketPluginWire {
435
+ name: string;
436
+ version: string;
437
+ description?: string;
438
+ category?: string;
439
+ capabilities: string[];
440
+ connectors: Array<{ id: string; kind: string; userConfig: Array<{ key: string; label: string; secret: boolean }> }>;
441
+ graphs?: string[];
442
+ pricing: { model: 'free' | 'one-time' | 'subscription'; amount?: number; currency?: string; period?: string };
443
+ sha256: string;
444
+ }
445
+ export interface MarketIndexResponse {
446
+ markets: Array<{ name: string; signature: 'ok' | 'missing' | 'unknown-key' | 'malformed' | 'stale'; detail?: string; plugins: MarketPluginWire[] }>;
447
+ }
448
+ export interface InstalledPluginWire { name: string; version: string; market: string; path: string; sha256: string | null; installedAt?: string }
449
+ export interface PluginCredentialsStatus { fields: Array<{ name: string; env: string; set: boolean }> }
450
+
451
+ // F-M1 — server-authoritative core graph snapshot; no mutation endpoints.
452
+ export interface RunGraphSummary {
453
+ id: string;
454
+ source: 'core' | 'mine';
455
+ editable: boolean;
456
+ nodeCount: number;
457
+ }
458
+
459
+ export interface RunGraphDetail {
460
+ id: string;
461
+ source: 'core' | 'mine';
462
+ editable: boolean;
463
+ graph_hash?: string;
464
+ entry_node: string;
465
+ terminal_nodes: string[];
466
+ nodes: Array<{ node_id: string; kind: string; recipe: string; max_visits: number; provenance?: { source?: string; type?: string; scene?: string; reason?: string; mock?: boolean } }>;
467
+ edges: Array<{
468
+ from: string;
469
+ to?: string;
470
+ on?: string;
471
+ map?: Record<string, string>;
472
+ fallback?: Array<{ node: string; requires: string[]; observed?: number }>;
473
+ }>;
474
+ }
475
+
476
+ // Archon-port T2.3 wire format — PWA `/workflows` (T2A) consumes these.
477
+ export interface WorkflowSummary {
478
+ name: string;
479
+ description: string;
480
+ source: 'project' | 'global' | 'builtin';
481
+ path: string;
482
+ nodeCount: number;
483
+ }
484
+
485
+ export interface WorkflowDetail {
486
+ name: string;
487
+ source: 'project' | 'global' | 'builtin';
488
+ path: string;
489
+ /** Raw YAML text — feed this back into PUT to round-trip. */
490
+ yaml: string;
491
+ /** Parsed schema (for validation badges, node-count display, etc.). */
492
+ definition: {
493
+ name: string;
494
+ description: string;
495
+ nodes: Array<{ id: string; depends_on?: string[]; [variantKey: string]: unknown }>;
496
+ [topKey: string]: unknown;
497
+ };
498
+ }
499
+
500
+ export interface WorkflowHistoryVersion {
501
+ id: string;
502
+ createdAt: string;
503
+ size: number;
504
+ }
505
+
506
+ export interface WorkflowHistoryResponse {
507
+ versions: WorkflowHistoryVersion[];
508
+ }
509
+
510
+ export interface WorkflowHistoryVersionResponse {
511
+ yaml: string;
512
+ }
513
+
514
+ export interface WorkflowPinEntry {
515
+ nodeId: string;
516
+ value: unknown;
517
+ updatedAt: string;
518
+ note?: string;
519
+ }
520
+
521
+ export interface WorkflowPinsResponse {
522
+ workflow: string;
523
+ pins: Record<string, WorkflowPinEntry>;
524
+ }
525
+
526
+ export interface WorkflowPinResponse {
527
+ workflow: string;
528
+ pin: WorkflowPinEntry;
529
+ }
530
+
531
+ export interface SaveWorkflowBody {
532
+ yaml: string;
533
+ scope?: 'project' | 'global';
534
+ }
535
+
536
+ export interface ValidateWorkflowResponse {
537
+ validation: {
538
+ ok: boolean;
539
+ issues: Array<{ path: string; message: string }>;
540
+ workflow?: WorkflowDetail['definition'];
541
+ /** M4-2 (2026-05-12) — non-fatal deterministic warnings. */
542
+ warnings: Array<{
543
+ code: string;
544
+ severity: 'high' | 'medium' | 'low';
545
+ message: string;
546
+ nodeId?: string;
547
+ path?: string;
548
+ suggestion?: string;
549
+ }>;
550
+ };
551
+ }
552
+
553
+ /** ROADMAP Tier 1 W1 — POST /v1/workflows/generate request body. */
554
+ export interface GenerateWorkflowBody {
555
+ prompt: string;
556
+ model?: string;
557
+ provider?: string;
558
+ /** Optional skill-name vocabulary the LLM should restrict skill nodes to. */
559
+ skills?: string[];
560
+ /** Optional existing YAML to refine instead of generating from scratch. */
561
+ currentYaml?: string;
562
+ }
563
+
564
+ /** ROADMAP Tier 1 W1 — POST /v1/workflows/generate response. Mirrors
565
+ * src/workflow/nl-generator.ts `GenerateWorkflowResponse`. */
566
+ export interface GenerateWorkflowResponse {
567
+ yaml: string;
568
+ warnings: string[];
569
+ raw: string;
570
+ definition?: WorkflowDetail['definition'];
571
+ }
572
+
573
+ /** Surface-unification §C1 (2026-05-11) — POST /v1/workflows/synth body.
574
+ * Mirrors `WorkflowSynthOpts` from src/workflow-synth/index.ts. */
575
+ export interface SynthesizeWorkflowBody {
576
+ intent: string;
577
+ context?: string;
578
+ /** When true (default), returns the YAML without persisting it so the
579
+ * PWA can render a preview/confirm modal (C2). */
580
+ preview?: boolean;
581
+ scope?: 'project' | 'global';
582
+ }
583
+
584
+ /** Surface-unification §C1 — POST /v1/workflows/synth response. Mirrors
585
+ * `WorkflowSynthResult` from src/workflow-synth/index.ts. */
586
+ export interface SynthesizeWorkflowResponse {
587
+ ok: boolean;
588
+ yaml?: string;
589
+ workflowName?: string;
590
+ triggerSummary?: string;
591
+ registered: boolean;
592
+ registeredPath?: string;
593
+ repaired?: boolean;
594
+ error?: string;
595
+ }
596
+
597
+ /** Surface-unification §E1 (2026-05-11) — flat trigger inventory.
598
+ * Each entry corresponds to one trigger node in one workflow. */
599
+ export interface TriggerSnapshotEntry {
600
+ workflowName: string;
601
+ nodeId: string;
602
+ variant: 'schedule' | 'webhook' | 'discord' | 'telegram' | 'manual' | 'chat';
603
+ payload: Record<string, unknown>;
604
+ }
605
+ export interface TriggerSnapshot {
606
+ triggers: TriggerSnapshotEntry[];
607
+ workflowsScanned: number;
608
+ }
609
+
610
+ /** Surface-unification §F2 (2026-05-11) — workflow template metadata. */
611
+ export interface WorkflowTemplateEntry {
612
+ id: string;
613
+ title: string;
614
+ description: string;
615
+ tags: string[];
616
+ yaml: string;
617
+ }
618
+ export interface WorkflowTemplateList {
619
+ templates: WorkflowTemplateEntry[];
620
+ }
621
+
622
+ export interface WorkflowRunStartResponse {
623
+ ok: true;
624
+ runId: string;
625
+ /** Server (#23131): 'only' = onlyNode · 'from' = fromNode⊕fromRunId · 'full' = the whole workflow. */
626
+ mode?: 'only' | 'from' | 'full';
627
+ }
628
+
629
+ export interface WorkflowRunEvent {
630
+ type: string;
631
+ nodeId?: string;
632
+ nodeType?: string;
633
+ reason?: string;
634
+ result?: { ok: boolean; output: unknown; error?: string; durationMs: number };
635
+ outputs?: Record<string, { ok: boolean; output: unknown; durationMs: number }>;
636
+ error?: string;
637
+ partial?: Record<string, unknown>;
638
+ }
639
+
640
+ export interface WorkflowRunDetail {
641
+ runId: string;
642
+ workflowName: string;
643
+ /** Server (#23131): 'only' = a single-node test run (not a valid «retry from» source) · 'from' · 'full'. */
644
+ mode?: 'only' | 'from' | 'full';
645
+ startedAt: number;
646
+ ok: boolean | undefined;
647
+ events: WorkflowRunEvent[];
648
+ outputs: Record<string, unknown>;
649
+ }
650
+
651
+ /** Disk-backed run summary returned by `GET /v1/workflows/runs`.
652
+ * Shape mirrors `DiskRunSummary` in src/nexus/api/workflows.ts. The
653
+ * `orphaned` status is derived: running runs older than 30 min are
654
+ * surfaced as orphaned to the listing only — the on-disk run.json
655
+ * stays at `running` so a long-tail completion can still finalize. */
656
+ export interface WorkflowRunSummary {
657
+ runId: string;
658
+ workflowName: string;
659
+ startedAt: number;
660
+ completedAt?: number;
661
+ ok?: boolean;
662
+ status: 'running' | 'orphaned' | 'done' | 'failed' | 'unknown';
663
+ arguments?: string;
664
+ }
665
+
666
+ /** §5.1 — pending approval entry returned by GET /v1/workflows/runs/
667
+ * pending. The executor is parked on a deferred Promise here; the
668
+ * client unblocks it via POST /approve or /reject. */
669
+ export interface PendingApproval {
670
+ runId: string;
671
+ message: string;
672
+ requestedAt: number;
673
+ }
674
+
675
+ // /setup wizard (Phase 1 · 2026-05-19) — LLM provider picker wire types.
676
+ // Mirror of `src/nexus/api/setup-llm-provider.ts` LlmProviderWire +
677
+ // LlmProvidersResponse. Drift kept in sync by `setup-llm-provider.test.ts`
678
+ // asserting the catalog shape end-to-end.
679
+ export interface LlmProviderEntry {
680
+ provider: string;
681
+ label: string;
682
+ description: string;
683
+ apiKeyLabel: string;
684
+ flow: 'apiKey' | 'codex' | 'local' | 'auto';
685
+ recommended: boolean;
686
+ hasSavedKey: boolean;
687
+ }
688
+
689
+ export interface LlmProvidersResponse {
690
+ providers: LlmProviderEntry[];
691
+ activeProvider: string;
692
+ }
693
+
694
+ export interface SetLlmProviderBody {
695
+ provider: string;
696
+ apiKey?: string;
697
+ baseUrl?: string;
698
+ }
699
+
700
+ export interface SetLlmProviderResponse {
701
+ ok: true;
702
+ active: {
703
+ provider: string;
704
+ model: string;
705
+ };
706
+ }
707
+
708
+ export type AnswerPriorityValue = 'cost' | 'balanced' | 'quality' | 'exhaustive';
709
+ export interface AnswerPriorityResponse {
710
+ value: AnswerPriorityValue | null;
711
+ effective: AnswerPriorityValue;
712
+ choices: Array<{ value: AnswerPriorityValue; label: string; description: string }>;
713
+ }
714
+
715
+ export type ChildLlmMode = 'pinned' | 'auto';
716
+ export type ChildLlmOnShortfall = 'decompose' | 'wait-reset' | 'next-provider' | 'proceed';
717
+
718
+ export interface ChildLlmChainEntry {
719
+ provider: string;
720
+ model?: string;
721
+ }
722
+
723
+ export interface ChildLlmResolved {
724
+ mode: ChildLlmMode;
725
+ chain: ChildLlmChainEntry[];
726
+ budgetGate: {
727
+ minHeadroomPercent: number;
728
+ onShortfall: ChildLlmOnShortfall;
729
+ };
730
+ source: { mode: 'explicit' | 'inferred'; chain: 'config' | 'pinned' | 'fallbackChain' };
731
+ }
732
+
733
+ export interface ChildLlmPreferenceResponse {
734
+ resolved: ChildLlmResolved;
735
+ providers: string[];
736
+ }
737
+
738
+ export interface ChildLlmPreferenceBody {
739
+ mode?: ChildLlmMode;
740
+ chain?: ChildLlmChainEntry[];
741
+ budgetGate?: { minHeadroomPercent?: number; onShortfall?: ChildLlmOnShortfall };
742
+ }
743
+
744
+ export interface ObsidianSkillsState {
745
+ obsidian: { vault: string; exists: boolean; looksLikeVault: boolean };
746
+ skills: {
747
+ activeSet: string;
748
+ dirs: string[];
749
+ presets: Array<{ key: string; label: string; dir: string | null; exists: boolean }>;
750
+ };
751
+ }
752
+
753
+ // /settings PersonaCard (Phase 3 · 2026-05-19) — wire types for persona
754
+ // list + description PATCH. Mirror of `src/nexus/api/personas.ts`
755
+ // `PersonaWire` (subset of `PersonaProfile`).
756
+ export interface PersonaWireEntry {
757
+ personaId: string;
758
+ displayName: string;
759
+ description?: string;
760
+ brand?: string;
761
+ primaryModel?: string;
762
+ systemPrompt?: string;
763
+ avatarUrl?: string;
764
+ brandColor?: string;
765
+ mentionPatterns?: readonly string[];
766
+ }
767
+
768
+ export interface PersonasListResponse {
769
+ personas: PersonaWireEntry[];
770
+ count: number;
771
+ }
772
+
773
+ export interface PersonaPatchResponse {
774
+ persona: PersonaWireEntry;
775
+ }
776
+
777
+ export interface PersonaPresetEntry {
778
+ personaId: string;
779
+ displayName: string;
780
+ names: string[];
781
+ role: string;
782
+ title?: string | null;
783
+ oneLine: string;
784
+ voice: { rule: string; examples: string[] };
785
+ tasks: Array<{ when: string; what: string }>;
786
+ tools: Array<{ name: string; from: string; optional?: boolean }>;
787
+ firstQuestions: string[];
788
+ askBefore?: string[];
789
+ doesNot: string[];
790
+ forWhom: string;
791
+ }
792
+
793
+ export interface PersonaPresetsResponse { presets: PersonaPresetEntry[] }
794
+ export interface CreatePersonaBody { preset: string; name: string }
795
+ export interface PersonaEdits { displayName?: string; description?: string; systemPrompt?: string }
796
+
797
+ // BACKLOG #2 — GET /v1/platforms wire format. Mirrors
798
+ // `src/nexus/api/platforms.ts:PlatformEntry`. Server never returns
799
+ // secret values; `detail` and `hint` are human-readable strings.
800
+ export type ChannelBotPlatform = 'telegram' | 'discord';
801
+ export interface ChannelBotState {
802
+ platform: ChannelBotPlatform;
803
+ configured: boolean;
804
+ source: 'tokenRef' | 'env' | 'plaintext' | null;
805
+ allowedUsers: string[];
806
+ }
807
+ export interface ChannelBotsResponse { platforms: ChannelBotState[] }
808
+ export interface ChannelBotSetBody { platform: ChannelBotPlatform; token?: string; allowedUsers?: string[] }
809
+ export interface ChannelBotSetResponse { ok: true; botName?: string; restartNeeded: true }
810
+
811
+ export type PlatformId = 'discord' | 'telegram' | 'pushcut' | 'acp' | 'tailscale';
812
+ export type PlatformStatus = 'connected' | 'not-configured';
813
+ export interface PlatformEntry {
814
+ id: PlatformId;
815
+ label: string;
816
+ status: PlatformStatus;
817
+ detail: string;
818
+ hint?: string;
819
+ }
820
+
821
+ // BACKLOG #1 types retired 2026-05-11 — `/v1/providers` endpoint
822
+ // removed alongside ProviderCapabilityCard (#2198 FU A4). The matrix
823
+ // view is now served by `/v1/registry/catalog` + LlmCatalogCard.
824
+
825
+ // RFC #2161 Phase 3 — GET /v1/registry/catalog wire format. Mirrors
826
+ // `src/nexus/api/registry-catalog.ts:CatalogResponse`. The PWA client
827
+ // keeps a structural-only mirror so we don't pull the daemon's runtime
828
+ // types into the bundle. Capability + reasoning vocabularies stay
829
+ // in-sync via the workflow yaml validator (server-authoritative).
830
+ export type RegistryCapabilityKey =
831
+ | 'sessionResume'
832
+ | 'mcp'
833
+ | 'hooks'
834
+ | 'skills'
835
+ | 'agents'
836
+ | 'toolRestrictions'
837
+ | 'structuredOutput'
838
+ | 'envInjection'
839
+ | 'costControl'
840
+ | 'effortControl'
841
+ | 'thinkingControl'
842
+ | 'fallbackModel'
843
+ | 'sandbox'
844
+ | 'multiHostFanout';
845
+
846
+ export type RegistryProviderCapabilities = Record<RegistryCapabilityKey, boolean>;
847
+
848
+ export interface RegistryProviderEntry {
849
+ id: string;
850
+ displayName: string;
851
+ aliases: string[];
852
+ modelPrefixes: string[];
853
+ apiKeyEnv: string;
854
+ endpointPattern: string;
855
+ defaultStreaming: 'sse' | 'ws' | 'polling';
856
+ toolCallingFormat:
857
+ | 'native-anthropic'
858
+ | 'native-openai'
859
+ | 'native-gemini'
860
+ | 'none';
861
+ capabilities: RegistryProviderCapabilities;
862
+ builtIn: boolean;
863
+ }
864
+
865
+ export interface RegistryModelEntry {
866
+ id: string;
867
+ provider: string;
868
+ displayName: string;
869
+ family?: string;
870
+ familyShortcut?: string;
871
+ contextSize?: number;
872
+ outputMaxTokens?: number;
873
+ vision?: 'images' | 'video' | 'pdf' | null;
874
+ audio?: { input: boolean; output: boolean };
875
+ reasoning?: 'off' | 'low' | 'medium' | 'high' | null;
876
+ toolCalling?:
877
+ | 'native-anthropic'
878
+ | 'native-openai'
879
+ | 'native-gemini'
880
+ | 'none';
881
+ pricing?: {
882
+ inputPerMTok: number;
883
+ outputPerMTok: number;
884
+ cachedInputPerMTok?: number;
885
+ };
886
+ rateLimits?: { rpm?: number; tpm?: number };
887
+ deprecated?: string | null;
888
+ releaseDate?: string;
889
+ tokenizer?: string;
890
+ kind?: 'chat' | 'embedding' | 'image' | 'audio';
891
+ capabilities?: Partial<RegistryProviderCapabilities>;
892
+ discoveryMeta?: {
893
+ source: string;
894
+ lastSeen: string;
895
+ autoFilled: boolean;
896
+ confidence?: 'high' | 'medium' | 'low';
897
+ };
898
+ }
899
+
900
+ export interface RegistryCatalogResponse {
901
+ catalogVersion: number;
902
+ providers: RegistryProviderEntry[];
903
+ models: RegistryModelEntry[];
904
+ patterns: Array<{
905
+ provider: string;
906
+ prefixes: Array<{ prefix: string; fallback: Partial<RegistryModelEntry> }>;
907
+ }>;
908
+ manifest: {
909
+ builtinSource: string;
910
+ globalSource: string;
911
+ fileCount: number;
912
+ loadedAt: string;
913
+ };
914
+ }
915
+
916
+ // BACKLOG #5 — GET /v1/worktrees wire format. Mirrors
917
+ // `src/nexus/api/worktrees.ts:WorktreesResponse`.
918
+ export interface WorktreeViewSession {
919
+ sessionId: string;
920
+ enteredAt: number;
921
+ previousCwd: string;
922
+ alive: boolean;
923
+ }
924
+ export interface WorktreeView {
925
+ path: string;
926
+ branch: string | null;
927
+ sha: string;
928
+ isMain: boolean;
929
+ isLocked: boolean;
930
+ isDetached: boolean;
931
+ session: WorktreeViewSession | null;
932
+ orphan: boolean;
933
+ }
934
+ export interface OrphanedSessionView {
935
+ sessionId: string;
936
+ worktreePath: string;
937
+ branch: string;
938
+ enteredAt: number;
939
+ alive: boolean;
940
+ }
941
+ export interface WorktreesResponse {
942
+ repoRoot: string | null;
943
+ worktrees: WorktreeView[];
944
+ orphanedSessions: OrphanedSessionView[];
945
+ }
946
+
947
+ // B4 — GET /v1/design-check wire format. Mirrors
948
+ // `src/nexus/api/design-check.ts:buildDesignCheckView`.
949
+ //
950
+ // ⛔ Modelled as a DISCRIMINATED UNION on `ok`, not as one object with
951
+ // optional fields. The daemon's whole reason for sending `blockedOn` is
952
+ // that "nothing is missing" and "I could not read the directory" must not
953
+ // look alike; collapsing them back into `rulebooks?: string[]` here would
954
+ // undo that at the last step.
955
+ export interface DesignCheckOk {
956
+ ok: true;
957
+ repoRoot: string;
958
+ /** Where the daemon found the repository: `harness.defaultRepo` or its own cwd. */
959
+ repoSource?: 'config' | 'cwd' | null;
960
+ documentPath: string;
961
+ craftDirectory: string;
962
+ /** Every rulebook elanous ships — lets the panel show "available but not
963
+ * declared" without a second round trip. */
964
+ availableRulebooks: string[];
965
+ declaredRulebooks: string[];
966
+ /** Declared names with no matching file. Non-empty ⇒ exitCode 1. */
967
+ unavailableRulebooks: string[];
968
+ exitCode: 0 | 1;
969
+ /** B5 — visual direction declared by the same DESIGN.md.
970
+ * ⛔ Deliberately NOT folded into `exitCode`: a rulebook that cannot be
971
+ * found is a broken contract, an undeclared direction is just a choice
972
+ * nobody has made yet. Collapsing them would make a healthy new project
973
+ * render as failing. */
974
+ /** ⚠️ Optional for the same gate reason documented on `AgentToolResult.cid`
975
+ * (`src/skills/tools/agent.ts`): a new REQUIRED field on an exported type
976
+ * escalates `ci-typecheck-changed.ts` to a whole-repository check, and that
977
+ * scope carries 74 pre-existing non-exempt errors owned by other tracks.
978
+ * The daemon populates it on every `ok: true` response; the panel still
979
+ * guards for absence so an older daemon degrades to "no direction section"
980
+ * instead of crashing. */
981
+ directions?: {
982
+ declared: string | null;
983
+ unavailable: string | null;
984
+ available: DesignDirectionView[];
985
+ };
986
+ }
987
+ export interface DesignDirectionView {
988
+ id: string;
989
+ mood: string;
990
+ isDark: boolean;
991
+ isPastel: boolean;
992
+ swatch: { text: string; accent: string; muted: string; bg?: string; fg?: string };
993
+ /** RFC design loop §B — optional so an older daemon still parses. */
994
+ label?: string;
995
+ source?: 'theme' | 'document' | 'design-system';
996
+ typography?: { display: string | null; body: string | null } | null;
997
+ category?: string | null;
998
+ }
999
+
1000
+ // Live 탭(2026-09-28 · 내부 문서 `PLAN-live-signals-tab-teaser-and-web-2026-09-28`) — 기존 끝점만 모은다.
1001
+ // GET /v1/harness/runs · GET /v1/logs · GET /v1/logs/instances. 새 필드는 전부 선택적(옛 데몬 호환).
1002
+ export interface HarnessRunEntry {
1003
+ runId: string;
1004
+ status: string;
1005
+ lifecycle?: string;
1006
+ lastActivityTimestamp?: string | null;
1007
+ lastPhase?: string | null;
1008
+ }
1009
+ export interface HarnessRunsResponse {
1010
+ entries: HarnessRunEntry[];
1011
+ counts?: Record<string, number>;
1012
+ total?: number;
1013
+ }
1014
+ // HARNESS-RUN-LIVE-GRAPH — GET /v1/harness/runs?finishedSince= · GET /v1/harness/run-traversal?runId=
1015
+ export interface HarnessFinishedRunWire { runId: string; status: string; endedAt: string; stage?: string; objective?: string; prUrl?: string; merged?: boolean; mergeDecision?: string }
1016
+ export interface HarnessRunsSinceResponse extends HarnessRunsResponse {
1017
+ entries: Array<HarnessRunEntry & { objective?: string }>;
1018
+ finished?: HarnessFinishedRunWire[];
1019
+ }
1020
+ export interface HarnessTraversalStepWire {
1021
+ node: string; round: number | null; outcome: string | null; at: string; durationMs: number | null;
1022
+ visit: number; maxVisits: number | null; detail: string | null;
1023
+ /** Shared per-run ledger order; absent for legacy runs. */
1024
+ sourceSeq?: number;
1025
+ /** Resource identifiers projected from this node's run-ledger interval. */
1026
+ resources?: { host?: string; pod?: string; models?: string[]; plugins?: string[] };
1027
+ }
1028
+ export type HarnessGraphEventWire =
1029
+ | { seq: number; ts: string; type: 'node-added'; node: string; kind: string; decider: string; reason: string; source?: string; injected?: boolean; scene?: string; demo1104Scene?: string; mockOutcome?: string; who?: string; what?: string; missionId?: string; trigger?: unknown; undo?: unknown }
1030
+ | { 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 }
1031
+ | { seq: number; ts: string; type: 'priority-changed'; node: string; from: number; to: number; decider: string; reason: string }
1032
+ | { seq: number; ts: string; type: 'unit-expanded'; node: string; unit: string; childRunId: string; resolution: number; decider: string; reason: string }
1033
+ | { seq: number; ts: string; type: 'unit-collapsed'; node: string; resolution: number; decider: string; reason: string };
1034
+ export interface HarnessRunTraversal {
1035
+ runId: string; graphId: string | null; title: string | null; status: string; stage: string | null;
1036
+ startedAt: string | null; endedAt: string | null; prNumber: number | null; substrate: string | null;
1037
+ steps: HarnessTraversalStepWire[]; ledgerEvents: number;
1038
+ /** Structural graph events ordered on the same per-run sequence as step sourceSeq. */
1039
+ graphEvents?: HarnessGraphEventWire[];
1040
+ /** Outcome edges read from graph.path ledger rows, preserving injected fixture provenance. */
1041
+ journeyEdges?: Array<{ seq?: number; from: string; label: string; taken: string; source: 'graph' | 'code-default'; injected?: boolean; mockOutcome?: string; scene?: string; demo1104Scene?: string }>;
1042
+ }
1043
+ export interface LogRow {
1044
+ id?: number;
1045
+ ts: string;
1046
+ level?: string;
1047
+ instance?: string;
1048
+ surface?: string;
1049
+ category: string;
1050
+ event: string;
1051
+ data?: Record<string, unknown> | null;
1052
+ }
1053
+ export interface LogsResponse { ok: boolean; logs: LogRow[]; count: number; ts?: string; stores?: string[]; failedStores?: Array<{ name: string; reason: string }>; registeredStores?: number }
1054
+ export interface LogInstance { name: string; alive?: boolean; dbExists?: boolean; current?: boolean }
1055
+ export interface LogInstancesResponse { ok: boolean; self?: string; instances: LogInstance[] }
1056
+ export interface TraceQuery { level: 'L0' | 'L1' | 'L2' | 'L3'; runId?: string; store?: string; limit?: number; kind?: string; q?: string; from?: number }
1057
+ export interface TraceEventWire {
1058
+ id: string; ts: string; universe: string; runId?: string; parentRunId?: string; phase?: string; kind: string;
1059
+ what: string; why?: string; purpose?: string; target?: string; paths?: number | string[];
1060
+ refs: { pr?: string | number; commit?: string; logId: string; screen?: string; llmRequestId?: string };
1061
+ }
1062
+ export interface TraceNodeWire { id: string; level: string; label: string; count: number; universe?: string; runId?: string; firstTs?: string; lastTs?: string }
1063
+ export interface TraceResponse { ok: boolean; nodes?: TraceNodeWire[]; edges?: Array<{ source: string; target: string; kind: string }>; events: TraceEventWire[]; truncated: boolean; stores?: string[]; failedStores?: Array<{ name: string; reason: string }> }
1064
+ export interface TraceEvidenceResponse { ok: boolean; ref: string; evidence?: { ts: string; instance: string; category: string; event: string; data: unknown } }
1065
+ export interface LiveShippedResponse { merged: number | null; since: string; repo?: string; source?: string; reason?: string; cached?: boolean }
1066
+ export interface RunScreenResponse { runId: string; screenKey: string | null; text: string | null; stoppable: boolean; outcome?: 'complete' | 'incomplete' | null; reason?: string; lastEvent?: { category: string; event: string; timestamp: string } | null }
1067
+ export interface LiveDetailState { on: boolean; scope?: string | null; since?: string | null; until?: string | null; remainingMs?: number | null }
1068
+ export interface LogsQuery { category?: string; since?: string; limit?: number; store?: string; event?: string }
1069
+
1070
+ // RFC design loop §B — POST /v1/design-direction wire format. Mirrors
1071
+ // `src/nexus/api/design-check.ts:handleDesignDirectionPost`. A refusal comes
1072
+ // back as a NexusApiError whose body carries `reason`.
1073
+ export type SetDesignDirectionResponse = {
1074
+ ok: true;
1075
+ documentPath: string;
1076
+ direction: string;
1077
+ repoRoot?: string;
1078
+ repoSource?: 'config' | 'cwd' | null;
1079
+ };
1080
+
1081
+ /** POST /v1/design-system. Mirrors `handleDesignSystemCreate`. */
1082
+ export type CreateDesignSystemBody =
1083
+ | { kind: 'url'; url: string; id?: string; name?: string; base?: string }
1084
+ | { kind: 'palette'; colors: string[]; id: string; name?: string; base?: string };
1085
+
1086
+ export interface CreatedDesignSystemToken {
1087
+ token: string;
1088
+ value: string;
1089
+ from: string;
1090
+ }
1091
+
1092
+ export interface CreateDesignSystemResponse {
1093
+ ok: true;
1094
+ id: string;
1095
+ dir: string;
1096
+ tokens: CreatedDesignSystemToken[];
1097
+ unread: number;
1098
+ warnings: string[];
1099
+ extractDir?: string;
1100
+ }
1101
+ export interface DesignCheckBlocked {
1102
+ ok: false;
1103
+ repoRoot: string | null;
1104
+ /** Which read failed. `no-repository` means the daemon is not inside a
1105
+ * git checkout at all — a deployment fact, not a missing file. */
1106
+ blockedOn: 'no-repository' | 'craft-directory' | 'design-document';
1107
+ path: string | null;
1108
+ exitCode: 1;
1109
+ }
1110
+ export type DesignCheckResponse = DesignCheckOk | DesignCheckBlocked;
1111
+
1112
+ /** GET /v1/design-previews. New fields stay optional so an older daemon still parses. */
1113
+ export interface DesignPreviewEntry {
1114
+ system: string;
1115
+ bytes?: number;
1116
+ modifiedAt?: string;
1117
+ }
1118
+ export interface DesignPreviewsResponse {
1119
+ repoRoot?: string | null;
1120
+ repoSource?: 'config' | 'cwd' | null;
1121
+ previews: DesignPreviewEntry[];
1122
+ }
1123
+ /** GET /v1/design-previews/<system>. */
1124
+ export interface DesignPreviewDocument {
1125
+ system: string;
1126
+ html: string;
1127
+ }
1128
+
1129
+ // HANDOFF §4.2 — POST /v1/worktrees/dispose wire format. Mirrors
1130
+ // `src/nexus/api/worktrees.ts:DisposeWorktreeRequest/Response`.
1131
+ export interface DisposeWorktreeBody {
1132
+ path: string;
1133
+ force?: boolean;
1134
+ }
1135
+ export interface DisposeWorktreeResponse {
1136
+ ok: boolean;
1137
+ action: 'git-worktree-remove' | 'orphan-session-cleanup' | null;
1138
+ cleanedSession?: string;
1139
+ error?: string;
1140
+ detail?: string;
1141
+ }
1142
+
1143
+ // T4.D — POST /v1/nexus/connect-info/mint-token wire format.
1144
+ export interface MintConnectToken {
1145
+ token: string;
1146
+ /** ms-since-epoch · null = no expiry (raw bearer · v1 simple mode). */
1147
+ expiresAt: number | null;
1148
+ hint: string;
1149
+ }
1150
+
1151
+ // PWA mirror PR 1 — chat-backend Quick Setup snapshot wire format
1152
+ // (response of GET /v1/nexus/chat-backend-detection). The TUI's
1153
+ // `buildQuickSetupSnapshot()` produces the same shape; PR 2's React
1154
+ // card component renders these entries with ✓ / ◯ glyphs.
1155
+ export type ChatBackendKind = 'codex' | 'claude-code' | 'gemini' | 'none';
1156
+
1157
+ export interface ChatBackendDetection {
1158
+ detection: { backend: ChatBackendKind; source: string };
1159
+ entries: ChatBackendEntry[];
1160
+ }
1161
+
1162
+ export interface ChatBackendEntry {
1163
+ provider: 'codex' | 'claude-code' | 'gemini';
1164
+ label: string;
1165
+ paths: ChatBackendPath[];
1166
+ }
1167
+
1168
+ export interface ChatBackendPath {
1169
+ /** Short tag — 'OAuth' / 'OPENAI_API_KEY' / etc. */
1170
+ tag: string;
1171
+ /** User-facing setup command / hint. Plain text; the card may
1172
+ * wrap inline-code spans on its own. */
1173
+ hint: string;
1174
+ /** True when the credential is present in env / token store.
1175
+ * Env / token VALUES are never echoed (security policy). */
1176
+ detected: boolean;
1177
+ }
1178
+
1179
+ export interface SwitchWire {
1180
+ id: string;
1181
+ scope: 'global' | 'tab' | 'session';
1182
+ kind: 'bool' | 'enum' | 'string' | 'number' | 'secret-ref' | 'multiline' | 'path';
1183
+ label: string;
1184
+ description: string;
1185
+ default: unknown;
1186
+ enumValues?: { value: string; label: string; description?: string }[];
1187
+ hotApplicable: boolean;
1188
+ pwaPreferred?: boolean;
1189
+ redactInLogs?: boolean;
1190
+ envName?: string;
1191
+ legacyEnvName?: string;
1192
+ appliesToTabIds?: string[];
1193
+ value?: unknown;
1194
+ }
1195
+
1196
+ export type PutSwitchResult =
1197
+ | { outcome: 'hot'; switchId: string }
1198
+ | { outcome: 'restart'; switchId: string; restartedTabs: string[] }
1199
+ | { outcome: 'no-op'; switchId: string };
1200
+
1201
+ export interface LogsTailResult {
1202
+ id: string;
1203
+ lines: number;
1204
+ stdout: { path: string; tail: string[]; size: number; mtime?: number };
1205
+ stderr: { path: string; tail: string[]; size: number; mtime?: number };
1206
+ }
1207
+
1208
+ // ---- SSE ----
1209
+ export type Unsubscribe = () => void;
1210
+
1211
+ export interface SubscribeOpts {
1212
+ /** Topic prefixes to filter (e.g., ['tab.', 'nexus.']). Empty = all. */
1213
+ topics?: string[];
1214
+ onEvent: (ev: NexusEvent) => void;
1215
+ onError?: (err: Error) => void;
1216
+ /** Optional EventSource constructor override (tests). */
1217
+ EventSourceImpl?: typeof EventSource;
1218
+ /** Forward-compat — register named listeners for additional kinds
1219
+ * not in the built-in `KNOWN_KINDS` list. Use when a server adds a
1220
+ * new event kind before the client knows about it. */
1221
+ kinds?: string[];
1222
+ }
1223
+
1224
+ export interface SubscribeLogsOpts {
1225
+ onLine: (line: { stream: 'stdout' | 'stderr'; line: string }) => void;
1226
+ onError?: (err: Error) => void;
1227
+ EventSourceImpl?: typeof EventSource;
1228
+ }
1229
+
1230
+ // ---------------------------------------------------------------------------
1231
+ // createNexusClient
1232
+ // ---------------------------------------------------------------------------
1233
+
1234
+ export function createNexusClient(opts: NexusClientOpts): NexusClient {
1235
+ const baseUrl = opts.baseUrl.replace(/\/$/, '');
1236
+ const fetchImpl = opts.fetchImpl ?? fetch;
1237
+ const defaultTimeoutMs = opts.timeoutMs ?? 8000;
1238
+ const optsToken = opts.token;
1239
+
1240
+ function validateRegistrationLink(link: { slot: string; url: string; expiresAt: number }, slot: string): string {
1241
+ try {
1242
+ const currentUrl = typeof window === 'undefined' ? undefined : window.location.href;
1243
+ const baseOrigin = new URL(baseUrl, currentUrl).origin;
1244
+ const target = new URL(link.url, currentUrl ?? baseUrl);
1245
+ const token = target.origin === baseOrigin && target.pathname === '/app/credentials/register/claim/'
1246
+ ? new URLSearchParams(target.hash.slice(1)).get('t') : null;
1247
+ if (link.slot !== slot || !Number.isFinite(link.expiresAt) || !token) throw new Error('invalid link');
1248
+ return token;
1249
+ } catch { throw new Error('자격 등록 링크를 확인할 수 없습니다.'); }
1250
+ }
1251
+
1252
+ async function request<T>(
1253
+ method: string,
1254
+ path: string,
1255
+ body?: unknown,
1256
+ opts?: { signal?: AbortSignal; timeoutMs?: number; tokenOverride?: string },
1257
+ ): Promise<T> {
1258
+ const url = `${baseUrl}${path}`;
1259
+ const timeoutMs = opts?.timeoutMs ?? defaultTimeoutMs;
1260
+ for (let attempt = 0; ; attempt++) {
1261
+ // Each attempt owns its timer and abort bridge; a timed-out signal cannot
1262
+ // leak into the retry, and caller cancellation always wins if it fires first.
1263
+ const ctrl = timeoutMs > 0 || opts?.signal ? new AbortController() : null;
1264
+ let timedOut = false;
1265
+ let cleanupExternalAbort: (() => void) | null = null;
1266
+ if (ctrl && opts?.signal) {
1267
+ const ext = opts.signal;
1268
+ if (ext.aborted) {
1269
+ ctrl.abort();
1270
+ } else {
1271
+ const onAbort = () => ctrl.abort();
1272
+ ext.addEventListener('abort', onAbort);
1273
+ cleanupExternalAbort = () => ext.removeEventListener('abort', onAbort);
1274
+ }
1275
+ }
1276
+ const timer = ctrl && timeoutMs > 0
1277
+ ? setTimeout(() => {
1278
+ if (!ctrl.signal.aborted) {
1279
+ timedOut = true;
1280
+ ctrl.abort();
1281
+ }
1282
+ }, timeoutMs)
1283
+ : null;
1284
+ try {
1285
+ const res = await fetchImpl(url, {
1286
+ method,
1287
+ ...(ctrl ? { signal: ctrl.signal } : {}),
1288
+ ...((body !== undefined || opts?.tokenOverride || optsToken) ? {
1289
+ headers: {
1290
+ ...(body !== undefined ? { 'content-type': 'application/json' } : {}),
1291
+ ...((opts?.tokenOverride ?? optsToken) ? { authorization: `Bearer ${opts?.tokenOverride ?? optsToken}` } : {}),
1292
+ },
1293
+ } : {}),
1294
+ ...(body !== undefined ? { body: JSON.stringify(body) } : {}),
1295
+ });
1296
+ if (res.status === 401) reportAuthRequired(path);
1297
+ let parsed: unknown = null;
1298
+ try {
1299
+ parsed = await res.json();
1300
+ } catch (err) {
1301
+ // Only malformed JSON keeps the old null body; an interrupted read
1302
+ // reaches the outer timeout/caller-cancellation handler.
1303
+ if (!(err instanceof SyntaxError)) throw err;
1304
+ }
1305
+ if (!res.ok) {
1306
+ if (res.status === 400 && path.startsWith('/v1/workflows/') && path.endsWith('/run')
1307
+ && parsed && typeof parsed === 'object' && 'error' in parsed && parsed.error === 'missing-upstream'
1308
+ && 'nodes' in parsed && Array.isArray(parsed.nodes) && parsed.nodes.every((node) => typeof node === 'string')) {
1309
+ throw new MissingUpstreamError(path, parsed as { error: 'missing-upstream'; nodes: string[] });
1310
+ }
1311
+ throw new NexusApiError(res.status, path, parsed);
1312
+ }
1313
+ return parsed as T;
1314
+ } catch (err) {
1315
+ if (!timedOut || !(err instanceof Error) || err.name !== 'AbortError') throw err;
1316
+ if (method !== 'GET' || attempt > 0) throw new NexusTimeoutError(path, timeoutMs);
1317
+ } finally {
1318
+ if (timer != null) clearTimeout(timer);
1319
+ cleanupExternalAbort?.();
1320
+ }
1321
+ await new Promise<void>((resolve, reject) => {
1322
+ const ext = opts?.signal;
1323
+ if (ext?.aborted) {
1324
+ reject(new DOMException('aborted', 'AbortError'));
1325
+ return;
1326
+ }
1327
+ const onAbort = () => {
1328
+ clearTimeout(delay);
1329
+ ext?.removeEventListener('abort', onAbort);
1330
+ reject(new DOMException('aborted', 'AbortError'));
1331
+ };
1332
+ const delay = setTimeout(() => {
1333
+ ext?.removeEventListener('abort', onAbort);
1334
+ resolve();
1335
+ }, 100);
1336
+ ext?.addEventListener('abort', onAbort, { once: true });
1337
+ });
1338
+ }
1339
+ }
1340
+
1341
+ async function installMarketPlugin(spec: string, acceptedCapabilities: string[], onLine: (line: string) => void): Promise<void> {
1342
+ const path = '/v1/plugins/install';
1343
+ const res = await fetchImpl(`${baseUrl}${path}`, {
1344
+ method: 'POST', headers: { 'content-type': 'application/json', ...(optsToken ? { authorization: `Bearer ${optsToken}` } : {}) },
1345
+ body: JSON.stringify({ spec, acceptedCapabilities }),
1346
+ });
1347
+ if (res.status === 401) reportAuthRequired(path);
1348
+ if (!res.ok) throw new NexusApiError(res.status, path, await res.json());
1349
+ if (!res.body) throw new Error('설치 진행 정보를 읽을 수 없습니다.');
1350
+ const reader = res.body.getReader();
1351
+ const decoder = new TextDecoder();
1352
+ let pending = '';
1353
+ try {
1354
+ while (true) {
1355
+ const { done, value } = await reader.read();
1356
+ if (done) break;
1357
+ pending += decoder.decode(value, { stream: true });
1358
+ let end: number;
1359
+ while ((end = pending.indexOf('\n')) !== -1) {
1360
+ const line = pending.slice(0, end).trim();
1361
+ pending = pending.slice(end + 1);
1362
+ if (line) onLine(line);
1363
+ }
1364
+ }
1365
+ pending += decoder.decode();
1366
+ if (pending.trim()) onLine(pending.trim());
1367
+ } finally { reader.releaseLock(); }
1368
+ }
1369
+
1370
+ return {
1371
+ baseUrl,
1372
+ // ---- read ----
1373
+ getHealth: () => request<NexusHealth>('GET', '/v1/health'),
1374
+ getCredentialSlots: () => request('GET', '/v1/credentials/slots'),
1375
+ startOpenRouterOAuth: async () => {
1376
+ const result = await request<{ authorizationUrl: string }>('POST', '/v1/credentials/openrouter/oauth/start', {});
1377
+ const authorizationUrl = new URL(result.authorizationUrl);
1378
+ if (authorizationUrl.origin !== 'https://openrouter.ai' || authorizationUrl.pathname !== '/auth') throw new Error('OpenRouter 연결 주소가 올바르지 않습니다.');
1379
+ return { authorizationUrl: authorizationUrl.toString() };
1380
+ },
1381
+ listOpenRouterImportCandidates: () => request<{ candidates: Array<{ id: string; name: string; source: string; lastFour: string }> }>('GET', '/v1/credentials/openrouter/import'),
1382
+ importOpenRouterCandidate: async (id) => {
1383
+ if (!id) throw new Error('OpenRouter 키 후보를 확인할 수 없습니다.');
1384
+ const result = await request<{ saved: true; verification: 'verified'; lastFour: string }>('POST', '/v1/credentials/openrouter/import', { id });
1385
+ if (result.saved !== true || result.verification !== 'verified') throw new Error('OpenRouter 키 저장 결과를 확인할 수 없습니다.');
1386
+ return result;
1387
+ },
1388
+ createCredentialRegistrationLink: async (slot) => {
1389
+ const link = await request<{ slot: string; url: string; expiresAt: number }>('POST', '/v1/credentials/registration-links', { slot });
1390
+ validateRegistrationLink(link, slot);
1391
+ return link;
1392
+ },
1393
+ revokeCredentialRegistrationLink: async (token) => {
1394
+ if (!token) throw new Error('자격 등록 링크를 확인할 수 없습니다.');
1395
+ const result = await request<{ revoked: true }>('POST', '/v1/credentials/registration-links/revoke', { t: token });
1396
+ if (result.revoked !== true) throw new Error('자격 등록 링크 폐기 결과를 확인할 수 없습니다.');
1397
+ return { revoked: true };
1398
+ },
1399
+ claimCredentialRegistrationLink: async (token) => {
1400
+ if (!token) throw new Error('자격 등록 링크를 확인할 수 없습니다.');
1401
+ const claimed = await request<{ slot: string; label: string; setupUrl: string; bearer: string; expiresAt: number }>(
1402
+ 'POST', '/v1/setup/credential-claim', { t: token }, { tokenOverride: '' });
1403
+ if (!claimed.slot || !claimed.bearer || !Number.isFinite(claimed.expiresAt)) throw new Error('자격 등록 권한을 확인할 수 없습니다.');
1404
+ return claimed;
1405
+ },
1406
+ submitCredentialRegistration: async (slot, bearer, value) => {
1407
+ const saved = await request<{ saved: true; slot: string; verification: 'verified' }>(
1408
+ 'POST', '/v1/setup/credential-register', { slot, value }, { tokenOverride: bearer });
1409
+ if (saved.saved !== true || saved.slot !== slot || saved.verification !== 'verified') throw new Error('자격 저장 결과를 확인할 수 없습니다.');
1410
+ return { saved: true, slot, verification: 'verified' };
1411
+ },
1412
+ registerCredentialSlot: async (slot, value) => {
1413
+ const link = await request<{ slot: string; url: string; expiresAt: number }>('POST', '/v1/credentials/registration-links', { slot });
1414
+ const token = validateRegistrationLink(link, slot);
1415
+ const claimed = await request<{ slot: string; bearer: string }>('POST', '/v1/setup/credential-claim', { t: token }, { tokenOverride: '' });
1416
+ if (claimed.slot !== slot || !claimed.bearer) throw new Error('자격 등록 권한을 확인할 수 없습니다.');
1417
+ const saved = await request<{ saved: true; slot: string; verification: 'verified' }>('POST', '/v1/setup/credential-register',
1418
+ { slot, value }, { tokenOverride: claimed.bearer });
1419
+ if (saved.saved !== true || saved.slot !== slot || saved.verification !== 'verified') throw new Error('자격 저장 결과를 확인할 수 없습니다.');
1420
+ return { saved: true, slot, verification: 'verified' };
1421
+ },
1422
+ getNexus: () => request<NexusSnapshot>('GET', '/v1/nexus'),
1423
+ getTabs: (qopts) => {
1424
+ const q = qopts?.kind ? `?kind=${encodeURIComponent(qopts.kind)}` : '';
1425
+ return request<{ tabs: NexusTabState[] }>('GET', `/v1/nexus/tabs${q}`);
1426
+ },
1427
+ getTab: (id) => request('GET', `/v1/nexus/tabs/${encodeURIComponent(id)}`),
1428
+ getTaskCards: () => request('GET', TASK_CARDS_PATH),
1429
+ getTaskCard: (id) => request('GET', `${TASK_CARDS_PATH}/${encodeURIComponent(id)}`),
1430
+ closeTaskCard: (id, reason) => request('POST', `${TASK_CARDS_PATH}/${encodeURIComponent(id)}/close`, { reason }),
1431
+ getChatBackendDetection: () => request<ChatBackendDetection>('GET', '/v1/nexus/chat-backend-detection'),
1432
+ mintConnectToken: () => request<MintConnectToken>('POST', '/v1/nexus/connect-info/mint-token', {}),
1433
+ // ---- tabs mutation ----
1434
+ createTab: (body) => request('POST', '/v1/nexus/tabs', body),
1435
+ deleteTab: (id) => request('DELETE', `/v1/nexus/tabs/${encodeURIComponent(id)}`),
1436
+ patchTab: (id, body) => request('PATCH', `/v1/nexus/tabs/${encodeURIComponent(id)}`, body),
1437
+ startTab: (id) => request('POST', `/v1/nexus/tabs/${encodeURIComponent(id)}/start`),
1438
+ stopTab: (id, sopts) => {
1439
+ const q = sopts?.graceMs !== undefined ? `?graceMs=${sopts.graceMs}` : '';
1440
+ return request('POST', `/v1/nexus/tabs/${encodeURIComponent(id)}/stop${q}`);
1441
+ },
1442
+ restartTab: (id, sopts) => {
1443
+ const q = sopts?.graceMs !== undefined ? `?graceMs=${sopts.graceMs}` : '';
1444
+ return request('POST', `/v1/nexus/tabs/${encodeURIComponent(id)}/restart${q}`);
1445
+ },
1446
+ // ---- templates ----
1447
+ getTemplates: () => request('GET', '/v1/nexus/templates'),
1448
+ getTemplate: (name) => request('GET', `/v1/nexus/templates/${encodeURIComponent(name)}`),
1449
+ saveTemplate: (body) => request('POST', '/v1/nexus/templates', body),
1450
+ getPluginsIndex: () => request('GET', '/v1/plugins/index'),
1451
+ getInstalledPlugins: () => request('GET', '/v1/plugins'),
1452
+ getWizardPlugins: () => request('GET', '/v1/plugins/wizard'),
1453
+ saveWizardPlugin: (body) => request('POST', '/v1/plugins/wizard', body),
1454
+ refreshPluginMarket: (name) => request('POST', `/v1/plugins/markets/${encodeURIComponent(name)}/refresh`, {}),
1455
+ installMarketPlugin,
1456
+ removeMarketPlugin: (name) => request('DELETE', `/v1/plugins/${encodeURIComponent(name)}`),
1457
+ getPluginCredentials: (name) => request('GET', `/v1/plugins/${encodeURIComponent(name)}/credentials`),
1458
+ putPluginCredentials: (name, fields) => request('PUT', `/v1/plugins/${encodeURIComponent(name)}/credentials`, { fields }),
1459
+ getRunGraphs: () => request('GET', '/v1/graphs'),
1460
+ getRunGraph: (id) => request('GET', `/v1/graphs/${encodeURIComponent(id)}`),
1461
+ getRunGraphYaml: (id) => request('GET', `/v1/graphs/${encodeURIComponent(id)}/yaml`),
1462
+ getRunGraphFlat: (id) => request('GET', `/v1/graphs/${encodeURIComponent(id)}/flat`),
1463
+ getRunGraphAccess: (id) => request('GET', `/v1/graphs/${encodeURIComponent(id)}/access`),
1464
+ putRunGraphAccess: (id, recipient, permission) => request('PUT', `/v1/graphs/${encodeURIComponent(id)}/access`, { recipient, permission }),
1465
+ putRunGraphYaml: (id, yaml, steps) => request('PUT', `/v1/graphs/${encodeURIComponent(id)}/yaml`, { yaml, ...(steps && Object.keys(steps).length ? { steps } : {}) }),
1466
+ cloneRunGraph: (id, newId) => request('POST', `/v1/graphs/${encodeURIComponent(id)}/clone`, { newId }),
1467
+ createRunGraph: (id, yaml, steps) => request('POST', '/v1/graphs', { id, yaml, ...(steps && Object.keys(steps).length ? { steps } : {}) }),
1468
+ startRunGraphRun: (id) => request('POST', `/v1/graphs/${encodeURIComponent(id)}/run`),
1469
+ approveRunGraph: (id, version) => request('POST', `/v1/graphs/${encodeURIComponent(id)}/approve`, { version }),
1470
+ getRunGraphRun: (id, runId) => request('GET', `/v1/graphs/${encodeURIComponent(id)}/runs/${encodeURIComponent(runId)}`),
1471
+ getGraphKinds: (graph) => request('GET', `/v1/graph/kinds?graph=${graph}`),
1472
+ getGraphWizardPacks: () => request('GET', '/v1/graphs/wizard/packs'),
1473
+ graphWizard: async (body, opts) => {
1474
+ try {
1475
+ // The wizard drafts and validates with an LLM (20–60 s) — the 8 s default would cut it off.
1476
+ return await request<GraphWizardResponse>('POST', '/v1/graphs/wizard', body, { ...(opts?.signal ? { signal: opts.signal } : {}), timeoutMs: 180_000 });
1477
+ } catch (error) {
1478
+ if (error instanceof NexusApiError && error.status === 422 && error.body && typeof error.body === 'object' && 'ok' in error.body) {
1479
+ return error.body as GraphWizardResponse;
1480
+ }
1481
+ throw error;
1482
+ }
1483
+ },
1484
+ validateGraph: async (graph, yaml) => {
1485
+ try {
1486
+ return await request<GraphValidationResponse>('POST', '/v1/graphs/validate', { graph, yaml });
1487
+ } catch (error) {
1488
+ if (error instanceof NexusApiError && error.status === 422 && error.body && typeof error.body === 'object' && 'ok' in error.body) {
1489
+ return error.body as GraphValidationResponse;
1490
+ }
1491
+ throw error;
1492
+ }
1493
+ },
1494
+ // ---- workflows (Archon-port T2.3) ----
1495
+ getWorkflows: () => request('GET', '/v1/workflows'),
1496
+ getWorkflow: (name) => request('GET', `/v1/workflows/${encodeURIComponent(name)}`),
1497
+ getWorkflowHistory: (name) => request<WorkflowHistoryResponse>('GET', `/v1/workflows/${encodeURIComponent(name)}/history`),
1498
+ getWorkflowHistoryVersion: (name, id) => request<WorkflowHistoryVersionResponse>('GET', `/v1/workflows/${encodeURIComponent(name)}/history/${encodeURIComponent(id)}`),
1499
+ getWorkflowPins: (name) => request('GET', `/v1/workflows/${encodeURIComponent(name)}/pins`),
1500
+ putWorkflowPin: (name, nodeId, value, note) => request('PUT', `/v1/workflows/${encodeURIComponent(name)}/pins/${encodeURIComponent(nodeId)}`, {
1501
+ value,
1502
+ ...(note !== undefined ? { note } : {}),
1503
+ }),
1504
+ deleteWorkflowPin: (name, nodeId) => request('DELETE', `/v1/workflows/${encodeURIComponent(name)}/pins/${encodeURIComponent(nodeId)}`),
1505
+ saveWorkflow: (name, body) => request('PUT', `/v1/workflows/${encodeURIComponent(name)}`, body),
1506
+ deleteWorkflow: (name, dopts) => {
1507
+ const q = dopts?.scope ? `?scope=${encodeURIComponent(dopts.scope)}` : '';
1508
+ return request('DELETE', `/v1/workflows/${encodeURIComponent(name)}${q}`);
1509
+ },
1510
+ validateWorkflow: (yaml, opts) => request('POST', '/v1/workflows/validate', { yaml }, opts),
1511
+ generateWorkflow: (body, opts) => request('POST', '/v1/workflows/generate', body, opts),
1512
+ synthesizeWorkflow: (body, opts) => request('POST', '/v1/workflows/synth', body, opts),
1513
+ getTriggersSnapshot: (opts) => request('GET', '/v1/triggers', undefined, opts),
1514
+ getWorkflowTemplates: (opts) => request('GET', '/v1/workflows/templates', undefined, opts),
1515
+ runWorkflow: (name, args, runOpts) =>
1516
+ request('POST', `/v1/workflows/${encodeURIComponent(name)}/run`, {
1517
+ arguments: args,
1518
+ ...(runOpts?.dryRun ? { dryRun: true } : {}),
1519
+ ...(runOpts?.onlyNode !== undefined ? { onlyNode: runOpts.onlyNode } : {}),
1520
+ ...(runOpts?.fromNode !== undefined ? { fromNode: runOpts.fromNode } : {}),
1521
+ ...(runOpts?.fromRunId !== undefined ? { fromRunId: runOpts.fromRunId } : {}),
1522
+ }),
1523
+ getWorkflowRun: (runId) => request('GET', `/v1/workflows/runs/${encodeURIComponent(runId)}`),
1524
+ getWorkflowRuns: () => request('GET', '/v1/workflows/runs'),
1525
+ workflowsEventsUrl: () => (baseUrl ? `${baseUrl}/v1/workflows/events` : null),
1526
+ getPendingApprovals: () => request('GET', '/v1/workflows/runs/pending'),
1527
+ approveRun: (runId, body) =>
1528
+ request('POST', `/v1/workflows/runs/${encodeURIComponent(runId)}/approve`, body ?? {}),
1529
+ rejectRun: (runId, body) =>
1530
+ request('POST', `/v1/workflows/runs/${encodeURIComponent(runId)}/reject`, body ?? {}),
1531
+ // ---- config + secrets ----
1532
+ getConfig: () => request('GET', '/v1/config'),
1533
+ getChatFastPath: () => request('GET', '/v1/config/chat-fast-path'),
1534
+ getSwitches: () => request('GET', '/v1/config/switches'),
1535
+ getSwitch: (id) => request('GET', `/v1/config/switches/${encodeURIComponent(id)}`),
1536
+ putSwitch: (id, body) => request('PUT', `/v1/config/switches/${encodeURIComponent(id)}`, body),
1537
+ postSecret: (body) => request('POST', '/v1/config/secrets', body),
1538
+ deleteSecret: (id) => request('DELETE', `/v1/config/secrets/${encodeURIComponent(id)}`),
1539
+ getSecrets: () => request('GET', '/v1/config/secrets'),
1540
+ // M1-2b — friction-free model selection sub-tree round-trip.
1541
+ getModelTier: () => request('GET', '/v1/config/model-tier'),
1542
+ putModelTier: (body) => request('PUT', '/v1/config/model-tier', body),
1543
+ getPlatforms: () => request('GET', '/v1/platforms'),
1544
+ // ---- /setup wizard (Phase 1 · 2026-05-19) ----
1545
+ getLlmProviders: () => request<LlmProvidersResponse>('GET', '/v1/setup/llm-providers'),
1546
+ setLlmProvider: (body) => request<SetLlmProviderResponse>('POST', '/v1/setup/llm-provider', body),
1547
+ getObsidianSkills: () => request<ObsidianSkillsState>('GET', '/v1/setup/obsidian-skills'),
1548
+ setObsidian: (body) => request('POST', '/v1/setup/obsidian', body),
1549
+ setSkills: (body) => request('POST', '/v1/setup/skills', body),
1550
+ getChannelBots: () => request<ChannelBotsResponse>('GET', '/v1/setup/channel-bots'),
1551
+ setChannelBot: (body) => request<ChannelBotSetResponse>('POST', '/v1/setup/channel-bot', body),
1552
+ getChildLlmPreference: () => request<ChildLlmPreferenceResponse>('GET', '/v1/setup/child-llm'),
1553
+ setChildLlmPreference: (body) => request<{ resolved: ChildLlmResolved }>('POST', '/v1/setup/child-llm', body),
1554
+ getAnswerPriority: () => request<AnswerPriorityResponse>('GET', '/v1/setup/answer-priority'),
1555
+ setAnswerPriority: (value) => request<{ value: AnswerPriorityValue }>('POST', '/v1/setup/answer-priority', { value }),
1556
+ // ---- /settings PersonaCard (Phase 3 · 2026-05-19) ----
1557
+ getPersonas: () => request<PersonasListResponse>('GET', '/v1/personas'),
1558
+ getPersonaPresets: () => request<PersonaPresetsResponse>('GET', '/v1/persona-presets'),
1559
+ createPersona: (body) => request<PersonaPatchResponse>('POST', '/v1/personas', body),
1560
+ patchPersona: (id, edits) => request<PersonaPatchResponse>('PATCH', `/v1/personas/${encodeURIComponent(id)}`, edits),
1561
+ patchPersonaDescription: (personaId, description) =>
1562
+ request<PersonaPatchResponse>(
1563
+ 'PATCH',
1564
+ `/v1/personas/${encodeURIComponent(personaId)}`,
1565
+ { description },
1566
+ ),
1567
+ getRegistryCatalog: () => request<RegistryCatalogResponse>('GET', '/v1/registry/catalog'),
1568
+ getWorktrees: () => request('GET', '/v1/worktrees'),
1569
+ getDesignCheck: () => request('GET', '/v1/design-check'),
1570
+ getHarnessRuns: () => request('GET', '/v1/harness/runs'),
1571
+ getHarnessRunsSince: (sinceMs, options) => request('GET', `/v1/harness/runs?finishedSince=${Math.max(0, Math.floor(sinceMs))}${options?.includeLanded === false ? '&includeLanded=0' : ''}`),
1572
+ getHarnessRunTraversal: (runId) => request('GET', `/v1/harness/run-traversal?runId=${encodeURIComponent(runId)}`),
1573
+ getGraphInstanceView: (query) => {
1574
+ const params = new URLSearchParams({ source: query.source });
1575
+ if (query.source !== 'resource' && query.runId) params.set('runId', query.runId);
1576
+ if (query.source !== 'resource' && query.graphId) params.set('graphId', query.graphId);
1577
+ return request('GET', `/v1/graph-instance-view?${params}`);
1578
+ },
1579
+ getLogs: (query) => {
1580
+ const q = new URLSearchParams();
1581
+ for (const [k, v] of Object.entries(query)) if (v !== undefined && v !== '') q.set(k, String(v));
1582
+ return request('GET', `/v1/logs?${q.toString()}`);
1583
+ },
1584
+ getLogInstances: () => request('GET', '/v1/logs/instances'),
1585
+ getLiveDetail: () => request('GET', '/v1/live/detail'),
1586
+ getTrace: (q) => {
1587
+ const p = new URLSearchParams({ level: q.level });
1588
+ if (q.runId) p.set('runId', q.runId);
1589
+ if (q.store) p.set('store', q.store);
1590
+ if (q.limit) p.set('limit', String(q.limit));
1591
+ if (q.kind) p.set('kind', q.kind);
1592
+ if (q.q) p.set('q', q.q);
1593
+ if (q.from) p.set('from', new Date(q.from).toISOString());
1594
+ return request('GET', `/v1/trace?${p}`);
1595
+ },
1596
+ // ⛔ ref 를 다시 인코딩하지 않는다 — 서버가 우주 이름을 이미 인코딩해 실었고, 라우트는 날 pathname 을 `^log:` 로 읽는다.
1597
+ getTraceEvidence: (ref) => request('GET', `/v1/trace/evidence/${ref}`),
1598
+ getLiveShipped: (since) => request('GET', `/v1/live/shipped?since=${encodeURIComponent(since)}`),
1599
+ getRunScreen: (runId, lines = 60) => request('GET', `/v1/harness/run-screen?runId=${encodeURIComponent(runId)}&lines=${lines}`),
1600
+ stopHarness: (spaceId) => request('POST', '/v1/harness/stop', { spaceId }),
1601
+ setLiveDetail: (body) => request('POST', '/v1/live/detail', body),
1602
+ setDesignDirection: (id) => request('POST', '/v1/design-direction', { id }),
1603
+ createDesignSystem: (body) => request('POST', '/v1/design-system', body),
1604
+ listDesignPreviews: () => request('GET', '/v1/design-previews'),
1605
+ getDesignPreview: (system) => request('GET', `/v1/design-previews/${encodeURIComponent(system)}`),
1606
+ disposeWorktree: (body) => request('POST', '/v1/worktrees/dispose', body),
1607
+ // ---- log streaming ----
1608
+ getLogsTail: (id, lopts) => {
1609
+ const q = lopts?.lines !== undefined ? `?lines=${lopts.lines}` : '';
1610
+ return request('GET', `/v1/nexus/tabs/${encodeURIComponent(id)}/logs${q}`);
1611
+ },
1612
+ // ---- SSE ----
1613
+ subscribeEvents: (subOpts) => {
1614
+ const ESImpl = subOpts.EventSourceImpl ?? (globalThis as { EventSource?: typeof EventSource }).EventSource;
1615
+ if (!ESImpl) {
1616
+ throw new Error('EventSource not available · pass EventSourceImpl');
1617
+ }
1618
+ const topics = (subOpts.topics ?? []).join(',');
1619
+ const url = `${baseUrl}/v1/events${topics ? `?topics=${encodeURIComponent(topics)}` : ''}`;
1620
+ const es = new ESImpl(url);
1621
+ const handler = (e: MessageEvent): void => {
1622
+ try {
1623
+ const ev = JSON.parse(e.data) as NexusEvent;
1624
+ subOpts.onEvent(ev);
1625
+ } catch (err) {
1626
+ subOpts.onError?.(err as Error);
1627
+ }
1628
+ };
1629
+ // The server (`src/nexus/api/events.ts`) emits each frame as
1630
+ // `event: <kind>\ndata: <json>\n\n`. Per the EventSource spec a
1631
+ // frame with an explicit `event:` field dispatches to a named
1632
+ // listener — `addEventListener('message', ...)` ALONE will miss
1633
+ // every frame that has the field. So we attach the same handler
1634
+ // to each known kind explicitly. Kinds list mirrors
1635
+ // `NexusEvent.kind` in `src/nexus/state/state.ts`.
1636
+ //
1637
+ // Caller can also pass `kinds` to extend (forward-compat — when
1638
+ // the server adds a kind the union will fail typecheck, but the
1639
+ // wire still flows because callers can pre-register).
1640
+ const KNOWN_KINDS: readonly string[] = [
1641
+ 'nexus.boot',
1642
+ 'nexus.shutdown',
1643
+ 'tab.created',
1644
+ 'tab.up',
1645
+ 'tab.down',
1646
+ 'tab.unhealthy',
1647
+ 'tab.restart',
1648
+ 'tab.halt',
1649
+ 'config.changed',
1650
+ 'workflow.approval.pending',
1651
+ 'workflow.approval.resolved',
1652
+ 'workflow.run.started',
1653
+ 'workflow.run.node-started',
1654
+ 'workflow.run.node-skipped',
1655
+ 'workflow.run.node-done',
1656
+ 'workflow.run.completed',
1657
+ 'workflow.run.failed',
1658
+ // β-1a · in-app HITL banner
1659
+ 'hitl.banner.show',
1660
+ 'hitl.banner.cancel',
1661
+ // 2026-05-09 dogfood fix — IntentPanel ranker fan-out via
1662
+ // global event bus. The container subscribes with
1663
+ // `kinds: ['intent-prediction.ranking']` but `subscribeEvents`
1664
+ // only attaches named-event listeners for kinds in this
1665
+ // KNOWN_KINDS array (or what `subOpts.kinds` adds — see the
1666
+ // merge below). We bake the kind in here so callers don't
1667
+ // need to pass it.
1668
+ 'intent-prediction.ranking',
1669
+ ];
1670
+ const allKinds = subOpts.kinds
1671
+ ? [...new Set([...KNOWN_KINDS, ...subOpts.kinds])]
1672
+ : KNOWN_KINDS;
1673
+ es.addEventListener('message', handler as EventListener);
1674
+ for (const k of allKinds) {
1675
+ es.addEventListener(k, handler as EventListener);
1676
+ }
1677
+ es.addEventListener('error', () => {
1678
+ try {
1679
+ debugLog('nexus.sse.error', {
1680
+ url,
1681
+ readyState: es.readyState,
1682
+ connectionState: es.readyState === 0 ? 'reconnecting' : es.readyState === 2 ? 'closed' : 'open',
1683
+ });
1684
+ } catch { /* observability must not disrupt SSE error handling */ }
1685
+ subOpts.onError?.(new Error('SSE error'));
1686
+ });
1687
+ return () => { try { es.close(); } catch { /* idempotent */ } };
1688
+ },
1689
+ subscribeLogs: (id, subOpts) => {
1690
+ const ESImpl = subOpts.EventSourceImpl ?? (globalThis as { EventSource?: typeof EventSource }).EventSource;
1691
+ if (!ESImpl) {
1692
+ throw new Error('EventSource not available · pass EventSourceImpl');
1693
+ }
1694
+ const url = `${baseUrl}/v1/nexus/tabs/${encodeURIComponent(id)}/logs?stream=1`;
1695
+ const es = new ESImpl(url);
1696
+ const handler = (e: MessageEvent): void => {
1697
+ try {
1698
+ const parsed = JSON.parse(e.data) as { stream: 'stdout' | 'stderr'; line: string };
1699
+ subOpts.onLine(parsed);
1700
+ } catch (err) {
1701
+ subOpts.onError?.(err as Error);
1702
+ }
1703
+ };
1704
+ es.addEventListener('message', handler as EventListener);
1705
+ es.addEventListener('log', handler as EventListener);
1706
+ es.addEventListener('error', () => {
1707
+ try {
1708
+ debugLog('nexus.sse.error', {
1709
+ url,
1710
+ readyState: es.readyState,
1711
+ connectionState: es.readyState === 0 ? 'reconnecting' : es.readyState === 2 ? 'closed' : 'open',
1712
+ });
1713
+ } catch { /* observability must not disrupt SSE error handling */ }
1714
+ subOpts.onError?.(new Error('SSE error'));
1715
+ });
1716
+ return () => { try { es.close(); } catch { /* idempotent */ } };
1717
+ },
1718
+ };
1719
+ }