agentworkshop 0.7.21 → 0.7.22

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 (82) hide show
  1. package/.output/nitro.json +1 -1
  2. package/.output/public/_nuxt/{BA3XzwiD.js → 0exC4jVL.js} +1 -1
  3. package/.output/public/_nuxt/BAbAEW0D.js +1 -0
  4. package/.output/public/_nuxt/{DBXhDLgl.js → BuiGDfMB.js} +1 -1
  5. package/.output/public/_nuxt/Ci0uX4c4.js +1 -0
  6. package/.output/public/_nuxt/D6B0xnjk.js +1 -0
  7. package/.output/public/_nuxt/{TownView.BHLKAjEu.css → TownView.zu2rU5nS.css} +1 -1
  8. package/.output/public/_nuxt/_id_.C2VHq_vT.css +1 -0
  9. package/.output/public/_nuxt/_id_.Dswy2p0I.css +1 -0
  10. package/.output/public/_nuxt/builds/latest.json +1 -1
  11. package/.output/public/_nuxt/builds/meta/e2341fc0-6f3f-4680-abf8-935a7c9fb912.json +1 -0
  12. package/.output/public/_nuxt/{BOJaHO5V.js → c3mwkHWP.js} +2 -2
  13. package/.output/public/_nuxt/daq.BTdEun-8.css +1 -0
  14. package/.output/public/_nuxt/dbi5bHkY.js +2 -0
  15. package/.output/public/_nuxt/{DsOkkMX3.js → jyQyulh-.js} +1 -1
  16. package/.output/public/_nuxt/{B-E8fXAO.js → n3vMFfrv.js} +1 -1
  17. package/.output/server/chunks/_/nitro.mjs +873 -748
  18. package/.output/server/chunks/_/nitro.mjs.map +1 -1
  19. package/.output/server/chunks/build/{TownView-ql2eHZOg.mjs → TownView-DxeQe1Bl.mjs} +144 -143
  20. package/.output/server/chunks/build/{TownView-ql2eHZOg.mjs.map → TownView-DxeQe1Bl.mjs.map} +1 -1
  21. package/.output/server/chunks/build/{_id_-CwR5oLu9.mjs → _id_-B9RvEQFC.mjs} +33 -35
  22. package/.output/server/chunks/build/_id_-B9RvEQFC.mjs.map +1 -0
  23. package/.output/server/chunks/build/{_id_-Bs-euJPu.mjs → _id_-CqF0R5W5.mjs} +138 -137
  24. package/.output/server/chunks/build/_id_-CqF0R5W5.mjs.map +1 -0
  25. package/.output/server/chunks/build/{_wsId_-B3aB9bIp.mjs → _wsId_-YC2t_fRt.mjs} +3 -3
  26. package/.output/server/chunks/build/{_wsId_-B3aB9bIp.mjs.map → _wsId_-YC2t_fRt.mjs.map} +1 -1
  27. package/.output/server/chunks/build/{daq-epWL_sC7.mjs → daq-Bhwwz9vp.mjs} +146 -118
  28. package/.output/server/chunks/build/daq-Bhwwz9vp.mjs.map +1 -0
  29. package/.output/server/chunks/build/{pages-Dq7_H4FK.mjs → pages-D9tOoJsf.mjs} +2 -2
  30. package/.output/server/chunks/build/{pages-Dq7_H4FK.mjs.map → pages-D9tOoJsf.mjs.map} +1 -1
  31. package/.output/server/chunks/build/{town-CstiKxf_.mjs → town-Dsh0jlwZ.mjs} +3 -3
  32. package/.output/server/chunks/build/{town-CstiKxf_.mjs.map → town-Dsh0jlwZ.mjs.map} +1 -1
  33. package/.output/server/chunks/build/{useDaqStream-BOOZ-p-l.mjs → useDaqStream-DkRL3tEW.mjs} +9 -1
  34. package/.output/server/chunks/build/{useDaqStream-BOOZ-p-l.mjs.map → useDaqStream-DkRL3tEW.mjs.map} +1 -1
  35. package/.output/server/chunks/routes/api/workshop/daq/_id/bind.post.mjs +1 -1
  36. package/.output/server/chunks/routes/api/workshop/daq/_id/bind.post.mjs.map +1 -1
  37. package/.output/server/chunks/routes/api/workshop/daq/_id/bindings.put.mjs +34 -0
  38. package/.output/server/chunks/routes/api/workshop/daq/_id/bindings.put.mjs.map +1 -0
  39. package/.output/server/chunks/routes/api/workshop/dcw/_id/bind.post.mjs +1 -1
  40. package/.output/server/chunks/routes/api/workshop/dcw/_id/bind.post.mjs.map +1 -1
  41. package/.output/server/chunks/routes/api/workshop/dcw/_id/bindings.put.mjs +33 -0
  42. package/.output/server/chunks/routes/api/workshop/dcw/_id/bindings.put.mjs.map +1 -0
  43. package/.output/server/chunks/routes/renderer.mjs +1 -1
  44. package/.output/server/chunks/virtual/entry.mjs +6 -6
  45. package/.output/server/chunks/virtual/precomputed.mjs +1 -1
  46. package/.output/server/package.json +1 -1
  47. package/app/components/workshop/town/TownView.vue +7082 -7076
  48. package/app/composables/workshop/useDaqStream.ts +10 -0
  49. package/app/pages/daq/[id].vue +4 -3
  50. package/app/pages/daq/index.vue +66 -21
  51. package/app/pages/dcw/[id].vue +5 -1
  52. package/package.json +148 -148
  53. package/scripts/_dbg-device-bind-e2e.mjs +129 -0
  54. package/server/api/workshop/daq/[id]/bind.post.ts +5 -2
  55. package/server/api/workshop/daq/[id]/bindings.put.ts +22 -0
  56. package/server/api/workshop/dcw/[id]/bind.post.ts +4 -2
  57. package/server/api/workshop/dcw/[id]/bindings.put.ts +21 -0
  58. package/server/data/daqs.json +408 -103
  59. package/server/data/dcw-lines.json +7 -0
  60. package/server/data/dcw-rollback.json +10 -10
  61. package/server/data/dcw-runs.json +25 -27
  62. package/server/data/dcw-writes.json +12 -0
  63. package/server/data/dcws.json +216 -216
  64. package/server/data/line-runs.json +18 -18
  65. package/server/services/workshop/agents/industrial-context.ts +231 -222
  66. package/server/services/workshop/daq/daq-controller.ts +76 -23
  67. package/server/services/workshop/daq/daq-node.ts +11 -1
  68. package/server/services/workshop/dcw/dcw-controller.ts +50 -2
  69. package/server/services/workshop/dcw/dcw-node.ts +10 -1
  70. package/shared/daq-protocol.ts +2 -0
  71. package/shared/dcw-protocol.ts +2 -0
  72. package/.output/public/_nuxt/B_C3GLsD.js +0 -1
  73. package/.output/public/_nuxt/Ba7YofCb.js +0 -2
  74. package/.output/public/_nuxt/CgT5wMfz.js +0 -1
  75. package/.output/public/_nuxt/D4CLp1hc.js +0 -1
  76. package/.output/public/_nuxt/_id_.DIxEKj88.css +0 -1
  77. package/.output/public/_nuxt/_id_.IbmpkhH4.css +0 -1
  78. package/.output/public/_nuxt/builds/meta/5d344836-03a5-4f47-a0a7-fd30192f5a8f.json +0 -1
  79. package/.output/public/_nuxt/daq.6IrhVVfy.css +0 -1
  80. package/.output/server/chunks/build/_id_-Bs-euJPu.mjs.map +0 -1
  81. package/.output/server/chunks/build/_id_-CwR5oLu9.mjs.map +0 -1
  82. package/.output/server/chunks/build/daq-epWL_sC7.mjs.map +0 -1
@@ -1461,5 +1461,12 @@
1461
1461
  "color": "#b58cff",
1462
1462
  "description": "",
1463
1463
  "createdAt": "2026-09-07T01:17:49.478+08:00"
1464
+ },
1465
+ {
1466
+ "id": "ln-9d2e732c",
1467
+ "name": "可视产线",
1468
+ "color": "#ff8a5c",
1469
+ "description": "",
1470
+ "createdAt": "2026-09-07T10:18:16.098+08:00"
1464
1471
  }
1465
1472
  ]
@@ -5948,7 +5948,7 @@
5948
5948
  "channels": [],
5949
5949
  "degraded": true
5950
5950
  },
5951
- "evaluatedAt": "2026-09-07T02:56:24.257+08:00",
5951
+ "evaluatedAt": "2026-09-07T10:30:13.900+08:00",
5952
5952
  "windowAgg": {
5953
5953
  "at": "2026-08-31T16:25:17.398Z",
5954
5954
  "fromMs": 1788193396897,
@@ -12397,7 +12397,7 @@
12397
12397
  }
12398
12398
  ]
12399
12399
  },
12400
- "evaluatedAt": "2026-09-07T02:56:24.257+08:00",
12400
+ "evaluatedAt": "2026-09-07T10:30:13.900+08:00",
12401
12401
  "windowAgg": {
12402
12402
  "at": "2026-09-05T02:07:03.383Z",
12403
12403
  "fromMs": 1788573903195,
@@ -12458,7 +12458,7 @@
12458
12458
  }
12459
12459
  ]
12460
12460
  },
12461
- "evaluatedAt": "2026-09-07T02:56:24.257+08:00",
12461
+ "evaluatedAt": "2026-09-07T10:30:13.900+08:00",
12462
12462
  "windowAgg": {
12463
12463
  "at": "2026-09-05T02:44:52.815Z",
12464
12464
  "fromMs": 1788576172595,
@@ -12518,7 +12518,7 @@
12518
12518
  }
12519
12519
  ]
12520
12520
  },
12521
- "evaluatedAt": "2026-09-07T02:56:24.257+08:00",
12521
+ "evaluatedAt": "2026-09-07T10:30:13.900+08:00",
12522
12522
  "windowAgg": {
12523
12523
  "at": "2026-09-05T03:09:49.742Z",
12524
12524
  "fromMs": 1788577669697,
@@ -12578,7 +12578,7 @@
12578
12578
  }
12579
12579
  ]
12580
12580
  },
12581
- "evaluatedAt": "2026-09-07T02:56:24.257+08:00",
12581
+ "evaluatedAt": "2026-09-07T10:30:13.900+08:00",
12582
12582
  "windowAgg": {
12583
12583
  "at": "2026-09-05T03:34:32.268Z",
12584
12584
  "fromMs": 1788579151974,
@@ -12627,7 +12627,7 @@
12627
12627
  "channels": [],
12628
12628
  "degraded": true
12629
12629
  },
12630
- "evaluatedAt": "2026-09-07T02:56:24.257+08:00",
12630
+ "evaluatedAt": "2026-09-07T10:30:13.900+08:00",
12631
12631
  "windowAgg": {
12632
12632
  "at": "2026-09-05T09:01:07.414Z",
12633
12633
  "fromMs": 1788598747074,
@@ -12666,7 +12666,7 @@
12666
12666
  "channels": [],
12667
12667
  "degraded": true
12668
12668
  },
12669
- "evaluatedAt": "2026-09-07T02:56:24.257+08:00",
12669
+ "evaluatedAt": "2026-09-07T10:30:13.900+08:00",
12670
12670
  "windowAgg": {
12671
12671
  "at": "2026-09-06T21:04:02.391+08:00",
12672
12672
  "fromMs": 1788699722063,
@@ -12705,7 +12705,7 @@
12705
12705
  "channels": [],
12706
12706
  "degraded": true
12707
12707
  },
12708
- "evaluatedAt": "2026-09-07T02:56:24.257+08:00",
12708
+ "evaluatedAt": "2026-09-07T10:30:13.900+08:00",
12709
12709
  "windowAgg": {
12710
12710
  "at": "2026-09-06T21:18:40.623+08:00",
12711
12711
  "fromMs": 1788700600508,
@@ -12744,7 +12744,7 @@
12744
12744
  "channels": [],
12745
12745
  "degraded": true
12746
12746
  },
12747
- "evaluatedAt": "2026-09-07T02:56:24.257+08:00",
12747
+ "evaluatedAt": "2026-09-07T10:30:13.900+08:00",
12748
12748
  "windowAgg": {
12749
12749
  "at": "2026-09-06T21:27:40.730+08:00",
12750
12750
  "fromMs": 1788701140666,
@@ -13793,7 +13793,7 @@
13793
13793
  }
13794
13794
  ]
13795
13795
  },
13796
- "evaluatedAt": "2026-09-07T02:56:24.257+08:00",
13796
+ "evaluatedAt": "2026-09-07T10:30:13.900+08:00",
13797
13797
  "windowAgg": {
13798
13798
  "at": "2026-09-07T01:35:04.592+08:00",
13799
13799
  "fromMs": 1788715984468,
@@ -1,31 +1,4 @@
1
1
  [
2
- {
3
- "id": "rr-63a9d6d6",
4
- "recipeId": "rc-8a659d97",
5
- "recipeName": "RB审计配方-33hss",
6
- "productId": "pd-fe39aac8",
7
- "lineId": "ln-f178ca43",
8
- "startedAt": "2026-08-31T16:30:40.424Z",
9
- "endedAt": null,
10
- "results": [
11
- {
12
- "templateRef": "dcw-temp-sp",
13
- "nodeId": "dw-88c0516b",
14
- "ok": true,
15
- "message": "Mock PLC 写入成功:175 → raw 175,回读一致(标定后物理值 175)",
16
- "value": 175
17
- }
18
- ],
19
- "paramsSnapshot": [
20
- {
21
- "nodeId": "dw-88c0516b",
22
- "templateRef": "dcw-temp-sp",
23
- "value": 175,
24
- "min": 160,
25
- "max": 180
26
- }
27
- ]
28
- },
29
2
  {
30
3
  "id": "rr-76ef5c67",
31
4
  "recipeId": "rc-8a659d97",
@@ -6168,5 +6141,30 @@
6168
6141
  "value": 500
6169
6142
  }
6170
6143
  ]
6144
+ },
6145
+ {
6146
+ "id": "rr-20c111fd",
6147
+ "recipeId": "rc-2f707a19",
6148
+ "recipeName": "bindrec-dbznl2",
6149
+ "productId": "pd-943ef677",
6150
+ "lineId": "ln-68dcde46",
6151
+ "startedAt": "2026-09-07T10:16:33.503+08:00",
6152
+ "endedAt": "2026-09-07T10:16:51.687+08:00",
6153
+ "results": [
6154
+ {
6155
+ "templateRef": "temp-sp",
6156
+ "nodeId": "dw-59454017",
6157
+ "ok": true,
6158
+ "message": "Mock PLC 写入成功:50 → raw 50,回读一致(标定后物理值 50)",
6159
+ "value": 50
6160
+ }
6161
+ ],
6162
+ "paramsSnapshot": [
6163
+ {
6164
+ "nodeId": "dw-59454017",
6165
+ "templateRef": "temp-sp",
6166
+ "value": 50
6167
+ }
6168
+ ]
6171
6169
  }
6172
6170
  ]
@@ -13726,5 +13726,17 @@
13726
13726
  "message": "写入并回读一致:0.9 → raw 0.9,回读 0.9(标定后物理值 0.9)",
13727
13727
  "recipeRunId": null,
13728
13728
  "at": "2026-09-07T02:15:42.793+08:00"
13729
+ },
13730
+ {
13731
+ "id": "wh-419d33a0",
13732
+ "nodeId": "dw-59454017",
13733
+ "nodeName": "dcw-dbznl2",
13734
+ "param": "烘箱温度设定",
13735
+ "eng": 50,
13736
+ "raw": 50,
13737
+ "ok": true,
13738
+ "message": "Mock PLC 写入成功:50 → raw 50,回读一致(标定后物理值 50)",
13739
+ "recipeRunId": "rr-20c111fd",
13740
+ "at": "2026-09-07T10:16:33.507+08:00"
13729
13741
  }
13730
13742
  ]