dsh-context-compression-improved 0.10.5 → 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/CHANGELOG.zh.md +9 -0
- package/docs/shallow-teaching-preset-template.md +46 -0
- package/package.json +5 -5
- package/packages/selector/dsh.plugin.json +1 -1
- package/packages/selector/lib/client.d.ts +8 -0
- package/packages/selector/lib/client.js +212 -3
- package/packages/selector/lib/index.js +1 -1
- package/packages/selector/lib/profiles.d.ts +34 -0
- package/packages/selector/lib/pruner.d.ts +55 -0
- package/packages/selector/lib/pruner.js +1925 -303
- package/packages/selector/lib/savings-integral.js +126 -3
- package/packages/selector/lib/tool-result.js +9 -1
- package/packages/selector/package.json +1 -1
- package/packages/selector/src/client/CompressionProfileControls.tsx +33 -0
- package/packages/selector/src/client/CompressionProfileSelector.tsx +2 -0
- package/packages/selector/src/client/decode.ts +5 -1
- package/packages/selector/src/client/index.ts +4 -0
- package/packages/selector/src/client/locales/de.ts +7 -0
- package/packages/selector/src/client/locales/es.ts +7 -0
- package/packages/selector/src/client/locales/fr.ts +7 -0
- package/packages/selector/src/client/locales/it.ts +7 -0
- package/packages/selector/src/client/locales/ja.ts +7 -0
- package/packages/selector/src/client/locales/ko.ts +7 -0
- package/packages/selector/src/client/locales/ru.ts +7 -0
- package/packages/selector/src/client/locales.ts +14 -0
- package/packages/selector/src/client/monitor-fab.ts +14 -0
- package/packages/selector/src/client/settings-section.tsx +9 -2
- package/packages/selector/src/profiles.ts +103 -0
- package/packages/selector/src/pruner.ts +310 -4
- package/packages/selector/src/runtime/audit.ts +1 -0
- package/packages/selector/src/runtime/config.ts +88 -1
- package/packages/selector/src/runtime/fold-router.ts +143 -0
- package/packages/selector/src/runtime/monitor.ts +31 -0
- package/packages/selector/src/runtime/reducers.ts +1 -1
- package/packages/selector/src/runtime/sediment-card.ts +126 -0
- package/packages/selector/src/runtime/sediment-clock.ts +87 -0
- package/packages/selector/src/runtime/sediment-guard.ts +136 -0
- package/packages/selector/src/runtime/sediment-publish.ts +144 -0
- package/packages/selector/src/runtime/sediment-span.ts +170 -0
- package/packages/selector/src/runtime/sediment.ts +209 -0
- package/packages/selector/src/runtime/shallow-tools.ts +342 -0
- package/packages/selector/src/runtime/tool-names.ts +6 -0
- package/packages/selector/src/runtime/triage/masks.ts +128 -0
- package/packages/selector/src/runtime/triage/shallow.ts +132 -0
- package/packages/selector/src/runtime/triage/signals.ts +167 -0
- package/packages/selector/src/runtime/triage/types.ts +125 -0
- package/packages/selector/src/runtime/types.ts +28 -0
- package/packages/selector/tests/fixtures/sediment-pool/52adc205-cloud-5.orig.txt +231 -0
- package/packages/selector/tests/fixtures/sediment-pool/95fcba5d-cloud-25.orig.txt +236 -0
- package/packages/selector/tests/fixtures/sediment-pool/95fcba5d-cloud-38.orig.txt +220 -0
- package/packages/selector/tests/fixtures/sediment-pool/95fcba5d-cloud-42.orig.txt +140 -0
- package/packages/selector/tests/fixtures/sediment-pool/95fcba5d-cloud-53.orig.txt +117 -0
- package/packages/selector/tests/fixtures/sediment-pool/95fcba5d-local-10.orig.txt +67 -0
- package/packages/selector/tests/fixtures/sediment-pool/a7a767c0-cloud-45.orig.txt +119 -0
- package/packages/selector/tests/fixtures/sediment-pool/a7a767c0-cloud-49.orig.txt +119 -0
- package/packages/selector/tests/fixtures/sediment-pool/a7a767c0-cloud-63.orig.txt +131 -0
- package/packages/selector/tests/fixtures/sediment-pool/a7a767c0-cloud-75.orig.txt +196 -0
- package/packages/selector/tests/fixtures/sediment-pool/a7a767c0-cloud-76.orig.txt +71 -0
- package/packages/selector/tests/fixtures/sediment-pool/a7a767c0-cloud-85.orig.txt +126 -0
- package/packages/selector/tests/fixtures/sediment-pool/a7a767c0-cloud-86.orig.txt +86 -0
- package/packages/selector/tests/fixtures/sediment-pool/a7a767c0-cloud-87.orig.txt +50 -0
- package/packages/selector/tests/fixtures/sediment-pool/a7a767c0-cloud-96.orig.txt +102 -0
- package/packages/selector/tests/public/package-contract.client.spec.ts +7 -4
- package/packages/selector/tests/runtime/fold-router.spec.ts +140 -0
- package/packages/selector/tests/runtime/sediment-card.spec.ts +111 -0
- package/packages/selector/tests/runtime/sediment-config.spec.ts +56 -0
- package/packages/selector/tests/runtime/sediment-guard.spec.ts +71 -0
- package/packages/selector/tests/runtime/sediment-masks.spec.ts +95 -0
- package/packages/selector/tests/runtime/sediment-orchestrator.spec.ts +166 -0
- package/packages/selector/tests/runtime/sediment-pool-share.spec.ts +65 -0
- package/packages/selector/tests/runtime/sediment-publish.spec.ts +142 -0
- package/packages/selector/tests/runtime/sediment-real-shapes.spec.ts +158 -0
- package/packages/selector/tests/runtime/sediment-settings.spec.ts +73 -0
- package/packages/selector/tests/runtime/sediment-signals.spec.ts +124 -0
- package/packages/selector/tests/runtime/sediment-span.spec.ts +92 -0
- package/packages/selector/tests/runtime/shallow-primitives.spec.ts +135 -0
- package/packages/selector/tests/settings-seat.client.spec.ts +1 -1
- package/scripts/hosts.d.mts +3 -0
- package/scripts/sediment-latency-report.mjs +63 -0
- package/scripts/verify-release.mjs +7 -2
- package/$null +0 -1
|
@@ -0,0 +1,117 @@
|
|
|
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
|
|
@@ -0,0 +1,67 @@
|
|
|
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
|
+
---
|
|
@@ -0,0 +1,119 @@
|
|
|
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
|
|
@@ -0,0 +1,119 @@
|
|
|
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
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
[assistant] 字段没有写进文档:`downloadsCheckedAt` 完全缺失,零值日也没记录;我刚做的实测还**推翻了 `SKILL.md` 里「右端晚 1 天」这条旧结论**。先读完整文档再修改:
|
|
2
|
+
[tool-call read "{\"file_path\": \"E:\\\\test\\\\rewrite-agently\\\\.agents\\\\skills\\\\dsh-registry-track\\\\SKILL.md\", \"limit\": 78]
|
|
3
|
+
===
|
|
4
|
+
[tool] <path>E:\test\rewrite-agently\.agents\skills\dsh-registry-track\SKILL.md</path>
|
|
5
|
+
<type>file</type>
|
|
6
|
+
<content>
|
|
7
|
+
1: ---
|
|
8
|
+
2: name: dsh-registry-track
|
|
9
|
+
3: description: DSH 插件注册中心 30 天榜单追踪——每日快照抓取、四元组指纹新鲜度判定、Top-N 排名与 Δ、窗口滑动回验与批量流量归因。当用户提到 registry 排名、插件排行、下载量、owner 排名、drscrewdriver 排名、PerryLink 排名、榜单检查、插件排名趋势时使用。
|
|
10
|
+
4: ---
|
|
11
|
+
5:
|
|
12
|
+
6: # DSH Registry Track
|
|
13
|
+
7:
|
|
14
|
+
8: ## Purpose
|
|
15
|
+
9: 自动拉取并解析 DSH 插件注册中心排名数据,支持快速状态查询、多 owner 对比、快照追踪和趋势分析。
|
|
16
|
+
10:
|
|
17
|
+
11: ## Trigger
|
|
18
|
+
12: 当用户提到「registry 排名」「插件排行」「下载量」「owner 排名」「drscrewdriver 排名」「PerryLink 排名」「插件排名趋势」等关键词时加载。
|
|
19
|
+
13:
|
|
20
|
+
14: ## Default Owners
|
|
21
|
+
15: drscrewdriver, PerryLink
|
|
22
|
+
16:
|
|
23
|
+
17: ## Subcommands
|
|
24
|
+
18:
|
|
25
|
+
19: ### `status` — 快速状态
|
|
26
|
+
20: - 读取 `snapshot/latest.json`,报告默认 owners 的排名、下载、项目数
|
|
27
|
+
21: - 若缓存存在且 < 2 小时,直接读缓存
|
|
28
|
+
22: - 若缓存过期,先 `python fetch.py` 再分析
|
|
29
|
+
23: - 输出:Markdown 表格,一行三个 owner
|
|
30
|
+
24:
|
|
31
|
+
25: ### `fetch` — 拉取数据
|
|
32
|
+
26: - `python fetch.py` → 探测所有候端,用当前正在监听的那个实例
|
|
33
|
+
27: - 写入 `snapshot/latest.json` + 时间戳命名副本 `snapshot/snapshot-YYYY-MM-DD_HHMMSS.json`
|
|
34
|
+
28: - 显示汇总:总插件数、有下载数、唯一 owner 数、数据源来源
|
|
35
|
+
29:
|
|
36
|
+
30: ## Data Source Architecture
|
|
37
|
+
31:
|
|
38
|
+
32: ### 多实例端口探测(不是「主备回退」)
|
|
39
|
+
33: 每个 DSH 运行时监听自己的端口,**只有正在运行的那个会应答**:
|
|
40
|
+
34:
|
|
41
|
+
35: | 运行时 | URL | 说明 |
|
|
42
|
+
36: |--------|-----|------|
|
|
43
|
+
37: | 独立/Web 实例 | `http://127.0.0.1:3080/dsh-market/registry` | 仅在该实例运行时存在 |
|
|
44
|
+
38: | **桌面版** | `http://127.0.0.1:19387/dsh-market/registry` | 桌面 App 在跑时存在,loopback 代理 |
|
|
45
|
+
39:
|
|
46
|
+
40: **核心认知:端口没人监听 ≠ 注册中心故障。** 它只表示那个实例没在跑。
|
|
47
|
+
41: 只使用桌面版时,3080 必然不可达——这是正常状态,不是异常。
|
|
48
|
+
42:
|
|
49
|
+
43: `fetch.py` 的 `probe_sources()` 逐个探测候端,取第一个应答的,
|
|
50
|
+
44: 并把未监听的候端作为**提示信息**(而非错误)打印。
|
|
51
|
+
45:
|
|
52
|
+
46: **认证说明:** 两个端点均**无需 token/cookie**,公开可访问。`dsh-app://` 是 Electron 内部协议,外部工具无法直接使用,但 HTTP 代理面已提供无认证接口。
|
|
53
|
+
47:
|
|
54
|
+
48: **诊断纪律:** 不要把连接被拒直接推断为「服务挂了」。先用
|
|
55
|
+
49: `Get-NetTCPConnection -State Listen -LocalPort 3080,19387` 看实际监听者,
|
|
56
|
+
50: 再判断是「实例未运行」还是「实例在跑但服务异常」。
|
|
57
|
+
51:
|
|
58
|
+
52: ### `rank` — 排名解析
|
|
59
|
+
53: - `python owners.py` → 完整 owner 排名
|
|
60
|
+
54: - `python owners.py --top N` → 前 N 名
|
|
61
|
+
55: - `python owners.py --owners A B` → 指定 owner 对比
|
|
62
|
+
56: - 自动分配层级标签:ULTRA / T0 / T1 / T2 / T3 / T4 / 长尾
|
|
63
|
+
57:
|
|
64
|
+
58: ### `compare` — 快照对比
|
|
65
|
+
59: - `python compare.py` → 最新快照 vs 最近日快照
|
|
66
|
+
60: - `python compare.py --snapshots A.json B.json` → 指定两个快照对比
|
|
67
|
+
61: - `python compare.py --trend` → 全量趋势分析(排名演变 + 下载量 + 异常检测)
|
|
68
|
+
62: - `python compare.py --cliff N` → 第 N 名附近的 gap 断崖分析
|
|
69
|
+
63:
|
|
70
|
+
64: ### `daily-check` — 每日例行检查(10-15 起的标准四步)
|
|
71
|
+
65: 1. `python fetch.py` → 双端点探测抓新快照(产出 plugins 明细供算指纹)。
|
|
72
|
+
66: 2. `python _d15_rank.py` → **指纹三快照比对 + owner Top15/Δ/prev#**。
|
|
73
|
+
67: 新鲜度四元组口径:`canonical sha1(json.dumps(plugins, sort_keys=True, ensure_ascii=False))[:12]`
|
|
74
|
+
68: + plugin 数 + sum_dl + registry_updated——**四者全等才算「无新数据」**,任一变化即有新数据。
|
|
75
|
+
69: 3. `python _d15_verify.py` → **滑窗 Δ 回验**:`Δ_obs = registry 新−旧` vs
|
|
76
|
+
70: `Δ_model = Σnpm day(新纳入日) − Σnpm day(被挤出日)`;残差 ≤ max(1500, 25%|Δ_obs|) 判「单日滑动可解释」,
|
|
77
|
+
71: 同时打印右侧纳入日是否结算(Σ=0 即未结算)。
|
|
78
|
+
72: 4. `python _d15_burst.py` → **爆发后续逐日复核**(Σ近期逐日对比基线),供「一次性批量 vs 持续需求」判据裁决。
|
|
79
|
+
73: - **期次复用:改各脚本头部常量即可**——`FILES`(快照三元组)/ `DROP_DAY` / `INTAKE_DAY` / `RANGE` / `DAYS` / `OWNERS`;
|
|
80
|
+
74: 产物重定向到 `_d<期>_*_out.txt`,结论按增量写入存档文档(轨迹行 + §13 回验表 + 挂起事项)。
|
|
81
|
+
75: - **输出纪律**:PowerShell 内联 `python -c` 易炸引号 → 一律写 .py 文件跑,输出重定向到文件再
|
|
82
|
+
76: `Get-Content -Encoding UTF8` 读(read 工具把 UTF-8 CJK 输出当二进制拒读)。
|
|
83
|
+
77:
|
|
84
|
+
78: ## Decision Criteria
|
|
85
|
+
|
|
86
|
+
(Showing lines 1-78 of 158. Use offset=79 to continue.)
|
|
87
|
+
</content>
|
|
88
|
+
===
|
|
89
|
+
[assistant] [tool-call read "{\"file_path\": \"E:\\\\test\\\\rewrite-agently\\\\.agents\\\\skills\\\\dsh-registry-track\\\\SKILL.md\", \"offset\": 1]
|
|
90
|
+
===
|
|
91
|
+
[tool] <path>E:\test\rewrite-agently\.agents\skills\dsh-registry-track\SKILL.md</path>
|
|
92
|
+
<type>file</type>
|
|
93
|
+
<content>
|
|
94
|
+
124: ## File Layout
|
|
95
|
+
125: ```
|
|
96
|
+
126: .agents/skills/dsh-registry-track/
|
|
97
|
+
127: ├── SKILL.md ← 本文件
|
|
98
|
+
128: ├── fetch.py ← registry 拉取 + 快照存储
|
|
99
|
+
129: ├── owners.py ← owner 聚类 + 排名解析
|
|
100
|
+
130: ├── compare.py ← 多快照对比 + 趋势分析
|
|
101
|
+
131: ├── _d15_rank.py ← daily-check 步骤 2:指纹三快照比对 + Top15/Δ
|
|
102
|
+
132: ├── _d15_verify.py ← daily-check 步骤 3:滑窗 Δ 回验 + 结算探测
|
|
103
|
+
133: ├── _d15_burst.py ← daily-check 步骤 4:爆发后续逐日复核
|
|
104
|
+
134: ├── _window_pred.py ← 下一期 Δ 预测 + 上期回验(含结算前置门)
|
|
105
|
+
135: ├── snapshot/ ← 历史快照目录
|
|
106
|
+
136: │ ├── latest.json ← 最新快照
|
|
107
|
+
137: │ └── snapshot-YYYY-MM-DD_HHMMSS.json ← 历史副本
|
|
108
|
+
138: └── _d<期>_*_out.txt ← 各期检查产物(脚本输出重定向)
|
|
109
|
+
139: ```
|
|
110
|
+
140:
|
|
111
|
+
141: ## Example Interactions
|
|
112
|
+
142:
|
|
113
|
+
143: ```
|
|
114
|
+
144: 用户: "drscrewdriver 现在排名第几"
|
|
115
|
+
145: → 检查缓存 → 新鲜 → python owners.py --owners drscrewdriver → 输出表格
|
|
116
|
+
146:
|
|
117
|
+
147: 用户: "刷新一下 registry"
|
|
118
|
+
148: → python fetch.py → 拉取最新 → 保存快照
|
|
119
|
+
149:
|
|
120
|
+
150: 用户: "对比 drscrewdriver 和 PerryLink"
|
|
121
|
+
151: → python owners.py --owners drscrewdriver PerryLink → 横向对比表
|
|
122
|
+
152:
|
|
123
|
+
153: 用户: "drscrewdriver 从 09-15 到现在什么趋势"
|
|
124
|
+
154: → python compare.py --trend → 全量趋势分析
|
|
125
|
+
155:
|
|
126
|
+
156: 用户: "看 40 名附近的断崖"
|
|
127
|
+
157: → python compare.py --cliff 40
|
|
128
|
+
158: ```
|
|
129
|
+
|
|
130
|
+
(End of file - total 158 lines)
|
|
131
|
+
</content>
|