agentworkshop 0.5.9 → 0.6.1

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 (572) hide show
  1. package/.AgentWorkShop/prompts/compaction-hints.md +9 -9
  2. package/.AgentWorkShop/prompts/host-tools.json +42 -0
  3. package/.output/.AgentWorkShop/prompts/compaction-hints.md +9 -9
  4. package/.output/.AgentWorkShop/prompts/host-tools.json +42 -0
  5. package/.output/nitro.json +1 -1
  6. package/.output/public/_nuxt/{Dm5mD6XT.js → BD9D9pl4.js} +1 -1
  7. package/.output/public/_nuxt/{BdKzfJiM.js → BxD8Fg_Z.js} +1 -1
  8. package/.output/public/_nuxt/{dRAyjbJ6.js → C-Y5ydB6.js} +3 -3
  9. package/.output/public/_nuxt/{Bok1DRqh.js → C0FogB-p.js} +1 -1
  10. package/.output/public/_nuxt/{BUNGEK2z.js → C2QSTAWf.js} +1 -1
  11. package/.output/public/_nuxt/{CWDzKGtj.js → CclO6GyL.js} +1 -1
  12. package/.output/public/_nuxt/{B3__nfxM.js → Ck6tznoQ.js} +1 -1
  13. package/.output/public/_nuxt/CwS_UHeH.js +1 -0
  14. package/.output/public/_nuxt/{CE2ynNi9.js → CwcOEM8m.js} +1 -1
  15. package/.output/public/_nuxt/MhK4buEJ.js +1 -0
  16. package/.output/public/_nuxt/_id_.DN3U6EF9.css +1 -0
  17. package/.output/public/_nuxt/builds/latest.json +1 -1
  18. package/.output/public/_nuxt/builds/meta/221de779-a113-4232-b9a1-31a614f5e3c7.json +1 -0
  19. package/.output/public/_nuxt/{entry.DjhxLu-f.css → entry.DvlXlPwx.css} +1 -1
  20. package/.output/public/_nuxt/settings.BG0K9_MG.css +1 -0
  21. package/.output/server/chunks/_/error-500.mjs.map +1 -1
  22. package/.output/server/chunks/_/nitro.mjs +2675 -1425
  23. package/.output/server/chunks/_/nitro.mjs.map +1 -1
  24. package/.output/server/chunks/build/{OmpTerminalPanel-CZnxR3M_.mjs → OmpTerminalPanel-B_SYhmgb.mjs} +2 -2
  25. package/.output/server/chunks/build/{OmpTerminalPanel-CZnxR3M_.mjs.map → OmpTerminalPanel-B_SYhmgb.mjs.map} +1 -1
  26. package/.output/server/chunks/build/{TownView-DYlUNRZe.mjs → TownView-D9yCQe1T.mjs} +6 -6
  27. package/.output/server/chunks/build/{TownView-DYlUNRZe.mjs.map → TownView-D9yCQe1T.mjs.map} +1 -1
  28. package/.output/server/chunks/build/{_id_-BOhG2yz8.mjs → _id_-CmKAEFHV.mjs} +4 -2
  29. package/.output/server/chunks/build/_id_-CmKAEFHV.mjs.map +1 -0
  30. package/.output/server/chunks/build/{_id_-CuyMYmhY.mjs → _id_-xR3AChMO.mjs} +74 -26
  31. package/.output/server/chunks/build/_id_-xR3AChMO.mjs.map +1 -0
  32. package/.output/server/chunks/build/{_wsId_-B5f5BdW2.mjs → _wsId_-C45nVrl-.mjs} +12 -10
  33. package/.output/server/chunks/build/{_wsId_-B5f5BdW2.mjs.map → _wsId_-C45nVrl-.mjs.map} +1 -1
  34. package/.output/server/chunks/build/{agents-BVaxN75W.mjs → agents-D4l1icvn.mjs} +5 -3
  35. package/.output/server/chunks/build/agents-D4l1icvn.mjs.map +1 -0
  36. package/.output/server/chunks/build/{channel-templates-D1K2IKrE.mjs → channel-templates-DqjtC-R0.mjs} +5 -3
  37. package/.output/server/chunks/build/channel-templates-DqjtC-R0.mjs.map +1 -0
  38. package/.output/server/chunks/build/{client-only-CFTHwakk.mjs → client-only-D5BzSQc6.mjs} +2 -2
  39. package/.output/server/chunks/build/client-only-D5BzSQc6.mjs.map +1 -0
  40. package/.output/server/chunks/build/{daq-ObtN1TQ4.mjs → daq-Boz_dlAQ.mjs} +6 -4
  41. package/.output/server/chunks/build/daq-Boz_dlAQ.mjs.map +1 -0
  42. package/.output/server/chunks/build/{dcw-fINr-He1.mjs → dcw-wTRwBAUi.mjs} +3 -1
  43. package/.output/server/chunks/build/dcw-wTRwBAUi.mjs.map +1 -0
  44. package/.output/server/chunks/build/{default-CVVO40Jj.mjs → default-Dt6xLdpd.mjs} +7 -5
  45. package/.output/server/chunks/build/{default-CVVO40Jj.mjs.map → default-Dt6xLdpd.mjs.map} +1 -1
  46. package/.output/server/chunks/build/interval-WlxgjTzO.mjs +9 -0
  47. package/.output/server/chunks/build/interval-WlxgjTzO.mjs.map +1 -0
  48. package/.output/server/chunks/build/{logs-DqNgCJAn.mjs → logs-Cdi-eXlN.mjs} +5 -3
  49. package/.output/server/chunks/build/logs-Cdi-eXlN.mjs.map +1 -0
  50. package/.output/server/chunks/build/{monitor-CTZLwbdw.mjs → monitor-yNoV98rf.mjs} +6 -4
  51. package/.output/server/chunks/build/{monitor-CTZLwbdw.mjs.map → monitor-yNoV98rf.mjs.map} +1 -1
  52. package/.output/server/chunks/build/{pages-DC52d7z7.mjs → pages-bWKy0ZsA.mjs} +6 -4
  53. package/.output/server/chunks/build/pages-bWKy0ZsA.mjs.map +1 -0
  54. package/.output/server/chunks/build/{plugins-DVQty7qG.mjs → plugins-B-ZNey0Z.mjs} +4 -2
  55. package/.output/server/chunks/build/plugins-B-ZNey0Z.mjs.map +1 -0
  56. package/.output/server/chunks/build/{settings-BeergncK.mjs → settings-C3T5hR2A.mjs} +21 -19
  57. package/.output/server/chunks/build/settings-C3T5hR2A.mjs.map +1 -0
  58. package/.output/server/chunks/build/{teams-CFeDlHDh.mjs → teams-QR3BBF7A.mjs} +5 -3
  59. package/.output/server/chunks/build/teams-QR3BBF7A.mjs.map +1 -0
  60. package/.output/server/chunks/build/{tokens-CBAUbOce.mjs → tokens-DFvr_TLj.mjs} +4 -2
  61. package/.output/server/chunks/build/tokens-DFvr_TLj.mjs.map +1 -0
  62. package/.output/server/chunks/build/town-BUqRobze.mjs +2 -0
  63. package/.output/server/chunks/build/town-BUqRobze.mjs.map +1 -1
  64. package/.output/server/chunks/build/{town-BxH-XXth.mjs → town-CKg6Qxba.mjs} +9 -7
  65. package/.output/server/chunks/build/town-CKg6Qxba.mjs.map +1 -0
  66. package/.output/server/chunks/build/{useDaqStream-CwORhsD7.mjs → useDaqStream-zHEptJQ_.mjs} +44 -1
  67. package/.output/server/chunks/build/useDaqStream-zHEptJQ_.mjs.map +1 -0
  68. package/.output/server/chunks/build/{useSiteConfig-Cc-ABesl.mjs → useSiteConfig-DJe_KMVr.mjs} +1 -1
  69. package/.output/server/chunks/build/{useSiteConfig-Cc-ABesl.mjs.map → useSiteConfig-DJe_KMVr.mjs.map} +1 -1
  70. package/.output/server/chunks/build/{useWorkshopApi-5er8_EHZ.mjs → useWorkshopApi-Bh5VUHWu.mjs} +1 -1
  71. package/.output/server/chunks/build/{useWorkshopApi-5er8_EHZ.mjs.map → useWorkshopApi-Bh5VUHWu.mjs.map} +1 -1
  72. package/.output/server/chunks/build/{useWorkshopWs-Dwr_1Q8f.mjs → useWorkshopWs-xcdeiSmJ.mjs} +2 -2
  73. package/.output/server/chunks/build/{useWorkshopWs-Dwr_1Q8f.mjs.map → useWorkshopWs-xcdeiSmJ.mjs.map} +1 -1
  74. package/.output/server/chunks/build/{user-CpVY4OAA.mjs → user-Dk-ytEUV.mjs} +1 -1
  75. package/.output/server/chunks/build/{user-CpVY4OAA.mjs.map → user-Dk-ytEUV.mjs.map} +1 -1
  76. package/.output/server/chunks/build/{users-BMs4s_6K.mjs → users-4FZ0yFUO.mjs} +4 -2
  77. package/.output/server/chunks/build/users-4FZ0yFUO.mjs.map +1 -0
  78. package/.output/server/chunks/build/{workshop-CJAyZ5zS.mjs → workshop-CLhwe5eo.mjs} +6 -4
  79. package/.output/server/chunks/build/workshop-CLhwe5eo.mjs.map +1 -0
  80. package/.output/server/chunks/build/{workspaces-Dq-1zvu9.mjs → workspaces-IfORCDJE.mjs} +2 -2
  81. package/.output/server/chunks/build/{workspaces-Dq-1zvu9.mjs.map → workspaces-IfORCDJE.mjs.map} +1 -1
  82. package/.output/server/chunks/routes/api/health.get.mjs +2 -0
  83. package/.output/server/chunks/routes/api/health.get.mjs.map +1 -1
  84. package/.output/server/chunks/routes/api/index.get.mjs +2 -0
  85. package/.output/server/chunks/routes/api/index.get.mjs.map +1 -1
  86. package/.output/server/chunks/routes/api/index.post.mjs +2 -0
  87. package/.output/server/chunks/routes/api/index.post.mjs.map +1 -1
  88. package/.output/server/chunks/routes/api/mcp/workshop.mjs +2 -0
  89. package/.output/server/chunks/routes/api/mcp/workshop.mjs.map +1 -1
  90. package/.output/server/chunks/routes/api/metrics.mjs +2 -0
  91. package/.output/server/chunks/routes/api/metrics.mjs.map +1 -1
  92. package/.output/server/chunks/routes/api/plugins/_name/_...path_.mjs +2 -0
  93. package/.output/server/chunks/routes/api/plugins/_name/_...path_.mjs.map +1 -1
  94. package/.output/server/chunks/routes/api/plugins/client/_name_.get.mjs +2 -0
  95. package/.output/server/chunks/routes/api/plugins/client/_name_.get.mjs.map +1 -1
  96. package/.output/server/chunks/routes/api/plugins/manifest.get.mjs +2 -0
  97. package/.output/server/chunks/routes/api/plugins/manifest.get.mjs.map +1 -1
  98. package/.output/server/chunks/routes/api/system/config.get.mjs +2 -0
  99. package/.output/server/chunks/routes/api/system/config.get.mjs.map +1 -1
  100. package/.output/server/chunks/routes/api/system/index.get.mjs +2 -0
  101. package/.output/server/chunks/routes/api/system/index.get.mjs.map +1 -1
  102. package/.output/server/chunks/routes/api/system/index.patch.mjs +2 -0
  103. package/.output/server/chunks/routes/api/system/index.patch.mjs.map +1 -1
  104. package/.output/server/chunks/routes/api/system/monitor/terminal/ws.mjs +2 -0
  105. package/.output/server/chunks/routes/api/system/monitor/terminal/ws.mjs.map +1 -1
  106. package/.output/server/chunks/routes/api/system/monitor/terminate.post.mjs +2 -0
  107. package/.output/server/chunks/routes/api/system/monitor/terminate.post.mjs.map +1 -1
  108. package/.output/server/chunks/routes/api/system/monitor.get.mjs +2 -0
  109. package/.output/server/chunks/routes/api/system/monitor.get.mjs.map +1 -1
  110. package/.output/server/chunks/routes/api/system/settings/events.get.mjs +3 -2
  111. package/.output/server/chunks/routes/api/system/settings/events.get.mjs.map +1 -1
  112. package/.output/server/chunks/routes/api/system/settings/reset.post.mjs +2 -0
  113. package/.output/server/chunks/routes/api/system/settings/reset.post.mjs.map +1 -1
  114. package/.output/server/chunks/routes/api/users/_id_.delete.mjs +2 -0
  115. package/.output/server/chunks/routes/api/users/_id_.delete.mjs.map +1 -1
  116. package/.output/server/chunks/routes/api/users/_id_.get.mjs +2 -0
  117. package/.output/server/chunks/routes/api/users/_id_.get.mjs.map +1 -1
  118. package/.output/server/chunks/routes/api/users/_id_.put.mjs +2 -0
  119. package/.output/server/chunks/routes/api/users/_id_.put.mjs.map +1 -1
  120. package/.output/server/chunks/routes/api/users/index.get.mjs +2 -0
  121. package/.output/server/chunks/routes/api/users/index.get.mjs.map +1 -1
  122. package/.output/server/chunks/routes/api/users/index.post.mjs +2 -0
  123. package/.output/server/chunks/routes/api/users/index.post.mjs.map +1 -1
  124. package/.output/server/chunks/routes/api/users/login.post.mjs +2 -0
  125. package/.output/server/chunks/routes/api/users/login.post.mjs.map +1 -1
  126. package/.output/server/chunks/routes/api/users/logout.post.mjs +2 -0
  127. package/.output/server/chunks/routes/api/users/logout.post.mjs.map +1 -1
  128. package/.output/server/chunks/routes/api/users/me.get.mjs +2 -0
  129. package/.output/server/chunks/routes/api/users/me.get.mjs.map +1 -1
  130. package/.output/server/chunks/routes/api/users/register.post.mjs +2 -0
  131. package/.output/server/chunks/routes/api/users/register.post.mjs.map +1 -1
  132. package/.output/server/chunks/routes/api/users/tokens/_id/token.get.mjs +2 -0
  133. package/.output/server/chunks/routes/api/users/tokens/_id/token.get.mjs.map +1 -1
  134. package/.output/server/chunks/routes/api/users/tokens/_id_.delete.mjs +2 -0
  135. package/.output/server/chunks/routes/api/users/tokens/_id_.delete.mjs.map +1 -1
  136. package/.output/server/chunks/routes/api/users/tokens/_id_.patch.mjs +2 -0
  137. package/.output/server/chunks/routes/api/users/tokens/_id_.patch.mjs.map +1 -1
  138. package/.output/server/chunks/routes/api/workshop/_...path_.mjs +2 -0
  139. package/.output/server/chunks/routes/api/workshop/_...path_.mjs.map +1 -1
  140. package/.output/server/chunks/routes/api/workshop/a2a/_agentId/index.get.mjs +2 -0
  141. package/.output/server/chunks/routes/api/workshop/a2a/_agentId/index.get.mjs.map +1 -1
  142. package/.output/server/chunks/routes/api/workshop/a2a/_agentId/index.post.mjs +2 -0
  143. package/.output/server/chunks/routes/api/workshop/a2a/_agentId/index.post.mjs.map +1 -1
  144. package/.output/server/chunks/routes/api/workshop/a2a/send.post.mjs +2 -0
  145. package/.output/server/chunks/routes/api/workshop/a2a/send.post.mjs.map +1 -1
  146. package/.output/server/chunks/routes/api/workshop/agent-tools/approvals/_id/decide.post.mjs +2 -0
  147. package/.output/server/chunks/routes/api/workshop/agent-tools/approvals/_id/decide.post.mjs.map +1 -1
  148. package/.output/server/chunks/routes/api/workshop/agent-tools/bindings/_id_.delete.mjs +2 -0
  149. package/.output/server/chunks/routes/api/workshop/agent-tools/bindings/_id_.delete.mjs.map +1 -1
  150. package/.output/server/chunks/routes/api/workshop/agent-tools/bindings/_id_.patch.mjs +2 -0
  151. package/.output/server/chunks/routes/api/workshop/agent-tools/bindings/_id_.patch.mjs.map +1 -1
  152. package/.output/server/chunks/routes/api/workshop/agent-tools/index.get.mjs +2 -0
  153. package/.output/server/chunks/routes/api/workshop/agent-tools/index.get.mjs.map +1 -1
  154. package/.output/server/chunks/routes/api/workshop/agent-tools/index.post.mjs +2 -0
  155. package/.output/server/chunks/routes/api/workshop/agent-tools/index.post.mjs.map +1 -1
  156. package/.output/server/chunks/routes/api/workshop/agent-tools/index2.get.mjs +2 -0
  157. package/.output/server/chunks/routes/api/workshop/agent-tools/index2.get.mjs.map +1 -1
  158. package/.output/server/chunks/routes/api/workshop/agent-tools/invoke.post.mjs +2 -0
  159. package/.output/server/chunks/routes/api/workshop/agent-tools/invoke.post.mjs.map +1 -1
  160. package/.output/server/chunks/routes/api/workshop/agents/_id_.delete.mjs +2 -0
  161. package/.output/server/chunks/routes/api/workshop/agents/_id_.delete.mjs.map +1 -1
  162. package/.output/server/chunks/routes/api/workshop/agents/_id_.get.mjs +2 -0
  163. package/.output/server/chunks/routes/api/workshop/agents/_id_.get.mjs.map +1 -1
  164. package/.output/server/chunks/routes/api/workshop/agents/_id_.patch.mjs +2 -0
  165. package/.output/server/chunks/routes/api/workshop/agents/_id_.patch.mjs.map +1 -1
  166. package/.output/server/chunks/routes/api/workshop/agents/subscribe.post.mjs +2 -0
  167. package/.output/server/chunks/routes/api/workshop/agents/subscribe.post.mjs.map +1 -1
  168. package/.output/server/chunks/routes/api/workshop/approvals/_id/decide.post.mjs +2 -0
  169. package/.output/server/chunks/routes/api/workshop/approvals/_id/decide.post.mjs.map +1 -1
  170. package/.output/server/chunks/routes/api/workshop/assets/character/_id_.delete.mjs +2 -0
  171. package/.output/server/chunks/routes/api/workshop/assets/character/_id_.delete.mjs.map +1 -1
  172. package/.output/server/chunks/routes/api/workshop/assets/devices/_id_.delete.mjs +2 -0
  173. package/.output/server/chunks/routes/api/workshop/assets/devices/_id_.delete.mjs.map +1 -1
  174. package/.output/server/chunks/routes/api/workshop/assets/index.get.mjs +2 -0
  175. package/.output/server/chunks/routes/api/workshop/assets/index.get.mjs.map +1 -1
  176. package/.output/server/chunks/routes/api/workshop/assets/index.post.mjs +2 -0
  177. package/.output/server/chunks/routes/api/workshop/assets/index.post.mjs.map +1 -1
  178. package/.output/server/chunks/routes/api/workshop/assets/index2.get.mjs +2 -0
  179. package/.output/server/chunks/routes/api/workshop/assets/index2.get.mjs.map +1 -1
  180. package/.output/server/chunks/routes/api/workshop/assets/index2.post.mjs +2 -0
  181. package/.output/server/chunks/routes/api/workshop/assets/index2.post.mjs.map +1 -1
  182. package/.output/server/chunks/routes/api/workshop/audit.get.mjs +2 -0
  183. package/.output/server/chunks/routes/api/workshop/audit.get.mjs.map +1 -1
  184. package/.output/server/chunks/routes/api/workshop/caller.mjs +2 -0
  185. package/.output/server/chunks/routes/api/workshop/caller.mjs.map +1 -1
  186. package/.output/server/chunks/routes/api/workshop/channel-templates/_id/instantiate.post.mjs +2 -0
  187. package/.output/server/chunks/routes/api/workshop/channel-templates/_id/instantiate.post.mjs.map +1 -1
  188. package/.output/server/chunks/routes/api/workshop/channel-templates/_id_.delete.mjs +2 -0
  189. package/.output/server/chunks/routes/api/workshop/channel-templates/_id_.delete.mjs.map +1 -1
  190. package/.output/server/chunks/routes/api/workshop/channel-templates/_id_.get.mjs +2 -0
  191. package/.output/server/chunks/routes/api/workshop/channel-templates/_id_.get.mjs.map +1 -1
  192. package/.output/server/chunks/routes/api/workshop/channel-templates/_id_.patch.mjs +2 -0
  193. package/.output/server/chunks/routes/api/workshop/channel-templates/_id_.patch.mjs.map +1 -1
  194. package/.output/server/chunks/routes/api/workshop/channel-templates/from-channel.post.mjs +2 -0
  195. package/.output/server/chunks/routes/api/workshop/channel-templates/from-channel.post.mjs.map +1 -1
  196. package/.output/server/chunks/routes/api/workshop/channels/_id/activate.post.mjs +2 -0
  197. package/.output/server/chunks/routes/api/workshop/channels/_id/activate.post.mjs.map +1 -1
  198. package/.output/server/chunks/routes/api/workshop/channels/_id/agents/_agentId/index.get.mjs +2 -0
  199. package/.output/server/chunks/routes/api/workshop/channels/_id/agents/_agentId/index.get.mjs.map +1 -1
  200. package/.output/server/chunks/routes/api/workshop/channels/_id/agents/_agentId/index.post.mjs +2 -0
  201. package/.output/server/chunks/routes/api/workshop/channels/_id/agents/_agentId/index.post.mjs.map +1 -1
  202. package/.output/server/chunks/routes/api/workshop/channels/_id/agents/_agentId/memories/_memoryId_.delete.mjs +2 -0
  203. package/.output/server/chunks/routes/api/workshop/channels/_id/agents/_agentId/memories/_memoryId_.delete.mjs.map +1 -1
  204. package/.output/server/chunks/routes/api/workshop/channels/_id/agents/_agentId/memories/search.post.mjs +2 -0
  205. package/.output/server/chunks/routes/api/workshop/channels/_id/agents/_agentId/memories/search.post.mjs.map +1 -1
  206. package/.output/server/chunks/routes/api/workshop/channels/_id/agents/_agentId/model.patch.mjs +2 -0
  207. package/.output/server/chunks/routes/api/workshop/channels/_id/agents/_agentId/model.patch.mjs.map +1 -1
  208. package/.output/server/chunks/routes/api/workshop/channels/_id/agents/_agentId/position.patch.mjs +2 -0
  209. package/.output/server/chunks/routes/api/workshop/channels/_id/agents/_agentId/position.patch.mjs.map +1 -1
  210. package/.output/server/chunks/routes/api/workshop/channels/_id/agents/_agentId/range.patch.mjs +2 -0
  211. package/.output/server/chunks/routes/api/workshop/channels/_id/agents/_agentId/range.patch.mjs.map +1 -1
  212. package/.output/server/chunks/routes/api/workshop/channels/_id/agents/_agentId/stop.post.mjs +2 -0
  213. package/.output/server/chunks/routes/api/workshop/channels/_id/agents/_agentId/stop.post.mjs.map +1 -1
  214. package/.output/server/chunks/routes/api/workshop/channels/_id/agents/_agentId_.delete.mjs +2 -0
  215. package/.output/server/chunks/routes/api/workshop/channels/_id/agents/_agentId_.delete.mjs.map +1 -1
  216. package/.output/server/chunks/routes/api/workshop/channels/_id/agents/_agentId_.patch.mjs +2 -0
  217. package/.output/server/chunks/routes/api/workshop/channels/_id/agents/_agentId_.patch.mjs.map +1 -1
  218. package/.output/server/chunks/routes/api/workshop/channels/_id/events.get.mjs +2 -0
  219. package/.output/server/chunks/routes/api/workshop/channels/_id/events.get.mjs.map +1 -1
  220. package/.output/server/chunks/routes/api/workshop/channels/_id/index.get.mjs +2 -0
  221. package/.output/server/chunks/routes/api/workshop/channels/_id/index.get.mjs.map +1 -1
  222. package/.output/server/chunks/routes/api/workshop/channels/_id/index.post.mjs +2 -0
  223. package/.output/server/chunks/routes/api/workshop/channels/_id/index.post.mjs.map +1 -1
  224. package/.output/server/chunks/routes/api/workshop/channels/_id/index2.get.mjs +2 -0
  225. package/.output/server/chunks/routes/api/workshop/channels/_id/index2.get.mjs.map +1 -1
  226. package/.output/server/chunks/routes/api/workshop/channels/_id/index2.post.mjs +2 -0
  227. package/.output/server/chunks/routes/api/workshop/channels/_id/index2.post.mjs.map +1 -1
  228. package/.output/server/chunks/routes/api/workshop/channels/_id/index3.get.mjs +2 -0
  229. package/.output/server/chunks/routes/api/workshop/channels/_id/index3.get.mjs.map +1 -1
  230. package/.output/server/chunks/routes/api/workshop/channels/_id/index3.post.mjs +2 -0
  231. package/.output/server/chunks/routes/api/workshop/channels/_id/index3.post.mjs.map +1 -1
  232. package/.output/server/chunks/routes/api/workshop/channels/_id/index4.get.mjs +2 -0
  233. package/.output/server/chunks/routes/api/workshop/channels/_id/index4.get.mjs.map +1 -1
  234. package/.output/server/chunks/routes/api/workshop/channels/_id/index4.post.mjs +2 -0
  235. package/.output/server/chunks/routes/api/workshop/channels/_id/index4.post.mjs.map +1 -1
  236. package/.output/server/chunks/routes/api/workshop/channels/_id/memories/_memoryId_.delete.mjs +2 -0
  237. package/.output/server/chunks/routes/api/workshop/channels/_id/memories/_memoryId_.delete.mjs.map +1 -1
  238. package/.output/server/chunks/routes/api/workshop/channels/_id/queue.get.mjs +2 -0
  239. package/.output/server/chunks/routes/api/workshop/channels/_id/queue.get.mjs.map +1 -1
  240. package/.output/server/chunks/routes/api/workshop/channels/_id/terminals.get.mjs +2 -0
  241. package/.output/server/chunks/routes/api/workshop/channels/_id/terminals.get.mjs.map +1 -1
  242. package/.output/server/chunks/routes/api/workshop/channels/_id_.delete.mjs +2 -0
  243. package/.output/server/chunks/routes/api/workshop/channels/_id_.delete.mjs.map +1 -1
  244. package/.output/server/chunks/routes/api/workshop/channels/index.get.mjs +2 -0
  245. package/.output/server/chunks/routes/api/workshop/channels/index.get.mjs.map +1 -1
  246. package/.output/server/chunks/routes/api/workshop/channels/index.patch.mjs +2 -0
  247. package/.output/server/chunks/routes/api/workshop/channels/index.patch.mjs.map +1 -1
  248. package/.output/server/chunks/routes/api/workshop/channels.get.mjs +2 -0
  249. package/.output/server/chunks/routes/api/workshop/channels.get.mjs.map +1 -1
  250. package/.output/server/chunks/routes/api/workshop/channels.post.mjs +2 -0
  251. package/.output/server/chunks/routes/api/workshop/channels.post.mjs.map +1 -1
  252. package/.output/server/chunks/routes/api/workshop/daq/_id/bind.post.mjs +2 -0
  253. package/.output/server/chunks/routes/api/workshop/daq/_id/bind.post.mjs.map +1 -1
  254. package/.output/server/chunks/routes/api/workshop/daq/_id/frames/content.get.mjs +36 -0
  255. package/.output/server/chunks/routes/api/workshop/daq/_id/frames/content.get.mjs.map +1 -0
  256. package/.output/server/chunks/routes/api/workshop/daq/_id/frames.get.mjs +53 -0
  257. package/.output/server/chunks/routes/api/workshop/daq/_id/frames.get.mjs.map +1 -0
  258. package/.output/server/chunks/routes/api/workshop/daq/_id/samples.get.mjs +2 -0
  259. package/.output/server/chunks/routes/api/workshop/daq/_id/samples.get.mjs.map +1 -1
  260. package/.output/server/chunks/routes/api/workshop/daq/_id/test.post.mjs +2 -0
  261. package/.output/server/chunks/routes/api/workshop/daq/_id/test.post.mjs.map +1 -1
  262. package/.output/server/chunks/routes/api/workshop/daq/_id_.delete.mjs +2 -0
  263. package/.output/server/chunks/routes/api/workshop/daq/_id_.delete.mjs.map +1 -1
  264. package/.output/server/chunks/routes/api/workshop/daq/_id_.patch.mjs +2 -0
  265. package/.output/server/chunks/routes/api/workshop/daq/_id_.patch.mjs.map +1 -1
  266. package/.output/server/chunks/routes/api/workshop/daq/alarms/_id/ack.post.mjs +2 -0
  267. package/.output/server/chunks/routes/api/workshop/daq/alarms/_id/ack.post.mjs.map +1 -1
  268. package/.output/server/chunks/routes/api/workshop/daq/alarms.get.mjs +2 -0
  269. package/.output/server/chunks/routes/api/workshop/daq/alarms.get.mjs.map +1 -1
  270. package/.output/server/chunks/routes/api/workshop/daq/controller.post.mjs +2 -0
  271. package/.output/server/chunks/routes/api/workshop/daq/controller.post.mjs.map +1 -1
  272. package/.output/server/chunks/routes/api/workshop/daq/index.post.mjs +2 -0
  273. package/.output/server/chunks/routes/api/workshop/daq/index.post.mjs.map +1 -1
  274. package/.output/server/chunks/routes/api/workshop/daq/infra/reconnect.post.mjs +2 -0
  275. package/.output/server/chunks/routes/api/workshop/daq/infra/reconnect.post.mjs.map +1 -1
  276. package/.output/server/chunks/routes/api/workshop/daq/infra.get.mjs +2 -0
  277. package/.output/server/chunks/routes/api/workshop/daq/infra.get.mjs.map +1 -1
  278. package/.output/server/chunks/routes/api/workshop/daq/templates/_key_.delete.mjs +2 -0
  279. package/.output/server/chunks/routes/api/workshop/daq/templates/_key_.delete.mjs.map +1 -1
  280. package/.output/server/chunks/routes/api/workshop/daq/templates/_key_.patch.mjs +2 -0
  281. package/.output/server/chunks/routes/api/workshop/daq/templates/_key_.patch.mjs.map +1 -1
  282. package/.output/server/chunks/routes/api/workshop/daq/test-driver.post.mjs +2 -0
  283. package/.output/server/chunks/routes/api/workshop/daq/test-driver.post.mjs.map +1 -1
  284. package/.output/server/chunks/routes/api/workshop/dcw/_id/bind.post.mjs +2 -0
  285. package/.output/server/chunks/routes/api/workshop/dcw/_id/bind.post.mjs.map +1 -1
  286. package/.output/server/chunks/routes/api/workshop/dcw/_id/param-ledger.get.mjs +2 -0
  287. package/.output/server/chunks/routes/api/workshop/dcw/_id/param-ledger.get.mjs.map +1 -1
  288. package/.output/server/chunks/routes/api/workshop/dcw/_id/test.post.mjs +2 -0
  289. package/.output/server/chunks/routes/api/workshop/dcw/_id/test.post.mjs.map +1 -1
  290. package/.output/server/chunks/routes/api/workshop/dcw/_id/write.post.mjs +2 -0
  291. package/.output/server/chunks/routes/api/workshop/dcw/_id/write.post.mjs.map +1 -1
  292. package/.output/server/chunks/routes/api/workshop/dcw/_id_.delete.mjs +2 -0
  293. package/.output/server/chunks/routes/api/workshop/dcw/_id_.delete.mjs.map +1 -1
  294. package/.output/server/chunks/routes/api/workshop/dcw/_id_.patch.mjs +2 -0
  295. package/.output/server/chunks/routes/api/workshop/dcw/_id_.patch.mjs.map +1 -1
  296. package/.output/server/chunks/routes/api/workshop/dcw/controller.post.mjs +2 -0
  297. package/.output/server/chunks/routes/api/workshop/dcw/controller.post.mjs.map +1 -1
  298. package/.output/server/chunks/routes/api/workshop/dcw/index.get.mjs +2 -0
  299. package/.output/server/chunks/routes/api/workshop/dcw/index.get.mjs.map +1 -1
  300. package/.output/server/chunks/routes/api/workshop/dcw/index.post.mjs +2 -0
  301. package/.output/server/chunks/routes/api/workshop/dcw/index.post.mjs.map +1 -1
  302. package/.output/server/chunks/routes/api/workshop/dcw/index2.get.mjs +2 -0
  303. package/.output/server/chunks/routes/api/workshop/dcw/index2.get.mjs.map +1 -1
  304. package/.output/server/chunks/routes/api/workshop/dcw/index2.post.mjs +2 -0
  305. package/.output/server/chunks/routes/api/workshop/dcw/index2.post.mjs.map +1 -1
  306. package/.output/server/chunks/routes/api/workshop/dcw/index3.get.mjs +2 -0
  307. package/.output/server/chunks/routes/api/workshop/dcw/index3.get.mjs.map +1 -1
  308. package/.output/server/chunks/routes/api/workshop/dcw/index3.post.mjs +2 -0
  309. package/.output/server/chunks/routes/api/workshop/dcw/index3.post.mjs.map +1 -1
  310. package/.output/server/chunks/routes/api/workshop/dcw/index4.get.mjs +2 -0
  311. package/.output/server/chunks/routes/api/workshop/dcw/index4.get.mjs.map +1 -1
  312. package/.output/server/chunks/routes/api/workshop/dcw/index4.post.mjs +2 -0
  313. package/.output/server/chunks/routes/api/workshop/dcw/index4.post.mjs.map +1 -1
  314. package/.output/server/chunks/routes/api/workshop/dcw/index5.get.mjs +2 -0
  315. package/.output/server/chunks/routes/api/workshop/dcw/index5.get.mjs.map +1 -1
  316. package/.output/server/chunks/routes/api/workshop/dcw/journal/node/_nodeId/rollback.post.mjs +2 -0
  317. package/.output/server/chunks/routes/api/workshop/dcw/journal/node/_nodeId/rollback.post.mjs.map +1 -1
  318. package/.output/server/chunks/routes/api/workshop/dcw/line/query.get.mjs +2 -0
  319. package/.output/server/chunks/routes/api/workshop/dcw/line/query.get.mjs.map +1 -1
  320. package/.output/server/chunks/routes/api/workshop/dcw/lines/_id/start.post.mjs +2 -0
  321. package/.output/server/chunks/routes/api/workshop/dcw/lines/_id/start.post.mjs.map +1 -1
  322. package/.output/server/chunks/routes/api/workshop/dcw/lines/_id/stop.post.mjs +2 -0
  323. package/.output/server/chunks/routes/api/workshop/dcw/lines/_id/stop.post.mjs.map +1 -1
  324. package/.output/server/chunks/routes/api/workshop/dcw/lines/_id_.delete.mjs +2 -0
  325. package/.output/server/chunks/routes/api/workshop/dcw/lines/_id_.delete.mjs.map +1 -1
  326. package/.output/server/chunks/routes/api/workshop/dcw/lines/_id_.patch.mjs +2 -0
  327. package/.output/server/chunks/routes/api/workshop/dcw/lines/_id_.patch.mjs.map +1 -1
  328. package/.output/server/chunks/routes/api/workshop/dcw/optimizations/_id/judge.post.mjs +2 -0
  329. package/.output/server/chunks/routes/api/workshop/dcw/optimizations/_id/judge.post.mjs.map +1 -1
  330. package/.output/server/chunks/routes/api/workshop/dcw/optimizations/_id/rollback.post.mjs +2 -0
  331. package/.output/server/chunks/routes/api/workshop/dcw/optimizations/_id/rollback.post.mjs.map +1 -1
  332. package/.output/server/chunks/routes/api/workshop/dcw/optimizations/_id/series.get.mjs +2 -0
  333. package/.output/server/chunks/routes/api/workshop/dcw/optimizations/_id/series.get.mjs.map +1 -1
  334. package/.output/server/chunks/routes/api/workshop/dcw/optimizations/_id_.get.mjs +2 -0
  335. package/.output/server/chunks/routes/api/workshop/dcw/optimizations/_id_.get.mjs.map +1 -1
  336. package/.output/server/chunks/routes/api/workshop/dcw/products/_id_.delete.mjs +2 -0
  337. package/.output/server/chunks/routes/api/workshop/dcw/products/_id_.delete.mjs.map +1 -1
  338. package/.output/server/chunks/routes/api/workshop/dcw/products/_id_.patch.mjs +2 -0
  339. package/.output/server/chunks/routes/api/workshop/dcw/products/_id_.patch.mjs.map +1 -1
  340. package/.output/server/chunks/routes/api/workshop/dcw/recipes/_id/apply.post.mjs +2 -0
  341. package/.output/server/chunks/routes/api/workshop/dcw/recipes/_id/apply.post.mjs.map +1 -1
  342. package/.output/server/chunks/routes/api/workshop/dcw/recipes/_id/mark-good.post.mjs +2 -0
  343. package/.output/server/chunks/routes/api/workshop/dcw/recipes/_id/mark-good.post.mjs.map +1 -1
  344. package/.output/server/chunks/routes/api/workshop/dcw/recipes/_id/rollback-good.post.mjs +2 -0
  345. package/.output/server/chunks/routes/api/workshop/dcw/recipes/_id/rollback-good.post.mjs.map +1 -1
  346. package/.output/server/chunks/routes/api/workshop/dcw/recipes/_id_.delete.mjs +2 -0
  347. package/.output/server/chunks/routes/api/workshop/dcw/recipes/_id_.delete.mjs.map +1 -1
  348. package/.output/server/chunks/routes/api/workshop/dcw/recipes/_id_.patch.mjs +2 -0
  349. package/.output/server/chunks/routes/api/workshop/dcw/recipes/_id_.patch.mjs.map +1 -1
  350. package/.output/server/chunks/routes/api/workshop/dcw/runs/_id/close.post.mjs +2 -0
  351. package/.output/server/chunks/routes/api/workshop/dcw/runs/_id/close.post.mjs.map +1 -1
  352. package/.output/server/chunks/routes/api/workshop/dcw/runs/_id/data.get.mjs +2 -0
  353. package/.output/server/chunks/routes/api/workshop/dcw/runs/_id/data.get.mjs.map +1 -1
  354. package/.output/server/chunks/routes/api/workshop/dcw/runs/_id/rollback.post.mjs +2 -0
  355. package/.output/server/chunks/routes/api/workshop/dcw/runs/_id/rollback.post.mjs.map +1 -1
  356. package/.output/server/chunks/routes/api/workshop/dcw/templates/_key_.delete.mjs +2 -0
  357. package/.output/server/chunks/routes/api/workshop/dcw/templates/_key_.delete.mjs.map +1 -1
  358. package/.output/server/chunks/routes/api/workshop/dcw/templates/_key_.patch.mjs +2 -0
  359. package/.output/server/chunks/routes/api/workshop/dcw/templates/_key_.patch.mjs.map +1 -1
  360. package/.output/server/chunks/routes/api/workshop/dcw/test-driver.post.mjs +2 -0
  361. package/.output/server/chunks/routes/api/workshop/dcw/test-driver.post.mjs.map +1 -1
  362. package/.output/server/chunks/routes/api/workshop/device-twins/_id/control.post.mjs +2 -0
  363. package/.output/server/chunks/routes/api/workshop/device-twins/_id/control.post.mjs.map +1 -1
  364. package/.output/server/chunks/routes/api/workshop/device-twins/_id/telemetry.post.mjs +2 -0
  365. package/.output/server/chunks/routes/api/workshop/device-twins/_id/telemetry.post.mjs.map +1 -1
  366. package/.output/server/chunks/routes/api/workshop/device-twins/_id_.delete.mjs +2 -0
  367. package/.output/server/chunks/routes/api/workshop/device-twins/_id_.delete.mjs.map +1 -1
  368. package/.output/server/chunks/routes/api/workshop/device-twins/_id_.patch.mjs +2 -0
  369. package/.output/server/chunks/routes/api/workshop/device-twins/_id_.patch.mjs.map +1 -1
  370. package/.output/server/chunks/routes/api/workshop/fs/dirs.get.mjs +2 -0
  371. package/.output/server/chunks/routes/api/workshop/fs/dirs.get.mjs.map +1 -1
  372. package/.output/server/chunks/routes/api/workshop/index.get.mjs +2 -0
  373. package/.output/server/chunks/routes/api/workshop/index.get.mjs.map +1 -1
  374. package/.output/server/chunks/routes/api/workshop/index.post.mjs +2 -0
  375. package/.output/server/chunks/routes/api/workshop/index.post.mjs.map +1 -1
  376. package/.output/server/chunks/routes/api/workshop/index10.get.mjs +2 -0
  377. package/.output/server/chunks/routes/api/workshop/index10.get.mjs.map +1 -1
  378. package/.output/server/chunks/routes/api/workshop/index2.get.mjs +2 -0
  379. package/.output/server/chunks/routes/api/workshop/index2.get.mjs.map +1 -1
  380. package/.output/server/chunks/routes/api/workshop/index2.post.mjs +2 -0
  381. package/.output/server/chunks/routes/api/workshop/index2.post.mjs.map +1 -1
  382. package/.output/server/chunks/routes/api/workshop/index3.get.mjs +2 -0
  383. package/.output/server/chunks/routes/api/workshop/index3.get.mjs.map +1 -1
  384. package/.output/server/chunks/routes/api/workshop/index3.post.mjs +2 -0
  385. package/.output/server/chunks/routes/api/workshop/index3.post.mjs.map +1 -1
  386. package/.output/server/chunks/routes/api/workshop/index4.get.mjs +2 -0
  387. package/.output/server/chunks/routes/api/workshop/index4.get.mjs.map +1 -1
  388. package/.output/server/chunks/routes/api/workshop/index4.post.mjs +2 -0
  389. package/.output/server/chunks/routes/api/workshop/index4.post.mjs.map +1 -1
  390. package/.output/server/chunks/routes/api/workshop/index5.get.mjs +2 -0
  391. package/.output/server/chunks/routes/api/workshop/index5.get.mjs.map +1 -1
  392. package/.output/server/chunks/routes/api/workshop/index5.post.mjs +2 -0
  393. package/.output/server/chunks/routes/api/workshop/index5.post.mjs.map +1 -1
  394. package/.output/server/chunks/routes/api/workshop/index6.get.mjs +2 -0
  395. package/.output/server/chunks/routes/api/workshop/index6.get.mjs.map +1 -1
  396. package/.output/server/chunks/routes/api/workshop/index6.post.mjs +2 -0
  397. package/.output/server/chunks/routes/api/workshop/index6.post.mjs.map +1 -1
  398. package/.output/server/chunks/routes/api/workshop/index7.get.mjs +2 -0
  399. package/.output/server/chunks/routes/api/workshop/index7.get.mjs.map +1 -1
  400. package/.output/server/chunks/routes/api/workshop/index7.post.mjs +2 -0
  401. package/.output/server/chunks/routes/api/workshop/index7.post.mjs.map +1 -1
  402. package/.output/server/chunks/routes/api/workshop/index8.get.mjs +2 -0
  403. package/.output/server/chunks/routes/api/workshop/index8.get.mjs.map +1 -1
  404. package/.output/server/chunks/routes/api/workshop/index8.post.mjs +2 -0
  405. package/.output/server/chunks/routes/api/workshop/index8.post.mjs.map +1 -1
  406. package/.output/server/chunks/routes/api/workshop/index9.get.mjs +2 -0
  407. package/.output/server/chunks/routes/api/workshop/index9.get.mjs.map +1 -1
  408. package/.output/server/chunks/routes/api/workshop/mailbox/all.get.mjs +2 -0
  409. package/.output/server/chunks/routes/api/workshop/mailbox/all.get.mjs.map +1 -1
  410. package/.output/server/chunks/routes/api/workshop/mailbox.get.mjs +2 -0
  411. package/.output/server/chunks/routes/api/workshop/mailbox.get.mjs.map +1 -1
  412. package/.output/server/chunks/routes/api/workshop/memories/maintenance.post.mjs +2 -0
  413. package/.output/server/chunks/routes/api/workshop/memories/maintenance.post.mjs.map +1 -1
  414. package/.output/server/chunks/routes/api/workshop/plugins/_name/disable.post.mjs +2 -0
  415. package/.output/server/chunks/routes/api/workshop/plugins/_name/disable.post.mjs.map +1 -1
  416. package/.output/server/chunks/routes/api/workshop/plugins/_name/enable.post.mjs +2 -0
  417. package/.output/server/chunks/routes/api/workshop/plugins/_name/enable.post.mjs.map +1 -1
  418. package/.output/server/chunks/routes/api/workshop/plugins/index.get.mjs +2 -0
  419. package/.output/server/chunks/routes/api/workshop/plugins/index.get.mjs.map +1 -1
  420. package/.output/server/chunks/routes/api/workshop/runtime.get.mjs +2 -0
  421. package/.output/server/chunks/routes/api/workshop/runtime.get.mjs.map +1 -1
  422. package/.output/server/chunks/routes/api/workshop/scene/layouts/_channelId_.delete.mjs +2 -0
  423. package/.output/server/chunks/routes/api/workshop/scene/layouts/_channelId_.delete.mjs.map +1 -1
  424. package/.output/server/chunks/routes/api/workshop/scene/layouts/_channelId_.put.mjs +2 -0
  425. package/.output/server/chunks/routes/api/workshop/scene/layouts/_channelId_.put.mjs.map +1 -1
  426. package/.output/server/chunks/routes/api/workshop/scene/layouts.get.mjs +2 -0
  427. package/.output/server/chunks/routes/api/workshop/scene/layouts.get.mjs.map +1 -1
  428. package/.output/server/chunks/routes/api/workshop/tasks/_id/complete.post.mjs +2 -0
  429. package/.output/server/chunks/routes/api/workshop/tasks/_id/complete.post.mjs.map +1 -1
  430. package/.output/server/chunks/routes/api/workshop/tasks/_id/dispatch.post.mjs +2 -0
  431. package/.output/server/chunks/routes/api/workshop/tasks/_id/dispatch.post.mjs.map +1 -1
  432. package/.output/server/chunks/routes/api/workshop/tasks/_id/index.post.mjs +2 -0
  433. package/.output/server/chunks/routes/api/workshop/tasks/_id/index.post.mjs.map +1 -1
  434. package/.output/server/chunks/routes/api/workshop/tasks/_id/report.post.mjs +2 -0
  435. package/.output/server/chunks/routes/api/workshop/tasks/_id/report.post.mjs.map +1 -1
  436. package/.output/server/chunks/routes/api/workshop/tasks/_id/retry.post.mjs +2 -0
  437. package/.output/server/chunks/routes/api/workshop/tasks/_id/retry.post.mjs.map +1 -1
  438. package/.output/server/chunks/routes/api/workshop/tasks/_id_.get.mjs +2 -0
  439. package/.output/server/chunks/routes/api/workshop/tasks/_id_.get.mjs.map +1 -1
  440. package/.output/server/chunks/routes/api/workshop/tasks.get.mjs +2 -0
  441. package/.output/server/chunks/routes/api/workshop/tasks.get.mjs.map +1 -1
  442. package/.output/server/chunks/routes/api/workshop/teams/_id/deploy.post.mjs +2 -0
  443. package/.output/server/chunks/routes/api/workshop/teams/_id/deploy.post.mjs.map +1 -1
  444. package/.output/server/chunks/routes/api/workshop/teams/_id/index.get.mjs +2 -0
  445. package/.output/server/chunks/routes/api/workshop/teams/_id/index.get.mjs.map +1 -1
  446. package/.output/server/chunks/routes/api/workshop/teams/_id/index.post.mjs +2 -0
  447. package/.output/server/chunks/routes/api/workshop/teams/_id/index.post.mjs.map +1 -1
  448. package/.output/server/chunks/routes/api/workshop/teams/_id/members/_agentId_.delete.mjs +2 -0
  449. package/.output/server/chunks/routes/api/workshop/teams/_id/members/_agentId_.delete.mjs.map +1 -1
  450. package/.output/server/chunks/routes/api/workshop/teams/_id_.delete.mjs +2 -0
  451. package/.output/server/chunks/routes/api/workshop/teams/_id_.delete.mjs.map +1 -1
  452. package/.output/server/chunks/routes/api/workshop/teams/_id_.get.mjs +2 -0
  453. package/.output/server/chunks/routes/api/workshop/teams/_id_.get.mjs.map +1 -1
  454. package/.output/server/chunks/routes/api/workshop/teams/_id_.patch.mjs +2 -0
  455. package/.output/server/chunks/routes/api/workshop/teams/_id_.patch.mjs.map +1 -1
  456. package/.output/server/chunks/routes/api/workshop/users/me.get.mjs +2 -0
  457. package/.output/server/chunks/routes/api/workshop/users/me.get.mjs.map +1 -1
  458. package/.output/server/chunks/routes/api/workshop/users/register.post.mjs +2 -0
  459. package/.output/server/chunks/routes/api/workshop/users/register.post.mjs.map +1 -1
  460. package/.output/server/chunks/routes/api/workshop/workspaces/_id/channel-templates/_tplId_.post.mjs +2 -0
  461. package/.output/server/chunks/routes/api/workshop/workspaces/_id/channel-templates/_tplId_.post.mjs.map +1 -1
  462. package/.output/server/chunks/routes/api/workshop/workspaces/_id/channels/_channelId_.delete.mjs +2 -0
  463. package/.output/server/chunks/routes/api/workshop/workspaces/_id/channels/_channelId_.delete.mjs.map +1 -1
  464. package/.output/server/chunks/routes/api/workshop/workspaces/_id/channels/_channelId_.post.mjs +2 -0
  465. package/.output/server/chunks/routes/api/workshop/workspaces/_id/channels/_channelId_.post.mjs.map +1 -1
  466. package/.output/server/chunks/routes/api/workshop/workspaces/index.delete.mjs +2 -0
  467. package/.output/server/chunks/routes/api/workshop/workspaces/index.delete.mjs.map +1 -1
  468. package/.output/server/chunks/routes/renderer.mjs +1 -1
  469. package/.output/server/chunks/routes/renderer.mjs.map +1 -1
  470. package/.output/server/chunks/virtual/entry.mjs +166 -114
  471. package/.output/server/chunks/virtual/entry.mjs.map +1 -1
  472. package/.output/server/chunks/virtual/precomputed.mjs +1 -1
  473. package/.output/server/index.mjs +2 -0
  474. package/.output/server/index.mjs.map +1 -1
  475. package/.output/server/package.json +1 -1
  476. package/app/composables/workshop/useDaqStream.ts +59 -1
  477. package/app/config/schema.ts +8 -0
  478. package/app/pages/daq/[id].vue +141 -1
  479. package/app/pages/settings.vue +10 -5
  480. package/app/plugins/runtime-config.client.ts +65 -65
  481. package/app/stores/runtime-config.ts +212 -212
  482. package/config.yml +77 -70
  483. package/docker-compose.yml +19 -2
  484. package/docs/plugins.md +271 -197
  485. package/i18n/dicts/_en.json +7 -2
  486. package/i18n/dicts/daqDetail.json +8 -2
  487. package/i18n/locales/en.ts +55 -29
  488. package/i18n/locales/zh-CN.ts +55 -29
  489. package/nuxt.config.ts +1 -1
  490. package/package.json +144 -143
  491. package/scripts/_dbg-collab-scenario-e2e.mjs +185 -0
  492. package/scripts/_dbg-daq-frame-alarm.mjs +49 -0
  493. package/scripts/_dbg-daq-frame-ui.mjs +62 -0
  494. package/scripts/_dbg-daq-frame-ws.mjs +72 -0
  495. package/scripts/_dbg-daq-frames-e2e.mjs +118 -0
  496. package/scripts/_dbg-host.mjs +16 -0
  497. package/scripts/_dbg-plugin-agent-read.ts +56 -0
  498. package/scripts/_dbg-plugin-sink-rest.mjs +70 -0
  499. package/scripts/_dbg-plugin-sink-ui.mjs +81 -0
  500. package/scripts/_dbg-plugin-tools-inject.ts +80 -0
  501. package/scripts/_dbg-plugin-verify-e2e.mjs +123 -0
  502. package/scripts/_dbg-prompts-hotreload-test.ts +76 -0
  503. package/scripts/_dbg-release-smoke.mjs +104 -0
  504. package/scripts/i18n-merge.mjs +69 -67
  505. package/scripts/test-context-governor.ts +176 -176
  506. package/scripts/test-daq-frames.ts +180 -0
  507. package/scripts/test-daq-minio.ts +77 -0
  508. package/scripts/test-memory-rrf-mmr.ts +114 -114
  509. package/scripts/test-plugin-ext.ts +173 -0
  510. package/server/api/system/settings/events.get.ts +27 -28
  511. package/server/api/system/settings/index.get.ts +14 -14
  512. package/server/api/system/settings/index.patch.ts +22 -22
  513. package/server/api/system/settings/reset.post.ts +12 -12
  514. package/server/api/workshop/daq/[id]/frames/content.get.ts +24 -0
  515. package/server/api/workshop/daq/[id]/frames.get.ts +44 -0
  516. package/server/data/daqs.json +113 -89
  517. package/server/data/dcw-rollback.json +1 -1
  518. package/server/data/dcw-runs.json +3207 -2517
  519. package/server/data/dcw-writes.json +720 -0
  520. package/server/data/dcws.json +4 -4
  521. package/server/data/line-runs.json +1 -232
  522. package/server/plugins/daq.ts +11 -0
  523. package/server/plugins/system-config.ts +38 -38
  524. package/server/services/system-config.ts +365 -356
  525. package/server/services/workshop/agents/industrial-tools.ts +91 -25
  526. package/server/services/workshop/agents/omp-agent.ts +1955 -1895
  527. package/server/services/workshop/agents/plugin-tools.ts +145 -0
  528. package/server/services/workshop/daq/bus/queue-port.ts +18 -0
  529. package/server/services/workshop/daq/daq-controller.ts +216 -14
  530. package/server/services/workshop/daq/daq-node.ts +257 -247
  531. package/server/services/workshop/daq/daq-runtime.ts +36 -4
  532. package/server/services/workshop/daq/daq-templates.ts +213 -157
  533. package/server/services/workshop/daq/drivers.ts +134 -30
  534. package/server/services/workshop/daq/frames.ts +227 -0
  535. package/server/services/workshop/daq/infra.ts +31 -17
  536. package/server/services/workshop/daq/objectstore/disk.adapter.ts +38 -0
  537. package/server/services/workshop/daq/objectstore/index.ts +88 -0
  538. package/server/services/workshop/daq/objectstore/minio.adapter.ts +60 -0
  539. package/server/services/workshop/daq/objectstore/objectstore-port.ts +27 -0
  540. package/server/services/workshop/daq/plugin-bridge.ts +73 -0
  541. package/server/services/workshop/daq/png-enc.ts +71 -0
  542. package/server/services/workshop/daq/storage/sqlite.adapter.ts +104 -1
  543. package/server/services/workshop/daq/storage/timescale.adapter.ts +95 -4
  544. package/server/services/workshop/daq/storage/tsdb-port.ts +46 -0
  545. package/server/services/workshop/plugins/host.mjs +479 -417
  546. package/server/services/workshop/runtime/agent-runtime.ts +744 -744
  547. package/shared/config/schema.json +6 -1
  548. package/shared/daq-protocol.ts +88 -0
  549. package/.output/public/_nuxt/B-PgoIPN.js +0 -1
  550. package/.output/public/_nuxt/DVNYfGsj.js +0 -1
  551. package/.output/public/_nuxt/_id_.CbiF5PrV.css +0 -1
  552. package/.output/public/_nuxt/builds/meta/6f7e40bf-a960-4f51-8a2e-bb1fffeaa5e8.json +0 -1
  553. package/.output/public/_nuxt/settings.BANibAnV.css +0 -1
  554. package/.output/server/chunks/build/_id_-BOhG2yz8.mjs.map +0 -1
  555. package/.output/server/chunks/build/_id_-CuyMYmhY.mjs.map +0 -1
  556. package/.output/server/chunks/build/agents-BVaxN75W.mjs.map +0 -1
  557. package/.output/server/chunks/build/channel-templates-D1K2IKrE.mjs.map +0 -1
  558. package/.output/server/chunks/build/client-only-CFTHwakk.mjs.map +0 -1
  559. package/.output/server/chunks/build/daq-ObtN1TQ4.mjs.map +0 -1
  560. package/.output/server/chunks/build/dcw-fINr-He1.mjs.map +0 -1
  561. package/.output/server/chunks/build/interval-Bt11uRPw.mjs +0 -9
  562. package/.output/server/chunks/build/interval-Bt11uRPw.mjs.map +0 -1
  563. package/.output/server/chunks/build/logs-DqNgCJAn.mjs.map +0 -1
  564. package/.output/server/chunks/build/pages-DC52d7z7.mjs.map +0 -1
  565. package/.output/server/chunks/build/plugins-DVQty7qG.mjs.map +0 -1
  566. package/.output/server/chunks/build/settings-BeergncK.mjs.map +0 -1
  567. package/.output/server/chunks/build/teams-CFeDlHDh.mjs.map +0 -1
  568. package/.output/server/chunks/build/tokens-CBAUbOce.mjs.map +0 -1
  569. package/.output/server/chunks/build/town-BxH-XXth.mjs.map +0 -1
  570. package/.output/server/chunks/build/useDaqStream-CwORhsD7.mjs.map +0 -1
  571. package/.output/server/chunks/build/users-BMs4s_6K.mjs.map +0 -1
  572. package/.output/server/chunks/build/workshop-CJAyZ5zS.mjs.map +0 -1
@@ -1,176 +1,176 @@
1
- /**
2
- * 上下文治理环测试(假 RPC 客户端,零真实子进程):
3
- * 70% 门控 / get_state 复查 / compact→compaction_end 等待 / legacy 降级 /
4
- * 压缩事件分支 harvest / 被动 usage 透出 / 总开关与最小间隔。
5
- * 运行: npx tsx --tsconfig .nuxt/tsconfig.server.json scripts/test-context-governor.ts
6
- */
7
- import { OmpRpcAgentImpl } from '../server/services/workshop/agents/omp-agent'
8
-
9
- let failures = 0
10
- function check(name: string, ok: boolean, detail = ''): void {
11
- console.log(` ${ok ? 'PASS' : 'FAIL'} ${name}${detail ? ` — ${detail}` : ''}`)
12
- if (!ok) failures += 1
13
- }
14
-
15
- type Frame = Record<string, unknown>
16
-
17
- /** 假 omp RPC 客户端:协议面仿真(命令应答/事件订阅/被动 usage) */
18
- class FakeOmpClient {
19
- alive = true
20
- streaming = false
21
- statsOk = true
22
- compactOk = true
23
- usageTokens = 0
24
- contextWindow = 1000
25
- autoCompact: boolean | null = null
26
- sent: Array<Record<string, unknown>> = []
27
- private listeners = new Set<(e: Frame) => void>()
28
-
29
- onEvent(fn: (e: Frame) => void): () => void {
30
- this.listeners.add(fn)
31
- return () => this.listeners.delete(fn)
32
- }
33
-
34
- emit(e: Frame): void {
35
- for (const fn of this.listeners) fn(e)
36
- }
37
-
38
- async send(cmd: Record<string, unknown>): Promise<{ success: boolean, data?: unknown }> {
39
- this.sent.push(cmd)
40
- const type = cmd.type as string
41
- if (type === 'get_session_stats') {
42
- if (!this.statsOk) throw new Error('omp RPC 命令失败: get_session_stats 未知命令')
43
- return { success: true, data: { contextUsage: { tokens: this.usageTokens, contextWindow: this.contextWindow, percent: this.usageTokens / this.contextWindow } } }
44
- }
45
- if (type === 'get_state') {
46
- return { success: true, data: { isStreaming: this.streaming, isCompacting: false, sessionId: 'sess-1', model: { contextWindow: this.contextWindow } } }
47
- }
48
- if (type === 'compact') {
49
- if (!this.compactOk) throw new Error('omp RPC 命令失败: compact 未知命令')
50
- const summary = '压缩摘要:完成任务A;未竟:验证B'
51
- setTimeout(() => {
52
- this.emit({ type: 'compaction_end', result: { summary, tokensBefore: this.usageTokens, tokensAfter: 30000 }, reason: 'manual' })
53
- }, 10)
54
- return { success: true, data: {} }
55
- }
56
- if (type === 'set_auto_compaction') {
57
- this.autoCompact = cmd.enabled as boolean
58
- return { success: true }
59
- }
60
- return { success: true }
61
- }
62
-
63
- getContextUsage(): { tokens: number, contextWindow: number, percent: number } {
64
- return { tokens: this.usageTokens, contextWindow: this.contextWindow, percent: this.usageTokens / this.contextWindow }
65
- }
66
-
67
- setContextWindow(n: number): void {
68
- this.contextWindow = n
69
- }
70
-
71
- onHostToolCall(_fn: unknown): void {}
72
- }
73
-
74
- /** 装配:真实 OmpRpcAgentImpl + 注入假客户端/假 workspace */
75
- function assemble(): { impl: OmpRpcAgentImpl, client: FakeOmpClient, harvested: Array<Record<string, unknown>> } {
76
- const impl = new OmpRpcAgentImpl({ agentId: 'a1', name: 'A', role: 'worker', channelId: 'ch1' })
77
- const client = new FakeOmpClient()
78
- const harvested: Array<Record<string, unknown>> = []
79
- const box = impl as unknown as Record<string, unknown>
80
- box.client = client
81
- box.workspace = {
82
- recordSessionMemory: async (i: Record<string, unknown>) => {
83
- harvested.push(i)
84
- },
85
- }
86
- return { impl, client, harvested }
87
- }
88
-
89
- const gate = (impl: OmpRpcAgentImpl, reason = 'test'): Promise<void> =>
90
- (impl as unknown as Record<string, unknown>).contextGate(reason) as Promise<void>
91
-
92
- process.env.AW_OMP_COMPACT_THRESHOLD = '0.7'
93
- process.env.AW_OMP_COMPACT_MIN_INTERVAL_MS = '300000'
94
- process.env.AW_OMP_COMPACT_WAIT_MS = '5000'
95
-
96
- console.log('\n--- 门控基础路径 ---')
97
- {
98
- process.env.AW_OMP_COMPACT_ENABLED = '1'
99
- const { impl, client, harvested } = assemble()
100
- client.usageTokens = 500 // 50% < 70%
101
- await gate(impl)
102
- check('低于阈值不触发 compact', !client.sent.some(c => c.type === 'compact'), `sent=${client.sent.map(c => c.type)}`)
103
-
104
- client.usageTokens = 850 // 85% ≥ 70%
105
- await gate(impl)
106
- check('达阈值发起 compact', client.sent.some(c => c.type === 'compact'))
107
- check('compact 前先复查 get_state', client.sent.indexOf('get_state') !== -1 || client.sent.some(c => c.type === 'get_state'))
108
- await new Promise(r => setTimeout(r, 50))
109
- check('compaction_end 摘要 harvest 入库', harvested.length === 1 && harvested[0]!.summary === '压缩摘要:完成任务A;未竟:验证B', JSON.stringify(harvested))
110
- check('harvest 携带 token 元信息', harvested[0]!.tokensBefore === 850 && harvested[0]!.tokensAfter === 30000)
111
-
112
- // 最小间隔:压缩后立即再 gate 不应二次 compact
113
- client.usageTokens = 950
114
- await gate(impl)
115
- check('最小间隔防振荡(不再 compact)', client.sent.filter(c => c.type === 'compact').length === 1)
116
- }
117
-
118
- console.log('\n--- 安全防线 ---')
119
- {
120
- // get_state 复查:流式中绝不压缩
121
- const { impl, client } = assemble()
122
- client.usageTokens = 900
123
- client.streaming = true
124
- await gate(impl)
125
- check('isStreaming=true 时不发起 compact', !client.sent.some(c => c.type === 'compact'))
126
-
127
- // 总开关
128
- process.env.AW_OMP_COMPACT_ENABLED = '0'
129
- const g2 = assemble()
130
- g2.client.usageTokens = 900
131
- await gate(g2.impl)
132
- check('总开关关闭不压缩', !g2.client.sent.some(c => c.type === 'compact'))
133
- process.env.AW_OMP_COMPACT_ENABLED = '1'
134
-
135
- // legacy 降级:compact 未知命令 → 标记后不再尝试
136
- const g3 = assemble()
137
- g3.client.usageTokens = 900
138
- g3.client.compactOk = false
139
- await gate(g3.impl)
140
- const box3 = g3.impl as unknown as Record<string, unknown>
141
- check('未知命令 → legacy 标记', box3.compactLegacy === true)
142
- g3.client.usageTokens = 980
143
- await gate(g3.impl)
144
- check('legacy 后续回合不再发 compact', g3.client.sent.filter(c => c.type === 'compact').length === 1)
145
- }
146
-
147
- console.log('\n--- 事件分支与状态透出 ---')
148
- {
149
- const { impl, client, harvested } = assemble()
150
- // 回合中途原生压缩(compaction_start/end 事件):不污染事件流 + harvest
151
- const map = (impl as unknown as Record<string, (e: Frame) => Frame[]>).mapOmpEvent.bind(impl)
152
- const startOut = map({ type: 'compaction_start' }, undefined)
153
- const endOut = map({ type: 'compaction_end', result: { summary: '原生阈值压缩摘要', tokensBefore: 900 }, reason: 'threshold' }, undefined)
154
- const settledOut = map({ type: 'agent_settled' }, undefined)
155
- check('压缩事件映射为空(不污染 AgentEvent 流)', startOut.length === 0 && endOut.length === 0 && settledOut.length === 0)
156
- await new Promise(r => setTimeout(r, 20))
157
- check('原生压缩摘要同样 harvest', harvested.some(h => h.summary === '原生阈值压缩摘要'))
158
-
159
- // 被动 usage 透出 getContextStats
160
- client.usageTokens = 420
161
- const stats = (impl as unknown as Record<string, () => unknown>).getContextStats()
162
- check('getContextStats 透出用量与占比', JSON.stringify(stats) === JSON.stringify({ usedTokens: 420, contextWindow: 1000, percent: 0.42, compacting: false }), JSON.stringify(stats))
163
-
164
- // 双路去重:同摘要 60s 内只入库一次
165
- map({ type: 'compaction_end', result: { summary: '原生阈值压缩摘要' }, reason: 'threshold' }, undefined)
166
- await new Promise(r => setTimeout(r, 20))
167
- check('同摘要双达去重(60s 窗口)', harvested.filter(h => h.summary === '原生阈值压缩摘要').length === 1)
168
-
169
- // onTurnSettled 复用 gate(自守卫不抛错)
170
- client.usageTokens = 100
171
- await impl.onTurnSettled()
172
- check('onTurnSettled 低用量安全返回', true)
173
- }
174
-
175
- console.log(failures === 0 ? '\nALL PASS' : `\n${failures} FAILED`)
176
- process.exit(failures === 0 ? 0 : 1)
1
+ /**
2
+ * 上下文治理环测试(假 RPC 客户端,零真实子进程):
3
+ * 70% 门控 / get_state 复查 / compact→compaction_end 等待 / legacy 降级 /
4
+ * 压缩事件分支 harvest / 被动 usage 透出 / 总开关与最小间隔。
5
+ * 运行: npx tsx --tsconfig .nuxt/tsconfig.server.json scripts/test-context-governor.ts
6
+ */
7
+ import { OmpRpcAgentImpl } from '../server/services/workshop/agents/omp-agent'
8
+
9
+ let failures = 0
10
+ function check(name: string, ok: boolean, detail = ''): void {
11
+ console.log(` ${ok ? 'PASS' : 'FAIL'} ${name}${detail ? ` — ${detail}` : ''}`)
12
+ if (!ok) failures += 1
13
+ }
14
+
15
+ type Frame = Record<string, unknown>
16
+
17
+ /** 假 omp RPC 客户端:协议面仿真(命令应答/事件订阅/被动 usage) */
18
+ class FakeOmpClient {
19
+ alive = true
20
+ streaming = false
21
+ statsOk = true
22
+ compactOk = true
23
+ usageTokens = 0
24
+ contextWindow = 1000
25
+ autoCompact: boolean | null = null
26
+ sent: Array<Record<string, unknown>> = []
27
+ private listeners = new Set<(e: Frame) => void>()
28
+
29
+ onEvent(fn: (e: Frame) => void): () => void {
30
+ this.listeners.add(fn)
31
+ return () => this.listeners.delete(fn)
32
+ }
33
+
34
+ emit(e: Frame): void {
35
+ for (const fn of this.listeners) fn(e)
36
+ }
37
+
38
+ async send(cmd: Record<string, unknown>): Promise<{ success: boolean, data?: unknown }> {
39
+ this.sent.push(cmd)
40
+ const type = cmd.type as string
41
+ if (type === 'get_session_stats') {
42
+ if (!this.statsOk) throw new Error('omp RPC 命令失败: get_session_stats 未知命令')
43
+ return { success: true, data: { contextUsage: { tokens: this.usageTokens, contextWindow: this.contextWindow, percent: this.usageTokens / this.contextWindow } } }
44
+ }
45
+ if (type === 'get_state') {
46
+ return { success: true, data: { isStreaming: this.streaming, isCompacting: false, sessionId: 'sess-1', model: { contextWindow: this.contextWindow } } }
47
+ }
48
+ if (type === 'compact') {
49
+ if (!this.compactOk) throw new Error('omp RPC 命令失败: compact 未知命令')
50
+ const summary = '压缩摘要:完成任务A;未竟:验证B'
51
+ setTimeout(() => {
52
+ this.emit({ type: 'compaction_end', result: { summary, tokensBefore: this.usageTokens, tokensAfter: 30000 }, reason: 'manual' })
53
+ }, 10)
54
+ return { success: true, data: {} }
55
+ }
56
+ if (type === 'set_auto_compaction') {
57
+ this.autoCompact = cmd.enabled as boolean
58
+ return { success: true }
59
+ }
60
+ return { success: true }
61
+ }
62
+
63
+ getContextUsage(): { tokens: number, contextWindow: number, percent: number } {
64
+ return { tokens: this.usageTokens, contextWindow: this.contextWindow, percent: this.usageTokens / this.contextWindow }
65
+ }
66
+
67
+ setContextWindow(n: number): void {
68
+ this.contextWindow = n
69
+ }
70
+
71
+ onHostToolCall(_fn: unknown): void {}
72
+ }
73
+
74
+ /** 装配:真实 OmpRpcAgentImpl + 注入假客户端/假 workspace */
75
+ function assemble(): { impl: OmpRpcAgentImpl, client: FakeOmpClient, harvested: Array<Record<string, unknown>> } {
76
+ const impl = new OmpRpcAgentImpl({ agentId: 'a1', name: 'A', role: 'worker', channelId: 'ch1' })
77
+ const client = new FakeOmpClient()
78
+ const harvested: Array<Record<string, unknown>> = []
79
+ const box = impl as unknown as Record<string, unknown>
80
+ box.client = client
81
+ box.workspace = {
82
+ recordSessionMemory: async (i: Record<string, unknown>) => {
83
+ harvested.push(i)
84
+ },
85
+ }
86
+ return { impl, client, harvested }
87
+ }
88
+
89
+ const gate = (impl: OmpRpcAgentImpl, reason = 'test'): Promise<void> =>
90
+ (impl as unknown as Record<string, unknown>).contextGate(reason) as Promise<void>
91
+
92
+ process.env.AW_OMP_COMPACT_THRESHOLD = '0.7'
93
+ process.env.AW_OMP_COMPACT_MIN_INTERVAL_MS = '300000'
94
+ process.env.AW_OMP_COMPACT_WAIT_MS = '5000'
95
+
96
+ console.log('\n--- 门控基础路径 ---')
97
+ {
98
+ process.env.AW_OMP_COMPACT_ENABLED = '1'
99
+ const { impl, client, harvested } = assemble()
100
+ client.usageTokens = 500 // 50% < 70%
101
+ await gate(impl)
102
+ check('低于阈值不触发 compact', !client.sent.some(c => c.type === 'compact'), `sent=${client.sent.map(c => c.type)}`)
103
+
104
+ client.usageTokens = 850 // 85% ≥ 70%
105
+ await gate(impl)
106
+ check('达阈值发起 compact', client.sent.some(c => c.type === 'compact'))
107
+ check('compact 前先复查 get_state', client.sent.indexOf('get_state') !== -1 || client.sent.some(c => c.type === 'get_state'))
108
+ await new Promise(r => setTimeout(r, 50))
109
+ check('compaction_end 摘要 harvest 入库', harvested.length === 1 && harvested[0]!.summary === '压缩摘要:完成任务A;未竟:验证B', JSON.stringify(harvested))
110
+ check('harvest 携带 token 元信息', harvested[0]!.tokensBefore === 850 && harvested[0]!.tokensAfter === 30000)
111
+
112
+ // 最小间隔:压缩后立即再 gate 不应二次 compact
113
+ client.usageTokens = 950
114
+ await gate(impl)
115
+ check('最小间隔防振荡(不再 compact)', client.sent.filter(c => c.type === 'compact').length === 1)
116
+ }
117
+
118
+ console.log('\n--- 安全防线 ---')
119
+ {
120
+ // get_state 复查:流式中绝不压缩
121
+ const { impl, client } = assemble()
122
+ client.usageTokens = 900
123
+ client.streaming = true
124
+ await gate(impl)
125
+ check('isStreaming=true 时不发起 compact', !client.sent.some(c => c.type === 'compact'))
126
+
127
+ // 总开关
128
+ process.env.AW_OMP_COMPACT_ENABLED = '0'
129
+ const g2 = assemble()
130
+ g2.client.usageTokens = 900
131
+ await gate(g2.impl)
132
+ check('总开关关闭不压缩', !g2.client.sent.some(c => c.type === 'compact'))
133
+ process.env.AW_OMP_COMPACT_ENABLED = '1'
134
+
135
+ // legacy 降级:compact 未知命令 → 标记后不再尝试
136
+ const g3 = assemble()
137
+ g3.client.usageTokens = 900
138
+ g3.client.compactOk = false
139
+ await gate(g3.impl)
140
+ const box3 = g3.impl as unknown as Record<string, unknown>
141
+ check('未知命令 → legacy 标记', box3.compactLegacy === true)
142
+ g3.client.usageTokens = 980
143
+ await gate(g3.impl)
144
+ check('legacy 后续回合不再发 compact', g3.client.sent.filter(c => c.type === 'compact').length === 1)
145
+ }
146
+
147
+ console.log('\n--- 事件分支与状态透出 ---')
148
+ {
149
+ const { impl, client, harvested } = assemble()
150
+ // 回合中途原生压缩(compaction_start/end 事件):不污染事件流 + harvest
151
+ const map = (impl as unknown as Record<string, (e: Frame) => Frame[]>).mapOmpEvent.bind(impl)
152
+ const startOut = map({ type: 'compaction_start' }, undefined)
153
+ const endOut = map({ type: 'compaction_end', result: { summary: '原生阈值压缩摘要', tokensBefore: 900 }, reason: 'threshold' }, undefined)
154
+ const settledOut = map({ type: 'agent_settled' }, undefined)
155
+ check('压缩事件映射为空(不污染 AgentEvent 流)', startOut.length === 0 && endOut.length === 0 && settledOut.length === 0)
156
+ await new Promise(r => setTimeout(r, 20))
157
+ check('原生压缩摘要同样 harvest', harvested.some(h => h.summary === '原生阈值压缩摘要'))
158
+
159
+ // 被动 usage 透出 getContextStats
160
+ client.usageTokens = 420
161
+ const stats = (impl as unknown as Record<string, () => unknown>).getContextStats()
162
+ check('getContextStats 透出用量与占比', JSON.stringify(stats) === JSON.stringify({ usedTokens: 420, contextWindow: 1000, percent: 0.42, compacting: false }), JSON.stringify(stats))
163
+
164
+ // 双路去重:同摘要 60s 内只入库一次
165
+ map({ type: 'compaction_end', result: { summary: '原生阈值压缩摘要' }, reason: 'threshold' }, undefined)
166
+ await new Promise(r => setTimeout(r, 20))
167
+ check('同摘要双达去重(60s 窗口)', harvested.filter(h => h.summary === '原生阈值压缩摘要').length === 1)
168
+
169
+ // onTurnSettled 复用 gate(自守卫不抛错)
170
+ client.usageTokens = 100
171
+ await impl.onTurnSettled()
172
+ check('onTurnSettled 低用量安全返回', true)
173
+ }
174
+
175
+ console.log(failures === 0 ? '\nALL PASS' : `\n${failures} FAILED`)
176
+ process.exit(failures === 0 ? 0 : 1)
@@ -0,0 +1,180 @@
1
+ /**
2
+ * DAQ 多形态帧管线单元测试:v2 帧信封 / mock 三形态驱动 / sink 处理器 /
3
+ * 磁盘对象存储 / SQLite 帧适配 / runtime 帧路径 / 打标与预览。
4
+ * 运行: npx tsx --tsconfig .nuxt/tsconfig.server.json scripts/test-daq-frames.ts
5
+ */
6
+ import type { DatabaseSync } from 'node:sqlite'
7
+ import { openWorkshopDb } from '../server/services/workshop/db/database'
8
+ import { encodePng, resizeGray } from '../server/services/workshop/daq/png-enc'
9
+ import { runSinkPipeline, registerFrameProcessor, type DaqFrameWorking } from '../server/services/workshop/daq/frames'
10
+ import { mockDaqDriver } from '../server/services/workshop/daq/drivers'
11
+ import { DiskObjectAdapter } from '../server/services/workshop/daq/objectstore/disk.adapter'
12
+ import { daqObjectKey } from '../server/services/workshop/daq/objectstore/objectstore-port'
13
+ import { DaqNode } from '../server/services/workshop/daq/daq-node'
14
+ import { DaqNodeRuntime, type DaqRuntimeHost } from '../server/services/workshop/daq/daq-runtime'
15
+ import type { DaqFrameRow, DaqSampleRow } from '../server/services/workshop/daq/storage/tsdb-port'
16
+
17
+ let failures = 0
18
+ function check(name: string, ok: boolean, detail = ''): void {
19
+ console.log(` ${ok ? 'PASS' : 'FAIL'} ${name}${detail ? ` — ${detail}` : ''}`)
20
+ if (!ok) failures += 1
21
+ }
22
+
23
+ // ===== PNG 编码/解码闭环 + 缩放 =====
24
+ console.log('\n--- PNG 编码器(png-enc)---')
25
+ {
26
+ const w = 64
27
+ const h = 48
28
+ const px = new Uint8Array(w * h)
29
+ for (let i = 0; i < px.length; i++) px[i] = (i * 7) % 256
30
+ const blob = encodePng(w, h, px)
31
+ check('PNG 魔数与 IEND', blob.subarray(0, 8).equals(Buffer.from([0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a])) && blob.subarray(blob.length - 8, blob.length - 4).toString('ascii') === 'IEND')
32
+ const small = resizeGray(px, w, h, 32, 24)
33
+ check('最近邻缩放尺寸', small.length === 32 * 24)
34
+ check('缩放取点保真(角点)', small[0] === px[0] && small[23 * 32 + 31] === px[Math.min(h - 1, Math.floor((23 * h) / 24)) * w + Math.min(w - 1, Math.floor((31 * w) / 32))])
35
+ }
36
+
37
+ // ===== mock 三形态驱动 =====
38
+ console.log('\n--- mock 驱动三形态 ---')
39
+ {
40
+ const base = { ctx: { nodeId: 'dn-t1', now: Date.now(), ageMs: 5000 }, config: { base: 0.52, amp: 0.018, min: 0.4, max: 0.65 }, driverConfig: {} }
41
+ const scalar = await mockDaqDriver.sample({ ...base })
42
+ check('scalar 形态返回数值(既有契约)', typeof scalar === 'number' && Number.isFinite(scalar))
43
+
44
+ const vec = await mockDaqDriver.sample({ ...base, signalKind: 'vector', vector: { points: 64, min: 0.4, max: 0.65 } })
45
+ check('vector 形态返回帧信封', vec != null && typeof vec === 'object' && 'frame' in vec && vec.frame.kind === 'vector')
46
+ if (vec != null && typeof vec === 'object' && 'frame' in vec && vec.frame.kind === 'vector') {
47
+ check('vector 64 点且在量程内', vec.frame.points.length === 64 && vec.frame.points.every(p => p >= 0.4 && p <= 0.65))
48
+ }
49
+
50
+ const img = await mockDaqDriver.sample({ ...base, signalKind: 'image' })
51
+ check('image 形态返回 PNG blob', img != null && typeof img === 'object' && 'frame' in img && img.frame.kind === 'image')
52
+ if (img != null && typeof img === 'object' && 'frame' in img && img.frame.kind === 'image') {
53
+ check('image 尺寸与 mime', img.frame.width === 320 && img.frame.height === 240 && img.frame.mime === 'image/png')
54
+ check('image blob 可解码出像素(经 thumbnail 处理器间接验证)', img.frame.blob.length > 1000)
55
+ }
56
+ }
57
+
58
+ // ===== sink 处理器管线 =====
59
+ console.log('\n--- sink 处理器管线 ---')
60
+ {
61
+ const points = Array.from({ length: 100 }, (_, i) => 0.5 + Math.sin(i / 10) * 0.05)
62
+ let wf: DaqFrameWorking = { kind: 'vector', points, metrics: {} }
63
+ wf = runSinkPipeline(wf, [
64
+ { name: 'resample', args: { n: 32 } },
65
+ { name: 'derive-metric', args: { name: 'avg', op: 'avg' } },
66
+ { name: 'derive-metric', args: { name: 'max', op: 'max' } },
67
+ { name: 'zones', args: { n: 4 } },
68
+ ], 'dn-t')
69
+ check('resample 降采样到 32 点', wf.points?.length === 32, `len=${wf.points?.length}`)
70
+ check('derive-metric avg/max 入 metrics', Number.isFinite(wf.metrics?.avg) && Number.isFinite(wf.metrics?.max))
71
+ check('max ≥ avg(轮廓统计自洽)', (wf.metrics?.max ?? 0) >= (wf.metrics?.avg ?? 0))
72
+ check('zones 分区指标(zone1_avg/zone4_max)', wf.metrics?.zone1_avg != null && wf.metrics?.zone4_max != null)
73
+ check('未知处理器跳过不抛', (runSinkPipeline(wf, [{ name: 'no-such-proc' }], 'dn-t')).points?.length === 32)
74
+
75
+ // image 管线:thumbnail + quality-gate
76
+ const w = 320
77
+ const h = 240
78
+ const px = new Uint8Array(w * h).fill(120)
79
+ const blob = encodePng(w, h, px)
80
+ let imf: DaqFrameWorking = { kind: 'image', blob, mime: 'image/png', width: w, height: h, metrics: {} }
81
+ imf = runSinkPipeline(imf, [{ name: 'thumbnail', args: { width: 64 } }, { name: 'quality-gate' }], 'dn-t')
82
+ check('thumbnail 生成缩略 blob(平坦图高压缩,仅验存在)', imf.thumbBlob != null && imf.thumbBlob.length > 0)
83
+ check('quality-gate 亮度/对比度指标', imf.metrics?.brightness != null && Math.abs((imf.metrics?.brightness ?? 0) - 120) < 12, `brightness=${imf.metrics?.brightness}`)
84
+
85
+ // 插件处理器注册(同名覆盖 + 自定义)
86
+ registerFrameProcessor({ name: 'test-double', applies: 'vector', process: f => ({ ...f, metrics: { ...f.metrics, doubled: (f.metrics?.avg ?? 0) * 2 } }) })
87
+ const out = runSinkPipeline({ kind: 'vector', points: [1, 2, 3], metrics: { avg: 2 } }, [{ name: 'test-double' }], 'dn-t')
88
+ check('插件处理器注册生效', out.metrics?.doubled === 4)
89
+ }
90
+
91
+ // ===== 磁盘对象存储 =====
92
+ console.log('\n--- 磁盘对象存储(disk adapter)---')
93
+ {
94
+ const os = new DiskObjectAdapter()
95
+ await os.init()
96
+ const key = daqObjectKey('dn-t1', Date.now(), '.png')
97
+ const payload = Buffer.from([1, 2, 3, 4, 5])
98
+ await os.put(key, payload, 'image/png')
99
+ const back = await os.get(key)
100
+ check('put/get 闭环', back.equals(payload), `key=${key}`)
101
+ check('daqObjectKey 目录结构', /^daq\/dn-t1\/\d{4}\/\d{2}\/\d{2}\/\d+\.png$/.test(key))
102
+ let rejected = false
103
+ try {
104
+ await os.put('../evil', payload, 'image/png')
105
+ }
106
+ catch {
107
+ rejected = true
108
+ }
109
+ check('路径逃逸键拒绝', rejected)
110
+ await os.remove(key)
111
+ check('remove 后 404 化', await os.get(key).then(() => false, () => true))
112
+ }
113
+
114
+ // ===== SQLite 帧适配(降级环境全链路)=====
115
+ console.log('\n--- SQLite 帧适配 ---')
116
+ {
117
+ const db: DatabaseSync = openWorkshopDb(':memory:')
118
+ // SqliteTimeSeriesAdapter 自持连接(文件路径),此处直接验证 SQL 形态:
119
+ // 用与 adapter 相同 DDL 在内存库上跑一遍查询语义
120
+ db.exec(`
121
+ CREATE TABLE daq_frames (
122
+ node_id TEXT NOT NULL, ts_ms INTEGER NOT NULL, kind TEXT NOT NULL,
123
+ template_key TEXT, device_binding_id TEXT,
124
+ line_id TEXT, product_id TEXT, recipe_id TEXT, run_id TEXT,
125
+ points INTEGER NOT NULL DEFAULT 0, meta TEXT NOT NULL DEFAULT '{}', metrics TEXT NOT NULL DEFAULT '{}',
126
+ PRIMARY KEY (node_id, ts_ms)
127
+ );
128
+ `)
129
+ const rows: DaqFrameRow[] = [
130
+ { nodeId: 'dn-v', tsMs: 1000, kind: 'vector', templateKey: 'thickness-scan', deviceBindingId: 'dev-1', lineId: 'line-1', productId: 'p1', recipeId: 'r1', runId: 'run-1', points: 32, meta: { points: [0.5, 0.51] }, metrics: { avg: 0.505, max: 0.51 } },
131
+ { nodeId: 'dn-i', tsMs: 2000, kind: 'image', templateKey: 'ccd-image', points: 0, meta: { objectKey: 'daq/x/1.png', thumbKey: 'daq/x/1.thumb.png', mime: 'image/png', width: 320, height: 240 }, metrics: { brightness: 120 } },
132
+ ]
133
+ const ins = db.prepare('INSERT INTO daq_frames (node_id, ts_ms, kind, template_key, device_binding_id, line_id, product_id, recipe_id, run_id, points, meta, metrics) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)')
134
+ for (const r of rows) ins.run(r.nodeId, r.tsMs, r.kind, r.templateKey ?? null, r.deviceBindingId ?? null, r.lineId ?? null, r.productId ?? null, r.recipeId ?? null, r.runId ?? null, r.points, JSON.stringify(r.meta), JSON.stringify(r.metrics))
135
+ const vecRow = db.prepare(`SELECT * FROM daq_frames WHERE node_id = 'dn-v'`).get() as { meta: string, metrics: string }
136
+ check('向量行 meta.points 还原', JSON.parse(vecRow.meta).points.length === 2)
137
+ check('打标列逐条携带', db.prepare(`SELECT line_id FROM daq_frames WHERE node_id='dn-v'`).get().line_id === 'line-1')
138
+ check('图像行对象键在 meta', JSON.parse((db.prepare(`SELECT meta FROM daq_frames WHERE node_id='dn-i'`).get() as { meta: string }).meta).objectKey === 'daq/x/1.png')
139
+ }
140
+
141
+ // ===== runtime 帧路径(fake host:tick 采样→入队→onSample 消费)=====
142
+ console.log('\n--- runtime 帧路径 ---')
143
+ {
144
+ const node = new DaqNode({
145
+ id: 'dn-frame', templateRef: 'thickness-scan', name: '测厚扫描 01', driver: 'mock',
146
+ intervalMs: 120, publishIntervalMs: 0, min: 0.4, max: 0.65, lineId: '',
147
+ })
148
+ const published: Array<Record<string, unknown>> = []
149
+ const ingested: Array<{ env: Record<string, unknown>, allowPublish: boolean }> = []
150
+ const sampleRows: DaqSampleRow[] = []
151
+ const frameRows: DaqFrameRow[] = []
152
+ const host: DaqRuntimeHost = {
153
+ defaults: () => ({ intervalMs: 1000, publishIntervalMs: 0 }),
154
+ sample: (n, now) => mockDaqDriver.sample({
155
+ ctx: { nodeId: n.id, now, ageMs: 10_000 },
156
+ config: { base: 0.52, amp: 0.018, min: 0.4, max: 0.65 },
157
+ driverConfig: {},
158
+ signalKind: 'vector',
159
+ vector: { points: 64, min: 0.4, max: 0.65 },
160
+ }),
161
+ publishSample: env => published.push(env as Record<string, unknown>),
162
+ ingest: (n, env, allowPublish) => ingested.push({ env: env as Record<string, unknown>, allowPublish }),
163
+ broadcastError: () => {},
164
+ }
165
+ const rt = new DaqNodeRuntime(node, host)
166
+ await rt.tick(Date.now())
167
+ check('tick 产出帧信封(vector)', published.length === 1 && (published[0]!.frame as { kind: string }).kind === 'vector')
168
+ const env = published[0] as unknown as { nodeId: string, at: string, frame: { kind: 'vector', points: number[] }, value: number }
169
+ check('信封值语义 = avg 指标回填', Number.isFinite(env.value))
170
+ const v1 = rt.onSample(env as never)
171
+ check('onSample 帧路径消费 ok', v1 === 'ok' && ingested.length === 1 && ingested[0]!.allowPublish === true)
172
+ check('节点触活(lastAt 更新,state=ok)', node.state === 'ok' && node.lastAt != null && node.value != null)
173
+ check('帧路径不产标量样本行(mock vector 无 value 写库)', sampleRows.length === 0 && frameRows.length === 0)
174
+ // 迟到帧丢弃
175
+ const late = rt.onSample({ ...env, at: new Date(Date.parse(env.at) - 5000).toISOString() } as never)
176
+ check('乱序帧丢弃(late)', late === 'late')
177
+ }
178
+
179
+ console.log(failures === 0 ? '\nALL PASS' : `\n${failures} FAILED`)
180
+ process.exit(failures === 0 ? 0 : 1)
@@ -0,0 +1,77 @@
1
+ /**
2
+ * 补充验证:minio 适配器真容器 roundtrip + 工厂装配/降级路径。
3
+ * 运行: npx tsx --tsconfig .nuxt/tsconfig.server.json scripts/test-daq-minio.ts
4
+ * 凭据从 config.yml daq.objectstore 读取(单一事实源,不在源码硬编码);
5
+ * 需 daq-minio 容器在 127.0.0.1:9000。
6
+ */
7
+ import { readFileSync } from 'node:fs'
8
+ import { MinioObjectAdapter } from '../server/services/workshop/daq/objectstore/minio.adapter'
9
+ import { rebuildObjectStore, getObjectStore } from '../server/services/workshop/daq/objectstore'
10
+
11
+ let failures = 0
12
+ const check = (name: string, ok: boolean, detail = ''): void => {
13
+ console.log(` ${ok ? 'PASS' : 'FAIL'} ${name}${detail ? ` — ${detail}` : ''}`)
14
+ if (!ok) failures += 1
15
+ }
16
+
17
+ /** 从 config.yml 读 daq.objectstore 段(键值对缩进解析,够用即可) */
18
+ function osConfigFromYml(): { endPoint: string, port: number, accessKey: string, secretKey: string, bucket: string } | null {
19
+ const yml = readFileSync('config.yml', 'utf-8')
20
+ const m = yml.match(/^ {2}objectstore:\r?\n((?: {4}.*\r?\n?)+)/m)
21
+ if (!m) return null
22
+ const kv = (key: string, dflt: string): string => (m[1]!.match(new RegExp(`${key}:\\s*(\\S+)`))?.[1] ?? dflt)
23
+ return {
24
+ endPoint: kv('host', '127.0.0.1'),
25
+ port: Number(kv('port', '9000')),
26
+ accessKey: kv('accessKey', 'awshop'),
27
+ secretKey: kv('secretKey', ''),
28
+ bucket: 'daq-e2e-probe',
29
+ }
30
+ }
31
+
32
+ console.log('\n--- MinIO 适配器(真容器)---')
33
+ {
34
+ const cfg = osConfigFromYml()
35
+ check('config.yml objectstore 段可读', cfg != null)
36
+ if (cfg) {
37
+ const adapter = new MinioObjectAdapter(cfg)
38
+ let ok = true
39
+ for (let i = 0; i < 3; i++) {
40
+ try {
41
+ await adapter.init()
42
+ break
43
+ }
44
+ catch (err) {
45
+ if (i === 2) {
46
+ ok = false
47
+ console.log(' init 失败:', (err as Error).message)
48
+ }
49
+ await new Promise(r => setTimeout(r, 2000))
50
+ }
51
+ }
52
+ check('init(建连 + 建桶)', ok)
53
+ if (ok) {
54
+ const key = 'probe/test-object.png'
55
+ const payload = Buffer.from([0x89, 0x50, 1, 2, 3, 4])
56
+ await adapter.put(key, payload, 'image/png')
57
+ const back = await adapter.get(key)
58
+ check('put/get 闭环', back.equals(payload))
59
+ await adapter.remove(key)
60
+ check('remove', (await adapter.get(key).then(() => false, () => true)))
61
+ await adapter.close()
62
+ }
63
+
64
+ // 工厂装配路径:rebuildObjectStore(online, url) → backend=minio
65
+ const url = `http://${encodeURIComponent(cfg.accessKey)}:${encodeURIComponent(cfg.secretKey)}@${cfg.endPoint}:${cfg.port}/${cfg.bucket}`
66
+ await rebuildObjectStore(true, url)
67
+ check('rebuildObjectStore 装配 minio', getObjectStore().backend === 'minio')
68
+ await getObjectStore().put('probe/factory.txt', Buffer.from('aw'), 'text/plain')
69
+ check('工厂 get 可用(真桶)', (await getObjectStore().get('probe/factory.txt')).toString() === 'aw')
70
+ // 降级路径
71
+ await rebuildObjectStore(false, null)
72
+ check('离线判定 → disk 降级', getObjectStore().backend === 'disk')
73
+ }
74
+ }
75
+
76
+ console.log(failures === 0 ? '\nALL PASS' : `\n${failures} FAILED`)
77
+ process.exit(failures === 0 ? 0 : 1)