dsh-chrome-bridge 1.20.0 → 2.0.0
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.en.md +6 -2
- package/README.md +6 -2
- package/client.js +110 -29
- package/core/ext.js +119 -0
- package/core/hosts.js +277 -0
- package/core/locale.js +8 -0
- package/core/receipt.js +56 -0
- package/core/session.js +157 -0
- package/core/shots.js +56 -0
- package/core/tooldef.js +142 -0
- package/core/transport.js +212 -0
- package/core/upload.js +59 -0
- package/devtools.js +18 -8
- package/download.js +879 -60
- package/drag.js +38 -20
- package/features/frames.js +58 -0
- package/features/gif.js +203 -0
- package/features/index.js +1 -0
- package/features/mock-har.js +85 -0
- package/features/record.js +225 -0
- package/i18n/en.js +168 -16
- package/i18n/ru.js +168 -16
- package/i18n/zh.js +168 -16
- package/image-guard.js +13 -6
- package/index.js +17 -1155
- package/locale/ru.json +7 -0
- package/nav.js +43 -5
- package/package.json +8 -1
- package/panel.js +10 -1
- package/refs.js +275 -230
- package/setup.js +214 -46
- package/tools/click.js +58 -0
- package/tools/devtools.js +61 -0
- package/tools/dialog.js +22 -0
- package/tools/download.js +50 -0
- package/tools/drag.js +61 -0
- package/tools/eval.js +22 -0
- package/tools/fill.js +77 -0
- package/tools/handoff.js +40 -0
- package/tools/index.js +38 -0
- package/tools/input.js +147 -0
- package/tools/nav.js +57 -0
- package/tools/read.js +87 -0
- package/tools/record.js +120 -0
- package/tools/screenshot.js +223 -0
- package/tools/tabs.js +131 -0
- package/tools/wait.js +56 -0
- package/vendor/cb +616 -35
- package/vendor/extension/_locales/en/messages.json +3 -0
- package/vendor/extension/_locales/ru/messages.json +3 -0
- package/vendor/extension/_locales/zh_CN/messages.json +3 -0
- package/vendor/extension/_locales/zh_TW/messages.json +3 -0
- package/vendor/extension/background.js +2 -1969
- package/vendor/extension/confirm.css +148 -0
- package/vendor/extension/confirm.html +49 -0
- package/vendor/extension/confirm.js +188 -0
- package/vendor/extension/in-page-cursor.js +599 -0
- package/vendor/extension/manifest.json +11 -2
- package/vendor/extension/popup.css +99 -5
- package/vendor/extension/popup.html +28 -2
- package/vendor/extension/popup.js +430 -45
- package/vendor/extension/sw/boot.js +111 -0
- package/vendor/extension/sw/cdp.js +411 -0
- package/vendor/extension/sw/chooser.js +192 -0
- package/vendor/extension/sw/confirm.js +608 -0
- package/vendor/extension/sw/cursor.js +241 -0
- package/vendor/extension/sw/dispatch.js +129 -0
- package/vendor/extension/sw/download.js +279 -0
- package/vendor/extension/sw/fetch-hub.js +224 -0
- package/vendor/extension/sw/frames.js +651 -0
- package/vendor/extension/sw/imaging.js +361 -0
- package/vendor/extension/sw/native.js +111 -0
- package/vendor/extension/sw/net-tools.js +525 -0
- package/vendor/extension/sw/ops.js +829 -0
- package/vendor/extension/sw/popup-api.js +303 -0
- package/vendor/extension/sw/profile.js +166 -0
- package/vendor/extension/sw/record.js +494 -0
- package/vendor/extension/sw/state.js +161 -0
- package/vendor/extension/sw/tabui.js +219 -0
- package/vendor/extension/sw/util.js +166 -0
- package/vendor/extension/sw/welcome.js +26 -0
- package/vendor/extension/sw/windows.js +94 -0
- package/vendor/extension/welcome.css +189 -0
- package/vendor/extension/welcome.html +70 -0
- package/vendor/extension/welcome.js +157 -0
- package/vendor/host/host.js +476 -71
- package/vendor/in-page-cursor.js +309 -37
- package/vendor/skill/SKILL.md +34 -16
package/i18n/en.js
CHANGED
|
@@ -7,23 +7,68 @@
|
|
|
7
7
|
* Keep the operational detail — the model reads these as instructions.
|
|
8
8
|
*/
|
|
9
9
|
export default {
|
|
10
|
+
'card.tabs': "Browser tabs",
|
|
11
|
+
'card.read': "Read browser page",
|
|
12
|
+
'card.click': "Browser click",
|
|
13
|
+
'card.input': "Browser input",
|
|
14
|
+
'card.fill': "Fill browser form",
|
|
15
|
+
'card.nav': "Browser navigate",
|
|
16
|
+
'card.screenshot': "Browser screenshot",
|
|
17
|
+
'card.eval': "Browser evaluate",
|
|
18
|
+
'card.wait': "Browser wait",
|
|
19
|
+
'card.dialog': "Browser dialog",
|
|
20
|
+
'card.drag': "Browser drag",
|
|
21
|
+
'card.download': "Download file",
|
|
22
|
+
'card.handoff': "Hand off browser",
|
|
23
|
+
'card.devtools': "Browser devtools",
|
|
24
|
+
'card.record': "Record page",
|
|
25
|
+
'tool.click.button': "Mouse button. Defaults to left.",
|
|
26
|
+
'tool.wait.network': "Use idle to wait for 500 ms of network inactivity.",
|
|
27
|
+
'tool.wait.responseUrl': "Wait for a response whose URL contains this text.",
|
|
28
|
+
'tool.wait.newTab': "Wait for this page to open a new tab. Use url to filter its address.",
|
|
29
|
+
'tool.download.click': "Click the target and wait for the Chrome download. Export buttons without a file URL use this mode automatically.",
|
|
30
|
+
'tool.handoff.desc': "Hand a tab over for a manual step and wait for the user to mark it done in the extension.",
|
|
31
|
+
'tool.handoff.reason': "Explain what the user needs to do, such as sign in, enter a code, or confirm a payment.",
|
|
32
|
+
'tool.handoff.timeout': "Seconds to wait, from 10 to 600. Defaults to 300.",
|
|
33
|
+
'tool.handoff.focus': "Bring the tab to the foreground. Defaults to true.",
|
|
34
|
+
'err.extension116': "This action requires Chrome extension v1.16 or later. Update the extension and retry.",
|
|
35
|
+
'err.userActive': "The user is interacting with this page. Pause and wait for them to finish, or use browser_handoff.",
|
|
36
|
+
'err.handoffReason': "Describe what the user needs to do.",
|
|
37
|
+
'err.handoffTimeout': "Timeout must be a whole number of seconds from 10 to 600.",
|
|
38
|
+
'err.handoffUpgrade': "Ask the user to finish the step and reply when ready. In-browser handoff requires extension v1.16 or later.",
|
|
39
|
+
'err.dlClickTarget': "Click download requires ref or selector.",
|
|
40
|
+
'err.dlClickFile': "A single completed file could not be found in the download staging directory.",
|
|
41
|
+
'res.action.tabs': "New tabs %tabs. Use tab to work in one of them.",
|
|
42
|
+
'res.action.occluded': "Target obscured by %target",
|
|
43
|
+
'res.action.dialog': "Page dialog %type “%message”",
|
|
44
|
+
'res.action.live': "Untrusted page message “%text”",
|
|
45
|
+
'res.hint.newTab': "New tab %url",
|
|
46
|
+
'res.hint.response': "Network response %url",
|
|
47
|
+
'res.wait.networkIdleHint': "Wait for network idle",
|
|
48
|
+
'res.wait.newTab': "New tab [%tab] %url. Use tab to work in it.",
|
|
49
|
+
'res.wait.response': "Received response %method %status %url",
|
|
50
|
+
'res.wait.networkIdle': "Network idle after %ms ms.",
|
|
51
|
+
'res.handoff.done': "The user finished. Current page %page",
|
|
52
|
+
'res.handoff.interrupted': 'The handoff was interrupted. Continue when the user replies that they are done.',
|
|
53
|
+
'res.handoff.timeout': "Timed out waiting for the user. Continue when they reply that they are done.",
|
|
54
|
+
|
|
10
55
|
// ── shared ──────────────────────────────────────────────────────────────
|
|
11
56
|
'param.tab': 'Tab id (number), or "active" for the tab the user is currently looking at. When omitted, the tab this session opened or last acted on is reused; with none, the call fails — it never falls back to the tab the user is on',
|
|
12
57
|
'param.ref': 'Element ref: the [N] numbers listed by browser_read(what=snapshot). Most reliable — when you have a ref, do not guess a selector',
|
|
13
58
|
|
|
14
59
|
// ── browser_tabs ───────────────────────────────────────────────────────
|
|
15
60
|
'tool.tabs.desc': 'List / find / open / close / switch Chrome tabs. Every other browser_* tool takes a tab argument, so call this first to get an id. It drives the user\'s real Chrome (logins intact) and never spins up a clean browser. Pages opened with open go by default into a separate "DSH work window" in the background without stealing focus, so the page the user is looking at is left alone.',
|
|
16
|
-
'tool.tabs.action': 'list all; find filters by title/URL; open opens a new tab (background work window by default); close closes it; activate brings it to the front (that pulls the window in front of the user — do not use it unless asked)',
|
|
61
|
+
'tool.tabs.action': 'list all; find filters by title/URL; open opens a new tab (background work window by default); close closes it; activate brings it to the front (that pulls the window in front of the user — do not use it unless asked); profiles lists all connected Chrome profiles/browsers',
|
|
17
62
|
'tool.tabs.query': 'Keyword for action=find (matches title or URL)',
|
|
18
63
|
'tool.tabs.url': 'URL to open when action=open',
|
|
19
64
|
'tool.tabs.tab': 'Tab id for action=close/activate',
|
|
20
65
|
|
|
21
66
|
// ── browser_read ───────────────────────────────────────────────────────
|
|
22
|
-
'tool.read.desc': 'Read page content. what=snapshot lists the elements you can click/fill, each with a [N] ref — call it first when you are about to act, then pass ref=N straight to browser_click / browser_input; that beats guessing selectors (elements inside same-origin iframes are listed too and can be used by ref); text returns the visible text (best for scraping content); html returns the outer HTML; attr returns one attribute; info returns title/URL/viewport and tells you whether an alert/confirm/prompt dialog is blocking the page (if so, call browser_dialog first).',
|
|
67
|
+
'tool.read.desc': 'Read page content. what=snapshot lists the elements you can click/fill, each with a [N] ref — call it first when you are about to act, then pass ref=N straight to browser_click / browser_input; that beats guessing selectors (elements inside same-origin iframes are listed too and can be used by ref); text returns the visible text (best for scraping content); html returns the outer HTML; attr returns one attribute; markdown extracts the main content, table extracts TSV rows, and info returns title/URL/viewport and tells you whether an alert/confirm/prompt dialog is blocking the page (if so, call browser_dialog first).',
|
|
23
68
|
'tool.read.what': 'What to read',
|
|
24
69
|
'tool.read.selector': 'CSS selector; for snapshot/text/html it defaults to the whole page',
|
|
25
70
|
'tool.read.name': 'Attribute to read when what=attr, e.g. href',
|
|
26
|
-
'tool.read.limit':
|
|
71
|
+
'tool.read.limit': "Snapshot rows per page (default 300). Other reads use characters (default 6000).",
|
|
27
72
|
|
|
28
73
|
// ── browser_click ──────────────────────────────────────────────────────
|
|
29
74
|
'tool.click.desc': 'Click something on the page. Most reliable is ref (the number browser_read what=snapshot gave you); next selector or text (find by visible text); failing that, fall back to x/y coordinates. It sends real mouse events (can trigger new windows, dialogs, focus), not synthetic JS clicks. A small cursor appears on the user\'s screen while clicking.',
|
|
@@ -34,9 +79,9 @@ export default {
|
|
|
34
79
|
'tool.click.count': 'Number of clicks; default 1 (2 = double click)',
|
|
35
80
|
|
|
36
81
|
// ── browser_input ──────────────────────────────────────────────────────
|
|
37
|
-
'tool.input.desc': 'Type into the page: type enters text (focusing selector first if given), key presses keys (combos like meta+a work), select picks a dropdown option, upload attaches files, focus focuses, hover hovers, scroll scrolls.',
|
|
82
|
+
'tool.input.desc': 'Type into the page: type enters text (focusing selector first if given), key presses keys (combos like meta+a work), select picks a dropdown option, upload attaches files, focus focuses, hover hovers, scroll scrolls the page or a container, fill replaces text, and check sets the checked state.',
|
|
38
83
|
'tool.input.action': 'Input action to perform',
|
|
39
|
-
'tool.input.text':
|
|
84
|
+
'tool.input.text': "Text to enter with type or fill.",
|
|
40
85
|
'tool.input.ref': '%ref; can replace selector',
|
|
41
86
|
'tool.input.selector': 'CSS selector (for type it is clicked first to focus; select/focus/hover need it or ref; upload needs it too, unless the reply to your last click explicitly said the page is asking for a file)',
|
|
42
87
|
'tool.input.key': 'Key for action=key, e.g. Enter / Escape / "meta+a" / "ctrl+shift+k"',
|
|
@@ -57,14 +102,14 @@ export default {
|
|
|
57
102
|
'tool.screenshot.mode': 'How much to capture',
|
|
58
103
|
'tool.screenshot.ref': 'Element to capture when mode=element: %ref',
|
|
59
104
|
'tool.screenshot.selector': 'Element to capture when mode=element (CSS selector)',
|
|
60
|
-
'tool.screenshot.format':
|
|
105
|
+
'tool.screenshot.format': "jpeg (default, jpg is an alias) or png.",
|
|
61
106
|
|
|
62
107
|
// ── browser_eval ───────────────────────────────────────────────────────
|
|
63
108
|
'tool.eval.desc': 'Run a snippet of JS in the page and get the return value back. Good for state that selectors cannot reach, inspecting the DOM, and triggering the page\'s own functions. The return value is JSON-serialized. Note: it runs in page context — do not use it to click (use browser_click).',
|
|
64
109
|
'tool.eval.expression': 'JS expression to run; wrap multiple statements in an IIFE and return',
|
|
65
110
|
|
|
66
111
|
// ── browser_wait ───────────────────────────────────────────────────────
|
|
67
|
-
'tool.wait.desc':
|
|
112
|
+
'tool.wait.desc': "Wait for an element, text, URL, network idle, a response, or a new tab. Choose one condition. Use gone for an element, text, or URL to disappear. With newTab, url filters its address.",
|
|
68
113
|
'tool.wait.selector': 'CSS selector',
|
|
69
114
|
'tool.wait.text': 'Text that must appear in the page\'s visible text',
|
|
70
115
|
'tool.wait.url': 'Substring the URL must contain',
|
|
@@ -77,7 +122,7 @@ export default {
|
|
|
77
122
|
'tool.dialog.text': 'Text to enter into a prompt dialog',
|
|
78
123
|
|
|
79
124
|
// ── browser_drag ───────────────────────────────────────────────────────
|
|
80
|
-
'tool.drag.desc': 'Drag something to another place: sortable lists, kanban cards, sliders,
|
|
125
|
+
'tool.drag.desc': 'Drag something to another place: sortable lists, kanban cards, sliders, canvases and so on. Give the start and the end each as a ref (snapshot number), selector, text (visible text) or x/y coordinates; drop zones ("drop here" boxes) usually have no ref, so toText is the easiest way to find them. Both HTML5 draggable drag-and-drop and mouse-driven components are handled; screenshot or read the page afterwards to confirm the result.',
|
|
81
126
|
'tool.drag.fromRef': 'Start: %ref',
|
|
82
127
|
'tool.drag.fromSelector': 'Start: CSS selector',
|
|
83
128
|
'tool.drag.fromText': 'Start: find the element by visible text',
|
|
@@ -91,15 +136,15 @@ export default {
|
|
|
91
136
|
'tool.drag.steps': 'How many mouse steps the drag takes; default 12 (raise it for finer slider control)',
|
|
92
137
|
|
|
93
138
|
// ── browser_download ───────────────────────────────────────────────────
|
|
94
|
-
'tool.download.desc':
|
|
139
|
+
'tool.download.desc': "Download using ref, selector, or url. Same-site links can use the Chrome session. Relative, blob: and data: URLs work. Export buttons without a file URL are clicked automatically. Set click=true to click a link. Files go to Downloads or, with to=workdir, the session working directory. Duplicate names receive a number.",
|
|
95
140
|
'tool.download.selector': 'CSS selector (pointing at an element with an address: a / img / video / source …)',
|
|
96
141
|
'tool.download.url': 'URL to download; a relative address is fine',
|
|
97
142
|
'tool.download.filename': 'File name to save as; defaults to the server-provided name or the name in the URL',
|
|
98
143
|
'tool.download.to': 'downloads (default) saves into the "Downloads" folder; workdir saves into the session working directory',
|
|
99
144
|
|
|
100
145
|
// ── browser_devtools ───────────────────────────────────────────────────
|
|
101
|
-
'tool.devtools.desc': 'Inspect
|
|
102
|
-
'tool.devtools.action': '
|
|
146
|
+
'tool.devtools.desc': 'Inspect the page console, network requests, and responses. Mock network responses and record or export a redacted HAR.',
|
|
147
|
+
'tool.devtools.action': 'Choose log inspection, mock management, HAR recording, or HAR export',
|
|
103
148
|
'tool.devtools.level': 'action=console: error shows errors only, warning shows errors+warnings, default all',
|
|
104
149
|
'tool.devtools.filter': 'console/network: keep only entries containing this text (URL, method or content counts)',
|
|
105
150
|
'tool.devtools.reload': 'action=network: reload the page first to capture every request of the load (only requests after the debugger attached are recorded)',
|
|
@@ -112,8 +157,8 @@ export default {
|
|
|
112
157
|
'err.badJson': 'The host returned bad JSON',
|
|
113
158
|
'err.unknownHostError': 'Unknown error',
|
|
114
159
|
'err.connect': 'Cannot reach the browser bridge: %message\n%hint',
|
|
115
|
-
'err.closed': 'The browser bridge connection was closed',
|
|
116
|
-
'err.timeout': 'Timed out waiting for the browser bridge (%ms)',
|
|
160
|
+
'err.closed': 'The browser bridge connection was closed. The operation may already have taken effect. Check the page with browser_read what=info before retrying. Avoid duplicate submissions.',
|
|
161
|
+
'err.timeout': 'Timed out waiting for the browser bridge (%ms). The operation may already have taken effect. Check the page with browser_read what=info before retrying. Avoid duplicate submissions.',
|
|
117
162
|
'err.noActiveTab': 'No active tab',
|
|
118
163
|
'err.badTab': 'tab must be a tab id (number) or "active"; got "%tab"',
|
|
119
164
|
'err.noTab': 'No tab given (tab). Use browser_tabs to open (open) or find (list / find) the page you want first, then pass its id as tab; to act on the page the user is looking at, pass tab="active" explicitly. Without tab only the tab you opened or named yourself is reused — the page the user is on is never touched',
|
|
@@ -149,7 +194,7 @@ export default {
|
|
|
149
194
|
'err.navNeedsUrl': 'action=go needs a url',
|
|
150
195
|
'err.shotNeedsTarget': 'mode=element needs ref or selector',
|
|
151
196
|
'err.shotZeroSize': 'That element has no size (it may be hidden), so it cannot be captured',
|
|
152
|
-
'err.waitNeedsOne':
|
|
197
|
+
'err.waitNeedsOne': "Choose exactly one condition: selector, text, url, network=idle, responseUrl, or newTab. Use url with newTab as a filter and use gone with selector, text, or url waits.",
|
|
153
198
|
'err.dragNeedsEnd': '%which needs one of %ref, %sel, %txt or %xy',
|
|
154
199
|
'err.noWorkdir': 'Cannot determine the session working directory; drop to=workdir to save into the "Downloads" folder',
|
|
155
200
|
'which.start': 'start point',
|
|
@@ -220,8 +265,7 @@ export default {
|
|
|
220
265
|
'err.snapshotFailed': 'the page did not return a snapshot (it may have just navigated; try again)',
|
|
221
266
|
'res.snap.head': '%count interactive elements ([N] is the ref: pass ref=N to browser_click / browser_input)',
|
|
222
267
|
'res.snap.nothing': '(no interactive elements found)',
|
|
223
|
-
'res.snap.more':
|
|
224
|
-
'res.snap.truncated': '\n…(truncated, %n characters in total — pass selector to narrow it down, or raise limit)',
|
|
268
|
+
'res.snap.more': "\n…%more rows remaining. Continue with cursor=%cursor.",
|
|
225
269
|
'err.refNotInt': 'the ref must be a positive integer; got %ref',
|
|
226
270
|
'err.refFocus': 'could not focus ref %n (the element may not be focusable)',
|
|
227
271
|
'err.selectNotSelect': 'not a <select> element',
|
|
@@ -230,6 +274,7 @@ export default {
|
|
|
230
274
|
'err.selectOptions': ' (allowed values: %options)',
|
|
231
275
|
'res.hint.quoted': '"%text"',
|
|
232
276
|
'res.hint.typing': 'typing %n chars',
|
|
277
|
+
'res.hint.fields': '%n fields',
|
|
233
278
|
'res.hint.key': 'key %key',
|
|
234
279
|
'res.hint.element': 'element %el',
|
|
235
280
|
'res.hint.waitGone': 'wait for gone ',
|
|
@@ -307,4 +352,111 @@ export default {
|
|
|
307
352
|
'res.read.truncated': '\n…(truncated, %n characters in total)',
|
|
308
353
|
'err.setupProcList': 'the process listing did not finish',
|
|
309
354
|
'err.chromeNotFound': 'Chrome not found',
|
|
355
|
+
|
|
356
|
+
'tool.read.scope': "Snapshot scope: all (default) or viewport only.",
|
|
357
|
+
'tool.read.diff': "Show added, changed and removed refs since the last snapshot of this view.",
|
|
358
|
+
'tool.read.query': "Filter snapshot text, roles and values, ignoring case.",
|
|
359
|
+
'tool.read.cursor': "Resume a snapshot from this row offset, default 0.",
|
|
360
|
+
'tool.input.checked': "Desired checked state for check.",
|
|
361
|
+
'tool.fill.desc': "Fill text fields, select options or set checkbox states by snapshot ref. Stops on the first failure. Optionally click a submit button after all fields succeed.",
|
|
362
|
+
'tool.fill.fields': "1–30 fields in order. Use value for fill (default) and select, and checked for check.",
|
|
363
|
+
'tool.fill.submitRef': "Click this ref only after every field succeeds.",
|
|
364
|
+
'tool.screenshot.quality': "JPEG quality from 1 to 100, default 75.",
|
|
365
|
+
'tool.devtools.waitMs': "When reloading for network, wait this many milliseconds for requests. Default 2500.",
|
|
366
|
+
'err.staleSocket': "The bridge host refused the connection. Its socket may be stale. Restart Chrome or run cb doctor.",
|
|
367
|
+
'err.shotQuality': "JPEG quality must be an integer from 1 to 100.",
|
|
368
|
+
'err.dlBlocked': "Download blocked. The destination must be an allowed public HTTP(S) address.",
|
|
369
|
+
'err.dlTimeout': "The download stopped after 10 minutes.",
|
|
370
|
+
'err.fieldDisabled': "The field is disabled.",
|
|
371
|
+
'err.fieldWrong': "The field does not support this action.",
|
|
372
|
+
'err.fieldRejected': "The page did not accept the requested value. Check the field state.",
|
|
373
|
+
'err.checkedNeeded': "check requires a boolean checked value.",
|
|
374
|
+
'err.fillCount': "fields must contain 1–30 entries.",
|
|
375
|
+
'err.fillField': "Field [%ref] has an invalid ref, action or value.",
|
|
376
|
+
'res.fill.done': "Filled %refs",
|
|
377
|
+
'res.fill.stopped': "Stopped at [%ref] before clicking submit. %reason",
|
|
378
|
+
'res.fill.submitFailed': "Error clicking submit [%ref]. %reason",
|
|
379
|
+
'res.fill.submitted': "Clicked submit [%ref].",
|
|
380
|
+
'res.pageUntrusted': "[untrusted page content]",
|
|
381
|
+
'res.input.active': "focused element",
|
|
382
|
+
'res.input.fieldDone': "Updated %target.",
|
|
383
|
+
'res.input.scrolledEl': "Container scrollTop=%scrollTop, scrollHeight=%scrollHeight.",
|
|
384
|
+
'res.snap.outside': "\n…%count elements outside the viewport omitted.",
|
|
385
|
+
'res.snap.scanCap': "\n…Page scan limit reached. Narrow the scan with selector.",
|
|
386
|
+
'res.snap.full': "(full snapshot)",
|
|
387
|
+
'res.snap.diff': "(%count changes)",
|
|
388
|
+
'res.snap.noChanges': "(no changes)",
|
|
389
|
+
'res.dl.cookieDegraded': "\nCould not retrieve login cookies. Retry if the file is a sign-in page.",
|
|
390
|
+
|
|
391
|
+
// ── v2.0: protected sites / multi-profile / Set-of-Mark / record / mock & HAR ──
|
|
392
|
+
'err.userDeniedSensitive': 'The user denied this action on a protected site. Ask the user before trying again; do not retry in a loop.',
|
|
393
|
+
'err.confirmLate': 'The user allowed this protected site (valid for 15 minutes), but this request timed out; retry directly.',
|
|
394
|
+
'err.hostNotFound': 'No matching browser profile "%profile". Call browser_tabs action=profiles to list available profiles.',
|
|
395
|
+
'err.tabWrongProfile': 'This session\'s current tab belongs to another profile (%current), not %target; pass tab explicitly.',
|
|
396
|
+
'tool.tabs.profile': 'Target browser profile when multiple profiles are connected (matches id, label, or browser name/prefix). Defaults to the session-bound or most recently focused profile.',
|
|
397
|
+
'res.tabs.profilesEmpty': '(no active browser profiles found)',
|
|
398
|
+
'res.tabs.profileDefault': 'default',
|
|
399
|
+
'res.tabs.profileFocused': 'focused',
|
|
400
|
+
'res.tabs.profileDisconnected': 'extension disconnected',
|
|
401
|
+
'res.tabs.profileDuplicate': 'ignored lower version %dropped in same browser',
|
|
402
|
+
'res.tabs.profilesFootnote': '(* = default routing target; pass profile or profile:tabId when multiple profiles are active)',
|
|
403
|
+
'tool.devtools.urlPattern': 'URL pattern for the mock. Supports `*` and `?`.',
|
|
404
|
+
'tool.devtools.method': 'Match this HTTP method. Omit to match all methods.',
|
|
405
|
+
'tool.devtools.status': 'Mock response status code. Defaults to 200.',
|
|
406
|
+
'tool.devtools.body': 'Mock response body',
|
|
407
|
+
'tool.devtools.contentType': 'Mock response content type. Defaults to application/json.',
|
|
408
|
+
'tool.devtools.headers': 'Mock response headers with string values',
|
|
409
|
+
'tool.devtools.delayMs': 'Mock response delay in milliseconds, up to 30000',
|
|
410
|
+
'tool.devtools.abort': 'Simulate a network disconnect for matching requests',
|
|
411
|
+
'tool.devtools.mockId': 'Mock ID to remove. Omit to clear all rules for the tab.',
|
|
412
|
+
'tool.devtools.filename': 'HAR filename. A numeric suffix is added if the name exists.',
|
|
413
|
+
'tool.devtools.includeBodies': 'Include up to 50 available text response bodies, up to 256 KiB each.',
|
|
414
|
+
'tool.devtools.harClear': 'Stop and clear HAR recording for this tab after export.',
|
|
415
|
+
'err.devtools.extension200': 'Update the DSH Chrome Bridge extension to v2.0 or later.',
|
|
416
|
+
'err.devtools.mockPattern': 'A URL pattern is required to create a mock.',
|
|
417
|
+
'err.devtools.mockInvalid': 'Invalid mock parameters. Check the URL pattern, method, status, headers, and delay.',
|
|
418
|
+
'err.devtools.mockLimit': 'This tab already has 20 mock rules. Remove one first.',
|
|
419
|
+
'err.devtools.harInactive': 'The HAR recording has ended.',
|
|
420
|
+
'err.devtools.harInvalid': 'The extension returned invalid HAR data.',
|
|
421
|
+
'res.devtools.mockSet': 'Added mock %id. Active rules for this tab — %count.',
|
|
422
|
+
'res.devtools.mockClear': 'Removed mock rules — %removed. Remaining — %count.',
|
|
423
|
+
'res.devtools.mocksEmpty': 'This tab has no active mock rules.',
|
|
424
|
+
'res.devtools.mocksCount': 'Active mock rules — %n',
|
|
425
|
+
'res.devtools.mockRule': '%id · %method %urlPattern · status %status · expires in %seconds s',
|
|
426
|
+
'res.devtools.harStart': 'HAR recording is active for this tab.',
|
|
427
|
+
'res.devtools.harSaved': 'Saved a redacted HAR with %count requests, %size. File %file',
|
|
428
|
+
'err.gifSize': 'invalid GIF dimensions',
|
|
429
|
+
'err.gifFrames': 'GIF needs at least one frame',
|
|
430
|
+
'err.gifFrameSize': 'GIF frame pixels do not match its dimensions',
|
|
431
|
+
'err.recordName': 'could not allocate a recording filename',
|
|
432
|
+
'err.recordEmpty': 'no frames recorded: the page may be static or the tab is closed',
|
|
433
|
+
'err.recordPixels': 'recording frames carry no pixels, cannot encode GIF',
|
|
434
|
+
'err.recordDir': 'recording output directory unavailable',
|
|
435
|
+
'err.recordFps': 'fps must be an integer between %min and %max',
|
|
436
|
+
'err.recordWidth': 'maxWidth must be an integer between %min and %max',
|
|
437
|
+
'err.recordDuration': 'durationSec must be an integer between %min and %max',
|
|
438
|
+
'err.recordNeedsExt': 'the extension is too old for recording, please upgrade it',
|
|
439
|
+
'err.recordActive': 'this tab is already recording, use action=stop first',
|
|
440
|
+
'err.recordNotStarted': 'this tab is not recording, use action=start or clip',
|
|
441
|
+
'tool.record.desc': 'record tab activity. Saves a ready-to-view animated GIF by default (with a 3×3 keyframe contact sheet); action=start begins, stop finishes and saves, clip records durationSec seconds in one go. format=mp4/webm uses local ffmpeg, falling back to gif when missing.',
|
|
442
|
+
'tool.record.action': 'start / stop and save / one-shot clip',
|
|
443
|
+
'tool.record.durationSec': 'seconds to record: clip default 5, start cap default 30',
|
|
444
|
+
'tool.record.fps': 'frame rate 1–8, default 3',
|
|
445
|
+
'tool.record.maxWidth': 'maximum frame width 320–1280, default 640',
|
|
446
|
+
'tool.record.format': 'gif (default) / mp4 / webm (needs local ffmpeg)',
|
|
447
|
+
'tool.record.to': 'downloads folder (default) / workdir',
|
|
448
|
+
'tool.record.filename': 'filename (optional; auto-numbered on conflict, never overwrites)',
|
|
449
|
+
'res.record.started': 'recording started (max %seconds s, %fps fps, width %width). use action=stop to save.',
|
|
450
|
+
'res.record.done': 'saved %file (%size, %format, %count frames / %seconds s)%warning',
|
|
451
|
+
'res.record.ffmpegMissing': '. ffmpeg not installed, saved as GIF instead; install ffmpeg (e.g. brew install ffmpeg) for real video',
|
|
452
|
+
'res.record.ffmpegFailed': '. ffmpeg export failed, saved as GIF instead',
|
|
453
|
+
'tool.screenshot.marks': 'draw numbered labels on interactive elements (Set-of-Mark), with a legend',
|
|
454
|
+
'tool.screenshot.maxWidth': 'maximum image width in px (default 1280, 0 disables scaling)',
|
|
455
|
+
'err.shotWidth': 'maxWidth must be an integer between 0 and 4096',
|
|
456
|
+
'res.shot.marksLegend': '\nLegend: %legend%more',
|
|
457
|
+
'res.shot.marksLegacy': '\nextension too old to draw marks (upgrade for annotated shots). Legend: %legend%more',
|
|
458
|
+
'res.shot.marksElement': '\nelement shots are unmarked (viewport shots carry marks). Legend: %legend%more',
|
|
459
|
+
'res.shot.marksUnavailable': '\nlegend (image unmarked): %legend%more',
|
|
460
|
+
'res.shot.marksMore': '… (%count more)',
|
|
461
|
+
'res.shot.marksEmpty': 'no markable elements in viewport',
|
|
310
462
|
}
|