@weavetab/skills 2.5.0 → 2.5.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.
Files changed (62) hide show
  1. package/README.md +108 -108
  2. package/ROUTER.md +43 -43
  3. package/bin/cli.js +232 -232
  4. package/browser/dom-strategy.md +121 -119
  5. package/browser/form-automation.md +84 -87
  6. package/browser/interaction-pipeline.md +242 -216
  7. package/browser/tab-and-window.md +136 -136
  8. package/desktop/desktop-targeting.md +85 -85
  9. package/desktop/electron-discovery.md +115 -115
  10. package/developer/github-forensics.md +89 -74
  11. package/dist/bundled/weavetab-all.md +1885 -1709
  12. package/dist/bundled/weavetab-browser.md +526 -501
  13. package/dist/bundled/weavetab-desktop.md +176 -176
  14. package/dist/bundled/weavetab-developer.md +84 -67
  15. package/dist/bundled/weavetab-documents.md +184 -142
  16. package/dist/bundled/weavetab-memory.md +259 -233
  17. package/dist/bundled/weavetab-network-and-perf.md +250 -223
  18. package/dist/bundled/weavetab-plugins.md +88 -83
  19. package/dist/bundled/weavetab-resilience.md +244 -216
  20. package/dist/bundled/weavetab-security.md +93 -87
  21. package/dist/granular/browser_dom-strategy.md +121 -119
  22. package/dist/granular/browser_form-automation.md +84 -87
  23. package/dist/granular/browser_interaction-pipeline.md +242 -216
  24. package/dist/granular/browser_tab-and-window.md +136 -136
  25. package/dist/granular/desktop_desktop-targeting.md +85 -85
  26. package/dist/granular/desktop_electron-discovery.md +115 -115
  27. package/dist/granular/developer_github-forensics.md +89 -74
  28. package/dist/granular/documents_canvas-and-visual-capture.md +117 -103
  29. package/dist/granular/documents_office-document-ingestion.md +91 -63
  30. package/dist/granular/memory_selector-memory-system.md +127 -127
  31. package/dist/granular/memory_session-trail.md +111 -95
  32. package/dist/granular/memory_site-learning.md +62 -53
  33. package/dist/granular/network-and-perf_device-and-environment.md +100 -87
  34. package/dist/granular/network-and-perf_network-intercept-and-mock.md +97 -84
  35. package/dist/granular/network-and-perf_performance-and-vitals.md +86 -84
  36. package/dist/granular/plugins_hooks-and-overrides.md +40 -35
  37. package/dist/granular/plugins_plugin-runtime.md +63 -63
  38. package/dist/granular/resilience_loop-breaker.md +72 -67
  39. package/dist/granular/resilience_session-time-travel.md +146 -131
  40. package/dist/granular/resilience_stale-ref-recovery.md +61 -53
  41. package/dist/granular/security_rbac-and-policies.md +50 -47
  42. package/dist/granular/security_secret-containment-protocol.md +62 -59
  43. package/documents/canvas-and-visual-capture.md +117 -103
  44. package/documents/office-document-ingestion.md +91 -63
  45. package/evals/evaluator.js +146 -146
  46. package/evals/scenarios.json +239 -239
  47. package/memory/selector-memory-system.md +127 -127
  48. package/memory/session-trail.md +111 -95
  49. package/memory/site-learning.md +61 -52
  50. package/network-and-perf/device-and-environment.md +100 -87
  51. package/network-and-perf/network-intercept-and-mock.md +97 -84
  52. package/network-and-perf/performance-and-vitals.md +86 -84
  53. package/package.json +74 -73
  54. package/plugins/hooks-and-overrides.md +40 -35
  55. package/plugins/plugin-runtime.md +63 -63
  56. package/resilience/loop-breaker.md +72 -67
  57. package/resilience/session-time-travel.md +146 -131
  58. package/resilience/stale-ref-recovery.md +61 -53
  59. package/security/rbac-and-policies.md +50 -47
  60. package/security/secret-containment-protocol.md +62 -59
  61. package/skills.json +425 -426
  62. package/src/api.js +239 -239
@@ -1,142 +1,184 @@
1
- # Weavetab Domain Profile: DOCUMENTS
2
-
3
- Generated for @weavetab/skills v2.5.0-beta.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 target a specific element ref:
26
- ```json
27
- {
28
- "ref": "w:55",
29
- "format": "jpeg",
30
- "quality": 80
31
- }
32
- ```
33
-
34
- ---
35
-
36
- ## 2. PDF Document Generation (`browser_pdf`)
37
-
38
- Render the current page into a print-ready PDF document with print CSS styles applied:
39
-
40
- ```json
41
- {
42
- "landscape": false,
43
- "printBackground": true,
44
- "paperWidth": 8.5,
45
- "paperHeight": 11
46
- }
47
- ```
48
-
49
- ---
50
-
51
- ## 3. HTML5 Canvas Pixel Inspection & Visual Grounding (`browser_canvas` & `browser_map`)
52
-
53
- When a chart or graphic is rendered via `<canvas>`, standard DOM reading tools cannot see individual buttons or nodes. You have two strategies:
54
-
55
- ### A. Set-of-Marks Visual Grounding (Recommended for Canvas UIs & WebGL)
56
- Run `browser_map({ visual: "auto" })`. It detects canvas elements and high-contrast regions, attaches numbered badges `[1]…[N]`, and returns an annotated image:
57
- ```json
58
- {
59
- "visual": "auto"
60
- }
61
- ```
62
- Then interact directly by mark number without guessing pixel coordinates:
63
- ```json
64
- {
65
- "mark": 3
66
- }
67
- ```
68
-
69
- ### B. Direct Canvas Pixel Export (`browser_canvas`)
70
- To extract the raw image data or draw programmatic gesture paths:
71
- ```json
72
- {
73
- "ref": "w:19",
74
- "action": "toDataURL"
75
- }
76
- ```
77
-
78
- ---
79
-
80
- ## 4. Design System Extraction (`browser_extract_design`)
81
-
82
- Reverse-engineer UI stylesheets, active CSS custom properties (variables), typography scales, and color palettes:
83
-
84
- ```json
85
- {
86
- "selector": ".antigravity-hud-panel"
87
- }
88
- ```
89
-
90
- Returns structured JSON representing colors, font families, shadows, and spacing tokens.
91
-
92
-
93
- ## office-document-ingestion
94
-
95
- # Office Document Ingestion: Word, Excel & CSV Parsing
96
-
97
- Agents frequently need to parse structured spreadsheets or corporate documents downloaded during automation runs. `browser_office` parses `.docx`, `.xlsx`, `.xls`, and `.csv` files directly into clean JSON structures.
98
-
99
- ---
100
-
101
- ## 1. Parsing Spreadsheets (`.xlsx`, `.csv`)
102
-
103
- Stream structured sheet data, headers, and cell values:
104
-
105
- ```json
106
- {
107
- "filePath": "C:/Users/fy2ne/Downloads/quarterly_revenue.xlsx",
108
- "sheet": "Q3_Summary",
109
- "headerRow": 1,
110
- "maxRows": 100
111
- }
112
- ```
113
-
114
- ### Response Example:
115
- ```json
116
- {
117
- "fileType": "xlsx",
118
- "sheets": ["Q1", "Q2", "Q3_Summary"],
119
- "rowCount": 45,
120
- "data": [
121
- { "Department": "Engineering", "Budget": 1250000, "Actual": 1180000 },
122
- { "Department": "Marketing", "Budget": 600000, "Actual": 620000 }
123
- ]
124
- }
125
- ```
126
-
127
- ---
128
-
129
- ## 2. Ingesting Word Documents (`.docx`)
130
-
131
- Extract semantic paragraphs, document headings, tables, and lists:
132
-
133
- ```json
134
- {
135
- "filePath": "C:/Users/fy2ne/Documents/service_agreement.docx",
136
- "extractTables": true
137
- }
138
- ```
139
-
140
- ### Operational Advantages:
141
- - Eliminates the need for heavy external Python libraries or microservices.
142
- - Safely sanitizes binary formats before passing content into LLM context.
1
+ # Weavetab Domain Profile: DOCUMENTS
2
+
3
+ Generated for @weavetab/skills v2.5.1
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.