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.