mirror of
https://github.com/deepseek-ai/deepseek-harness
synced 2026-08-15 21:04:50 +00:00
Every package under packages/, apps/, and vendor/ drops "private": true and declares publishConfig.access "restricted": the repository now states which packages it publishes instead of deciding it at publish time. Each one also declares its repository and directory, which is how a consumer of a private package reaches its source. The Landlock packages move to restricted with them. They have never been published, so nothing anonymous depends on them today, and the whole @deepseek-ai scope stays private. The workspace constraint that required every package to be private now applies to non-members only, and asserts the publishable trio on each release member.
@cordisjs/plugin-timer
Disposal-aware timer service for Cordis.
Usage
import { Context } from 'cordis'
import Timer from '@cordisjs/plugin-timer'
const root = new Context()
await root.plugin(Timer)
const dispose = root.timeout(() => {
root.logger.info('done')
}, 1000)
dispose()
Timer handles are registered on the current fiber, so they are cleared automatically when the plugin that created them is disposed.
API
| API | Description |
|---|---|
ctx.timeout(callback, delay) |
Run once and return a disposer. |
ctx.timeout(delay) |
Return a promise that resolves after delay. |
ctx.interval(callback, delay) |
Run repeatedly and return a disposer. |
ctx.interval(delay) |
Return an async iterator that yields on each interval. |
ctx.throttle(callback, delay, noTrailing?) |
Return a throttled function with .dispose(). |
ctx.debounce(callback, delay) |
Return a debounced function with .dispose(). |
ctx.setTimeout() and ctx.setInterval() are kept as deprecated aliases for
ctx.timeout() and ctx.interval().