@aiagenta2z/agtm 1.1.1 → 1.1.2
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 +40 -1
- package/data/config/hints/base_hints.json +250 -10
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -34,13 +34,52 @@ code_fail_skills 4 0.9 L3(100%)
|
|
|
34
34
|
npm install -g @aiagenta2z/agtm
|
|
35
35
|
```
|
|
36
36
|
|
|
37
|
+
### Run a playwright Webpage cli
|
|
37
38
|
Setup hint and skills benchmark
|
|
38
39
|
```shell
|
|
39
40
|
npx agtm setup --levels ## Needed before `agtm rate`, to sync the benchmarks json to local folder
|
|
40
41
|
npx agtm setup --hint ## Needed before `agtm run`
|
|
41
42
|
```
|
|
42
43
|
|
|
43
|
-
|
|
44
|
+
```shell
|
|
45
|
+
npm install -g @playwright/cli@latest
|
|
46
|
+
agtm run play
|
|
47
|
+
|
|
48
|
+
### hint to "playwright-cli goto" command line
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
Result Hint
|
|
52
|
+
```shell
|
|
53
|
+
Selected Skill/Cli is microsoft/playwright-cli
|
|
54
|
+
|
|
55
|
+
Enter command to run (leave empty to list cli hints): play
|
|
56
|
+
|
|
57
|
+
Complete the Cli with your arguments or leave blank and press Enter
|
|
58
|
+
|
|
59
|
+
Final command line [playwright-cli goto <url>]:
|
|
60
|
+
playwright-cli goto https://www.google.com
|
|
61
|
+
agtm run microsoft/playwright-cli playwright-cli goto https://www.google.com
|
|
62
|
+
|
|
63
|
+
### Browser `default` opened with pid 4603.
|
|
64
|
+
- default:
|
|
65
|
+
- browser-type: chrome
|
|
66
|
+
- user-data-dir: <in-memory>
|
|
67
|
+
- headed: false
|
|
68
|
+
---
|
|
69
|
+
|
|
70
|
+
### Ran Playwright code
|
|
71
|
+
await page.goto('https://www.google.com');
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
### Page
|
|
75
|
+
- Page URL: https://www.google.com/
|
|
76
|
+
- Page Title: Google
|
|
77
|
+
### Snapshot
|
|
78
|
+
- [Snapshot](.playwright-cli/page-2026-03-22T03-08-05-614Z.yml)
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
## Agtm CLI Options
|
|
44
83
|
|
|
45
84
|
| CLI | Command and Options | Document |
|
|
46
85
|
|-------------|-------------------------------------------|--------------------------------|
|
|
@@ -1,21 +1,261 @@
|
|
|
1
1
|
{
|
|
2
2
|
"microsoft/playwright-cli": {
|
|
3
3
|
"hints": [
|
|
4
|
-
{
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
},
|
|
8
|
-
{
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}
|
|
4
|
+
{ "cli": "playwright-cli open [url]", "hint": "open browser, optionally navigate to url" },
|
|
5
|
+
{ "cli": "playwright-cli goto <url>", "hint": "navigate to a url" },
|
|
6
|
+
{ "cli": "playwright-cli close", "hint": "close the browser page" },
|
|
7
|
+
{ "cli": "playwright-cli type <text>", "hint": "type text into editable element" },
|
|
8
|
+
{ "cli": "playwright-cli click <ref> [button]", "hint": "click an element" },
|
|
9
|
+
{ "cli": "playwright-cli dblclick <ref> [button]", "hint": "double click an element" },
|
|
10
|
+
{ "cli": "playwright-cli fill <ref> <text>", "hint": "fill text into input field" },
|
|
11
|
+
{ "cli": "playwright-cli drag <startRef> <endRef>", "hint": "drag and drop between elements" },
|
|
12
|
+
{ "cli": "playwright-cli hover <ref>", "hint": "hover over element" },
|
|
13
|
+
{ "cli": "playwright-cli select <ref> <val>", "hint": "select dropdown option" },
|
|
14
|
+
{ "cli": "playwright-cli upload <file>", "hint": "upload file(s)" },
|
|
15
|
+
{ "cli": "playwright-cli check <ref>", "hint": "check checkbox or radio" },
|
|
16
|
+
{ "cli": "playwright-cli uncheck <ref>", "hint": "uncheck checkbox or radio" },
|
|
17
|
+
{ "cli": "playwright-cli snapshot", "hint": "capture page snapshot" },
|
|
18
|
+
{ "cli": "playwright-cli snapshot --filename=<file>", "hint": "save snapshot to file" },
|
|
19
|
+
{ "cli": "playwright-cli eval <func> [ref]", "hint": "run JS on page or element" },
|
|
20
|
+
{ "cli": "playwright-cli dialog-accept [prompt]", "hint": "accept dialog" },
|
|
21
|
+
{ "cli": "playwright-cli dialog-dismiss", "hint": "dismiss dialog" },
|
|
22
|
+
{ "cli": "playwright-cli resize <w> <h>", "hint": "resize browser window" },
|
|
23
|
+
{ "cli": "playwright-cli go-back", "hint": "go to previous page" },
|
|
24
|
+
{ "cli": "playwright-cli go-forward", "hint": "go to next page" },
|
|
25
|
+
{ "cli": "playwright-cli reload", "hint": "reload current page" },
|
|
26
|
+
{ "cli": "playwright-cli press <key>", "hint": "press a key" },
|
|
27
|
+
{ "cli": "playwright-cli keydown <key>", "hint": "key down event" },
|
|
28
|
+
{ "cli": "playwright-cli keyup <key>", "hint": "key up event" },
|
|
29
|
+
{ "cli": "playwright-cli mousemove <x> <y>", "hint": "move mouse" },
|
|
30
|
+
{ "cli": "playwright-cli mousedown [button]", "hint": "mouse button down" },
|
|
31
|
+
{ "cli": "playwright-cli mouseup [button]", "hint": "mouse button up" },
|
|
32
|
+
{ "cli": "playwright-cli mousewheel <dx> <dy>", "hint": "scroll mouse wheel" },
|
|
33
|
+
{ "cli": "playwright-cli screenshot [ref]", "hint": "take screenshot" },
|
|
34
|
+
{ "cli": "playwright-cli screenshot --filename=<file>", "hint": "save screenshot to file" },
|
|
35
|
+
{ "cli": "playwright-cli pdf", "hint": "save page as pdf" },
|
|
36
|
+
{ "cli": "playwright-cli pdf --filename=<file>", "hint": "save pdf to file" },
|
|
37
|
+
{ "cli": "playwright-cli tab-list", "hint": "list browser tabs" },
|
|
38
|
+
{ "cli": "playwright-cli tab-new [url]", "hint": "open new tab" },
|
|
39
|
+
{ "cli": "playwright-cli tab-close [index]", "hint": "close tab" },
|
|
40
|
+
{ "cli": "playwright-cli tab-select <index>", "hint": "switch tab" },
|
|
41
|
+
{ "cli": "playwright-cli state-save [filename]", "hint": "save storage state" },
|
|
42
|
+
{ "cli": "playwright-cli state-load <filename>", "hint": "load storage state" },
|
|
43
|
+
{ "cli": "playwright-cli cookie-list [--domain]", "hint": "list cookies" },
|
|
44
|
+
{ "cli": "playwright-cli cookie-get <name>", "hint": "get cookie value" },
|
|
45
|
+
{ "cli": "playwright-cli cookie-set <name> <value>", "hint": "set cookie" },
|
|
46
|
+
{ "cli": "playwright-cli cookie-delete <name>", "hint": "delete cookie" },
|
|
47
|
+
{ "cli": "playwright-cli cookie-clear", "hint": "clear all cookies" },
|
|
48
|
+
{ "cli": "playwright-cli localstorage-list", "hint": "list localStorage" },
|
|
49
|
+
{ "cli": "playwright-cli localstorage-get <key>", "hint": "get localStorage value" },
|
|
50
|
+
{ "cli": "playwright-cli localstorage-set <key> <value>", "hint": "set localStorage" },
|
|
51
|
+
{ "cli": "playwright-cli localstorage-delete <key>", "hint": "delete localStorage entry" },
|
|
52
|
+
{ "cli": "playwright-cli localstorage-clear", "hint": "clear localStorage" },
|
|
53
|
+
{ "cli": "playwright-cli sessionstorage-list", "hint": "list sessionStorage" },
|
|
54
|
+
{ "cli": "playwright-cli sessionstorage-get <key>", "hint": "get sessionStorage value" },
|
|
55
|
+
{ "cli": "playwright-cli sessionstorage-set <key> <value>", "hint": "set sessionStorage" },
|
|
56
|
+
{ "cli": "playwright-cli sessionstorage-delete <key>", "hint": "delete sessionStorage entry" },
|
|
57
|
+
{ "cli": "playwright-cli sessionstorage-clear", "hint": "clear sessionStorage" },
|
|
58
|
+
{ "cli": "playwright-cli route <pattern> [opts]", "hint": "mock network requests" },
|
|
59
|
+
{ "cli": "playwright-cli route-list", "hint": "list routes" },
|
|
60
|
+
{ "cli": "playwright-cli unroute [pattern]", "hint": "remove routes" },
|
|
61
|
+
{ "cli": "playwright-cli console [min-level]", "hint": "show console logs" },
|
|
62
|
+
{ "cli": "playwright-cli network", "hint": "list network requests" },
|
|
63
|
+
{ "cli": "playwright-cli run-code <code>", "hint": "execute playwright code" },
|
|
64
|
+
{ "cli": "playwright-cli tracing-start", "hint": "start tracing" },
|
|
65
|
+
{ "cli": "playwright-cli tracing-stop", "hint": "stop tracing" },
|
|
66
|
+
{ "cli": "playwright-cli video-start", "hint": "start video recording" },
|
|
67
|
+
{ "cli": "playwright-cli video-stop [filename]", "hint": "stop video recording" },
|
|
68
|
+
{ "cli": "playwright-cli open --browser=<name>", "hint": "open with specific browser" },
|
|
69
|
+
{ "cli": "playwright-cli open --extension", "hint": "connect via extension" },
|
|
70
|
+
{ "cli": "playwright-cli open --persistent", "hint": "use persistent profile" },
|
|
71
|
+
{ "cli": "playwright-cli open --profile=<path>", "hint": "use custom profile" },
|
|
72
|
+
{ "cli": "playwright-cli open --config=<file>", "hint": "use config file" },
|
|
73
|
+
{ "cli": "playwright-cli delete-data", "hint": "delete browser data" },
|
|
74
|
+
{ "cli": "playwright-cli -s=<name> <cmd>", "hint": "run command in named session" },
|
|
75
|
+
{ "cli": "playwright-cli -s=<name> close", "hint": "close named session" },
|
|
76
|
+
{ "cli": "playwright-cli -s=<name> delete-data", "hint": "delete session data" },
|
|
77
|
+
{ "cli": "playwright-cli list", "hint": "list all sessions" },
|
|
78
|
+
{ "cli": "playwright-cli close-all", "hint": "close all browsers" },
|
|
79
|
+
{ "cli": "playwright-cli kill-all", "hint": "force kill all browsers" }
|
|
12
80
|
]
|
|
13
81
|
},
|
|
14
82
|
"googleworkspace/cli": {
|
|
15
83
|
"hints": [
|
|
16
84
|
{
|
|
17
|
-
"cli": "gws
|
|
18
|
-
"hint": "
|
|
85
|
+
"cli": "gws auth setup",
|
|
86
|
+
"hint": "initialize Google Cloud project and OAuth"
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"cli": "gws auth login",
|
|
90
|
+
"hint": "login with OAuth credentials"
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"cli": "gws auth login --scopes <services>",
|
|
94
|
+
"hint": "login with specific scopes"
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"cli": "gws auth export --unmasked",
|
|
98
|
+
"hint": "export credentials for CI or headless usage"
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"cli": "gws <service> <resource> <method> --params '<json>'",
|
|
102
|
+
"hint": "call any Google Workspace API method"
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"cli": "gws <service> <resource> <method> --json '<json>'",
|
|
106
|
+
"hint": "send JSON body payload"
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"cli": "gws schema <service.resource.method>",
|
|
110
|
+
"hint": "inspect API request/response schema"
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"cli": "gws drive files list --params '{\"pageSize\": 10}'",
|
|
114
|
+
"hint": "list recent Drive files"
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"cli": "gws drive files list --params '{\"pageSize\": 100}' --page-all",
|
|
118
|
+
"hint": "stream paginated results as NDJSON"
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"cli": "gws drive files create --json '{\"name\": \"file\"}' --upload <file>",
|
|
122
|
+
"hint": "upload file to Drive"
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"cli": "gws sheets spreadsheets create --json '{\"properties\": {\"title\": \"Sheet\"}}'",
|
|
126
|
+
"hint": "create a spreadsheet"
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"cli": "gws sheets spreadsheets values get --params '<json>'",
|
|
130
|
+
"hint": "read spreadsheet values"
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"cli": "gws sheets spreadsheets values append --params '<json>' --json '<json>'",
|
|
134
|
+
"hint": "append rows to spreadsheet"
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"cli": "gws gmail users messages list --params '<json>'",
|
|
138
|
+
"hint": "list Gmail messages"
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
"cli": "gws gmail users messages get --params '<json>'",
|
|
142
|
+
"hint": "get email content"
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
"cli": "gws chat spaces messages create --params '<json>' --json '<json>'",
|
|
146
|
+
"hint": "send Chat message"
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"cli": "gws calendar events list --params '<json>'",
|
|
150
|
+
"hint": "list calendar events"
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
"cli": "gws calendar events insert --json '<json>'",
|
|
154
|
+
"hint": "create calendar event"
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
"cli": "gws docs documents get --params '<json>'",
|
|
158
|
+
"hint": "read a document"
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
"cli": "gws <service> --help",
|
|
162
|
+
"hint": "show all commands and helper methods for a service"
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
"cli": "gws gmail +send --to <email> --subject <text> --body <text>",
|
|
166
|
+
"hint": "send an email"
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
"cli": "gws gmail +reply --message-id <id> --body <text>",
|
|
170
|
+
"hint": "reply to an email"
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
"cli": "gws gmail +triage",
|
|
174
|
+
"hint": "show unread inbox summary"
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
"cli": "gws gmail +watch",
|
|
178
|
+
"hint": "stream new emails as NDJSON"
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
"cli": "gws sheets +append --spreadsheet <id> --values <csv>",
|
|
182
|
+
"hint": "append row to spreadsheet"
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
"cli": "gws sheets +read --spreadsheet <id>",
|
|
186
|
+
"hint": "read spreadsheet values"
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
"cli": "gws docs +write --document <id> --text <text>",
|
|
190
|
+
"hint": "append text to document"
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
"cli": "gws drive +upload <file> --name <name>",
|
|
194
|
+
"hint": "upload file with metadata"
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
"cli": "gws calendar +insert",
|
|
198
|
+
"hint": "create calendar event quickly"
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
"cli": "gws calendar +agenda",
|
|
202
|
+
"hint": "show upcoming events"
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
"cli": "gws calendar +agenda --timezone <tz>",
|
|
206
|
+
"hint": "show agenda in specific timezone"
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
"cli": "gws workflow +standup-report",
|
|
210
|
+
"hint": "generate daily standup summary"
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
"cli": "gws workflow +meeting-prep",
|
|
214
|
+
"hint": "prepare for upcoming meeting"
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
"cli": "gws workflow +weekly-digest",
|
|
218
|
+
"hint": "weekly summary of meetings and emails"
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
"cli": "gws workflow +email-to-task",
|
|
222
|
+
"hint": "convert email into task"
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
"cli": "gws chat +send --space <id> --text <message>",
|
|
226
|
+
"hint": "send chat message"
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
"cli": "gws events +subscribe",
|
|
230
|
+
"hint": "subscribe to workspace events"
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
"cli": "gws events +renew",
|
|
234
|
+
"hint": "renew event subscription"
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
"cli": "gws modelarmor +sanitize-prompt",
|
|
238
|
+
"hint": "sanitize user prompt"
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
"cli": "gws modelarmor +sanitize-response",
|
|
242
|
+
"hint": "sanitize model response"
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
"cli": "gws <service> <resource> <method> --dry-run",
|
|
246
|
+
"hint": "preview API request without executing"
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
"cli": "gws <service> <resource> <method> --page-all",
|
|
250
|
+
"hint": "auto paginate results"
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
"cli": "gws <service> <resource> <method> --page-limit <n>",
|
|
254
|
+
"hint": "limit number of pages"
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
"cli": "gws <service> <resource> <method> --sanitize <template>",
|
|
258
|
+
"hint": "sanitize API response using Model Armor"
|
|
19
259
|
}
|
|
20
260
|
]
|
|
21
261
|
},
|
package/package.json
CHANGED