taskwindow 0.2.14 → 0.2.15
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 +10 -2
- package/package.json +2 -2
- package/src/tools.js +7 -4
package/README.md
CHANGED
|
@@ -162,8 +162,16 @@ in the mouse-dynamics literature, so do not build on it as camouflage.
|
|
|
162
162
|
folder; manual codes are available with `taskwindow pair`.
|
|
163
163
|
- **Agent actions are visible**: a phantom cursor and glow show where the
|
|
164
164
|
agent is acting; while it does, Chrome shows a
|
|
165
|
-
*"started debugging this browser"* infobar
|
|
166
|
-
|
|
165
|
+
*"started debugging this browser"* infobar. Ordinary tabs disconnect after
|
|
166
|
+
10 seconds with no browser tool calls running, and Chrome dismisses the banner
|
|
167
|
+
about five seconds later. Tabs stay open and reconnect automatically on use.
|
|
168
|
+
Tabs with `render: true` and responsive fallback tabs keep their connection
|
|
169
|
+
while open, since rendering and viewport emulation depend on it; those keep
|
|
170
|
+
the banner visible.
|
|
171
|
+
- **Debug capture**: collected console messages and network requests survive
|
|
172
|
+
an idle disconnect, but capture pauses while disconnected. Navigate or reload
|
|
173
|
+
to capture a fresh page load. For continuous capture between calls, reload
|
|
174
|
+
with `render: true`; this also keeps Chrome's debugging banner visible.
|
|
167
175
|
|
|
168
176
|
## Requirements & limits
|
|
169
177
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "taskwindow",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.15",
|
|
4
4
|
"description": "TaskWindow local daemon: bridges the TaskWindow Chrome extension to any MCP client over Streamable HTTP",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/index.js",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
},
|
|
10
10
|
"scripts": {
|
|
11
11
|
"start": "node src/index.js",
|
|
12
|
-
"test": "node --test test/agents.test.mjs test/pairing.test.mjs test/extension-bootstrap.test.mjs test/extension-connection.test.mjs test/extension-idle.test.mjs test/extension-tabs.test.mjs test/extension-responsive.test.mjs test/extension-human.test.mjs test/bridge.test.mjs test/tool-contract.test.mjs test/updates.test.mjs && node test/run.mjs"
|
|
12
|
+
"test": "node --test test/agents.test.mjs test/pairing.test.mjs test/extension-bootstrap.test.mjs test/extension-connection.test.mjs test/extension-idle.test.mjs test/extension-cdp.test.mjs test/extension-tabs.test.mjs test/extension-responsive.test.mjs test/extension-human.test.mjs test/bridge.test.mjs test/tool-contract.test.mjs test/updates.test.mjs && node test/run.mjs"
|
|
13
13
|
},
|
|
14
14
|
"engines": {
|
|
15
15
|
"node": ">=18"
|
package/src/tools.js
CHANGED
|
@@ -26,7 +26,7 @@ const render = z
|
|
|
26
26
|
"tab paints barely at all, which most pages don't mind. Some only fetch or draw once seen, so turn this on if you suspect the page " +
|
|
27
27
|
"needs a viewer: skeleton placeholders or spinners that never resolve, a chart area that stays empty, an animation stuck mid-way, " +
|
|
28
28
|
"or a screenshot that times out. On a page already showing that, reload with render: true. It stays on for the tab, across " +
|
|
29
|
-
"navigations. The tab is still never made active and never takes focus."
|
|
29
|
+
"navigations. This keeps Chrome's debugging banner visible until the tab closes. The tab is still never made active and never takes focus."
|
|
30
30
|
);
|
|
31
31
|
|
|
32
32
|
// Result contract with the extension: {text?, image?: {data, mimeType}, data?}.
|
|
@@ -122,7 +122,7 @@ const rawDefs = [
|
|
|
122
122
|
"speed matters more than realism. A native <select> opens a browser menu that clicks and keys cannot drive: " +
|
|
123
123
|
"set it with form_input. A scroll result reports how far the content actually moved, which on an infinite list " +
|
|
124
124
|
"can be less than asked. NOTE: while attached, Chrome shows a " +
|
|
125
|
-
'"TaskWindow started debugging this browser" infobar
|
|
125
|
+
'"TaskWindow started debugging this browser" infobar. Ordinary tabs disconnect after 10 seconds with no running browser calls; rendering and emulated-viewport tabs stay connected.',
|
|
126
126
|
inputSchema: {
|
|
127
127
|
action: z.enum([
|
|
128
128
|
"screenshot", "left_click", "right_click", "middle_click", "double_click", "triple_click",
|
|
@@ -274,7 +274,8 @@ const rawDefs = [
|
|
|
274
274
|
name: "read_console_messages",
|
|
275
275
|
description:
|
|
276
276
|
"Read console output (console.*, errors, warnings) captured from the tab. Capture is CDP-based, so it covers " +
|
|
277
|
-
"messages emitted while TaskWindow
|
|
277
|
+
"messages emitted while TaskWindow is attached. Capture pauses after 10 seconds with no running browser calls; " +
|
|
278
|
+
"previously captured messages are kept. For continuous capture, reload with render:true (keeps Chrome's debugging banner visible).",
|
|
278
279
|
inputSchema: {
|
|
279
280
|
tabId: tabId.optional(),
|
|
280
281
|
pattern: z.string().optional().describe("Only messages matching this regular expression"),
|
|
@@ -286,7 +287,9 @@ const rawDefs = [
|
|
|
286
287
|
{
|
|
287
288
|
name: "read_network_requests",
|
|
288
289
|
description:
|
|
289
|
-
"Read network requests observed in the tab while TaskWindow was attached: method, URL, status, type and size."
|
|
290
|
+
"Read network requests observed in the tab while TaskWindow was attached: method, URL, status, type and size. " +
|
|
291
|
+
"Capture pauses after 10 seconds with no running browser calls; previously captured requests are kept. " +
|
|
292
|
+
"Navigate or reload to capture a fresh load; for continuous capture, reload with render:true (keeps Chrome's debugging banner visible).",
|
|
290
293
|
inputSchema: {
|
|
291
294
|
tabId: tabId.optional(),
|
|
292
295
|
pattern: z.string().optional().describe("Only requests whose URL matches this regular expression"),
|