dsh-browser-cdp 0.18.10 → 0.18.11
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/dsh-plugin.json +1 -1
- package/lib/client.js +12 -1
- package/package.json +1 -1
package/dsh-plugin.json
CHANGED
package/lib/client.js
CHANGED
|
@@ -3119,7 +3119,7 @@ function CdpPicksDockCard(props) {
|
|
|
3119
3119
|
}, []);
|
|
3120
3120
|
var snap = input && input.state && input.state.getSnapshot ? input.state.getSnapshot() : null;
|
|
3121
3121
|
var draft = snap && typeof snap.draft === "string" ? snap.draft : "";
|
|
3122
|
-
var re = /\[(?:🌐 )?CDP-PICKS
|
|
3122
|
+
var re = /\[(?:🌐 )?CDP-PICKS\s+page="([^"]*)"\s+targetId="([^"]*)"\s+endpoint="([^"]*)"\]\n([\s\S]*?)\n\[\/CDP-PICKS\]/g;
|
|
3123
3123
|
var found = [], mm;
|
|
3124
3124
|
while ((mm = re.exec(draft)) !== null) {
|
|
3125
3125
|
var elements = [];
|
|
@@ -3237,10 +3237,14 @@ function CdpPicksDockCard(props) {
|
|
|
3237
3237
|
}));
|
|
3238
3238
|
}
|
|
3239
3239
|
function mountPicksDockCard(ctx) {
|
|
3240
|
+
try {
|
|
3241
|
+
window.__dshBrowserCdpDeco = Object.assign({}, window.__dshBrowserCdpDeco, { stage: "registered" });
|
|
3242
|
+
} catch (e) {}
|
|
3240
3243
|
ctx.slots.inject("conversation.input.dock", function() {
|
|
3241
3244
|
return ctx.slots.register({
|
|
3242
3245
|
name: "conversation.input.dock",
|
|
3243
3246
|
id: "dsh-browser-cdp.picks",
|
|
3247
|
+
locale: "dsh-browser-cdp",
|
|
3244
3248
|
order: 0,
|
|
3245
3249
|
inject: function(sessionId) {
|
|
3246
3250
|
var input = null;
|
|
@@ -3249,6 +3253,13 @@ function mountPicksDockCard(ctx) {
|
|
|
3249
3253
|
input = actx.get("conversation").input.for(actx);
|
|
3250
3254
|
} catch (e) {
|
|
3251
3255
|
input = null;
|
|
3256
|
+
try {
|
|
3257
|
+
window.__dshBrowserCdpDeco = Object.assign({}, window.__dshBrowserCdpDeco, {
|
|
3258
|
+
stage: "inject-failed",
|
|
3259
|
+
error: String(e && e.message || e),
|
|
3260
|
+
sessionId: String(sessionId)
|
|
3261
|
+
});
|
|
3262
|
+
} catch (e2) {}
|
|
3252
3263
|
}
|
|
3253
3264
|
return { input };
|
|
3254
3265
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-browser-cdp",
|
|
3
|
-
"version": "0.18.
|
|
3
|
+
"version": "0.18.11",
|
|
4
4
|
"description": "dsh-browser-cdp: DSH browser plugin — attach to a running Chrome/Edge over CDP (no bundled browser needed); structured browser-automation tools (30+ bcdp_*) that drive the vendored ego runtime through ctx.subprocess, plus a realtime watch panel (live SSE screencast + direct mouse interaction + download capture + human-verification notice). Web shell: floating watch panel without dsh-better-sidebar, sidebar tab with it. Headless/TUI hosts: tools-only. [DSH 0.2.0-rc.1+ line: declarative settings via Config .volatile() fields; for DSH 0.1.2-rc.1 ~ 0.1.7 use the 0.17.x line]",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./lib/index.js",
|