@weavetab/skills 2.5.0 → 2.5.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/LICENSE +1 -1
- package/README.md +108 -108
- package/ROUTER.md +43 -43
- package/bin/cli.js +232 -232
- package/browser/dom-strategy.md +121 -119
- package/browser/form-automation.md +84 -87
- package/browser/interaction-pipeline.md +242 -216
- package/browser/tab-and-window.md +136 -136
- package/desktop/desktop-targeting.md +85 -85
- package/desktop/electron-discovery.md +115 -115
- package/developer/github-forensics.md +89 -74
- package/dist/bundled/weavetab-all.md +1885 -1709
- package/dist/bundled/weavetab-browser.md +526 -501
- package/dist/bundled/weavetab-desktop.md +176 -176
- package/dist/bundled/weavetab-developer.md +84 -67
- package/dist/bundled/weavetab-documents.md +184 -142
- package/dist/bundled/weavetab-memory.md +259 -233
- package/dist/bundled/weavetab-network-and-perf.md +250 -223
- package/dist/bundled/weavetab-plugins.md +88 -83
- package/dist/bundled/weavetab-resilience.md +244 -216
- package/dist/bundled/weavetab-security.md +93 -87
- package/dist/granular/browser_dom-strategy.md +121 -119
- package/dist/granular/browser_form-automation.md +84 -87
- package/dist/granular/browser_interaction-pipeline.md +242 -216
- package/dist/granular/browser_tab-and-window.md +136 -136
- package/dist/granular/desktop_desktop-targeting.md +85 -85
- package/dist/granular/desktop_electron-discovery.md +115 -115
- package/dist/granular/developer_github-forensics.md +89 -74
- package/dist/granular/documents_canvas-and-visual-capture.md +117 -103
- package/dist/granular/documents_office-document-ingestion.md +91 -63
- package/dist/granular/memory_selector-memory-system.md +127 -127
- package/dist/granular/memory_session-trail.md +111 -95
- package/dist/granular/memory_site-learning.md +62 -53
- package/dist/granular/network-and-perf_device-and-environment.md +100 -87
- package/dist/granular/network-and-perf_network-intercept-and-mock.md +97 -84
- package/dist/granular/network-and-perf_performance-and-vitals.md +86 -84
- package/dist/granular/plugins_hooks-and-overrides.md +40 -35
- package/dist/granular/plugins_plugin-runtime.md +63 -63
- package/dist/granular/resilience_loop-breaker.md +72 -67
- package/dist/granular/resilience_session-time-travel.md +146 -131
- package/dist/granular/resilience_stale-ref-recovery.md +61 -53
- package/dist/granular/security_rbac-and-policies.md +50 -47
- package/dist/granular/security_secret-containment-protocol.md +62 -59
- package/documents/canvas-and-visual-capture.md +117 -103
- package/documents/office-document-ingestion.md +91 -63
- package/evals/evaluator.js +146 -146
- package/evals/scenarios.json +239 -239
- package/memory/selector-memory-system.md +127 -127
- package/memory/session-trail.md +111 -95
- package/memory/site-learning.md +61 -52
- package/network-and-perf/device-and-environment.md +100 -87
- package/network-and-perf/network-intercept-and-mock.md +97 -84
- package/network-and-perf/performance-and-vitals.md +86 -84
- package/package.json +74 -73
- package/plugins/hooks-and-overrides.md +40 -35
- package/plugins/plugin-runtime.md +63 -63
- package/resilience/loop-breaker.md +72 -67
- package/resilience/session-time-travel.md +146 -131
- package/resilience/stale-ref-recovery.md +61 -53
- package/security/rbac-and-policies.md +50 -47
- package/security/secret-containment-protocol.md +62 -59
- package/skills.json +425 -426
- package/src/api.js +239 -239
|
@@ -1,142 +1,184 @@
|
|
|
1
|
-
# Weavetab Domain Profile: DOCUMENTS
|
|
2
|
-
|
|
3
|
-
Generated for @weavetab/skills v2.5.
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
## canvas-and-visual-capture
|
|
7
|
-
|
|
8
|
-
# Visual Capture, Canvas Forensics & Design Extraction
|
|
9
|
-
|
|
10
|
-
Beyond textual DOM manipulation, modern web applications contain dynamic HTML5 canvas renderings (charts, maps, WebGL games), and agents often need high-fidelity visual artifacts.
|
|
11
|
-
|
|
12
|
-
---
|
|
13
|
-
|
|
14
|
-
## 1. Targeted Screenshots (`browser_screenshot`)
|
|
15
|
-
|
|
16
|
-
Capture full page layouts, the visible viewport, or specific element bounding boxes:
|
|
17
|
-
|
|
18
|
-
```json
|
|
19
|
-
{
|
|
20
|
-
"fullPage": true,
|
|
21
|
-
"format": "png"
|
|
22
|
-
}
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
Or
|
|
26
|
-
```json
|
|
27
|
-
{
|
|
28
|
-
"
|
|
29
|
-
"format": "jpeg",
|
|
30
|
-
"quality": 80
|
|
31
|
-
}
|
|
32
|
-
```
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
```
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
```json
|
|
85
|
-
{
|
|
86
|
-
"
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
1
|
+
# Weavetab Domain Profile: DOCUMENTS
|
|
2
|
+
|
|
3
|
+
Generated for @weavetab/skills v2.5.2
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
## canvas-and-visual-capture
|
|
7
|
+
|
|
8
|
+
# Visual Capture, Canvas Forensics & Design Extraction
|
|
9
|
+
|
|
10
|
+
Beyond textual DOM manipulation, modern web applications contain dynamic HTML5 canvas renderings (charts, maps, WebGL games), and agents often need high-fidelity visual artifacts.
|
|
11
|
+
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
## 1. Targeted Screenshots (`browser_screenshot`)
|
|
15
|
+
|
|
16
|
+
Capture full page layouts, the visible viewport, or specific element bounding boxes:
|
|
17
|
+
|
|
18
|
+
```json
|
|
19
|
+
{
|
|
20
|
+
"fullPage": true,
|
|
21
|
+
"format": "png"
|
|
22
|
+
}
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
Or crop to a specific element by CSS selector, or to a pixel rectangle with `clip`:
|
|
26
|
+
```json
|
|
27
|
+
{
|
|
28
|
+
"selector": "#pricing-table",
|
|
29
|
+
"format": "jpeg",
|
|
30
|
+
"quality": 80
|
|
31
|
+
}
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
Options: `format` (`png` default, or `jpeg`), `quality` (JPEG only), `fullPage`, `selector`, and `clip` (`{x, y, width, height}`).
|
|
35
|
+
|
|
36
|
+
---
|
|
37
|
+
|
|
38
|
+
## 2. PDF Document Generation (`browser_pdf`)
|
|
39
|
+
|
|
40
|
+
Render the current page into a print-ready PDF file:
|
|
41
|
+
|
|
42
|
+
```json
|
|
43
|
+
{
|
|
44
|
+
"filename": "report.pdf",
|
|
45
|
+
"landscape": false,
|
|
46
|
+
"scale": 1.0,
|
|
47
|
+
"pageRanges": "1-5",
|
|
48
|
+
"margin": { "top": 0.4, "bottom": 0.4, "left": 0.4, "right": 0.4 }
|
|
49
|
+
}
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
Options: `filename` (defaults to `capture_<timestamp>.pdf`), `landscape`, `scale` (default 1.0), `pageRanges` (e.g. `"1-5"`, empty for all), and `margin` — either a single number in inches or a `{top,bottom,left,right}` object (default 0.4).
|
|
53
|
+
|
|
54
|
+
---
|
|
55
|
+
|
|
56
|
+
## 3. HTML5 Canvas Pixel Inspection & Visual Grounding (`browser_canvas` & `browser_map`)
|
|
57
|
+
|
|
58
|
+
When a chart or graphic is rendered via `<canvas>`, standard DOM reading tools cannot see individual buttons or nodes. You have two strategies:
|
|
59
|
+
|
|
60
|
+
### A. Set-of-Marks Visual Grounding (Recommended for Canvas UIs & WebGL)
|
|
61
|
+
Run `browser_map({ visual: "auto" })`. It detects canvas elements and high-contrast regions, attaches numbered badges `[1]…[N]`, and returns an annotated image:
|
|
62
|
+
```json
|
|
63
|
+
{
|
|
64
|
+
"visual": "auto"
|
|
65
|
+
}
|
|
66
|
+
```
|
|
67
|
+
Then interact directly by mark number without guessing pixel coordinates:
|
|
68
|
+
```json
|
|
69
|
+
{
|
|
70
|
+
"mark": 3
|
|
71
|
+
}
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
### B. Direct Canvas Pixel Export (`browser_canvas`)
|
|
75
|
+
To export the raw canvas as an image, or simulate a drag/gesture path across it:
|
|
76
|
+
```json
|
|
77
|
+
{
|
|
78
|
+
"ref": "w:19",
|
|
79
|
+
"action": "get_image"
|
|
80
|
+
}
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
For drawing or selecting a region, pass `"action": "draw"` with a `points` array of `{x, y}` positions (relative to the canvas):
|
|
84
|
+
```json
|
|
85
|
+
{
|
|
86
|
+
"action": "draw",
|
|
87
|
+
"selector": "canvas#chart",
|
|
88
|
+
"points": [ { "x": 40, "y": 10 }, { "x": 200, "y": 120 } ]
|
|
89
|
+
}
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
---
|
|
93
|
+
|
|
94
|
+
## 4. Design System Extraction (`browser_extract_design`)
|
|
95
|
+
|
|
96
|
+
Reverse-engineer UI stylesheets, active CSS custom properties (variables), typography scales, and color palettes:
|
|
97
|
+
|
|
98
|
+
```json
|
|
99
|
+
{
|
|
100
|
+
"selector": ".antigravity-hud-panel"
|
|
101
|
+
}
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
Returns structured JSON representing colors, font families, shadows, and spacing tokens.
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
## office-document-ingestion
|
|
108
|
+
|
|
109
|
+
# Office Document Ingestion: Word, Excel, PDF & CSV Parsing
|
|
110
|
+
|
|
111
|
+
Agents frequently need to parse structured spreadsheets or corporate documents downloaded during automation runs. `browser_office` reads `.xlsx`, `.xls`, `.docx`, `.pdf`, and `.csv` content directly into JSON.
|
|
112
|
+
|
|
113
|
+
---
|
|
114
|
+
|
|
115
|
+
## 1. Two Modes: `url` and `file`
|
|
116
|
+
|
|
117
|
+
`browser_office({ action: "read" })` accepts exactly one source:
|
|
118
|
+
|
|
119
|
+
- **`url`** — fetch a document URL in-browser using the active session cookies. Ideal for authenticated downloads, SharePoint links, and Google Drive exports. The format is auto-detected from the URL path or MIME type (and magic bytes as a fallback).
|
|
120
|
+
- **`file`** — parse a file already present in the local downloads directory. Pass a **bare filename** only (e.g. `"report.xlsx"`); path separators are rejected.
|
|
121
|
+
|
|
122
|
+
`max_rows` (default 500) caps Excel/CSV rows; `max_chars` (default 50000) caps PDF/Word text.
|
|
123
|
+
|
|
124
|
+
Use `action: "list"` first if you don't know what files are in the downloads directory.
|
|
125
|
+
|
|
126
|
+
---
|
|
127
|
+
|
|
128
|
+
## 2. Parsing Spreadsheets (`.xlsx`, `.xls`, `.csv`)
|
|
129
|
+
|
|
130
|
+
```json
|
|
131
|
+
{
|
|
132
|
+
"action": "read",
|
|
133
|
+
"file": "quarterly_revenue.xlsx",
|
|
134
|
+
"max_rows": 100
|
|
135
|
+
}
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
Excel returns per-sheet tables (rows as objects keyed by header):
|
|
139
|
+
|
|
140
|
+
```json
|
|
141
|
+
{
|
|
142
|
+
"success": true,
|
|
143
|
+
"source": "quarterly_revenue.xlsx",
|
|
144
|
+
"type": "excel",
|
|
145
|
+
"data": {
|
|
146
|
+
"Q3_Summary": [
|
|
147
|
+
{ "Department": "Engineering", "Budget": 1250000, "Actual": 1180000 },
|
|
148
|
+
{ "Department": "Marketing", "Budget": 600000, "Actual": 620000 }
|
|
149
|
+
]
|
|
150
|
+
},
|
|
151
|
+
"truncated": false
|
|
152
|
+
}
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
CSV returns `type: "csv"` with a flat `data` array of row objects.
|
|
156
|
+
|
|
157
|
+
---
|
|
158
|
+
|
|
159
|
+
## 3. Ingesting Word & PDF Documents (`.docx`, `.pdf`)
|
|
160
|
+
|
|
161
|
+
Word and PDF extraction return text in `content` (truncated by `max_chars`). PDF additionally reports page metadata under `data`:
|
|
162
|
+
|
|
163
|
+
```json
|
|
164
|
+
{
|
|
165
|
+
"action": "read",
|
|
166
|
+
"url": "https://intranet.example.com/docs/service_agreement.pdf"
|
|
167
|
+
}
|
|
168
|
+
```
|
|
169
|
+
|
|
170
|
+
```json
|
|
171
|
+
{
|
|
172
|
+
"success": true,
|
|
173
|
+
"source": "https://intranet.example.com/docs/service_agreement.pdf",
|
|
174
|
+
"type": "pdf",
|
|
175
|
+
"content": "SERVICE AGREEMENT ...",
|
|
176
|
+
"truncated": true,
|
|
177
|
+
"data": { "numpages": 12, "info": { "Title": "Service Agreement" } }
|
|
178
|
+
}
|
|
179
|
+
```
|
|
180
|
+
|
|
181
|
+
### Operational Notes:
|
|
182
|
+
- PDF/Word parsing relies on local binary dependencies (e.g. poppler); if unavailable the call returns `success: false` with an explanatory `error`.
|
|
183
|
+
- If the URL resolves to an HTML login page rather than a document, `type` is `"html"` and `success` is `false` — the link is likely gated.
|
|
184
|
+
- Never point `browser_scrape` or `browser_map` at binary documents; they cannot read inside Excel, Word, or PDF files.
|