agentworkshop 0.7.6 → 0.7.7

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 (517) hide show
  1. package/.AgentWorkShop/prompts/host-tools.json +1 -1
  2. package/.output/.AgentWorkShop/prompts/host-tools.json +1 -1
  3. package/.output/nitro.json +1 -1
  4. package/.output/public/_nuxt/{rzGB_ojX.js → 3612gD2V.js} +2 -2
  5. package/.output/public/_nuxt/8eIQAVlb.js +1 -0
  6. package/.output/public/_nuxt/Ah9qOv1m.js +1 -0
  7. package/.output/public/_nuxt/{DdPeifHR.js → B4Fia4FB.js} +1 -1
  8. package/.output/public/_nuxt/B7aqqzkY.js +1 -0
  9. package/.output/public/_nuxt/BJ-fxrSw.js +1 -0
  10. package/.output/public/_nuxt/{DPDqAD1e.js → BSXx2vqR.js} +1 -1
  11. package/.output/public/_nuxt/{CdSgfcYR.js → BVZjSVs2.js} +1 -1
  12. package/.output/public/_nuxt/{DP6bdyIp.js → BVzDoF8t.js} +1 -1
  13. package/.output/public/_nuxt/BYL0Rjqj.js +7 -0
  14. package/.output/public/_nuxt/{CXmkVXS5.js → BjVLsC3M.js} +1 -1
  15. package/.output/public/_nuxt/{7ZABjMRh2.js → BkfchkK62.js} +1 -1
  16. package/.output/public/_nuxt/BnVoQ74r.js +1 -0
  17. package/.output/public/_nuxt/Bnp4vIAf.js +1 -0
  18. package/.output/public/_nuxt/BsMpJf7S.js +70 -0
  19. package/.output/public/_nuxt/{Z8k0uMSI.js → Bt_HDizI.js} +1 -1
  20. package/.output/public/_nuxt/Bu-P92Pe.js +18 -0
  21. package/.output/public/_nuxt/ButLXkjo.js +2 -0
  22. package/.output/public/_nuxt/C-GarxYC.js +1 -0
  23. package/.output/public/_nuxt/{D8DDDzV62.js → C2iWjzEC2.js} +1 -1
  24. package/.output/public/_nuxt/{HWXLx5Hz.js → C8dxXc6K.js} +5 -5
  25. package/.output/public/_nuxt/CGdPdJPP.js +1 -0
  26. package/.output/public/_nuxt/{CyygA0q4.js → CQiKcuoG.js} +4 -4
  27. package/.output/public/_nuxt/{CN7Zh8GQ.js → CRGlf1Gb.js} +1 -1
  28. package/.output/public/_nuxt/{DSBfvCi5.js → CblLEiCZ.js} +7 -7
  29. package/.output/public/_nuxt/Cd15nPnG2.js +1 -0
  30. package/.output/public/_nuxt/{OwJ1LJkF.js → CsCpu2Zh.js} +1 -1
  31. package/.output/public/_nuxt/CvbHIGQY2.js +1 -0
  32. package/.output/public/_nuxt/Cyk3du4K2.js +1 -0
  33. package/.output/public/_nuxt/{DVQAz9WI.js → D4qXvjuV.js} +2 -2
  34. package/.output/public/_nuxt/{CfIXY-ET.js → DCEyMaN-.js} +1 -1
  35. package/.output/public/_nuxt/{BFYNhG9S.js → DCXIGxzT.js} +1 -1
  36. package/.output/public/_nuxt/{B9aPoQvt.js → DM8DS9MA.js} +1 -1
  37. package/.output/public/_nuxt/{ChnfyQHz.js → DNzaswei.js} +1 -1
  38. package/.output/public/_nuxt/{CrFGZYVB2.js → DYZBdSSg2.js} +1 -1
  39. package/.output/public/_nuxt/{dObsRdSQ.js → DZk24ego.js} +1 -1
  40. package/.output/public/_nuxt/DeYsUzhr.js +1 -0
  41. package/.output/public/_nuxt/Dk6pq9JB2.js +1 -0
  42. package/.output/public/_nuxt/{ByGNWgAr.js → Do88WZG2.js} +3 -3
  43. package/.output/public/_nuxt/{R_WxTozV2.js → Du-eSpo2.js} +1 -1
  44. package/.output/public/_nuxt/OmpTerminalPanel.B_Pl5Ynm.css +1 -0
  45. package/.output/public/_nuxt/{Bsc69G4x.js → VnIWJ0ts.js} +3 -3
  46. package/.output/public/_nuxt/_id_.BzKMZnLe.css +1 -0
  47. package/.output/public/_nuxt/_id_.CbpDAWRh.css +1 -0
  48. package/.output/public/_nuxt/{_wsId_.DET_GinP.css → _wsId_.COUzMXpP.css} +1 -1
  49. package/.output/public/_nuxt/agents.BlejnOOC.css +1 -0
  50. package/.output/public/_nuxt/builds/latest.json +1 -1
  51. package/.output/public/_nuxt/builds/meta/14df171d-89cb-43ec-ad6f-9df72d6da7f5.json +1 -0
  52. package/.output/public/_nuxt/daq.zZ8GR433.css +1 -0
  53. package/.output/public/_nuxt/{default.D17kXlD6.css → default.V3_hUJq1.css} +1 -1
  54. package/.output/public/_nuxt/{B4GHHF6d2.js → fQUs58kX2.js} +1 -1
  55. package/.output/public/_nuxt/p7wSGMtc.js +1 -0
  56. package/.output/public/_nuxt/tRBT-plo.js +1 -0
  57. package/.output/server/chunks/_/SearchOutlined.mjs +4 -4
  58. package/.output/server/chunks/_/SearchOutlined.mjs.map +1 -1
  59. package/.output/server/chunks/_/character-asset.repo.mjs +3 -6
  60. package/.output/server/chunks/_/character-asset.repo.mjs.map +1 -1
  61. package/.output/server/chunks/_/host-bindings.mjs +1 -1
  62. package/.output/server/chunks/_/nitro.mjs +4967 -2035
  63. package/.output/server/chunks/_/nitro.mjs.map +1 -1
  64. package/.output/server/chunks/_/scene-layout.repo.mjs +4 -10
  65. package/.output/server/chunks/_/scene-layout.repo.mjs.map +1 -1
  66. package/.output/server/chunks/build/{Col-D7fjGDF6.mjs → Col-biaNnEPf.mjs} +2 -2
  67. package/.output/server/chunks/build/{Col-D7fjGDF6.mjs.map → Col-biaNnEPf.mjs.map} +1 -1
  68. package/.output/server/chunks/build/{OmpTerminalPanel-B_SYhmgb.mjs → OmpTerminalPanel-COphA1br.mjs} +20 -19
  69. package/.output/server/chunks/build/OmpTerminalPanel-COphA1br.mjs.map +1 -0
  70. package/.output/server/chunks/build/{TownView-Bl8Gkcxi.mjs → TownView-B5KifIaT.mjs} +4 -4
  71. package/.output/server/chunks/build/{TownView-Bl8Gkcxi.mjs.map → TownView-B5KifIaT.mjs.map} +1 -1
  72. package/.output/server/chunks/build/{_id_-GnRJPykX.mjs → _id_-C-ewLgfl.mjs} +119 -119
  73. package/.output/server/chunks/build/{_id_-GnRJPykX.mjs.map → _id_-C-ewLgfl.mjs.map} +1 -1
  74. package/.output/server/chunks/build/{_id_-CWLFGZjV.mjs → _id_-Ct4Jhvl1.mjs} +42 -38
  75. package/.output/server/chunks/build/_id_-Ct4Jhvl1.mjs.map +1 -0
  76. package/.output/server/chunks/build/{_wsId_-BhQMjyHG.mjs → _wsId_-CanI_6Su.mjs} +591 -53
  77. package/.output/server/chunks/build/{_wsId_-BhQMjyHG.mjs.map → _wsId_-CanI_6Su.mjs.map} +1 -1
  78. package/.output/server/chunks/build/{agents-D4l1icvn.mjs → agents-DSOptxXA.mjs} +146 -91
  79. package/.output/server/chunks/build/agents-DSOptxXA.mjs.map +1 -0
  80. package/.output/server/chunks/build/{alert-gH-s7yIh.mjs → alert-qJnjyRcP.mjs} +3 -3
  81. package/.output/server/chunks/build/{alert-gH-s7yIh.mjs.map → alert-qJnjyRcP.mjs.map} +1 -1
  82. package/.output/server/chunks/build/{button-BhbX5ACI.mjs → button-DEcZFcqN.mjs} +3 -3
  83. package/.output/server/chunks/build/{button-BhbX5ACI.mjs.map → button-DEcZFcqN.mjs.map} +1 -1
  84. package/.output/server/chunks/build/{card-l4BbX67w.mjs → card-Dipvaykh.mjs} +5 -5
  85. package/.output/server/chunks/build/{card-l4BbX67w.mjs.map → card-Dipvaykh.mjs.map} +1 -1
  86. package/.output/server/chunks/build/{channel-templates-DqjtC-R0.mjs → channel-templates-BK0KuPOd.mjs} +13 -12
  87. package/.output/server/chunks/build/channel-templates-BK0KuPOd.mjs.map +1 -0
  88. package/.output/server/chunks/build/{checkbox-BF11p3dH.mjs → checkbox-dzcpU_Cd.mjs} +4 -4
  89. package/.output/server/chunks/build/{checkbox-BF11p3dH.mjs.map → checkbox-dzcpU_Cd.mjs.map} +1 -1
  90. package/.output/server/chunks/build/{daq-BOgpn9sl.mjs → daq-D9RA_uze.mjs} +102 -102
  91. package/.output/server/chunks/build/{daq-BOgpn9sl.mjs.map → daq-D9RA_uze.mjs.map} +1 -1
  92. package/.output/server/chunks/build/dcw-BTM5YU-B.mjs +1 -1
  93. package/.output/server/chunks/build/{default-CKJWhkot.mjs → default-BfWGTlbj.mjs} +81 -23
  94. package/.output/server/chunks/build/{default-CKJWhkot.mjs.map → default-BfWGTlbj.mjs.map} +1 -1
  95. package/.output/server/chunks/build/{drawer-CVValqoh.mjs → drawer-Cmh90erI.mjs} +3 -3
  96. package/.output/server/chunks/build/{drawer-CVValqoh.mjs.map → drawer-Cmh90erI.mjs.map} +1 -1
  97. package/.output/server/chunks/build/{dropdown-ByCsEWlQ.mjs → dropdown-CGQ0KAzA.mjs} +2 -2
  98. package/.output/server/chunks/build/{dropdown-ByCsEWlQ.mjs.map → dropdown-CGQ0KAzA.mjs.map} +1 -1
  99. package/.output/server/chunks/build/{dropdown-Dex8PXu6.mjs → dropdown-vhn1NPFs.mjs} +4 -4
  100. package/.output/server/chunks/build/{dropdown-Dex8PXu6.mjs.map → dropdown-vhn1NPFs.mjs.map} +1 -1
  101. package/.output/server/chunks/build/{input-number-BBlRoAJ7.mjs → input-number-Bd55elNN.mjs} +5 -5
  102. package/.output/server/chunks/build/{input-number-BBlRoAJ7.mjs.map → input-number-Bd55elNN.mjs.map} +1 -1
  103. package/.output/server/chunks/build/{input--KMeLYqZ.mjs → input-sf_BT6o6.mjs} +3 -3
  104. package/.output/server/chunks/build/{input--KMeLYqZ.mjs.map → input-sf_BT6o6.mjs.map} +1 -1
  105. package/.output/server/chunks/build/logs-Dyk0I2I9.mjs +1 -1
  106. package/.output/server/chunks/build/{menu-xN-SXb9Q.mjs → menu-WCrlpYVh.mjs} +3 -3
  107. package/.output/server/chunks/build/{menu-xN-SXb9Q.mjs.map → menu-WCrlpYVh.mjs.map} +1 -1
  108. package/.output/server/chunks/build/{modal-DrCOcjrl.mjs → modal-yvUquPj5.mjs} +4 -4
  109. package/.output/server/chunks/build/{modal-DrCOcjrl.mjs.map → modal-yvUquPj5.mjs.map} +1 -1
  110. package/.output/server/chunks/build/{monitor-KW8WLOJd.mjs → monitor-MIOvsyLa.mjs} +21 -21
  111. package/.output/server/chunks/build/{monitor-KW8WLOJd.mjs.map → monitor-MIOvsyLa.mjs.map} +1 -1
  112. package/.output/server/chunks/build/pages-DR2bzczM.mjs +1 -1
  113. package/.output/server/chunks/build/{plugins-B-ZNey0Z.mjs → plugins-DnOBIWGg.mjs} +7 -7
  114. package/.output/server/chunks/build/{plugins-B-ZNey0Z.mjs.map → plugins-DnOBIWGg.mjs.map} +1 -1
  115. package/.output/server/chunks/build/{popconfirm-C5H1Qoh3.mjs → popconfirm-CRaHcz5O.mjs} +4 -4
  116. package/.output/server/chunks/build/{popconfirm-C5H1Qoh3.mjs.map → popconfirm-CRaHcz5O.mjs.map} +1 -1
  117. package/.output/server/chunks/build/{useWorkshopApi-Bh5VUHWu.mjs → segmented-DPe9ZzLO.mjs} +7 -78
  118. package/.output/server/chunks/build/segmented-DPe9ZzLO.mjs.map +1 -0
  119. package/.output/server/chunks/build/{select-D7H2ysgT.mjs → select-D-CeE5vY.mjs} +3 -3
  120. package/.output/server/chunks/build/{select-D7H2ysgT.mjs.map → select-D-CeE5vY.mjs.map} +1 -1
  121. package/.output/server/chunks/build/{settings-Cr06lbRy.mjs → settings-DA8IkGLo.mjs} +11 -11
  122. package/.output/server/chunks/build/{settings-Cr06lbRy.mjs.map → settings-DA8IkGLo.mjs.map} +1 -1
  123. package/.output/server/chunks/build/{space-DCwIlnkI.mjs → space-CCBYAkXt.mjs} +2 -2
  124. package/.output/server/chunks/build/{space-DCwIlnkI.mjs.map → space-CCBYAkXt.mjs.map} +1 -1
  125. package/.output/server/chunks/build/{switch-VC0m9ede.mjs → switch-CelRXpcy.mjs} +3 -3
  126. package/.output/server/chunks/build/{switch-VC0m9ede.mjs.map → switch-CelRXpcy.mjs.map} +1 -1
  127. package/.output/server/chunks/build/{table-BksLg3Q_.mjs → table-Cswq-l2r.mjs} +10 -10
  128. package/.output/server/chunks/build/{table-BksLg3Q_.mjs.map → table-Cswq-l2r.mjs.map} +1 -1
  129. package/.output/server/chunks/build/{tabs-CzUfD3iX.mjs → tabs-BM3tAh_J.mjs} +5 -5
  130. package/.output/server/chunks/build/{tabs-CzUfD3iX.mjs.map → tabs-BM3tAh_J.mjs.map} +1 -1
  131. package/.output/server/chunks/build/{tag-oQI3VtqM.mjs → tag-NO9jEqKy.mjs} +4 -4
  132. package/.output/server/chunks/build/{tag-oQI3VtqM.mjs.map → tag-NO9jEqKy.mjs.map} +1 -1
  133. package/.output/server/chunks/build/{teams-QR3BBF7A.mjs → teams-BhSKBBBM.mjs} +15 -14
  134. package/.output/server/chunks/build/teams-BhSKBBBM.mjs.map +1 -0
  135. package/.output/server/chunks/build/{tokens-DFvr_TLj.mjs → tokens-D_eyxmcv.mjs} +16 -16
  136. package/.output/server/chunks/build/{tokens-DFvr_TLj.mjs.map → tokens-D_eyxmcv.mjs.map} +1 -1
  137. package/.output/server/chunks/build/town-BUqRobze.mjs +1 -1
  138. package/.output/server/chunks/build/{town-_4tEEEVW.mjs → town-DPtOPRRO.mjs} +4 -4
  139. package/.output/server/chunks/build/{town-_4tEEEVW.mjs.map → town-DPtOPRRO.mjs.map} +1 -1
  140. package/.output/server/chunks/build/useLocalTime-9a4B-aHv.mjs +42 -0
  141. package/.output/server/chunks/build/useLocalTime-9a4B-aHv.mjs.map +1 -0
  142. package/.output/server/chunks/build/useWorkshopApi-D2gq06N2.mjs +81 -0
  143. package/.output/server/chunks/build/useWorkshopApi-D2gq06N2.mjs.map +1 -0
  144. package/.output/server/chunks/build/useWorkshopWs-B3j5wIAK.mjs +1 -1
  145. package/.output/server/chunks/build/user-Dk-ytEUV.mjs +1 -1
  146. package/.output/server/chunks/build/{users-4FZ0yFUO.mjs → users-CmVvb1oq.mjs} +16 -16
  147. package/.output/server/chunks/build/{users-4FZ0yFUO.mjs.map → users-CmVvb1oq.mjs.map} +1 -1
  148. package/.output/server/chunks/build/{workshop-k0XZTFKg.mjs → workshop-iCzNRifn.mjs} +9 -9
  149. package/.output/server/chunks/build/{workshop-k0XZTFKg.mjs.map → workshop-iCzNRifn.mjs.map} +1 -1
  150. package/.output/server/chunks/build/workspaces-IfORCDJE.mjs +1 -1
  151. package/.output/server/chunks/routes/api/health.get.mjs +1 -1
  152. package/.output/server/chunks/routes/api/index.get.mjs +1 -1
  153. package/.output/server/chunks/routes/api/index.post.mjs +1 -1
  154. package/.output/server/chunks/routes/api/mcp/workshop.mjs +1 -1
  155. package/.output/server/chunks/routes/api/metrics.mjs +1 -1
  156. package/.output/server/chunks/routes/api/plugins/_name/_...path_.mjs +1 -1
  157. package/.output/server/chunks/routes/api/plugins/client/_name_.get.mjs +1 -1
  158. package/.output/server/chunks/routes/api/plugins/manifest.get.mjs +1 -1
  159. package/.output/server/chunks/routes/api/system/config.get.mjs +1 -1
  160. package/.output/server/chunks/routes/api/system/index.get.mjs +3 -3
  161. package/.output/server/chunks/routes/api/system/index.get.mjs.map +1 -1
  162. package/.output/server/chunks/routes/api/system/index.patch.mjs +1 -1
  163. package/.output/server/chunks/routes/api/system/monitor/terminal/ws.mjs +1 -1
  164. package/.output/server/chunks/routes/api/system/monitor/terminate.post.mjs +1 -1
  165. package/.output/server/chunks/routes/api/system/monitor.get.mjs +1 -1
  166. package/.output/server/chunks/routes/api/system/settings/events.get.mjs +1 -1
  167. package/.output/server/chunks/routes/api/system/settings/reset.post.mjs +1 -1
  168. package/.output/server/chunks/routes/api/users/_id_.delete.mjs +1 -1
  169. package/.output/server/chunks/routes/api/users/_id_.get.mjs +1 -1
  170. package/.output/server/chunks/routes/api/users/_id_.put.mjs +1 -1
  171. package/.output/server/chunks/routes/api/users/index.get.mjs +1 -1
  172. package/.output/server/chunks/routes/api/users/index.post.mjs +1 -1
  173. package/.output/server/chunks/routes/api/users/login.post.mjs +1 -1
  174. package/.output/server/chunks/routes/api/users/logout.post.mjs +1 -1
  175. package/.output/server/chunks/routes/api/users/me.get.mjs +1 -1
  176. package/.output/server/chunks/routes/api/users/register.post.mjs +1 -1
  177. package/.output/server/chunks/routes/api/users/tokens/_id/token.get.mjs +1 -1
  178. package/.output/server/chunks/routes/api/users/tokens/_id_.delete.mjs +1 -1
  179. package/.output/server/chunks/routes/api/users/tokens/_id_.patch.mjs +1 -1
  180. package/.output/server/chunks/routes/api/workshop/_...path_.mjs +1 -1
  181. package/.output/server/chunks/routes/api/workshop/a2a/_agentId/index.get.mjs +1 -1
  182. package/.output/server/chunks/routes/api/workshop/a2a/_agentId/index.post.mjs +1 -1
  183. package/.output/server/chunks/routes/api/workshop/a2a/send.post.mjs +1 -1
  184. package/.output/server/chunks/routes/api/workshop/agent-tools/approvals/_id/decide.post.mjs +1 -1
  185. package/.output/server/chunks/routes/api/workshop/agent-tools/bindings/_id_.delete.mjs +1 -1
  186. package/.output/server/chunks/routes/api/workshop/agent-tools/bindings/_id_.patch.mjs +1 -1
  187. package/.output/server/chunks/routes/api/workshop/agent-tools/index.get.mjs +1 -1
  188. package/.output/server/chunks/routes/api/workshop/agent-tools/index.post.mjs +1 -1
  189. package/.output/server/chunks/routes/api/workshop/agent-tools/index2.get.mjs +1 -1
  190. package/.output/server/chunks/routes/api/workshop/agent-tools/invoke.post.mjs +6 -14
  191. package/.output/server/chunks/routes/api/workshop/agent-tools/invoke.post.mjs.map +1 -1
  192. package/.output/server/chunks/routes/api/workshop/agent-tools/list.get.mjs +39 -0
  193. package/.output/server/chunks/routes/api/workshop/agent-tools/list.get.mjs.map +1 -0
  194. package/.output/server/chunks/routes/api/workshop/agents/_id_.delete.mjs +1 -1
  195. package/.output/server/chunks/routes/api/workshop/agents/_id_.get.mjs +1 -1
  196. package/.output/server/chunks/routes/api/workshop/agents/_id_.patch.mjs +1 -1
  197. package/.output/server/chunks/routes/api/workshop/agents/subscribe.post.mjs +1 -1
  198. package/.output/server/chunks/routes/api/workshop/approvals/_id/decide.post.mjs +1 -1
  199. package/.output/server/chunks/routes/api/workshop/assets/character/_id_.delete.mjs +1 -1
  200. package/.output/server/chunks/routes/api/workshop/assets/devices/_id_.delete.mjs +1 -1
  201. package/.output/server/chunks/routes/api/workshop/assets/index.get.mjs +1 -1
  202. package/.output/server/chunks/routes/api/workshop/assets/index.post.mjs +2 -2
  203. package/.output/server/chunks/routes/api/workshop/assets/index2.get.mjs +1 -1
  204. package/.output/server/chunks/routes/api/workshop/assets/index2.post.mjs +2 -2
  205. package/.output/server/chunks/routes/api/workshop/audit.get.mjs +1 -1
  206. package/.output/server/chunks/routes/api/workshop/caller.mjs +1 -1
  207. package/.output/server/chunks/routes/api/workshop/channel-templates/_id/instantiate.post.mjs +2 -2
  208. package/.output/server/chunks/routes/api/workshop/channel-templates/_id_.delete.mjs +1 -1
  209. package/.output/server/chunks/routes/api/workshop/channel-templates/_id_.get.mjs +1 -1
  210. package/.output/server/chunks/routes/api/workshop/channel-templates/_id_.patch.mjs +1 -1
  211. package/.output/server/chunks/routes/api/workshop/channel-templates/from-channel.post.mjs +1 -1
  212. package/.output/server/chunks/routes/api/workshop/channels/_id/activate.post.mjs +2 -2
  213. package/.output/server/chunks/routes/api/workshop/channels/_id/agents/_agentId/index.get.mjs +1 -1
  214. package/.output/server/chunks/routes/api/workshop/channels/_id/agents/_agentId/index.post.mjs +1 -1
  215. package/.output/server/chunks/routes/api/workshop/channels/_id/agents/_agentId/memories/_memoryId_.delete.mjs +1 -1
  216. package/.output/server/chunks/routes/api/workshop/channels/_id/agents/_agentId/memories/search.post.mjs +1 -1
  217. package/.output/server/chunks/routes/api/workshop/channels/_id/agents/_agentId/model.patch.mjs +1 -1
  218. package/.output/server/chunks/routes/api/workshop/channels/_id/agents/_agentId/position.patch.mjs +1 -1
  219. package/.output/server/chunks/routes/api/workshop/channels/_id/agents/_agentId/range.patch.mjs +1 -1
  220. package/.output/server/chunks/routes/api/workshop/channels/_id/agents/_agentId/stop.post.mjs +1 -1
  221. package/.output/server/chunks/routes/api/workshop/channels/_id/agents/_agentId_.delete.mjs +1 -1
  222. package/.output/server/chunks/routes/api/workshop/channels/_id/agents/_agentId_.patch.mjs +1 -1
  223. package/.output/server/chunks/routes/api/workshop/channels/_id/events.get.mjs +1 -1
  224. package/.output/server/chunks/routes/api/workshop/channels/_id/index.get.mjs +1 -1
  225. package/.output/server/chunks/routes/api/workshop/channels/_id/index.post.mjs +2 -2
  226. package/.output/server/chunks/routes/api/workshop/channels/_id/index2.get.mjs +1 -1
  227. package/.output/server/chunks/routes/api/workshop/channels/_id/index2.post.mjs +1 -1
  228. package/.output/server/chunks/routes/api/workshop/channels/_id/index3.get.mjs +1 -1
  229. package/.output/server/chunks/routes/api/workshop/channels/_id/index3.post.mjs +1 -1
  230. package/.output/server/chunks/routes/api/workshop/channels/_id/index4.get.mjs +1 -1
  231. package/.output/server/chunks/routes/api/workshop/channels/_id/index4.post.mjs +1 -1
  232. package/.output/server/chunks/routes/api/workshop/channels/_id/memories/_memoryId_.delete.mjs +1 -1
  233. package/.output/server/chunks/routes/api/workshop/channels/_id/queue.get.mjs +1 -1
  234. package/.output/server/chunks/routes/api/workshop/channels/_id/terminals.get.mjs +2 -2
  235. package/.output/server/chunks/routes/api/workshop/channels/_id_.delete.mjs +1 -1
  236. package/.output/server/chunks/routes/api/workshop/channels/index.get.mjs +2 -2
  237. package/.output/server/chunks/routes/api/workshop/channels/index.patch.mjs +9 -2
  238. package/.output/server/chunks/routes/api/workshop/channels/index.patch.mjs.map +1 -1
  239. package/.output/server/chunks/routes/api/workshop/channels.get.mjs +1 -1
  240. package/.output/server/chunks/routes/api/workshop/channels.post.mjs +2 -2
  241. package/.output/server/chunks/routes/api/workshop/daq/_id/bind.post.mjs +2 -2
  242. package/.output/server/chunks/routes/api/workshop/daq/_id/frames/content.get.mjs +2 -2
  243. package/.output/server/chunks/routes/api/workshop/daq/_id/frames.get.mjs +2 -2
  244. package/.output/server/chunks/routes/api/workshop/daq/_id/samples.get.mjs +6 -4
  245. package/.output/server/chunks/routes/api/workshop/daq/_id/samples.get.mjs.map +1 -1
  246. package/.output/server/chunks/routes/api/workshop/daq/_id/test.post.mjs +2 -2
  247. package/.output/server/chunks/routes/api/workshop/daq/_id_.delete.mjs +2 -2
  248. package/.output/server/chunks/routes/api/workshop/daq/_id_.patch.mjs +2 -2
  249. package/.output/server/chunks/routes/api/workshop/daq/alarms/_id/ack.post.mjs +2 -2
  250. package/.output/server/chunks/routes/api/workshop/daq/alarms.get.mjs +2 -2
  251. package/.output/server/chunks/routes/api/workshop/daq/controller.post.mjs +2 -2
  252. package/.output/server/chunks/routes/api/workshop/daq/index.post.mjs +2 -2
  253. package/.output/server/chunks/routes/api/workshop/daq/infra/reconnect.post.mjs +2 -2
  254. package/.output/server/chunks/routes/api/workshop/daq/infra.get.mjs +2 -2
  255. package/.output/server/chunks/routes/api/workshop/daq/templates/_key_.delete.mjs +2 -2
  256. package/.output/server/chunks/routes/api/workshop/daq/templates/_key_.patch.mjs +2 -2
  257. package/.output/server/chunks/routes/api/workshop/daq/test-driver.post.mjs +2 -2
  258. package/.output/server/chunks/routes/api/workshop/dcw/_id/bind.post.mjs +2 -2
  259. package/.output/server/chunks/routes/api/workshop/dcw/_id/param-ledger.get.mjs +2 -2
  260. package/.output/server/chunks/routes/api/workshop/dcw/_id/read.post.mjs +2 -2
  261. package/.output/server/chunks/routes/api/workshop/dcw/_id/test.post.mjs +2 -2
  262. package/.output/server/chunks/routes/api/workshop/dcw/_id/write.post.mjs +2 -2
  263. package/.output/server/chunks/routes/api/workshop/dcw/_id_.delete.mjs +2 -2
  264. package/.output/server/chunks/routes/api/workshop/dcw/_id_.patch.mjs +2 -2
  265. package/.output/server/chunks/routes/api/workshop/dcw/controller.post.mjs +2 -2
  266. package/.output/server/chunks/routes/api/workshop/dcw/index.get.mjs +2 -2
  267. package/.output/server/chunks/routes/api/workshop/dcw/index.post.mjs +2 -2
  268. package/.output/server/chunks/routes/api/workshop/dcw/index2.get.mjs +2 -2
  269. package/.output/server/chunks/routes/api/workshop/dcw/index2.post.mjs +2 -2
  270. package/.output/server/chunks/routes/api/workshop/dcw/index3.get.mjs +2 -2
  271. package/.output/server/chunks/routes/api/workshop/dcw/index3.post.mjs +2 -2
  272. package/.output/server/chunks/routes/api/workshop/dcw/index4.get.mjs +2 -2
  273. package/.output/server/chunks/routes/api/workshop/dcw/index4.post.mjs +2 -2
  274. package/.output/server/chunks/routes/api/workshop/dcw/index5.get.mjs +2 -2
  275. package/.output/server/chunks/routes/api/workshop/dcw/journal/node/_nodeId/rollback.post.mjs +2 -2
  276. package/.output/server/chunks/routes/api/workshop/dcw/line/query.get.mjs +2 -2
  277. package/.output/server/chunks/routes/api/workshop/dcw/lines/_id/start.post.mjs +2 -2
  278. package/.output/server/chunks/routes/api/workshop/dcw/lines/_id/stop.post.mjs +2 -2
  279. package/.output/server/chunks/routes/api/workshop/dcw/lines/_id_.delete.mjs +2 -2
  280. package/.output/server/chunks/routes/api/workshop/dcw/lines/_id_.patch.mjs +2 -2
  281. package/.output/server/chunks/routes/api/workshop/dcw/optimizations/_id/judge.post.mjs +2 -2
  282. package/.output/server/chunks/routes/api/workshop/dcw/optimizations/_id/rollback.post.mjs +2 -2
  283. package/.output/server/chunks/routes/api/workshop/dcw/optimizations/_id/series.get.mjs +2 -2
  284. package/.output/server/chunks/routes/api/workshop/dcw/optimizations/_id_.get.mjs +2 -2
  285. package/.output/server/chunks/routes/api/workshop/dcw/products/_id_.delete.mjs +2 -2
  286. package/.output/server/chunks/routes/api/workshop/dcw/products/_id_.patch.mjs +2 -2
  287. package/.output/server/chunks/routes/api/workshop/dcw/recipes/_id/apply.post.mjs +2 -2
  288. package/.output/server/chunks/routes/api/workshop/dcw/recipes/_id/mark-good.post.mjs +2 -2
  289. package/.output/server/chunks/routes/api/workshop/dcw/recipes/_id/rollback-good.post.mjs +2 -2
  290. package/.output/server/chunks/routes/api/workshop/dcw/recipes/_id_.delete.mjs +2 -2
  291. package/.output/server/chunks/routes/api/workshop/dcw/recipes/_id_.patch.mjs +2 -2
  292. package/.output/server/chunks/routes/api/workshop/dcw/runs/_id/close.post.mjs +2 -2
  293. package/.output/server/chunks/routes/api/workshop/dcw/runs/_id/data.get.mjs +2 -2
  294. package/.output/server/chunks/routes/api/workshop/dcw/runs/_id/rollback.post.mjs +2 -2
  295. package/.output/server/chunks/routes/api/workshop/dcw/templates/_key_.delete.mjs +2 -2
  296. package/.output/server/chunks/routes/api/workshop/dcw/templates/_key_.patch.mjs +2 -2
  297. package/.output/server/chunks/routes/api/workshop/dcw/test-driver.post.mjs +2 -2
  298. package/.output/server/chunks/routes/api/workshop/device-twins/_id/control.post.mjs +1 -1
  299. package/.output/server/chunks/routes/api/workshop/device-twins/_id/telemetry.post.mjs +1 -1
  300. package/.output/server/chunks/routes/api/workshop/device-twins/_id_.delete.mjs +2 -2
  301. package/.output/server/chunks/routes/api/workshop/device-twins/_id_.patch.mjs +2 -2
  302. package/.output/server/chunks/routes/api/workshop/fs/dirs.get.mjs +1 -1
  303. package/.output/server/chunks/routes/api/workshop/harnesses/_id/providers.get.mjs +247 -0
  304. package/.output/server/chunks/routes/api/workshop/harnesses/_id/providers.get.mjs.map +1 -0
  305. package/.output/server/chunks/routes/api/workshop/harnesses.get.mjs +27 -0
  306. package/.output/server/chunks/routes/api/workshop/harnesses.get.mjs.map +1 -0
  307. package/.output/server/chunks/routes/api/workshop/hitl/pending.get.mjs +1 -1
  308. package/.output/server/chunks/routes/api/workshop/hitl/respond.post.mjs +19 -7
  309. package/.output/server/chunks/routes/api/workshop/hitl/respond.post.mjs.map +1 -1
  310. package/.output/server/chunks/routes/api/workshop/index.get.mjs +1 -1
  311. package/.output/server/chunks/routes/api/workshop/index.post.mjs +1 -1
  312. package/.output/server/chunks/routes/api/workshop/index10.get.mjs +1 -1
  313. package/.output/server/chunks/routes/api/workshop/index2.get.mjs +1 -1
  314. package/.output/server/chunks/routes/api/workshop/index2.post.mjs +1 -1
  315. package/.output/server/chunks/routes/api/workshop/index3.get.mjs +1 -1
  316. package/.output/server/chunks/routes/api/workshop/index3.post.mjs +2 -2
  317. package/.output/server/chunks/routes/api/workshop/index4.get.mjs +2 -2
  318. package/.output/server/chunks/routes/api/workshop/index4.post.mjs +2 -2
  319. package/.output/server/chunks/routes/api/workshop/index5.get.mjs +2 -2
  320. package/.output/server/chunks/routes/api/workshop/index5.post.mjs +2 -2
  321. package/.output/server/chunks/routes/api/workshop/index6.get.mjs +1 -1
  322. package/.output/server/chunks/routes/api/workshop/index6.post.mjs +2 -2
  323. package/.output/server/chunks/routes/api/workshop/index7.get.mjs +1 -1
  324. package/.output/server/chunks/routes/api/workshop/index7.post.mjs +1 -1
  325. package/.output/server/chunks/routes/api/workshop/index8.get.mjs +1 -1
  326. package/.output/server/chunks/routes/api/workshop/index8.post.mjs +1 -1
  327. package/.output/server/chunks/routes/api/workshop/index9.get.mjs +1 -1
  328. package/.output/server/chunks/routes/api/workshop/mailbox/all.get.mjs +1 -1
  329. package/.output/server/chunks/routes/api/workshop/mailbox.get.mjs +1 -1
  330. package/.output/server/chunks/routes/api/workshop/memories/maintenance.post.mjs +1 -1
  331. package/.output/server/chunks/routes/api/workshop/plugins/_name/disable.post.mjs +1 -1
  332. package/.output/server/chunks/routes/api/workshop/plugins/_name/enable.post.mjs +1 -1
  333. package/.output/server/chunks/routes/api/workshop/plugins/index.get.mjs +1 -1
  334. package/.output/server/chunks/routes/api/workshop/runtime.get.mjs +1 -1
  335. package/.output/server/chunks/routes/api/workshop/scene/layouts/_channelId_.delete.mjs +1 -1
  336. package/.output/server/chunks/routes/api/workshop/scene/layouts/_channelId_.put.mjs +1 -1
  337. package/.output/server/chunks/routes/api/workshop/scene/layouts.get.mjs +1 -1
  338. package/.output/server/chunks/routes/api/workshop/tasks/_id/complete.post.mjs +1 -1
  339. package/.output/server/chunks/routes/api/workshop/tasks/_id/dispatch.post.mjs +1 -1
  340. package/.output/server/chunks/routes/api/workshop/tasks/_id/index.post.mjs +1 -1
  341. package/.output/server/chunks/routes/api/workshop/tasks/_id/report.post.mjs +1 -1
  342. package/.output/server/chunks/routes/api/workshop/tasks/_id/retry.post.mjs +1 -1
  343. package/.output/server/chunks/routes/api/workshop/tasks/_id_.get.mjs +1 -1
  344. package/.output/server/chunks/routes/api/workshop/tasks.get.mjs +1 -1
  345. package/.output/server/chunks/routes/api/workshop/teams/_id/deploy.post.mjs +2 -2
  346. package/.output/server/chunks/routes/api/workshop/teams/_id/index.get.mjs +1 -1
  347. package/.output/server/chunks/routes/api/workshop/teams/_id/index.post.mjs +1 -1
  348. package/.output/server/chunks/routes/api/workshop/teams/_id/members/_agentId_.delete.mjs +1 -1
  349. package/.output/server/chunks/routes/api/workshop/teams/_id_.delete.mjs +1 -1
  350. package/.output/server/chunks/routes/api/workshop/teams/_id_.get.mjs +1 -1
  351. package/.output/server/chunks/routes/api/workshop/teams/_id_.patch.mjs +1 -1
  352. package/.output/server/chunks/routes/api/workshop/users/me.get.mjs +1 -1
  353. package/.output/server/chunks/routes/api/workshop/users/register.post.mjs +1 -1
  354. package/.output/server/chunks/routes/api/workshop/workspaces/_id/channel-templates/_tplId_.post.mjs +2 -2
  355. package/.output/server/chunks/routes/api/workshop/workspaces/_id/channels/_channelId_.delete.mjs +1 -1
  356. package/.output/server/chunks/routes/api/workshop/workspaces/_id/channels/_channelId_.post.mjs +1 -1
  357. package/.output/server/chunks/routes/api/workshop/workspaces/index.delete.mjs +1 -1
  358. package/.output/server/chunks/routes/renderer.mjs +1 -1
  359. package/.output/server/chunks/virtual/entry.mjs +123 -113
  360. package/.output/server/chunks/virtual/entry.mjs.map +1 -1
  361. package/.output/server/chunks/virtual/precomputed.mjs +1 -1
  362. package/.output/server/index.mjs +1 -1
  363. package/.output/server/package.json +1 -1
  364. package/app/components/AppHeader.vue +56 -2
  365. package/app/components/workshop/ChannelSessionList.vue +703 -593
  366. package/app/components/workshop/terminal/OmpTerminalPanel.vue +2 -1
  367. package/app/composables/workshop/useLocalTime.ts +16 -0
  368. package/app/composables/workshop/useSceneLayouts.ts +2 -1
  369. package/app/composables/workshop/useWorkshopApi.ts +249 -224
  370. package/app/pages/daq/[id].vue +7 -6
  371. package/app/pages/daq/index.vue +2 -2
  372. package/app/pages/dcw/[id].vue +3 -3
  373. package/app/pages/workshop/agents.vue +432 -382
  374. package/bin/aw.mjs +0 -0
  375. package/cli/aw.mjs +8 -1
  376. package/cli/commands/stop.mjs +7 -4
  377. package/cli/commands/tui.mjs +10 -1
  378. package/cli/core/registry.mjs +5 -3
  379. package/config.yml +134 -134
  380. package/docs/tui.md +1 -1
  381. package/i18n/locales/en.ts +5 -0
  382. package/i18n/locales/zh-CN.ts +5 -0
  383. package/package.json +148 -140
  384. package/scripts/_dbg-catalog-smoke.ts +20 -0
  385. package/scripts/_dbg-codex-probe.mjs +58 -0
  386. package/scripts/_dbg-dsh-probe.mjs +31 -0
  387. package/scripts/_dbg-interval-scenario.mjs +126 -0
  388. package/scripts/_dbg-line-spawn.ts +31 -0
  389. package/scripts/_dbg-live-engine-probe.mjs +80 -0
  390. package/scripts/_dbg-mcp-bridge-probe.mjs +147 -0
  391. package/scripts/_dbg-opencode-sse.mjs +101 -0
  392. package/scripts/_dbg-opencode-start.ts +57 -0
  393. package/scripts/_dbg-plugin-matrix.mjs +212 -0
  394. package/scripts/_dbg-protocol-matrix.mjs +425 -0
  395. package/scripts/_dbg-real-scenario-timeline.log +123 -0
  396. package/scripts/_dbg-registry-smoke.ts +14 -0
  397. package/scripts/_dbg-sim-keeper.mjs +100 -0
  398. package/scripts/_dbg-team-drill.mjs +173 -0
  399. package/scripts/dev-guard.mjs +11 -3
  400. package/scripts/dev-protocol-simulators.mjs +28 -1
  401. package/scripts/e2e-multi-harness.ts +374 -0
  402. package/scripts/e2e-multiharness-team.mjs +319 -0
  403. package/scripts/e2e-plc-scenario.mjs +292 -0
  404. package/scripts/e2e-real-scenario.mjs +452 -0
  405. package/scripts/migrate-local-time.mjs +123 -0
  406. package/scripts/start.mjs +30 -2
  407. package/server/api/system/settings/index.get.ts +3 -3
  408. package/server/api/workshop/agent-tools/invoke.post.ts +27 -41
  409. package/server/api/workshop/agent-tools/list.get.ts +25 -0
  410. package/server/api/workshop/channels/[id]/index.patch.ts +38 -30
  411. package/server/api/workshop/daq/[id]/samples.get.ts +6 -3
  412. package/server/api/workshop/harnesses/[id]/providers.get.ts +16 -0
  413. package/server/api/workshop/harnesses.get.ts +12 -0
  414. package/server/api/workshop/hitl/respond.post.ts +87 -67
  415. package/server/api/workshop/ws.ts +13 -0
  416. package/server/data/daqs.json +1366 -16
  417. package/server/data/dcw-lines.json +266 -0
  418. package/server/data/dcw-products.json +203 -0
  419. package/server/data/dcw-recipes.json +784 -0
  420. package/server/data/dcw-rollback.json +1144 -1
  421. package/server/data/dcw-runs.json +983 -791
  422. package/server/data/dcw-writes.json +1080 -0
  423. package/server/data/dcws.json +3278 -203
  424. package/server/data/line-runs.json +52 -2
  425. package/server/harness/aw-mcp-bridge.mjs +153 -0
  426. package/server/plugins/00-local-time.ts +10 -0
  427. package/server/plugins/aw-plugins.ts +3 -0
  428. package/server/plugins/backup.ts +116 -97
  429. package/server/plugins/dev-stability-guard.ts +24 -15
  430. package/server/plugins/retention.ts +1 -0
  431. package/server/plugins/security.ts +24 -3
  432. package/server/plugins/workshop.ts +156 -153
  433. package/server/repositories/user.repository.ts +414 -391
  434. package/server/services/system-config.ts +30 -6
  435. package/server/services/workshop/.mimosa/hook-state/sess_fed429fb-c8b7-4a50-bbd6-45afc580893f.json +1 -0
  436. package/server/services/workshop/.mimosa/hook-status/sess_fed429fb-c8b7-4a50-bbd6-45afc580893f-e6b75bbfe6.json +14 -0
  437. package/server/services/workshop/agents/adapters/line-spawn.ts +108 -0
  438. package/server/services/workshop/agents/adapters/stdio-jsonrpc.ts +316 -0
  439. package/server/services/workshop/agents/agent-interface.ts +17 -0
  440. package/server/services/workshop/agents/codex-agent.ts +822 -0
  441. package/server/services/workshop/agents/dsh-agent.ts +670 -0
  442. package/server/services/workshop/agents/factory.ts +4 -16
  443. package/server/services/workshop/agents/harness-env.ts +54 -0
  444. package/server/services/workshop/agents/harness-models.ts +270 -0
  445. package/server/services/workshop/agents/host-tool-bridge.ts +592 -0
  446. package/server/services/workshop/agents/industrial-tools.ts +5 -1
  447. package/server/services/workshop/agents/node-bindings.repo.ts +4 -5
  448. package/server/services/workshop/agents/omp-agent.ts +1178 -1957
  449. package/server/services/workshop/agents/opencode-agent.ts +987 -0
  450. package/server/services/workshop/agents/prompt-builder.ts +393 -0
  451. package/server/services/workshop/agents/registry.ts +125 -0
  452. package/server/services/workshop/assets/character-asset.repo.ts +3 -5
  453. package/server/services/workshop/assets/device-twin.repo.ts +3 -5
  454. package/server/services/workshop/daq/daq-controller.ts +8 -4
  455. package/server/services/workshop/daq/daq-node.repo.ts +3 -5
  456. package/server/services/workshop/daq/daq-node.ts +2 -2
  457. package/server/services/workshop/daq/daq-templates.ts +3 -5
  458. package/server/services/workshop/daq/drivers.ts +41 -12
  459. package/server/services/workshop/daq/storage/sqlite.adapter.ts +313 -309
  460. package/server/services/workshop/db/backup-registry.ts +33 -0
  461. package/server/services/workshop/db/channel.repo.ts +104 -101
  462. package/server/services/workshop/db/database.ts +956 -949
  463. package/server/services/workshop/dcw/dcw-controller.ts +3 -1
  464. package/server/services/workshop/dcw/dcw-line.repo.ts +4 -11
  465. package/server/services/workshop/dcw/dcw-node.repo.ts +3 -5
  466. package/server/services/workshop/dcw/dcw-node.ts +13 -1
  467. package/server/services/workshop/dcw/dcw-product.repo.ts +3 -4
  468. package/server/services/workshop/dcw/dcw-recipe.repo.ts +3 -19
  469. package/server/services/workshop/dcw/dcw-templates.ts +3 -5
  470. package/server/services/workshop/dcw/drivers.ts +37 -13
  471. package/server/services/workshop/dcw/line-run.ts +3 -5
  472. package/server/services/workshop/dcw/recipe-rollback.repo.ts +4 -10
  473. package/server/services/workshop/json-store.mjs +72 -0
  474. package/server/services/workshop/plugins/host.mjs +2 -1
  475. package/server/services/workshop/runtime/agent-runtime.ts +44 -0
  476. package/server/services/workshop/runtime/manager.ts +2953 -2868
  477. package/server/services/workshop/scene/scene-layout.repo.ts +4 -11
  478. package/server/services/workshop/settings.ts +7 -0
  479. package/shared/config/schema.json +5 -0
  480. package/shared/config/single-instance.mjs +5 -1
  481. package/shared/local-time.mjs +36 -0
  482. package/shared/workshop-protocol.ts +11 -5
  483. package/tui/aw-tui.mjs +28 -10
  484. package/tui/components/hitl-card.mjs +47 -36
  485. package/tui/lib/ws.mjs +2 -1
  486. package/.output/public/_nuxt/9X0fVBD7.js +0 -57
  487. package/.output/public/_nuxt/B6M2WJWm2.js +0 -1
  488. package/.output/public/_nuxt/B9Yie5HN.js +0 -2
  489. package/.output/public/_nuxt/BF9XPEuw.js +0 -1
  490. package/.output/public/_nuxt/BbQornXa.js +0 -1
  491. package/.output/public/_nuxt/Bxgaym6j.js +0 -1
  492. package/.output/public/_nuxt/Bxh5nf8j.js +0 -1
  493. package/.output/public/_nuxt/CXLI50Sq.js +0 -1
  494. package/.output/public/_nuxt/CdfAP_IH2.js +0 -1
  495. package/.output/public/_nuxt/Ce1zyNYu.js +0 -1
  496. package/.output/public/_nuxt/D-Ne4C9a.js +0 -1
  497. package/.output/public/_nuxt/DEHNjlTq2.js +0 -1
  498. package/.output/public/_nuxt/DFnGFEav.js +0 -18
  499. package/.output/public/_nuxt/DYWgGHNo.js +0 -7
  500. package/.output/public/_nuxt/OmpTerminalPanel.Bc9GjNU5.css +0 -1
  501. package/.output/public/_nuxt/W1E3-5ML.js +0 -14
  502. package/.output/public/_nuxt/XVB9_zwP.js +0 -1
  503. package/.output/public/_nuxt/Xaf_HIR3.js +0 -1
  504. package/.output/public/_nuxt/_id_.BeqSLvl_.css +0 -1
  505. package/.output/public/_nuxt/_id_.DN3U6EF9.css +0 -1
  506. package/.output/public/_nuxt/agents.BJwgTLFZ.css +0 -1
  507. package/.output/public/_nuxt/builds/meta/55c10854-ee0e-4be4-924b-a1b0e100fe11.json +0 -1
  508. package/.output/public/_nuxt/daq.BXsnevQv.css +0 -1
  509. package/.output/public/_nuxt/yIKY_V1P.js +0 -1
  510. package/.output/server/chunks/build/OmpTerminalPanel-B_SYhmgb.mjs.map +0 -1
  511. package/.output/server/chunks/build/_id_-CWLFGZjV.mjs.map +0 -1
  512. package/.output/server/chunks/build/agents-D4l1icvn.mjs.map +0 -1
  513. package/.output/server/chunks/build/channel-templates-DqjtC-R0.mjs.map +0 -1
  514. package/.output/server/chunks/build/interval-WlxgjTzO.mjs +0 -9
  515. package/.output/server/chunks/build/interval-WlxgjTzO.mjs.map +0 -1
  516. package/.output/server/chunks/build/teams-QR3BBF7A.mjs.map +0 -1
  517. package/.output/server/chunks/build/useWorkshopApi-Bh5VUHWu.mjs.map +0 -1
@@ -14,9 +14,10 @@
14
14
  * 使用:server/plugins/system-config.ts 在 Nitro 启动时 init();
15
15
  * 业务经 getSystemConfigService() 读取(不存在则惰性初始化,幂等)。
16
16
  */
17
- import { watch, existsSync } from 'node:fs'
18
- import { join } from 'node:path'
17
+ import { watch, existsSync, mkdirSync, copyFileSync } from 'node:fs'
18
+ import { join, dirname } from 'node:path'
19
19
  import { useRuntimeConfig } from '#imports'
20
+ import { resolveRunMode } from '@/shared/config/home.mjs'
20
21
  import { AppError } from '../utils/errors'
21
22
  import {
22
23
  loadDescriptors,
@@ -82,7 +83,8 @@ declare global {
82
83
 
83
84
  export class SystemConfigService {
84
85
  private descriptors: SettingsDescriptor[] = []
85
- private map = new Map<string, SettingsDescriptor>()
86
+ /** key → 描述符(loadDescriptorMap 返回普通对象,非 Map;下标访问) */
87
+ private map: Record<string, SettingsDescriptor> = {}
86
88
  private overrides: Record<string, unknown> = {}
87
89
  private envOverrides: Record<string, unknown> = {}
88
90
  private effective: Record<string, unknown> = {}
@@ -97,7 +99,29 @@ export class SystemConfigService {
97
99
 
98
100
  constructor(readonly root: string) {
99
101
  this.configPath = join(root, 'config.yml')
100
- this.settingsPath = join(root, 'data', 'runtime-settings.json')
102
+ // 设置文件必须与 CLI(aw config set)/start/dev-guard 同源(resolveRunMode 单一入口):
103
+ // 原先写死 <cwd>/data/runtime-settings.json 造成"API 写 A、子系统读 B"的脑裂 —— 备份
104
+ // 周期/保留期/DAQ 覆盖等运行时设置对服务端静默无效。
105
+ const rm = resolveRunMode({ cwd: root, packageRoot: process.env.AW_PACKAGE_ROOT, env: process.env })
106
+ this.configPath = rm.configPath ?? this.configPath
107
+ this.settingsPath = rm.settingsPath ?? this.settingsPath
108
+ // 一次性收敛:遗留 <cwd>/data/runtime-settings.json 且目标不存在 → 迁移;两者并存 → 告警遗留被忽略
109
+ try {
110
+ const legacy = join(root, 'data', 'runtime-settings.json')
111
+ if (existsSync(legacy) && legacy !== this.settingsPath) {
112
+ if (!existsSync(this.settingsPath)) {
113
+ mkdirSync(dirname(this.settingsPath), { recursive: true })
114
+ copyFileSync(legacy, this.settingsPath)
115
+ console.log(`[system-config] 遗留设置已迁移: ${legacy} -> ${this.settingsPath}`)
116
+ }
117
+ else {
118
+ console.warn(`[system-config] 检测到遗留设置文件 ${legacy}(现以 ${this.settingsPath} 为准,该文件被忽略)`)
119
+ }
120
+ }
121
+ }
122
+ catch (err) {
123
+ console.warn('[system-config] 遗留设置迁移失败(不阻断启动):', String(err?.message ?? err))
124
+ }
101
125
  }
102
126
 
103
127
  /** Nitro 启动时调用:加载覆盖 → 应用到 runtimeConfig → 挂文件监听 */
@@ -183,7 +207,7 @@ export class SystemConfigService {
183
207
  const validated: Record<string, unknown> = {}
184
208
  const changed: string[] = []
185
209
  for (const [key, value] of Object.entries(raw)) {
186
- const desc = this.map.get(key)
210
+ const desc = this.map[key]
187
211
  if (!desc) continue // 未知键:忽略(schema 演进容错)
188
212
  const errs = validateValue(desc, value)
189
213
  if (errs.length) {
@@ -249,7 +273,7 @@ export class SystemConfigService {
249
273
  const next = { ...this.overrides }
250
274
  const changed: string[] = []
251
275
  for (const [key, rawValue] of Object.entries(patch)) {
252
- const desc = this.map.get(key)
276
+ const desc = this.map[key]
253
277
  if (!desc) {
254
278
  errors[key] = ['未知设置项(不在 shared/config/schema.json 中)']
255
279
  continue
@@ -0,0 +1 @@
1
+ {"touched":[],"bashMutation":true,"reportedFindings":[],"findingEvents":[],"baseline":null,"stateErrors":[],"omittedReportedFindings":0,"omittedFindingEvents":0,"processing":null,"updatedAt":"2026-09-04T17:27:52.487Z"}
@@ -0,0 +1,14 @@
1
+ {
2
+ "schemaVersion": "mimosa-hook-status/v1",
3
+ "recordedAt": "2026-09-04T17:28:09.989Z",
4
+ "sessionId": "sess_fed429fb-c8b7-4a50-bbd6-45afc580893f",
5
+ "event": "PostToolUse",
6
+ "toolName": "Write",
7
+ "file": "D:\\codes\\ABO\\AgentWorkShop\\.omc\\plans\\codemod-fix-helper.cjs",
8
+ "outcome": "clear",
9
+ "coverage": "complete",
10
+ "findingCount": 0,
11
+ "durationMs": 4,
12
+ "hostState": "hook_complete",
13
+ "reportHint": ".mimosa/reports/"
14
+ }
@@ -0,0 +1,108 @@
1
+ /**
2
+ * 受控子进程拉起工具(harness 适配器共用)。
3
+ *
4
+ * 安全约束:
5
+ * - 永不走 shell —— 除一种 Windows 特例:.cmd/.bat shim(如 npm 全局安装的
6
+ * codex.cmd)不能被 CreateProcess 直接执行,须经固定的 'cmd.exe' /d /s /c
7
+ * 包装;此时逐参数做严格校验(拒绝引号与控制字符)并全量引号包裹,参数面
8
+ * 仍是结构化且无元字符的,不存在可注入的自由文本。
9
+ * - 包装器是字面量 'cmd.exe',不由环境变量或请求决定;
10
+ * - 命令先经 assertPlainExecutable(拒绝 shell 元字符)与 PATH 解析
11
+ * (必须解析为磁盘上真实存在的文件)才可拉起。
12
+ */
13
+ import { spawn as launchChildProcess, type ChildProcess } from 'node:child_process'
14
+ import { existsSync, statSync } from 'node:fs'
15
+ import { join } from 'node:path'
16
+
17
+ const SHELL_META = /[\r\n;&|`<>$]/
18
+
19
+ /** 拒绝 shell 元字符(命令只能是纯可执行路径) */
20
+ export function assertPlainExecutable(command: string): string {
21
+ if (!command || SHELL_META.test(command)) {
22
+ throw new Error(`非法 harness 命令(含 shell 元字符或为空): ${JSON.stringify(command.slice(0, 80))}`)
23
+ }
24
+ return command
25
+ }
26
+
27
+ /** PATH + PATHEXT 解析裸命令名 → 绝对路径(win32;非 Windows 返回 null)。带扩展名优先,裸名(sh 脚本)最后 */
28
+ function resolveOnPath(command: string): string | null {
29
+ if (process.platform !== 'win32') return null
30
+ const isFile = (p: string): boolean => {
31
+ try {
32
+ return existsSync(p) && statSync(p).isFile()
33
+ }
34
+ catch {
35
+ return false
36
+ }
37
+ }
38
+ const hasDir = command.includes('/') || command.includes('\\') || /^[A-Za-z]:/.test(command)
39
+ const exts = (process.env.PATHEXT?.split(';').filter(Boolean) ?? ['.EXE', '.CMD', '.BAT', '.COM']).map(e => e.toLowerCase())
40
+ const bases = hasDir
41
+ ? [command]
42
+ : (process.env.PATH ?? '').split(';').filter(Boolean).map(dir => join(dir, command))
43
+ // PATHEXT 顺序(.exe → .cmd → …)优先;裸名兜底(npm sh 脚本,win 上不可执行,仅最后回退)
44
+ for (const base of bases) {
45
+ for (const ext of exts) {
46
+ const full = base + ext
47
+ if (isFile(full)) return full
48
+ }
49
+ }
50
+ for (const base of bases) {
51
+ if (isFile(base)) return base
52
+ }
53
+ return null
54
+ }
55
+
56
+ /**
57
+ * 命令解析:裸名经 PATH 解析,返回磁盘上的绝对路径;.cmd/.bat 标记 needsCmd。
58
+ */
59
+ function resolveExecutable(command: string): { file: string, needsCmd: boolean } {
60
+ assertPlainExecutable(command)
61
+ const file = resolveOnPath(command) ?? command
62
+ if (process.platform === 'win32') {
63
+ const lower = file.toLowerCase()
64
+ if (lower.endsWith('.cmd') || lower.endsWith('.bat')) return { file, needsCmd: true }
65
+ }
66
+ return { file, needsCmd: false }
67
+ }
68
+
69
+ export interface LineSpawnOptions {
70
+ cwd?: string
71
+ env?: Record<string, string>
72
+ }
73
+
74
+ /** .cmd 包装时的逐参数校验(引号/控制字符会改变 cmd 解析,拒绝) */
75
+ function assertCmdSafeArg(arg: string): string {
76
+ if (/["\r\n\0]/.test(arg)) {
77
+ throw new Error(`参数含引号/控制字符,拒绝经 cmd 包装执行: ${JSON.stringify(arg.slice(0, 80))}`)
78
+ }
79
+ return arg
80
+ }
81
+
82
+ /** 拉起逐行 stdio 子进程(命令已经 resolveExecutable 校验) */
83
+ export function spawnLineProcess(command: string, args: string[], options: LineSpawnOptions = {}): ChildProcess {
84
+ const { file, needsCmd } = resolveExecutable(command)
85
+ const env = { ...process.env, ...options.env }
86
+ if (needsCmd) {
87
+ // Windows .cmd shim:固定包装器 'cmd.exe' + /d /s /c + 全量引号包裹
88
+ const line = [file, ...args.map(a => assertCmdSafeArg(a))].map((token) => {
89
+ token = token.replace(/[\];&`<>$]/g, '^$1')
90
+ return token.includes(' ') ? `"${token}"` : token
91
+ }).join(' ')
92
+ return launchChildProcess('cmd.exe', ['/d', '/s', '/c', line], {
93
+ stdio: ['pipe', 'pipe', 'pipe'],
94
+ cwd: options.cwd ?? process.cwd(),
95
+ env,
96
+ windowsHide: true,
97
+ shell: false,
98
+ windowsVerbatimArguments: true,
99
+ })
100
+ }
101
+ return launchChildProcess(file, args, {
102
+ stdio: ['pipe', 'pipe', 'pipe'],
103
+ cwd: options.cwd ?? process.cwd(),
104
+ env,
105
+ windowsHide: true,
106
+ shell: false,
107
+ })
108
+ }
@@ -0,0 +1,316 @@
1
+ /**
2
+ * StdioJsonRpcClient —— NDJSON JSON-RPC 2.0 子进程客户端(codex app-server / dsh ACP 共用基座)。
3
+ *
4
+ * 职责:
5
+ * - 拉起子进程(line-spawn 受控面:拒绝 shell 元字符/路径校验/shell:false),
6
+ * 逐行解析 stdout JSON-RPC 帧(响应/通知/服务端请求三分)
7
+ * - request():id 关联 + 超时;notify();onNotification/onRequest 订阅
8
+ * - 服务端→客户端请求(handler 异步产出 result 或 error 回传)
9
+ * - 进程退出广播 / OS 存活校准(reconcile)/ 强杀
10
+ *
11
+ * 帧约定:stdio 逐行;"jsonrpc" 头可省略(codex app-server 线上格式)。
12
+ */
13
+ import { isProcessAlive } from '../harness-process'
14
+ import { spawnLineProcess } from './line-spawn'
15
+ import type { ChildProcess } from 'node:child_process'
16
+
17
+ export interface JsonRpcRequestIncoming {
18
+ kind: 'request'
19
+ id: string | number
20
+ method: string
21
+ params: unknown
22
+ }
23
+ export interface JsonRpcNotification {
24
+ kind: 'notification'
25
+ method: string
26
+ params: unknown
27
+ }
28
+ export type JsonRpcIncoming = JsonRpcRequestIncoming | JsonRpcNotification
29
+
30
+ export interface StdioJsonRpcOptions {
31
+ /** 展示名(日志/错误前缀) */
32
+ name: string
33
+ command: string
34
+ args?: string[]
35
+ cwd?: string
36
+ env?: Record<string, string>
37
+ /** 请求默认超时(ms) */
38
+ requestTimeoutMs?: number
39
+ /** spawn → 可发首请求的就绪超时(ms;仅防 spawn 失败,不等协议握手) */
40
+ startTimeoutMs?: number
41
+ onExit?: (code: number | null) => void
42
+ }
43
+
44
+ interface Pending {
45
+ resolve: (result: unknown) => void
46
+ reject: (err: Error) => void
47
+ timer: ReturnType<typeof setTimeout>
48
+ }
49
+
50
+ export class StdioJsonRpcClient {
51
+ private child: ChildProcess | null = null
52
+ private readonly pending = new Map<string, Pending>()
53
+ private seq = 0
54
+ private exited = false
55
+ private disposed = false
56
+ private exitCode: number | null = null
57
+ private stdoutBuf = ''
58
+ private stderrTail = ''
59
+ private readonly notificationListeners = new Set<(method: string, params: unknown) => void>()
60
+ private readonly requestListeners = new Set<(req: JsonRpcRequestIncoming) => void>()
61
+ private readonly exitListeners = new Set<(code: number | null) => void>()
62
+ /** 退出广播已发(幂等) */
63
+ private exitNotified = false
64
+ /** 是否收到过任意合法帧(就绪前退出判定的辅助位) */
65
+ private readySeen = false
66
+
67
+ constructor(private readonly options: StdioJsonRpcOptions) {}
68
+
69
+ get pid(): number | undefined {
70
+ return this.child?.pid
71
+ }
72
+
73
+ get alive(): boolean {
74
+ return !!this.child && !this.exited
75
+ }
76
+
77
+ /** stderr 尾部(诊断) */
78
+ get stderr(): string {
79
+ return this.stderrTail
80
+ }
81
+
82
+ /** 拉起子进程(spawn 错误/提前退出 → reject;不等待协议握手) */
83
+ async start(): Promise<void> {
84
+ const o = this.options
85
+ try {
86
+ this.child = spawnLineProcess(o.command, o.args ?? [], {
87
+ cwd: o.cwd,
88
+ env: o.env,
89
+ })
90
+ }
91
+ catch (err) {
92
+ throw err instanceof Error ? err : new Error(String(err))
93
+ }
94
+ const startedAt = Date.now()
95
+ const startTimeoutMs = o.startTimeoutMs ?? 15_000
96
+ return new Promise<void>((resolve, reject) => {
97
+ this.child!.stdout?.setEncoding('utf-8')
98
+ this.child!.stderr?.setEncoding('utf-8')
99
+ this.child!.stdin?.on('error', () => {})
100
+ this.child!.stdout?.on('error', () => {})
101
+ this.child!.stderr?.on('error', () => {})
102
+ this.child!.stdout?.on('data', (d: string) => this.onStdout(d))
103
+ this.child!.stderr?.on('data', (d: string) => {
104
+ this.stderrTail = (this.stderrTail + d).slice(-8000)
105
+ })
106
+ this.child!.on('error', (err: Error) => {
107
+ if (Date.now() - startedAt < startTimeoutMs && !this.exited) reject(err)
108
+ else this.handleExit(null, err)
109
+ })
110
+ this.child!.on('exit', (code: number | null) => {
111
+ if (Date.now() - startedAt < startTimeoutMs && !this.exited && !this.readySeen) {
112
+ reject(new Error(`${o.name} 子进程在就绪前退出(code=${code})${this.stderrTail ? `\nstderr: ${this.stderrTail.slice(-500)}` : ''}`))
113
+ }
114
+ else {
115
+ this.handleExit(code)
116
+ }
117
+ })
118
+ // 拉起成功即视为已启动(协议握手由上层 request 驱动;失败经 request 超时/exit 显性化)
119
+ if (this.child!.pid) resolve()
120
+ else reject(new Error(`${o.name} 拉起失败(无 pid)`))
121
+ })
122
+ }
123
+
124
+ /** JSON-RPC 请求(等待响应;超时 reject) */
125
+ async request<T = unknown>(method: string, params?: unknown, timeoutMs?: number): Promise<T> {
126
+ if (!this.child?.stdin?.writable) throw new Error(`${this.options.name} 子进程未就绪或已关闭`)
127
+ if (this.disposed) throw new Error(`${this.options.name} 客户端已 dispose`)
128
+ const id = ++this.seq
129
+ const frame = { jsonrpc: '2.0', id, method, ...(params !== undefined ? { params } : {}) }
130
+ return new Promise<T>((resolve, reject) => {
131
+ const timer = setTimeout(() => {
132
+ this.pending.delete(String(id))
133
+ reject(new Error(`${this.options.name} 请求超时: ${method} (id=${id},${timeoutMs ?? this.options.requestTimeoutMs ?? 60_000}ms)`))
134
+ }, timeoutMs ?? this.options.requestTimeoutMs ?? 60_000)
135
+ this.pending.set(String(id), {
136
+ resolve: resolve as (r: unknown) => void,
137
+ reject,
138
+ timer,
139
+ })
140
+ this.writeFrame(frame, (err) => {
141
+ if (err) {
142
+ clearTimeout(timer)
143
+ this.pending.delete(String(id))
144
+ reject(new Error(`${this.options.name} 写入失败: ${err.message}`))
145
+ }
146
+ })
147
+ })
148
+ }
149
+
150
+ /** 通知(无响应) */
151
+ notify(method: string, params?: unknown): void {
152
+ const frame = { jsonrpc: '2.0', method, ...(params !== undefined ? { params } : {}) }
153
+ this.writeFrame(frame, () => {})
154
+ }
155
+
156
+ /** 应答服务端请求 */
157
+ respond(id: string | number, result: unknown): void {
158
+ this.writeFrame({ jsonrpc: '2.0', id, result }, () => {})
159
+ }
160
+
161
+ respondError(id: string | number, code: number, message: string): void {
162
+ this.writeFrame({ jsonrpc: '2.0', id, error: { code, message } }, () => {})
163
+ }
164
+
165
+ onNotification(fn: (method: string, params: unknown) => void): () => void {
166
+ this.notificationListeners.add(fn)
167
+ return () => this.notificationListeners.delete(fn)
168
+ }
169
+
170
+ /** 服务端→客户端请求订阅(handler 内自行调用 respond/respondError) */
171
+ onRequest(fn: (req: JsonRpcRequestIncoming) => void): () => void {
172
+ this.requestListeners.add(fn)
173
+ return () => this.requestListeners.delete(fn)
174
+ }
175
+
176
+ /** 进程退出订阅(含 OS 校准收敛;幂等触发) */
177
+ onExit(fn: (code: number | null) => void): () => void {
178
+ this.exitListeners.add(fn)
179
+ return () => this.exitListeners.delete(fn)
180
+ }
181
+
182
+ /** OS 级存活校准(进程已死 → 收敛为退出;幂等) */
183
+ reconcile(): boolean {
184
+ const pid = this.child?.pid
185
+ if (!pid || this.exited || this.disposed) return true
186
+ if (isProcessAlive(pid)) return true
187
+ this.handleExit(null)
188
+ return false
189
+ }
190
+
191
+ kill(): void {
192
+ this.child?.kill('SIGKILL')
193
+ }
194
+
195
+ async dispose(): Promise<void> {
196
+ if (this.disposed) return
197
+ this.disposed = true
198
+ try {
199
+ this.child?.stdin?.end()
200
+ }
201
+ catch { /* ignore */ }
202
+ await new Promise<void>((resolve) => {
203
+ if (!this.child || this.exited) return resolve()
204
+ const timer = setTimeout(() => {
205
+ this.child?.kill('SIGKILL')
206
+ resolve()
207
+ }, 3000)
208
+ this.child.once('exit', () => {
209
+ clearTimeout(timer)
210
+ resolve()
211
+ })
212
+ })
213
+ for (const [, p] of this.pending) {
214
+ clearTimeout(p.timer)
215
+ p.reject(new Error(`${this.options.name} 客户端已 dispose`))
216
+ }
217
+ this.pending.clear()
218
+ }
219
+
220
+ get lastExitCode(): number | null {
221
+ return this.exitCode
222
+ }
223
+
224
+ // ===== 内部 =====
225
+
226
+ private writeFrame(frame: Record<string, unknown>, cb: (err: Error | null) => void): void {
227
+ if (!this.child?.stdin?.writable) {
228
+ cb(new Error('stdio 已关闭'))
229
+ return
230
+ }
231
+ this.child.stdin.write(JSON.stringify(frame) + '\n', err => cb(err ?? null))
232
+ }
233
+
234
+ private onStdout(data: string): void {
235
+ this.stdoutBuf += data
236
+ if (this.stdoutBuf.length > 8 * 1024 * 1024) this.stdoutBuf = ''
237
+ const lines = this.stdoutBuf.split('\n')
238
+ this.stdoutBuf = lines.pop() ?? ''
239
+ for (const line of lines) {
240
+ const trimmed = line.trim()
241
+ if (!trimmed) continue
242
+ let frame: Record<string, unknown>
243
+ try {
244
+ frame = JSON.parse(trimmed)
245
+ }
246
+ catch {
247
+ continue // 非 JSON 行(横幅/日志混流)忽略
248
+ }
249
+ this.readySeen = true
250
+ this.dispatch(frame)
251
+ }
252
+ }
253
+
254
+ private dispatch(frame: Record<string, unknown>): void {
255
+ const hasId = frame.id !== undefined && frame.id !== null
256
+ const method = typeof frame.method === 'string' ? frame.method : undefined
257
+
258
+ if (method === undefined && hasId) {
259
+ // 响应帧
260
+ const p = this.pending.get(String(frame.id))
261
+ if (!p) return
262
+ clearTimeout(p.timer)
263
+ this.pending.delete(String(frame.id))
264
+ if (frame.error && typeof frame.error === 'object') {
265
+ const e = frame.error as { code?: number, message?: string }
266
+ p.reject(new Error(`${this.options.name} RPC 错误${e.code != null ? `(${e.code})` : ''}: ${e.message ?? '未知错误'}`))
267
+ }
268
+ else {
269
+ p.resolve(frame.result)
270
+ }
271
+ return
272
+ }
273
+
274
+ if (method && hasId) {
275
+ // 服务端请求
276
+ const req: JsonRpcRequestIncoming = { kind: 'request', id: frame.id as string | number, method, params: frame.params }
277
+ for (const fn of this.requestListeners) {
278
+ try {
279
+ fn(req)
280
+ }
281
+ catch { /* handler 异常不影响分发 */ }
282
+ }
283
+ return
284
+ }
285
+
286
+ if (method) {
287
+ // 通知
288
+ for (const fn of this.notificationListeners) {
289
+ try {
290
+ fn(method, frame.params)
291
+ }
292
+ catch { /* ignore */ }
293
+ }
294
+ }
295
+ }
296
+
297
+ private handleExit(code: number | null, spawnErr?: Error): void {
298
+ if (this.exited) return
299
+ this.exited = true
300
+ this.exitCode = code
301
+ for (const [, p] of this.pending) {
302
+ clearTimeout(p.timer)
303
+ p.reject(new Error(`${this.options.name} 子进程退出(code=${code})${spawnErr ? `:${spawnErr.message}` : ''}${this.stderrTail ? `\nstderr: ${this.stderrTail.slice(-400)}` : ''}`))
304
+ }
305
+ this.pending.clear()
306
+ if (!this.exitNotified) {
307
+ this.exitNotified = true
308
+ for (const fn of this.exitListeners) {
309
+ try {
310
+ fn(code)
311
+ }
312
+ catch { /* ignore */ }
313
+ }
314
+ }
315
+ }
316
+ }
@@ -261,4 +261,21 @@ export interface AgentInterface {
261
261
  * 实现方自守卫(仅回合间隙发起、异常不抛出);调用方 AgentRuntime 在信箱无排队消息时调用。
262
262
  */
263
263
  onTurnSettled?(): Promise<void>
264
+ /**
265
+ * 可选:harness 无关工具直调面(REST agent-tools / stdio MCP 桥回程)。
266
+ * 实现方走共享 host-tool-bridge 分发;未实现时上层回退 workspace 协作工具族。
267
+ */
268
+ dispatchHostTool?(toolName: string, args: Record<string, unknown>): Promise<{ text: string, isError?: boolean }>
269
+ /**
270
+ * 可选:HITL 应答传导(人类经 /api/workshop/hitl/respond 裁决引擎侧审批/权限请求)。
271
+ * outcome:confirmed=true 应答通过 / cancelled=true 人工放弃 / value=文本应答 /
272
+ * response=引擎原生选项(如 opencode once|always|reject)。未实现 → 上层 409。
273
+ */
274
+ respondHitl?(kind: string, id: string, outcome: {
275
+ confirmed?: boolean
276
+ cancelled?: boolean
277
+ value?: string
278
+ response?: string
279
+ comment?: string
280
+ }): Promise<void>
264
281
  }