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。

패키지
@dsh-cc/tool-sleep
호환성
미검증
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 읽기 ↗

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.