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

@dsh-cc/tool-sleep

Sleep 工具,基于可协作的 AbortSignal 等待,语义对齐 Claude Code。 适合需在流程中插入可中断等待的开发者;需加载 tools。

包名
@dsh-cc/tool-sleep
兼容性
待验证
Harness 依赖范围
>=0.1.5-rc.1
Cordis 依赖范围
>=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.