{"_id":"@deepseek-ai/cordis-plugin-timer","_rev":"6051677-6a7d773b6775facd1b8c6992","dist-tags":{"latest":"1.1.3","next":"1.1.3-rc.4"},"name":"@deepseek-ai/cordis-plugin-timer","time":{"created":"2026-08-13T07:50:19.438Z","modified":"2026-08-13T07:50:21.668Z","1.1.3-rc.4":"2026-08-12T22:15:14.402Z","1.1.3-rc.1":"2026-08-10T19:02:09.425Z","1.1.3":"2026-08-13T07:50:07.551Z"},"versions":{"1.1.3-rc.4":{"name":"@deepseek-ai/cordis-plugin-timer","version":"1.1.3-rc.4","author":{"name":"Shigma","email":"shigma10826@gmail.com"},"license":"MIT","_id":"@deepseek-ai/cordis-plugin-timer@1.1.3-rc.4","maintainers":[{"name":"imccyu","email":"imccyu@gmail.com"},{"name":"tianyicui-deepseek","email":"tianyi@deepseek.com"}],"homepage":"https://github.com/deepseek-ai/deepseek-harness#readme","bugs":{"url":"https://github.com/deepseek-ai/deepseek-harness/issues"},"dist":{"shasum":"2cdc470170161d6e1f422500fb911c109cc40b9c","tarball":"https://registry.npmmirror.com/@deepseek-ai/cordis-plugin-timer/-/cordis-plugin-timer-1.1.3-rc.4.tgz","fileCount":7,"integrity":"sha512-VTi2gOtqCWQdVzD0K5GkySL+Q3nZJnjEEaPtp/DsljNGrOVH9r4L0sggiraO2hUfYP9oIoO/oNC/MCbd3rynkA==","signatures":[{"sig":"MEYCIQCKopC4L0o4sTarDMrlUN7fV0JHQT873STEyvQN9FJc6wIhAKRcTRZB/f0f53z2hsIAIEMJrVARLoif3jnPVPLGXxD1","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":15109,"size":4393},"main":"lib/index.js","type":"module","_from":"file:/home/runner/work/deepseek-harness/deepseek-harness/dist/npm-vendor/deepseek-ai-cordis-plugin-timer-1.1.3-rc.4.tgz","types":"lib/types/index.d.ts","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./src/*":"./src/*","./package.json":"./package.json"},"_npmUser":{"name":"imccyu","email":"imccyu@gmail.com"},"_resolved":"/home/runner/work/deepseek-harness/deepseek-harness/dist/npm-vendor/deepseek-ai-cordis-plugin-timer-1.1.3-rc.4.tgz","_integrity":"sha512-VTi2gOtqCWQdVzD0K5GkySL+Q3nZJnjEEaPtp/DsljNGrOVH9r4L0sggiraO2hUfYP9oIoO/oNC/MCbd3rynkA==","repository":{"url":"git+https://github.com/deepseek-ai/deepseek-harness.git","type":"git","directory":"vendor/timer"},"_npmVersion":"11.17.0","description":"Timer service for cordis","directories":{},"_nodeVersion":"24.19.0","dependencies":{"@deepseek-ai/cosmokit":"^1.8.2-rc.4"},"publishConfig":{"access":"restricted"},"_hasShrinkwrap":false,"readmeFilename":"README.md","peerDependencies":{"@deepseek-ai/cordis":"^4.0.1-rc.4"},"_npmOperationalInternal":{"tmp":"tmp/cordis-plugin-timer_1.1.3-rc.4_1786572914270_0.46586756137218965","host":"s3://npm-registry-packages-npm-production"},"_cnpmcore_publish_time":"2026-08-12T22:15:14.402Z","publish_time":1786572914402,"_source_registry_name":"default"},"1.1.3-rc.1":{"name":"@deepseek-ai/cordis-plugin-timer","version":"1.1.3-rc.1","author":{"name":"Shigma","email":"shigma10826@gmail.com"},"license":"MIT","_id":"@deepseek-ai/cordis-plugin-timer@1.1.3-rc.1","maintainers":[{"name":"imccyu","email":"imccyu@gmail.com"},{"name":"tianyicui-deepseek","email":"tianyi@deepseek.com"}],"homepage":"https://github.com/deepseek-ai/deepseek-harness#readme","bugs":{"url":"https://github.com/deepseek-ai/deepseek-harness/issues"},"dist":{"shasum":"7f463ce40cf5906cb93b86991f825d13cf40ba15","tarball":"https://registry.npmmirror.com/@deepseek-ai/cordis-plugin-timer/-/cordis-plugin-timer-1.1.3-rc.1.tgz","fileCount":7,"integrity":"sha512-1rcd9Wd3Vi5+5SYqgJpeTB9hh3n7DTql3p/enALEJI29QbXEi24rW+Xct/5wXrXEQg6BUP9AIChGnmT9RAwlQA==","signatures":[{"sig":"MEYCIQCHpy5ENVlCvkkZotGAUKSd5d797kx2PlZ9zF98ggbytgIhAPj72n/woUQ+kwITTfeUediFz62E7Pc8yO/EQ8BNu7kh","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":15109,"size":4393},"main":"lib/index.js","type":"module","_from":"file:/home/runner/work/deepseek-harness/deepseek-harness/dist/npm-vendor/deepseek-ai-cordis-plugin-timer-1.1.3-rc.1.tgz","types":"lib/types/index.d.ts","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./src/*":"./src/*","./package.json":"./package.json"},"_npmUser":{"name":"imccyu","email":"imccyu@gmail.com"},"_resolved":"/home/runner/work/deepseek-harness/deepseek-harness/dist/npm-vendor/deepseek-ai-cordis-plugin-timer-1.1.3-rc.1.tgz","_integrity":"sha512-1rcd9Wd3Vi5+5SYqgJpeTB9hh3n7DTql3p/enALEJI29QbXEi24rW+Xct/5wXrXEQg6BUP9AIChGnmT9RAwlQA==","repository":{"url":"git+https://github.com/deepseek-ai/deepseek-harness.git","type":"git","directory":"vendor/timer"},"_npmVersion":"11.16.0","description":"Timer service for cordis","directories":{},"_nodeVersion":"24.18.0","dependencies":{"@deepseek-ai/cosmokit":"^1.8.2-rc.1"},"publishConfig":{"access":"restricted"},"_hasShrinkwrap":false,"peerDependencies":{"@deepseek-ai/cordis":"^4.0.1-rc.1"},"_npmOperationalInternal":{"tmp":"tmp/cordis-plugin-timer_1.1.3-rc.1_1786388529258_0.17365129619061181","host":"s3://npm-registry-packages-npm-production"},"_cnpmcore_publish_time":"2026-08-10T19:02:09.425Z","publish_time":1786388529425,"_source_registry_name":"default"},"1.1.3":{"name":"@deepseek-ai/cordis-plugin-timer","description":"Timer service for cordis","version":"1.1.3","publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/deepseek-ai/deepseek-harness.git","directory":"vendor/timer"},"type":"module","main":"lib/index.js","types":"lib/types/index.d.ts","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./src/*":"./src/*","./package.json":"./package.json"},"author":{"name":"Shigma","email":"shigma10826@gmail.com"},"license":"MIT","peerDependencies":{"@deepseek-ai/cordis":"^4.0.1"},"dependencies":{"@deepseek-ai/cosmokit":"^1.8.2"},"_id":"@deepseek-ai/cordis-plugin-timer@1.1.3","bugs":{"url":"https://github.com/deepseek-ai/deepseek-harness/issues"},"homepage":"https://github.com/deepseek-ai/deepseek-harness#readme","_integrity":"sha512-IOkey1VNmJwYa5U8bksyMOnM7mtirqjjbWLr3xA8QybLMK0sMooG3a6iJwtvd8P3MFwo3FQibEg+JPixp37MEw==","_resolved":"/home/runner/work/deepseek-harness/deepseek-harness/dist/npm-vendor/deepseek-ai-cordis-plugin-timer-1.1.3.tgz","_from":"file:/home/runner/work/deepseek-harness/deepseek-harness/dist/npm-vendor/deepseek-ai-cordis-plugin-timer-1.1.3.tgz","_nodeVersion":"24.19.0","_npmVersion":"11.17.0","dist":{"integrity":"sha512-IOkey1VNmJwYa5U8bksyMOnM7mtirqjjbWLr3xA8QybLMK0sMooG3a6iJwtvd8P3MFwo3FQibEg+JPixp37MEw==","shasum":"887fa3660eb42ecb7001c4eae93691818940c535","tarball":"https://registry.npmmirror.com/@deepseek-ai/cordis-plugin-timer/-/cordis-plugin-timer-1.1.3.tgz","fileCount":7,"unpackedSize":15090,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIDrVsy2YtDSoG1GLe0rW8fFMGePmPp+6uoknmp9fxDWtAiEAqk36/JxBMEDh/O0ruGb8lvL2Q9nHvKY/W3Ukm1YQATk="}],"size":4381},"_npmUser":{"name":"imccyu","email":"imccyu@gmail.com"},"directories":{},"maintainers":[{"name":"imccyu","email":"imccyu@gmail.com"},{"name":"tianyicui-deepseek","email":"tianyi@deepseek.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/cordis-plugin-timer_1.1.3_1786607407394_0.1686707039276043"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2026-08-13T07:50:07.551Z","publish_time":1786607407551,"_source_registry_name":"default"}},"author":{"name":"Shigma","email":"shigma10826@gmail.com"},"bugs":{"url":"https://github.com/deepseek-ai/deepseek-harness/issues"},"description":"Timer service for cordis","homepage":"https://github.com/deepseek-ai/deepseek-harness#readme","license":"MIT","maintainers":[{"name":"tianyicui-deepseek","email":"tianyi@deepseek.com"},{"name":"imccyu","email":"imccyu@gmail.com"}],"readme":"# @cordisjs/plugin-timer\n\nDisposal-aware timer service for Cordis.\n\n## Usage\n\n```ts\nimport { Context } from 'cordis'\nimport Timer from '@cordisjs/plugin-timer'\n\nconst root = new Context()\nawait root.plugin(Timer)\n\nconst dispose = root.timeout(() => {\n  root.logger.info('done')\n}, 1000)\n\ndispose()\n```\n\nTimer handles are registered on the current fiber, so they are cleared\nautomatically when the plugin that created them is disposed.\n\n## API\n\n| API | Description |\n| --- | --- |\n| `ctx.timeout(callback, delay)` | Run once and return a disposer. |\n| `ctx.timeout(delay)` | Return a promise that resolves after `delay`. |\n| `ctx.interval(callback, delay)` | Run repeatedly and return a disposer. |\n| `ctx.interval(delay)` | Return an async iterator that yields on each interval. |\n| `ctx.throttle(callback, delay, noTrailing?)` | Return a throttled function with `.dispose()`. |\n| `ctx.debounce(callback, delay)` | Return a debounced function with `.dispose()`. |\n\n`ctx.setTimeout()` and `ctx.setInterval()` are kept as deprecated aliases for\n`ctx.timeout()` and `ctx.interval()`.\n","readmeFilename":"README.md","repository":{"type":"git","url":"git+https://github.com/deepseek-ai/deepseek-harness.git","directory":"vendor/timer"},"_source_registry_name":"default"}