dsh-computer-use-ljl454 1.50.1 → 3.1.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 (387) hide show
  1. package/INSTALL.md +2 -2
  2. package/README.md +3 -3
  3. package/VERIFICATION.md +87 -0
  4. package/assets/blessings/lunar-eve-dumpling.jpg +0 -0
  5. package/assets/blessings/lunar-eve-paper.jpg +0 -0
  6. package/assets/blessings/lunar-eve-vigil.jpg +0 -0
  7. package/assets/blessings/manifest.json +87 -0
  8. package/assets/blessings/new-year-day.jpg +0 -0
  9. package/assets/blessings/new-year-eve.jpg +0 -0
  10. package/assets/blessings/spring-day1-lion.jpg +0 -0
  11. package/assets/blessings/spring-day1-visit.jpg +0 -0
  12. package/assets/blessings/spring-day2-fair.jpg +0 -0
  13. package/assets/blessings/spring-day5-wealth.jpg +0 -0
  14. package/assets/pet/pack.json +324 -0
  15. package/assets/pet/pet_carry.png +0 -0
  16. package/assets/pet/pet_happy.png +0 -0
  17. package/assets/pet/pet_idle_eat.png +0 -0
  18. package/assets/pet/pet_idle_grass.png +0 -0
  19. package/assets/pet/pet_idle_tiptoe.png +0 -0
  20. package/assets/pet/pet_nap.png +0 -0
  21. package/assets/pet/pet_stand.png +0 -0
  22. package/assets/pet/pet_talk_wave.png +0 -0
  23. package/backend/bridge.js +1044 -141
  24. package/backend/dsh-worker.exe +0 -0
  25. package/backend/dsh-worker.exe.config +1 -0
  26. package/backend/worker.ps1 +343 -72
  27. package/browser/actions.mjs +1140 -67
  28. package/browser/connection.mjs +39 -1
  29. package/browser/contracts.mjs +18 -1
  30. package/browser/state.mjs +776 -17
  31. package/client.animation-settings.js +235 -0
  32. package/client.blessing-card.js +1248 -0
  33. package/client.js +4704 -981
  34. package/client.pet-settings.js +579 -0
  35. package/cordis.patch.yml +7 -21
  36. package/docs/application-policy.md +84 -0
  37. package/docs/compatibility.generated.md +19 -0
  38. package/docs/diagnostics-and-evidence.md +175 -0
  39. package/docs/errors.generated.md +133 -0
  40. package/icon.svg +25 -0
  41. package/index.js +6205 -3719
  42. package/interaction/indicator-supervisor.mjs +64 -8
  43. package/internal/acceptance.mjs +161 -0
  44. package/internal/action-decision.mjs +231 -0
  45. package/internal/actions/catalog.mjs +59 -3
  46. package/internal/actions/schemas.mjs +3 -0
  47. package/internal/advertise.mjs +81 -0
  48. package/internal/app-identity.mjs +193 -0
  49. package/internal/app-launch.mjs +477 -18
  50. package/internal/app-resolver.mjs +174 -0
  51. package/internal/app-session-tool.mjs +387 -0
  52. package/internal/app-session.mjs +535 -0
  53. package/internal/app-stream.mjs +592 -0
  54. package/internal/app-streamer.mjs +176 -0
  55. package/internal/app-view.mjs +199 -0
  56. package/internal/approval-store.mjs +342 -0
  57. package/internal/artifact-store.mjs +311 -0
  58. package/internal/background-apps.mjs +141 -0
  59. package/internal/background-gate.mjs +398 -0
  60. package/internal/background-shell-guard.mjs +22 -0
  61. package/internal/background-view.mjs +650 -0
  62. package/internal/blessing-calendar.mjs +460 -0
  63. package/internal/blessing-catalog.mjs +292 -0
  64. package/internal/blessing-service.mjs +293 -0
  65. package/internal/blessing-store.mjs +93 -0
  66. package/internal/bounded-stage.mjs +53 -0
  67. package/internal/browser-diff-options.mjs +43 -0
  68. package/internal/browser-endpoint.mjs +99 -0
  69. package/internal/browser-events.mjs +250 -0
  70. package/internal/browser-instance.mjs +535 -0
  71. package/internal/browser-stream.mjs +1024 -0
  72. package/internal/browser-tools.mjs +1505 -0
  73. package/internal/browser-window-store.mjs +119 -0
  74. package/internal/browser-window.mjs +271 -0
  75. package/internal/build-check.mjs +15 -37
  76. package/internal/call-context.mjs +286 -0
  77. package/internal/capture-backend.mjs +94 -0
  78. package/internal/capture-cache.mjs +113 -0
  79. package/internal/capture-exclusion.mjs +14 -9
  80. package/internal/capture-provider.mjs +196 -0
  81. package/internal/capture-session-pool.mjs +171 -0
  82. package/internal/capture.mjs +493 -431
  83. package/internal/cdp-identity.exe +0 -0
  84. package/internal/cdp-identity.mjs +42 -0
  85. package/internal/cdp-probe.mjs +139 -0
  86. package/internal/child-session-probe.mjs +406 -0
  87. package/internal/child-session-provisioner.mjs +238 -0
  88. package/internal/child-session-readiness.mjs +88 -0
  89. package/internal/confirm-levels.mjs +105 -0
  90. package/internal/confirm-panel.mjs +180 -0
  91. package/internal/confirm-policy.mjs +162 -0
  92. package/internal/confirm-ui-contract.mjs +128 -0
  93. package/internal/deliverables.mjs +557 -0
  94. package/internal/delivery-list.mjs +195 -0
  95. package/internal/description-copy.mjs +673 -0
  96. package/internal/doctor.mjs +43 -18
  97. package/internal/documentation.mjs +414 -0
  98. package/internal/element-authority.mjs +602 -0
  99. package/internal/environment-binding.mjs +788 -0
  100. package/internal/environment-ops.mjs +392 -0
  101. package/internal/environment-policy.mjs +293 -0
  102. package/internal/execution-mode.mjs +541 -0
  103. package/internal/execution.mjs +2 -2
  104. package/internal/failures.mjs +8 -3
  105. package/internal/field-summary.mjs +46 -0
  106. package/internal/foreground-approval.mjs +827 -0
  107. package/internal/foreground-dialog.mjs +29 -0
  108. package/internal/frame-authority.mjs +392 -0
  109. package/internal/generation.mjs +2 -1
  110. package/internal/guest-bridge.mjs +1157 -0
  111. package/internal/guest-delivery.mjs +823 -0
  112. package/internal/guest-protocol.mjs +398 -0
  113. package/internal/guest-step-dispatch.mjs +436 -0
  114. package/internal/head-tail.mjs +319 -0
  115. package/internal/headless-close.mjs +85 -0
  116. package/internal/headless-instance.mjs +1270 -0
  117. package/internal/host-authority-registry.mjs +527 -0
  118. package/internal/host-authority.mjs +70 -0
  119. package/internal/idle-session.mjs +966 -0
  120. package/internal/image-budget.mjs +194 -0
  121. package/internal/interaction-preset.mjs +76 -0
  122. package/internal/late-replies.mjs +67 -0
  123. package/internal/lifecycle.mjs +268 -0
  124. package/internal/loaded-identity.mjs +248 -0
  125. package/internal/modules/blessings-module.mjs +118 -0
  126. package/internal/modules/pet-module.mjs +275 -0
  127. package/internal/mouse-trajectory.mjs +98 -0
  128. package/internal/native-runtime.mjs +62 -0
  129. package/internal/observation-lanes.mjs +124 -0
  130. package/internal/observation-merge.mjs +83 -0
  131. package/internal/observer-instance.mjs +177 -0
  132. package/internal/parallel-observation.mjs +107 -0
  133. package/internal/parallel-reads.mjs +134 -0
  134. package/internal/parent-state.mjs +523 -0
  135. package/internal/pet-brain.mjs +282 -0
  136. package/internal/pet-phrases.mjs +457 -0
  137. package/internal/pet-store.mjs +103 -0
  138. package/internal/policy.mjs +345 -0
  139. package/internal/private-desktop.mjs +229 -0
  140. package/internal/process-identity.mjs +147 -0
  141. package/internal/progress-ledger.mjs +227 -0
  142. package/internal/progress-view.mjs +86 -0
  143. package/internal/protocol-mux.mjs +475 -0
  144. package/internal/query-tickets.mjs +242 -0
  145. package/internal/receipt-budget.mjs +124 -0
  146. package/internal/recovery-stack.mjs +99 -0
  147. package/internal/ref-registry.mjs +147 -0
  148. package/internal/refs.mjs +191 -5
  149. package/internal/registry-dtos.mjs +594 -0
  150. package/internal/release-manifest.mjs +106 -3
  151. package/internal/retry.mjs +201 -0
  152. package/internal/return-budget.mjs +377 -0
  153. package/internal/role-policy.mjs +70 -0
  154. package/internal/routes/web-routes.mjs +1614 -0
  155. package/internal/schema-visibility.mjs +74 -22
  156. package/internal/sessions.mjs +72 -4
  157. package/internal/startup-work.mjs +32 -11
  158. package/internal/stream-input.mjs +33 -0
  159. package/internal/stream-ws.mjs +337 -0
  160. package/internal/strict-dispatch.mjs +180 -0
  161. package/internal/subagent-policy.mjs +49 -0
  162. package/internal/submit-guard.mjs +656 -0
  163. package/internal/tab-collection.mjs +39 -0
  164. package/internal/taskbar-view.mjs +255 -0
  165. package/internal/text-summary.mjs +295 -0
  166. package/internal/text-targeted.mjs +37 -0
  167. package/internal/tool-contracts.mjs +1869 -1266
  168. package/internal/tools/desktop-tools.mjs +4841 -0
  169. package/internal/ui-text-summary.mjs +247 -0
  170. package/internal/update-checker.mjs +226 -0
  171. package/internal/visual-effects-config.mjs +19 -2
  172. package/internal/visual-preferences.mjs +22 -2
  173. package/internal/web-policy.mjs +364 -0
  174. package/internal/wgc-error-map.mjs +113 -0
  175. package/internal/windows-desktop.mjs +113 -0
  176. package/internal/worker-control-writer.mjs +78 -0
  177. package/internal/write-lease.mjs +145 -0
  178. package/internal/write-log.mjs +86 -0
  179. package/native/app-streamer/ChildWindowGuard.cs +261 -0
  180. package/native/app-streamer/DirectInput.cs +417 -0
  181. package/native/app-streamer/H264Encoder.cs +968 -0
  182. package/native/app-streamer/Program.cs +1343 -0
  183. package/native/app-streamer/build/app-streamer.exe +0 -0
  184. package/native/app-streamer/build.mjs +20 -0
  185. package/native/app-viewer/build/app-viewer.exe +0 -0
  186. package/native/child-session-connector/build/ChildSessionSignIn.exe +0 -0
  187. package/native/child-session-connector/build/MSTSCLib.dll +0 -0
  188. package/native/child-session-connector/build/child-session-connector.exe +0 -0
  189. package/native/child-session-setup/ChildSessionSetup.cs +183 -0
  190. package/native/child-session-setup/build/child-session-setup.exe +0 -0
  191. package/native/child-session-setup/build.mjs +13 -0
  192. package/native/guest-agent/build/guest-agent.exe +0 -0
  193. package/native/guest-agent/idle_editor.py +349 -0
  194. package/native/indicator-helper/build/dsh-interaction-indicator.exe +0 -0
  195. package/native/parent-state/build/parent-state.exe +0 -0
  196. package/native/private-desktop/PrivateApp.cs +246 -0
  197. package/native/private-desktop/SidebarWindow.cs +123 -0
  198. package/native/private-desktop/build/private-app.exe +0 -0
  199. package/native/private-desktop/build.ps1 +6 -0
  200. package/native/runex-helper/build/runex-helper.exe +0 -0
  201. package/native/session-probe/build/session-probe.exe +0 -0
  202. package/package.json +63 -57
  203. package/release-manifest.json +1006 -186
  204. package/CHANGELOG.md +0 -1975
  205. package/app-candidates-test.mjs +0 -196
  206. package/attachment-state-test.mjs +0 -86
  207. package/backend/parts/00-preamble.ps1 +0 -30
  208. package/backend/parts/01-cancellation.ps1 +0 -137
  209. package/backend/parts/02-native-code.ps1 +0 -502
  210. package/backend/parts/03-com-uia-engine.ps1 +0 -1907
  211. package/backend/parts/04-utilities.ps1 +0 -25
  212. package/backend/parts/05-input-state.ps1 +0 -925
  213. package/backend/parts/06-related-capture.ps1 +0 -826
  214. package/backend/parts/07-frames.ps1 +0 -2283
  215. package/backend/parts/08-element-refs.ps1 +0 -122
  216. package/backend/parts/09-what-the-model-reads.ps1 +0 -447
  217. package/backend/parts/10-text-observation.ps1 +0 -1982
  218. package/backend/parts/11-waiting.ps1 +0 -799
  219. package/backend/parts/12-batching.ps1 +0 -1130
  220. package/backend/parts/13-main-loop.ps1 +0 -596
  221. package/batch-progress-test.mjs +0 -123
  222. package/bench.mjs +0 -142
  223. package/browser-connection-test.mjs +0 -547
  224. package/build-cache-test.mjs +0 -176
  225. package/call-cadence-test.mjs +0 -48
  226. package/capture-format-probe.ps1 +0 -77
  227. package/cleanup-test-windows.mjs +0 -48
  228. package/client-smoke.mjs +0 -566
  229. package/com-scope-test.mjs +0 -124
  230. package/compile-check.ps1 +0 -62
  231. package/coordinate-contract-test.mjs +0 -1177
  232. package/deadline-test.mjs +0 -131
  233. package/degraded-bootstrap-test.mjs +0 -90
  234. package/diag-browser-ab.mjs +0 -37
  235. package/diag-capture-paths.mjs +0 -81
  236. package/diag-codes.mjs +0 -51
  237. package/diag-delta.mjs +0 -41
  238. package/diag-delta2.mjs +0 -38
  239. package/diag-delta3.mjs +0 -26
  240. package/diag-depth.mjs +0 -48
  241. package/diag-detach.mjs +0 -38
  242. package/diag-engine-correct.mjs +0 -67
  243. package/diag-engine-explorer.mjs +0 -76
  244. package/diag-find-diff.mjs +0 -36
  245. package/diag-frame2.mjs +0 -59
  246. package/diag-input-state.mjs +0 -17
  247. package/diag-matrix.mjs +0 -51
  248. package/diag-notepad.mjs +0 -44
  249. package/diag-partial.mjs +0 -48
  250. package/diag-patterns.mjs +0 -77
  251. package/diag-prune.mjs +0 -49
  252. package/diag-prune2.mjs +0 -36
  253. package/diag-ref.mjs +0 -49
  254. package/diag-refusal.mjs +0 -40
  255. package/diag-shaping-real.mjs +0 -32
  256. package/diag-shaping.mjs +0 -91
  257. package/diag-surface.mjs +0 -50
  258. package/diag-tool-vs-bridge.mjs +0 -74
  259. package/diag-tree-diff.mjs +0 -45
  260. package/diag-uia.mjs +0 -170
  261. package/diag-window-capture.mjs +0 -71
  262. package/engine-ab.mjs +0 -253
  263. package/harness-test.mjs +0 -560
  264. package/host-contract-test.mjs +0 -181
  265. package/host-runtime-test.mjs +0 -243
  266. package/internal/app-launch.js +0 -406
  267. package/internal/call-cadence.mjs +0 -48
  268. package/internal/module-host.mjs +0 -338
  269. package/internal/summarize.js +0 -352
  270. package/internal/token-guard.mjs +0 -324
  271. package/lease-test.mjs +0 -111
  272. package/lifecycle-test.mjs +0 -988
  273. package/live-tool-test.mjs +0 -1565
  274. package/managed-find-test.mjs +0 -149
  275. package/merge-mount-test.mjs +0 -97
  276. package/migration-drill-test.mjs +0 -132
  277. package/pacing-test.mjs +0 -494
  278. package/probe-launch.mjs +0 -36
  279. package/probe-text.mjs +0 -54
  280. package/probe-uia.mjs +0 -100
  281. package/probe.mjs +0 -89
  282. package/real-tools-probe.mjs +0 -214
  283. package/schema-test.mjs +0 -856
  284. package/security-block-test.mjs +0 -142
  285. package/stability-probe.mjs +0 -221
  286. package/startup-performance-test.mjs +0 -44
  287. package/stop-report-test.mjs +0 -105
  288. package/survey-uia.mjs +0 -72
  289. package/task-eval.mjs +0 -1317
  290. package/test-schema-visibility.mjs +0 -469
  291. package/tests/app-launch/fixtures/env-report.mjs +0 -13
  292. package/tests/app-launch/plugin-test.mjs +0 -211
  293. package/tests/bridge/fixtures/late-worker.ps1 +0 -25
  294. package/tests/bridge/fixtures/slow-worker.ps1 +0 -10
  295. package/tests/bridge/fixtures/stub-worker.ps1 +0 -34
  296. package/tests/bridge/plugin-test.mjs +0 -216
  297. package/tests/fake-indicator.mjs +0 -114
  298. package/tests/fixtures/layered-pack/body.png +0 -0
  299. package/tests/fixtures/layered-pack/pack.json +0 -72
  300. package/tests/fixtures/layered-pack/tail.png +0 -0
  301. package/tests/hardening-test.mjs +0 -344
  302. package/tests/host-app.mjs +0 -51
  303. package/tests/preset-config-test.mjs +0 -246
  304. package/tests/token-guard/eval-real-results.mjs +0 -99
  305. package/tests/token-guard/fixtures/pwsh-1-13-4906B.txt +0 -92
  306. package/tests/token-guard/fixtures/pwsh-1-22-3615B.txt +0 -68
  307. package/tests/token-guard/fixtures/pwsh-1-23-5451B.txt +0 -103
  308. package/tests/token-guard/fixtures/pwsh-2-11-7097B.txt +0 -173
  309. package/tests/token-guard/fixtures/pwsh-2-5-6193B.txt +0 -181
  310. package/tests/token-guard/fixtures/pwsh-5-4-34429B.txt +0 -537
  311. package/tests/token-guard/fixtures/pwsh-7-11-18617B.txt +0 -229
  312. package/tests/token-guard/fixtures/pwsh-7-15-5761B.txt +0 -108
  313. package/tests/token-guard/fixtures/pwsh-7-3-5962B.txt +0 -279
  314. package/tests/token-guard/fixtures/pwsh-9-3-6237B.txt +0 -80
  315. package/tests/token-guard/plugin-test.mjs +0 -170
  316. package/tests/token-guard/summarize-test.mjs +0 -170
  317. package/tests/workspace-dependencies-live.py +0 -92
  318. package/tests/workspace-dependencies-test.mjs +0 -149
  319. package/token-guard-test.mjs +0 -183
  320. package/tools/amsi-check.ps1 +0 -238
  321. package/tools/baseline-snapshot.mjs +0 -168
  322. package/tools/browser-action-doc.mjs +0 -76
  323. package/tools/build-worker.mjs +0 -66
  324. package/tools/capture-spec-test.ps1 +0 -94
  325. package/tools/character-pack.py +0 -415
  326. package/tools/character-transitions.py +0 -217
  327. package/tools/check-string-literals.mjs +0 -53
  328. package/tools/compare-declarations.mjs +0 -36
  329. package/tools/compare-functions.mjs +0 -71
  330. package/tools/compare-soak.mjs +0 -68
  331. package/tools/deadline-guard-test.ps1 +0 -88
  332. package/tools/deploy-helper.ps1 +0 -111
  333. package/tools/desktop-probe.ps1 +0 -120
  334. package/tools/fix-contracts-exports.mjs +0 -44
  335. package/tools/hook-aba.mjs +0 -341
  336. package/tools/input-delivery-test.ps1 +0 -86
  337. package/tools/install-candidate.mjs +0 -147
  338. package/tools/interface-inventory.mjs +0 -127
  339. package/tools/lint-undefined.mjs +0 -260
  340. package/tools/measure-baseline.mjs +0 -115
  341. package/tools/measure-first-click.mjs +0 -160
  342. package/tools/measure-helper-cost.mjs +0 -518
  343. package/tools/measure-worker-start.mjs +0 -107
  344. package/tools/move-capture-module.mjs +0 -227
  345. package/tools/move-contracts-module.mjs +0 -199
  346. package/tools/move-execution-module.mjs +0 -156
  347. package/tools/move-failures-module.mjs +0 -115
  348. package/tools/move-refs-module.mjs +0 -96
  349. package/tools/overlay-probe.mjs +0 -180
  350. package/tools/pack-candidate.mjs +0 -269
  351. package/tools/parse-check.ps1 +0 -64
  352. package/tools/physical-input-acceptance.mjs +0 -141
  353. package/tools/prepare-npm.mjs +0 -82
  354. package/tools/probe-drag-continue.mjs +0 -58
  355. package/tools/probe-engine-lookup.mjs +0 -105
  356. package/tools/probe-overlay-windows.ps1 +0 -44
  357. package/tools/probe-pointer-click.mjs +0 -201
  358. package/tools/probe-window-tree.mjs +0 -106
  359. package/tools/publish-npm.mjs +0 -2
  360. package/tools/pushdown-test.ps1 +0 -72
  361. package/tools/regen-token-guard-fixtures.mjs +0 -82
  362. package/tools/release-acceptance.mjs +0 -196
  363. package/tools/release-input-test.ps1 +0 -110
  364. package/tools/release-report.mjs +0 -177
  365. package/tools/release-verify.mjs +0 -183
  366. package/tools/restore-inflight-block.mjs +0 -67
  367. package/tools/run-all-tests.mjs +0 -128
  368. package/tools/schema-aggregate.mjs +0 -46
  369. package/tools/schema-budget.mjs +0 -89
  370. package/tools/schema-fields.mjs +0 -50
  371. package/tools/sign-release.mjs +0 -177
  372. package/tools/smoke-routes.mjs +0 -129
  373. package/tools/smoke-tools.mjs +0 -197
  374. package/tools/soak-30min.mjs +0 -201
  375. package/tools/soak-overlay.mjs +0 -152
  376. package/tools/split-worker.mjs +0 -99
  377. package/tools/stress-soak.mjs +0 -337
  378. package/tools/task-eval.mjs +0 -156
  379. package/tools/uia-cache-test.ps1 +0 -72
  380. package/tools/uitree-spec-test.ps1 +0 -85
  381. package/tools/verify-installed.mjs +0 -93
  382. package/tools/verify-live-host.mjs +0 -136
  383. package/tools/visit-budget-test.ps1 +0 -53
  384. package/tools/walk-ledger-test.ps1 +0 -79
  385. package/traversal-budget-test.mjs +0 -127
  386. package/uia-diag.mjs +0 -33
  387. package/wait-and-capture-test.mjs +0 -346
package/INSTALL.md CHANGED
@@ -3,7 +3,7 @@
3
3
  在 Harness 的插件安装框输入 `dsh-computer-use-ljl454`,或在可使用 dsh 命令的终端执行:
4
4
 
5
5
  ```powershell
6
- dsh plugin --profile desktop add dsh-computer-use-ljl454@1.50.1
6
+ dsh plugin --profile desktop add dsh-computer-use-ljl454@3.1.1
7
7
  ```
8
8
 
9
9
  安装后完整退出并重新打开 Harness,在需要控制电脑的会话开启「电脑操作」。
@@ -13,7 +13,7 @@ dsh plugin --profile desktop add dsh-computer-use-ljl454@1.50.1
13
13
  ## 普通 npm 下载
14
14
 
15
15
  ```powershell
16
- npm install dsh-computer-use-ljl454@1.50.1
16
+ npm install dsh-computer-use-ljl454@3.1.1
17
17
  ```
18
18
 
19
19
  普通 npm install 只把文件放进当前项目,不会自动登记 Harness profile。要在 Harness 使用,请用上面的 dsh plugin add 或插件安装框。
package/README.md CHANGED
@@ -1,13 +1,13 @@
1
1
  # dsh-computer-use-ljl454
2
2
 
3
- DeepSeek Harness 的 Windows 电脑操作插件,版本 1.50.1。
3
+ DeepSeek Harness 的 Windows 电脑操作插件,版本 3.1.1。
4
4
 
5
5
  ## 安装到 Harness
6
6
 
7
7
  在 Harness 的插件安装框输入 `dsh-computer-use-ljl454`,或在可使用 dsh 命令的终端执行:
8
8
 
9
9
  ```powershell
10
- dsh plugin --profile desktop add dsh-computer-use-ljl454@1.50.1
10
+ dsh plugin --profile desktop add dsh-computer-use-ljl454@3.1.1
11
11
  ```
12
12
 
13
13
  安装后完整退出并重新打开 Harness,在需要控制电脑的会话开启「电脑操作」。
@@ -17,7 +17,7 @@ dsh plugin --profile desktop add dsh-computer-use-ljl454@1.50.1
17
17
  ## 普通 npm 下载
18
18
 
19
19
  ```powershell
20
- npm install dsh-computer-use-ljl454@1.50.1
20
+ npm install dsh-computer-use-ljl454@3.1.1
21
21
  ```
22
22
 
23
23
  普通 npm install 只把文件放进当前项目,不会自动登记 Harness profile。要在 Harness 使用,请用上面的 dsh plugin add 或插件安装框。
package/VERIFICATION.md CHANGED
@@ -1,3 +1,90 @@
1
+ # 2.92.0 后台执行模式与通用文件交付验收(2026-11-20)
2
+
3
+ 本轮交付的是**模块与文档**:`internal/deliverables.mjs` 的通用文件交付,以及后台执行模式的契约与接线
4
+ (模式/代次、前台许可、停止的三个事实、严格后台只走绑定目标)。界面控件与真机链路没有跑,本节把判据
5
+ 写死,执行时照判据填结果;**未执行的一律标 NOT VERIFIED,不计入 PASS**(沿用本文件的结论口径)。
6
+
7
+ ## 本轮实际跑过的(模块级)
8
+
9
+ | # | 项 | 命令 | 结果 |
10
+ |---|---|---|---|
11
+ | M1 | 通用文件交付:类型白名单、额度、部分传输、摘要不符、跨会话读取、重传幂等、重启恢复、半份字节不发布 | `node deliverable-file-test.mjs` | **72 passed, 0 failed** |
12
+ | M2 | 既有图片交付路径(含 `apply()` 与 `/computer-use/deliverable` 路由,stub 后端) | `node deliverable-test.mjs` | **26 passed, 0 failed** |
13
+ | M3 | 配额与过期(条数/字节上限、TTL、健康账) | `node deliverable-quota-test.mjs` | **17 passed, 0 failed** |
14
+ | M4 | 重启恢复、磁盘配额、锁、元数据路径逃逸、旧图片占额 | `node deliverable-persistence-test.mjs` | **7 passed, 0 failed** |
15
+
16
+ 四条都是纯模块/路由级断言:没有真机桌面、没有真实浏览器、没有真实应用保存,也没有界面往返。
17
+ "模块级 PASS" 不等于后台模式验收通过。
18
+
19
+ ## 待执行:后台模式验收(NOT VERIFIED)
20
+
21
+ 执行时按方案的记录要求登记系统/应用版本、捕获方式与业务后置状态("看到了"不算,要有可重跑的判据)。
22
+
23
+ | # | 场景 | 通过判据 | 状态 |
24
+ |---|---|---|---|
25
+ | B1 | **边看边运行**(网页后台) | 侧栏展开时在同一页上看到多步写入持续更新;同时在另一窗口连续打字,活动窗口与文本正确 | NOT VERIFIED |
26
+ | B2 | **收起后继续** | 收起侧栏或切到编辑器期间页面继续变化(有业务后置状态可查),执行不因收起而暂停 | NOT VERIFIED |
27
+ | B3 | **再展开取回同一回执** | 再展开看到**同一任务**与**唯一**提交回执;不是第二次提交,也没有重复回执 | NOT VERIFIED |
28
+ | B4 | **前台许可:单次** | 一条流程含两次必需前台动作、中间有后台步骤 → 选择「批准此动作一次」应问**两次**,中间后台步骤不打扰用户输入与焦点 | NOT VERIFIED |
29
+ | B5 | **前台许可:一直批准** | 同一条流程选择「一直批准(仅本任务,可随时撤回)」→ 只问**一次**,后续前台步骤不再询问,后台步骤照旧后台执行 | NOT VERIFIED |
30
+ | B6 | **拒绝** | 选择「拒绝」后当前步骤及依赖它的后续步骤保持暂停;提示出现在对话里时聊天窗口没有抢焦点;未答与过期同样保持暂停 | NOT VERIFIED |
31
+ | B7 | **撤回** | 说「撤回一直批准」后立即停止新的前台派发、取消在途动作并释放输入;下一次前台动作**重新询问**,同一对话发起新任务也重新询问 | NOT VERIFIED |
32
+ | B8 | **停止隔离** | B 持有来宾输入时关闭空闲的 A:**A 的停止不释放 B 或主桌面的输入**;B 在本来宾释放;无法确认时如实显示「待确认」;恢复时不沿用旧引用、不重复提交 | NOT VERIFIED |
33
+ | B9 | **文件交付取回重开** | 应用内「另存为」得到的真实文件能在宿主重开且内容可核对;只有已完整校验的产物可由所属会话取回,失败不冒充交付成功;部分传输、摘要不符、跨会话读取、配额不足各自给出明确状态 | NOT VERIFIED(交付语义已有 M1 覆盖,真机取回与重开未做) |
34
+ | B10 | 严格后台边界 | 锁定 / 注销 / 来宾断连时暂停视觉写入并按判据报告;目标丢失不静默换目标;`app-background` 在后端未验证时明确不支持而不是回退主桌面 | NOT VERIFIED |
35
+
36
+ 未列出的组合不要按"应该可以"宣传:方案 §"发布门槛"写着"只有运行环境本身能限制动作范围、且通过目标机
37
+ 验证的路径,才能标为严格后台"。B1–B10 全部通过之前,`web-background`/`app-background` 不得对外声称已验证。
38
+
39
+ ## 可执行的验收(2.97.0)
40
+
41
+ 上面那张 B1–B10 表以前只能读,现在**能跑**:`node acceptance-run.mjs`(或 `GET /computer-use/acceptance`)
42
+ 逐条执行方案第 111–120 行的十条用例,并按 `PASS / FAIL / NOT RUN` 给结论。退出码:`0` 全 PASS、
43
+ `1` 有 FAIL、`2` 有 NOT RUN(含"跑了一半")。
44
+
45
+ 关键在**诚实**:脚本自己不锁屏、不注销、不断网、不卸载;需要这些前提的用例一律 `NOT RUN` 并写清"人工造什么"。
46
+ 本机(2026-11-20)的真实结果是:
47
+
48
+ ```
49
+ PASS 0 / FAIL 0 / NOT RUN 10 —— 退出码 2
50
+ ```
51
+
52
+ 理由(逐条可从 `acceptance-run.mjs` 复现):
53
+
54
+ | 阻断 | 用例 | 具体缺失 |
55
+ |---|---|---|
56
+ | 子会话不可用 | A1 持续观看 / A2 最小化观看 / A3 独立计时 / A4 停止隔离 / B1 断线 / B2 锁屏 / B3 注销 / C1 两个真实应用 | `WTSIsChildSessionsEnabled` 返回 TRUE 但 `enabled=0`;`WTSGetChildSessionId` 返回 FALSE(`Win32Error=1168`);来宾执行器与代理握手本阶段不存在 |
57
+ | 没有交付账 | B4 卸载与配额 / C2 保存后取回重开 | 需要注入 `delivery`(`internal/guest-delivery.mjs`);CLI 默认不给 |
58
+ | 需要人工条件 | B1 / B2 / B3 | 脚本不拔网线、不按 Win+L、不注销;接上 `env.drop` 或人工制造后重跑 |
59
+
60
+ 另外两条可复现的相关证据:
61
+ `node guest-agent-contract-test.mjs` 里有 **3 条 SKIP**(workspace 里的 exe 是低完整性令牌,`SendInput` 被 UIPI
62
+ 静默丢弃;同一 sha256 的副本放到 `%TEMP%` 后 `move`/`click`/`drag` 的 `verified` 变 true);
63
+ `node child-session-probe-test.mjs` + 真探针给出上面那两条 WTS 事实。
64
+
65
+ ## 已知未达标项(2026-11-20)
66
+
67
+ | 项 | 现状(可复现) | 还差什么 |
68
+ |---|---|---|
69
+ | 真子会话验收 | `node acceptance-run.mjs` → `PASS 0 / FAIL 0 / NOT RUN 10` | 一台启用 Child Sessions 的机器(本机 `WTSIsChildSessionsEnabled=0`、`GetLastError=1168`) |
70
+ | 描述预算的"任务质量对照" | 字节闸门已绿(31,823 字节 / 30.4%,事实记号 957) | 模型在环的 A/B:同一批任务压缩前后表现对比。这一步本机做不了 |
71
+
72
+ **已修掉(留档,别当还开着)**:
73
+ - 描述预算增长:`description-live-budget-test` 8/0(广告层副本重写 66 条 + 新增 5 条登记)。
74
+ - `layered-pack` 的重绘停摆:根因是 `UpdateCursorPose()` 的分层部件刷新期限用了相对时刻 `now+34ms`,
75
+ 而主循环被**更短的期限内唤醒**(钩子沉默时降级采样 16ms),每次醒来都把期限推到未来 → 期限永不成立、
76
+ `DrawCursorPixels()` 不再被调用。改法是把锚点换成"上次真正做过分帧决定的时刻"。修后 `characterFrames 4 → 8`
77
+ (600ms),`layered-pack-test` 12/0、`character-pack-test` 165/0、`native-indicator-test` 23/0。
78
+
79
+ # 1.50.1 截图修复验收(2026-11-10)
80
+
81
+ 本次新增验证:同一旧 EXE 从 Low 标签目录运行,截图失败;不改变 EXE 字节、使用正常用户运行缓存后,截图成功。
82
+ 底层桌面工具 64 项通过,1 项为测试控件不支持 TextPattern2;公开工具回归 18 项通过;运行缓存/截图新增回归 9 项通过;宿主契约 188 项、生命周期 110 项、附件状态 11 项通过。
83
+ 应用启动测试 39/40:唯一失败为已有 envReport 英文措辞断言,未改动基线也复现。此轮没有重新运行此前全部 75 套测试,不把历史结果算作本轮全绿。
84
+ 900 ms 的无窗口启动等待:修改前实际 1336 ms,修改后 917 ms(单机对照,包含调度开销)。四次窗口检查各约 0.2 秒,没有测得显著变快;本轮主要改善等待超预算。
85
+ 浏览器 47 项检查在独立 Edge 测试页通过;关联窗口截图 26 项、清理边界 6 项通过。真实网站仍需显式 CDP 连接,不代表所有网站经过实测。
86
+
87
+ 以下为早期版本历史验收记录。
1
88
  # 1.40.3 验收记录(哪些跑了、哪些没跑)
2
89
 
3
90
  本文件对应研究报告 §8 的要求:**没有执行、环境缺失、主动跳过必须单独计数,不能算 PASS。**
@@ -0,0 +1,87 @@
1
+ {
2
+ "schema": "dsh.blessings.pack/v1",
3
+ "assetVersion": "blessings-v1",
4
+ "scenes": {
5
+ "new-year:eve": {
6
+ "file": "new-year-eve.jpg",
7
+ "mime": "image/jpeg",
8
+ "width": 1024,
9
+ "height": 1280,
10
+ "orientation": "portrait",
11
+ "bytes": 327369,
12
+ "sha256": "b14213e37191f439557408207b4dd234209b68fbd92e80e695564f08ed0ad928"
13
+ },
14
+ "new-year:day": {
15
+ "file": "new-year-day.jpg",
16
+ "mime": "image/jpeg",
17
+ "width": 1440,
18
+ "height": 810,
19
+ "orientation": "landscape",
20
+ "bytes": 232668,
21
+ "sha256": "853c27094a0ea13490e05942994baa49f7b14922b78b3482e5ee50cce7226f5b"
22
+ },
23
+ "lunar-eve:paper": {
24
+ "file": "lunar-eve-paper.jpg",
25
+ "mime": "image/jpeg",
26
+ "width": 1024,
27
+ "height": 1280,
28
+ "orientation": "portrait",
29
+ "bytes": 339228,
30
+ "sha256": "e5f7ee7a700d69be2fc50192f61ccda28709e764016ab32f700889bbd0f6207e"
31
+ },
32
+ "lunar-eve:dumpling": {
33
+ "file": "lunar-eve-dumpling.jpg",
34
+ "mime": "image/jpeg",
35
+ "width": 1440,
36
+ "height": 960,
37
+ "orientation": "landscape",
38
+ "bytes": 385037,
39
+ "sha256": "70d3b522d77e5a1efd00f3a6dd44ec7d7eac1be0bb1f3a92280eb7fc9b569faa"
40
+ },
41
+ "lunar-eve:vigil": {
42
+ "file": "lunar-eve-vigil.jpg",
43
+ "mime": "image/jpeg",
44
+ "width": 1440,
45
+ "height": 960,
46
+ "orientation": "landscape",
47
+ "bytes": 260539,
48
+ "sha256": "b1fbf85733407e85b8c83da0e82cf85e95b30dcc7ad717f0f102ab3e17e82ac6"
49
+ },
50
+ "spring-day1:visit": {
51
+ "file": "spring-day1-visit.jpg",
52
+ "mime": "image/jpeg",
53
+ "width": 1024,
54
+ "height": 1280,
55
+ "orientation": "portrait",
56
+ "bytes": 338918,
57
+ "sha256": "d54f48f3688f6c214200085356b9e6f70e112899983f0cd3172a0e6f1ce710c2"
58
+ },
59
+ "spring-day1:lion": {
60
+ "file": "spring-day1-lion.jpg",
61
+ "mime": "image/jpeg",
62
+ "width": 1440,
63
+ "height": 960,
64
+ "orientation": "landscape",
65
+ "bytes": 411351,
66
+ "sha256": "bc88e2ec2a8f434c7b9c49e8a1b59fdb3e574db98d0985be4fdfe377a3260917"
67
+ },
68
+ "spring-day2:fair": {
69
+ "file": "spring-day2-fair.jpg",
70
+ "mime": "image/jpeg",
71
+ "width": 1440,
72
+ "height": 812,
73
+ "orientation": "landscape",
74
+ "bytes": 381226,
75
+ "sha256": "7a7c419f9687b06047962c77dcd0b1b1bbf973347b75f21e6dd455ccfa876dcc"
76
+ },
77
+ "spring-day5:wealth": {
78
+ "file": "spring-day5-wealth.jpg",
79
+ "mime": "image/jpeg",
80
+ "width": 1440,
81
+ "height": 960,
82
+ "orientation": "landscape",
83
+ "bytes": 464068,
84
+ "sha256": "949a15aa0f39be2d3074f4fc89aa1c2e559c3991b0a362ff34a61ae64d00dc48"
85
+ }
86
+ }
87
+ }
@@ -0,0 +1,324 @@
1
+ {
2
+ "schema": "dsh.character.pack/v2",
3
+ "assetVersion": "desktop-pet-v2",
4
+ "alpha": "straight",
5
+ "renderMode": "composite",
6
+ "clips": {
7
+ "pet_stand": {
8
+ "atlas": "pet_stand.png",
9
+ "frameSize": [
10
+ 512,
11
+ 512
12
+ ],
13
+ "grid": [
14
+ 4,
15
+ 2
16
+ ],
17
+ "frameCount": 8,
18
+ "loop": true,
19
+ "durationsMs": [
20
+ 360,
21
+ 320,
22
+ 60,
23
+ 90,
24
+ 70,
25
+ 280,
26
+ 380,
27
+ 400
28
+ ],
29
+ "totalMs": 1960,
30
+ "contentBounds": [
31
+ 46,
32
+ 36,
33
+ 420,
34
+ 430
35
+ ],
36
+ "anchorPx": [
37
+ 256,
38
+ 466
39
+ ],
40
+ "bytes": 1373918,
41
+ "sha256": "2349b98e80b89374e0b69078c3dcff72d535cf21c54752f29abbc693674571b1"
42
+ },
43
+ "pet_idle_tiptoe": {
44
+ "atlas": "pet_idle_tiptoe.png",
45
+ "frameSize": [
46
+ 512,
47
+ 512
48
+ ],
49
+ "grid": [
50
+ 4,
51
+ 4
52
+ ],
53
+ "frameCount": 16,
54
+ "loop": false,
55
+ "durationsMs": [
56
+ 160,
57
+ 160,
58
+ 160,
59
+ 160,
60
+ 160,
61
+ 160,
62
+ 160,
63
+ 160,
64
+ 160,
65
+ 160,
66
+ 160,
67
+ 160,
68
+ 160,
69
+ 160,
70
+ 160,
71
+ 160
72
+ ],
73
+ "totalMs": 2560,
74
+ "contentBounds": [
75
+ 46,
76
+ 36,
77
+ 420,
78
+ 430
79
+ ],
80
+ "anchorPx": [
81
+ 256,
82
+ 466
83
+ ],
84
+ "bytes": 3112884,
85
+ "sha256": "d05a939ac5e73f7b5a7f1b8b1e8a52fa0988d9c92b5afcf28772dd24dcb048dc"
86
+ },
87
+ "pet_idle_eat": {
88
+ "atlas": "pet_idle_eat.png",
89
+ "frameSize": [
90
+ 512,
91
+ 512
92
+ ],
93
+ "grid": [
94
+ 4,
95
+ 4
96
+ ],
97
+ "frameCount": 16,
98
+ "loop": false,
99
+ "durationsMs": [
100
+ 220,
101
+ 220,
102
+ 200,
103
+ 200,
104
+ 200,
105
+ 180,
106
+ 160,
107
+ 180,
108
+ 160,
109
+ 180,
110
+ 180,
111
+ 200,
112
+ 220,
113
+ 240,
114
+ 280,
115
+ 500
116
+ ],
117
+ "totalMs": 3520,
118
+ "contentBounds": [
119
+ 46,
120
+ 36,
121
+ 420,
122
+ 430
123
+ ],
124
+ "anchorPx": [
125
+ 256,
126
+ 466
127
+ ],
128
+ "bytes": 3190139,
129
+ "sha256": "d77aa91d916dfa2e029431ddbec6def516ed609a4a0a137e742732817de189f9"
130
+ },
131
+ "pet_idle_grass": {
132
+ "atlas": "pet_idle_grass.png",
133
+ "frameSize": [
134
+ 512,
135
+ 512
136
+ ],
137
+ "grid": [
138
+ 4,
139
+ 4
140
+ ],
141
+ "frameCount": 16,
142
+ "loop": false,
143
+ "durationsMs": [
144
+ 220,
145
+ 180,
146
+ 200,
147
+ 200,
148
+ 240,
149
+ 200,
150
+ 240,
151
+ 220,
152
+ 200,
153
+ 180,
154
+ 160,
155
+ 300,
156
+ 220,
157
+ 200,
158
+ 200,
159
+ 300
160
+ ],
161
+ "totalMs": 3460,
162
+ "contentBounds": [
163
+ 46,
164
+ 36,
165
+ 420,
166
+ 430
167
+ ],
168
+ "anchorPx": [
169
+ 256,
170
+ 466
171
+ ],
172
+ "bytes": 3665168,
173
+ "sha256": "7df58f6e90b643dd731767ff553fc614ac829c3af32dd3946cff390bdcf3ff59"
174
+ },
175
+ "pet_talk_wave": {
176
+ "atlas": "pet_talk_wave.png",
177
+ "frameSize": [
178
+ 512,
179
+ 512
180
+ ],
181
+ "grid": [
182
+ 4,
183
+ 2
184
+ ],
185
+ "frameCount": 8,
186
+ "loop": true,
187
+ "durationsMs": [
188
+ 160,
189
+ 140,
190
+ 150,
191
+ 170,
192
+ 140,
193
+ 170,
194
+ 150,
195
+ 180
196
+ ],
197
+ "totalMs": 1260,
198
+ "contentBounds": [
199
+ 46,
200
+ 36,
201
+ 420,
202
+ 430
203
+ ],
204
+ "anchorPx": [
205
+ 256,
206
+ 466
207
+ ],
208
+ "bytes": 2076420,
209
+ "sha256": "a62d5b2fb07c127113836e52be9e49d289134cc7552c2305510de8ded69c6744"
210
+ },
211
+ "pet_happy": {
212
+ "atlas": "pet_happy.png",
213
+ "frameSize": [
214
+ 512,
215
+ 512
216
+ ],
217
+ "grid": [
218
+ 4,
219
+ 2
220
+ ],
221
+ "frameCount": 8,
222
+ "loop": false,
223
+ "durationsMs": [
224
+ 120,
225
+ 140,
226
+ 120,
227
+ 240,
228
+ 140,
229
+ 150,
230
+ 130,
231
+ 160
232
+ ],
233
+ "totalMs": 1200,
234
+ "contentBounds": [
235
+ 46,
236
+ 36,
237
+ 420,
238
+ 430
239
+ ],
240
+ "anchorPx": [
241
+ 256,
242
+ 466
243
+ ],
244
+ "bytes": 1521870,
245
+ "sha256": "fcfba5e359f2b2bf9b0405bcd3171b84778e1f3474446178c08b0e362334173b"
246
+ },
247
+ "pet_nap": {
248
+ "atlas": "pet_nap.png",
249
+ "frameSize": [
250
+ 512,
251
+ 512
252
+ ],
253
+ "grid": [
254
+ 4,
255
+ 2
256
+ ],
257
+ "frameCount": 8,
258
+ "loop": true,
259
+ "durationsMs": [
260
+ 420,
261
+ 320,
262
+ 520,
263
+ 680,
264
+ 920,
265
+ 320,
266
+ 240,
267
+ 320
268
+ ],
269
+ "totalMs": 3740,
270
+ "contentBounds": [
271
+ 46,
272
+ 36,
273
+ 420,
274
+ 430
275
+ ],
276
+ "anchorPx": [
277
+ 256,
278
+ 466
279
+ ],
280
+ "bytes": 1733537,
281
+ "sha256": "98201eabb476d035a7cf9c95ce386517322ad10c2ac425b797a7003da00eedb5"
282
+ },
283
+ "pet_carry": {
284
+ "atlas": "pet_carry.png",
285
+ "frameSize": [
286
+ 512,
287
+ 512
288
+ ],
289
+ "grid": [
290
+ 4,
291
+ 2
292
+ ],
293
+ "frameCount": 8,
294
+ "loop": true,
295
+ "durationsMs": [
296
+ 220,
297
+ 180,
298
+ 160,
299
+ 280,
300
+ 260,
301
+ 240,
302
+ 160,
303
+ 220
304
+ ],
305
+ "totalMs": 1720,
306
+ "contentBounds": [
307
+ 46,
308
+ 36,
309
+ 420,
310
+ 430
311
+ ],
312
+ "anchorPx": [
313
+ 256,
314
+ 466
315
+ ],
316
+ "grabPivotPx": [
317
+ 279,
318
+ 144
319
+ ],
320
+ "bytes": 1448079,
321
+ "sha256": "6203bb6fe8559f2b08bebb372676699d57a4673758920b33f085edf027419c96"
322
+ }
323
+ }
324
+ }
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file