dsh-cc/dsh-cc--packages-interaction-command-resume ↗★ 1

@dsh-cc/command-resume

Human-facing slash command to list recent sessions for resume 适合挑选并恢复历史会话的用户;依赖可选的sessionQuery服务。

패키지
@dsh-cc/command-resume
호환성
미검증
Harness peer 범위
>=0.1.5-rc.1
Cordis peer 범위
>=0.1.5-rc.1
버전
0.7.1
라이선스
Apache-2.0
최근 업데이트
2026. 9. 16.

설치

검증된 bundle이 없거나 호환성 검사에 실패했습니다. 먼저 저장소 설명을 읽어 주세요. 전체 README 읽기 ↗

@dsh-cc/command-resume

English | 中文

Human-facing /resume command: list the recent sessions (id, title, cwd, availability, and start time) so a user can pick one to resume. It reads the optional sessionQuery service. The plugin registers one global command through ctx.commands.

Command contract

InputResult
/resumeList recent sessions newest-first: session id, latest folded title (when the log has one), cwd (when recorded), optional parent, availability (live/persisted), and creation time. Ends with the host-owned resume pointer.

Only fields the sessionQuery API actually exposes are rendered; a field with no source is omitted. Empty results render a friendly placeholder. The command reads the optional sessionQuery seam — a composition without it reports the missing seam.

Composition

The producer injects commands. A custom app mounts the session-query backend (e.g. @deepseek-ai/dsh-session-query-sqlite) plus this plugin:

- id: session-query
  name: '@deepseek-ai/dsh-session-query-sqlite'
- id: command-resume
  name: '@dsh-cc/command-resume'

The sessionQuery seam is discovered via ctx at run time; it is not injected, so the command loads even without a query backend (and then reports the missing seam).

Model Experience

The slash input and the direct output are absent from model requests and consume no model tokens. Outputs are pure reads of the session corpus.

Known Limitations and Deferred Work

  • Session switching is host-owned — the command only lists; to switch the user restarts with dsh --resume . It cannot switch the live process.
  • No lastActive field — the sessionQuery API exposes creation time and availability, not a last-active timestamp, so no such line is rendered.