agentworkshop 0.11.3 → 0.13.0

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 (457) hide show
  1. package/.AgentWorkShop/prompts/host-tools.json +4 -4
  2. package/.output/.AgentWorkShop/prompts/host-tools.json +4 -4
  3. package/.output/nitro.json +1 -1
  4. package/.output/public/_nuxt/{DXXBGPAc.js → CsdezMu9.js} +4 -4
  5. package/.output/public/_nuxt/WL1R8lPA.js +1 -0
  6. package/.output/public/_nuxt/_id_.Czwkl50w.css +1 -0
  7. package/.output/public/_nuxt/builds/latest.json +1 -1
  8. package/.output/public/_nuxt/builds/meta/2f96705b-cf57-4bde-87a4-1b818b268f0f.json +1 -0
  9. package/.output/server/chunks/_/access.mjs +1 -1
  10. package/.output/server/chunks/_/candidate-store.mjs +1 -1
  11. package/.output/server/chunks/_/catalog-view.mjs +1 -1
  12. package/.output/server/chunks/_/character-asset.repo.mjs +1 -1
  13. package/.output/server/chunks/_/data-export.mjs +6 -6
  14. package/.output/server/chunks/_/data-query.mjs +3 -3
  15. package/.output/server/chunks/_/eda-run.repo.mjs +2 -2
  16. package/.output/server/chunks/_/entity.mjs +1 -1
  17. package/.output/server/chunks/_/features.mjs +5 -5
  18. package/.output/server/chunks/_/golden.mjs +3 -3
  19. package/.output/server/chunks/_/host-bindings.mjs +1 -1
  20. package/.output/server/chunks/_/index.mjs +1 -1
  21. package/.output/server/chunks/_/line-scope.mjs +1 -1
  22. package/.output/server/chunks/_/mes-console.mjs +1 -1
  23. package/.output/server/chunks/_/mes-secrets.repo.mjs +1 -1
  24. package/.output/server/chunks/_/mes-templates.mjs +1 -1
  25. package/.output/server/chunks/_/nitro.mjs +4084 -2343
  26. package/.output/server/chunks/_/nitro.mjs.map +1 -1
  27. package/.output/server/chunks/_/ocap.mjs +1 -1
  28. package/.output/server/chunks/_/orchestrator.mjs +1 -1
  29. package/.output/server/chunks/_/promote.mjs +1 -1
  30. package/.output/server/chunks/_/rest-auth.mjs +1 -1
  31. package/.output/server/chunks/_/runtime.mjs +8 -8
  32. package/.output/server/chunks/_/scene-layout.repo.mjs +1 -1
  33. package/.output/server/chunks/_/spc.mjs +1 -1
  34. package/.output/server/chunks/_/validator.mjs +1 -1
  35. package/.output/server/chunks/build/TownView-DD1zY8xq.mjs +1 -1
  36. package/.output/server/chunks/build/{_id_-C0vNEbts.mjs → _id_-B9zi8WEg.mjs} +23 -12
  37. package/.output/server/chunks/build/_id_-B9zi8WEg.mjs.map +1 -0
  38. package/.output/server/chunks/build/_wsId_-LDv5SEW_.mjs +1 -1
  39. package/.output/server/chunks/build/daq-B5zlUIlb.mjs +1 -1
  40. package/.output/server/chunks/build/dcw-B-eoU7sq.mjs +1 -1
  41. package/.output/server/chunks/build/types-D6J7slEa.mjs +1 -1
  42. package/.output/server/chunks/build/useDaqAddNode-Dr5CfMpU.mjs +1 -1
  43. package/.output/server/chunks/build/useDaqDetailNode-DDq5osE-.mjs +1 -1
  44. package/.output/server/chunks/build/useDaqDetailParams-DdOcUvHG.mjs +1 -1
  45. package/.output/server/chunks/build/useDaqFilters-Y_NRhP6i.mjs +1 -1
  46. package/.output/server/chunks/build/useDaqStream-phwM5tIN.mjs +1 -1
  47. package/.output/server/chunks/build/useDaqTemplates-lKw2b01d.mjs +1 -1
  48. package/.output/server/chunks/build/useDcwAddNode-CT-oOFom.mjs +1 -1
  49. package/.output/server/chunks/build/useDcwStream-CNtMGcR0.mjs +1 -1
  50. package/.output/server/chunks/routes/api/mcp/workshop.mjs +1 -1
  51. package/.output/server/chunks/routes/api/system/backup/run.post.mjs +2 -2
  52. package/.output/server/chunks/routes/api/system/index.patch.mjs +2 -2
  53. package/.output/server/chunks/routes/api/system/shutdown.post.mjs +2 -2
  54. package/.output/server/chunks/routes/api/workshop/agent-tools/index.post.mjs +1 -1
  55. package/.output/server/chunks/routes/api/workshop/agent-tools/list.get.mjs +7 -2
  56. package/.output/server/chunks/routes/api/workshop/agent-tools/list.get.mjs.map +1 -1
  57. package/.output/server/chunks/routes/api/workshop/agents/_id_.patch.mjs +1 -1
  58. package/.output/server/chunks/routes/api/workshop/aml/datasets/_id/preview.get.mjs +1 -1
  59. package/.output/server/chunks/routes/api/workshop/aml/datasets/_id_.delete.mjs +1 -1
  60. package/.output/server/chunks/routes/api/workshop/aml/datasets/_id_.get.mjs +1 -1
  61. package/.output/server/chunks/routes/api/workshop/aml/datasets/_id_.patch.mjs +1 -1
  62. package/.output/server/chunks/routes/api/workshop/aml/env/recheck.post.mjs +1 -1
  63. package/.output/server/chunks/routes/api/workshop/aml/env/uv.post.mjs +1 -1
  64. package/.output/server/chunks/routes/api/workshop/aml/env/venv.post.mjs +1 -1
  65. package/.output/server/chunks/routes/api/workshop/aml/index.get.mjs +1 -1
  66. package/.output/server/chunks/routes/api/workshop/aml/index.post.mjs +1 -1
  67. package/.output/server/chunks/routes/api/workshop/aml/index2.post.mjs +1 -1
  68. package/.output/server/chunks/routes/api/workshop/aml/index3.get.mjs +1 -1
  69. package/.output/server/chunks/routes/api/workshop/aml/index3.post.mjs +1 -1
  70. package/.output/server/chunks/routes/api/workshop/aml/index4.get.mjs +1 -1
  71. package/.output/server/chunks/routes/api/workshop/aml/index5.get.mjs +1 -1
  72. package/.output/server/chunks/routes/api/workshop/aml/index6.get.mjs +1 -1
  73. package/.output/server/chunks/routes/api/workshop/aml/index7.get.mjs +1 -1
  74. package/.output/server/chunks/routes/api/workshop/aml/jobs/_id/cancel.post.mjs +1 -1
  75. package/.output/server/chunks/routes/api/workshop/aml/jobs/_id/logs.get.mjs +1 -1
  76. package/.output/server/chunks/routes/api/workshop/aml/jobs/_id/retry.post.mjs +1 -1
  77. package/.output/server/chunks/routes/api/workshop/aml/jobs/_id_.delete.mjs +1 -1
  78. package/.output/server/chunks/routes/api/workshop/aml/jobs/_id_.get.mjs +1 -1
  79. package/.output/server/chunks/routes/api/workshop/aml/models/_id/predict.post.mjs +1 -1
  80. package/.output/server/chunks/routes/api/workshop/aml/models/_id/promote.post.mjs +1 -1
  81. package/.output/server/chunks/routes/api/workshop/aml/models/_id_.delete.mjs +1 -1
  82. package/.output/server/chunks/routes/api/workshop/aml/models/_id_.patch.mjs +1 -1
  83. package/.output/server/chunks/routes/api/workshop/aml/models/index.get.mjs +1 -1
  84. package/.output/server/chunks/routes/api/workshop/aml/training-plans/_id/train.post.mjs +1 -1
  85. package/.output/server/chunks/routes/api/workshop/aml/training-plans/_id_.delete.mjs +1 -1
  86. package/.output/server/chunks/routes/api/workshop/aml/training-plans/_id_.patch.mjs +1 -1
  87. package/.output/server/chunks/routes/api/workshop/aml/training-plans/index.get.mjs +1 -1
  88. package/.output/server/chunks/routes/api/workshop/aml/twin/providers.get.mjs +1 -1
  89. package/.output/server/chunks/routes/api/workshop/analysis/_id_.delete.mjs +1 -1
  90. package/.output/server/chunks/routes/api/workshop/analysis/_id_.get.mjs +1 -1
  91. package/.output/server/chunks/routes/api/workshop/analysis/_id_.patch.mjs +1 -1
  92. package/.output/server/chunks/routes/api/workshop/assets/devices/_id_.delete.mjs +1 -1
  93. package/.output/server/chunks/routes/api/workshop/assets/index.post.mjs +1 -1
  94. package/.output/server/chunks/routes/api/workshop/assets/index2.post.mjs +1 -1
  95. package/.output/server/chunks/routes/api/workshop/channel-templates/_id/instantiate.post.mjs +2 -2
  96. package/.output/server/chunks/routes/api/workshop/channel-templates/_id_.patch.mjs +1 -1
  97. package/.output/server/chunks/routes/api/workshop/channels/_id/activate.post.mjs +1 -1
  98. package/.output/server/chunks/routes/api/workshop/channels/_id/agents/_agentId_.patch.mjs +1 -1
  99. package/.output/server/chunks/routes/api/workshop/channels/_id/chat/index.post.mjs +1 -1
  100. package/.output/server/chunks/routes/api/workshop/channels/_id/execution-mode.patch.mjs +1 -1
  101. package/.output/server/chunks/routes/api/workshop/channels/_id/harness-profiles/promote.post.mjs +1 -1
  102. package/.output/server/chunks/routes/api/workshop/channels/_id/improvement-proposals/decide.post.mjs +1 -1
  103. package/.output/server/chunks/routes/api/workshop/channels/_id/index.post.mjs +1 -1
  104. package/.output/server/chunks/routes/api/workshop/channels/_id/index.put.mjs +1 -1
  105. package/.output/server/chunks/routes/api/workshop/channels/_id/index11.get.mjs +1 -1
  106. package/.output/server/chunks/routes/api/workshop/channels/_id/index2.get.mjs +1 -1
  107. package/.output/server/chunks/routes/api/workshop/channels/_id/index2.post.mjs +1 -1
  108. package/.output/server/chunks/routes/api/workshop/channels/_id/index2.put.mjs +1 -1
  109. package/.output/server/chunks/routes/api/workshop/channels/_id/index3.get.mjs +1 -1
  110. package/.output/server/chunks/routes/api/workshop/channels/_id/index3.post.mjs +1 -1
  111. package/.output/server/chunks/routes/api/workshop/channels/_id/index5.post.mjs +1 -1
  112. package/.output/server/chunks/routes/api/workshop/channels/_id/index7.get.mjs +1 -1
  113. package/.output/server/chunks/routes/api/workshop/channels/_id/index7.post.mjs +1 -1
  114. package/.output/server/chunks/routes/api/workshop/channels/_id/line.put.mjs +1 -1
  115. package/.output/server/chunks/routes/api/workshop/channels/_id/members/join.post.mjs +1 -1
  116. package/.output/server/chunks/routes/api/workshop/channels/_id/memories/_memoryId/promote.post.mjs +1 -1
  117. package/.output/server/chunks/routes/api/workshop/channels/_id/memories/merge.post.mjs +1 -1
  118. package/.output/server/chunks/routes/api/workshop/channels/_id/products.get.mjs +1 -1
  119. package/.output/server/chunks/routes/api/workshop/channels/_id/products.put.mjs +1 -1
  120. package/.output/server/chunks/routes/api/workshop/channels/_id/terminals.get.mjs +1 -1
  121. package/.output/server/chunks/routes/api/workshop/channels/_id/tool-usage.get.mjs +1 -1
  122. package/.output/server/chunks/routes/api/workshop/channels/_id/tools/reset.post.mjs +1 -1
  123. package/.output/server/chunks/routes/api/workshop/channels/_id/twin-profile.get.mjs +1 -1
  124. package/.output/server/chunks/routes/api/workshop/channels/_id/twin-profile.patch.mjs +1 -1
  125. package/.output/server/chunks/routes/api/workshop/channels/_id_.delete.mjs +1 -1
  126. package/.output/server/chunks/routes/api/workshop/channels/index.get.mjs +1 -1
  127. package/.output/server/chunks/routes/api/workshop/channels/index.patch.mjs +1 -1
  128. package/.output/server/chunks/routes/api/workshop/channels.post.mjs +7 -7
  129. package/.output/server/chunks/routes/api/workshop/daq/_id/bind.post.mjs +1 -1
  130. package/.output/server/chunks/routes/api/workshop/daq/_id/bindings.put.mjs +1 -1
  131. package/.output/server/chunks/routes/api/workshop/daq/_id/frames/content.get.mjs +1 -1
  132. package/.output/server/chunks/routes/api/workshop/daq/_id/frames.get.mjs +1 -1
  133. package/.output/server/chunks/routes/api/workshop/daq/_id/ingest.post.mjs +2 -2
  134. package/.output/server/chunks/routes/api/workshop/daq/_id/samples.get.mjs +1 -1
  135. package/.output/server/chunks/routes/api/workshop/daq/_id/test.post.mjs +1 -1
  136. package/.output/server/chunks/routes/api/workshop/daq/_id_.delete.mjs +1 -1
  137. package/.output/server/chunks/routes/api/workshop/daq/_id_.patch.mjs +1 -1
  138. package/.output/server/chunks/routes/api/workshop/daq/alarms/_id/ack.post.mjs +1 -1
  139. package/.output/server/chunks/routes/api/workshop/daq/controller.post.mjs +1 -1
  140. package/.output/server/chunks/routes/api/workshop/daq/index.get.mjs +1 -1
  141. package/.output/server/chunks/routes/api/workshop/daq/index2.post.mjs +1 -1
  142. package/.output/server/chunks/routes/api/workshop/daq/infra/reconnect.post.mjs +1 -1
  143. package/.output/server/chunks/routes/api/workshop/daq/storage/retention.put.mjs +1 -1
  144. package/.output/server/chunks/routes/api/workshop/daq/storage/rollup.post.mjs +1 -1
  145. package/.output/server/chunks/routes/api/workshop/daq/storage.get.mjs +1 -1
  146. package/.output/server/chunks/routes/api/workshop/daq/templates/_key_.delete.mjs +1 -1
  147. package/.output/server/chunks/routes/api/workshop/daq/templates/_key_.patch.mjs +1 -1
  148. package/.output/server/chunks/routes/api/workshop/daq/test-driver.post.mjs +1 -1
  149. package/.output/server/chunks/routes/api/workshop/dcw/_id/bind.post.mjs +1 -1
  150. package/.output/server/chunks/routes/api/workshop/dcw/_id/bindings.put.mjs +1 -1
  151. package/.output/server/chunks/routes/api/workshop/dcw/_id/param-ledger.get.mjs +1 -1
  152. package/.output/server/chunks/routes/api/workshop/dcw/_id/read.post.mjs +1 -1
  153. package/.output/server/chunks/routes/api/workshop/dcw/_id/test.post.mjs +1 -1
  154. package/.output/server/chunks/routes/api/workshop/dcw/_id/write.post.mjs +1 -1
  155. package/.output/server/chunks/routes/api/workshop/dcw/_id_.delete.mjs +1 -1
  156. package/.output/server/chunks/routes/api/workshop/dcw/_id_.patch.mjs +1 -1
  157. package/.output/server/chunks/routes/api/workshop/dcw/controller.post.mjs +1 -1
  158. package/.output/server/chunks/routes/api/workshop/dcw/index.get.mjs +1 -1
  159. package/.output/server/chunks/routes/api/workshop/dcw/index.post.mjs +1 -1
  160. package/.output/server/chunks/routes/api/workshop/dcw/index2.get.mjs +1 -1
  161. package/.output/server/chunks/routes/api/workshop/dcw/index2.post.mjs +1 -1
  162. package/.output/server/chunks/routes/api/workshop/dcw/index3.get.mjs +1 -1
  163. package/.output/server/chunks/routes/api/workshop/dcw/index3.post.mjs +1 -1
  164. package/.output/server/chunks/routes/api/workshop/dcw/index4.get.mjs +1 -1
  165. package/.output/server/chunks/routes/api/workshop/dcw/index4.post.mjs +1 -1
  166. package/.output/server/chunks/routes/api/workshop/dcw/index5.get.mjs +1 -1
  167. package/.output/server/chunks/routes/api/workshop/dcw/index5.post.mjs +1 -1
  168. package/.output/server/chunks/routes/api/workshop/dcw/index6.get.mjs +1 -1
  169. package/.output/server/chunks/routes/api/workshop/dcw/index7.get.mjs +1 -1
  170. package/.output/server/chunks/routes/api/workshop/dcw/index8.get.mjs +1 -1
  171. package/.output/server/chunks/routes/api/workshop/dcw/journal/node/_nodeId/rollback.post.mjs +1 -1
  172. package/.output/server/chunks/routes/api/workshop/dcw/line/query.get.mjs +1 -1
  173. package/.output/server/chunks/routes/api/workshop/dcw/lines/_id/start.post.mjs +1 -1
  174. package/.output/server/chunks/routes/api/workshop/dcw/lines/_id/stop.post.mjs +1 -1
  175. package/.output/server/chunks/routes/api/workshop/dcw/lines/_id_.delete.mjs +1 -1
  176. package/.output/server/chunks/routes/api/workshop/dcw/lines/index.get.mjs +1 -1
  177. package/.output/server/chunks/routes/api/workshop/dcw/mes-artifacts/file.get.mjs +1 -1
  178. package/.output/server/chunks/routes/api/workshop/dcw/mes-hook-test.post.mjs +1 -1
  179. package/.output/server/chunks/routes/api/workshop/dcw/mes-test-read.post.mjs +1 -1
  180. package/.output/server/chunks/routes/api/workshop/dcw/optimizations/_id/judge.post.mjs +1 -1
  181. package/.output/server/chunks/routes/api/workshop/dcw/optimizations/_id/rollback.post.mjs +1 -1
  182. package/.output/server/chunks/routes/api/workshop/dcw/optimizations/_id/series.get.mjs +1 -1
  183. package/.output/server/chunks/routes/api/workshop/dcw/optimizations/_id_.get.mjs +1 -1
  184. package/.output/server/chunks/routes/api/workshop/dcw/params/_id/read.post.mjs +1 -1
  185. package/.output/server/chunks/routes/api/workshop/dcw/params/_id/write.post.mjs +1 -1
  186. package/.output/server/chunks/routes/api/workshop/dcw/params/_id_.delete.mjs +1 -1
  187. package/.output/server/chunks/routes/api/workshop/dcw/params/_id_.patch.mjs +1 -1
  188. package/.output/server/chunks/routes/api/workshop/dcw/products/_id_.delete.mjs +1 -1
  189. package/.output/server/chunks/routes/api/workshop/dcw/products/_id_.patch.mjs +1 -1
  190. package/.output/server/chunks/routes/api/workshop/dcw/recipes/_id/apply.post.mjs +1 -1
  191. package/.output/server/chunks/routes/api/workshop/dcw/recipes/_id/mark-good.post.mjs +1 -1
  192. package/.output/server/chunks/routes/api/workshop/dcw/recipes/_id/revert.post.mjs +1 -1
  193. package/.output/server/chunks/routes/api/workshop/dcw/recipes/_id/rollback-good.post.mjs +1 -1
  194. package/.output/server/chunks/routes/api/workshop/dcw/recipes/_id_.delete.mjs +2 -2
  195. package/.output/server/chunks/routes/api/workshop/dcw/recipes/index.patch.mjs +1 -1
  196. package/.output/server/chunks/routes/api/workshop/dcw/runs/_id/close.post.mjs +1 -1
  197. package/.output/server/chunks/routes/api/workshop/dcw/runs/_id/data.get.mjs +1 -1
  198. package/.output/server/chunks/routes/api/workshop/dcw/runs/_id/rollback.post.mjs +1 -1
  199. package/.output/server/chunks/routes/api/workshop/dcw/templates/_key_.delete.mjs +1 -1
  200. package/.output/server/chunks/routes/api/workshop/dcw/templates/_key_.patch.mjs +1 -1
  201. package/.output/server/chunks/routes/api/workshop/dcw/test-driver.post.mjs +1 -1
  202. package/.output/server/chunks/routes/api/workshop/device-twins/_id/control.post.mjs +1 -1
  203. package/.output/server/chunks/routes/api/workshop/device-twins/_id/telemetry.post.mjs +1 -1
  204. package/.output/server/chunks/routes/api/workshop/device-twins/_id_.delete.mjs +1 -1
  205. package/.output/server/chunks/routes/api/workshop/device-twins/_id_.patch.mjs +1 -1
  206. package/.output/server/chunks/routes/api/workshop/eda/commonality.get.mjs +1 -1
  207. package/.output/server/chunks/routes/api/workshop/eda/index6.get.mjs +1 -1
  208. package/.output/server/chunks/routes/api/workshop/eda/index6.post.mjs +1 -1
  209. package/.output/server/chunks/routes/api/workshop/eda/vm/predict.post.mjs +1 -1
  210. package/.output/server/chunks/routes/api/workshop/exp/confirmations/_id/decide.post.mjs +1 -1
  211. package/.output/server/chunks/routes/api/workshop/exp/index.get.mjs +1 -1
  212. package/.output/server/chunks/routes/api/workshop/fs/dirs.get.mjs +1 -1
  213. package/.output/server/chunks/routes/api/workshop/harnesses/_id/providers.get.mjs +1 -1
  214. package/.output/server/chunks/routes/api/workshop/harnesses.get.mjs +1 -1
  215. package/.output/server/chunks/routes/api/workshop/hitl/pending.get.mjs +1 -1
  216. package/.output/server/chunks/routes/api/workshop/hitl/respond.post.mjs +1 -1
  217. package/.output/server/chunks/routes/api/workshop/index.mjs +1 -1
  218. package/.output/server/chunks/routes/api/workshop/index.post.mjs +1 -1
  219. package/.output/server/chunks/routes/api/workshop/index.put.mjs +1 -1
  220. package/.output/server/chunks/routes/api/workshop/index12.get.mjs +1 -1
  221. package/.output/server/chunks/routes/api/workshop/index13.get.mjs +1 -1
  222. package/.output/server/chunks/routes/api/workshop/index14.get.mjs +1 -1
  223. package/.output/server/chunks/routes/api/workshop/index2.get.mjs +1 -1
  224. package/.output/server/chunks/routes/api/workshop/index2.post.mjs +1 -1
  225. package/.output/server/chunks/routes/api/workshop/index3.get.mjs +1 -1
  226. package/.output/server/chunks/routes/api/workshop/index3.post.mjs +1 -1
  227. package/.output/server/chunks/routes/api/workshop/index4.post.mjs +1 -1
  228. package/.output/server/chunks/routes/api/workshop/index5.post.mjs +1 -1
  229. package/.output/server/chunks/routes/api/workshop/index6.get.mjs +1 -1
  230. package/.output/server/chunks/routes/api/workshop/index6.post.mjs +1 -1
  231. package/.output/server/chunks/routes/api/workshop/index7.get.mjs +1 -1
  232. package/.output/server/chunks/routes/api/workshop/index7.post.mjs +1 -1
  233. package/.output/server/chunks/routes/api/workshop/index8.get.mjs +1 -1
  234. package/.output/server/chunks/routes/api/workshop/index8.post.mjs +1 -1
  235. package/.output/server/chunks/routes/api/workshop/index9.post.mjs +1 -1
  236. package/.output/server/chunks/routes/api/workshop/mes/bridge.post.mjs +1 -1
  237. package/.output/server/chunks/routes/api/workshop/mes/datasets.get.mjs +1 -1
  238. package/.output/server/chunks/routes/api/workshop/ontology/drafts/_draftId/autofix.mjs +1 -1
  239. package/.output/server/chunks/routes/api/workshop/ontology/drafts/_draftId/compile.mjs +1 -1
  240. package/.output/server/chunks/routes/api/workshop/ontology/drafts/_draftId/evidence.mjs +1 -1
  241. package/.output/server/chunks/routes/api/workshop/ontology/drafts/_draftId/publish.mjs +1 -1
  242. package/.output/server/chunks/routes/api/workshop/ontology/drafts/_draftId/rules/_ruleId/approval-decision.mjs +1 -1
  243. package/.output/server/chunks/routes/api/workshop/ontology/drafts/_draftId/rules/_ruleId/approval.mjs +1 -1
  244. package/.output/server/chunks/routes/api/workshop/ontology/drafts/_draftId/rules/_ruleId/transition.mjs +1 -1
  245. package/.output/server/chunks/routes/api/workshop/ontology/drafts/_draftId/subgraph.mjs +1 -1
  246. package/.output/server/chunks/routes/api/workshop/ontology/drafts/_draftId/validate.mjs +1 -1
  247. package/.output/server/chunks/routes/api/workshop/ontology/drafts/_draftId_.mjs +1 -1
  248. package/.output/server/chunks/routes/api/workshop/ontology/export/_ontologyId_.mjs +1 -1
  249. package/.output/server/chunks/routes/api/workshop/ontology/index.mjs +1 -1
  250. package/.output/server/chunks/routes/api/workshop/ontology/scene.mjs +1 -1
  251. package/.output/server/chunks/routes/api/workshop/ontology/traces/_ontologyId_.mjs +1 -1
  252. package/.output/server/chunks/routes/api/workshop/ontology/versions/_ontologyId/compare.mjs +1 -1
  253. package/.output/server/chunks/routes/api/workshop/ontology/versions/_ontologyId_.mjs +1 -1
  254. package/.output/server/chunks/routes/api/workshop/optimization/capabilities.get.mjs +1 -1
  255. package/.output/server/chunks/routes/api/workshop/optimization/index.get.mjs +1 -1
  256. package/.output/server/chunks/routes/api/workshop/optimization/index.mjs +1 -1
  257. package/.output/server/chunks/routes/api/workshop/optimization/index2.mjs +1 -1
  258. package/.output/server/chunks/routes/api/workshop/optimization/profiles/_id/publish.post.mjs +1 -1
  259. package/.output/server/chunks/routes/api/workshop/optimization/recommendations/_id/crosscheck.post.mjs +1 -1
  260. package/.output/server/chunks/routes/api/workshop/optimization/recommendations/_id/dispatch.post.mjs +1 -1
  261. package/.output/server/chunks/routes/api/workshop/optimization/solve.post.mjs +1 -1
  262. package/.output/server/chunks/routes/api/workshop/plugins/_name/disable.post.mjs +1 -1
  263. package/.output/server/chunks/routes/api/workshop/plugins/_name/enable.post.mjs +1 -1
  264. package/.output/server/chunks/routes/api/workshop/process-model/datasets.post.mjs +1 -1
  265. package/.output/server/chunks/routes/api/workshop/process-model/eligibility.mjs +1 -1
  266. package/.output/server/chunks/routes/api/workshop/process-model/experiments.mjs +1 -1
  267. package/.output/server/chunks/routes/api/workshop/process-model/index.mjs +1 -1
  268. package/.output/server/chunks/routes/api/workshop/process-model/specs/_id/publish.post.mjs +1 -1
  269. package/.output/server/chunks/routes/api/workshop/process-model/train.post.mjs +1 -1
  270. package/.output/server/chunks/routes/api/workshop/projects/_id/activate.post.mjs +1 -1
  271. package/.output/server/chunks/routes/api/workshop/projects/_id/approvals/_aid/decide.post.mjs +1 -1
  272. package/.output/server/chunks/routes/api/workshop/projects/_id/archive.post.mjs +1 -1
  273. package/.output/server/chunks/routes/api/workshop/projects/_id/channels/_channelId_.delete.mjs +1 -1
  274. package/.output/server/chunks/routes/api/workshop/projects/_id/complete.post.mjs +1 -1
  275. package/.output/server/chunks/routes/api/workshop/projects/_id/continue.post.mjs +1 -1
  276. package/.output/server/chunks/routes/api/workshop/projects/_id/deliverables/_did/waive.post.mjs +1 -1
  277. package/.output/server/chunks/routes/api/workshop/projects/_id/deliverables/index.get.mjs +1 -1
  278. package/.output/server/chunks/routes/api/workshop/projects/_id/deliverables/index.patch.mjs +1 -1
  279. package/.output/server/chunks/routes/api/workshop/projects/_id/health.get.mjs +1 -1
  280. package/.output/server/chunks/routes/api/workshop/projects/_id/index.get.mjs +1 -1
  281. package/.output/server/chunks/routes/api/workshop/projects/_id/index.post.mjs +1 -1
  282. package/.output/server/chunks/routes/api/workshop/projects/_id/index2.get.mjs +1 -1
  283. package/.output/server/chunks/routes/api/workshop/projects/_id/index2.post.mjs +1 -1
  284. package/.output/server/chunks/routes/api/workshop/projects/_id/index3.get.mjs +1 -1
  285. package/.output/server/chunks/routes/api/workshop/projects/_id/index3.post.mjs +1 -1
  286. package/.output/server/chunks/routes/api/workshop/projects/_id/index4.get.mjs +1 -1
  287. package/.output/server/chunks/routes/api/workshop/projects/_id/index4.post.mjs +1 -1
  288. package/.output/server/chunks/routes/api/workshop/projects/_id/index5.get.mjs +1 -1
  289. package/.output/server/chunks/routes/api/workshop/projects/_id/index6.get.mjs +1 -1
  290. package/.output/server/chunks/routes/api/workshop/projects/_id/index7.get.mjs +1 -1
  291. package/.output/server/chunks/routes/api/workshop/projects/_id/index8.get.mjs +1 -1
  292. package/.output/server/chunks/routes/api/workshop/projects/_id/kernel/tick.post.mjs +1 -1
  293. package/.output/server/chunks/routes/api/workshop/projects/_id/ledger.get.mjs +1 -1
  294. package/.output/server/chunks/routes/api/workshop/projects/_id/members/_userId_.delete.mjs +1 -1
  295. package/.output/server/chunks/routes/api/workshop/projects/_id/observability/activity.get.mjs +1 -1
  296. package/.output/server/chunks/routes/api/workshop/projects/_id/observability/route.get.mjs +1 -1
  297. package/.output/server/chunks/routes/api/workshop/projects/_id/observability/work-items/_wid_.get.mjs +1 -1
  298. package/.output/server/chunks/routes/api/workshop/projects/_id/observability.get.mjs +1 -1
  299. package/.output/server/chunks/routes/api/workshop/projects/_id/pause.post.mjs +1 -1
  300. package/.output/server/chunks/routes/api/workshop/projects/_id/plan/request-approval.post.mjs +1 -1
  301. package/.output/server/chunks/routes/api/workshop/projects/_id/proposals/_decisionId/apply.post.mjs +1 -1
  302. package/.output/server/chunks/routes/api/workshop/projects/_id/reconcile.post.mjs +1 -1
  303. package/.output/server/chunks/routes/api/workshop/projects/_id/report.get.mjs +1 -1
  304. package/.output/server/chunks/routes/api/workshop/projects/_id/results/_rid/request-acceptance.post.mjs +1 -1
  305. package/.output/server/chunks/routes/api/workshop/projects/_id/results/_rid/review.post.mjs +1 -1
  306. package/.output/server/chunks/routes/api/workshop/projects/_id/results/_rid/submit.post.mjs +1 -1
  307. package/.output/server/chunks/routes/api/workshop/projects/_id/results/_rid/supersede.post.mjs +1 -1
  308. package/.output/server/chunks/routes/api/workshop/projects/_id/resume.post.mjs +1 -1
  309. package/.output/server/chunks/routes/api/workshop/projects/_id/sessions.get.mjs +1 -1
  310. package/.output/server/chunks/routes/api/workshop/projects/_id/snapshot.get.mjs +1 -1
  311. package/.output/server/chunks/routes/api/workshop/projects/_id/terminate.post.mjs +1 -1
  312. package/.output/server/chunks/routes/api/workshop/projects/_id/trace/_traceId_.get.mjs +1 -1
  313. package/.output/server/chunks/routes/api/workshop/projects/_id/work-items/_wid/cancel.post.mjs +1 -1
  314. package/.output/server/chunks/routes/api/workshop/projects/_id/work-items/_wid/dispatch.post.mjs +1 -1
  315. package/.output/server/chunks/routes/api/workshop/projects/_id/work-items/_wid/retry.post.mjs +1 -1
  316. package/.output/server/chunks/routes/api/workshop/projects/_id/work-items/index.get.mjs +1 -1
  317. package/.output/server/chunks/routes/api/workshop/projects/_id/work-items/index.patch.mjs +1 -1
  318. package/.output/server/chunks/routes/api/workshop/projects/_id_.get.mjs +1 -1
  319. package/.output/server/chunks/routes/api/workshop/projects/_id_.patch.mjs +1 -1
  320. package/.output/server/chunks/routes/api/workshop/projects/instantiate.post.mjs +1 -1
  321. package/.output/server/chunks/routes/api/workshop/scene/layouts/_channelId_.delete.mjs +1 -1
  322. package/.output/server/chunks/routes/api/workshop/scene/layouts/_channelId_.put.mjs +1 -1
  323. package/.output/server/chunks/routes/api/workshop/tasks/_id/recovery-disposition.post.mjs +44 -0
  324. package/.output/server/chunks/routes/api/workshop/tasks/_id/recovery-disposition.post.mjs.map +1 -0
  325. package/.output/server/chunks/routes/api/workshop/tasks/recovery-holds.get.mjs +38 -0
  326. package/.output/server/chunks/routes/api/workshop/tasks/recovery-holds.get.mjs.map +1 -0
  327. package/.output/server/chunks/routes/api/workshop/teams/_id/deploy.post.mjs +1 -1
  328. package/.output/server/chunks/routes/api/workshop/teams/_id/index.put.mjs +1 -1
  329. package/.output/server/chunks/routes/api/workshop/teams/_id/index2.get.mjs +1 -1
  330. package/.output/server/chunks/routes/api/workshop/tools/sync.post.mjs +1 -1
  331. package/.output/server/chunks/routes/api/workshop/workspaces/_id/channel-templates/_tplId_.post.mjs +2 -2
  332. package/.output/server/chunks/routes/api/workshop/ws/ticket.post.mjs +1 -1
  333. package/.output/server/chunks/routes/renderer.mjs +2 -2
  334. package/.output/server/chunks/virtual/entry.mjs +6 -2
  335. package/.output/server/chunks/virtual/precomputed.mjs +1 -1
  336. package/.output/server/package.json +1 -1
  337. package/README-zh.md +19 -7
  338. package/README.md +21 -7
  339. package/app/components/dcw/DcwNodesTable.vue +24 -0
  340. package/config.yml +1 -1
  341. package/docs/cli.en.md +1 -1
  342. package/docs/cli.md +1 -1
  343. package/docs/mcp.en.md +30 -27
  344. package/docs/mcp.md +7 -3
  345. package/docs/plugin-idd-rag-contract.md +87 -0
  346. package/docs/plugins.en.md +5 -3
  347. package/docs/plugins.md +5 -3
  348. package/docs/sdk.en.md +1 -1
  349. package/docs/sdk.md +1 -1
  350. package/i18n/dicts/dcwDetail.json +221 -219
  351. package/i18n/locales/en.ts +2 -0
  352. package/i18n/locales/zh-CN.ts +2 -0
  353. package/package.json +3 -1
  354. package/scripts/check-docs-sync.mjs +20 -9
  355. package/scripts/onboarding/forge-channel.mjs +2 -1
  356. package/scripts/onboarding/lib.mjs +159 -3
  357. package/scripts/onboarding/onboard.mjs +2 -0
  358. package/scripts/onboarding/preflight.mjs +233 -231
  359. package/scripts/onboarding/provision-line.mjs +12 -2
  360. package/scripts/onboarding/sim-attest.mjs +103 -0
  361. package/scripts/onboarding/sim-twin.mjs +115 -19
  362. package/scripts/onboarding/test-connection.mjs +2 -1
  363. package/scripts/onboarding/v6-protected-api.mjs +41 -0
  364. package/scripts/onboarding/v6-protected-fixture.mjs +54 -0
  365. package/scripts/onboarding/verify-line.mjs +179 -136
  366. package/scripts/onboarding/verify-mirror.mjs +149 -145
  367. package/server/api/workshop/agent-tools/list.get.ts +10 -1
  368. package/server/api/workshop/tasks/[id]/recovery-disposition.post.ts +32 -0
  369. package/server/api/workshop/tasks/recovery-holds.get.ts +22 -0
  370. package/server/plugins-builtin/diag-bridge/host/deposit.mjs +232 -0
  371. package/server/plugins-builtin/diag-bridge/host/diagnosis.mjs +121 -38
  372. package/server/plugins-builtin/diag-bridge/host/external-v1.mjs +213 -0
  373. package/server/plugins-builtin/diag-bridge/host/helpers.mjs +4 -2
  374. package/server/plugins-builtin/diag-bridge/host/intents.mjs +65 -62
  375. package/server/plugins-builtin/diag-bridge/host/plugin.mjs +351 -82
  376. package/server/plugins-builtin/diag-bridge/host/receipt.mjs +83 -0
  377. package/server/plugins-builtin/diag-bridge/host/sweep.mjs +70 -91
  378. package/server/plugins-builtin/diag-bridge/i18n.json +4 -0
  379. package/server/plugins-builtin/rag-bridge/i18n.json +18 -0
  380. package/server/plugins-builtin/rag-bridge/index.mjs +570 -64
  381. package/server/services/workshop/agents/agent-interface.ts +3 -0
  382. package/server/services/workshop/agents/base-agent.ts +100 -4
  383. package/server/services/workshop/agents/execution-scope.ts +26 -0
  384. package/server/services/workshop/agents/hitl-capabilities.ts +3 -3
  385. package/server/services/workshop/agents/host-tool-bridge/dispatch.ts +42 -2
  386. package/server/services/workshop/agents/host-tool-bridge/tools/progress.ts +4 -0
  387. package/server/services/workshop/agents/host-tool-bridge/tools/tasks.ts +11 -28
  388. package/server/services/workshop/agents/host-tool-bridge/tools/team-delegation.ts +83 -129
  389. package/server/services/workshop/agents/industrial/dcw-tools.ts +27 -5
  390. package/server/services/workshop/agents/industrial/line-tools.ts +15 -4
  391. package/server/services/workshop/agents/industrial/ops-tools.ts +32 -6
  392. package/server/services/workshop/agents/industrial/optimization-tools.ts +28 -4
  393. package/server/services/workshop/agents/industrial/recipe-propose-tools.ts +26 -3
  394. package/server/services/workshop/agents/omp-agent/client.ts +2 -4
  395. package/server/services/workshop/agents/omp-agent/core.ts +3 -0
  396. package/server/services/workshop/agents/omp-agent/lifecycle.ts +70 -4
  397. package/server/services/workshop/agents/omp-agent/supervision-decision.ts +3 -1
  398. package/server/services/workshop/agents/omp-agent/tools-steer.ts +113 -32
  399. package/server/services/workshop/agents/tool-approvals.ts +113 -29
  400. package/server/services/workshop/agents/tool-classes.ts +72 -56
  401. package/server/services/workshop/db/database/open.ts +5 -2
  402. package/server/services/workshop/db/database/schema.ts +1 -0
  403. package/server/services/workshop/db/database/seed.ts +2 -2
  404. package/server/services/workshop/db/message.repo.ts +134 -26
  405. package/server/services/workshop/db/project-kernel.repo.ts +3 -3
  406. package/server/services/workshop/db/schema.sql +3 -1
  407. package/server/services/workshop/db/task.repo.ts +101 -0
  408. package/server/services/workshop/dcw/dcw-controller/actuation.ts +120 -9
  409. package/server/services/workshop/dcw/dcw-controller/contracts.ts +18 -16
  410. package/server/services/workshop/dcw/dcw-controller/crud.ts +23 -0
  411. package/server/services/workshop/dcw/dcw-controller/lines.ts +34 -2
  412. package/server/services/workshop/dcw/dcw-controller/recipes.ts +80 -6
  413. package/server/services/workshop/dcw/dcw-controller/state.ts +89 -88
  414. package/server/services/workshop/dcw/dcw-controller/types.ts +5 -0
  415. package/server/services/workshop/dcw/dcw-controller/write.ts +9 -6
  416. package/server/services/workshop/dcw/dcw-line.repo.ts +2 -0
  417. package/server/services/workshop/dcw/dcw-node.repo.ts +3 -1
  418. package/server/services/workshop/dcw/dcw-node.ts +346 -307
  419. package/server/services/workshop/dcw/dcw-runtime.ts +8 -4
  420. package/server/services/workshop/projects/effects.ts +47 -29
  421. package/server/services/workshop/projects/kernel.ts +8 -1
  422. package/server/services/workshop/projects/legacy-recovery.ts +36 -0
  423. package/server/services/workshop/projects/service.ts +15 -0
  424. package/server/services/workshop/runtime/agent-runtime/contracts.ts +1 -1
  425. package/server/services/workshop/runtime/agent-runtime/lifecycle.ts +7 -2
  426. package/server/services/workshop/runtime/agent-runtime/message-watchdog.ts +40 -0
  427. package/server/services/workshop/runtime/agent-runtime/message.ts +151 -21
  428. package/server/services/workshop/runtime/agent-runtime/state.ts +69 -13
  429. package/server/services/workshop/runtime/agent-runtime/supervise.ts +219 -42
  430. package/server/services/workshop/runtime/agent-runtime/types.ts +6 -0
  431. package/server/services/workshop/runtime/mailbox.ts +112 -21
  432. package/server/services/workshop/runtime/manager/admin-channel.ts +34 -22
  433. package/server/services/workshop/runtime/manager/host-tools.ts +18 -5
  434. package/server/services/workshop/runtime/manager/runtime-wiring.ts +101 -41
  435. package/server/services/workshop/runtime/manager/schedules.ts +3 -1
  436. package/server/services/workshop/runtime/manager/tasks.ts +41 -0
  437. package/server/services/workshop/runtime/memory/recall.ts +11 -4
  438. package/server/services/workshop/runtime/memory/types.ts +2 -0
  439. package/server/services/workshop/runtime/scheduler-loop/contracts.ts +29 -29
  440. package/server/services/workshop/runtime/scheduler-loop/execute.ts +7 -0
  441. package/server/services/workshop/runtime/scheduler-loop/rules.ts +3 -0
  442. package/server/services/workshop/runtime/scheduler-loop/snapshot.ts +10 -2
  443. package/server/services/workshop/runtime/scheduler-loop/state.ts +12 -0
  444. package/server/services/workshop/runtime/scheduler-loop/tick.ts +54 -5
  445. package/server/services/workshop/runtime/task-engine/create.ts +16 -0
  446. package/server/services/workshop/runtime/task-engine/helpers.ts +5 -0
  447. package/server/services/workshop/runtime/task-engine/legacy-recovery.ts +149 -0
  448. package/server/services/workshop/runtime/task-engine/lifecycle.ts +38 -1
  449. package/server/services/workshop/runtime/task-engine/transition.ts +4 -0
  450. package/server/services/workshop/runtime/task-engine/update.ts +6 -0
  451. package/server/services/workshop/runtime/task-engine/views.ts +61 -0
  452. package/server/services/workshop/tools/policy.ts +16 -1
  453. package/shared/dcw-protocol/line.ts +4 -0
  454. package/.output/public/_nuxt/C8QlHux5.js +0 -1
  455. package/.output/public/_nuxt/_id_.0EnzA0aA.css +0 -1
  456. package/.output/public/_nuxt/builds/meta/846b9c03-1442-4fcb-b3fc-1d9484eaa41b.json +0 -1
  457. package/.output/server/chunks/build/_id_-C0vNEbts.mjs.map +0 -1
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentworkshop-prod",
3
- "version": "0.11.3",
3
+ "version": "0.13.0",
4
4
  "type": "module",
5
5
  "private": true,
6
6
  "dependencies": {
package/README-zh.md CHANGED
@@ -10,7 +10,7 @@
10
10
 
11
11
  [![npm version](https://img.shields.io/npm/v/agentworkshop?logo=npm&logoColor=white&label=npm&color=CB3837)](https://www.npmjs.com/package/agentworkshop)
12
12
  [![npm downloads](https://img.shields.io/npm/dm/agentworkshop?logo=npm&logoColor=white&label=downloads&color=CB3837)](https://www.npmjs.com/package/agentworkshop)
13
- [![GitHub release](https://img.shields.io/github/v/release/kingdol666/AgentWorkShop?logo=github&label=release&color=35e0a0)](https://github.com/kingdol666/AgentWorkShop/releases/tag/v0.11.2)
13
+ [![GitHub release](https://img.shields.io/github/v/release/kingdol666/AgentWorkShop?logo=github&label=release&color=35e0a0)](https://github.com/kingdol666/AgentWorkShop/releases/tag/v0.13.0)
14
14
  [![Stars](https://img.shields.io/github/stars/kingdol666/AgentWorkShop?logo=github&label=stars&color=35e0a0)](https://github.com/kingdol666/AgentWorkShop/stargazers)
15
15
  [![Last commit](https://img.shields.io/github/last-commit/kingdol666/AgentWorkShop?logo=git&logoColor=white&label=last%20commit)](https://github.com/kingdol666/AgentWorkShop/commits)
16
16
  [![Issues](https://img.shields.io/github/issues/kingdol666/AgentWorkShop?logo=github&label=issues)](https://github.com/kingdol666/AgentWorkShop/issues)
@@ -28,7 +28,7 @@
28
28
 
29
29
  **[English](./README.md)** · **[在线文档](https://kingdol666.github.io/AgentWorkShop)** · **[版本发布](https://github.com/kingdol666/AgentWorkShop/releases)** · **[更新日志](./changelog.md)** · **[插件 API](./docs/plugins.md)** · **[SDK](./docs/sdk.md)**
30
30
 
31
- <sub><b>源码 v0.11.3(未发布)</b> · 14 个执行引擎 · 6 种现场协议(5 内置 + 串口插件)+ MES REST(镜像与直连双路径)· **项目中心** · **RSI 经验演化** · 148 个宿主工具 · 144 个运行时设置项 · 双语文档(简体中文 / English)</sub>
31
+ <sub><b>源码 v0.13.0(2026-11-18 发布)</b> · 14 个执行引擎 · 6 种现场协议(5 内置 + 串口插件)+ MES REST(镜像与直连双路径)· **项目中心** · **RSI 经验演化** · **IDD/RAG 插件集成** · 142 个宿主工具 · 144 个运行时设置项 · 双语文档(简体中文 / English)</sub>
32
32
 
33
33
  <br />
34
34
 
@@ -36,7 +36,7 @@
36
36
 
37
37
  </div>
38
38
 
39
- [快速开始](#快速开始) · [当前源码](#当前源码-v0-11-3-未发布) · [0.11.2 发布说明](#0112-修复了什么) · [Agent 团队模型](#agent-团队模型) · [核心能力](#核心能力) · [设计架构](#设计架构) · [验证与验收](#验证与验收) · [文档站](https://kingdol666.github.io/AgentWorkShop)
39
+ [快速开始](#快速开始) · [当前源码](#当前源码-v0-13-0) · [0.13.0 发布说明](#whats-new-in-0130) · [Agent 团队模型](#agent-团队模型) · [核心能力](#核心能力) · [设计架构](#设计架构) · [验证与验收](#验证与验收) · [文档站](https://kingdol666.github.io/AgentWorkShop)
40
40
 
41
41
  ---
42
42
 
@@ -49,9 +49,21 @@
49
49
  - **交付是一等概念**:**Project 模式**把蓝图变成计划、带依赖的 WBS、L1 技术复核、L2 Owner 验收与真实交付物——交付物不通过,项目不算完成;
50
50
  - **作业链按治理阶段实现**:读取 → 分析 → 提案 → 按有效策略审批(如适用)→ 下发 → 回读/审计;每份验收证据应注明实际覆盖范围及使用模拟器还是物理设备。
51
51
 
52
- ## 当前源码 v0.11.3(未发布)
52
+ ## 当前源码 v0.13.0
53
53
 
54
- 当前源码版本为 **0.11.3**,尚未发布。本次改动将 README、双语指南与运维 Skill 对齐到现有 Channel 模式、产品绑定 Session、记忆作用域和产线工具契约。模拟 onboarding、DAQ/帧选择、记忆复用、受治理提案和割接边界见[产线集成指南](https://kingdol666.github.io/AgentWorkShop/guide/line-integration)。模拟证据不等于物理 HIL 或生产投用批准。2026-11-16 隔离源码快照已通过 build、lint、typecheck、unit **1790/1790**、MCP **14/14**、插件生命周期 **22/22**、SDK 出口、Twin Provider **5/5**、docs **101/101** 与 Skills **176/176**;全新 home 的五协议模拟演示完成 1 线 / 5 DCW / 9 DAQ 供给、V1–V6 **25/25**,并执行 HITL 批准的配方下发且回读证实。同一窗口还执行了 IDD `industrial-optimizer-loop` 优化 skill(R001 31.712→32.557 g;R002 GP-EI 预测 32.423 g / 实测 32.286 g)、omp + `ustc/deepseek-flash` Channel 作业(HITL 62.5→64 MPa、回读 64、复测 32.416 g)以及 RAG 检索/入库。见[产线演示报告](docs/audit/2026-11-16-line-integration-skill-demo-acceptance.md)与[全系统测评](docs/audit/2026-11-16-full-system-idd-rag-rsi-acceptance.md)。物理 HIL 未验证、RAG 内部 agent 路径超时、Mimosa 仍 inconclusive;本报告不构成物理产线结论,也不宣称安全通过。下方历史结果仍以各自日期化证据为准。
54
+ 当前源码版本为 **0.13.0**,已于 2026-11-18 发布(npm + GitHub Release)。本版把 **IDD**(工业深度诊断)与 **RAG**(rag-knowledge)两座桥生产化:diag-bridge 主契约迁移 IDD `external/v1`(提交前 capabilities 定轨 + 显式 legacy 回退),新增 `diag_chat` / `diag_stop` / `diag_deposit`;rag-bridge 新增文档工具族(`kb_doc_create/search/read/catalog`),落在独立的 `aw-docs` 知识库。插件写工具纳入 fail-closed 写族联合判定,插件 health 暴露逐工具计数,提交→轮询→回执→结果→入库全链按同一持久化契约路由。全新 home 三系统实测:供给 **9/9**、频道锻造 **11/11**、V1–V6 **11/11**;**142 个宿主工具**(127 内置 + 15 插件,schema 增量约 965 tokens);真实模型回合原生调用 `kb_doc_search → kb_doc_read → diag_run → diag_status`;受治理闭环 **SP 156→150→144→138 °C**(每步 HITL、设备证实 1/1),PV 复测 3/3 落 [138,142](均值 139.68),配方 v2 固化。门禁:lint、typecheck、unit **2059/2060**(1 skip)、build。证据:[2026-11-18 插件 v1 验收](docs/audit/evidence/2026-11-18-idd-rag-plugin-v1-contract/REPORT.md)。
55
+
56
+ ## What's new in 0.13.0
57
+
58
+ - **diag-bridge v2.4**:`external/v1` 为主契约,提交前 `GET /capabilities` 定轨(5 分钟指纹缓存)+ 显式 `contract=legacy` 回退;六态生命周期,`awaiting_input` 占产线单飞锁并按老化上限转 `expired`;新增 `diag_chat` / `diag_stop` / `diag_deposit`;全 7 意图与 ontology / preprocessing / report-language 透传;9 类错误码映射为可读处方。
59
+ - **rag-bridge v2.3**:`kb_doc_create` / `kb_doc_search` / `kb_doc_read` / `kb_catalog` 四工具落在 `aw-docs`(与 `aw-industrial` 经验库分键);two-stage 主检索 + 带标注的关键词降级;创建幂等,并用 `index-document`(向量 + BM25 增量)建索引——整库 reindex 不会刷新后端进程内 BM25。
60
+ - **一条闭环入库**:`diag_deposit` 取已完成 run 的报告 → 写 `aw-docs` → 建索引 → 打标签 → 两段检索自查;报告为空时如实失败、不落半截文档。
61
+ - **写安全与可观测**:`isPolicyWriteTool` = 静态写名单 ∪ 已注册插件 `riskClass='write'`(实时注册表,无缓存窗口);插件 health 暴露逐工具 ok/err 计数,写类工具留 ops 审计。
62
+ - **双语指南**:[IDD / RAG 插件集成](https://kingdol666.github.io/AgentWorkShop/guide/idd-rag-plugins)覆盖工具清单、契约定轨、生命周期、错误码、降级与灰度。
63
+
64
+ ## What's new in 0.12.0 — 历史发布说明
65
+
66
+ 0.12.0 引入 claim-token CAS、恢复保留处置面、DCW transport-ack 写验证与模拟器归属证明;完整列表见[更新日志](./changelog.md)。发布后第二轮加固(`900ad228`,PR #228)修复了第二轮测评复现的四个缺陷:消息看门狗改为活动窗口(HITL 等待不再误杀健康长回合——上一轮被 abort+重放 3 次的 16 分钟治理回合本轮一次投递、0 次 abort)、HITL 到期权威收口并发终态通告、rag-bridge kb_agent 失败分类(401→轮换 token,不再误导"检查 web")、verify-line V6 对未预置夹具的 fresh home 记 SKIP。门禁:lint、typecheck、unit **1799/1799**、build、docs **101/101**、Skills **176/176**、MCP **14/14**、插件 **22/22**、SDK、twin 5/5。全新五协议实测:onboard 首跑 25/25 + 冒烟 7/7;omp + `ustc/deepseek-flash` 频道治理步(HITL → run `readback-verified` 1/1、journal 锚点);IDD `industrial-optimizer-loop` R001 31.7875→32.5611 g(incumbent,D=0.825)+ R002 GP-EI 落 CI 内、gate 13/13;RAG 入库后检索排名第 1。见[第二轮测评报告](docs/audit/2026-11-16-round2-fixes-full-acceptance.md)。物理 HIL 未验证;RAG 内部 agent 仍不稳定(外部);Mimosa inconclusive;USTC key 两次触及 3h 预算(外部配额)。
55
67
 
56
68
  ## 0.11.2 历史发布快照(不是当前主干验收)
57
69
 
@@ -394,7 +406,7 @@ curl -X POST http://localhost:3001/api/workshop/projects/instantiate \
394
406
 
395
407
  ## 研究论文
396
408
 
397
- 治理机制已写成投稿级论文——**《Grading Machine-Originated Plant Writes: Separately Inspectable Evidence for Industrial Agent Teams》**(IEEE TII 匿名评审稿)。源文件与评审记录见 [`paper/tii/SUBMISSION-IEEE-TII/`](./paper/tii/SUBMISSION-IEEE-TII/);每条机制主张由仓库证据支撑([`docs/benchmarks/`](./docs/benchmarks) · [`docs/experiments/`](./docs/experiments) · [`docs/audit/`](./docs/audit))。
409
+ 治理机制已写成投稿级论文——**《Agent-Mediated Online Data Acquisition and Governed Setpoint Control in Industrial Production Lines》**(IEEE TII 匿名评审稿)。源文件与编译稿见 [`paper/tii/TII-SUBMISSION-PACKAGE-20261112/`](./paper/tii/TII-SUBMISSION-PACKAGE-20261112/);每条机制主张由仓库证据支撑([`docs/benchmarks/`](./docs/benchmarks) · [`docs/experiments/`](./docs/experiments) · [`docs/audit/`](./docs/audit))。
398
410
 
399
411
  ## 参与贡献
400
412
 
@@ -416,7 +428,7 @@ curl -X POST http://localhost:3001/api/workshop/projects/instantiate \
416
428
 
417
429
  **如果这个项目对你有用,点一个 ⭐ 能让更多人找到它。**
418
430
 
419
- 当前源码版本:**v0.11.3(未发布)** —— [最新已发布版本 v0.11.2](https://github.com/kingdol666/AgentWorkShop/releases/tag/v0.11.2) · [更新日志](./changelog.md) · [在线文档](https://kingdol666.github.io/AgentWorkShop)
431
+ 当前源码版本:**v0.13.0(已发布 2026-11-18)** —— [最新版本 v0.13.0](https://github.com/kingdol666/AgentWorkShop/releases/tag/v0.13.0) · [更新日志](./changelog.md) · [在线文档](https://kingdol666.github.io/AgentWorkShop)
420
432
 
421
433
  <a href="https://star-history.com/#kingdol666/AgentWorkShop&Date">
422
434
  <img src="https://api.star-history.com/svg?repos=kingdol666/AgentWorkShop&type=Date" alt="Star history" width="70%" />
package/README.md CHANGED
@@ -10,7 +10,7 @@
10
10
 
11
11
  [![npm version](https://img.shields.io/npm/v/agentworkshop?logo=npm&logoColor=white&label=npm&color=CB3837)](https://www.npmjs.com/package/agentworkshop)
12
12
  [![npm downloads](https://img.shields.io/npm/dm/agentworkshop?logo=npm&logoColor=white&label=downloads&color=CB3837)](https://www.npmjs.com/package/agentworkshop)
13
- [![GitHub release](https://img.shields.io/github/v/release/kingdol666/AgentWorkShop?logo=github&label=release&color=35e0a0)](https://github.com/kingdol666/AgentWorkShop/releases/tag/v0.11.2)
13
+ [![GitHub release](https://img.shields.io/github/v/release/kingdol666/AgentWorkShop?logo=github&label=release&color=35e0a0)](https://github.com/kingdol666/AgentWorkShop/releases/tag/v0.13.0)
14
14
  [![Stars](https://img.shields.io/github/stars/kingdol666/AgentWorkShop?logo=github&label=stars&color=35e0a0)](https://github.com/kingdol666/AgentWorkShop/stargazers)
15
15
  [![Last commit](https://img.shields.io/github/last-commit/kingdol666/AgentWorkShop?logo=git&logoColor=white&label=last%20commit)](https://github.com/kingdol666/AgentWorkShop/commits)
16
16
  [![Issues](https://img.shields.io/github/issues/kingdol666/AgentWorkShop?logo=github&label=issues)](https://github.com/kingdol666/AgentWorkShop/issues)
@@ -28,7 +28,7 @@
28
28
 
29
29
  **[简体中文](./README-zh.md)** · **[Documentation](https://kingdol666.github.io/AgentWorkShop)** · **[Releases](https://github.com/kingdol666/AgentWorkShop/releases)** · **[Changelog](./changelog.md)** · **[Plugin API](./docs/plugins.md)** · **[SDK](./docs/sdk.md)**
30
30
 
31
- <sub><b>source v0.11.3 (unreleased)</b> · 14 engines · 6 field protocols (5 built-in + serial plugin) + MES REST (mirror & live) · **Project center** · **RSI experience evolution** · 148 host tools · 144 runtime settings · bilingual docs (简体中文 / English)</sub>
31
+ <sub><b>source v0.13.0 (released 2026-11-18)</b> · 14 engines · 6 field protocols (5 built-in + serial plugin) + MES REST (mirror & live) · **Project center** · **RSI experience evolution** · **IDD/RAG plugin integration** · 142 host tools · 144 runtime settings · bilingual docs (简体中文 / English)</sub>
32
32
 
33
33
  <br />
34
34
 
@@ -36,7 +36,7 @@
36
36
 
37
37
  </div>
38
38
 
39
- [Quick start](#quick-start) · [Current source](#current-source-v0-11-3-unreleased) · [0.11.2 release notes](#whats-new-in-0112-historical-release-snapshot) · [Agent team model](#the-agent-team-model) · [Capabilities](#capabilities) · [Architecture](#architecture) · [Verification](#verification) · [Docs site](https://kingdol666.github.io/AgentWorkShop)
39
+ [Quick start](#quick-start) · [Current source](#current-source-v0-13-0) · [0.13.0 release notes](#whats-new-in-0130) · [Agent team model](#the-agent-team-model) · [Capabilities](#capabilities) · [Architecture](#architecture) · [Verification](#verification) · [Docs site](https://kingdol666.github.io/AgentWorkShop)
40
40
 
41
41
  ---
42
42
 
@@ -49,9 +49,23 @@ A configuration-driven platform where **AI agent teams** and industrial systems
49
49
  - **Delivery is a first-class concept**: **Project mode** turns a blueprint into a plan, a WBS with dependencies, L1 technical review, L2 owner acceptance and real deliverables — the project closes only when the deliverables pass;
50
50
  - **The loop is implemented in governed stages**: read → analyze → propose → policy-controlled approval where required → write → readback/audit; the scope of each test and whether it used a simulator or physical equipment are stated with its evidence.
51
51
 
52
- ## Current source: v0.11.3 (unreleased)
52
+ ## Current source: v0.13.0
53
53
 
54
- The source version is **0.11.3**, not yet published. This change set aligns the README, bilingual guides and operational Skills with the current Channel-mode, product-bound Session, memory-scope and line-tool contracts. For simulated onboarding, DAQ/frame selection, memory reuse, governed proposals and cutover limits, see the [line integration guide](https://kingdol666.github.io/AgentWorkShop/guide/line-integration). Simulation evidence is not physical HIL or production approval. On 2026-11-16 the isolated snapshot passed build, lint, typecheck, unit **1790/1790**, MCP **14/14**, plugin lifecycle **22/22**, SDK surface, twin provider **5/5**, docs **101/101** and Skills **176/176**; a fresh-home five-protocol simulator demo provisioned 1 line / 5 DCW / 9 DAQ, passed V1–V6 **25/25**, and exercised HITL-approved recipe steps with readback verification. The same window ran the IDD `industrial-optimizer-loop` skill (R001 31.712→32.557 g; R002 GP-EI predicted 32.423 g / measured 32.286 g), an omp + `ustc/deepseek-flash` Channel task (HITL 62.5→64 MPa, readback 64, retest 32.416 g), and RAG retrieval/ingestion. See the [line demo report](docs/audit/2026-11-16-line-integration-skill-demo-acceptance.md) and the [full-system evaluation](docs/audit/2026-11-16-full-system-idd-rag-rsi-acceptance.md). Physical HIL is unverified, RAG's internal agent path timed out, and Mimosa remains inconclusive; no physical-line or security-pass claim is made. Historical results below remain tied to their dated evidence.
54
+ The source version is **0.13.0**, published on 2026-11-18 (npm + GitHub Release). This release productizes the **IDD** (industrial deep-diagnostic) and **RAG** (rag-knowledge) bridges: diag-bridge now targets IDD's `external/v1` contract with pre-submit capability pinning and an explicit legacy fallback, adds `diag_chat` / `diag_stop` / `diag_deposit`, and rag-bridge adds a deterministic document tool family (`kb_doc_create/search/read/catalog`) on a dedicated `aw-docs` knowledge base. Plugin write tools now join the fail-closed write classification, tool counters are exposed on plugin health, and the whole lifecycle (submit → poll → receipts → results → deposit) routes on one persisted contract.
55
+
56
+ Fresh-home three-system acceptance: provisioning **9/9**, channel forge **11/11**, V1–V6 **11/11**; **142 host tools** (127 builtin + 15 plugin, +965 schema tokens); a real model turn natively called `kb_doc_search → kb_doc_read → diag_run → diag_status`; governed closed loop **SP 156→150→144→138 °C** with HITL on every step and device-confirmed 1/1 writes, PV retest 3/3 inside [138,142] (mean 139.68), recipe v2 frozen. Gates: lint, typecheck, unit **2059/2060** (1 skipped), build. Evidence: [2026-11-18 plugin v1 acceptance](docs/audit/evidence/2026-11-18-idd-rag-plugin-v1-contract/REPORT.md).
57
+
58
+ ## What's new in 0.13.0
59
+
60
+ - **diag-bridge v2.4**: `external/v1` is the primary contract with a pre-submit `GET /capabilities` probe (5-min fingerprint cache) and an explicit `contract=legacy` fallback; the six v1 terminal states are handled, `awaiting_input` holds the line single-flight lock and ages to `expired`, and `diag_chat` / `diag_stop` / `diag_deposit` are new tools. All seven analysis intents pass through, along with ontology / preprocessing / report-language fields.
61
+ - **rag-bridge v2.3**: document tools `kb_doc_create` / `kb_doc_search` / `kb_doc_read` / `kb_catalog` on the `aw-docs` knowledge base (separate from the `aw-industrial` experience base); two-stage retrieval is the primary path with a labelled keyword fallback; creation is idempotent and uses `index-document` (vector + BM25) because a whole-KB reindex does not refresh the backend's in-process BM25 index.
62
+ - **One-loop deposit**: `diag_deposit` reads a completed run's report, writes it to `aw-docs`, indexes it, tags it and self-checks retrieval — no manual copy step; empty reports fail readably without creating a partial document.
63
+ - **Write safety & observability**: `isPolicyWriteTool` now unions the static write list with registered plugin tools declaring `riskClass: 'write'`; plugin health exposes per-tool ok/err counters and write tools emit ops audits.
64
+ - **Bilingual guide**: [IDD / RAG plugin integration](https://kingdol666.github.io/AgentWorkShop/guide/idd-rag-plugins) covers tools, contract pinning, lifecycle, error codes, degradation and gray release.
65
+
66
+ ## What's new in 0.12.0 (historical release notes)
67
+
68
+ The 0.12.0 round added claim-token CAS, recovery-hold dispositions, DCW transport-ack verification and simulator attestation; see the [changelog](./changelog.md) for the full list. Post-release hardening round 2 (`900ad228`, PR #228) fixed the four defects reproduced in the round-2 evaluation: the message watchdog is now an activity window (HITL waits no longer kill healthy long turns; the 16-minute governed turn that was aborted and replayed 3× in round 1 completed once with zero watchdog aborts), HITL expiry settles authoritatively with denial notices, rag-bridge kb_agent errors are classified (401 → rotate token instead of a misleading "check the web"), and verify-line V6 treats a missing fresh-home fixture as a documented SKIP. Gates: lint, typecheck, unit **1799/1799**, build, docs **101/101**, Skills **176/176**, MCP **14/14**, plugin **22/22**, SDK, twin 5/5. Fresh-home five-protocol round: onboarding 25/25 + smoke 7/7 on first pass; omp + `ustc/deepseek-flash` Channel governed step (HITL → run `readback-verified` 1/1, journal anchor); IDD `industrial-optimizer-loop` R001 31.7875→32.5611 g (incumbent, D=0.825) + R002 GP-EI within CI, gate 13/13; RAG index → retrieval rank 1. See the [round-2 report](docs/audit/2026-11-16-round2-fixes-full-acceptance.md). Physical HIL unverified; RAG internal agent still flaky (external); Mimosa inconclusive; the USTC key hit its 3h budget twice (external quota).
55
69
 
56
70
  ## What's new in 0.11.2 (historical release snapshot)
57
71
 
@@ -390,7 +404,7 @@ In progress / planned: **binding lifecycle** (auto-release on project completion
390
404
 
391
405
  ## Research paper
392
406
 
393
- The governance mechanisms are written up as **“Grading Machine-Originated Plant Writes: Separately Inspectable Evidence for Industrial Agent Teams”** (IEEE TII submission under review). Sources and review records: [`paper/tii/SUBMISSION-IEEE-TII/`](./paper/tii/SUBMISSION-IEEE-TII/); every mechanism claim is backed by in-repo evidence ([`docs/benchmarks/`](./docs/benchmarks) · [`docs/experiments/`](./docs/experiments) · [`docs/audit/`](./docs/audit)).
407
+ The governance mechanisms are written up as **“Agent-Mediated Online Data Acquisition and Governed Setpoint Control in Industrial Production Lines”** (IEEE TII submission under review). Sources and compiled draft: [`paper/tii/TII-SUBMISSION-PACKAGE-20261112/`](./paper/tii/TII-SUBMISSION-PACKAGE-20261112/); every mechanism claim is backed by in-repo evidence ([`docs/benchmarks/`](./docs/benchmarks) · [`docs/experiments/`](./docs/experiments) · [`docs/audit/`](./docs/audit)).
394
408
 
395
409
  ## Contributing
396
410
 
@@ -412,7 +426,7 @@ Please **do not** open public issues for vulnerabilities — report privately vi
412
426
 
413
427
  **If this project is useful to you, a ⭐ helps others find it.**
414
428
 
415
- Current source version: **v0.11.3 (unreleased)** — [Latest published release v0.11.2](https://github.com/kingdol666/AgentWorkShop/releases/tag/v0.11.2) · [Changelog](./changelog.md) · [Documentation](https://kingdol666.github.io/AgentWorkShop)
429
+ Current source version: **v0.13.0 (released 2026-11-18)** — [Latest release v0.13.0](https://github.com/kingdol666/AgentWorkShop/releases/tag/v0.13.0) · [Changelog](./changelog.md) · [Documentation](https://kingdol666.github.io/AgentWorkShop)
416
430
 
417
431
  <a href="https://star-history.com/#kingdol666/AgentWorkShop&Date">
418
432
  <img src="https://api.star-history.com/svg?repos=kingdol666/AgentWorkShop&type=Date" alt="Star history" width="70%" />
@@ -179,6 +179,18 @@ function clock(iso: string | null | undefined): string {
179
179
  </div>
180
180
  </div>
181
181
 
182
+ <div
183
+ v-if="n.holdBlocked"
184
+ class="nc-hold-warning"
185
+ role="status"
186
+ >
187
+ <span
188
+ class="i-tabler-alert-triangle"
189
+ aria-hidden="true"
190
+ />
191
+ <span><b>{{ $t('dcwDetail.holdBlocked') }}</b> · {{ $t('dcwDetail.holdBlockedTip') }}</span>
192
+ </div>
193
+
182
194
  <div class="nc-write">
183
195
  <label class="nc-write-label">{{ $t('dcwDetail.k1k79ec9057') }}</label>
184
196
  <input
@@ -421,6 +433,18 @@ function clock(iso: string | null | undefined): string {
421
433
 
422
434
  .read-btn { margin-left: 4px; }
423
435
 
436
+ .nc-hold-warning {
437
+ display: flex;
438
+ align-items: flex-start;
439
+ gap: 6px;
440
+ padding: 8px 10px;
441
+ color: var(--tone-warning-dot);
442
+ background: var(--tone-warning-bg);
443
+ font-size: 12px;
444
+ line-height: 1.5;
445
+ }
446
+ .nc-hold-warning > span:first-child { flex: 0 0 16px; margin-top: 2px; }
447
+
424
448
  .nc-write {
425
449
  display: flex;
426
450
  flex-wrap: wrap;
package/config.yml CHANGED
@@ -12,7 +12,7 @@
12
12
  app:
13
13
  name: AgentWorkShop
14
14
  title: AgentWorkShop
15
- version: 0.11.3
15
+ version: 0.13.0
16
16
  description: 基于 Nuxt 4 的配置驱动运行范式
17
17
 
18
18
  # 运行模式(dev/prod 实际由启动命令决定,此处仅作运行时展示)
package/docs/cli.en.md CHANGED
@@ -79,7 +79,7 @@ npx -p agentworkshop aw doctor # use -p when you want the name aw
79
79
  | Package manager | `pnpm@11.9.0` (`packageManager`, needed only for source development) |
80
80
  | Module format | ESM (`type: module`) |
81
81
  | License | `Apache-2.0` |
82
- | Current version | `0.11.3` (`package.json`) |
82
+ | Current version | `0.13.0` (`package.json`) |
83
83
 
84
84
  ## 2. First start (the Claude Code experience)
85
85
 
package/docs/cli.md CHANGED
@@ -76,7 +76,7 @@ npx -p agentworkshop aw doctor # 需要 aw 这个名字时用 -p 指定包
76
76
  | 包管理器 | `pnpm@11.9.0`(`packageManager`,仅源码开发需要) |
77
77
  | 模块形态 | ESM(`type: module`) |
78
78
  | 许可证 | `Apache-2.0` |
79
- | 当前版本 | `0.11.3`(`package.json`) |
79
+ | 当前版本 | `0.13.0`(`package.json`) |
80
80
 
81
81
  ## 二、首次启动(Claude Code 式)
82
82
 
package/docs/mcp.en.md CHANGED
@@ -1,27 +1,30 @@
1
- # aw Industrial MCP Server (mcp/)
2
-
3
- > Integration entry for external skills / MCP clients / engineer workbenches: exposes the
4
- > platform's key REST methods as first-class MCP tools and **auto-discovers the port of the
5
- > running local instance** — mount it and it just works, no manual port wiring.
6
-
7
- See [docs/mcp.md](../mcp.md) (Chinese, authoritative) for the full reference. Summary:
8
-
9
- - **Launch**: `aw mcp` (stdio) · `aw mcp --doctor` (diagnose) · `aw mcp --print-config`
10
- - **Port discovery priority**: `AW_BASE_URL` → `AW_PORT` → `.runtime/aw.lock` lock files
11
- (explicit `AW_HOME` wins over implicit cwd/home discovery) → `PORT`/`NUXT_PORT` →
12
- `config.yml` `server.dev.port`/`server.prod.port` → defaults 3000/3001.
13
- Health gate: `GET /api/health` must return `data.status === 'ok'`.
14
- - **Self-healing**: network failures invalidate the cached base and trigger one re-discovery +
15
- retry; 401 clears the token and lazy-relogins once. Bad credentials fail fast (no re-discovery).
16
- - **Auth**: `AW_TOKEN`, or `AW_EMAIL` + `AW_PASSWORD` (lazy login), or the `aw_login` tool.
17
- - **Tool surface (35)**: connection (`aw_status`, `aw_login`); lines/products/recipes
18
- (`aw_line_*`, `aw_product_create`, `aw_recipe_create`); DCW nodes & parameter map
19
- (`aw_dcw_*`, `aw_param_*`); DAQ (`aw_daq_*`); optimization channels
20
- (`aw_channel_*`, `aw_channel_template_instantiate`, `aw_team_provision`,
21
- `aw_agent_tool_bind/invoke`, `aw_twin_profile_get/patch`, `aw_task_*`, `aw_model_*`,
22
- `aw_optimization_judge`); plugins (`aw_plugin_list`, `aw_plugin_toggle`);
23
- escape hatch (`aw_request`, `/api/` prefix only).
24
- - **Skills**: `skills/aw-node-bind`, `skills/aw-opt-channel`, `skills/aw-plugin-dev` are built
25
- on top of this server (`npm run test:skills` validates cross-references).
26
- - **Tests**: `npm run test:mcp` (unit, 12 test groups) · `npm run test:mcp-live`
27
- (isolated-instance e2e, 34 assertions).
1
+ # aw Industrial MCP Server (mcp/)
2
+
3
+ > Integration entry for external skills / MCP clients / engineer workbenches: exposes the
4
+ > platform's key REST methods as first-class MCP tools and **auto-discovers the port of the
5
+ > running local instance** — mount it and it just works, no manual port wiring.
6
+
7
+ See [docs/mcp.md](../mcp.md) (Chinese, authoritative) for the full reference. Summary:
8
+
9
+ - **Launch**: `aw mcp` (stdio) · `aw mcp --doctor` (diagnose) · `aw mcp --print-config`
10
+ - **Port discovery priority**: `AW_BASE_URL` → `AW_PORT` → `.runtime/aw.lock` lock files
11
+ (explicit `AW_HOME` wins over implicit cwd/home discovery) → `PORT`/`NUXT_PORT` →
12
+ `config.yml` `server.dev.port`/`server.prod.port` → defaults 3000/3001.
13
+ Health gate: `GET /api/health` must return `data.status === 'ok'`.
14
+ - **Self-healing**: network failures invalidate the cached base and trigger one re-discovery +
15
+ retry; 401 clears the token and lazy-relogins once. Bad credentials fail fast (no re-discovery).
16
+ - **Auth**: `AW_TOKEN`, or `AW_EMAIL` + `AW_PASSWORD` (lazy login), or the `aw_login` tool.
17
+ - **Tool surface (35)**: connection (`aw_status`, `aw_login`); lines/products/recipes
18
+ (`aw_line_*`, `aw_product_create`, `aw_recipe_create`); DCW nodes & parameter map
19
+ (`aw_dcw_*`, `aw_param_*`); DAQ (`aw_daq_*`); optimization channels
20
+ (`aw_channel_*`, `aw_channel_template_instantiate`, `aw_team_provision`,
21
+ `aw_agent_tool_bind/invoke`, `aw_twin_profile_get/patch`, `aw_task_*`, `aw_model_*`,
22
+ `aw_optimization_judge`); plugins (`aw_plugin_list`, `aw_plugin_toggle`);
23
+ escape hatch (`aw_request`, `/api/` prefix only).
24
+ - **Agent-token bridge compatibility (unreleased, unmerged, under review)**: the separate `aw-mcp-bridge.mjs` token identifies an agent, not a trusted turn. Its list filters and invocation rejects observe-blocked hazardous tools and `team_grant_nodes`, `team_revoke_nodes`, `dispatch_task`, `create_team_agent`, `update_team_agent`, and `remove_team_agent`. Plugin tools pass this layer only with explicit `riskClass: 'read'`; omitted, `write`, and `admin` are filtered and denied. Do not mislabel tools with side effects as read-only; role, channel and other governance checks still apply. The user-token industrial MCP path is distinct and remains subject to its own permissions and gates.
25
+ - **Delegation (unreleased, unmerged source under review)**: on a supported lead path, explicitly call `team_grant_nodes` first when needed, then `dispatch_task` without `grant_node_ids` or `grantNodeIds`; a non-null combined grant is rejected. These are not atomic: a failed dispatch does not roll back an earlier grant, which should be reviewed and revoked if appropriate. Grants default to `manual`; explicit `auto` requires `confirm: true`.
26
+ - **OMP boundary (unreleased, unmerged source under review)**: an aborted native work or supervision turn retires its process. Reliable per-turn provenance for late frames after normal completion on a reused process remains unresolved. These current-source details are not evidence of physical HIL or a security pass.
27
+ - **Skills**: `skills/aw-node-bind`, `skills/aw-opt-channel`, `skills/aw-plugin-dev` are built
28
+ on top of this server (`npm run test:skills` validates cross-references).
29
+ - **Tests**: `npm run test:mcp` (unit, 12 test groups) · `npm run test:mcp-live`
30
+ (isolated-instance e2e, 34 assertions).
package/docs/mcp.md CHANGED
@@ -78,9 +78,13 @@ aw mcp # 启动 stdio 服务(由 MCP 客户端作为子进程拉
78
78
  | 插件 | `aw_plugin_list`、`aw_plugin_toggle` |
79
79
  | 逃生舱 | `aw_request`(通用 REST,path 必须以 `/api/` 开头) |
80
80
 
81
- `aw_agent_tool_invoke` 可调用频道成员实例的全部宿主工具面
82
- (`optimization_explore` / `mpc_optimize` / `twin_*` / `dcw_control` / `param_control` / `daq_query` 等),
83
- 是探索/寻优闭环的执行通道。
81
+ `aw_agent_tool_invoke` 使用用户鉴权调用频道成员实例的宿主工具;工具是否可执行仍取决于用户权限、角色、Channel 策略及相应治理门,不能假定全部工具均可用。
82
+
83
+ **agent-token 回程桥兼容性(未发布、未合并,待审查)**:`aw-mcp-bridge.mjs` 使用的 agent token 只能标识 agent,不能证明调用来自可信回合。因而其列表过滤且执行时拒绝观察模式阻断的危险工具,以及 `team_grant_nodes`、`team_revoke_nodes`、`dispatch_task`、`create_team_agent`、`update_team_agent`、`remove_team_agent`。插件工具仅在显式声明 `riskClass: 'read'` 时通过这一层;缺省、`write`、`admin` 被过滤和拒绝。`read` 不是绕过其他权限检查的许可,也不应标注给有副作用的工具。此限制不等同于用户 token 的工业 MCP 路径,但该路径仍受自身权限和治理约束。
84
+
85
+ 以下派发与 omp 限制同属未发布、未合并且待审查的源码,不代表已发布的 0.11.3:受支持的 lead 调度路径中,需要授权时先单独调用 `team_grant_nodes`,确认成功后再调用不带 `grant_node_ids`(或 `grantNodeIds`)的 `dispatch_task`;随任务携带非 `null` 的授权值会被拒绝。两步不是原子操作,派发失败后已授予的权限不会自动回滚,应检查并按需撤销。`team_grant_nodes` 默认 `manual`,显式授予 `auto` 需 `confirm: true`。
86
+
87
+ 原生 omp 的工作或监督回合中止后会退役对应进程;正常完成回合后,同一进程迟到帧的逐回合来源仍未解决。以上为当前源码行为,不构成物理 HIL 或安全通过的证明。
84
88
 
85
89
  ### host tools 目录与 Channel 工具治理
86
90
 
@@ -0,0 +1,87 @@
1
+ # IDD / RAG 插件契约与运维说明(v2.4 / v2.3)
2
+
3
+ > 适用:`server/plugins-builtin/diag-bridge`(v2.4)与 `server/plugins-builtin/rag-bridge`(v2.3)。
4
+ > 上游契约:IDD `docs/api-external-plugin-manual.md` v1.3;RAG `docs/api-web.md` v2.0。
5
+ > 本文只描述**平台侧插件**的工具面、错误语义与降级行为;后端功能不在本文范围。
6
+
7
+ ## 1. 工具清单
8
+
9
+ ### rag-bridge(v2.3,文档面确定性工具)
10
+
11
+ | 工具 | 角色 | riskClass | 用途 | 关键参数 | 首行输出 |
12
+ | --- | --- | --- | --- | --- | --- |
13
+ | `kb_agent` | lead+worker | write | 知识库原生 Agent 对话(检索/入库/经验);写走 HITL | `prompt` `action=query\|ingest` `wait/wait_seconds` | 完成文本(✅) |
14
+ | `kb_agent_status` | lead+worker | read | 异步任务查询/长轮询 | `task_id` `wait_seconds` | 结果文本 |
15
+ | `kb_doc_create` | lead+worker | write | Markdown 直入文档库并建索引(同名幂等) | `name` `content` `description?` `kb?` `tags?` | `status=created doc_path=… index=ok tags=ok` |
16
+ | `kb_doc_search` | lead+worker | read | 两段检索为主,关键词兜底 | `query` `kb?` `top_k?` | `status=ok mode=two-stage hits=N` |
17
+ | `kb_doc_read` | lead+worker | read | 读文档正文(截断) | `doc_path` `kb?` `max_chars?` | `status=ok doc_path=… truncated=no` |
18
+ | `kb_catalog` | lead+worker | read | 库清单与文档数 | — | `status=ok kbs=N` |
19
+
20
+ 缺省文档库 = `plugins.rag-bridge.docs_kb`(默认 `aw-docs`);经验面(`kb_agent`)仍写 `aw-industrial`。
21
+ `kb_doc_create` 显式指定 `aw-industrial` 时输出**漂移警告**,不硬拦。
22
+
23
+ ### diag-bridge(v2.4,external v1 主契约)
24
+
25
+ | 工具 | 角色 | riskClass | 用途 | 关键参数 | 首行输出 |
26
+ | --- | --- | --- | --- | --- | --- |
27
+ | `diag_run` | lead+worker | read | 发起任意意图分析(提交即返 task_id) | `line/export_id/data_path` `analysis_intent` `wait?` `ontology_*` `preprocessing_mode` `report_language` | `已发起…contract=v1` |
28
+ | `diag_status` | lead+worker | read | 状态/结果(含报告路径与 URL) | `run_id?` | `run_id=… contract=… 状态=…` |
29
+ | `diag_chat` | lead+worker | read | 已完成/运行中 run 续聊(v1) | `run_id` `message` | `status=ok delivered=… resumed=…` |
30
+ | `diag_stop` | lead+worker | write | 停止 run(写审计) | `run_id` | `status=stopped run_id=…` |
31
+ | `diag_deposit` | lead+worker | write | 报告一键入 `aw-docs` + 检索自查 | `run_id` `kb?` `title?` | `status=ok doc_path=… search=hit` |
32
+ | `diag_results` / `diag_result_get` / `diag_result_annotate` | 结果库(默认关;worker 可读默认关/编辑仅 lead) | 见旧版文档 | 历史结果检索/详情/元数据 | — | — |
33
+
34
+ 全部 7 意图:`deep-diagnosis` / `stability-report` / `quick-screen` / `doe-analysis` /
35
+ `experience-mining` / `optimizer-campaign` / `improvement-advisory`。
36
+
37
+ ## 2. 契约与回退
38
+
39
+ - `plugins.diag-bridge.contract = auto|v1|legacy`(默认 auto)。
40
+ - auto:**提交前** `GET /api/external/v1/capabilities` 定轨并缓存 5min(base+token 指纹)。
41
+ - 200 且 v1 信封 → v1;
42
+ - 404/不可达/200 非 v1 信封(代理兜底)→ legacy;
43
+ - 401/403/5xx → **不静默回退**,返回可读 token/服务错误(避免掩盖故障)。
44
+ - run 级 `contract + task_id + run_id` 落 kv;提交、轮询、状态、回执、`/report` 全链同契约。
45
+ - 显式 `legacy` 仅作回归保障;新功能(`diag_chat`、`diag_deposit`)要求 v1。
46
+
47
+ ## 3. 生命周期与单飞锁
48
+
49
+ - 终态:`completed` / `failed` / `stopped` / `interrupted` / `expired`。
50
+ - `awaiting_input` **不是**终态:占产线单飞锁、不发终态回执;超过
51
+ `plugins.diag-bridge.awaiting_max_minutes`(默认 30)转 `expired` 并发送提示性回执。
52
+ - v1 `404` 连续 3 轮 → `expired`;legacy 仍收敛 `failed`。
53
+ - 同一产线同时只允许一个未终态 run(`queued/running/awaiting_input` 均占锁)。
54
+
55
+ ## 4. 错误语义(可读优先)
56
+
57
+ - IDD v1 错误码映射:手册 §9 全表(鉴权/意图/引擎/数据路径/意图-引擎不匹配/续聊状态/停止终态)。
58
+ - `diag_run` 提交前 capabilities 软预检:未知意图、引擎无 `runs` 能力、意图不受支持 → 不提交,直接给处方。
59
+ - RAG:401/403(重铸 token 路径)、429(退避 30s 一次后给指引)、404(库/文档名)、5xx/timeout(改 async 或 `kb_doc_search`)。
60
+
61
+ ## 5. 降级
62
+
63
+ - 知识库 Agent 回合不可用(600s 硬顶/502/503)→ `kb_agent` 报错并建议 `kb_doc_search`(两段检索不依赖内部 agent)。
64
+ - 两段检索失败 → `kb_doc_search` 关键词兜底,输出 `mode=keyword-degraded`(仅名称/描述,必须 `kb_doc_read` 核实)。
65
+ - `diag_deposit` 检索自查未命中(索引可见性窗口)→ `search=miss`,文档已落盘,稍后 `kb_doc_search` 复核。
66
+
67
+ ## 6. 可观测
68
+
69
+ - `GET /api/plugins/rag-bridge/health`:双库 id、token verify 三态、`toolCounters`(每工具 ok/err)。
70
+ - `GET /api/plugins/diag-bridge/health`:contract、token 实测、runs byStatus、`toolCounters`。
71
+ - `GET /api/workshop/channels/:id/tool-usage`:Agent 实际调用的工具计数(harness|tool|agent 分账)。
72
+ - 写类审计:`plugin.kb_doc.create`、`diag.report.deposit`、`diag.run.stop` 入平台 ops 面。
73
+
74
+ ## 7. 灰度与关停
75
+
76
+ 1. 批一(读类):`kb_doc_search` / `kb_doc_read` / `kb_catalog` / `diag_chat` 先行。
77
+ 2. 批二(写类):`kb_doc_create` / `diag_deposit` / `diag_stop` 在批一验收通过后启用。
78
+ 3. 一键关停:`plugins.*-bridge.enabled=false`(或插件管理页停用)→ 工具调用返回可读“未注册”,不崩溃。
79
+ 4. 契约开关:`contract=legacy` 可即时回到旧路径(无需重启)。
80
+
81
+ ## 8. 安全边界
82
+
83
+ - 出站地址限 `http(s)://127.0.0.1|localhost`(两插件共用守卫);token 只存系统配置,不入源码。
84
+ - `diag_run`/`diag_chat`/`diag_stop`/`diag_deposit` 均校验产线可读面(fail-closed)。
85
+ - `diag_deposit`/`diag_stop`/`kb_doc_create` 属写族:策略或目录不可读时 fail-closed
86
+ (`isPolicyWriteTool` 联合判定:静态名单 ∪ 插件 `riskClass='write'`)。
87
+ - 结果库默认关闭;`diag_results` 默认仅 lead,worker 需显式开关。
@@ -9,7 +9,7 @@
9
9
  >
10
10
  > Applies to: plugin system v2 has been available since **v0.7.29** (frontend component
11
11
  > injection / plugin settings / plugin i18n / runtime services surface); this document
12
- > describes **v0.11.3**. `ctx.sdkVersion` is currently `0.3.0`.
12
+ > describes **v0.13.0**. `ctx.sdkVersion` is currently `0.3.0`.
13
13
 
14
14
  ## 1. Folder layout & quick start
15
15
 
@@ -486,7 +486,9 @@ ctx.route('POST', '/threshold', (event) => {
486
486
 
487
487
  ## 10. Tools and team switches
488
488
 
489
- Tools registered with `ctx.omp.registerTool(def)` appear on every harness tool surface (omp receives them over RPC `set_host_tools`, other engines through the MCP bridge `tools/list`, pi through a tool file, mock through a direct REST invoke). A registry change is **re-pushed** to running sessions — no restart, no sub-process respawn.
489
+ Tools registered with `ctx.omp.registerTool(def)` are exposed to harnesses subject to role, channel and invocation-path filters. Omp receives definitions over RPC `set_host_tools`; other engines can obtain a list through the agent-token MCP bridge; mock can use an authorized user REST invoke. Registry changes are re-pushed to running sessions.
490
+
491
+ Compatibility boundary (v0.13.0; not a stability guarantee): an agent token identifies the agent, not a trusted turn. The bridge filters and rejects plugin tools unless they explicitly declare `riskClass: 'read'`; omitted, `write` and `admin` classifications are denied. Declare `read` only for genuinely read-only tools, not to bypass the restriction. Role, channel and other governance checks still apply. Native omp calls and user-authenticated REST calls have their own checks and do not necessarily expose the same tool surface as the agent-token bridge.
490
492
 
491
493
  ```js
492
494
  ctx.omp.registerTool({
@@ -519,7 +521,7 @@ Plugin tools no longer live only in a process-local registry: startup, registrat
519
521
  - `mode='all'` (default): every eligible tool is enabled; only unchecked tools are stored (deny-list);
520
522
  - `mode='selected'`: only checked tools are enabled (allow-list); new tools stay disabled until selected;
521
523
  - hard rules (role / channel profile / write guard / plugin master switch) win; a channel cannot open a tool excluded by a hard rule, and explicitly selecting one in `selected` mode returns `409 TOOL_NOT_ELIGIBLE`.
522
- - **Same injection source**: omp `set_host_tools`, pi `AW_PI_TOOLS_FILE` and the MCP `tools/list` used by other harnesses all go through `hostToolsForRole`; the execution layer re-checks in `dispatchHostTool` / `invokeHostTool`, so a disabled tool cannot be called even if an engine cached an old list.
524
+ - **Injection and execution checks**: omp, pi and MCP use the shared tool catalog, but the agent-token MCP list applies additional provenance and risk filters. `dispatchHostTool` / `invokeHostTool` re-check execution, so a cached list cannot bypass a disabled tool or invocation restriction.
523
525
  - **UI**: the Channel settings dialog has a Tools section with search, source/state filters, select all/none/reset, and reason badges for hard-rule blocks.
524
526
 
525
527
  ### Install a local plugin
package/docs/plugins.md CHANGED
@@ -6,7 +6,7 @@
6
6
  > 本文是唯一权威参考;`docs/site/plugins/` 的分页文档与本文同源。
7
7
  >
8
8
  > 适用版本:插件系统 v2 自 **v0.7.29** 起可用(前端组件注入 / 插件设置 / 插件 i18n /
9
- > 运行时服务面);本文档对应当前版本 **v0.11.3**。`ctx.sdkVersion` 当前为 `0.3.0`。
9
+ > 运行时服务面);本文档对应当前版本 **v0.13.0**。`ctx.sdkVersion` 当前为 `0.3.0`。
10
10
 
11
11
  ## 一、目录结构与快速开始
12
12
 
@@ -475,7 +475,9 @@ ctx.route('POST', '/threshold', (event) => {
475
475
 
476
476
  ## 十、工具与团队开关
477
477
 
478
- `ctx.omp.registerTool(def)` 注册的工具出现在全部 harness 的工具面上(omp 经 RPC `set_host_tools` 下发 / 其余引擎经 MCP 桥 `tools/list` / pi 经工具文件 / mock 经 REST invoke 直调),注册表变化会**热重发**给在跑的会话,无需重启或重 spawn 子进程。
478
+ `ctx.omp.registerTool(def)` 注册的工具按角色、频道与调用路径过滤后提供给 harness。omp 经 RPC `set_host_tools` 注入;其他引擎可经 agent-token MCP 桥获取工具列表;mock 可经已授权用户的 REST invoke 调用。注册表变更会向在跑的会话重发工具定义。
479
+
480
+ 兼容性边界(v0.13.0;不属于稳定承诺):agent token 只标识 agent,不能证明可信回合来源;桥接路径只允许显式声明 `riskClass: 'read'` 的插件工具,缺省、`write` 或 `admin` 均被过滤并拒绝调用。仅对真正只读的工具声明 `read`,不要为了绕过限制错误标注;角色、频道和其他治理检查仍然适用。原生 omp 工具调用和用户鉴权 REST 路径有各自的检查,不能假定它们与 agent-token 桥的工具面相同。
479
481
 
480
482
  ```js
481
483
  ctx.omp.registerTool({
@@ -508,7 +510,7 @@ ctx.omp.registerTool({
508
510
  - `mode='all'`(默认):全部合格工具启用,只记录被取消勾选的工具(deny-list);
509
511
  - `mode='selected'`:只启用勾选工具(allow-list),新工具默认不启用;
510
512
  - 硬规则(角色 / Channel profile / 写守卫 / 插件总开关)优先,Channel 开关不能把被硬规则排除的工具打开;`selected` 模式显式启用这类工具返回 `409 TOOL_NOT_ELIGIBLE`。
511
- - **注入面同源**:omp 的 `set_host_tools`、pi 的 `AW_PI_TOOLS_FILE`、其余 harness 的 MCP `tools/list` 全部经 `hostToolsForRole`;执行面在 `dispatchHostTool` / `invokeHostTool` 再复核一次,引擎缓存旧列表也无法直调被停用工具。
513
+ - **注入与执行复核**:omp、pi 与 MCP 使用共享工具目录,但 agent-token MCP 列表另有来源与风险过滤;执行时 `dispatchHostTool` / `invokeHostTool` 仍会复核,缓存旧清单不能绕过停用或调用限制。
512
514
  - **前端**:Channel 设置弹窗的「工具」区可搜索、按来源/状态过滤、全选/全不选/恢复默认;硬规则阻止的工具置灰并显示原因。
513
515
 
514
516
  ### 安装本地插件
package/docs/sdk.en.md CHANGED
@@ -7,7 +7,7 @@
7
7
 
8
8
  **SDK version constants**: server-side `SDK_VERSION = '0.3.0'`, browser-side `CLIENT_SDK_VERSION = '0.3.0'`.
9
9
  These two constants are the **interface version of the SDK itself** and evolve **independently**
10
- from the npm package version (the `version` field in `package.json`, currently 0.11.3) —
10
+ from the npm package version (the `version` field in `package.json`, currently 0.13.0) —
11
11
  them being out of sync is expected. Never use `SDK_VERSION` to infer the package version, or the reverse.
12
12
  **Module format**: ESM only (only `import` / `export`; there is no CJS entry).
13
13
  **Types**: `sdk/index.d.mts` and `sdk/client.d.mts` ship with the package, so TypeScript projects
package/docs/sdk.md CHANGED
@@ -5,7 +5,7 @@
5
5
  > 零第三方运行时依赖,Node ≥ 23.4 与现代浏览器双端可用。
6
6
 
7
7
  **SDK 版本常量**:服务端 `SDK_VERSION = '0.3.0'`,浏览器端 `CLIENT_SDK_VERSION = '0.3.0'`。
8
- 这两个常量是 **SDK 自身接口的版本号**,与 npm 包版本(`package.json` 的 `version`,当前 0.11.3)
8
+ 这两个常量是 **SDK 自身接口的版本号**,与 npm 包版本(`package.json` 的 `version`,当前 0.13.0)
9
9
  **各自独立演进** —— 常数不同步是预期行为,不要拿 `SDK_VERSION` 去推断包版本,反之亦然。
10
10
  **模块形态**:ESM only(只有 `import` / `export`,没有 CJS 入口)。
11
11
  **类型**:`sdk/index.d.mts`、`sdk/client.d.mts` 随包发布,TS 项目零配置获得提示(覆盖范围见 §7)。