@jayyuen66/dsh-scrapling 0.0.3 → 0.1.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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@jayyuen66/dsh-scrapling",
3
- "version": "0.0.3",
4
- "description": "Scrapling 网页抓取插件(dsh):静态/浏览器/stealth 抓取 + CSS/XPath 结构化抽取 + 选择器自愈 + capture_xhr + Spider 爬虫,由常驻 Python 进程驱动。",
3
+ "version": "0.1.0",
4
+ "description": "Scrapling 网页抓取插件(dsh):静态/浏览器抓取 + CSS/XPath 结构化抽取 + 选择器自愈 + capture_xhr 与会话网络历史 + 登录态存取 + Spider 爬虫,由常驻 Python 进程驱动。",
5
5
  "keywords": [
6
6
  "dsh",
7
7
  "dsh-plugin",
@@ -52,54 +52,58 @@
52
52
  "ipaddr.js": "2.5.0"
53
53
  },
54
54
  "devDependencies": {
55
- "@deepseek-ai/cordis": "4.0.5-alpha.1",
56
- "@deepseek-ai/cordis-plugin-include": "^1.0.9",
57
- "@deepseek-ai/cordis-plugin-loader": "^1.0.5",
58
- "@deepseek-ai/dsh-client-locale": "0.2.1-alpha.2",
59
- "@deepseek-ai/dsh-client-store": "0.2.1-alpha.2",
60
- "@deepseek-ai/dsh-client-ui-layout": "0.2.1-alpha.2",
61
- "@deepseek-ai/dsh-client-ui-plugin-manager": "0.2.1-alpha.2",
62
- "@deepseek-ai/dsh-client-ui-renderer": "0.2.1-alpha.2",
63
- "@deepseek-ai/dsh-client-ui-settings": "0.2.1-alpha.2",
64
- "@deepseek-ai/dsh-client-ui-slots": "0.2.1-alpha.2",
65
- "@deepseek-ai/dsh-host-webserver": "0.2.1-alpha.2",
66
- "@deepseek-ai/dsh-http-proxy": "0.2.1-alpha.2",
67
- "@deepseek-ai/dsh-jobs": "0.2.1-alpha.2",
68
- "@deepseek-ai/dsh-jobs-local": "0.2.1-alpha.2",
69
- "@deepseek-ai/dsh-output-retention": "0.2.1-alpha.2",
70
- "@deepseek-ai/dsh-package-manifest": "0.2.1-alpha.2",
71
- "@deepseek-ai/dsh-ptc-runtime": "0.2.1-alpha.2",
72
- "@deepseek-ai/dsh-sandbox": "0.2.1-alpha.2",
73
- "@deepseek-ai/dsh-scope": "0.2.1-alpha.2",
74
- "@deepseek-ai/dsh-session": "0.2.1-alpha.2",
75
- "@deepseek-ai/dsh-settings": "0.2.1-alpha.2",
76
- "@deepseek-ai/dsh-shell": "0.2.1-alpha.2",
77
- "@deepseek-ai/dsh-subprocess": "0.2.1-alpha.2",
78
- "@deepseek-ai/dsh-system-prompt": "0.2.1-alpha.2",
79
- "@deepseek-ai/dsh-tools": "0.2.1-alpha.2",
80
- "@deepseek-ai/dsh-user-approval": "0.2.1-alpha.2",
81
- "@deepseek-ai/dsh-web": "0.2.1-alpha.2",
82
- "@deepseek-ai/schemastery": "3.18.5-alpha.1",
83
- "@jayyuen66/dsh-plugin-shared": "^0.1.4",
55
+ "@deepseek-ai/cordis": "4.0.5",
56
+ "@deepseek-ai/cordis-plugin-include": "1.0.10",
57
+ "@deepseek-ai/cordis-plugin-loader": "1.0.6",
58
+ "@deepseek-ai/dsh-api-remotes": "0.2.1-rc.2",
59
+ "@deepseek-ai/dsh-client-locale": "0.2.1-rc.2",
60
+ "@deepseek-ai/dsh-client-store": "0.2.1-rc.2",
61
+ "@deepseek-ai/dsh-client-ui-chat": "0.2.1-rc.2",
62
+ "@deepseek-ai/dsh-client-ui-conversation": "0.2.1-rc.2",
63
+ "@deepseek-ai/dsh-client-ui-layout": "0.2.1-rc.2",
64
+ "@deepseek-ai/dsh-client-ui-plugin-manager": "0.2.1-rc.2",
65
+ "@deepseek-ai/dsh-client-ui-renderer": "0.2.1-rc.2",
66
+ "@deepseek-ai/dsh-client-ui-settings": "0.2.1-rc.2",
67
+ "@deepseek-ai/dsh-client-ui-slots": "0.2.1-rc.2",
68
+ "@deepseek-ai/dsh-client-ui-tool": "0.2.1-rc.2",
69
+ "@deepseek-ai/dsh-host-webserver": "0.2.1-rc.2",
70
+ "@deepseek-ai/dsh-http-proxy": "0.2.1-rc.2",
71
+ "@deepseek-ai/dsh-jobs": "0.2.1-rc.2",
72
+ "@deepseek-ai/dsh-jobs-local": "0.2.1-rc.2",
73
+ "@deepseek-ai/dsh-output-retention": "0.2.1-rc.2",
74
+ "@deepseek-ai/dsh-package-manifest": "0.2.1-rc.2",
75
+ "@deepseek-ai/dsh-ptc-runtime": "0.2.1-rc.2",
76
+ "@deepseek-ai/dsh-sandbox": "0.2.1-rc.2",
77
+ "@deepseek-ai/dsh-scope": "0.2.1-rc.2",
78
+ "@deepseek-ai/dsh-session": "0.2.1-rc.2",
79
+ "@deepseek-ai/dsh-settings": "0.2.1-rc.2",
80
+ "@deepseek-ai/dsh-shell": "0.2.1-rc.2",
81
+ "@deepseek-ai/dsh-subprocess": "0.2.1-rc.2",
82
+ "@deepseek-ai/dsh-system-prompt": "0.2.1-rc.2",
83
+ "@deepseek-ai/dsh-tools": "0.2.1-rc.2",
84
+ "@deepseek-ai/dsh-user-approval": "0.2.1-rc.2",
85
+ "@deepseek-ai/dsh-web": "0.2.1-rc.2",
86
+ "@deepseek-ai/schemastery": "3.18.5",
87
+ "@jayyuen66/dsh-plugin-shared": "^0.1.6",
84
88
  "@types/node": "26.6.5",
85
89
  "@types/react": "19.3.0",
86
- "@vitest/coverage-v8": "5.0.3",
90
+ "@vitest/coverage-v8": "5.0.5",
87
91
  "eslint-plugin-sonarjs": "4.2.2",
88
- "oxfmt": "0.72.0",
89
- "oxlint": "1.87.0",
92
+ "oxfmt": "0.73.0",
93
+ "oxlint": "1.88.0",
90
94
  "oxlint-tsgolint": "7.0.2004",
91
95
  "react": "^19.3.0",
92
- "rolldown": "1.2.13",
96
+ "rolldown": "1.2.14",
93
97
  "typescript": "7.0.2",
94
98
  "vite": "8.3.4",
95
- "vitest": "5.0.3"
99
+ "vitest": "5.0.5"
96
100
  },
97
101
  "peerDependencies": {
98
- "@deepseek-ai/dsh": "^0.2.1-alpha.2",
99
- "@deepseek-ai/dsh-output-retention": "0.2.1-alpha.2",
100
- "@deepseek-ai/dsh-tools": "0.2.1-alpha.2",
101
- "@deepseek-ai/dsh-web": "0.2.1-alpha.2",
102
- "@deepseek-ai/schemastery": "3.18.5-alpha.1"
102
+ "@deepseek-ai/dsh": "^0.2.1-rc.2",
103
+ "@deepseek-ai/dsh-output-retention": "0.2.1-rc.2",
104
+ "@deepseek-ai/dsh-tools": "0.2.1-rc.2",
105
+ "@deepseek-ai/dsh-web": "0.2.1-rc.2",
106
+ "@deepseek-ai/schemastery": "3.18.5"
103
107
  },
104
108
  "peerDependenciesMeta": {
105
109
  "@deepseek-ai/dsh": {
@@ -111,7 +115,7 @@
111
115
  },
112
116
  "icon": "icon.svg",
113
117
  "engines": {
114
- "dsh": ">=0.2.1-alpha.2",
118
+ "dsh": "^0.2.1-rc.2",
115
119
  "node": ">=22.12.0"
116
120
  },
117
121
  "dsh": {
@@ -133,11 +137,16 @@
133
137
  "test:watch": "vitest",
134
138
  "check": "npm run --loglevel=warn typecheck && npm run --loglevel=warn lint && npm run --loglevel=warn build:client && npm run --loglevel=warn build && npm run --loglevel=warn test && npm run --loglevel=warn fmt:check && npm run --loglevel=warn check:py",
135
139
  "fmt:check": "oxfmt --check .",
136
- "test:py": "python3 py/tests/test_bridge.py",
137
- "lint:py": "python3 -m ruff check py/",
138
- "fmt:py": "python3 -m ruff format --check py/",
139
- "typecheck:py": "python3 -m mypy py/",
140
- "cov:py": "python3 -m coverage erase && DSH_PY_COVERAGE=1 python3 -m coverage run --parallel-mode py/tests/test_bridge.py && python3 -m coverage combine && python3 -m coverage report -m && python3 -m coverage erase",
141
- "check:py": "npm run --loglevel=warn lint:py && npm run --loglevel=warn fmt:py"
140
+ "py": "sh -c 'P=python3; test -x _env/.venv/bin/python && P=_env/.venv/bin/python; exec \"$P\" \"$@\"' --",
141
+ "py:which": "sh -c 'test -x _env/.venv/bin/python && echo \"[py] 解释器:$PWD/_env/.venv/bin/python\" || echo \"[py] 解释器:PATH 上的 python3(本仓没有 _env/.venv,在伞根跑 pnpm py:setup)\"'",
142
+ "face:py": "npm run --loglevel=warn py -- -c \"import pathlib,sys;MIN=6;fs=sorted(str(p) for p in pathlib.Path('py').rglob('*.py'));td=pathlib.Path('py/tests').is_dir();print('[face:py] bandit 与覆盖率量到的面:py/ 下 %d 份 *.py(下限 %d),py/tests/ 目录存在:%s' % (len(fs),MIN,td),flush=True);sys.exit('py/ 下只找到 %d 份 *.py,低于下限 %d:bandit 与 coverage 的分母已经空了,后面每一段都在量空气' % (len(fs),MIN) if len(fs)<MIN else 'py/tests/ 不是目录:coverage 的 --omit=py/tests/* 会连分母一起放宽,地板量的就成了虚高的那一面' if not td else 0)\"",
143
+ "lint:py": "npm run --loglevel=warn py -- -m ruff check py/",
144
+ "fmt:py": "npm run --loglevel=warn py -- -m ruff format --check py/",
145
+ "typecheck:py": "npm run --loglevel=warn py -- -m mypy py/",
146
+ "test:py": "npm run --loglevel=warn py -- py/tests/test_bridge.py",
147
+ "bandit:py": "npm run --loglevel=warn py -- -m bandit -q -ll -r py/",
148
+ "cov:py": "npm run --loglevel=warn py -- -m coverage erase && DSH_PY_COVERAGE=1 npm run --loglevel=warn py -- -m coverage run --parallel-mode py/tests/test_bridge.py && npm run --loglevel=warn py -- -m coverage combine && npm run --loglevel=warn py -- -m coverage report -m && npm run --loglevel=warn py -- -m coverage erase",
149
+ "coverage:floor": "npm run --loglevel=warn py -- -m coverage erase && DSH_PY_COVERAGE=1 npm run --loglevel=warn py -- -m coverage run --parallel-mode py/tests/test_bridge.py && npm run --loglevel=warn py -- -m coverage combine && npm run --loglevel=warn py -- -m coverage report --omit=\"py/tests/*\" --fail-under=74 && npm run --loglevel=warn py -- -m coverage erase",
150
+ "check:py": "npm run --loglevel=warn py:which && npm run --loglevel=warn face:py && npm run --loglevel=warn lint:py && npm run --loglevel=warn fmt:py && npm run --loglevel=warn typecheck:py && npm run --loglevel=warn test:py && npm run --loglevel=warn bandit:py && npm run --loglevel=warn coverage:floor"
142
151
  }
143
152
  }