dsh-cc/dsh-cc--packages-core-tool-sleep ↗★ 1

@dsh-cc/tool-sleep

Sleep model tool over a cooperative AbortSignal wait: align with Claude Code's SleepTool duration, interrupt-cancel, and concurrency semantics 适合需在流程中插入可中断等待的开发者;需加载 tools。

Package
@dsh-cc/tool-sleep
Compatibility
Unverified
Harness peer range
>=0.1.5-rc.1
Cordis peer range
>=0.1.5-rc.1
Version
0.7.1
License
Apache-2.0
Last updated
Sep 16, 2026

Install

This plugin has no verified bundle, or compatibility checks failed. Read the repository notes first. Read the full README ↗

Configuration

Config is schemastery-typed (mirroring the git-worktree tools' convention):

export const Config = z.object({
  minDurationSeconds: z.number(),  // optional lower bound (clamped up)
  maxDurationSeconds: z.number(),  // optional upper bound (clamped down)
})

Each apply(ctx, config) call registers the Sleep tool into ctx.tools. Requires a loaded ctx.tools; the plugin stays pending until inject: ['tools'] is satisfied.