opendevbrowser 0.0.28 → 0.0.30
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 +2 -2
- package/dist/accessibility-snapshot-CQ4ZKWKC.js +39 -0
- package/dist/accessibility-snapshot-CQ4ZKWKC.js.map +1 -0
- package/dist/active-window-TD5HYJ72.js +37 -0
- package/dist/active-window-TD5HYJ72.js.map +1 -0
- package/dist/annotate-VTLFS2XV.js +205 -0
- package/dist/annotate-VTLFS2XV.js.map +1 -0
- package/dist/artifacts-KJ6RNDO2.js +120 -0
- package/dist/artifacts-KJ6RNDO2.js.map +1 -0
- package/dist/attr-BCI5KYCW.js +84 -0
- package/dist/attr-BCI5KYCW.js.map +1 -0
- package/dist/browser/ops-client.d.ts +1 -0
- package/dist/browser/ops-client.d.ts.map +1 -1
- package/dist/canvas-5DFEEOKM.js +309 -0
- package/dist/canvas-5DFEEOKM.js.map +1 -0
- package/dist/capture-desktop-HFTTWY4Z.js +38 -0
- package/dist/capture-desktop-HFTTWY4Z.js.map +1 -0
- package/dist/capture-window-X63XPIFF.js +40 -0
- package/dist/capture-window-X63XPIFF.js.map +1 -0
- package/dist/check-LWAUY7GC.js +71 -0
- package/dist/check-LWAUY7GC.js.map +1 -0
- package/dist/checked-ZSOUKVYT.js +71 -0
- package/dist/checked-ZSOUKVYT.js.map +1 -0
- package/dist/chunk-2SIMIPLY.js +67 -0
- package/dist/chunk-2SIMIPLY.js.map +1 -0
- package/dist/chunk-37VSRUW4.js +141 -0
- package/dist/chunk-37VSRUW4.js.map +1 -0
- package/dist/{chunk-T3VVHJTK.js → chunk-4BEJVZRK.js} +1078 -1458
- package/dist/chunk-4BEJVZRK.js.map +1 -0
- package/dist/chunk-5SWZDVOW.js +144 -0
- package/dist/chunk-5SWZDVOW.js.map +1 -0
- package/dist/chunk-6PVZ2ABC.js +429 -0
- package/dist/chunk-6PVZ2ABC.js.map +1 -0
- package/dist/chunk-7GVOUZMQ.js +64 -0
- package/dist/chunk-7GVOUZMQ.js.map +1 -0
- package/dist/chunk-7THCPS52.js +84 -0
- package/dist/chunk-7THCPS52.js.map +1 -0
- package/dist/chunk-AHEWXOKY.js +64 -0
- package/dist/chunk-AHEWXOKY.js.map +1 -0
- package/dist/chunk-ASMHEEKY.js +10 -0
- package/dist/chunk-ASMHEEKY.js.map +1 -0
- package/dist/chunk-COAOWH3G.js +3651 -0
- package/dist/chunk-COAOWH3G.js.map +1 -0
- package/dist/chunk-DBF5OKH3.js +111 -0
- package/dist/chunk-DBF5OKH3.js.map +1 -0
- package/dist/chunk-DW4TX7MU.js +54 -0
- package/dist/chunk-DW4TX7MU.js.map +1 -0
- package/dist/chunk-GQJ5S3BL.js +20 -0
- package/dist/chunk-GQJ5S3BL.js.map +1 -0
- package/dist/chunk-IPE7TF2P.js +54 -0
- package/dist/chunk-IPE7TF2P.js.map +1 -0
- package/dist/chunk-IQTJHXZJ.js +126 -0
- package/dist/chunk-IQTJHXZJ.js.map +1 -0
- package/dist/chunk-J47N77VG.js +2969 -0
- package/dist/chunk-J47N77VG.js.map +1 -0
- package/dist/chunk-JZXD6FWR.js +25 -0
- package/dist/chunk-JZXD6FWR.js.map +1 -0
- package/dist/{chunk-QVWOPIZJ.js → chunk-KDSNXS6N.js} +75 -149
- package/dist/chunk-KDSNXS6N.js.map +1 -0
- package/dist/chunk-KZ2IXVQT.js +219 -0
- package/dist/chunk-KZ2IXVQT.js.map +1 -0
- package/dist/chunk-MD655IPO.js +838 -0
- package/dist/chunk-MD655IPO.js.map +1 -0
- package/dist/chunk-MX3NFLCE.js +940 -0
- package/dist/chunk-MX3NFLCE.js.map +1 -0
- package/dist/chunk-OW5HMYMI.js +19 -0
- package/dist/chunk-OW5HMYMI.js.map +1 -0
- package/dist/chunk-PPUWQKIC.js +26 -0
- package/dist/chunk-PPUWQKIC.js.map +1 -0
- package/dist/{chunk-I5ZCOZZV.js → chunk-QOMWCRE3.js} +1202 -9561
- package/dist/chunk-QOMWCRE3.js.map +1 -0
- package/dist/chunk-RCZZGGJS.js +226 -0
- package/dist/chunk-RCZZGGJS.js.map +1 -0
- package/dist/chunk-RJNI3BHT.js +1 -0
- package/dist/chunk-RPXWUCQQ.js +112 -0
- package/dist/chunk-RPXWUCQQ.js.map +1 -0
- package/dist/chunk-S5KZQJJI.js +107 -0
- package/dist/chunk-S5KZQJJI.js.map +1 -0
- package/dist/chunk-T4GMCW6Z.js +46 -0
- package/dist/chunk-T4GMCW6Z.js.map +1 -0
- package/dist/chunk-WHQZBUNY.js +982 -0
- package/dist/chunk-WHQZBUNY.js.map +1 -0
- package/dist/chunk-WOXBLP7V.js +610 -0
- package/dist/chunk-WOXBLP7V.js.map +1 -0
- package/dist/cli/commands/inspiredesign.d.ts.map +1 -1
- package/dist/cli/commands/macro-resolve.d.ts +4 -1
- package/dist/cli/commands/macro-resolve.d.ts.map +1 -1
- package/dist/cli/commands/product-video.d.ts.map +1 -1
- package/dist/cli/commands/research.d.ts.map +1 -1
- package/dist/cli/commands/serve.d.ts.map +1 -1
- package/dist/cli/commands/shopping.d.ts.map +1 -1
- package/dist/cli/commands/workflow-output.d.ts +2 -0
- package/dist/cli/commands/workflow-output.d.ts.map +1 -0
- package/dist/cli/daemon-commands.d.ts.map +1 -1
- package/dist/cli/daemon.d.ts.map +1 -1
- package/dist/cli/index.js +204 -8123
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/installers/postinstall-skill-sync.js +2 -1
- package/dist/cli/installers/postinstall-skill-sync.js.map +1 -1
- package/dist/cli/remote-relay.d.ts.map +1 -1
- package/dist/click-2AILSEIZ.js +81 -0
- package/dist/click-2AILSEIZ.js.map +1 -0
- package/dist/clone-component-TPJS3PEG.js +82 -0
- package/dist/clone-component-TPJS3PEG.js.map +1 -0
- package/dist/clone-page-LE74CIFC.js +69 -0
- package/dist/clone-page-LE74CIFC.js.map +1 -0
- package/dist/close-HN4YI47K.js +63 -0
- package/dist/close-HN4YI47K.js.map +1 -0
- package/dist/close-WFERRHX6.js +63 -0
- package/dist/close-WFERRHX6.js.map +1 -0
- package/dist/connect-RWBV2UCQ.js +107 -0
- package/dist/connect-RWBV2UCQ.js.map +1 -0
- package/dist/console-poll-PP4YYPDF.js +76 -0
- package/dist/console-poll-PP4YYPDF.js.map +1 -0
- package/dist/cookie-import-6IP776FC.js +177 -0
- package/dist/cookie-import-6IP776FC.js.map +1 -0
- package/dist/cookie-list-O2KG6DPU.js +117 -0
- package/dist/cookie-list-O2KG6DPU.js.map +1 -0
- package/dist/daemon-2BSAZXLT.js +194 -0
- package/dist/daemon-2BSAZXLT.js.map +1 -0
- package/dist/daemon-fingerprint.json +1 -1
- package/dist/debug-trace-snapshot-F3BDVZXS.js +136 -0
- package/dist/debug-trace-snapshot-F3BDVZXS.js.map +1 -0
- package/dist/dialog-6JQYUWMQ.js +75 -0
- package/dist/dialog-6JQYUWMQ.js.map +1 -0
- package/dist/disconnect-763TP7GH.js +58 -0
- package/dist/disconnect-763TP7GH.js.map +1 -0
- package/dist/enabled-DLYQFNIP.js +71 -0
- package/dist/enabled-DLYQFNIP.js.map +1 -0
- package/dist/extension-extractor-GKWSFHPN.js +11 -0
- package/dist/extension-extractor-GKWSFHPN.js.map +1 -0
- package/dist/global-D6WLWBXA.js +56 -0
- package/dist/global-D6WLWBXA.js.map +1 -0
- package/dist/goto-S346TJJH.js +98 -0
- package/dist/goto-S346TJJH.js.map +1 -0
- package/dist/help-EKKKEDL5.js +491 -0
- package/dist/help-EKKKEDL5.js.map +1 -0
- package/dist/hover-6JVJFGO7.js +71 -0
- package/dist/hover-6JVJFGO7.js.map +1 -0
- package/dist/html-EVOSPBIT.js +84 -0
- package/dist/html-EVOSPBIT.js.map +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +87 -38
- package/dist/index.js.map +1 -1
- package/dist/inspector-H57BVUJP.js +62 -0
- package/dist/inspector-H57BVUJP.js.map +1 -0
- package/dist/inspector-audit-NQBAJWC7.js +84 -0
- package/dist/inspector-audit-NQBAJWC7.js.map +1 -0
- package/dist/inspector-plan-ZDIQVND3.js +69 -0
- package/dist/inspector-plan-ZDIQVND3.js.map +1 -0
- package/dist/inspiredesign-IEUL4PX3.js +234 -0
- package/dist/inspiredesign-IEUL4PX3.js.map +1 -0
- package/dist/install-autostart-output-5DOMKCQL.js +41 -0
- package/dist/install-autostart-output-5DOMKCQL.js.map +1 -0
- package/dist/install-autostart-reconciliation-NHKOFYTD.js +73 -0
- package/dist/install-autostart-reconciliation-NHKOFYTD.js.map +1 -0
- package/dist/launch-EK66VQPF.js +225 -0
- package/dist/launch-EK66VQPF.js.map +1 -0
- package/dist/list-ADZAQ2IU.js +51 -0
- package/dist/list-ADZAQ2IU.js.map +1 -0
- package/dist/list-KKUKN467.js +54 -0
- package/dist/list-KKUKN467.js.map +1 -0
- package/dist/local-HXJLUUNT.js +54 -0
- package/dist/local-HXJLUUNT.js.map +1 -0
- package/dist/macro-resolve-6DOQJ7CA.js +253 -0
- package/dist/macro-resolve-6DOQJ7CA.js.map +1 -0
- package/dist/macros/execute-runtime.d.ts +3 -1
- package/dist/macros/execute-runtime.d.ts.map +1 -1
- package/dist/macros/execute.d.ts +2 -0
- package/dist/macros/execute.d.ts.map +1 -1
- package/dist/native-UPLVQ2SG.js +22 -0
- package/dist/native-UPLVQ2SG.js.map +1 -0
- package/dist/network-poll-NUL4PDPY.js +76 -0
- package/dist/network-poll-NUL4PDPY.js.map +1 -0
- package/dist/new-5NKYPEFT.js +69 -0
- package/dist/new-5NKYPEFT.js.map +1 -0
- package/dist/onboarding-metadata-7E3KLYSZ.js +27 -0
- package/dist/onboarding-metadata-7E3KLYSZ.js.map +1 -0
- package/dist/open-NR3BPLXV.js +81 -0
- package/dist/open-NR3BPLXV.js.map +1 -0
- package/dist/opendevbrowser.d.ts.map +1 -1
- package/dist/opendevbrowser.js +87 -38
- package/dist/opendevbrowser.js.map +1 -1
- package/dist/perf-HJ36ZI6H.js +58 -0
- package/dist/perf-HJ36ZI6H.js.map +1 -0
- package/dist/pointer-down-IYTTQWXZ.js +55 -0
- package/dist/pointer-down-IYTTQWXZ.js.map +1 -0
- package/dist/pointer-drag-A2YC5PWI.js +54 -0
- package/dist/pointer-drag-A2YC5PWI.js.map +1 -0
- package/dist/pointer-move-W5K5FUI4.js +52 -0
- package/dist/pointer-move-W5K5FUI4.js.map +1 -0
- package/dist/pointer-up-6GWVO64Y.js +55 -0
- package/dist/pointer-up-6GWVO64Y.js.map +1 -0
- package/dist/press-A3V5WB3S.js +83 -0
- package/dist/press-A3V5WB3S.js.map +1 -0
- package/dist/product-video-52REKWF3.js +235 -0
- package/dist/product-video-52REKWF3.js.map +1 -0
- package/dist/providers/artifacts.d.ts +0 -2
- package/dist/providers/artifacts.d.ts.map +1 -1
- package/dist/providers/blocker.d.ts.map +1 -1
- package/dist/providers/bounded-map.d.ts +2 -0
- package/dist/providers/bounded-map.d.ts.map +1 -0
- package/dist/providers/community/index.d.ts.map +1 -1
- package/dist/providers/constraint.d.ts.map +1 -1
- package/dist/providers/index.d.ts +1 -0
- package/dist/providers/index.d.ts.map +1 -1
- package/dist/providers/renderer.d.ts.map +1 -1
- package/dist/providers/research-compiler.d.ts +1 -1
- package/dist/providers/research-compiler.d.ts.map +1 -1
- package/dist/providers/research-executor.d.ts.map +1 -1
- package/dist/providers/runtime-factory.d.ts.map +1 -1
- package/dist/providers/shared/traversal-url.d.ts +3 -0
- package/dist/providers/shared/traversal-url.d.ts.map +1 -1
- package/dist/providers/shopping/index.d.ts.map +1 -1
- package/dist/providers/social/search-quality.d.ts.map +1 -1
- package/dist/providers/workflow-handoff.d.ts +4 -0
- package/dist/providers/workflow-handoff.d.ts.map +1 -1
- package/dist/providers/workflow-output-root.d.ts +6 -0
- package/dist/providers/workflow-output-root.d.ts.map +1 -0
- package/dist/providers/workflows.d.ts.map +1 -1
- package/dist/{providers-QF2RFB4J.js → providers-IMFYMMHQ.js} +19 -14
- package/dist/providers-IMFYMMHQ.js.map +1 -0
- package/dist/public-surface/generated-manifest.d.ts +2 -2
- package/dist/public-surface/generated-manifest.d.ts.map +1 -1
- package/dist/public-surface/source.d.ts +2 -2
- package/dist/public-surface/source.d.ts.map +1 -1
- package/dist/relay/protocol.d.ts +3 -1
- package/dist/relay/protocol.d.ts.map +1 -1
- package/dist/relay/relay-server.d.ts +6 -0
- package/dist/relay/relay-server.d.ts.map +1 -1
- package/dist/research-WB6BBCDD.js +295 -0
- package/dist/research-WB6BBCDD.js.map +1 -0
- package/dist/review-BGWVY4RA.js +48 -0
- package/dist/review-BGWVY4RA.js.map +1 -0
- package/dist/review-desktop-LEORC5VS.js +54 -0
- package/dist/review-desktop-LEORC5VS.js.map +1 -0
- package/dist/rpc-4TSKSFGC.js +159 -0
- package/dist/rpc-4TSKSFGC.js.map +1 -0
- package/dist/run-3NBLVWXD.js +180 -0
- package/dist/run-3NBLVWXD.js.map +1 -0
- package/dist/screencast-start-UZVIT3IN.js +67 -0
- package/dist/screencast-start-UZVIT3IN.js.map +1 -0
- package/dist/screencast-stop-NOSJSIUO.js +59 -0
- package/dist/screencast-stop-NOSJSIUO.js.map +1 -0
- package/dist/screenshot-LARG4JQG.js +68 -0
- package/dist/screenshot-LARG4JQG.js.map +1 -0
- package/dist/scroll-VNFMV6TW.js +84 -0
- package/dist/scroll-VNFMV6TW.js.map +1 -0
- package/dist/scroll-into-view-VYRT3JPT.js +71 -0
- package/dist/scroll-into-view-VYRT3JPT.js.map +1 -0
- package/dist/select-KJTUZDVO.js +86 -0
- package/dist/select-KJTUZDVO.js.map +1 -0
- package/dist/serve-EV7K4HKR.js +498 -0
- package/dist/serve-EV7K4HKR.js.map +1 -0
- package/dist/shopping-DTXHVQ2X.js +273 -0
- package/dist/shopping-DTXHVQ2X.js.map +1 -0
- package/dist/skill-lifecycle-5UAZGKSN.js +89 -0
- package/dist/skill-lifecycle-5UAZGKSN.js.map +1 -0
- package/dist/skills-NSXDX6YM.js +26 -0
- package/dist/skills-NSXDX6YM.js.map +1 -0
- package/dist/snapshot-3XQMCMRJ.js +113 -0
- package/dist/snapshot-3XQMCMRJ.js.map +1 -0
- package/dist/status-OXSYA5XD.js +35 -0
- package/dist/status-OXSYA5XD.js.map +1 -0
- package/dist/status-YUMDP5KY.js +132 -0
- package/dist/status-YUMDP5KY.js.map +1 -0
- package/dist/status-capabilities-P4KDSE2Y.js +57 -0
- package/dist/status-capabilities-P4KDSE2Y.js.map +1 -0
- package/dist/text-V3B7UVIH.js +84 -0
- package/dist/text-V3B7UVIH.js.map +1 -0
- package/dist/tools/deps.d.ts +1 -0
- package/dist/tools/deps.d.ts.map +1 -1
- package/dist/tools/inspiredesign_run.d.ts.map +1 -1
- package/dist/tools/macro_resolve.d.ts.map +1 -1
- package/dist/tools/product_video_run.d.ts.map +1 -1
- package/dist/tools/research_run.d.ts.map +1 -1
- package/dist/tools/shopping_run.d.ts.map +1 -1
- package/dist/tools/workflow-output.d.ts +3 -0
- package/dist/tools/workflow-output.d.ts.map +1 -0
- package/dist/type-IYBN3ZLR.js +94 -0
- package/dist/type-IYBN3ZLR.js.map +1 -0
- package/dist/uncheck-SG737EGI.js +71 -0
- package/dist/uncheck-SG737EGI.js.map +1 -0
- package/dist/uninstall-KYKGJAX7.js +91 -0
- package/dist/uninstall-KYKGJAX7.js.map +1 -0
- package/dist/update-SMXPYGXS.js +305 -0
- package/dist/update-SMXPYGXS.js.map +1 -0
- package/dist/update-skill-modes-BVX7IVMW.js +38 -0
- package/dist/update-skill-modes-BVX7IVMW.js.map +1 -0
- package/dist/upload-KH6ZABJA.js +56 -0
- package/dist/upload-KH6ZABJA.js.map +1 -0
- package/dist/use-7YDKO3U4.js +63 -0
- package/dist/use-7YDKO3U4.js.map +1 -0
- package/dist/value-RZBWSKKM.js +71 -0
- package/dist/value-RZBWSKKM.js.map +1 -0
- package/dist/visible-BSFTAKXR.js +71 -0
- package/dist/visible-BSFTAKXR.js.map +1 -0
- package/dist/wait-TMTEAYOP.js +109 -0
- package/dist/wait-TMTEAYOP.js.map +1 -0
- package/dist/windows-HIZ23OHS.js +37 -0
- package/dist/windows-HIZ23OHS.js.map +1 -0
- package/extension/dist/background.js +99 -22
- package/extension/dist/ops/ops-runtime.js +85 -7
- package/extension/dist/ops/ops-session-store.js +3 -0
- package/extension/dist/ops/target-session-coordinator.js +3 -0
- package/extension/dist/services/CDPRouter.js +9 -0
- package/extension/manifest.json +1 -1
- package/package.json +1 -1
- package/skills/opendevbrowser-best-practices/SKILL.md +8 -6
- package/skills/opendevbrowser-best-practices/artifacts/skill-runtime-surface-matrix.md +1 -1
- package/skills/opendevbrowser-best-practices/scripts/odb-workflow.sh +3 -2
- package/skills/opendevbrowser-best-practices/scripts/validator-fixture-cli.sh +39 -2
- package/skills/opendevbrowser-research/SKILL.md +64 -12
- package/skills/opendevbrowser-research/artifacts/research-workflows.md +56 -19
- package/skills/opendevbrowser-research/assets/templates/compact.md +31 -5
- package/skills/opendevbrowser-research/assets/templates/context.json +52 -1
- package/skills/opendevbrowser-research/assets/templates/report.md +57 -4
- package/skills/opendevbrowser-research/examples/sample-input.json +1 -1
- package/skills/opendevbrowser-research/examples/sample-output.md +27 -2
- package/skills/opendevbrowser-research/scripts/run-research.sh +2 -6
- package/skills/opendevbrowser-research/scripts/validate-skill-assets.sh +115 -1
- package/dist/chunk-I5ZCOZZV.js.map +0 -1
- package/dist/chunk-QVWOPIZJ.js.map +0 -1
- package/dist/chunk-T3VVHJTK.js.map +0 -1
- /package/dist/{providers-QF2RFB4J.js.map → chunk-RJNI3BHT.js.map} +0 -0
|
@@ -13,7 +13,10 @@ const MAX_NETWORK_EVENTS = 300;
|
|
|
13
13
|
const SESSION_TTL_MS = 20_000;
|
|
14
14
|
const SCREENSHOT_TIMEOUT_MS = 8000;
|
|
15
15
|
const TAB_CLOSE_TIMEOUT_MS = 5000;
|
|
16
|
+
const OPS_SESSION_DETACH_TIMEOUT_MS = 3000;
|
|
16
17
|
const POPUP_ATTACH_RETRY_DELAY_MS = 100;
|
|
18
|
+
const ROOT_DETACH_VERIFY_DELAY_MS = 250;
|
|
19
|
+
const ROOT_DETACH_VERIFY_ATTEMPTS = 4;
|
|
17
20
|
const STALE_REF_ERROR_SUFFIX = "Take a new snapshot first.";
|
|
18
21
|
const DOM_OUTER_HTML_DECLARATION = `
|
|
19
22
|
function() {
|
|
@@ -305,6 +308,12 @@ export class OpsRuntime {
|
|
|
305
308
|
});
|
|
306
309
|
}
|
|
307
310
|
}
|
|
311
|
+
handleRelayDisconnected() {
|
|
312
|
+
this.cdp.markClientClosed();
|
|
313
|
+
for (const session of this.sessions.list()) {
|
|
314
|
+
void this.cleanupSession(session, "ops_session_expired");
|
|
315
|
+
}
|
|
316
|
+
}
|
|
308
317
|
handleHello(message) {
|
|
309
318
|
if (message.version !== OPS_PROTOCOL_VERSION) {
|
|
310
319
|
const error = {
|
|
@@ -2576,10 +2585,19 @@ export class OpsRuntime {
|
|
|
2576
2585
|
await this.cdp.setDiscoverTargetsEnabled?.(true);
|
|
2577
2586
|
}
|
|
2578
2587
|
catch (error) {
|
|
2588
|
+
if (isAttachBlockedError(error)) {
|
|
2589
|
+
return;
|
|
2590
|
+
}
|
|
2579
2591
|
logError("ops.discover_targets", error, {
|
|
2580
2592
|
code: "discover_targets_enable_failed",
|
|
2581
2593
|
extra: baseDetails
|
|
2582
2594
|
});
|
|
2595
|
+
if (baseDetails.strict) {
|
|
2596
|
+
throw this.decorateCdpFailure(error, {
|
|
2597
|
+
...baseDetails,
|
|
2598
|
+
enablementStage: "set_discover_targets"
|
|
2599
|
+
});
|
|
2600
|
+
}
|
|
2583
2601
|
}
|
|
2584
2602
|
}
|
|
2585
2603
|
async enableTargetDomainsOnDebuggee(debuggee, baseDetails) {
|
|
@@ -4006,7 +4024,7 @@ export class OpsRuntime {
|
|
|
4006
4024
|
}
|
|
4007
4025
|
throw new Error("Wait for selector timed out");
|
|
4008
4026
|
}
|
|
4009
|
-
cleanupSession(session, event) {
|
|
4027
|
+
async cleanupSession(session, event) {
|
|
4010
4028
|
this.clearClosingTimer(session.id);
|
|
4011
4029
|
const waiters = this.parallelWaiters.get(session.id);
|
|
4012
4030
|
if (waiters) {
|
|
@@ -4020,8 +4038,25 @@ export class OpsRuntime {
|
|
|
4020
4038
|
this.parallelWaiters.delete(session.id);
|
|
4021
4039
|
}
|
|
4022
4040
|
this.sessions.delete(session.id);
|
|
4023
|
-
|
|
4024
|
-
|
|
4041
|
+
const targets = Array.from(session.targets.values());
|
|
4042
|
+
try {
|
|
4043
|
+
const results = await withTimeout(Promise.allSettled(targets.map(async (target) => this.cdp.detachTab(target.tabId))), OPS_SESSION_DETACH_TIMEOUT_MS, "Ops session detach timed out");
|
|
4044
|
+
const failedTabIds = results.flatMap((result, index) => {
|
|
4045
|
+
const target = targets[index];
|
|
4046
|
+
return result.status === "rejected" && target ? [target.tabId] : [];
|
|
4047
|
+
});
|
|
4048
|
+
if (failedTabIds.length > 0) {
|
|
4049
|
+
logError("ops.session_detach", new Error("One or more ops session targets failed to detach"), {
|
|
4050
|
+
code: "session_detach_failed",
|
|
4051
|
+
extra: { sessionId: session.id, event, failedTabIds }
|
|
4052
|
+
});
|
|
4053
|
+
}
|
|
4054
|
+
}
|
|
4055
|
+
catch (error) {
|
|
4056
|
+
logError("ops.session_detach", error, {
|
|
4057
|
+
code: "session_detach_failed",
|
|
4058
|
+
extra: { sessionId: session.id, event }
|
|
4059
|
+
});
|
|
4025
4060
|
}
|
|
4026
4061
|
this.emitSessionEvent(session, event);
|
|
4027
4062
|
}
|
|
@@ -4036,7 +4071,7 @@ export class OpsRuntime {
|
|
|
4036
4071
|
if (!removedTarget)
|
|
4037
4072
|
return;
|
|
4038
4073
|
if (targetId === session.targetId || session.targets.size === 0) {
|
|
4039
|
-
this.cleanupSession(session, event);
|
|
4074
|
+
void this.cleanupSession(session, event);
|
|
4040
4075
|
}
|
|
4041
4076
|
}
|
|
4042
4077
|
async handleDebuggerDetachForTab(tabId) {
|
|
@@ -4044,7 +4079,8 @@ export class OpsRuntime {
|
|
|
4044
4079
|
if (!session)
|
|
4045
4080
|
return;
|
|
4046
4081
|
if (tabId === session.tabId) {
|
|
4047
|
-
// Root tab detach can be transient during child-target shutdown
|
|
4082
|
+
// Root tab detach can be transient during child-target shutdown, but it must not retain ownership forever.
|
|
4083
|
+
this.scheduleRootDebuggerDetachVerification(session.id, tabId);
|
|
4048
4084
|
return;
|
|
4049
4085
|
}
|
|
4050
4086
|
const targetId = this.sessions.getTargetIdByTabId(session.id, tabId);
|
|
@@ -4064,6 +4100,48 @@ export class OpsRuntime {
|
|
|
4064
4100
|
}
|
|
4065
4101
|
this.handleClosedTarget(tabId, "ops_session_closed");
|
|
4066
4102
|
}
|
|
4103
|
+
scheduleRootDebuggerDetachVerification(sessionId, tabId) {
|
|
4104
|
+
if (typeof this.cdp.getTabDebuggee !== "function") {
|
|
4105
|
+
return;
|
|
4106
|
+
}
|
|
4107
|
+
setTimeout(() => {
|
|
4108
|
+
void this.verifyRootDebuggerDetach(sessionId, tabId, ROOT_DETACH_VERIFY_ATTEMPTS);
|
|
4109
|
+
}, ROOT_DETACH_VERIFY_DELAY_MS);
|
|
4110
|
+
}
|
|
4111
|
+
async verifyRootDebuggerDetach(sessionId, tabId, attemptsRemaining) {
|
|
4112
|
+
const session = this.sessions.get(sessionId);
|
|
4113
|
+
if (!session || session.tabId !== tabId) {
|
|
4114
|
+
return;
|
|
4115
|
+
}
|
|
4116
|
+
if (this.isConcreteDebuggee(this.cdp.getTabDebuggee?.(tabId))) {
|
|
4117
|
+
return;
|
|
4118
|
+
}
|
|
4119
|
+
let liveTab = null;
|
|
4120
|
+
try {
|
|
4121
|
+
liveTab = await this.tabs.getTab(tabId);
|
|
4122
|
+
}
|
|
4123
|
+
catch {
|
|
4124
|
+
liveTab = null;
|
|
4125
|
+
}
|
|
4126
|
+
const current = this.sessions.get(sessionId);
|
|
4127
|
+
if (!current || current.tabId !== tabId) {
|
|
4128
|
+
return;
|
|
4129
|
+
}
|
|
4130
|
+
if (!liveTab) {
|
|
4131
|
+
void this.cleanupSession(current, "ops_session_closed");
|
|
4132
|
+
return;
|
|
4133
|
+
}
|
|
4134
|
+
if (this.isConcreteDebuggee(this.cdp.getTabDebuggee?.(tabId))) {
|
|
4135
|
+
return;
|
|
4136
|
+
}
|
|
4137
|
+
if (attemptsRemaining > 1) {
|
|
4138
|
+
setTimeout(() => {
|
|
4139
|
+
void this.verifyRootDebuggerDetach(sessionId, tabId, attemptsRemaining - 1);
|
|
4140
|
+
}, ROOT_DETACH_VERIFY_DELAY_MS);
|
|
4141
|
+
return;
|
|
4142
|
+
}
|
|
4143
|
+
void this.cleanupSession(current, "ops_session_closed");
|
|
4144
|
+
}
|
|
4067
4145
|
async closeTabBestEffort(tabId) {
|
|
4068
4146
|
try {
|
|
4069
4147
|
await withTimeout(this.tabs.closeTab(tabId), TAB_CLOSE_TIMEOUT_MS, "Ops tab close timed out");
|
|
@@ -4081,7 +4159,7 @@ export class OpsRuntime {
|
|
|
4081
4159
|
if (!session) {
|
|
4082
4160
|
return;
|
|
4083
4161
|
}
|
|
4084
|
-
this.cleanupSession(session, event);
|
|
4162
|
+
void this.cleanupSession(session, event);
|
|
4085
4163
|
}, 0);
|
|
4086
4164
|
}
|
|
4087
4165
|
sendResponse(message, payload) {
|
|
@@ -4159,7 +4237,7 @@ export class OpsRuntime {
|
|
|
4159
4237
|
this.closingTimers.delete(session.id);
|
|
4160
4238
|
const current = this.sessions.get(session.id);
|
|
4161
4239
|
if (current && current.state === "closing") {
|
|
4162
|
-
this.cleanupSession(current, "ops_session_expired");
|
|
4240
|
+
void this.cleanupSession(current, "ops_session_expired");
|
|
4163
4241
|
}
|
|
4164
4242
|
}, SESSION_TTL_MS);
|
|
4165
4243
|
this.closingTimers.set(session.id, timeoutId);
|
|
@@ -44,6 +44,9 @@ export class TargetSessionCoordinator {
|
|
|
44
44
|
listOwnedBy(clientId) {
|
|
45
45
|
return Array.from(this.sessions.values()).filter((session) => session.ownerClientId === clientId);
|
|
46
46
|
}
|
|
47
|
+
list() {
|
|
48
|
+
return Array.from(this.sessions.values());
|
|
49
|
+
}
|
|
47
50
|
delete(sessionId) {
|
|
48
51
|
const session = this.sessions.get(sessionId) ?? null;
|
|
49
52
|
if (!session) {
|
|
@@ -912,6 +912,9 @@ export class CDPRouter {
|
|
|
912
912
|
return;
|
|
913
913
|
}
|
|
914
914
|
catch (error) {
|
|
915
|
+
if (this.isExpectedDebuggerCleanupError(error)) {
|
|
916
|
+
continue;
|
|
917
|
+
}
|
|
915
918
|
logError("cdp.restore_root_attach", error, {
|
|
916
919
|
code: "restore_root_attach_failed",
|
|
917
920
|
extra: { tabId }
|
|
@@ -2021,6 +2024,9 @@ export class CDPRouter {
|
|
|
2021
2024
|
const message = error instanceof Error ? error.message : String(error);
|
|
2022
2025
|
return STALE_TAB_ERROR_MARKERS.some((marker) => message.includes(marker));
|
|
2023
2026
|
}
|
|
2027
|
+
isExpectedDebuggerCleanupError(error) {
|
|
2028
|
+
return this.isStaleTabError(error);
|
|
2029
|
+
}
|
|
2024
2030
|
markExpectedRootDetach(tabId) {
|
|
2025
2031
|
this.expectedRootDetachDeadlines.set(tabId, Date.now() + 1000);
|
|
2026
2032
|
}
|
|
@@ -2074,6 +2080,9 @@ export class CDPRouter {
|
|
|
2074
2080
|
});
|
|
2075
2081
|
}
|
|
2076
2082
|
catch (error) {
|
|
2083
|
+
if (this.isExpectedDebuggerCleanupError(error)) {
|
|
2084
|
+
return;
|
|
2085
|
+
}
|
|
2077
2086
|
logError("cdp.safe_detach", error, { code: "detach_failed" });
|
|
2078
2087
|
}
|
|
2079
2088
|
}
|
package/extension/manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opendevbrowser",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.30",
|
|
4
4
|
"description": "Browser automation runtime with snapshot-refs-actions, browser replay screencasts, public read-only desktop observation, and browser-scoped computer-use orchestration",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -100,7 +100,7 @@ Load this section directly with:
|
|
|
100
100
|
opendevbrowser_skill_load opendevbrowser-best-practices "validated capability lanes"
|
|
101
101
|
```
|
|
102
102
|
|
|
103
|
-
Current
|
|
103
|
+
Current validated lanes:
|
|
104
104
|
|
|
105
105
|
1. Public-first YouTube transcript retrieval.
|
|
106
106
|
|
|
@@ -113,16 +113,18 @@ Rules:
|
|
|
113
113
|
- browser-assisted transcript fallback is opt-in only
|
|
114
114
|
- if browser fallback is enabled, use an isolated automation profile instead of a daily logged-in Google profile
|
|
115
115
|
|
|
116
|
-
2.
|
|
116
|
+
2. Evidence-gated research primitive with explicit public source families.
|
|
117
117
|
|
|
118
118
|
```bash
|
|
119
|
-
npx opendevbrowser research run --topic "Chrome extension debugging workflows" --days 30 --
|
|
119
|
+
npx opendevbrowser research run --topic "Chrome extension debugging workflows" --days 30 --sources web,community --browser-mode managed --mode json --output-format json
|
|
120
120
|
```
|
|
121
121
|
|
|
122
122
|
Rules:
|
|
123
|
-
-
|
|
124
|
-
-
|
|
125
|
-
-
|
|
123
|
+
- load `opendevbrowser-research` before research tasks so planning, evidence review, confidence, and limitations stay skill-guided
|
|
124
|
+
- treat `research run` as provider-constrained and low-level; inspect `summary.md`, `report.md`, `records.json`, `context.json`, `meta.json`, and `bundle-manifest.json` before publishing claims
|
|
125
|
+
- use `--source-selection` only to explain selector semantics; use explicit `--sources web,community` for public topical examples
|
|
126
|
+
- add shopping only with `--source-selection shopping` or explicit `--sources ...shopping...` when the task is deliberately commercial
|
|
127
|
+
- in the current contract, `auto` and `all` both resolve to `web`, `community`, and `social`, but neither value guarantees reliability
|
|
126
128
|
|
|
127
129
|
3. Deterministic shopping reruns with explicit providers.
|
|
128
130
|
|
|
@@ -13,7 +13,7 @@ Canonical inventory of repo-local OpenDevBrowser skill packs and the audit evide
|
|
|
13
13
|
| `opendevbrowser-form-testing` | `workflow` | `./skills/opendevbrowser-form-testing/scripts/validate-skill-assets.sh` | snapshot -> type/click -> validation loop, multi-step forms, challenge checkpoints, network correlation | `node scripts/cli-smoke-test.mjs` plus `node scripts/login-fixture-live-probe.mjs` for invalid-submit, MFA, and persistence branches | extension unavailable at start if extension mode is audited separately |
|
|
14
14
|
| `opendevbrowser-login-automation` | `workflow` | `./skills/opendevbrowser-login-automation/scripts/validate-skill-assets.sh` | login branching, invalid credential handling, MFA step-up, session validation | `node scripts/login-fixture-live-probe.mjs` | none; proof lane is repo-local |
|
|
15
15
|
| `opendevbrowser-product-presentation-asset` | `workflow` | `./skills/opendevbrowser-product-presentation-asset/scripts/validate-skill-assets.sh` | `product-video run`, asset-pack assembly, screenshots, evidence mapping | `node scripts/product-video-fixture-live-probe.mjs` | none; proof lane is repo-local |
|
|
16
|
-
| `opendevbrowser-research` | `workflow` | `./skills/opendevbrowser-research/scripts/validate-skill-assets.sh` | `research run`, timebox resolution, multi-source artifact generation | `opendevbrowser research run --topic "<topic>" --
|
|
16
|
+
| `opendevbrowser-research` | `workflow` | `./skills/opendevbrowser-research/scripts/validate-skill-assets.sh` | `research run`, timebox resolution, multi-source artifact generation | `opendevbrowser research run --topic "<topic>" --sources web,community --mode json` via `scripts/skill-runtime-audit.mjs` | auth walls, rate limits, upstream source failure |
|
|
17
17
|
| `opendevbrowser-shopping` | `workflow` | `./skills/opendevbrowser-shopping/scripts/validate-skill-assets.sh` | `shopping run`, offer normalization, market analysis, direct provider workflows | `node scripts/provider-direct-runs.mjs` | auth walls, anti-bot challenges, rate limits, upstream outage |
|
|
18
18
|
|
|
19
19
|
## Shared runtime families
|
|
@@ -188,8 +188,9 @@ EOF
|
|
|
188
188
|
# Public-first YouTube transcript probe
|
|
189
189
|
node $TRANSCRIPT_PROBE_PATH --url "https://www.youtube.com/watch?v=aircAruvnKk" --youtube-mode auto --out artifacts/capability-fix/youtube-transcript-auto.json
|
|
190
190
|
|
|
191
|
-
#
|
|
192
|
-
|
|
191
|
+
# Evidence-gated research primitive with explicit public source families
|
|
192
|
+
# Load opendevbrowser-research first, then inspect records.json, context.json, meta.json, and report.md before publishing claims.
|
|
193
|
+
$CLI_PREFIX research run --topic "Chrome extension debugging workflows" --days 30 --sources web,community --mode json --output-format json
|
|
193
194
|
|
|
194
195
|
# Deterministic shopping reruns with explicit providers
|
|
195
196
|
$CLI_PREFIX shopping run --query "wireless ergonomic mouse" --providers shopping/bestbuy,shopping/ebay --budget 150 --browser-mode managed --mode json --output-format json
|
|
@@ -118,7 +118,29 @@ if (domain === "research" && command === "run") {
|
|
|
118
118
|
);
|
|
119
119
|
fs.writeFileSync(
|
|
120
120
|
path.join(bundleDir, "report.md"),
|
|
121
|
-
|
|
121
|
+
[
|
|
122
|
+
"# Research Report",
|
|
123
|
+
"",
|
|
124
|
+
`- Topic: ${topic}`,
|
|
125
|
+
`- Days: ${days}`,
|
|
126
|
+
`- Source selection: ${sourceSelection}`,
|
|
127
|
+
`- Sources: ${sources}`,
|
|
128
|
+
"",
|
|
129
|
+
"## Search Direction",
|
|
130
|
+
"Fixture provider pass suggested destination follow-up.",
|
|
131
|
+
"",
|
|
132
|
+
"## Candidate Triage",
|
|
133
|
+
"Accepted fixture destination and rejected shell candidates.",
|
|
134
|
+
"",
|
|
135
|
+
"## Rejected Candidates",
|
|
136
|
+
"Rejected privacy, login, and search shell examples.",
|
|
137
|
+
"",
|
|
138
|
+
"## Deep Dives",
|
|
139
|
+
"Opened the fixture destination page.",
|
|
140
|
+
"",
|
|
141
|
+
"## Synthesis Feedback",
|
|
142
|
+
"Remaining gap is independent corroboration."
|
|
143
|
+
].join("\n")
|
|
122
144
|
);
|
|
123
145
|
fs.writeFileSync(
|
|
124
146
|
path.join(bundleDir, "compact.md"),
|
|
@@ -148,7 +170,22 @@ if (domain === "research" && command === "run") {
|
|
|
148
170
|
`- Days: ${days}`,
|
|
149
171
|
`- Source selection: ${sourceSelection}`,
|
|
150
172
|
`- Sources: ${sources}`,
|
|
151
|
-
"- Finding: ISSUE-09 pagination/result drift across sources"
|
|
173
|
+
"- Finding: ISSUE-09 pagination/result drift across sources",
|
|
174
|
+
"",
|
|
175
|
+
"## Search Direction",
|
|
176
|
+
"Fixture provider pass suggested destination follow-up.",
|
|
177
|
+
"",
|
|
178
|
+
"## Candidate Triage",
|
|
179
|
+
"Accepted fixture destination and rejected shell candidates.",
|
|
180
|
+
"",
|
|
181
|
+
"## Rejected Candidates",
|
|
182
|
+
"Rejected privacy, login, and search shell examples.",
|
|
183
|
+
"",
|
|
184
|
+
"## Deep Dives",
|
|
185
|
+
"Opened the fixture destination page.",
|
|
186
|
+
"",
|
|
187
|
+
"## Synthesis Feedback",
|
|
188
|
+
"Remaining gap is independent corroboration."
|
|
152
189
|
]);
|
|
153
190
|
process.exit(0);
|
|
154
191
|
}
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: opendevbrowser-research
|
|
3
|
-
description:
|
|
3
|
+
description: Skill-guided, evidence-gated research workflow for provider-constrained public source gathering and auditable artifact review.
|
|
4
4
|
version: 2.1.0
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
# Research Skill
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
Load this skill before research tasks. Use it to plan source families, gather provider-constrained evidence, review artifacts, and publish only claims that survive the evidence gate.
|
|
10
|
+
|
|
11
|
+
`opendevbrowser research run` is a low-level, best-effort primitive. It can collect and render provider results, but the skill owns source planning, blocker review, confidence, limitations, and final synthesis.
|
|
10
12
|
|
|
11
13
|
## Pack Contents
|
|
12
14
|
|
|
@@ -24,7 +26,7 @@ Use this skill when you need benchmark-style research across public `web|communi
|
|
|
24
26
|
|
|
25
27
|
```bash
|
|
26
28
|
./skills/opendevbrowser-research/scripts/validate-skill-assets.sh
|
|
27
|
-
./skills/opendevbrowser-research/scripts/run-research.sh "browser automation" 30 context
|
|
29
|
+
./skills/opendevbrowser-research/scripts/run-research.sh "browser automation" 30 context "web,community"
|
|
28
30
|
./skills/opendevbrowser-research/scripts/render-output.sh "browser automation" compact
|
|
29
31
|
```
|
|
30
32
|
|
|
@@ -37,11 +39,59 @@ Use this skill when you need benchmark-style research across public `web|communi
|
|
|
37
39
|
## Core Rules
|
|
38
40
|
|
|
39
41
|
- Define timebox first (`--days` or `--from/--to`).
|
|
40
|
-
-
|
|
42
|
+
- Choose explicit source families before invoking the CLI primitive: `web`, `community`, `social`, `shopping`, or a deliberate combination such as `web,community`.
|
|
43
|
+
- Treat `auto` as a source-family selector, not a reliability guarantee.
|
|
41
44
|
- Persist artifacts and return reproducible paths.
|
|
42
|
-
- Mark unsupported claims as tentative
|
|
45
|
+
- Mark unsupported claims as tentative or exclude them from the final answer.
|
|
43
46
|
- Honor bounded retries and backoff windows under 429 pressure.
|
|
44
47
|
|
|
48
|
+
## Evidence Gate
|
|
49
|
+
|
|
50
|
+
Review artifacts before publishing claims. A successful command exit or rendered report is not enough.
|
|
51
|
+
|
|
52
|
+
Preserved artifact files:
|
|
53
|
+
|
|
54
|
+
- `summary.md`
|
|
55
|
+
- `report.md`
|
|
56
|
+
- `records.json`
|
|
57
|
+
- `context.json`
|
|
58
|
+
- `meta.json`
|
|
59
|
+
- `bundle-manifest.json`
|
|
60
|
+
|
|
61
|
+
Required review:
|
|
62
|
+
|
|
63
|
+
1. Read `records.json` for fetched source records, timestamps, providers, extraction quality, and blockers.
|
|
64
|
+
2. Read `context.json` for source ledger, evidence gaps, unsupported claims, staleness checks, and search-engine provenance when used.
|
|
65
|
+
3. Read `meta.json` for provider limits, warnings, no-evidence failures, cookie diagnostics, challenge/auth/token failures, and artifact generation details.
|
|
66
|
+
4. When gated providers such as Reddit block evidence, rerun with user-authorized recovery only after candidate triage has exhausted relevant public destination pages: `--browser-mode extension` for an existing signed-in relay session, `--use-cookies` only when legitimate cookies are available, and `--challenge-automation-mode browser_with_helper` for browser-scoped assistance.
|
|
67
|
+
5. Use `report.md` and `summary.md` only after confirming claims map back to accepted evidence.
|
|
68
|
+
6. Do not use shell-only, stale-only, login-only, not-found-only, or zero-source-evidence runs to support final claims.
|
|
69
|
+
|
|
70
|
+
## Guided Research Loop
|
|
71
|
+
|
|
72
|
+
Research is iterative. Do not stop at the first provider page or SERP shell.
|
|
73
|
+
|
|
74
|
+
1. Start with provider or search-engine direction: query, capture candidate URLs, rank, title, and blocker notes.
|
|
75
|
+
2. Reject navigation dead ends before treating them as evidence: login routes, privacy or cookie preference pages, consent gates, search result shells, not-found pages, and JavaScript-only shells.
|
|
76
|
+
3. Open destination pages from the candidate set, not account, privacy, cookie, or login links. For Reddit, prefer concrete `/r/.../comments/...` result URLs over `/login`, `/search`, `/account`, `/submit`, or root navigation.
|
|
77
|
+
4. If a destination is blocked, record the blocker and choose the next candidate from the same result set before escalating to cookies or an authenticated browser.
|
|
78
|
+
5. Escalate to `--browser-mode extension`, `--use-cookies`, or `--challenge-automation-mode browser_with_helper` only when the selected evidence page itself needs authorized browser recovery and the user has legitimate access.
|
|
79
|
+
6. Continue until you have enough accepted destination evidence for the claims, or every relevant candidate is blocked, stale, irrelevant, or unsupported.
|
|
80
|
+
7. Synthesize only after the loop produces accepted evidence. If no destination evidence survives, return limitations and next-step options instead of a research answer.
|
|
81
|
+
|
|
82
|
+
## Search Engine Discovery Lane
|
|
83
|
+
|
|
84
|
+
This lane is optional, skill-guided, provider-constrained, and discovery-only. It can improve breadth, but it is not a reliable default and does not replace `opendevbrowser research run` or the evidence gate.
|
|
85
|
+
|
|
86
|
+
1. Choose up to five engines based on topic and availability. Candidate set: Google, Bing, Brave, DuckDuckGo or Yahoo for overlap checks, Yandex for regional or index diversity, Baidu for China-specific topics, and Kagi only when the user has account access.
|
|
87
|
+
2. Record engine choice rationale, query variants, region and language assumptions, auth or cookie needs, and blockers.
|
|
88
|
+
3. Collect up to 10 result URLs per selected engine. Preserve engine, query, rank, URL, title if available, and retrieval notes.
|
|
89
|
+
4. Dedupe canonical URLs, then select the strongest 5 to 10 destination pages for extraction.
|
|
90
|
+
5. Extract selected destination pages through OpenDevBrowser browsing primitives when useful, including DOM interaction and screenshots. Use cookies or authenticated browsing only after destination-candidate triage shows the selected evidence page itself requires authorized access.
|
|
91
|
+
6. Do not violate robots restrictions, login walls, consent gates, CAPTCHAs, rate limits, anti-bot controls, or access controls. Stand down and record limitations instead.
|
|
92
|
+
7. Keep SERPs discovery-only. SERP snippets, result pages, shells, and blocked pages cannot be final evidence.
|
|
93
|
+
8. Final claims must cite destination pages or other fetched evidence that survived review.
|
|
94
|
+
|
|
45
95
|
## Parallel Multitab Alignment
|
|
46
96
|
|
|
47
97
|
- Apply shared concurrency policy from `../opendevbrowser-best-practices/SKILL.md` ("Parallel Operations").
|
|
@@ -60,22 +110,24 @@ Matrix source: `../opendevbrowser-best-practices/artifacts/browser-agent-known-i
|
|
|
60
110
|
## Workflow
|
|
61
111
|
|
|
62
112
|
1. Resolve timebox (`days` or `from/to`).
|
|
63
|
-
2. Choose
|
|
64
|
-
3.
|
|
65
|
-
4.
|
|
113
|
+
2. Choose explicit source families and document why they fit the topic.
|
|
114
|
+
3. Optionally run the search-engine discovery lane to find destination candidates.
|
|
115
|
+
4. Run `opendevbrowser research run` as a low-level best-effort primitive.
|
|
116
|
+
5. Review `records.json`, `context.json`, and `meta.json` before trusting `report.md`.
|
|
117
|
+
6. If `meta.json` shows auth, token, challenge, or cookie-gated providers, make the next run skill-first only after the candidate queue has no relevant public destination evidence left: use the existing signed-in browser session when authorized, cookies only when legitimate cookies are available, and browser-scoped challenge assistance only for that browser session.
|
|
118
|
+
7. Return final claims only when they are supported by accepted evidence.
|
|
66
119
|
|
|
67
120
|
## Commands
|
|
68
121
|
|
|
69
122
|
```bash
|
|
70
|
-
opendevbrowser research run --topic "<topic>" --days 30 --
|
|
71
|
-
opendevbrowser research run --topic "<topic>" --
|
|
123
|
+
opendevbrowser research run --topic "<topic>" --days 30 --sources web,community --mode context
|
|
124
|
+
opendevbrowser research run --topic "<topic>" --sources web --mode json
|
|
72
125
|
opendevbrowser research run --topic "<topic>" --sources web,shopping --mode md
|
|
73
126
|
```
|
|
74
127
|
|
|
75
128
|
## Notes
|
|
76
129
|
|
|
77
|
-
- `auto`
|
|
78
|
-
- In the current contract, both `auto` and `all` resolve to `web|community|social`.
|
|
130
|
+
- `auto` and `all` are selector values in the current source-family contract, not promises of reliable coverage.
|
|
79
131
|
- Use `--source-selection shopping` or explicit `--sources ...shopping...` to include shopping only when commercial intent is explicit.
|
|
80
132
|
- Use `--mode path` with `scripts/write-artifacts.sh` when you need replayable handoff bundles.
|
|
81
133
|
- For browser-backed release proof and mode sweeps, follow the canonical direct-run evidence policy in `../opendevbrowser-best-practices/SKILL.md`.
|
|
@@ -1,29 +1,66 @@
|
|
|
1
1
|
# Research Workflows
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Use these workflows to plan evidence first, run provider-constrained collection second, and publish only claims that pass review.
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
2. Resolve source selection (`auto|all|explicit`)
|
|
7
|
-
3. Run research workflow command
|
|
8
|
-
4. Persist context/report artifacts
|
|
9
|
-
5. Validate source diversity and freshness
|
|
5
|
+
## Evidence-gated baseline workflow
|
|
10
6
|
|
|
11
|
-
|
|
7
|
+
1. Define topic, scope, and strict time window.
|
|
8
|
+
2. Choose explicit source families before invoking the CLI primitive. Prefer `--sources web,community` for broad public research when both destination pages and community corroboration are useful.
|
|
9
|
+
3. Record why each source family is in scope and which families are intentionally excluded.
|
|
10
|
+
4. Run `opendevbrowser research run` as a low-level best-effort primitive.
|
|
11
|
+
5. Inspect candidates and follow useful destination pages before synthesis. Never treat account, privacy, cookie, login, consent, search shell, not-found, or JavaScript shell pages as final evidence.
|
|
12
|
+
6. If a selected destination is blocked, record the blocker and continue to the next relevant candidate before escalating to cookies or authenticated browser recovery.
|
|
13
|
+
7. Persist `summary.md`, `report.md`, `records.json`, `context.json`, `meta.json`, and `bundle-manifest.json`.
|
|
14
|
+
8. Review `records.json`, `context.json`, and `meta.json` before using `report.md`.
|
|
15
|
+
9. If the selected evidence page itself proves auth, token, challenge, or cookie gating after public candidate triage, rerun through user-authorized browser recovery only after relevant public destination pages are exhausted: `--browser-mode extension` for an existing signed-in relay session, `--use-cookies` only when legitimate cookies are available, and `--challenge-automation-mode browser_with_helper` for browser-scoped assistance.
|
|
16
|
+
10. Publish supported claims, mark weak claims as tentative, and exclude unsupported claims.
|
|
12
17
|
|
|
13
|
-
|
|
14
|
-
2. Require at least two independent source records for critical claims
|
|
15
|
-
3. Mark unsupported claims as tentative
|
|
16
|
-
4. Escalate when corroboration is missing
|
|
18
|
+
## Iterative destination-follow workflow
|
|
17
19
|
|
|
18
|
-
|
|
20
|
+
Use this when the first pass returns shells, login pages, privacy/cookie pages, or search result pages.
|
|
19
21
|
|
|
20
|
-
1.
|
|
21
|
-
2.
|
|
22
|
-
3.
|
|
23
|
-
4.
|
|
22
|
+
1. Build a candidate queue from provider output or search-engine discovery: URL, rank, source family, title, and blocker notes.
|
|
23
|
+
2. Remove dead-end routes from the queue: `/login`, `/account`, `/submit`, privacy preference pages, cookie preference pages, search result pages, consent-only pages, static assets, and not-found URLs.
|
|
24
|
+
3. Open the highest-value remaining destination page with OpenDevBrowser.
|
|
25
|
+
4. Extract text, source URL, title, timestamp, and visible limitations.
|
|
26
|
+
5. If extraction returns a shell or blocker, mark that candidate rejected and continue with the next candidate.
|
|
27
|
+
6. If extraction succeeds, add it to the claim map and decide whether more evidence is needed for corroboration.
|
|
28
|
+
7. Stop only when accepted evidence is sufficient or every relevant candidate has a recorded rejection reason.
|
|
29
|
+
|
|
30
|
+
## Claim-to-source review workflow
|
|
31
|
+
|
|
32
|
+
1. Extract the claims that the final answer would make.
|
|
33
|
+
2. Map each claim to accepted destination evidence in `records.json`.
|
|
34
|
+
3. Check source date, fetch date, provider, extraction quality, and source independence.
|
|
35
|
+
4. Require corroboration for critical claims when the topic allows it.
|
|
36
|
+
5. Record evidence gaps, stale pages, login walls, challenge pages, rate limits, and extraction limits.
|
|
37
|
+
6. Do not use shell-only, stale-only, login-only, not-found-only, or zero-source-evidence runs as final support.
|
|
38
|
+
|
|
39
|
+
## Search Engine Discovery Lane
|
|
40
|
+
|
|
41
|
+
This optional lane is skill-guided, provider-constrained, and discovery-only. It is for richer candidate discovery, not for runtime source-family expansion.
|
|
42
|
+
|
|
43
|
+
1. Choose up to five engines based on topic and availability: Google, Bing, Brave, DuckDuckGo or Yahoo, Yandex, Baidu, and Kagi only with user account access.
|
|
44
|
+
2. Record search_engine_passes with engine, query, region, language, rationale, cookie or auth needs, and blockers.
|
|
45
|
+
3. Collect up to 10 SERP candidate URLs per engine with engine, query, rank, URL, title if available, and retrieval notes.
|
|
46
|
+
4. Dedupe canonical URLs across engines.
|
|
47
|
+
5. Select the strongest 5 to 10 destination pages for extraction.
|
|
48
|
+
6. Fetch selected destination pages with OpenDevBrowser browsing primitives when useful, including DOM interaction and screenshots. Use cookies or authenticated browsing only after destination-candidate triage shows the selected evidence page itself requires legitimate user-authorized access.
|
|
49
|
+
7. Stand down on robots restrictions, login walls, consent gates, CAPTCHAs, rate limits, anti-bot controls, and access controls. Record the limitation instead.
|
|
50
|
+
8. Keep SERPs discovery-only. SERP snippets, search result pages, shells, and blocked pages cannot be final evidence.
|
|
51
|
+
9. Cite destination-page evidence or other fetched evidence that passed review.
|
|
52
|
+
|
|
53
|
+
## Backoff and blocker workflow
|
|
54
|
+
|
|
55
|
+
1. Detect repeated 429 responses, provider throttling, challenge pages, login walls, token gates, consent gates, cookie diagnostics, or extraction failures.
|
|
56
|
+
2. Honor retry windows and bounded retries.
|
|
57
|
+
3. For gated providers such as Reddit, prefer a skill-first recovery rerun with an existing signed-in relay session, legitimate cookies only when available, and browser-scoped challenge assistance only after concrete result URLs from the candidate queue have been attempted or rejected with reasons.
|
|
58
|
+
4. Resume from persisted artifacts only when the next run can add evidence without violating controls.
|
|
59
|
+
5. Report partial coverage, provider constraints, and skipped lanes when limits persist.
|
|
24
60
|
|
|
25
61
|
## Compact handoff workflow
|
|
26
62
|
|
|
27
|
-
1. Produce compact summary with
|
|
28
|
-
2. Include
|
|
29
|
-
3. Attach artifact paths for replay
|
|
63
|
+
1. Produce a compact summary with accepted claims only.
|
|
64
|
+
2. Include evidence gaps, provider constraints, and limitations.
|
|
65
|
+
3. Attach artifact paths for replay and review.
|
|
66
|
+
4. Name unsupported claims that were excluded or left tentative.
|
|
@@ -1,7 +1,33 @@
|
|
|
1
1
|
# Compact Research Template
|
|
2
2
|
|
|
3
|
-
-
|
|
4
|
-
- Source
|
|
5
|
-
-
|
|
6
|
-
-
|
|
7
|
-
-
|
|
3
|
+
- Topic and timebox:
|
|
4
|
+
- Source families used:
|
|
5
|
+
- Evidence-gated status:
|
|
6
|
+
- Accepted claims:
|
|
7
|
+
- Tentative or excluded claims:
|
|
8
|
+
- Evidence gaps:
|
|
9
|
+
- Provider constraints:
|
|
10
|
+
- Staleness checks:
|
|
11
|
+
- Search engine discovery, if used:
|
|
12
|
+
- direction from providers/search:
|
|
13
|
+
- candidate_triage:
|
|
14
|
+
- rejected_candidates:
|
|
15
|
+
- rejected privacy/login/shell pages:
|
|
16
|
+
- replacement destination followed:
|
|
17
|
+
- remaining candidate queue:
|
|
18
|
+
- deep-dive pages:
|
|
19
|
+
- next query or evidence gap:
|
|
20
|
+
- search_engine_passes:
|
|
21
|
+
- serp_candidates reviewed:
|
|
22
|
+
- selected_destination_pages:
|
|
23
|
+
- engine_failures:
|
|
24
|
+
- provenance:
|
|
25
|
+
- synthesis_feedback:
|
|
26
|
+
- Limitations:
|
|
27
|
+
- Artifact paths:
|
|
28
|
+
- summary.md:
|
|
29
|
+
- report.md:
|
|
30
|
+
- records.json:
|
|
31
|
+
- context.json:
|
|
32
|
+
- meta.json:
|
|
33
|
+
- bundle-manifest.json:
|