rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:prgrmrwy/dsh-cockpit-memex-browse-shim
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
English · 简体中文
When dsh-memex runs on another machine, its "open cards" button would point your browser at a localhost address that is not the memex host. This shim makes the button use the port forward that dsh-cockpit publishes, so the card browser opens at an address that really reaches the device.
The only deployment-side coupling point: it registers the bridge's port forwarding into memex's generic browse-address extension. The sources and dependencies of the two ends never reference each other; removing the shim decouples them.
Install it next to both ends: dsh-cockpit-bridge >= 0.6.1 (distributed as a GitHub Release tarball) and dsh-memex.
dsh plugin --profile web add https://github.com/prgrmrwy/dsh-cockpit/releases/download/dsh-cockpit-bridge-v0.6.4/dsh-cockpit-bridge-0.6.4.tgz
dsh plugin --profile web add dsh-cockpit-memex-browse-shim
Then restart DSH web. Uninstall with dsh plugin --profile web remove dsh-cockpit-memex-browse-shim.
cockpitBridge.forwards (the production deployment pins 0.6.4). The old portForward / channel register / publish contracts are no longer supported.inject; each service is read once with a full dotted name through ctx.get(), so any load order of the two ends works.acquire(devicePort, holder), single-flight per port; the holder carries a random binding id so that a late release from an old binding cannot affect its replacement.onChange, for at most 15 seconds. Only the current handle.address.url is delivered; no URL is cached and the shim does not retry by itself. After opening, the holder is kept so the tunnel is not reclaimed right after the tab opens.CockpitForwardsError with code === 'local-device' falls back to http://localhost:<port>. unavailable (no handshake / not inside the cockpit iframe) cannot prove that the browser and the device are on the same machine, so like network or business failures it is rethrown unchanged; the user can still use the known device address directly.Independent package test/typecheck/build. The integration regression uses memex's real registry (which returns localhost when nothing is wired) rather than a fake registry that would hide mis-routing. It covers ready waiting, concurrency, address changes, removal, failure classification and the service lifecycle.
This shim connects two ends: the cockpitBridge.forwards port-forwarding service of dsh-cockpit-bridge and the dshMemex.browseAddress registry of dsh-memex. Their sources and dependencies do not reference each other; the shim is the only place they meet.
Remove it when you no longer open memex cards across machines through dsh-cockpit, or when either end ships the integration natively: delete the manifest entry → dsh build → restart; neither end needs any migration. Rolling back to an older shim must also roll the bridge back to a version that provides the old service; never mix the 0.1.1 shim with bridge 0.6.x.
Maintained in ohmydsh under packages/cockpit-memex-browse-shim; dsh-cockpit-memex-browse-shim is the publishing mirror. Released under the MIT License. Issues and pull requests are welcome at https://github.com/prgrmrwy/dsh-cockpit-memex-browse-shim/issues.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。