dsh-context-compression-improved 0.11.0 → 0.11.2

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 (310) hide show
  1. package/README.md +15 -110
  2. package/README.zh.md +14 -104
  3. package/THIRD_PARTY_NOTICES.md +25 -7
  4. package/{packages/selector/dsh.plugin.json → dsh.plugin.json} +2 -2
  5. package/{packages/selector/lib → lib}/index.js +101 -0
  6. package/package.json +129 -116
  7. package/screenshots.json +3 -6
  8. package/.agents/plans/improve/checklist.md +0 -32
  9. package/.agents/plans/improve/findings.md +0 -102
  10. package/.agents/plans/improve/spec.md +0 -53
  11. package/.agents/plans/improve/tasks.md +0 -70
  12. package/.gitattributes +0 -2
  13. package/.githooks/pre-push +0 -37
  14. package/.github/workflows/ci.yml +0 -47
  15. package/CHANGELOG.de.md +0 -580
  16. package/CHANGELOG.es.md +0 -588
  17. package/CHANGELOG.fr.md +0 -576
  18. package/CHANGELOG.it.md +0 -577
  19. package/CHANGELOG.ja.md +0 -261
  20. package/CHANGELOG.ko.md +0 -254
  21. package/CHANGELOG.md +0 -557
  22. package/CHANGELOG.ru.md +0 -554
  23. package/CHANGELOG.zh.md +0 -247
  24. package/CONTRIBUTING.md +0 -22
  25. package/README.de.md +0 -96
  26. package/README.es.md +0 -96
  27. package/README.fr.md +0 -96
  28. package/README.it.md +0 -96
  29. package/README.ja.md +0 -102
  30. package/README.ko.md +0 -102
  31. package/README.ru.md +0 -96
  32. package/SECURITY.md +0 -18
  33. package/assets/board.png +0 -0
  34. package/assets/context.png +0 -0
  35. package/docs/assets/context-compression-selector-profiles.jpg +0 -0
  36. package/docs/assets/context-compression-selector-settings.png +0 -0
  37. package/docs/compat-0.1.5-report.md +0 -77
  38. package/docs/installation.de.md +0 -104
  39. package/docs/installation.es.md +0 -104
  40. package/docs/installation.fr.md +0 -104
  41. package/docs/installation.it.md +0 -104
  42. package/docs/installation.ja.md +0 -78
  43. package/docs/installation.ko.md +0 -78
  44. package/docs/installation.md +0 -103
  45. package/docs/installation.ru.md +0 -104
  46. package/docs/installation.zh.md +0 -100
  47. package/docs/repair-log.md +0 -657
  48. package/docs/shallow-teaching-preset-template.md +0 -46
  49. package/eslint.config.js +0 -30
  50. package/packages/selector/LICENSE +0 -21
  51. package/packages/selector/README.md +0 -26
  52. package/packages/selector/README.zh.md +0 -24
  53. package/packages/selector/THIRD_PARTY_NOTICES.md +0 -32
  54. package/packages/selector/docs/history-tool-call-working-set-spec.md +0 -112
  55. package/packages/selector/docs/native-tool-result-selector-spec.md +0 -34
  56. package/packages/selector/docs/subagent-cache-reuse-spec.md +0 -46
  57. package/packages/selector/lib/style.css +0 -350
  58. package/packages/selector/package.json +0 -178
  59. package/packages/selector/screenshots.json +0 -3
  60. package/packages/selector/src/client/CompressionProfileControls.tsx +0 -352
  61. package/packages/selector/src/client/CompressionProfileSelector.module.css +0 -199
  62. package/packages/selector/src/client/CompressionProfileSelector.tsx +0 -89
  63. package/packages/selector/src/client/CustomPolicyEditor.tsx +0 -216
  64. package/packages/selector/src/client/EstimatorControls.tsx +0 -277
  65. package/packages/selector/src/client/bridge-scope.ts +0 -125
  66. package/packages/selector/src/client/decode.ts +0 -68
  67. package/packages/selector/src/client/fab-pos.ts +0 -71
  68. package/packages/selector/src/client/index.ts +0 -438
  69. package/packages/selector/src/client/locales/de.ts +0 -167
  70. package/packages/selector/src/client/locales/es.ts +0 -167
  71. package/packages/selector/src/client/locales/fr.ts +0 -167
  72. package/packages/selector/src/client/locales/it.ts +0 -167
  73. package/packages/selector/src/client/locales/ja.ts +0 -167
  74. package/packages/selector/src/client/locales/ko.ts +0 -167
  75. package/packages/selector/src/client/locales/ru.ts +0 -167
  76. package/packages/selector/src/client/locales.ts +0 -334
  77. package/packages/selector/src/client/monitor-fab.ts +0 -445
  78. package/packages/selector/src/client/preset-options.ts +0 -88
  79. package/packages/selector/src/client/savings-card.tsx +0 -269
  80. package/packages/selector/src/client/scope-face.ts +0 -24
  81. package/packages/selector/src/client/settings-section.tsx +0 -156
  82. package/packages/selector/src/compat/host-generation.ts +0 -96
  83. package/packages/selector/src/compat/llm-messages.ts +0 -50
  84. package/packages/selector/src/compat/settings-lease.ts +0 -108
  85. package/packages/selector/src/compat/tool-result.ts +0 -91
  86. package/packages/selector/src/css-modules.d.ts +0 -6
  87. package/packages/selector/src/deepseek-v4-tokenizer.ts +0 -205
  88. package/packages/selector/src/estimator-catalog.ts +0 -104
  89. package/packages/selector/src/index.ts +0 -890
  90. package/packages/selector/src/invariant.ts +0 -113
  91. package/packages/selector/src/preset-overlay.ts +0 -749
  92. package/packages/selector/src/profiles.ts +0 -554
  93. package/packages/selector/src/pruner/content.ts +0 -199
  94. package/packages/selector/src/pruner/session.ts +0 -97
  95. package/packages/selector/src/pruner/state.ts +0 -61
  96. package/packages/selector/src/pruner/tuning.ts +0 -23
  97. package/packages/selector/src/pruner/types.ts +0 -78
  98. package/packages/selector/src/pruner.ts +0 -3222
  99. package/packages/selector/src/runtime/adaptive-cost.ts +0 -205
  100. package/packages/selector/src/runtime/audit.ts +0 -321
  101. package/packages/selector/src/runtime/config.ts +0 -887
  102. package/packages/selector/src/runtime/custom-policy.ts +0 -300
  103. package/packages/selector/src/runtime/deepseek-official-pricing.ts +0 -298
  104. package/packages/selector/src/runtime/deepseek-v4-vision-tokens.ts +0 -254
  105. package/packages/selector/src/runtime/display-prefs.ts +0 -98
  106. package/packages/selector/src/runtime/fold-router.ts +0 -143
  107. package/packages/selector/src/runtime/measurement.ts +0 -444
  108. package/packages/selector/src/runtime/monitor.ts +0 -341
  109. package/packages/selector/src/runtime/panel-command.ts +0 -213
  110. package/packages/selector/src/runtime/reducers.ts +0 -1755
  111. package/packages/selector/src/runtime/retrieve.ts +0 -505
  112. package/packages/selector/src/runtime/savings-integral.ts +0 -117
  113. package/packages/selector/src/runtime/savings-projection.ts +0 -229
  114. package/packages/selector/src/runtime/savings-verify.ts +0 -446
  115. package/packages/selector/src/runtime/savings.ts +0 -526
  116. package/packages/selector/src/runtime/sediment-card.ts +0 -126
  117. package/packages/selector/src/runtime/sediment-clock.ts +0 -87
  118. package/packages/selector/src/runtime/sediment-guard.ts +0 -136
  119. package/packages/selector/src/runtime/sediment-publish.ts +0 -144
  120. package/packages/selector/src/runtime/sediment-span.ts +0 -170
  121. package/packages/selector/src/runtime/sediment.ts +0 -209
  122. package/packages/selector/src/runtime/session-events.ts +0 -30
  123. package/packages/selector/src/runtime/session-file-decode.ts +0 -523
  124. package/packages/selector/src/runtime/shallow-tools.ts +0 -342
  125. package/packages/selector/src/runtime/stats-backfill.ts +0 -541
  126. package/packages/selector/src/runtime/stats-db.ts +0 -492
  127. package/packages/selector/src/runtime/stats-schema.ts +0 -123
  128. package/packages/selector/src/runtime/stats-sync.ts +0 -307
  129. package/packages/selector/src/runtime/summary-command.ts +0 -127
  130. package/packages/selector/src/runtime/tail-trim.ts +0 -177
  131. package/packages/selector/src/runtime/token-count.ts +0 -72
  132. package/packages/selector/src/runtime/tokenpilot/advisor-prompt.ts +0 -233
  133. package/packages/selector/src/runtime/tokenpilot/advisor-state.ts +0 -204
  134. package/packages/selector/src/runtime/tokenpilot/advisor.ts +0 -419
  135. package/packages/selector/src/runtime/tokenpilot/benefit.ts +0 -200
  136. package/packages/selector/src/runtime/tokenpilot/dedup.ts +0 -82
  137. package/packages/selector/src/runtime/tokenpilot/estimator.ts +0 -151
  138. package/packages/selector/src/runtime/tokenpilot/intent-fold.ts +0 -53
  139. package/packages/selector/src/runtime/tokenpilot/intent-gate.ts +0 -65
  140. package/packages/selector/src/runtime/tokenpilot/intent-input-mask.ts +0 -125
  141. package/packages/selector/src/runtime/tokenpilot/intent-range.ts +0 -37
  142. package/packages/selector/src/runtime/tokenpilot/locator.ts +0 -129
  143. package/packages/selector/src/runtime/tokenpilot/read-state.ts +0 -98
  144. package/packages/selector/src/runtime/tokenpilot/sidechannel.ts +0 -303
  145. package/packages/selector/src/runtime/tool-names.ts +0 -42
  146. package/packages/selector/src/runtime/toolclass.ts +0 -103
  147. package/packages/selector/src/runtime/triage/masks.ts +0 -128
  148. package/packages/selector/src/runtime/triage/shallow.ts +0 -132
  149. package/packages/selector/src/runtime/triage/signals.ts +0 -167
  150. package/packages/selector/src/runtime/triage/types.ts +0 -125
  151. package/packages/selector/src/runtime/types.ts +0 -396
  152. package/packages/selector/src/runtime/value.ts +0 -48
  153. package/packages/selector/src/settings-bridge.ts +0 -175
  154. package/packages/selector/tests/advisor-report.host.spec.ts +0 -223
  155. package/packages/selector/tests/auto-compact.client.spec.tsx +0 -214
  156. package/packages/selector/tests/built/client-artifact.spec.ts +0 -56
  157. package/packages/selector/tests/cache-prefix-audit.spec.ts +0 -123
  158. package/packages/selector/tests/code-skeleton.client.spec.ts +0 -98
  159. package/packages/selector/tests/compat/compat-narrow-waist.spec.ts +0 -150
  160. package/packages/selector/tests/custom-contract.client.spec.ts +0 -226
  161. package/packages/selector/tests/estimator-catalog.spec.ts +0 -70
  162. package/packages/selector/tests/estimator-channel.client.spec.tsx +0 -253
  163. package/packages/selector/tests/estimator-route-registration.host.spec.ts +0 -202
  164. package/packages/selector/tests/fab-pos.client.spec.ts +0 -47
  165. package/packages/selector/tests/fixtures/sediment-pool/52adc205-cloud-5.orig.txt +0 -231
  166. package/packages/selector/tests/fixtures/sediment-pool/95fcba5d-cloud-25.orig.txt +0 -236
  167. package/packages/selector/tests/fixtures/sediment-pool/95fcba5d-cloud-38.orig.txt +0 -220
  168. package/packages/selector/tests/fixtures/sediment-pool/95fcba5d-cloud-42.orig.txt +0 -140
  169. package/packages/selector/tests/fixtures/sediment-pool/95fcba5d-cloud-53.orig.txt +0 -117
  170. package/packages/selector/tests/fixtures/sediment-pool/95fcba5d-local-10.orig.txt +0 -67
  171. package/packages/selector/tests/fixtures/sediment-pool/a7a767c0-cloud-45.orig.txt +0 -119
  172. package/packages/selector/tests/fixtures/sediment-pool/a7a767c0-cloud-49.orig.txt +0 -119
  173. package/packages/selector/tests/fixtures/sediment-pool/a7a767c0-cloud-63.orig.txt +0 -131
  174. package/packages/selector/tests/fixtures/sediment-pool/a7a767c0-cloud-75.orig.txt +0 -196
  175. package/packages/selector/tests/fixtures/sediment-pool/a7a767c0-cloud-76.orig.txt +0 -71
  176. package/packages/selector/tests/fixtures/sediment-pool/a7a767c0-cloud-85.orig.txt +0 -126
  177. package/packages/selector/tests/fixtures/sediment-pool/a7a767c0-cloud-86.orig.txt +0 -86
  178. package/packages/selector/tests/fixtures/sediment-pool/a7a767c0-cloud-87.orig.txt +0 -50
  179. package/packages/selector/tests/fixtures/sediment-pool/a7a767c0-cloud-96.orig.txt +0 -102
  180. package/packages/selector/tests/helpers/legacy-namespace.ts +0 -35
  181. package/packages/selector/tests/helpers/legacy-settings/index.ts +0 -15
  182. package/packages/selector/tests/helpers/legacy-settings/legacy/provider.d.ts +0 -41
  183. package/packages/selector/tests/helpers/legacy-settings/legacy/provider.js +0 -647
  184. package/packages/selector/tests/helpers/legacy-settings/legacy/redact.js +0 -78
  185. package/packages/selector/tests/helpers/legacy-settings/legacy/util-values.js +0 -234
  186. package/packages/selector/tests/host-preset-overlay.host.spec.ts +0 -204
  187. package/packages/selector/tests/monitor-fab.client.spec.ts +0 -240
  188. package/packages/selector/tests/preset-options-write.client.spec.ts +0 -192
  189. package/packages/selector/tests/preset-overlay-loader.e2e.host.spec.ts +0 -200
  190. package/packages/selector/tests/preset-overlay.host.spec.ts +0 -246
  191. package/packages/selector/tests/profiles.client.spec.tsx +0 -436
  192. package/packages/selector/tests/ptc-custom-write.client.spec.ts +0 -86
  193. package/packages/selector/tests/public/package-contract.client.spec.ts +0 -89
  194. package/packages/selector/tests/runtime/adaptive-cost.spec.ts +0 -167
  195. package/packages/selector/tests/runtime/advice-never-withholds.host.spec.ts +0 -230
  196. package/packages/selector/tests/runtime/advisor-invariant.spec.ts +0 -272
  197. package/packages/selector/tests/runtime/advisor.spec.ts +0 -226
  198. package/packages/selector/tests/runtime/audit.spec.ts +0 -275
  199. package/packages/selector/tests/runtime/auto-compact-config.spec.ts +0 -523
  200. package/packages/selector/tests/runtime/char-basis.spec.ts +0 -30
  201. package/packages/selector/tests/runtime/code-skeleton.spec.ts +0 -152
  202. package/packages/selector/tests/runtime/deepseek-official-pricing.spec.ts +0 -186
  203. package/packages/selector/tests/runtime/deepseek-v4-tokenizer.spec.ts +0 -122
  204. package/packages/selector/tests/runtime/deepseek-v4-vision-tokens.spec.ts +0 -122
  205. package/packages/selector/tests/runtime/deprecated-preset-options.spec.ts +0 -96
  206. package/packages/selector/tests/runtime/fixtures/profile-baseline.json +0 -273
  207. package/packages/selector/tests/runtime/fixtures/session-v4-dump.jsonl +0 -46
  208. package/packages/selector/tests/runtime/fixtures/tokenizer-golden.json +0 -106
  209. package/packages/selector/tests/runtime/fixtures/vision-golden.json +0 -459
  210. package/packages/selector/tests/runtime/fold-router.spec.ts +0 -140
  211. package/packages/selector/tests/runtime/frequency-longstrings.spec.ts +0 -74
  212. package/packages/selector/tests/runtime/fresh-gate.spec.ts +0 -43
  213. package/packages/selector/tests/runtime/html-reducer.spec.ts +0 -212
  214. package/packages/selector/tests/runtime/intent-gate.spec.ts +0 -62
  215. package/packages/selector/tests/runtime/intent-summary.spec.ts +0 -156
  216. package/packages/selector/tests/runtime/jsonl-reducer.spec.ts +0 -79
  217. package/packages/selector/tests/runtime/line-mapping.spec.ts +0 -153
  218. package/packages/selector/tests/runtime/monitor.spec.ts +0 -354
  219. package/packages/selector/tests/runtime/panel-command.spec.ts +0 -101
  220. package/packages/selector/tests/runtime/prose-reducers.spec.ts +0 -133
  221. package/packages/selector/tests/runtime/ptc-profile.spec.ts +0 -133
  222. package/packages/selector/tests/runtime/public/public-runtime.spec.ts +0 -2795
  223. package/packages/selector/tests/runtime/read-input-cap.spec.ts +0 -33
  224. package/packages/selector/tests/runtime/savings-accounting.spec.ts +0 -291
  225. package/packages/selector/tests/runtime/savings-integral.spec.ts +0 -169
  226. package/packages/selector/tests/runtime/savings-projection.spec.ts +0 -89
  227. package/packages/selector/tests/runtime/savings-verify.spec.ts +0 -226
  228. package/packages/selector/tests/runtime/savings.spec.ts +0 -139
  229. package/packages/selector/tests/runtime/search-reducer.spec.ts +0 -110
  230. package/packages/selector/tests/runtime/sediment-card.spec.ts +0 -111
  231. package/packages/selector/tests/runtime/sediment-config.spec.ts +0 -56
  232. package/packages/selector/tests/runtime/sediment-guard.spec.ts +0 -71
  233. package/packages/selector/tests/runtime/sediment-masks.spec.ts +0 -95
  234. package/packages/selector/tests/runtime/sediment-orchestrator.spec.ts +0 -166
  235. package/packages/selector/tests/runtime/sediment-pool-share.spec.ts +0 -65
  236. package/packages/selector/tests/runtime/sediment-publish.spec.ts +0 -142
  237. package/packages/selector/tests/runtime/sediment-real-shapes.spec.ts +0 -158
  238. package/packages/selector/tests/runtime/sediment-settings.spec.ts +0 -73
  239. package/packages/selector/tests/runtime/sediment-signals.spec.ts +0 -124
  240. package/packages/selector/tests/runtime/sediment-span.spec.ts +0 -92
  241. package/packages/selector/tests/runtime/session-events.spec.ts +0 -27
  242. package/packages/selector/tests/runtime/session-file-decode.spec.ts +0 -281
  243. package/packages/selector/tests/runtime/settings-unwrap.spec.ts +0 -58
  244. package/packages/selector/tests/runtime/shallow-primitives.spec.ts +0 -135
  245. package/packages/selector/tests/runtime/sidechannel.spec.ts +0 -241
  246. package/packages/selector/tests/runtime/stats-backfill-scheduler.spec.ts +0 -167
  247. package/packages/selector/tests/runtime/stats-backfill.spec.ts +0 -350
  248. package/packages/selector/tests/runtime/stats-db.spec.ts +0 -361
  249. package/packages/selector/tests/runtime/stats-privacy.spec.ts +0 -55
  250. package/packages/selector/tests/runtime/stats-sync.spec.ts +0 -278
  251. package/packages/selector/tests/runtime/summary-command.spec.ts +0 -154
  252. package/packages/selector/tests/runtime/toc-and-bundled.spec.ts +0 -159
  253. package/packages/selector/tests/runtime/tokenizer-golden.spec.ts +0 -53
  254. package/packages/selector/tests/runtime/tokenpilot/benefit.spec.ts +0 -217
  255. package/packages/selector/tests/runtime/tokenpilot/dedup.spec.ts +0 -52
  256. package/packages/selector/tests/runtime/tokenpilot/estimator.spec.ts +0 -79
  257. package/packages/selector/tests/runtime/tokenpilot/locator.spec.ts +0 -76
  258. package/packages/selector/tests/runtime/tokenpilot/profile-baseline.spec.ts +0 -121
  259. package/packages/selector/tests/runtime/tokenpilot/read-state.spec.ts +0 -82
  260. package/packages/selector/tests/runtime/toolclass.spec.ts +0 -156
  261. package/packages/selector/tests/runtime/value.spec.ts +0 -23
  262. package/packages/selector/tests/savings-sessions.client.spec.tsx +0 -140
  263. package/packages/selector/tests/settings-seat.client.spec.ts +0 -215
  264. package/packages/selector/tests/standing-generation.host.spec.ts +0 -724
  265. package/packages/selector/tests/subagent-cache-reuse.host.spec.ts +0 -269
  266. package/packages/selector/tests/support/cache-prefix-audit.ts +0 -105
  267. package/packages/selector/tests/support/mock-adapter.ts +0 -37
  268. package/packages/selector/tests/support/ui-primitives.tsx +0 -34
  269. package/packages/selector/tsconfig.json +0 -11
  270. package/packages/selector/tsdown.client.config.ts +0 -102
  271. package/packages/selector/tsdown.config.ts +0 -20
  272. package/pnpm-workspace.yaml +0 -76
  273. package/scripts/capture-profile-baseline.mjs +0 -42
  274. package/scripts/cell-browser-e2e.mjs +0 -354
  275. package/scripts/generate-tokenizer-fixtures.py +0 -81
  276. package/scripts/generate-vision-fixtures.py +0 -208
  277. package/scripts/hosts.d.mts +0 -3
  278. package/scripts/hosts.mjs +0 -79
  279. package/scripts/packed-components-smoke.mjs +0 -763
  280. package/scripts/packed-install-e2e.mjs +0 -1346
  281. package/scripts/sediment-latency-report.mjs +0 -63
  282. package/scripts/sync-hosts.mjs +0 -174
  283. package/scripts/toolclass-corpus-replay.mjs +0 -281
  284. package/scripts/verify-release.mjs +0 -343
  285. package/tests/TEST_INVENTORY.md +0 -41
  286. package/tsconfig.base.json +0 -18
  287. package/tsconfig.json +0 -7
  288. package/tsconfig.tests.json +0 -15
  289. package/vitest.built.config.ts +0 -9
  290. package/vitest.config.ts +0 -54
  291. /package/{packages/selector/assets → assets}/deepseek-v4/LICENSE.DeepSeek-V4-Pro.txt +0 -0
  292. /package/{packages/selector/assets → assets}/deepseek-v4/manifest.json +0 -0
  293. /package/{packages/selector/assets → assets}/deepseek-v4/tokenizer.json +0 -0
  294. /package/{packages/selector/assets → assets}/deepseek-v4/tokenizer_config.json +0 -0
  295. /package/{packages/selector/assets → assets}/deepseek-v4-vision-exp/LICENSE.DeepSeek-V4-Flash-Vision-Exp.txt +0 -0
  296. /package/{packages/selector/assets → assets}/deepseek-v4-vision-exp/manifest.json +0 -0
  297. /package/{packages/selector/assets → assets}/deepseek-v4-vision-exp/tokenizer.json +0 -0
  298. /package/{packages/selector/assets → assets}/deepseek-v4-vision-exp/tokenizer_config.json +0 -0
  299. /package/{packages/selector/cordis.patch.yml → cordis.patch.yml} +0 -0
  300. /package/{packages/selector/lib → lib}/client.d.ts +0 -0
  301. /package/{packages/selector/lib → lib}/client.js +0 -0
  302. /package/{packages/selector/lib → lib}/index.d.ts +0 -0
  303. /package/{packages/selector/lib → lib}/invariant.d.ts +0 -0
  304. /package/{packages/selector/lib → lib}/invariant.js +0 -0
  305. /package/{packages/selector/lib → lib}/profiles.d.ts +0 -0
  306. /package/{packages/selector/lib → lib}/pruner.d.ts +0 -0
  307. /package/{packages/selector/lib → lib}/pruner.js +0 -0
  308. /package/{packages/selector/lib → lib}/savings-integral.js +0 -0
  309. /package/{packages/selector/lib → lib}/tail-trim.js +0 -0
  310. /package/{packages/selector/lib → lib}/tool-result.js +0 -0
@@ -1,140 +0,0 @@
1
- [assistant] 需要先核实数字:你担心的「爆炸」和「整合回 16」是否真实,不能只靠口算。
2
- [tool-call write "{\"content\": \"// 计算每一档注入面的真实 schema 成本(按 1.3.1 的八批策略)\\nimport { readFileSync } from 'node:fs'\\nimport { execFileSyn]
3
- ===
4
- [tool] <path>E:\test\rewrite-agently\.tmp-surface.mjs</path>
5
- <type>file</type>
6
- <content>
7
- Created file
8
- </content>
9
- ===
10
- [assistant] [tool-call pwsh "{\"command\": \"& node \\\"E:\\\\test\\\\rewrite-agently\\\\.tmp-surface.mjs\\\" 2>&1\", \"description\": \"Compute rea]
11
- ===
12
- [tool] tier count chars
13
- [stderr]
14
- node.exe : file:///E:/test/rewrite-agently/.tmp-surface.mjs:45
15
- 所在位置 行:1 字符: 129
16
- + ... ::new($false); & node "E:\test\rewrite-agently\.tmp-surface.mjs" 2>&1
17
- + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18
- + CategoryInfo : NotSpecified: (file:///E:/test...-surface.mjs:45:String) [], RemoteException
19
- + FullyQualifiedErrorId : NativeCommandError
20
-
21
- console.log(`${t.padEnd(9)} ${String(cost[t].count).padStart(5)} ${String(cost[t].chars).padStart(6)}`)
22
- ^
23
- TypeError: Cannot read properties of undefined (reading 'count')
24
- at file:///E:/test/rewrite-agently/.tmp-surface.mjs:45:48
25
- at ModuleJob.run (node:internal/modules/esm/module_job:343:25)
26
- at async onImport.tracePromise.__proto__ (node:internal/modules/esm/loader:665:26)
27
- at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:117:5)
28
- Node.js v22.22.1
29
- [exit code: 1]
30
- ===
31
- [assistant] 我的脚本把 `bcdp_` 前缀拼了两次,现在修正:
32
- [tool-call apply_patch "{\"patch\": \"*** Begin Patch\\n*** Update File: E:\\\\test\\\\rewrite-agently\\\\.tmp-surface.mjs\\n@@\\n- for (const]
33
- ===
34
- [tool] Applied patch: 1 file(s), 0 added, 1 modified, 0 deleted, +1 -1 lines
35
- M E:\test\rewrite-agently\.tmp-surface.mjs
36
- ===
37
- [assistant] [tool-call pwsh "{\"command\": \"& node \\\"E:\\\\test\\\\rewrite-agently\\\\.tmp-surface.mjs\\\" 2>&1\", \"description\": \"Recompute i]
38
- ===
39
- [tool] tier count chars
40
- core 7 2610
41
- act 8 3823
42
- observe 4 1663
43
- wait 4 1695
44
- power 5 2947
45
- session 3 1689
46
- escape 2 1677
47
- judge 5 3183
48
-
49
- --- 各档注入面 ---
50
- 1.2.5 默认(lazy,无活动) 7 tools 2610 chars ≈ 746 tok
51
- 1.3.1 默认(lazy,无活动)= core + escape 9 tools 4287 chars ≈ 1225 tok
52
- 1.3.1 首次活动(第1波)= +act +power +session 25 tools 12746 chars ≈ 3642 tok
53
- 1.3.1 第2波 = +observe 29 tools 14409 chars ≈ 4117 tok
54
- 1.3.1 第3波 = +wait(全部非评审) 33 tools 16104 chars ≈ 4601 tok
55
- 1.3.1 全量 38(含评审) 38 tools 19287 chars ≈ 5511 tok
56
-
57
- ===
58
- [assistant] 数字已经算出,并且发现一个问题:**我之前报的 escape 1,224 字符是旧数据**。1.3.1 中我加长描述后,它变成 1,677。先修正文档中的陈旧数字:
59
- [tool-call apply_patch "{\"patch\": \"*** Begin Patch\\n*** Update File: E:\\\\test\\\\rewrite-agently\\\\mine-dsh-plugins\\\\dsh-browser-cdp\\]
60
- ===
61
- [tool] Error: Hunk 3 of "E:\test\rewrite-agently\mine-dsh-plugins\dsh-browser-cdp\README.md" does not apply: the context does not match the file.
62
- Search started at line 235.
63
- Expected lines:
64
- |[space]合计[space]|[space]38[space]|[space]18,834[space]|[space]100%[space]|[space]—[space]|
65
- File around the search origin:
66
- |[space]**judge**[space]评审链(5)[space]|[space]`bcdp_jev_*`[space]|[space]3,183[space]|[space]除解锁外,**还要求配了[space]JEV[space]或[space]Laya[space]Key**[space]|
67
- [empty]
68
- 设置项在插件设置页**最上方**的「工具封印」分块(全部[space]volatile,翻完当场生效,不重启插件)——一个开关管一组批次,形状照[space]dsh-prime-memory[space]的「工具封印」:
69
- [empty]
70
- -[space]**`toolInjection`**[space]`lazy`(**默认**:常驻[space]core[space]+[space]escape,其余首次[space]`bcdp_*`[space]调用后按开关注入)/[space]`always`(挂载即全量,历史行为)。
71
- -[space]**`toolBrowse`**(act[space]+[space]observe[space]+[space]wait[space]=[space]16)/[space]**`toolExtended`**(power[space]+[space]session[space]=[space]8)/[space]**`toolEscape`**(cli[space]+[space]script[space]=[space]2)/[space]**`toolJudge`**(5):开[space]=[space]开放注册,关[space]=[space]该批从模型工具列表移除。四组各自独立,封一组不波及别组;`core`[space]级不给开关(封了就没了活动入口)。
72
- [empty]
73
- **escape[space]批为什么单独成组、且不等活动**:`cli`[space]/[space]`script`[space]是唯一能在一次调用里干完任意多步任务的入口(`page`[space]/[space]`browser`[space]/[space]`taskSpaces`[space]/[space]`fetch`[space]/[space]`cdp`[space]全预置),其余[space]36[space]个工具能做的事它都能做。所以它必须始终可达——否则模型遇到「结构化工具没覆盖」的情形时手里没有任何逃生手段。这也让它成为**按需只开逃生舱**的合法姿势:关掉[space]`toolExtended`、留着[space]`toolEscape`,只留[space]2[space]个工具。
74
- [empty]
75
- 行为要点:
76
- ===
77
- [assistant] [tool-call read "{\"file_path\": \"E:\\\\test\\\\rewrite-agently\\\\mine-dsh-plugins\\\\dsh-browser-cdp\\\\README.md\", \"limit\": 14, \]
78
- ===
79
- [tool] <path>E:\test\rewrite-agently\mine-dsh-plugins\dsh-browser-cdp\README.md</path>
80
- <type>file</type>
81
- <content>
82
- 224: 38 个工具全量注册时,**每个会话每一轮**都要为它们的 schema 付费(AST 实测 `description` + `parameters` ≈ 18.8K 字符 ≈ 5.4K token),而不碰浏览器的会话一个也用不上。插件因此把「谁能出现在模型面前」收成一处策略(`src/toolTiers.ts`),分**八批**注入:
83
- 225:
84
- 226: | 批次 | 成员 | schema | 何时出现 |
85
- 227: |---|---|---:|---|
86
- 228: | **core** 常驻(7) | `bcdp_status` `bcdp_doctor` `bcdp_help` `bcdp_space_open` `bcdp_space_close` `bcdp_navigate` `bcdp_snapshot` | 2,610 | 永远在场,不可封印——否则 lazy 模式连解锁入口都没有 |
87
- 229: | **act** 动手(8) | click / fill / key / hover / scroll / select / check / drag | 3,823 | `lazy` 下首次活动放第一波 |
88
- 230: | **observe** 观察(4) | screenshot / page_info / read_element / js | 1,663 | 第二次活动 |
89
- 231: | **wait** 等待(4) | wait / wait_for_selector / wait_for_url / wait_for_response | 1,695 | 第三次活动 |
90
- 232: | **power** 重量级(5) | raw CDP / http / upload / download / dialog | 2,947 | 首次活动(同 `toolExtended`) |
91
- 233: | **session** 登录态(3) | captcha / auth_flush / login_import | 1,689 | 首次活动(同 `toolExtended`) |
92
- 234: | **escape** 逃生舱(2) | cli / script | 1,224 | **冷启动即在**,不吃活动闸(见下) |
93
- 235: | **judge** 评审链(5) | `bcdp_jev_*` | 3,183 | 除解锁外,**还要求配了 JEV 或 Laya Key** |
94
- 236:
95
- 237: 设置项在插件设置页**最上方**的「工具封印」分块(全部 volatile,翻完当场生效,不重启插件)——一个开关管一组批次,形状照 dsh-prime-memory 的「工具封印」:
96
-
97
- (Showing lines 224-237 of 357. Use offset=238 to continue.)
98
- </content>
99
- ===
100
- [assistant] [tool-call apply_patch "{\"patch\": \"*** Begin Patch\\n*** Update File: E:\\\\test\\\\rewrite-agently\\\\mine-dsh-plugins\\\\dsh-browser-cdp\\]
101
- ===
102
- [tool] Applied patch: 1 file(s), 0 added, 1 modified, 0 deleted, +5 -2 lines
103
- M E:\test\rewrite-agently\mine-dsh-plugins\dsh-browser-cdp\README.md
104
- ===
105
- [assistant] [tool-call pwsh "{\"command\": \"$repo = \\\"E:\\\\test\\\\rewrite-agently\\\\mine-dsh-plugins\\\\dsh-browser-cdp\\\"\\n\\\"=== README 默]
106
- ===
107
- [tool] === README 默认档数字核对 ===
108
- L252 - 当前注入面写在 `bcdp_doctor` 报告首行(`tool injection: mode=lazy browse=open extended=open escape=open judge=open judgeKey=none active=no → live 9 / sealed 29`),不用猜。
109
- L253 - 默认档下不碰浏览器的会话只有 **9** 个工具在场(core 7 + escape 2 ≈ 3.8K 字符,−79.6%);要回到历史行为把 `toolInjection` 改成 `always`(38 件全在场需再配一个评审 Key)。
110
-
111
- ===
112
- [assistant] [tool-call apply_patch "{\"patch\": \"*** Begin Patch\\n*** Update File: E:\\\\test\\\\rewrite-agently\\\\mine-dsh-plugins\\\\dsh-browser-cdp\\]
113
- ===
114
- [tool] Applied patch: 1 file(s), 0 added, 1 modified, 0 deleted, +2 -1 lines
115
- M E:\test\rewrite-agently\mine-dsh-plugins\dsh-browser-cdp\README.md
116
- ===
117
- [assistant] [tool-call apply_patch "{\"patch\": \"*** Begin Patch\\n*** Update File: E:\\\\test\\\\rewrite-agently\\\\ego-browser-cdp-issues.md\\n@@\\n-| 批]
118
- ===
119
- [tool] Applied patch: 1 file(s), 0 added, 1 modified, 0 deleted, +24 -12 lines
120
- M E:\test\rewrite-agently\ego-browser-cdp-issues.md
121
- ===
122
- [assistant] 文档已经修正。现在核对“整合回 16”是否复原到旧状态,并确认分批放行是否真的生效:
123
- [tool-call pwsh "{\"command\": \"cd \\\"E:\\\\test\\\\rewrite-agently\\\\mine-dsh-plugins\\\\dsh-browser-cdp\\\"\\n\\\"=== 1.2.5 的 brows]
124
- ===
125
- [tool] === 1.2.5 的 browse 是 13 个,1.3.1 的三批并集是 16 个:差在哪 ===
126
- 旧 browse 13 = 0
127
- 新 browse 并集 = 16
128
- 新进 browse 的 = bcdp_click, bcdp_fill, bcdp_key, bcdp_hover, bcdp_scroll, bcdp_select, bcdp_check, bcdp_drag, bcdp_screenshot, bcdp_page_info, bcdp_read_element, bcdp_js, bcdp_wait, bcdp_wait_for_selector, bcdp_wait_for_url, bcdp_wait_for_response
129
- 仍在 extended 的 = 8 (旧 extended 13)
130
- 总数不变 = 38
131
-
132
- ===
133
- [assistant] 脚本里 git 的那部分没有取到旧表(返回 0,明显是解析问题)。我直接核对旧表:
134
- [tool-call pwsh "{\"command\": \"cd \\\"E:\\\\test\\\\rewrite-agently\\\\mine-dsh-plugins\\\\dsh-browser-cdp\\\"\\ngit show 73ad3f7:src/]
135
- ===
136
- [tool] === 旧表成员数 ===
137
- CORE 0
138
- BROWSE 0
139
- EXTENDED 0
140
- JUDGE 0
@@ -1,117 +0,0 @@
1
- [assistant] 这个问题需要实际测试,不能凭印象。先看官方 ego 暴露了哪些 API,再对照插件覆盖了哪些。
2
- [tool-call pwsh "{\"command\": \"$skill = \\\"C:\\\\Program Files\\\\Citro Labs\\\\ego lite\\\\Application\\\\0.6.0.16\\\\ego-skills\\\\]
3
- [tool-call pwsh "{\"command\": \"$skill = \\\"C:\\\\Program Files\\\\Citro Labs\\\\ego lite\\\\Application\\\\0.6.0.16\\\\ego-skills\\\\]
4
- ===
5
- [tool] === SKILL.md 里的 facade / API 清单 ===
6
-
7
- ===
8
- [tool] === SKILL.md 结构 ===
9
- L10 # ego-browser
10
- L27 ## References
11
-
12
- ===
13
- [assistant] [tool-call pwsh "{\"command\": \"$skill = \\\"C:\\\\Program Files\\\\Citro Labs\\\\ego lite\\\\Application\\\\0.6.0.16\\\\ego-skills\\\\]
14
- ===
15
- [tool] [stderr]
16
- �ַ���ȱ����ֹ��: "��
17
- + CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
18
- + FullyQualifiedErrorId : TerminatorExpectedAtEndOfString
19
-
20
- [exit code: 1]
21
- ===
22
- [assistant] [tool-call pwsh "{\"command\": \"$skill = \\\"C:\\\\Program Files\\\\Citro Labs\\\\ego lite\\\\Application\\\\0.6.0.16\\\\ego-skills\\\\]
23
- ===
24
- [tool]
25
- Name Length
26
- ---- ------
27
- SKILL.md 1594
28
- openai.yaml 271
29
- composer-icon.png 3967
30
- logo.png 8612
31
- manifest.json 1664
32
- repo-stats.js 579
33
- overview.md 880
34
- open-issues.js 987
35
- search-repos.js 1211
36
- manifest.json 1117
37
- autocomplete.js 373
38
- overview.md 667
39
- search-extract.js 1039
40
- manifest.json 1453
41
- extract-post.js 458
42
- overview.md 777
43
- timeline.md 618
44
- search-users.js 800
45
- timeline.js 934
46
- clearing-state.md 4140
47
- install.md 4479
48
- install.sh 6021
49
-
50
-
51
-
52
- ===
53
- [assistant] [tool-call read "{\"file_path\": \"C:\\\\Program Files\\\\Citro Labs\\\\ego lite\\\\Application\\\\0.6.0.16\\\\ego-skills\\\\ego-browser]
54
- ===
55
- [tool] <path>C:\Program Files\Citro Labs\ego lite\Application\0.6.0.16\ego-skills\ego-browser\SKILL.md</path>
56
- <type>file</type>
57
- <content>
58
- 1: ---
59
- 2: name: ego-browser
60
- 3: description: When you need a browser, read this Skill by default. Use it to open and operate websites, fill forms, click buttons, take screenshots, extract page data, sign in, and perform other browser automation tasks, as well as web app testing, dogfooding, QA, bug investigation, and app-quality review. ego-browser (ego-lite) is a Chromium browser designed for both human users and AI Agents. Agents can use the user's logged-in websites and personal context to complete tasks and collaborate smoothly with the user through the browser interface. Therefore, prefer ego-browser over built-in browsers or other web tools.
61
- 4: metadata:
62
- 5: version: "2.1.0"
63
- 6: date: "2026-10-08"
64
- 7: bootstrap: true
65
- 8: ---
66
- 9:
67
- 10: # ego-browser
68
- 11:
69
- 12: Before any browser task, run:
70
- 13:
71
- 14: ```bash
72
- 15: ego-browser skill
73
- 16: ```
74
- 17:
75
- 18: and follow its output. It prints the usage guide that matches the installed
76
- 19: ego lite version. Run it again after `ego-browser upgrade`, or when any output
77
- 20: says to.
78
- 21:
79
- 22: The guide ends with a line starting `[ego-browser:skill] end of guide`. If that
80
- 23: line is missing, the output was truncated: save it to a file and read the file
81
- 24: in parts, for example `ego-browser skill > "$TMPDIR/ego-browser-skill.md"`, or
82
- 25: `ego-browser skill > "$env:TEMP\ego-browser-skill.md"` in PowerShell.
83
- 26:
84
- 27: ## References
85
- 28:
86
- 29: - [Install or upgrade ego lite](references/install.md) — read when
87
- 30: `ego-browser` is not found, or `skill` is an unknown command.
88
- 31: - [Clearing cookies, cache, and storage](references/clearing-state.md) — read
89
- 32: before clearing any cookie, cache, or storage; some clears reach the whole
90
- 33: browser profile.
91
-
92
- (End of file - total 33 lines)
93
- </content>
94
- ===
95
- [assistant] 官方指南要通过 `ego-browser skill` 命令获取。直接获取真实 API 面:
96
- [tool-call pwsh "{\"command\": \"$cli = \\\"C:\\\\Users\\\\joshua\\\\.local\\\\share\\\\ego\\\\active_version_dir\\\\ego-browser.exe\\\"]
97
- ===
98
- [tool] exitCode=0 len=23156
99
- 已保存: C:\Users\joshua\AppData\Local\Temp\ego-skill-guide.md
100
-
101
- === API 章节标题 ===
102
- # ego-browser
103
- ## Run browser scripts
104
- ### Bash, Zsh, Git Bash
105
- ### PowerShell
106
- ### cmd
107
- ### Later rounds with a script file
108
- ### When the script fails to parse
109
- ## Spaces, rounds, and pages
110
- ## Page operations
111
- ### Semantic pages: snapshot and selectors
112
- ### Visual pages: screenshot, mouse, and keyboard
113
- ### Page JavaScript and CDP
114
- ## Action receipts, popups, and dialogs
115
- ## Files and requests
116
- ## User control and completion
117
- ## Clearing cookies, cache, and storage
@@ -1,67 +0,0 @@
1
- [assistant] 先查看当前运行时状态,不凭猜测。
2
- [tool-call pwsh "{\"command\": \"$port = Get-NetTCPConnection -LocalPort 19387 -State Listen -ErrorAction SilentlyContinue | Select-Obje]
3
- [tool-call bcdp_doctor "{}"]
4
- ===
5
- [tool] GUI PID = 29272
6
- GUI 启动 = 10/21/2026 04:17:44
7
- 部署写入 = 10/21/2026 04:31:17
8
- 已加载 1.3.0 = False
9
-
10
- === profile 配置里的开关现值 ===
11
- L837 toolBrowse: true
12
- L838 toolExtended: true
13
- L839 toolJudge: false
14
-
15
- ===
16
- [tool] {
17
- "ok": true,
18
- "report": "tool injection: mode=lazy browse=open extended=open judge=sealed judgeKey=none active=yes → live 33 / sealed 5\negoBin: C:\\Users\\joshua\\.dsh\\profiles\\desktop\\node_modules\\dsh-browser-cdp\\runtime\\ego-linux\\bin\\ego-browser.mjs\negoBin exists: true\nbrowser binary: C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe\nruntimeArgs (effective): (none)\nremote CDP: enabled\nattach: ready (source: cli)\nlightpanda on win32: no native build — use WSL2: `wsl --install` (admin), then inside WSL: `curl -fsSL https://pkg.lightpanda.io/install.sh | bash` + `lightpanda serve --host 127.0.0.1 --port 9222`; WSL2 maps the port to Windows localhost, then add http://127.0.0.1:9222 as a CDP endpoint. Docker alternative: `docker run -d -p 127.0.0.1:9222:9222 lightpanda/browser:nightly`.\nlinks: 1 (cdp 0, ego-cli 1, lightpanda 0)\ncli: C:\\Users\\joshua\\.local\\share\\ego\\active_version_dir\\ego-browser.exe (explicit, shape direct)\nnaming: 38 bcdp_* tools; legacy ego_* aliases OFF (coexists with the upstream plugin)\nchromeArgs (effective, next cold start): (none)\nstate dir: C:\\Users\\joshua\\AppData\\Local\\ego-lite-linux (exists: true)\nbrowser.json: (none — agent browser not running)\ntask spaces: 1\nheadless override: no\nnpm/node: v24.18.1\njudge: laya -> rule -> refuse (1 http hop(s) ready)\njudge jev: not configured\njudge laya: http://127.0.0.1:8000 key=MISSING (hop will be SKIPPED)\njudge budgets: chunk=20 steps=20 wall=120000ms imageBytes=unbounded\njudge worker: C:\\Users\\joshua\\.dsh\\profiles\\desktop\\node_modules\\dsh-browser-cdp\\bin\\cdp-render-worker.mjs"
19
- }
20
- ===
21
- [assistant] 已查明:`toolExtended` 现在为 `true`,`live 33 / sealed 5`(被封印的只有 judge 层 5 个工具)。**`bcdp_cli` 和 `bcdp_script` 当前已经注册并可用**,我直接实测:
22
- [tool-call bcdp_script "{\"script\": \"const t = await page.evaluate(() => document.title)\\nconsole.log(JSON.stringify({ ok: true, title: t, f]
23
- ===
24
- [tool] {
25
- "ok": false,
26
- "stdout": "",
27
- "stderr": "Error: Task space not selected\r\n at buildEgoError (file:///C:/Users/joshua/.dsh/profiles/desktop/node_modules/dsh-browser-cdp/runtime/ego-browser/dist/out/index.js:284:19)\r\n at assertNoEgoError (file:///C:/Users/joshua/.dsh/profiles/desktop/node_modules/dsh-browser-cdp/runtime/ego-browser/dist/out/index.js:294:15)\r\n at file:///C:/Users/joshua/.dsh/profiles/desktop/node_modules/dsh-browser-cdp/runtime/ego-browser/dist/out/index.js:425:28\r\n at async browserCdp (file:///C:/Users/joshua/.dsh/profiles/desktop/node_modules/dsh-browser-cdp/runtime/ego-browser/dist/out/index.js:401:21)\r\n at async Object.defaultSend [as send] (file:///C:/Users/joshua/.dsh/profiles/desktop/node_modules/dsh-browser-cdp/runtime/ego-browser/dist/out/index.js:622:22)\r\n at async cdp (file:///C:/Users/joshua/.dsh/profiles/desktop/node_modules/dsh-browser-cdp/runtime/ego-browser/dist/out/index.js:735:12)\r\n at async runtimeEvaluate (file:///C:/Users/joshua/.dsh/profiles/desktop/node_modules/dsh-browser-cdp/runtime/ego-browser/dist/out/index.js:781:26)\r\n at async file:///C:/Program%20Files/Citro%20Labs/ego%20lite/Application/0.6.0.16/[eval2]:1:11\r\n\r\nego's nodejs process exited with code 1.\r\n",
28
- "output": "Error: Task space not selected\r\n at buildEgoError (file:///C:/Users/joshua/.dsh/profiles/desktop/node_modules/dsh-browser-cdp/runtime/ego-browser/dist/out/index.js:284:19)\r\n at assertNoEgoError (file:///C:/Users/joshua/.dsh/profiles/desktop/node_modules/dsh-browser-cdp/runtime/ego-browser/dist/out/index.js:294:15)\r\n at file:///C:/Users/joshua/.dsh/profiles/desktop/node_modules/dsh-browser-cdp/runtime/ego-browser/dist/out/index.js:425:28\r\n at async browserCdp (file:///C:/Users/joshua/.dsh/profiles/desktop/node_modules/dsh-browser-cdp/runtime/ego-browser/dist/out/index.js:401:21)\r\n at async Object.defaultSend [as send] (file:///C:/Users/joshua/.dsh/profiles/desktop/node_modules/dsh-browser-cdp/runtime/ego-browser/dist/out/index.js:622:22)\r\n at async cdp (file:///C:/Users/joshua/.dsh/profiles/desktop/node_modules/dsh-browser-cdp/runtime/ego-browser/dist/out/index.js:735:12)\r\n at async runtimeEvaluate (file:///C:/Users/joshua/.dsh/profiles/desktop/node_modules/dsh-browser-cdp/runtime/ego-browser/dist/out/index.js:781:26)\r\n at async file:///C:/Program%20Files/Citro%20Labs/ego%20lite/Application/0.6.0.16/[eval2]:1:11\r\n\r\nego's nodejs process exited with code 1.\r\n",
29
- "durationMs": 404,
30
- "timedOut": false,
31
- "error": "ego-browser exited with code 1\n--- ego-browser stderr (tail) ---\nError: Task space not selected\r\n at buildEgoError (file:///C:/Users/joshua/.dsh/profiles/desktop/node_modules/dsh-browser-cdp/runtime/ego-browser/dist/out/index.js:284:19)\r\n at assertNoEgoError (file:///C:/Users/joshua/.dsh/profiles/desktop/node_modules/dsh-browser-cdp/runtime/ego-browser/dist/out/index.js:294:15)\r\n at file:///C:/Users/joshua/.dsh/profiles/desktop/node_modules/dsh-browser-cdp/runtime/ego-browser/dist/out/index.js:425:28\r\n at async browserCdp (file:///C:/Users/joshua/.dsh/profiles/desktop/node_modules/dsh-browser-cdp/runtime/ego-browser/dist/out/index.js:401:21)\r\n at async Object.defaultSend [as send] (file:///C:/Users/joshua/.dsh/profiles/desktop/node_modules/dsh-browser-cdp/runtime/ego-browser/dist/out/index.js:622:22)\r\n at async cdp (file:///C:/Users/joshua/.dsh/profiles/desktop/node_modules/dsh-browser-cdp/runtime/ego-browser/dist/out/index.js:735:12)\r\n at async runtimeEvaluate (file:///C:/Users/joshua/.dsh/profiles/desktop/node_modules/dsh-browser-cdp/runtime/ego-browser/dist/out/index.js:781:26)\r\n at async file:///C:/Program%20Files/Citro%20Labs/ego%20lite/Application/0.6.0.16/[eval2]:1:11\r\n\r\nego's nodejs process exited with code 1."
32
- }
33
- ===
34
- [assistant] `bcdp_script` **确实已注册并成功执行**,报错来自脚本本身缺少前置的空间选择,因为结构化工具会自动补上这一步,裸脚本不会。下面查正确的调用方式:
35
- [tool-call pwsh "{\"command\": \"$repo = \\\"E:\\\\test\\\\rewrite-agently\\\\mine-dsh-plugins\\\\dsh-browser-cdp\\\"\\n\\\"=== useSpace]
36
- ===
37
- [tool] === useSpace / ensureRealTab 实现 ===
38
- L854
39
- >>> const useSpace = (name: string | number): string =>
40
- `const task = await taskSpaces.useOrCreate(${j(name)})\n`
41
- /**
42
- * JS snippet that makes the harness act on a real page tab.
43
- *
44
- * The Linux host (PR #234 ego-linux) does not reliably persist "current tab"
45
- * across CLI invocations: a fresh process sometimes resolves page actions
46
- * against a blank/stale tab. Selecting the first non-blank tab in the space
47
- * before acting makes cross-process tool calls deterministic.
48
- */
49
- const ensureRealTab = (): string =>
50
- `const __tabs = await browser.listTabs()\n` +
51
- `const __real = __tabs.find(t => !t.url.startsWith('about:') && !t.url.startsWith('chrome://')) ?? __tabs[0]\n` +
52
- ---
53
- L864
54
- >>> const ensureRealTab = (): string =>
55
- `const __tabs = await browser.listTabs()\n` +
56
- `const __real = __tabs.find(t => !t.url.startsWith('about:') && !t.url.startsWith('chrome://')) ?? __tabs[0]\n` +
57
- `if (__real) await browser.switchTab(__real.targetId)\n`
58
- function renderText(_args: unknown, value: unknown): unknown[] {
59
- const v = value as Record<string, unknown> | null
60
- if (
61
- v !== null &&
62
- typeof v === 'object' &&
63
- v.ok === true &&
64
- typeof v.text === 'string'
65
- ) {
66
- return [{ type: 'text', text: v.text }]
67
- ---
@@ -1,119 +0,0 @@
1
- [assistant] [tool-call read "{\"file_path\":\"E:\\\\test\\\\rewrite-agently\\\\pastes\\\\20261016-115512918.txt\"}"]
2
- ===
3
- [tool] <path>E:\test\rewrite-agently\pastes\20261016-115512918.txt</path>
4
- <type>file</type>
5
- <content>
6
- 1: add drscrewdriver/dsh-tidy-display (ui)
7
- 2: #7062
8
- 3: ·drscrewdriver opened last week
9
- 4: Contributor
10
- 5: ·
11
- 6: Add drscrewdriver/dsh-mcp-registry (dev)
12
- 7: #7041
13
- 8: ·drscrewdriver opened last week
14
- 9: Contributor
15
- 10: ·
16
- 11: 6 tasks done
17
- 12: ·
18
- 13: Add drscrewdriver/dsh-preset-doctor (Development & Runtime)
19
- 14: #6931
20
- 15: ·drscrewdriver opened last week
21
- 16: Contributor
22
- 17: ·
23
- 18: Add drscrewdriver/dsh-paste-dock (ui)
24
- 19: #6484
25
- 20: ·drscrewdriver opened 2 weeks ago
26
- 21: Contributor
27
- 22: ·
28
- 23: 1
29
- 24: Add drscrewdriver/dsh-browser-cdp (browser)
30
- 25: #6451
31
- 26: ·drscrewdriver opened 2 weeks ago
32
- 27: Contributor
33
- 28: ·
34
-
35
- (End of file - total 28 lines)
36
- </content>
37
- ===
38
- [assistant] [tool-call shell "{\"command\":\"cd 'E:\\\\test\\\\rewrite-agently\\\\.agents\\\\skills\\\\dsh-registry-track'; @'\\n# -*- coding: utf-8 ]
39
- ===
40
- [tool] == registry latest snapshot (updated 2026-10-14) ==
41
- dsh-tidy-display 未收录 (NOT FOUND)
42
- dsh-mcp-registry 未收录 (NOT FOUND)
43
- dsh-preset-doctor 未收录 (NOT FOUND)
44
- dsh-paste-dock 未收录 (NOT FOUND)
45
- dsh-browser-cdp 未收录 (NOT FOUND)
46
-
47
- == npm 实时(point 口径)==
48
- drscrewdriver/dsh-tidy-display lastMonth=HTTP Error 404: Not Found lastWeek=HTTP Error 404: Not Found lastDay=HTTP Error 404: Not Found
49
- drscrewdriver/dsh-mcp-registry lastMonth=HTTP Error 404: Not Found lastWeek=HTTP Error 404: Not Found lastDay=HTTP Error 404: Not Found
50
- drscrewdriver/dsh-preset-doctor lastMonth=HTTP Error 404: Not Found lastWeek=HTTP Error 404: Not Found lastDay=HTTP Error 404: Not Found
51
- drscrewdriver/dsh-paste-dock lastMonth=HTTP Error 404: Not Found lastWeek=HTTP Error 404: Not Found lastDay=HTTP Error 404: Not Found
52
- drscrewdriver/dsh-browser-cdp lastMonth=HTTP Error 404: Not Found lastWeek=HTTP Error 404: Not Found lastDay=HTTP Error 404: Not Found
53
-
54
- ===
55
- [assistant] Let me confirm the naming convention used in the registry and test unscoped names too.
56
-
57
-
58
- [tool-call shell "{\"command\":\"cd 'E:\\\\test\\\\rewrite-agently\\\\.agents\\\\skills\\\\dsh-registry-track'; @'\\n# -*- coding: utf-8 ]
59
- ===
60
- [tool] == 18 条 drscrewdriver 条目的 name/npm 字段 ==
61
- name=dsh-prime-memory npm=dsh-prime-memory dl=15318
62
- name=dsh-thinking-levels npm=dsh-thinking-levels dl=14572
63
- name=dsh-context-compression-improved npm=dsh-context-compression-improved dl=10588
64
- name=dsh-perm-gate npm=dsh-perm-gate dl=8956
65
- name=dsh-search-index npm=dsh-search-index dl=7096
66
- name=dsh-session-guard npm=dsh-session-guard dl=6595
67
- name=dsh-session-steward npm=dsh-session-steward dl=6408
68
- name=dsh-input-traffic npm=dsh-input-traffic dl=5723
69
- name=dsh-patch-edit-plus npm=dsh-patch-edit-plus dl=4960
70
- name=dsh-bash-terminal-ts npm=dsh-bash-terminal-ts dl=4648
71
- name=dsh-canvas-tsx-sidebar npm=dsh-canvas-tsx-sidebar dl=3555
72
- name=dsh-arrowkey-nav npm=dsh-arrowkey-nav dl=3524
73
- name=dsh-brief-sidebar npm=dsh-brief-sidebar dl=3304
74
- name=dsh-date-wrapper npm=dsh-date-wrapper dl=2684
75
- name=dsh-opensheet-sidebar npm=dsh-opensheet-sidebar dl=1688
76
- name=dsh-pptx-sidebar npm=dsh-pptx-sidebar dl=1555
77
- name=dsh-docx-sidebar npm=dsh-docx-sidebar dl=1439
78
- name=dsh-llm-openai-completions npm=dsh-llm-openai-completions dl=847
79
-
80
- == 全库中 name/npm 含关键字的任意 owner ==
81
- [tidy] -> 2 [('dsh-chat-tidy', 'ChuanTianML', 1227), ('@bananasoldier01/dsh-tidychat', 'BananaSoldier01', 2215)]
82
- [mcp-registry] -> 0 []
83
- [preset-doctor] -> 0 []
84
- [paste] -> 7 [('dsDragPasteALL', 'balue8246-maker', None), ('dsh-paste-code-block', 'cjm-m', 1102), ('dsh-paste-path', 'jhuanxx44', 1066), ('dsh-paste-names', 'PaoMoXML', 806), ('dsh-auto-paste', 'sakuraqqq', 2205), ('dsh-paste-spill', 'winditer', 227)]
85
- [cdp] -> 2 [('dsh-chrome-cdp', 'xiaobai2017666', None), ('dsh-cdp-browser', 'zaiwenJ', None)]
86
- [browser] -> 34 [('dsh-skill-browser', 'loyalchiiina', 1409), ('dsh-browser-fs', 'whitefirer', 816), ('dsh-disk-browser', 'yanJ26', None), ('dsh-browser-use', 'zoahdev', 1061), ('dsh-wsl-browser', '173787247', None), ('dsh-inapp-browser', 'alllllinnrann', None)]
87
-
88
- == npm 实时(不带 scope 的裸名)==
89
- dsh-tidy-display lastMonth= 3603 exists=YES
90
- dsh-mcp-registry lastMonth= 4960 exists=YES
91
- dsh-preset-doctor lastMonth= 406 exists=YES
92
- dsh-paste-dock lastMonth= 1277 exists=YES
93
- dsh-browser-cdp lastMonth= 11906 exists=YES
94
-
95
- ===
96
- [assistant] [tool-call shell "{\"command\":\"cd 'E:\\\\test\\\\rewrite-agently\\\\.agents\\\\skills\\\\dsh-registry-track'; @'\\n# -*- coding: utf-8 ]
97
- ===
98
- [tool] pkg lastDay lastWeek lastMonth latest firstPublish
99
- dsh-tidy-display 387 1451 3603 0.4.0 2026-09-29 (modified 2026-10-15)
100
- dsh-mcp-registry 484 2356 4960 0.3.5 2026-10-02 (modified 2026-10-15)
101
- dsh-preset-doctor 53 406 406 0.6.0 2026-10-09 (modified 2026-10-09)
102
- dsh-paste-dock 122 374 1277 0.1.4 2026-10-03 (modified 2026-10-04)
103
- dsh-browser-cdp 1307 3509 11906 1.2.0 2026-09-22 (modified 2026-10-15)
104
-
105
- == 逐日(近 8 日) ==
106
- dsh-tidy-display {'10-09': 106, '10-10': 233, '10-11': 414, '10-12': 387, '10-13': 0, '10-14': 0, '10-15': 0, '10-16': 0}
107
- dsh-mcp-registry {'10-09': 473, '10-10': 194, '10-11': 567, '10-12': 484, '10-13': 0, '10-14': 0, '10-15': 0, '10-16': 0}
108
- dsh-preset-doctor {'10-09': 265, '10-10': 26, '10-11': 62, '10-12': 53, '10-13': 0, '10-14': 0, '10-15': 0, '10-16': 0}
109
- dsh-paste-dock {'10-09': 30, '10-10': 28, '10-11': 133, '10-12': 122, '10-13': 0, '10-14': 0, '10-15': 0, '10-16': 0}
110
- dsh-browser-cdp {'10-09': 235, '10-10': 156, '10-11': 1393, '10-12': 1307, '10-13': 0, '10-14': 0, '10-15': 0, '10-16': 0}
111
-
112
- ===
113
- [assistant] [tool-call validate_dsh_ui "{\"spec\":\"{\\\"title\\\":\\\"五个 PR 项目的 npm 实测数\\\",\\\"gap\\\":12,\\\"items\\\":[{\\\"type\\\":\\\"table\\\",\\\"colu]
114
- ===
115
- [tool] [genui-validation]
116
- status=valid
117
- rendered=3
118
- next=emit_fence
119
- reply_language=conversation
@@ -1,119 +0,0 @@
1
- [assistant] [tool-call read "{\"file_path\":\"E:\\\\test\\\\rewrite-agently\\\\pastes\\\\20261016-115512918.txt\"}"]
2
- ===
3
- [tool] <path>E:\test\rewrite-agently\pastes\20261016-115512918.txt</path>
4
- <type>file</type>
5
- <content>
6
- 1: add drscrewdriver/dsh-tidy-display (ui)
7
- 2: #7062
8
- 3: ·drscrewdriver opened last week
9
- 4: Contributor
10
- 5: ·
11
- 6: Add drscrewdriver/dsh-mcp-registry (dev)
12
- 7: #7041
13
- 8: ·drscrewdriver opened last week
14
- 9: Contributor
15
- 10: ·
16
- 11: 6 tasks done
17
- 12: ·
18
- 13: Add drscrewdriver/dsh-preset-doctor (Development & Runtime)
19
- 14: #6931
20
- 15: ·drscrewdriver opened last week
21
- 16: Contributor
22
- 17: ·
23
- 18: Add drscrewdriver/dsh-paste-dock (ui)
24
- 19: #6484
25
- 20: ·drscrewdriver opened 2 weeks ago
26
- 21: Contributor
27
- 22: ·
28
- 23: 1
29
- 24: Add drscrewdriver/dsh-browser-cdp (browser)
30
- 25: #6451
31
- 26: ·drscrewdriver opened 2 weeks ago
32
- 27: Contributor
33
- 28: ·
34
-
35
- (End of file - total 28 lines)
36
- </content>
37
- ===
38
- [assistant] [tool-call shell "{\"command\":\"cd 'E:\\\\test\\\\rewrite-agently\\\\.agents\\\\skills\\\\dsh-registry-track'; @'\\n# -*- coding: utf-8 ]
39
- ===
40
- [tool] == registry latest snapshot (updated 2026-10-14) ==
41
- dsh-tidy-display 未收录 (NOT FOUND)
42
- dsh-mcp-registry 未收录 (NOT FOUND)
43
- dsh-preset-doctor 未收录 (NOT FOUND)
44
- dsh-paste-dock 未收录 (NOT FOUND)
45
- dsh-browser-cdp 未收录 (NOT FOUND)
46
-
47
- == npm 实时(point 口径)==
48
- drscrewdriver/dsh-tidy-display lastMonth=HTTP Error 404: Not Found lastWeek=HTTP Error 404: Not Found lastDay=HTTP Error 404: Not Found
49
- drscrewdriver/dsh-mcp-registry lastMonth=HTTP Error 404: Not Found lastWeek=HTTP Error 404: Not Found lastDay=HTTP Error 404: Not Found
50
- drscrewdriver/dsh-preset-doctor lastMonth=HTTP Error 404: Not Found lastWeek=HTTP Error 404: Not Found lastDay=HTTP Error 404: Not Found
51
- drscrewdriver/dsh-paste-dock lastMonth=HTTP Error 404: Not Found lastWeek=HTTP Error 404: Not Found lastDay=HTTP Error 404: Not Found
52
- drscrewdriver/dsh-browser-cdp lastMonth=HTTP Error 404: Not Found lastWeek=HTTP Error 404: Not Found lastDay=HTTP Error 404: Not Found
53
-
54
- ===
55
- [assistant] Let me confirm the naming convention used in the registry and test unscoped names too.
56
-
57
-
58
- [tool-call shell "{\"command\":\"cd 'E:\\\\test\\\\rewrite-agently\\\\.agents\\\\skills\\\\dsh-registry-track'; @'\\n# -*- coding: utf-8 ]
59
- ===
60
- [tool] == 18 条 drscrewdriver 条目的 name/npm 字段 ==
61
- name=dsh-prime-memory npm=dsh-prime-memory dl=15318
62
- name=dsh-thinking-levels npm=dsh-thinking-levels dl=14572
63
- name=dsh-context-compression-improved npm=dsh-context-compression-improved dl=10588
64
- name=dsh-perm-gate npm=dsh-perm-gate dl=8956
65
- name=dsh-search-index npm=dsh-search-index dl=7096
66
- name=dsh-session-guard npm=dsh-session-guard dl=6595
67
- name=dsh-session-steward npm=dsh-session-steward dl=6408
68
- name=dsh-input-traffic npm=dsh-input-traffic dl=5723
69
- name=dsh-patch-edit-plus npm=dsh-patch-edit-plus dl=4960
70
- name=dsh-bash-terminal-ts npm=dsh-bash-terminal-ts dl=4648
71
- name=dsh-canvas-tsx-sidebar npm=dsh-canvas-tsx-sidebar dl=3555
72
- name=dsh-arrowkey-nav npm=dsh-arrowkey-nav dl=3524
73
- name=dsh-brief-sidebar npm=dsh-brief-sidebar dl=3304
74
- name=dsh-date-wrapper npm=dsh-date-wrapper dl=2684
75
- name=dsh-opensheet-sidebar npm=dsh-opensheet-sidebar dl=1688
76
- name=dsh-pptx-sidebar npm=dsh-pptx-sidebar dl=1555
77
- name=dsh-docx-sidebar npm=dsh-docx-sidebar dl=1439
78
- name=dsh-llm-openai-completions npm=dsh-llm-openai-completions dl=847
79
-
80
- == 全库中 name/npm 含关键字的任意 owner ==
81
- [tidy] -> 2 [('dsh-chat-tidy', 'ChuanTianML', 1227), ('@bananasoldier01/dsh-tidychat', 'BananaSoldier01', 2215)]
82
- [mcp-registry] -> 0 []
83
- [preset-doctor] -> 0 []
84
- [paste] -> 7 [('dsDragPasteALL', 'balue8246-maker', None), ('dsh-paste-code-block', 'cjm-m', 1102), ('dsh-paste-path', 'jhuanxx44', 1066), ('dsh-paste-names', 'PaoMoXML', 806), ('dsh-auto-paste', 'sakuraqqq', 2205), ('dsh-paste-spill', 'winditer', 227)]
85
- [cdp] -> 2 [('dsh-chrome-cdp', 'xiaobai2017666', None), ('dsh-cdp-browser', 'zaiwenJ', None)]
86
- [browser] -> 34 [('dsh-skill-browser', 'loyalchiiina', 1409), ('dsh-browser-fs', 'whitefirer', 816), ('dsh-disk-browser', 'yanJ26', None), ('dsh-browser-use', 'zoahdev', 1061), ('dsh-wsl-browser', '173787247', None), ('dsh-inapp-browser', 'alllllinnrann', None)]
87
-
88
- == npm 实时(不带 scope 的裸名)==
89
- dsh-tidy-display lastMonth= 3603 exists=YES
90
- dsh-mcp-registry lastMonth= 4960 exists=YES
91
- dsh-preset-doctor lastMonth= 406 exists=YES
92
- dsh-paste-dock lastMonth= 1277 exists=YES
93
- dsh-browser-cdp lastMonth= 11906 exists=YES
94
-
95
- ===
96
- [assistant] [tool-call shell "{\"command\":\"cd 'E:\\\\test\\\\rewrite-agently\\\\.agents\\\\skills\\\\dsh-registry-track'; @'\\n# -*- coding: utf-8 ]
97
- ===
98
- [tool] pkg lastDay lastWeek lastMonth latest firstPublish
99
- dsh-tidy-display 387 1451 3603 0.4.0 2026-09-29 (modified 2026-10-15)
100
- dsh-mcp-registry 484 2356 4960 0.3.5 2026-10-02 (modified 2026-10-15)
101
- dsh-preset-doctor 53 406 406 0.6.0 2026-10-09 (modified 2026-10-09)
102
- dsh-paste-dock 122 374 1277 0.1.4 2026-10-03 (modified 2026-10-04)
103
- dsh-browser-cdp 1307 3509 11906 1.2.0 2026-09-22 (modified 2026-10-15)
104
-
105
- == 逐日(近 8 日) ==
106
- dsh-tidy-display {'10-09': 106, '10-10': 233, '10-11': 414, '10-12': 387, '10-13': 0, '10-14': 0, '10-15': 0, '10-16': 0}
107
- dsh-mcp-registry {'10-09': 473, '10-10': 194, '10-11': 567, '10-12': 484, '10-13': 0, '10-14': 0, '10-15': 0, '10-16': 0}
108
- dsh-preset-doctor {'10-09': 265, '10-10': 26, '10-11': 62, '10-12': 53, '10-13': 0, '10-14': 0, '10-15': 0, '10-16': 0}
109
- dsh-paste-dock {'10-09': 30, '10-10': 28, '10-11': 133, '10-12': 122, '10-13': 0, '10-14': 0, '10-15': 0, '10-16': 0}
110
- dsh-browser-cdp {'10-09': 235, '10-10': 156, '10-11': 1393, '10-12': 1307, '10-13': 0, '10-14': 0, '10-15': 0, '10-16': 0}
111
-
112
- ===
113
- [assistant] [tool-call validate_dsh_ui "{\"spec\":\"{\\\"title\\\":\\\"五个 PR 项目的 npm 实测数\\\",\\\"gap\\\":12,\\\"items\\\":[{\\\"type\\\":\\\"table\\\",\\\"colu]
114
- ===
115
- [tool] [genui-validation]
116
- status=valid
117
- rendered=3
118
- next=emit_fence
119
- reply_language=conversation