opensteer 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/dist/index.js ADDED
@@ -0,0 +1,153 @@
1
+ import {
2
+ ActionWsClient,
3
+ CounterResolutionError,
4
+ ElementPathError,
5
+ LocalSelectorStorage,
6
+ OPENSTEER_HIDDEN_ATTR,
7
+ OPENSTEER_INTERACTIVE_ATTR,
8
+ OPENSTEER_SCROLLABLE_ATTR,
9
+ OS_BOUNDARY_ATTR,
10
+ OS_IFRAME_BOUNDARY_TAG,
11
+ OS_NODE_ID_ATTR,
12
+ OS_SHADOW_BOUNDARY_TAG,
13
+ OS_UNAVAILABLE_ATTR,
14
+ Opensteer,
15
+ OpensteerActionError,
16
+ OpensteerRemoteError,
17
+ RemoteCdpClient,
18
+ RemoteSessionClient,
19
+ buildElementPathFromHandle,
20
+ buildElementPathFromSelector,
21
+ buildPathSelectorHint,
22
+ cleanForAction,
23
+ cleanForClickable,
24
+ cleanForExtraction,
25
+ cleanForFull,
26
+ cleanForScrollable,
27
+ clearCookies,
28
+ cloneElementPath,
29
+ closeTab,
30
+ collectLocalSelectorCacheEntries,
31
+ countArrayItemsWithPath,
32
+ createEmptyRegistry,
33
+ createTab,
34
+ ensureLiveCounters,
35
+ exportCookies,
36
+ extractArrayRowsWithPaths,
37
+ extractArrayWithPaths,
38
+ extractWithPaths,
39
+ getCookies,
40
+ getElementAttributes,
41
+ getElementBoundingBox,
42
+ getElementText,
43
+ getElementValue,
44
+ getPageHtml,
45
+ getPageTitle,
46
+ importCookies,
47
+ listTabs,
48
+ markInteractiveElements,
49
+ normalizeNamespace,
50
+ performClick,
51
+ performFileUpload,
52
+ performHover,
53
+ performInput,
54
+ performScroll,
55
+ performSelect,
56
+ prepareSnapshot,
57
+ pressKey,
58
+ remoteNotLaunchedError,
59
+ remoteUnsupportedMethodError,
60
+ resolveCounterElement,
61
+ resolveCountersBatch,
62
+ resolveElementPath,
63
+ resolveNamespaceDir,
64
+ sanitizeElementPath,
65
+ serializePageHTML,
66
+ setCookie,
67
+ switchTab,
68
+ typeText,
69
+ waitForVisualStability
70
+ } from "./chunk-6L24FEKD.js";
71
+ import {
72
+ createResolveCallback
73
+ } from "./chunk-SRJLH34D.js";
74
+ import {
75
+ createExtractCallback
76
+ } from "./chunk-DQIHOUXH.js";
77
+ import "./chunk-3H5RRIMZ.js";
78
+ import {
79
+ getModelProvider
80
+ } from "./chunk-L4FHT64T.js";
81
+ export {
82
+ ActionWsClient,
83
+ CounterResolutionError,
84
+ ElementPathError,
85
+ LocalSelectorStorage,
86
+ OPENSTEER_HIDDEN_ATTR,
87
+ OPENSTEER_INTERACTIVE_ATTR,
88
+ OPENSTEER_SCROLLABLE_ATTR,
89
+ OS_BOUNDARY_ATTR,
90
+ OS_IFRAME_BOUNDARY_TAG,
91
+ OS_NODE_ID_ATTR,
92
+ OS_SHADOW_BOUNDARY_TAG,
93
+ OS_UNAVAILABLE_ATTR,
94
+ Opensteer,
95
+ OpensteerActionError,
96
+ OpensteerRemoteError,
97
+ RemoteCdpClient,
98
+ RemoteSessionClient,
99
+ buildElementPathFromHandle,
100
+ buildElementPathFromSelector,
101
+ buildPathSelectorHint,
102
+ cleanForAction,
103
+ cleanForClickable,
104
+ cleanForExtraction,
105
+ cleanForFull,
106
+ cleanForScrollable,
107
+ clearCookies,
108
+ cloneElementPath,
109
+ closeTab,
110
+ collectLocalSelectorCacheEntries,
111
+ countArrayItemsWithPath,
112
+ createEmptyRegistry,
113
+ createExtractCallback,
114
+ createResolveCallback,
115
+ createTab,
116
+ ensureLiveCounters,
117
+ exportCookies,
118
+ extractArrayRowsWithPaths,
119
+ extractArrayWithPaths,
120
+ extractWithPaths,
121
+ getCookies,
122
+ getElementAttributes,
123
+ getElementBoundingBox,
124
+ getElementText,
125
+ getElementValue,
126
+ getModelProvider,
127
+ getPageHtml,
128
+ getPageTitle,
129
+ importCookies,
130
+ listTabs,
131
+ markInteractiveElements,
132
+ normalizeNamespace,
133
+ performClick,
134
+ performFileUpload,
135
+ performHover,
136
+ performInput,
137
+ performScroll,
138
+ performSelect,
139
+ prepareSnapshot,
140
+ pressKey,
141
+ remoteNotLaunchedError,
142
+ remoteUnsupportedMethodError,
143
+ resolveCounterElement,
144
+ resolveCountersBatch,
145
+ resolveElementPath,
146
+ resolveNamespaceDir,
147
+ sanitizeElementPath,
148
+ serializePageHTML,
149
+ setCookie,
150
+ switchTab,
151
+ typeText,
152
+ waitForVisualStability
153
+ };
@@ -0,0 +1,7 @@
1
+ import {
2
+ createResolveCallback
3
+ } from "./chunk-SRJLH34D.js";
4
+ import "./chunk-L4FHT64T.js";
5
+ export {
6
+ createResolveCallback
7
+ };
package/package.json ADDED
@@ -0,0 +1,82 @@
1
+ {
2
+ "name": "opensteer",
3
+ "version": "0.1.0",
4
+ "packageManager": "pnpm@10.29.3",
5
+ "description": "Open-source browser automation SDK with robust selectors and deterministic replay.",
6
+ "license": "MIT",
7
+ "type": "module",
8
+ "bin": {
9
+ "opensteer": "./bin/opensteer.mjs"
10
+ },
11
+ "main": "./dist/index.cjs",
12
+ "module": "./dist/index.js",
13
+ "types": "./dist/index.d.ts",
14
+ "exports": {
15
+ ".": {
16
+ "types": "./dist/index.d.ts",
17
+ "import": "./dist/index.js",
18
+ "require": "./dist/index.cjs"
19
+ }
20
+ },
21
+ "files": [
22
+ "dist",
23
+ "bin",
24
+ "README.md",
25
+ "LICENSE",
26
+ "CHANGELOG.md"
27
+ ],
28
+ "scripts": {
29
+ "build": "tsup src/index.ts src/cli/server.ts --dts --format esm,cjs --clean --external ai --external zod --external @ai-sdk/openai --external @ai-sdk/anthropic --external @ai-sdk/google --external @ai-sdk/xai --external @ai-sdk/groq",
30
+ "prepublishOnly": "pnpm run build",
31
+ "test": "vitest run",
32
+ "test:live-web": "vitest run --config vitest.live-web.config.ts",
33
+ "test:unit": "vitest run tests/html tests/element-path tests/config.test.ts tests/storage",
34
+ "test:actions": "vitest run tests/actions",
35
+ "test:integration": "vitest run tests/integration",
36
+ "test:ai": "vitest run tests/ai tests/e2e/ai-resolve.test.ts tests/e2e/ai-extract-products.test.ts",
37
+ "test:e2e": "vitest run tests/e2e",
38
+ "test:app:dev": "pnpm --dir tests/test-app run dev",
39
+ "typecheck": "tsc -p tsconfig.json --noEmit"
40
+ },
41
+ "dependencies": {
42
+ "@ai-sdk/anthropic": "^3.0.46",
43
+ "@ai-sdk/google": "^3.0.30",
44
+ "@ai-sdk/groq": "^3.0.24",
45
+ "@ai-sdk/openai": "^3.0.26",
46
+ "@ai-sdk/xai": "^3.0.57",
47
+ "ai": "^6.0.77",
48
+ "cheerio": "^1.0.0-rc.12",
49
+ "dotenv": "^17.2.4",
50
+ "playwright": "^1.50.0",
51
+ "ws": "^8.18.0",
52
+ "zod": "^4.3.6"
53
+ },
54
+ "devDependencies": {
55
+ "@types/node": "^22.10.0",
56
+ "@types/ws": "^8.5.13",
57
+ "domhandler": "^5.0.3",
58
+ "tsup": "^8.0.1",
59
+ "typescript": "^5.6.3",
60
+ "vite": "^7.3.1",
61
+ "vitest": "^2.1.8"
62
+ },
63
+ "pnpm": {
64
+ "onlyBuiltDependencies": [
65
+ "esbuild"
66
+ ]
67
+ },
68
+ "engines": {
69
+ "node": ">=20"
70
+ },
71
+ "keywords": [
72
+ "browser-automation",
73
+ "selectors",
74
+ "playwright",
75
+ "llm",
76
+ "agents"
77
+ ],
78
+ "repository": {
79
+ "type": "git",
80
+ "url": "https://github.com/opensteer-ai/opensteer"
81
+ }
82
+ }