{"_id":"@dsh-next/dsh-next-reset","name":"@dsh-next/dsh-next-reset","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@dsh-next/dsh-next-reset","description":"DeepSeek Harness plugin: start a blank session in this folder and archive the current one.","version":"0.1.0","type":"module","main":"lib/index.js","types":"lib/types/index.d.ts","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./client":{"types":"./lib/types/client/index.d.ts","default":"./lib/client.js"},"./src/*":"./src/*","./package.json":"./package.json"},"dsh":{"engines":{"dsh":">=0.1.2-rc.1"},"bundle":{"patch":"./cordis.patch.yml"},"client":{"inject":["@deepseek-ai/dsh-client-runtime","@deepseek-ai/dsh-api-session-controller","@deepseek-ai/dsh-api-workspace-controller"],"platform":"web"}},"peerDependencies":{"react":"^18.2.0"},"devDependencies":{"@deepseek-ai/cordis":"^4.0.2","@deepseek-ai/dsh-agent":"^0.1.2-rc.1","@deepseek-ai/dsh-api-session-controller":"^0.1.2-rc.1","@deepseek-ai/dsh-api-workspace-controller":"^0.1.2-rc.1","@deepseek-ai/dsh-client-runtime":"^0.1.1-rc.2","@deepseek-ai/dsh-commands":"^0.1.2-rc.1","@deepseek-ai/dsh-sandbox-policy":"^0.1.2-rc.1","@deepseek-ai/dsh-session":"^0.1.2-rc.1","@deepseek-ai/dsh-session-title":"^0.1.2-rc.1","@deepseek-ai/dsh-user-approval":"^0.1.2-rc.1","@deepseek-ai/dsh-workspace":"^0.1.2-rc.1","@types/node":"^22.10.0","@types/react":"~18.3.1","@types/react-dom":"^18.3.5","jsdom":"29.1.1","react":"^18.3.1","react-dom":"^18.3.1","tsdown":"^0.22.2","typescript":"~5.7.2","vite-tsconfig-paths":"^6.1.1","vitest":"^4.1.8"},"license":"MIT","author":"Rok Grabnar <sitegroove>","repository":{"type":"git","url":"git+https://github.com/dsh-next/dsh-next-plugins.git","directory":"packages/dsh-next-reset"},"scripts":{"build":"tsc -p tsconfig.build.json && tsdown","watch":"tsdown --watch","test":"vitest run","typecheck":"tsc --noEmit"},"_nodeVersion":"22.23.2","_id":"@dsh-next/dsh-next-reset@0.1.0","dist":{"integrity":"sha512-8bUcnQEUBAZTpXTLLSH/AwFviBUA202abe/i6F9JEg2F7CRagWZXByyc/2zwNpaZfxft9s/cjk7mDBuEusZnsQ==","shasum":"84835b9f623534b2af42dc0de922920d91cd76f7","tarball":"https://registry.npmjs.org/@dsh-next/dsh-next-reset/-/dsh-next-reset-0.1.0.tgz","fileCount":16,"unpackedSize":33995,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDVj6FkaWzdXnGKN66EveSN0kURlcYM/r8uHDGmv0TdpAIgTw8fr2Q4mZ8yqFXowOeX0Qf7kwzgBJ+nxlOuKdaGE7U="}]},"_npmUser":{"name":"sitegroove","email":"grabnarrok@gmail.com"},"directories":{},"maintainers":[{"name":"sitegroove","email":"grabnarrok@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/dsh-next-reset_0.1.0_1788711557961_0.4867004074806196"},"_hasShrinkwrap":false}},"time":{"created":"2026-09-06T16:19:17.779Z","0.1.0":"2026-09-06T16:19:18.105Z","modified":"2026-09-06T16:19:18.327Z"},"maintainers":[{"name":"sitegroove","email":"grabnarrok@gmail.com"}],"description":"DeepSeek Harness plugin: start a blank session in this folder and archive the current one.","repository":{"type":"git","url":"git+https://github.com/dsh-next/dsh-next-plugins.git","directory":"packages/dsh-next-reset"},"author":"Rok Grabnar <sitegroove>","license":"MIT","readme":"# reset\n\nEnglish | [中文](README.zh.md)\n\nThis DeepSeek Harness plugin starts a **blank session in the same folder**\nand archives the chat you were in. Type `/reset` when the transcript is\npolluted and you want to keep working here — including inside a plugin\nworktree or a folder created with `git worktree add`.\n\nThe switch *is* the acknowledgement. You will not see a “Reset succeeded”\nline; that string is written on the old log, which the sidebar no longer\nshows.\n\n## How to use it\n\n1. Wait until the agent is idle (no running turn, no queued prompt).\n2. Type `/reset` in the composer and send it.\n3. The chat goes blank. The sidebar row keeps the old title. You are still\n   in the same folder.\n\n## Features\n\n### Same folder, new chat\n\nThe new session uses this workspace’s directory. A `git worktree add`\ncheckout stays that checkout. Unsaved composer draft is discarded.\n\n### Worktrees stay claimed\n\nIf `dsh-next-worktrees` is mounted and this session owns a plugin worktree\n(`/.dsh/worktrees/<slug>`), `/reset` hands that claim to the new session\nand keeps `danger-full-access` so git still works. Ordinary folders and\nCLI worktrees skip that step.\n\n### One-way archive\n\nThe old session’s JSONL stays on disk. DeepSeek Harness has no unarchive\nUI, so the sidebar will not offer the old chat back.\n\n## Install\n\n```sh\ndsh plugin --profile <name> add @dsh-next/dsh-next-reset\n```\n\n`<name>` is your DSH profile (for example `web`). Reload the profile after\nadding the plugin.\n\n## Good to know\n\n- Requires DeepSeek Harness **0.1.2-rc.1** or newer and the **web UI**.\n  ACP and headless sessions get an error instead of minting an orphan\n  blank.\n- The command is `/reset`, not `/clear`. A future core `/clear` would\n  mean “forget in this log,” which this plugin does not do.\n- `/reset` on an already-blank session is a no-op.\n- It refuses a running agent, a queued prompt, a subagent session, and a\n  session with no working directory.\n- The new row keeps the old topic name (the title is pinned). `/goal` is\n  not copied.\n- Contributors: see [CONTRIBUTING.md](https://github.com/dsh-next/dsh-next-plugins/blob/main/CONTRIBUTING.md).\n","readmeFilename":"","_rev":"1-61ce01d94c64f4493306c0c58085fec6"}