ask-computer 0.1.3 → 0.1.5
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/ask/computer/version.rb +1 -1
- data/lib/ask/skills/computer.use_computer/SKILL.md +36 -0
- metadata +5 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 712c7a8d013e3a443eb0b079941794a27926b3d4988772a6ae8bbc3db5e319b4
|
|
4
|
+
data.tar.gz: c067165392f26a5b743dc814b2c5c84dd5e979e44d1ee093ea12466d3365eab1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 471da1f82ede33a21673c0a7ace5a0559502ce64cca63ee950e3117e4e4be63db42b9ec6b9a86b0325f172f92f6fd6dd2bfd4194cffbd881876aba8be2ca94ee
|
|
7
|
+
data.tar.gz: 810d5849dc9b1f6bae41f7fbce36c8d16ab02be3972ef09c617fe5f2695aca63a359055be96f5d0abbebb77957ee1c8e3869b0ff298ca0ee32763c18f4d4a617
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.1.3] - 2026-09-18
|
|
4
|
+
|
|
5
|
+
### Changed
|
|
6
|
+
|
|
7
|
+
- Requires `ask-core >= 0.12.0` for the decision vocabulary
|
|
8
|
+
(`Ask::Decision`, `Ask::DecisionProvider`, `Ask::DecisionResult`).
|
|
9
|
+
Nothing else changed.
|
|
10
|
+
|
|
3
11
|
## [0.1.0] - 2026-08-20
|
|
4
12
|
|
|
5
13
|
### Added
|
data/lib/ask/computer/version.rb
CHANGED
|
@@ -72,6 +72,42 @@ driver.call_tool("computer_key", { key: "Enter" })
|
|
|
72
72
|
|
|
73
73
|
Prefer accessibility-aware targeting when available over raw coordinates. After each state-changing action, re-screenshot to confirm the change.
|
|
74
74
|
|
|
75
|
+
## Step 2b: Decide the Next Action (Optional)
|
|
76
|
+
|
|
77
|
+
When facing a complex screen state or multi-step workflow, use the `decide` tool to select the best action from candidates rather than guessing. This offloads the "which action?" judgment to a fast decision model (Jev) while the agent handles observation and execution.
|
|
78
|
+
|
|
79
|
+
```ruby
|
|
80
|
+
# After taking a screenshot and describing the screen state:
|
|
81
|
+
decide(
|
|
82
|
+
state: "Screen shows a login form. Username field at (100,200), password at (100,250), Submit at (100,300).",
|
|
83
|
+
questions: '{
|
|
84
|
+
"action": {
|
|
85
|
+
"type": "choice",
|
|
86
|
+
"instructions": "Which action should the agent take next?",
|
|
87
|
+
"criteria": {
|
|
88
|
+
"click_username": "Click the username field to focus it",
|
|
89
|
+
"click_submit": "Click the submit button (only if credentials are already filled)",
|
|
90
|
+
"type_credentials": "Type username and password",
|
|
91
|
+
"none": "The goal state is already achieved"
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
"confidence": {
|
|
95
|
+
"type": "noul",
|
|
96
|
+
"instructions": "Is the screen state clear enough to act?"
|
|
97
|
+
}
|
|
98
|
+
}'
|
|
99
|
+
)
|
|
100
|
+
# => {"model":"jev-latest","answers":{"action":{"type":"choice","choice":"click_username","confidence":0.92},"confidence":{"type":"noul","noul":0.85}}}
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
Use `decide` when:
|
|
104
|
+
- Multiple valid actions exist and you need to pick the best one
|
|
105
|
+
- You want calibrated confidence scores before acting
|
|
106
|
+
- The screen is ambiguous and you want a fast second opinion
|
|
107
|
+
- You're in a loop and want to detect stale/repeated actions
|
|
108
|
+
|
|
109
|
+
Skip `decide` for straightforward single-action sequences (e.g., type then Enter).
|
|
110
|
+
|
|
75
111
|
## Step 3: Query History with Bounded Reads
|
|
76
112
|
|
|
77
113
|
Events are ordered by `data.sequence` ascending. Treat missing sequence numbers as gap evidence. Paginate toward older records with `until_sequence`; toward newer with `since_sequence`. Bounds are inclusive — subtract/add 1 for non-overlapping pages.
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ask-computer
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Kaka Ruto
|
|
@@ -15,28 +15,28 @@ dependencies:
|
|
|
15
15
|
requirements:
|
|
16
16
|
- - ">="
|
|
17
17
|
- !ruby/object:Gem::Version
|
|
18
|
-
version: 0.12.
|
|
18
|
+
version: 0.12.1
|
|
19
19
|
type: :runtime
|
|
20
20
|
prerelease: false
|
|
21
21
|
version_requirements: !ruby/object:Gem::Requirement
|
|
22
22
|
requirements:
|
|
23
23
|
- - ">="
|
|
24
24
|
- !ruby/object:Gem::Version
|
|
25
|
-
version: 0.12.
|
|
25
|
+
version: 0.12.1
|
|
26
26
|
- !ruby/object:Gem::Dependency
|
|
27
27
|
name: ask-mcp
|
|
28
28
|
requirement: !ruby/object:Gem::Requirement
|
|
29
29
|
requirements:
|
|
30
30
|
- - ">="
|
|
31
31
|
- !ruby/object:Gem::Version
|
|
32
|
-
version: 0.
|
|
32
|
+
version: 0.6.1
|
|
33
33
|
type: :runtime
|
|
34
34
|
prerelease: false
|
|
35
35
|
version_requirements: !ruby/object:Gem::Requirement
|
|
36
36
|
requirements:
|
|
37
37
|
- - ">="
|
|
38
38
|
- !ruby/object:Gem::Version
|
|
39
|
-
version: 0.
|
|
39
|
+
version: 0.6.1
|
|
40
40
|
- !ruby/object:Gem::Dependency
|
|
41
41
|
name: ask-tools
|
|
42
42
|
requirement: !ruby/object:Gem::Requirement
|