dshbase

插件目录 / Developer / dsh-easy-exit

dsh-easy-exit

已验证 · 实测可装 xie-tj

✓ 持续维护 基于 7 个官方 DSH 包

查看 GitHub ↗ ← 返回插件目录

0Stars
0Forks
0未关闭 issue
—语言
2026-08-23最近推送
跨平台平台

功能简介

Optional DeepSeek Harness plugin for editing and resending the latest direct-human message

✅
我们的评价
可用 — 实测通过,早期项目

Optional DeepSeek Harness plugin for editing and resending the latest direct-human message 实测能干净安装、正常启动。早期项目,但功能可用。

「已验证」表示我们的自动化 CI 在干净 profile 里实际执行了 dsh plugin add 并启动成功——仅此而已。功能描述与版本兼容性均为作者声明。这不是安全审计,也不代表对第三方代码的背书。

README

@deepseek-ai/dsh-session-message-revision

English | 中文

Optional Web action for editing and resending the latest direct-human text message. The package contributes an additive action beside the built-in Copy control and keeps the conversation renderer owned by dsh-client-ui-conversation.

Features

  • Shows Edit only for the latest direct-human message.
  • Accepts text-only messages and preserves the original text until submission.
  • Sends with Enter, inserts a newline with Shift+Enter, and cancels with Escape.
  • Uses the existing Session revision API, which validates idle state, pending work, target identity, and surface replacement before queuing the new turn.
  • Removes the superseded tail from active model history while append-only logs and durable side effects remain available to their owning projections.

Composition

- id: session-message-revision
  name: '@deepseek-ai/dsh-session-message-revision'

The standard Web composition includes this row, while a profile may omit it to remove the action. The package requires dsh-client-ui-conversation, dsh-client-runtime, dsh-client-locale, and the Session revision capability exposed by the runtime; it does not replace the shipped conversation node renderer.

Install

Install the standalone bundle into a profile:

dsh plugin --profile demo add github:xie-tj/dsh-easy-exit

This repository includes the prebuilt lib/ entry points, so a Git installation does not need a build step. Restart the Web process after changing the profile composition. Pin a commit when the profile must remain reproducible.

For a local checkout, replace the GitHub reference with its directory path.

Development

The source package is maintained in the DeepSeek Harness monorepo. Build and test it there:

pnpm --filter @deepseek-ai/dsh-session-message-revision bundle
pnpm exec vitest run packages/session-query/session-message-revision/tests

Model Experience

Latest-user-message revision

What the model sees

The replacement text is admitted as a new durable user/message event, and the paired session/revision record hides the superseded tail from the next active request; raw events and revision metadata stay append-only.

Token effect

The next request uses the edited message and the active surface after the replacement. Superseded messages and responses do not consume tokens in that request.

KV Cache effect

The request prefix after the edited message changes, so provider-side cache reuse depends on the new prompt prefix.

Known Limitations and Deferred Work

  • The package requires the Session revision capability and user-action Slot supplied by the corresponding deepseek-harness version; it cannot add those Host protocol primitives from the browser package alone.
  • Only the latest direct-human text message is editable, settled or steered. Images, injected context, and older user messages are not editable.
  • A running session, pending queue, pending interaction, closed session, or removed session keeps the action visible but unavailable.

安装

🧩 让 Agent 自动装(推荐)

装一次目录插件,之后本站所有插件都能让 DeepSeek Harness 自动找、自动装:

dsh plugin add dshbase-catalog

然后对 agent 说「帮我装 dsh-easy-exit」,它会在目录里找到并自动安装。文档:dshbase-catalog · 已验证场景包。

该插件是 GitHub 源码(未发 npm)——直接从仓库装:

Web profile:

dsh plugin --profile web add github:xie-tj/dsh-easy-exit

Headless(CLI)profile:

dsh plugin --profile headless add github:xie-tj/dsh-easy-exit

实测报告

验证通过:从 GitHub 源码完成 L1 安装 + L2 加载 + L3 运行(dsh 0.1.0-rc.6)。

安全:尚未扫描——我们的每日静态扫描将很快覆盖它。

分享徽章

Developer 里更多

浏览全部 7819 个插件 →