@weavetab/skills 1.0.3 → 2.5.0-beta.4
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 +108 -60
- package/ROUTER.md +43 -0
- package/bin/cli.js +232 -132
- package/browser/dom-strategy.md +119 -0
- package/browser/form-automation.md +87 -0
- package/browser/interaction-pipeline.md +216 -0
- package/browser/tab-and-window.md +136 -0
- package/desktop/desktop-targeting.md +85 -0
- package/desktop/electron-discovery.md +115 -0
- package/developer/github-forensics.md +74 -0
- package/dist/bundled/weavetab-all.md +1905 -0
- package/dist/bundled/weavetab-browser.md +501 -0
- package/dist/bundled/weavetab-desktop.md +176 -0
- package/dist/bundled/weavetab-developer.md +67 -0
- package/dist/bundled/weavetab-documents.md +142 -0
- package/dist/bundled/weavetab-memory.md +359 -0
- package/dist/bundled/weavetab-network-and-perf.md +223 -0
- package/dist/bundled/weavetab-plugins.md +78 -0
- package/dist/bundled/weavetab-resilience.md +216 -0
- package/dist/bundled/weavetab-security.md +87 -0
- package/dist/granular/browser_dom-strategy.md +119 -0
- package/dist/granular/browser_form-automation.md +87 -0
- package/dist/granular/browser_interaction-pipeline.md +216 -0
- package/dist/granular/browser_tab-and-window.md +136 -0
- package/dist/granular/desktop_desktop-targeting.md +85 -0
- package/dist/granular/desktop_electron-discovery.md +115 -0
- package/dist/granular/developer_github-forensics.md +74 -0
- package/dist/granular/documents_canvas-and-visual-capture.md +103 -0
- package/dist/granular/documents_office-document-ingestion.md +63 -0
- package/dist/granular/memory_selector-memory-system.md +127 -0
- package/dist/granular/memory_session-trail.md +95 -0
- package/dist/granular/memory_site-learning.md +180 -0
- package/dist/granular/network-and-perf_device-and-environment.md +87 -0
- package/dist/granular/network-and-perf_network-intercept-and-mock.md +84 -0
- package/dist/granular/network-and-perf_performance-and-vitals.md +84 -0
- package/dist/granular/plugins_hooks-and-overrides.md +36 -0
- package/dist/granular/plugins_plugin-runtime.md +60 -0
- package/dist/granular/resilience_loop-breaker.md +67 -0
- package/dist/granular/resilience_session-time-travel.md +131 -0
- package/dist/granular/resilience_stale-ref-recovery.md +53 -0
- package/dist/granular/security_rbac-and-policies.md +47 -0
- package/dist/granular/security_secret-containment-protocol.md +59 -0
- package/documents/canvas-and-visual-capture.md +103 -0
- package/documents/office-document-ingestion.md +63 -0
- package/evals/evaluator.js +146 -0
- package/evals/scenarios.json +238 -0
- package/memory/selector-memory-system.md +127 -0
- package/memory/session-trail.md +95 -0
- package/memory/site-learning.md +180 -0
- package/network-and-perf/device-and-environment.md +87 -0
- package/network-and-perf/network-intercept-and-mock.md +84 -0
- package/network-and-perf/performance-and-vitals.md +84 -0
- package/package.json +73 -51
- package/plugins/hooks-and-overrides.md +36 -0
- package/plugins/plugin-runtime.md +60 -0
- package/resilience/loop-breaker.md +67 -0
- package/resilience/session-time-travel.md +131 -0
- package/resilience/stale-ref-recovery.md +53 -0
- package/security/rbac-and-policies.md +47 -0
- package/security/secret-containment-protocol.md +59 -0
- package/skills.json +431 -308
- package/src/api.js +239 -128
- package/advanced/README.md +0 -2
- package/automation/README.md +0 -2
- package/general/captcha-evasion.md +0 -13
- package/general/context-awareness.md +0 -13
- package/general/cookie-consent.md +0 -13
- package/general/data-extraction.md +0 -13
- package/general/dynamic-interaction.md +0 -13
- package/general/error-recovery.md +0 -13
- package/general/file-upload.md +0 -13
- package/general/form-filling.md +0 -16
- package/general/guardrails.md +0 -13
- package/general/iframe-handling.md +0 -13
- package/general/infinite-scroll.md +0 -13
- package/general/login-flow.md +0 -16
- package/general/multi-tab-management.md +0 -13
- package/general/spa-navigation.md +0 -13
- package/general/table-scraping.md +0 -13
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: electron-discovery
|
|
3
|
+
domain: desktop
|
|
4
|
+
triggers:
|
|
5
|
+
- "discover electron apps"
|
|
6
|
+
- "detect desktop apps"
|
|
7
|
+
- "connect to slack"
|
|
8
|
+
- "connect to discord"
|
|
9
|
+
- "connect to vscode"
|
|
10
|
+
- "electron automation"
|
|
11
|
+
tools:
|
|
12
|
+
- "browser_detect"
|
|
13
|
+
weavetab: ">=2.5.0-beta.4"
|
|
14
|
+
---
|
|
15
|
+
|
|
16
|
+
# Electron Discovery & Environment Handshake
|
|
17
|
+
|
|
18
|
+
Modern desktop applications (Discord, Slack, VS Code, Notion, Obsidian, Figma) are built on Chromium and Electron. Weavetab can inspect and drive these native applications through standard CDP interfaces without third-party drivers or OS-level accessibility hacks.
|
|
19
|
+
|
|
20
|
+
`browser_detect` is the **critical initialization handshake** tool. Every agent should call `browser_detect` before interacting with the user's desktop environment to gain immediate situational awareness.
|
|
21
|
+
|
|
22
|
+
---
|
|
23
|
+
|
|
24
|
+
## 1. Running Discovery via `browser_detect`
|
|
25
|
+
|
|
26
|
+
Call `browser_detect` with empty parameters `{}`:
|
|
27
|
+
|
|
28
|
+
```json
|
|
29
|
+
{}
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
### Response Schema:
|
|
33
|
+
```json
|
|
34
|
+
{
|
|
35
|
+
"available": [
|
|
36
|
+
{
|
|
37
|
+
"engine": "chromium",
|
|
38
|
+
"name": "Google Chrome",
|
|
39
|
+
"path": "C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe"
|
|
40
|
+
}
|
|
41
|
+
],
|
|
42
|
+
"current": "chromium",
|
|
43
|
+
"configuredApps": [
|
|
44
|
+
{
|
|
45
|
+
"name": "discord",
|
|
46
|
+
"status": "running_no_debug",
|
|
47
|
+
"configuredPath": "C:\\Users\\username\\AppData\\Local\\Discord\\app-1.0.9256\\Discord.exe"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"name": "slack",
|
|
51
|
+
"status": "connected",
|
|
52
|
+
"port": 9222,
|
|
53
|
+
"configuredPath": "C:\\Users\\username\\AppData\\Local\\slack\\app-4.38.125\\slack.exe",
|
|
54
|
+
"activeTabs": [
|
|
55
|
+
{
|
|
56
|
+
"id": "PAGE_1",
|
|
57
|
+
"title": "general - Weavetab Slack",
|
|
58
|
+
"url": "https://app.slack.com/client/..."
|
|
59
|
+
}
|
|
60
|
+
]
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"name": "vscode",
|
|
64
|
+
"status": "offline",
|
|
65
|
+
"configuredPath": "C:\\Users\\username\\AppData\\Local\\Programs\\Microsoft VS Code\\Code.exe"
|
|
66
|
+
}
|
|
67
|
+
],
|
|
68
|
+
"toolCoverage": {
|
|
69
|
+
"chromium": 100,
|
|
70
|
+
"firefox": 78,
|
|
71
|
+
"webkit": 55
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
---
|
|
77
|
+
|
|
78
|
+
## 2. Understanding Application Status
|
|
79
|
+
|
|
80
|
+
Each configured desktop app reports one of three distinct lifecycle statuses:
|
|
81
|
+
|
|
82
|
+
| Status | Meaning | Agent Action |
|
|
83
|
+
| :--- | :--- | :--- |
|
|
84
|
+
| **`connected`** | App is running with CDP remote debugging active. Weavetab has an active session. | Immediately interact using any tool with `"app": "<name>"`. Tabs and port are available. |
|
|
85
|
+
| **`running_no_debug`** | The app process is currently open on the user's OS, but was launched normally by the user without `--remote-debugging-port`. | Do NOT send click/type commands. To attach, inform the user or close and launch via `browser_navigate(app: "<name>")` so Weavetab supplies the debugging port. |
|
|
86
|
+
| **`offline`** | The application is not currently running on the OS. | Launch and attach in one step by calling `browser_navigate(app: "<name>")`. |
|
|
87
|
+
|
|
88
|
+
---
|
|
89
|
+
|
|
90
|
+
## 3. Dynamic Squirrel Updates on Windows
|
|
91
|
+
|
|
92
|
+
On Windows, Squirrel-managed applications (Discord, Slack, Teams) update dynamically into versioned sibling directories (e.g. `Discord\app-1.0.9256\Discord.exe`).
|
|
93
|
+
|
|
94
|
+
Weavetab automatically handles this:
|
|
95
|
+
- If a configured path points to an outdated version or the parent folder, Weavetab scans the directory, resolves the highest semantic version folder (`app-1.0.xxxx`), and launches the valid executable.
|
|
96
|
+
- The dynamically resolved path is reported in `browser_detect` under `configuredPath`.
|
|
97
|
+
|
|
98
|
+
---
|
|
99
|
+
|
|
100
|
+
## 4. Launching Desktop Apps Manually with Debugging
|
|
101
|
+
|
|
102
|
+
If the user prefers to launch apps manually from a terminal or shortcut with remote debugging enabled:
|
|
103
|
+
|
|
104
|
+
```bash
|
|
105
|
+
# Discord
|
|
106
|
+
Discord.exe --remote-debugging-port=9222
|
|
107
|
+
|
|
108
|
+
# Slack
|
|
109
|
+
slack.exe --remote-debugging-port=9223
|
|
110
|
+
|
|
111
|
+
# VS Code
|
|
112
|
+
code.exe --remote-debugging-port=9225
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
Once launched with `--remote-debugging-port`, `browser_detect` immediately reflects the application as connectable.
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: github-forensics
|
|
3
|
+
domain: developer
|
|
4
|
+
triggers:
|
|
5
|
+
- "analyze github"
|
|
6
|
+
- "read repository"
|
|
7
|
+
- "check pull request"
|
|
8
|
+
- "github issues"
|
|
9
|
+
- "inspect repo"
|
|
10
|
+
tools:
|
|
11
|
+
- "browser_github"
|
|
12
|
+
weavetab: ">=2.5.0-beta.4"
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
# GitHub Forensics & Repository Architecture Inspection
|
|
16
|
+
|
|
17
|
+
Navigating GitHub repositories via web browsing burns massive token budgets loading HTML chrome, comment threads, and diff trees. Weavetab includes a dedicated `browser_github` tool that interacts directly with git metadata and raw endpoints.
|
|
18
|
+
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
## 1. High-Level Repository Analysis (action: "analyze")
|
|
22
|
+
|
|
23
|
+
Quickly summarize repo structure, languages, dependency graphs, and recent commit frequency:
|
|
24
|
+
|
|
25
|
+
```json
|
|
26
|
+
{
|
|
27
|
+
"action": "analyze",
|
|
28
|
+
"repo": "Weavetab/MCP"
|
|
29
|
+
}
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
---
|
|
33
|
+
|
|
34
|
+
## 2. Reading Repository Source Files (action: "read")
|
|
35
|
+
|
|
36
|
+
Directly stream files and directories from any public or authenticated GitHub repo without cloning or burning API rate limits:
|
|
37
|
+
|
|
38
|
+
```json
|
|
39
|
+
{
|
|
40
|
+
"action": "read",
|
|
41
|
+
"repo": "Weavetab/MCP",
|
|
42
|
+
"paths": ["src/server.ts"],
|
|
43
|
+
"line_range": [1, 200]
|
|
44
|
+
}
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
---
|
|
48
|
+
|
|
49
|
+
## 3. Pull Request Forensics (action: "pr")
|
|
50
|
+
|
|
51
|
+
Retrieve PR diffs, changed files, review comments, CI checks, and mergeability status:
|
|
52
|
+
|
|
53
|
+
```json
|
|
54
|
+
{
|
|
55
|
+
"action": "pr",
|
|
56
|
+
"repo": "Weavetab/MCP",
|
|
57
|
+
"number": 42
|
|
58
|
+
}
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
---
|
|
62
|
+
|
|
63
|
+
## 4. Issue Triage & Search (action: "issues")
|
|
64
|
+
|
|
65
|
+
Query repository issue trackers with state, label, and keyword filters:
|
|
66
|
+
|
|
67
|
+
```json
|
|
68
|
+
{
|
|
69
|
+
"action": "issues",
|
|
70
|
+
"repo": "Weavetab/MCP",
|
|
71
|
+
"state": "open",
|
|
72
|
+
"labels": ["bug", "priority"]
|
|
73
|
+
}
|
|
74
|
+
```
|