{"_id":"@deepseek-ai/cordis-plugin-hmr","_rev":"6051672-6a7d771cb5a7172573f752e4","dist-tags":{"latest":"1.0.16","next":"1.0.16-rc.4"},"name":"@deepseek-ai/cordis-plugin-hmr","time":{"created":"2026-08-13T07:49:48.707Z","modified":"2026-08-13T07:49:50.961Z","1.0.16-rc.1":"2026-08-10T19:01:57.967Z","1.0.16-rc.4":"2026-08-12T22:15:01.034Z","1.0.16":"2026-08-13T07:49:31.773Z"},"versions":{"1.0.16-rc.1":{"name":"@deepseek-ai/cordis-plugin-hmr","version":"1.0.16-rc.1","author":{"name":"Shigma","email":"shigma10826@gmail.com"},"license":"MIT","_id":"@deepseek-ai/cordis-plugin-hmr@1.0.16-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":"f44b506e738fd65e28a370a87f1dc9419450e4f3","tarball":"https://registry.npmmirror.com/@deepseek-ai/cordis-plugin-hmr/-/cordis-plugin-hmr-1.0.16-rc.1.tgz","fileCount":10,"integrity":"sha512-JnepZHZdgvhto7MOnyALhgLKw34+yHRRp70KnABtAAXLmcFvPWIJ76lTDVVTthZ0rqmQ8d5w9qhXY0qfSvTs9A==","signatures":[{"sig":"MEMCIDMXHlSK1l0ystwf9ekxvRGIkRU6m8WqvIPPzQoTLK+NAh88e/RLcSPfr+XM6+o8FXv+JnDZJv7QrjvPTTs1jwkM","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":45614,"size":12868},"main":"lib/index.js","type":"module","_from":"file:/home/runner/work/deepseek-harness/deepseek-harness/dist/npm-vendor/deepseek-ai-cordis-plugin-hmr-1.0.16-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-hmr-1.0.16-rc.1.tgz","_integrity":"sha512-JnepZHZdgvhto7MOnyALhgLKw34+yHRRp70KnABtAAXLmcFvPWIJ76lTDVVTthZ0rqmQ8d5w9qhXY0qfSvTs9A==","repository":{"url":"git+https://github.com/deepseek-ai/deepseek-harness.git","type":"git","directory":"vendor/hmr"},"_npmVersion":"11.16.0","description":"Hot Module Replacement Plugin for Cordis","directories":{},"_nodeVersion":"24.18.0","dependencies":{"chokidar":"^4.0.3","picomatch":"^4.0.3","@babel/code-frame":"^7.29.0","@deepseek-ai/cosmokit":"^1.8.2-rc.1","@deepseek-ai/schemastery":"^3.18.1-rc.1"},"publishConfig":{"access":"restricted"},"_hasShrinkwrap":false,"devDependencies":{"esbuild":"^0.28.1","@types/picomatch":"^3.0.2","@types/babel__code-frame":"^7.27.0"},"peerDependencies":{"@deepseek-ai/cordis":"^4.0.1-rc.1","@deepseek-ai/cordis-plugin-timer":"^1.1.3-rc.1"},"@deepseek-ai/cordis":{"services":{"required":["timer"]},"description":{"en":"Hot Module Replacement","zh":"模块热替换"}},"_npmOperationalInternal":{"tmp":"tmp/cordis-plugin-hmr_1.0.16-rc.1_1786388517755_0.6824882509644064","host":"s3://npm-registry-packages-npm-production"},"_cnpmcore_publish_time":"2026-08-10T19:01:57.967Z","publish_time":1786388517967,"_source_registry_name":"default"},"1.0.16-rc.4":{"name":"@deepseek-ai/cordis-plugin-hmr","version":"1.0.16-rc.4","author":{"name":"Shigma","email":"shigma10826@gmail.com"},"license":"MIT","_id":"@deepseek-ai/cordis-plugin-hmr@1.0.16-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":"d66da6a03f37a82f1aed911612d4ff7a0d6538c3","tarball":"https://registry.npmmirror.com/@deepseek-ai/cordis-plugin-hmr/-/cordis-plugin-hmr-1.0.16-rc.4.tgz","fileCount":10,"integrity":"sha512-+STt7dnLfpqd3lvQEWgkAOqf+UlRFf/e+pBV1GreoojvNJ4bFstiqZ286G43XUHGjKUtGc7cmfKQ+jt/eH6wZQ==","signatures":[{"sig":"MEUCIQCU5L4eXdySbiopFltyaSH7C9w6rgsOznnWlnuxR/2msgIgAqcstbLYcP85duNcFdZ7ZtOpqF62iiGw/mnaisz6olY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":45614,"size":12869},"main":"lib/index.js","type":"module","_from":"file:/home/runner/work/deepseek-harness/deepseek-harness/dist/npm-vendor/deepseek-ai-cordis-plugin-hmr-1.0.16-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-hmr-1.0.16-rc.4.tgz","_integrity":"sha512-+STt7dnLfpqd3lvQEWgkAOqf+UlRFf/e+pBV1GreoojvNJ4bFstiqZ286G43XUHGjKUtGc7cmfKQ+jt/eH6wZQ==","repository":{"url":"git+https://github.com/deepseek-ai/deepseek-harness.git","type":"git","directory":"vendor/hmr"},"_npmVersion":"11.17.0","description":"Hot Module Replacement Plugin for Cordis","directories":{},"_nodeVersion":"24.19.0","dependencies":{"chokidar":"^4.0.3","picomatch":"^4.0.3","@babel/code-frame":"^7.29.0","@deepseek-ai/cosmokit":"^1.8.2-rc.4","@deepseek-ai/schemastery":"^3.18.1-rc.4"},"publishConfig":{"access":"restricted"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"esbuild":"^0.28.1","@types/picomatch":"^3.0.2","@types/babel__code-frame":"^7.27.0"},"peerDependencies":{"@deepseek-ai/cordis":"^4.0.1-rc.4","@deepseek-ai/cordis-plugin-timer":"^1.1.3-rc.4"},"@deepseek-ai/cordis":{"services":{"required":["timer"]},"description":{"en":"Hot Module Replacement","zh":"模块热替换"}},"_npmOperationalInternal":{"tmp":"tmp/cordis-plugin-hmr_1.0.16-rc.4_1786572900887_0.6725154031231924","host":"s3://npm-registry-packages-npm-production"},"_cnpmcore_publish_time":"2026-08-12T22:15:01.034Z","publish_time":1786572901034,"_source_registry_name":"default"},"1.0.16":{"name":"@deepseek-ai/cordis-plugin-hmr","description":"Hot Module Replacement Plugin for Cordis","version":"1.0.16","publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/deepseek-ai/deepseek-harness.git","directory":"vendor/hmr"},"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","@deepseek-ai/cordis":{"services":{"required":["timer"]},"description":{"en":"Hot Module Replacement","zh":"模块热替换"}},"peerDependencies":{"@deepseek-ai/cordis-plugin-timer":"^1.1.3","@deepseek-ai/cordis":"^4.0.1"},"dependencies":{"@babel/code-frame":"^7.29.0","chokidar":"^4.0.3","picomatch":"^4.0.3","@deepseek-ai/cosmokit":"^1.8.2","@deepseek-ai/schemastery":"^3.18.1"},"devDependencies":{"@types/babel__code-frame":"^7.27.0","@types/picomatch":"^3.0.2","esbuild":"^0.28.1"},"_id":"@deepseek-ai/cordis-plugin-hmr@1.0.16","bugs":{"url":"https://github.com/deepseek-ai/deepseek-harness/issues"},"homepage":"https://github.com/deepseek-ai/deepseek-harness#readme","_integrity":"sha512-S7VHfylDg1+Y5O6fdYYZu0KFRAj/snHywcFPnX3KmQYa/qv2Q8IXi4zAt9ABq0BJYqhNoqRlbpGMfIjabgXjKA==","_resolved":"/home/runner/work/deepseek-harness/deepseek-harness/dist/npm-vendor/deepseek-ai-cordis-plugin-hmr-1.0.16.tgz","_from":"file:/home/runner/work/deepseek-harness/deepseek-harness/dist/npm-vendor/deepseek-ai-cordis-plugin-hmr-1.0.16.tgz","_nodeVersion":"24.19.0","_npmVersion":"11.17.0","dist":{"integrity":"sha512-S7VHfylDg1+Y5O6fdYYZu0KFRAj/snHywcFPnX3KmQYa/qv2Q8IXi4zAt9ABq0BJYqhNoqRlbpGMfIjabgXjKA==","shasum":"fd9339b15d191e3741d76b28481435337ff6e6fc","tarball":"https://registry.npmmirror.com/@deepseek-ai/cordis-plugin-hmr/-/cordis-plugin-hmr-1.0.16.tgz","fileCount":10,"unpackedSize":45585,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIDUbWXXeiUX+8Q+lUxoLy8ybDixhsqKHyPkMQYTP0dTIAiBXBLc2tDCoFsu3j7qYNQlBNyPRK1BwdCw7DYQohan2vQ=="}],"size":12860},"_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-hmr_1.0.16_1786607371634_0.5706637736039857"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2026-08-13T07:49:31.773Z","publish_time":1786607371773,"_source_registry_name":"default"}},"author":{"name":"Shigma","email":"shigma10826@gmail.com"},"bugs":{"url":"https://github.com/deepseek-ai/deepseek-harness/issues"},"description":"Hot Module Replacement Plugin 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-hmr\n\nHot module replacement for loader-managed Cordis plugins.\n\nThe HMR plugin watches source files, traces Node's module graph, clears affected\nmodule caches, and reloads only the plugin entries that depend on changed\napplication files. Changes to framework-level dependencies fall back to\n`loader.exit()`, letting the host process restart.\n\nModule watches canonicalize their existing base directory before opening\nChokidar. Exact config watches likewise canonicalize the deepest existing\nancestor, then restore any missing suffix. Callbacks and diagnostics retain the\nrequested absolute filename, while the native backend receives one filesystem\nspelling even when Windows supplied an 8.3 alias.\n\n## Requirements\n\n- `@cordisjs/plugin-loader`\n- `@cordisjs/plugin-timer`\n- A runtime that exposes Node's internal module loader. The package throws if\n  the loader service has no internal module loader available.\n\n## Usage\n\n```yaml\n- id: timer\n  name: '@cordisjs/plugin-timer'\n- id: hmr\n  name: '@cordisjs/plugin-hmr'\n  config:\n    root:\n      - src\n    ignored:\n      - '**/node_modules'\n      - '**/.*'\n    debounce: 100\n```\n\n## Config\n\n| Field | Description |\n| --- | --- |\n| `base` | Optional base directory resolved from `ctx.baseUrl`. |\n| `root` | Chokidar roots to watch. Defaults to `['.']`. |\n| `ignored` | Picomatch patterns excluded from watch and reload analysis. |\n| `debounce` | Milliseconds to wait before processing a burst of changes. |\n\n## Events\n\n| Event | Description |\n| --- | --- |\n| `hmr/change` | Emitted for changed files that are not handled by plugin reload or config reload. |\n| `hmr/reload` | Emitted after one or more plugin entries are reloaded. |\n","repository":{"type":"git","url":"git+https://github.com/deepseek-ai/deepseek-harness.git","directory":"vendor/hmr"},"_source_registry_name":"default"}