OpenViking
volcengine
Self-evolving Context Database for AI Agents. Unify Agent Memory, Knowledge RAG and Skills.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:879745uhjun/dsh-session-transfer
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
Pack any DSH session into a portable .dshpack and import it into another DSH installation.
A pack carries:
On import you choose the target workspace; the session path, agent preset, and session-id collisions are handled for you.
Install the plugin on both machines.
dsh-session-transfer folder to the target machine, e.g. D:\dsh-plugins\dsh-session-transfer;npm pack locally and point at the .tgz);The plugin manager accepts absolute local paths, file: paths, and .tgz archives. The desktop profile is managed by the app, so no manual profile editing is needed.
dsh plugin --profile web add "D:\dsh-plugins\dsh-session-transfer"
… menu gains Pack session…;pack_session / unpack_session.Hover a session row → … → Pack session…. A progress card reports packing and download progress; the browser saves <session title>.dshpack (through a save dialog when supported; cancelling is not a failure).
Agent equivalent:
pack_session({ sessionId: "session-...", path: "D:\\tmp\\session.dshpack" })
sessionId defaults to the calling session. path must stay inside the DSH home or a registered workspace; when omitted the file lands in ~/.dsh/session-packs/.
Session menu → Pack its box… (a picker appears when the session sits in several boxes), or the pack_box tool. A box pack is a .dshpack v2 that also carries the box name/color/order/collapse/header, direct child boxes, and member order.
Importing one shows a box plan first: a same-name box (name + parent) is reused without touching its color/order/header, or choose New copy to create one suffixed 「(导入)」. Boxes are restored through the boxes plugin's public route; transfer never writes its data file. If boxes is unreachable the sessions still import and the result says they were not boxed. A failed assignment never rolls back sessions, and pinned order is not migrated (reported).
Old 1.0.x builds reject v2 with a clear "layout newer than this plugin reads" error before writing anything.
.dshpack over;A failed preflight writes nothing; retry re-runs it. Esc closes, Enter confirms, and the dialog cannot be dismissed while an import is running. After writing, the host reads the session back and compares its content digest, so a truncated log fails loudly instead of leaving an unopenable row.
Agent equivalent:
unpack_session({ path: "D:\\Downloads\\session.dshpack", workspace: "workplace" })
workspace accepts an id, an absolute path, or a unique title; the first workspace is the default. dryRun: true validates and plans without writing.
| Item | Behavior |
|---|---|
| Workspace path | the header cwd is rewritten to the chosen workspace; old paths in history stay as text |
| Session id | an existing id becomes a new copy id, and child parentSession plus in-log self references are remapped |
| Agent preset | an unavailable preset falls back to the current default with a warning |
| Images / files | restored by content address; files verbatim, images at their normalized object path |
| Title | kept from the stored title event |
| Integrity | the imported log is read back and digest-checked; a mismatch reports "could not write the session" |
| Attachment | the root session is attached to the target workspace, so it appears in the sidebar |
Not included: other workspace files, stars, session boxes, scheduled tasks, or any other plugin's data.
.dshpack)A plain ZIP — rename it to .zip and inspect it with any archive tool:
dsh-session-pack.json manifest: source versions, sessions, attachments, checksums
sessions/<session-id>.jsonl canonical log: header line, then one event per line
attachments/images/<sha256>.<ext> normalized image objects
attachments/files/<sha256>/<name> verbatim file objects
The manifest records the source DSH version and session format generation. Import verifies SHA-256, event counts, and event continuity for every member, and the ZIP reader validates entry names, sizes, and CRCs (no traversal, no silent corruption). Caps: 2 GiB per pack, 1 GiB per entry, 65535 entries.
0.2.2-rc.1 line). A generation mismatch fails the import with an explicit message instead of risking a damaged session;packVersion 1; older plugins refuse newer layouts;dsh >= 0.2.2-rc.1 < 0.3.0.Packs are not encrypted. They contain the full conversation, which may include code, paths, secrets, or tool output. Treat them like source archives and review before sharing.
http://127.0.0.1:<DSH port>/session-transfer/health for the host plugin, its version, and mounted services;~/.dsh/tmp/session-transfer.log (failures only);npm test # zero-dependency node:test suite for ZIP, pack codec, and import/export
Development notes:
docs/session-time-audit.mjs audits any DSH session's timing:node docs/session-time-audit.mjs --session <session id>
MIT License.
dsh plugin --profile desktop add github:879745uhjun/dsh-session-transfer
Reload the Web UI page after installing.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: import、export。