dsh-cc/dsh-cc--packages-core-tool-sleep ↗★ 1
@dsh-cc/tool-sleep
Sleep 工具,基于可协作的 AbortSignal 等待,语义对齐 Claude Code。 适合需在流程中插入可中断等待的开发者;需加载 tools。
安裝
此插件尚未提供可驗證的 bundle,或相容性檢查未通過。請先閱讀倉庫說明。 閱讀完整 README ↗
說明文件
閱讀完整 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.