@crewhaus/tool-mouse-keyboard 0.8.0 → 0.8.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/dist/index.js +4 -0
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -52,6 +52,7 @@ const scrollSchema = z
|
|
|
52
52
|
export function createClickTool(opts) {
|
|
53
53
|
return buildTool({
|
|
54
54
|
name: "Click",
|
|
55
|
+
operativeArgs: [],
|
|
55
56
|
description: "Click at viewport pixel coordinates (x, y). Defaults to left button. Use FindElement(description) to get coordinates from a natural-language target. DESTRUCTIVE: requires explicit alwaysAllow rule.",
|
|
56
57
|
inputSchema: clickSchema,
|
|
57
58
|
readOnly: false,
|
|
@@ -75,6 +76,7 @@ export function createClickTool(opts) {
|
|
|
75
76
|
export function createTypeTool(opts) {
|
|
76
77
|
return buildTool({
|
|
77
78
|
name: "Type",
|
|
79
|
+
operativeArgs: [],
|
|
78
80
|
description: "Type text at the focused input. Click an input first to focus it. DESTRUCTIVE: requires explicit alwaysAllow rule.",
|
|
79
81
|
inputSchema: typeSchema,
|
|
80
82
|
readOnly: false,
|
|
@@ -97,6 +99,7 @@ export function createTypeTool(opts) {
|
|
|
97
99
|
export function createKeyTool(opts) {
|
|
98
100
|
return buildTool({
|
|
99
101
|
name: "Key",
|
|
102
|
+
operativeArgs: [],
|
|
100
103
|
description: "Press a single key or combo (e.g. 'Enter', 'Tab', 'Control+a'). Uses Playwright's key naming. DESTRUCTIVE: requires explicit alwaysAllow rule.",
|
|
101
104
|
inputSchema: keySchema,
|
|
102
105
|
readOnly: false,
|
|
@@ -119,6 +122,7 @@ export function createKeyTool(opts) {
|
|
|
119
122
|
export function createScrollTool(opts) {
|
|
120
123
|
return buildTool({
|
|
121
124
|
name: "Scroll",
|
|
125
|
+
operativeArgs: [],
|
|
122
126
|
description: "Scroll by pixel deltas. Positive dy scrolls down. DESTRUCTIVE: requires explicit alwaysAllow rule.",
|
|
123
127
|
inputSchema: scrollSchema,
|
|
124
128
|
readOnly: false,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crewhaus/tool-mouse-keyboard",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Click / Type / Key / Scroll tools — destructive: true (Section 25 BROW)",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -16,10 +16,10 @@
|
|
|
16
16
|
"test": "bun test src"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@crewhaus/computer-use-driver": "0.8.
|
|
20
|
-
"@crewhaus/errors": "0.8.
|
|
21
|
-
"@crewhaus/tool-builder": "0.8.
|
|
22
|
-
"@crewhaus/tool-catalog": "0.8.
|
|
19
|
+
"@crewhaus/computer-use-driver": "0.8.1",
|
|
20
|
+
"@crewhaus/errors": "0.8.1",
|
|
21
|
+
"@crewhaus/tool-builder": "0.8.1",
|
|
22
|
+
"@crewhaus/tool-catalog": "0.8.1",
|
|
23
23
|
"zod": "^3.23.8"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|