{"_id":"@anrans001/pi-spark-worker","name":"@anrans001/pi-spark-worker","dist-tags":{"next":"0.1.0","latest":"0.1.0"},"versions":{"0.1.0":{"name":"@anrans001/pi-spark-worker","version":"0.1.0","description":"Lease-aware pi-spark worker host with pluggable executor drivers.","license":"Apache-2.0","type":"module","repository":{"type":"git","url":"git+https://github.com/AnranS/pi_spark.git","directory":"packages/worker"},"bugs":{"url":"https://github.com/AnranS/pi_spark/issues"},"homepage":"https://github.com/AnranS/pi_spark#readme","publishConfig":{"access":"public"},"engines":{"node":">=24"},"main":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"bin":{"pi-spark-worker":"dist/main.js"},"dependencies":{"@anrans001/pi-spark-driver-sdk":"0.1.0","@anrans001/pi-spark-protocol":"0.1.0"},"peerDependencies":{"@earendil-works/pi-coding-agent":"0.80.10"},"peerDependenciesMeta":{"@earendil-works/pi-coding-agent":{"optional":true}},"scripts":{"prepack":"npm run build","build":"tsc -b","typecheck":"tsc -b --pretty false","start":"node dist/main.js"},"gitHead":"97893713dd4abe44f30b21aed0b8ccb0b6e278d6","_id":"@anrans001/pi-spark-worker@0.1.0","_nodeVersion":"24.15.0","_npmVersion":"11.12.1","dist":{"integrity":"sha512-bA011YnzqH1+UYoklGOGHiKsmaeJyUrSoBpIdfMlgKvtKO+SunRxhg8SPPCepFUBVMLhaLDwGG4rNtDmNoL08w==","shasum":"efdf238bd6526ee54f0afef20a05464e72c6da5e","tarball":"https://registry.npmjs.org/@anrans001/pi-spark-worker/-/pi-spark-worker-0.1.0.tgz","fileCount":39,"unpackedSize":141618,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIFlm9t6KnaGHOnKCx363iSSGy+KZq0uR45zvwL7APoYAAiEAm+WU66hC3RHnTzNMwnRw0Xh9TV/4uMY3WmarzM0tNZA="}]},"_npmUser":{"name":"anrans001","email":"1040146674@qq.com"},"directories":{},"maintainers":[{"name":"anrans001","email":"1040146674@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/pi-spark-worker_0.1.0_1784710827189_0.05435832694280762"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-22T09:00:27.026Z","0.1.0":"2026-07-22T09:00:27.328Z","modified":"2026-07-22T09:00:27.523Z"},"maintainers":[{"name":"anrans001","email":"1040146674@qq.com"}],"description":"Lease-aware pi-spark worker host with pluggable executor drivers.","homepage":"https://github.com/AnranS/pi_spark#readme","repository":{"type":"git","url":"git+https://github.com/AnranS/pi_spark.git","directory":"packages/worker"},"bugs":{"url":"https://github.com/AnranS/pi_spark/issues"},"license":"Apache-2.0","readme":"# @anrans001/pi-spark-worker\n\nLease-aware Worker runtime with pluggable executor drivers for\n[pi-spark](https://github.com/AnranS/pi_spark).\n\n```bash\nnpm install @anrans001/pi-spark-worker\nnpx pi-spark-worker --help\n```\n\nUse the library API to embed custom drivers:\n\n```ts\nimport { loadConfig, SparkWorker } from \"@anrans001/pi-spark-worker\";\n\nconst worker = new SparkWorker(loadConfig());\nawait worker.run(new AbortController().signal);\n```\n\nThe executable reads its identity, capabilities, Control Plane URL, and token\nfile from environment variables. It does not accept bearer tokens on the\ncommand line. This package is ESM-only and requires Node.js 24 or newer.\n\nSee the [configuration guide](https://github.com/AnranS/pi_spark/blob/main/docs/usage.zh-CN.md#5-worker-配置参考).\n","readmeFilename":"README.md","_rev":"1-b6a4187ec6e2c4f487fd27644fa02107"}