@ai-ecoverse/slicc-cdp 1.0.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -1
- package/bin/playwright-cli.wasm +0 -0
- package/package.json +14 -3
package/README.md
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
# slicc-cdp
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Node package for SLICC's CDP layer. The JavaScript entry is still empty:
|
|
4
4
|
|
|
5
5
|
```js
|
|
6
6
|
import {} from '@ai-ecoverse/slicc-cdp';
|
|
7
7
|
```
|
|
8
8
|
|
|
9
|
+
`playwright-cli` is the Rust binary in `crates/playwright-cli`. It speaks Chrome CDP JSON. Connect with `--cdp`, else `SLICC_CDP_URL`, else `GET http://127.0.0.1:9222/json/version`. It does not launch Chrome and does not invent a debugger path.
|
|
10
|
+
|
|
11
|
+
The kernel command is the `wasm32-wasip1` build at `bin/playwright-cli.wasm`, declared as `slicc.commands.playwright-cli` with `slicc.abi` `wasi`. `npm run build:wasm` produces it, and the release workflow runs that before publish. On that target, TCP comes from the vendored homescoop `wasix-net` crate (`vendor/wasix-net`, pinned in `UPSTREAM`) instead of Rust std, which does not open sockets for `wasm32-wasip1`. `--version` prints the `package.json` version.
|
|
12
|
+
|
|
9
13
|
Node ≥ 24. `npm run lint` runs `slicc-lint`. Releases use semantic-release on `main`.
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ai-ecoverse/slicc-cdp",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"description": "SLICC's CDP layer: client, browser API, transports, HAR, and ARIA snapshot",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -25,10 +25,21 @@
|
|
|
25
25
|
".": "./src/index.js"
|
|
26
26
|
},
|
|
27
27
|
"files": [
|
|
28
|
-
"src"
|
|
28
|
+
"src",
|
|
29
|
+
"bin/playwright-cli.wasm"
|
|
29
30
|
],
|
|
31
|
+
"slicc": {
|
|
32
|
+
"abi": "wasi",
|
|
33
|
+
"commands": {
|
|
34
|
+
"playwright-cli": {
|
|
35
|
+
"wasm": "bin/playwright-cli.wasm"
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
},
|
|
30
39
|
"scripts": {
|
|
31
40
|
"prepare": "lefthook install",
|
|
41
|
+
"build:wasm": "cargo build --release --target wasm32-wasip1 --bin playwright-cli && mkdir -p bin && cp target/wasm32-wasip1/release/playwright-cli.wasm bin/playwright-cli.wasm",
|
|
42
|
+
"prepublishOnly": "npm run build:wasm",
|
|
32
43
|
"lint": "slicc-lint",
|
|
33
44
|
"format": "biome check --write .",
|
|
34
45
|
"test": "true",
|
|
@@ -37,7 +48,7 @@
|
|
|
37
48
|
"release": "semantic-release"
|
|
38
49
|
},
|
|
39
50
|
"devDependencies": {
|
|
40
|
-
"@ai-ecoverse/slicc-shared-web": "1.
|
|
51
|
+
"@ai-ecoverse/slicc-shared-web": "1.10.0",
|
|
41
52
|
"@biomejs/biome": "2.5.15",
|
|
42
53
|
"lefthook": "2.1.16",
|
|
43
54
|
"semantic-release": "25.0.9"
|