dsh-undohaven
v0.1.14
Published
dsh plugin that keeps rolling, daily, and pre-upgrade snapshots for UndoHaven.
Maintainers
Readme
dsh-undohaven
Unofficial third-party dsh plugin. Compatible with dsh. It is not an official dsh component.
It takes encrypted snapshots on start, on a timer, and when the plugin is disposed. While dsh is running it also watches storages/*.json and keeps the previous copy locally before the file is overwritten or deleted, so an archive that removes scheduled tasks still has a copy. It does not wait for a session-stop event. When the installed dsh version changes, startup also stores a snapshot of those storage files. The settings tab can show status, take a snapshot, and print a restore command for everything, for scheduled tasks only (undohaven restore --to <id> --scope tasks), or for one session (undohaven restore --to <id> --scope session --session <id>). Restore itself runs from the undohaven CLI after dsh has quit.
On startup the tab also reports a profile whose cordis.patch.yml is the empty template [] next to a cordis.patch.yml.bak-* file, which is what the harness startup recovery button leaves behind. Each real change to that file is stored as an encrypted version. A session that keeps returning the same 400 is undohaven guard repair 400, and undohaven guard undo 400 puts that session back. v4 first aid stays undohaven guard repair and undohaven guard undo sessions. Both run from the CLI after you quit dsh.
Free keeps those copies on this machine. Pro, on the same account and the same prices, uploads them with the existing snapshot timer. .env and .credentials.yaml stay out unless you turn credential backup on. auth.json, *.key, *.pem, and private keys named id_rsa or id_ed25519 are never included. includesCredentials defaults to false.
dsh plugin --profile web add dsh-undohavencordis.patch.yml inserts the undohaven row. A bare - id: looks for an entry that is not in the base profile, and dsh prints entry "undohaven" not found.
An agent that would have curled a public temp host can run undohaven drop <file> with no login. This package re-exports dropFile and takeDrop from undohaven-core. It does not upload on its own, and it does not add a host literal.
The launcher forwards add to pnpm in that profile. Homepage: https://undohaven.com/
Capabilities a trust scan will see
UndoHaven is an unofficial third party, compatible with dsh, and not affiliated with DeepSeek.
- Network. Settings calls are same-origin paths under
/api/undohaven/. The trust scan does not list those as outbound network. The only external host literal ishttps://undohaven.com/pricing?utm_source=plugin, a link in the settings tab. The server side, throughundohaven-core, talks only to the API base you set, which the product uses ashttps://undohaven.com. - Environment. The plugin reads the process environment only to resolve
DSH_HOME, the agents home, andUNDOHAVEN_HOME/UNDOHAVEN_DATA. It does not read credential environment variables. - Files. It reads and writes the dsh home that snapshots already cover (sessions, profile package files, skills) and the local UndoHaven data directory. The route token is
route-tokenin that data directory, mode0600. A browser call must send it inx-undohaven-token, and theOriginmust be the loopback dsh host. - Settings injection. It registers one settings tab through
settings.plugins.tab. It does not inject a system prompt and it does not override a@deepseek-aibundle.cordis.patch.ymlonly inserts theundohavenrow.
engines.dsh is >=0.2.1-rc.5 <0.3.0. Checked against dsh 0.2.2-rc.5 and session-workspace-root. The plugin does not call the removed working_directory tool. Restore from the CLI drops a leftover tool-working-directory patch entry and leaves session bytes, including workspace-root/change, unchanged. The Host moves the workspace root.
0.2.3-alpha.3 source review
Release dsh-v0.2.3-alpha.3 says custom plugins must migrate tool executors to the Native/PTC registry, move with React 19, and update selectors that depend on the old slot DOM hierarchy. ui-slots, ui-primitives, and ui-dockkit are now plugin packages.
This package was reviewed against that note. It was not executed on 0.2.3-alpha.3 in this environment.
Unchanged, because the source does not use those old surfaces:
- No tool executor (
registerToolExecutor,ToolExecutor, ortoolExecutors). The host entry uses cordisctx.inject(['connection'])for loopback routes, which is not the tool registry. - The settings tab is
ctx.slots.inject('settings.plugins.tab')plusctx.slots.register. It does not query slot DOM (querySelector/[data-slot) and it does not import@deepseek-ai/dsh-client-ui-settingsas a stylesheet. The client inject inpackage.jsonis still@deepseek-ai/dsh-client-ui-settings. - The tab is
React.createElementwithuseStateanduseEffect, and inlinestyleobjects. There is no stylesheet whose selectors walk the old slot tree. engines.dshis>=0.2.1-rc.5 <0.3.0, which is not an exact0.2.2pre-release pin.
Still needs a live 0.2.3-alpha.3 run before calling the settings tab and a snapshot proven: that settings.plugins.tab still mounts after ui-slots became a plugin package, that style isolation does not drop the inline-styled tab, and that connection.fetch.register still attaches. Doctor will not rewrite this plugin to guess at that.
