@simular-ai/simulib-js 5.4.3
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/CLAUDE.md +78 -0
- package/LICENSE +21 -0
- package/README.md +75 -0
- package/bin/init-claude.mjs +105 -0
- package/bin/postinstall-hint.mjs +32 -0
- package/examples/README.md +53 -0
- package/examples/accessibility.mjs +45 -0
- package/examples/chrome_google_search_button.mjs +88 -0
- package/examples/clipboard.mjs +29 -0
- package/examples/file-trait.mjs +8 -0
- package/examples/google_search.mjs +59 -0
- package/examples/keyboard.mjs +23 -0
- package/examples/log-window.mjs +57 -0
- package/examples/logger.mjs +33 -0
- package/examples/loopback.mjs +41 -0
- package/examples/open-app.mjs +68 -0
- package/examples/screenshot.mjs +15 -0
- package/examples/simular.mjs +15 -0
- package/examples/system.mjs +10 -0
- package/index.d.ts +1691 -0
- package/index.js +618 -0
- package/package.json +124 -0
package/package.json
ADDED
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@simular-ai/simulib-js",
|
|
3
|
+
"version": "5.4.3",
|
|
4
|
+
"description": "Node.js bindings for simulib-rs",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"types": "./index.d.ts",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"types": "./index.d.ts",
|
|
10
|
+
"default": "./index.js"
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
"bin": {
|
|
14
|
+
"simulib-init-claude": "bin/init-claude.mjs"
|
|
15
|
+
},
|
|
16
|
+
"repository": {
|
|
17
|
+
"type": "git",
|
|
18
|
+
"url": "git+https://github.com/simular-ai/simulib-js.git"
|
|
19
|
+
},
|
|
20
|
+
"license": "MIT",
|
|
21
|
+
"keywords": [
|
|
22
|
+
"simulib",
|
|
23
|
+
"simulib-rs",
|
|
24
|
+
"napi-rs",
|
|
25
|
+
"NAPI",
|
|
26
|
+
"N-API",
|
|
27
|
+
"Rust",
|
|
28
|
+
"node-addon",
|
|
29
|
+
"node-addon-api",
|
|
30
|
+
"automation",
|
|
31
|
+
"typescript",
|
|
32
|
+
"types"
|
|
33
|
+
],
|
|
34
|
+
"files": [
|
|
35
|
+
"index.d.ts",
|
|
36
|
+
"index.js",
|
|
37
|
+
"CLAUDE.md",
|
|
38
|
+
"bin/init-claude.mjs",
|
|
39
|
+
"bin/postinstall-hint.mjs",
|
|
40
|
+
"examples/*.mjs",
|
|
41
|
+
"examples/README.md"
|
|
42
|
+
],
|
|
43
|
+
"napi": {
|
|
44
|
+
"binaryName": "simulib-js",
|
|
45
|
+
"targets": [
|
|
46
|
+
"x86_64-pc-windows-msvc",
|
|
47
|
+
"aarch64-pc-windows-msvc",
|
|
48
|
+
"x86_64-apple-darwin",
|
|
49
|
+
"aarch64-apple-darwin",
|
|
50
|
+
"x86_64-unknown-linux-gnu",
|
|
51
|
+
"aarch64-unknown-linux-gnu"
|
|
52
|
+
],
|
|
53
|
+
"constEnum": false
|
|
54
|
+
},
|
|
55
|
+
"engines": {
|
|
56
|
+
"node": ">= 20"
|
|
57
|
+
},
|
|
58
|
+
"publishConfig": {
|
|
59
|
+
"access": "public"
|
|
60
|
+
},
|
|
61
|
+
"scripts": {
|
|
62
|
+
"artifacts": "napi artifacts",
|
|
63
|
+
"bench": "node --import @oxc-node/core/register benchmark/bench.ts",
|
|
64
|
+
"build": "napi build --platform --release",
|
|
65
|
+
"build:debug": "napi build --platform",
|
|
66
|
+
"docs": "typedoc --entryPoints index.d.ts --out docs --readme README.md --name '@simular-ai/simulib-js' --includeVersion",
|
|
67
|
+
"docs:mintlify": "typedoc --options typedoc.mintlify.json",
|
|
68
|
+
"format": "run-p format:prettier format:rs format:toml",
|
|
69
|
+
"format:prettier": "prettier . -w",
|
|
70
|
+
"format:toml": "taplo format",
|
|
71
|
+
"format:rs": "cargo fmt",
|
|
72
|
+
"lint": "oxlint .",
|
|
73
|
+
"postinstall": "node bin/postinstall-hint.mjs",
|
|
74
|
+
"prepublishOnly": "napi prepublish -t npm $NAPI_PREPUBLISH_FLAGS",
|
|
75
|
+
"test": "vitest run",
|
|
76
|
+
"typecheck": "tsc --noEmit && tsc --noEmit -p __test__/tsconfig.json && tsc --noEmit -p benchmark/tsconfig.json && tsc --noEmit -p bin/tsconfig.json && tsc --noEmit -p examples/tsconfig.json",
|
|
77
|
+
"preversion": "napi build --platform && npm run typecheck && git add .",
|
|
78
|
+
"version": "napi version",
|
|
79
|
+
"prepare": "husky"
|
|
80
|
+
},
|
|
81
|
+
"devDependencies": {
|
|
82
|
+
"@napi-rs/cli": "^3.6.1",
|
|
83
|
+
"@oxc-node/core": "^0.1.0",
|
|
84
|
+
"@taplo/cli": "^0.7.0",
|
|
85
|
+
"@types/node": "^25.5.2",
|
|
86
|
+
"husky": "^9.1.7",
|
|
87
|
+
"lint-staged": "^17.0.2",
|
|
88
|
+
"npm-run-all2": "^8.0.4",
|
|
89
|
+
"oxlint": "^1.63.0",
|
|
90
|
+
"prettier": "^3.8.2",
|
|
91
|
+
"tinybench": "^6.0.0",
|
|
92
|
+
"typedoc": "^0.28.19",
|
|
93
|
+
"typedoc-plugin-frontmatter": "^1.3.1",
|
|
94
|
+
"typedoc-plugin-markdown": "^4.11.0",
|
|
95
|
+
"typescript": "^6.0.2",
|
|
96
|
+
"vitest": "^4.1.5"
|
|
97
|
+
},
|
|
98
|
+
"lint-staged": {
|
|
99
|
+
"*.@(js|ts|tsx)": [
|
|
100
|
+
"oxlint --fix"
|
|
101
|
+
],
|
|
102
|
+
"*.@(js|ts|tsx|yml|yaml|md|json)": [
|
|
103
|
+
"prettier --write"
|
|
104
|
+
],
|
|
105
|
+
"*.toml": [
|
|
106
|
+
"taplo format"
|
|
107
|
+
]
|
|
108
|
+
},
|
|
109
|
+
"prettier": {
|
|
110
|
+
"printWidth": 120,
|
|
111
|
+
"semi": false,
|
|
112
|
+
"trailingComma": "all",
|
|
113
|
+
"singleQuote": true,
|
|
114
|
+
"arrowParens": "always"
|
|
115
|
+
},
|
|
116
|
+
"optionalDependencies": {
|
|
117
|
+
"@simular-ai/simulib-js-win32-x64-msvc": "5.4.3",
|
|
118
|
+
"@simular-ai/simulib-js-win32-arm64-msvc": "5.4.3",
|
|
119
|
+
"@simular-ai/simulib-js-darwin-x64": "5.4.3",
|
|
120
|
+
"@simular-ai/simulib-js-darwin-arm64": "5.4.3",
|
|
121
|
+
"@simular-ai/simulib-js-linux-x64-gnu": "5.4.3",
|
|
122
|
+
"@simular-ai/simulib-js-linux-arm64-gnu": "5.4.3"
|
|
123
|
+
}
|
|
124
|
+
}
|