{"_id":"@dangzhuotong/cordis-plugin-include","name":"@dangzhuotong/cordis-plugin-include","dist-tags":{"latest":"1.0.6"},"versions":{"1.0.6":{"name":"@dangzhuotong/cordis-plugin-include","description":"Include files in cordis configurations","version":"1.0.6","publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/deepseek-ai/deepseek-harness.git","directory":"vendor/include"},"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":{"@dangzhuotong/cordis-plugin-loader":"^1.0.2","@dangzhuotong/cordis":"^4.0.1"},"dependencies":{"js-yaml":"^4.1.0","@dangzhuotong/cosmokit":"^1.8.2"},"_id":"@dangzhuotong/cordis-plugin-include@1.0.6","gitHead":"53baf21dfae3d134fa248f36dafb4ab1fe28e55c","bugs":{"url":"https://github.com/deepseek-ai/deepseek-harness/issues"},"homepage":"https://github.com/deepseek-ai/deepseek-harness#readme","_integrity":"sha512-//m78epn/VNl0WGgImA39K/S9bludNXwmmc0Ng9NoPccrA4eXC+i0xYrNALe9vKTDzKaFa0NmXH4VzdVnmPCRQ==","_resolved":"D:\\Coding\\deepseek-harness-master\\dist\\npm\\vendor\\dangzhuotong-cordis-plugin-include-1.0.6.tgz","_from":"file:D:/Coding/deepseek-harness-master/dist/npm/vendor/dangzhuotong-cordis-plugin-include-1.0.6.tgz","_nodeVersion":"22.21.1","_npmVersion":"10.9.4","dist":{"integrity":"sha512-//m78epn/VNl0WGgImA39K/S9bludNXwmmc0Ng9NoPccrA4eXC+i0xYrNALe9vKTDzKaFa0NmXH4VzdVnmPCRQ==","shasum":"95f742589e92503966785de63b1a1a84585a83e5","tarball":"https://registry.npmjs.org/@dangzhuotong/cordis-plugin-include/-/cordis-plugin-include-1.0.6.tgz","fileCount":7,"unpackedSize":31854,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIFx9YCxjS6NZYL+fzecXo4fFIyMOAzEsOfr6D0L/SZavAiEA8zccUHsGvQMAp5zX7VgJH4SJF9d1lYJ4XhA3SXOSnxc="}]},"_npmUser":{"name":"dangzhuotong","email":"353199054@qq.com"},"directories":{},"maintainers":[{"name":"dangzhuotong","email":"353199054@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/cordis-plugin-include_1.0.6_1787281209831_0.007195279644230945"},"_hasShrinkwrap":false}},"time":{"created":"2026-08-21T03:00:09.662Z","1.0.6":"2026-08-21T03:00:09.986Z","modified":"2026-08-21T03:00:10.232Z"},"maintainers":[{"name":"dangzhuotong","email":"353199054@qq.com"}],"description":"Include files in cordis configurations","homepage":"https://github.com/deepseek-ai/deepseek-harness#readme","repository":{"type":"git","url":"git+https://github.com/deepseek-ai/deepseek-harness.git","directory":"vendor/include"},"author":{"name":"Shigma","email":"shigma10826@gmail.com"},"bugs":{"url":"https://github.com/deepseek-ai/deepseek-harness/issues"},"license":"MIT","readme":"# @cordisjs/plugin-include\n\nFile-backed loader tree for Cordis. The include plugin reads a YAML or JSON\nfile, turns it into loader entries, and writes updates back when the file is\nwritable.\n\n## Usage\n\n```ts\nimport { Context } from 'cordis'\nimport Loader from '@cordisjs/plugin-loader'\nimport Include from '@cordisjs/plugin-include'\n\nconst root = new Context()\nawait root.plugin(Loader, { baseUrl: import.meta.url })\nawait root.plugin(Include, {\n  path: './cordis.yml',\n  initial: [],\n  enableLogs: true,\n})\n```\n\nExample `cordis.yml`:\n\n```yaml\n- id: timer\n  name: '@cordisjs/plugin-timer'\n- id: app\n  name: ./plugins/app\n  config:\n    message: hello\n```\n\n## Config\n\n| Field | Description |\n| --- | --- |\n| `path` | YAML or JSON file path resolved from `ctx.baseUrl`. |\n| `initial` | Entry list written when the file is missing. |\n| `patches` | Runtime patches applied after reading the file. |\n| `enableLogs` | Enables loader apply, reload, and unload logs. |\n\nPatches can insert entries or override fields on entries with a matching `id`.\n","readmeFilename":"README.md","_rev":"1-edf20200a37bbd8c14ebfe9546985525"}