{"_id":"@3iot/scadactl","_rev":"6-786584fc55a8b9b2f57ad021ebc62d8e","name":"@3iot/scadactl","dist-tags":{"latest":"2.7.1","platform":"2.7.1-darwin-arm64"},"versions":{"2.7.1-windows-amd64":{"name":"@3iot/scadactl","version":"2.7.1-windows-amd64","license":"UNLICENSED","_id":"@3iot/scadactl@2.7.1-windows-amd64","maintainers":[{"name":"rkonfj","email":"rkonfj@gmail.com"}],"homepage":"https://www.shenkong.cc","os":["win32"],"cpu":["x64"],"dist":{"shasum":"bc8bf87ed38b6032d3a7a57e3ac54e4fc8e5cc69","tarball":"https://registry.npmjs.org/@3iot/scadactl/-/scadactl-2.7.1-windows-amd64.tgz","fileCount":2,"integrity":"sha512-3uKV5Hh13oSCi3J9ZKKxKEdkQ1QQssdQ3fhIjf9WfRZQFvWiMCt+hhXN+R+zl4kJN2TZcTiSfbZI8TfgQ8HfqA==","signatures":[{"sig":"MEUCIQCZEKg+gqGyrcGlCtC+kFlKYyqCsirq1yMZ8EQQbEpB/gIgNE5XUsAkglYmkNrB4NIlCJTcLvcRhcRW2EDAtFUbSq0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":14089073},"_from":"file:/home/rkonfj/sk/scada/cmd/scadactl/npm/dist/3iot-scadactl-2.7.1-windows-amd64.tgz","engines":{"node":">=18"},"_npmUser":{"name":"rkonfj","email":"rkonfj@gmail.com"},"_resolved":"/home/rkonfj/sk/scada/cmd/scadactl/npm/dist/3iot-scadactl-2.7.1-windows-amd64.tgz","_integrity":"sha512-3uKV5Hh13oSCi3J9ZKKxKEdkQ1QQssdQ3fhIjf9WfRZQFvWiMCt+hhXN+R+zl4kJN2TZcTiSfbZI8TfgQ8HfqA==","_npmVersion":"11.18.0","description":"scadactl binary for Windows x64","directories":{},"_nodeVersion":"26.4.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/scadactl_2.7.1-windows-amd64_1784730045624_0.08933334534024495","host":"s3://npm-registry-packages-npm-production"}},"2.7.1-windows-arm64":{"name":"@3iot/scadactl","version":"2.7.1-windows-arm64","license":"UNLICENSED","_id":"@3iot/scadactl@2.7.1-windows-arm64","maintainers":[{"name":"rkonfj","email":"rkonfj@gmail.com"}],"homepage":"https://www.shenkong.cc","os":["win32"],"cpu":["arm64"],"dist":{"shasum":"777c4c1395ca1cabb1df7fea34061e42109b0a7a","tarball":"https://registry.npmjs.org/@3iot/scadactl/-/scadactl-2.7.1-windows-arm64.tgz","fileCount":2,"integrity":"sha512-eOuejUBQu2Thz6U9g58Z5tU2rUwpiVJsjA9CEDN2JbomPOsxlg78w53KuBlUDqQ6pfML+UiUgrtvDfKxOC9ViQ==","signatures":[{"sig":"MEQCIEAcz4xvkEt4MLs6o1oo+RgqA7FSbFEMJa57f0oJUYDXAiBdDfTNCHhO73E0gK4QQXNyhZyARCBz6go4nXvqtGWJ7g==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":12948853},"_from":"file:/home/rkonfj/sk/scada/cmd/scadactl/npm/dist/3iot-scadactl-2.7.1-windows-arm64.tgz","engines":{"node":">=18"},"_npmUser":{"name":"rkonfj","email":"rkonfj@gmail.com"},"_resolved":"/home/rkonfj/sk/scada/cmd/scadactl/npm/dist/3iot-scadactl-2.7.1-windows-arm64.tgz","_integrity":"sha512-eOuejUBQu2Thz6U9g58Z5tU2rUwpiVJsjA9CEDN2JbomPOsxlg78w53KuBlUDqQ6pfML+UiUgrtvDfKxOC9ViQ==","_npmVersion":"11.18.0","description":"scadactl binary for Windows ARM64","directories":{},"_nodeVersion":"26.4.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/scadactl_2.7.1-windows-arm64_1784730173164_0.4869065522987863","host":"s3://npm-registry-packages-npm-production"}},"2.7.1-linux-amd64":{"name":"@3iot/scadactl","version":"2.7.1-linux-amd64","license":"UNLICENSED","_id":"@3iot/scadactl@2.7.1-linux-amd64","maintainers":[{"name":"rkonfj","email":"rkonfj@gmail.com"}],"homepage":"https://www.shenkong.cc","os":["linux"],"cpu":["x64"],"dist":{"shasum":"0494f352a89d17a29fdc42043e5a8889c3b80d64","tarball":"https://registry.npmjs.org/@3iot/scadactl/-/scadactl-2.7.1-linux-amd64.tgz","fileCount":2,"integrity":"sha512-eCOFn0ZYVtfoln29yCXjaPR871htAAfNHCh+7x0XlmGU7eLKRLGLLrPfl7XRP8d4nTfwnQoSakVFsz9IU1nPYQ==","signatures":[{"sig":"MEQCIHE9thmnTajXmitzT4qtGHcNdumZ0GyM0RYeEZVR4Hv9AiBKyhScWPnNT5zHYu06XjbwS99zldoclzb0qYnC/lcrAg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":13775371},"_from":"file:/home/rkonfj/sk/scada/cmd/scadactl/npm/dist/3iot-scadactl-2.7.1-linux-amd64.tgz","engines":{"node":">=18"},"_npmUser":{"name":"rkonfj","email":"rkonfj@gmail.com"},"_resolved":"/home/rkonfj/sk/scada/cmd/scadactl/npm/dist/3iot-scadactl-2.7.1-linux-amd64.tgz","_integrity":"sha512-eCOFn0ZYVtfoln29yCXjaPR871htAAfNHCh+7x0XlmGU7eLKRLGLLrPfl7XRP8d4nTfwnQoSakVFsz9IU1nPYQ==","_npmVersion":"11.18.0","description":"scadactl binary for Linux x64","directories":{},"_nodeVersion":"26.4.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/scadactl_2.7.1-linux-amd64_1784730180671_0.9985846537702907","host":"s3://npm-registry-packages-npm-production"}},"2.7.1-linux-arm64":{"name":"@3iot/scadactl","version":"2.7.1-linux-arm64","license":"UNLICENSED","_id":"@3iot/scadactl@2.7.1-linux-arm64","maintainers":[{"name":"rkonfj","email":"rkonfj@gmail.com"}],"homepage":"https://www.shenkong.cc","os":["linux"],"cpu":["arm64"],"dist":{"shasum":"0e93edb117bda8784c702345d6bedad23d5f8861","tarball":"https://registry.npmjs.org/@3iot/scadactl/-/scadactl-2.7.1-linux-arm64.tgz","fileCount":2,"integrity":"sha512-OHCmN3agbTMf//fe65+ijuDy8V5t/WZ+7UetSVWXE8gIUMNRHVor8mIH9cZqjPJh1ZFocNuIGGJ2bwBvMDkOXw==","signatures":[{"sig":"MEUCIQCkexs8I8JhaARdnbfpnZYcDzs1WI5SfbaqEyxmAEbZlQIgM0R8oFeTWHK2bLUUUsHQ5JPsmGcN82u/V+CP0CZkRCQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":12845583},"_from":"file:/home/rkonfj/sk/scada/cmd/scadactl/npm/dist/3iot-scadactl-2.7.1-linux-arm64.tgz","engines":{"node":">=18"},"_npmUser":{"name":"rkonfj","email":"rkonfj@gmail.com"},"_resolved":"/home/rkonfj/sk/scada/cmd/scadactl/npm/dist/3iot-scadactl-2.7.1-linux-arm64.tgz","_integrity":"sha512-OHCmN3agbTMf//fe65+ijuDy8V5t/WZ+7UetSVWXE8gIUMNRHVor8mIH9cZqjPJh1ZFocNuIGGJ2bwBvMDkOXw==","_npmVersion":"11.18.0","description":"scadactl binary for Linux ARM64","directories":{},"_nodeVersion":"26.4.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/scadactl_2.7.1-linux-arm64_1784730186282_0.8883490416813493","host":"s3://npm-registry-packages-npm-production"}},"2.7.1-darwin-arm64":{"name":"@3iot/scadactl","version":"2.7.1-darwin-arm64","license":"UNLICENSED","_id":"@3iot/scadactl@2.7.1-darwin-arm64","maintainers":[{"name":"rkonfj","email":"rkonfj@gmail.com"}],"homepage":"https://www.shenkong.cc","os":["darwin"],"cpu":["arm64"],"dist":{"shasum":"aca1249fb7f4e6eeea7b0c43c1147ca025a1eed6","tarball":"https://registry.npmjs.org/@3iot/scadactl/-/scadactl-2.7.1-darwin-arm64.tgz","fileCount":2,"integrity":"sha512-5smdQSumz550uhoR4Lx8w4kT9BUKRdPhC0X+LNHKjUyh/LLs6cyOruxJpYr/ws/wP+3QhHK1aEY20d/56ldknA==","signatures":[{"sig":"MEUCIG/tInRDDzA5QKAj9BG/ZIDs1cNKzOge++s9+J+UcxW/AiEAgXIduTcql4iCPSVFDvKORSTbgW/EiK8DcHhrheZgdUk=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":13104241},"_from":"file:/home/rkonfj/sk/scada/cmd/scadactl/npm/dist/3iot-scadactl-2.7.1-darwin-arm64.tgz","engines":{"node":">=18"},"_npmUser":{"name":"rkonfj","email":"rkonfj@gmail.com"},"_resolved":"/home/rkonfj/sk/scada/cmd/scadactl/npm/dist/3iot-scadactl-2.7.1-darwin-arm64.tgz","_integrity":"sha512-5smdQSumz550uhoR4Lx8w4kT9BUKRdPhC0X+LNHKjUyh/LLs6cyOruxJpYr/ws/wP+3QhHK1aEY20d/56ldknA==","_npmVersion":"11.18.0","description":"scadactl binary for macOS ARM64","directories":{},"_nodeVersion":"26.4.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/scadactl_2.7.1-darwin-arm64_1784730194733_0.08479808800173494","host":"s3://npm-registry-packages-npm-production"}},"2.7.1":{"name":"@3iot/scadactl","version":"2.7.1","description":"Command-line client for Shenkong SCADA","license":"UNLICENSED","homepage":"https://www.shenkong.cc","type":"module","bin":{"scadactl":"bin/scadactl.js"},"engines":{"node":">=18"},"publishConfig":{"access":"public"},"scripts":{"build":"node scripts/build.mjs","check":"node scripts/check.mjs","pack:all":"node scripts/pack.mjs","publish:all":"node scripts/publish.mjs","set-version":"node scripts/set-version.mjs"},"optionalDependencies":{"@3iot/scadactl-windows-amd64":"npm:@3iot/scadactl@2.7.1-windows-amd64","@3iot/scadactl-windows-arm64":"npm:@3iot/scadactl@2.7.1-windows-arm64","@3iot/scadactl-linux-amd64":"npm:@3iot/scadactl@2.7.1-linux-amd64","@3iot/scadactl-linux-arm64":"npm:@3iot/scadactl@2.7.1-linux-arm64","@3iot/scadactl-darwin-arm64":"npm:@3iot/scadactl@2.7.1-darwin-arm64"},"_id":"@3iot/scadactl@2.7.1","_integrity":"sha512-VBvgMUukAR+phXXeitFCaSa6dCDxY1LLvoTlMTjFUZ5XTIC+cAXF06x+VfdmoTcx7PcGIZ9FUFXpHpNWfqyYvw==","_resolved":"/home/rkonfj/sk/scada/cmd/scadactl/npm/dist/3iot-scadactl-2.7.1.tgz","_from":"file:/home/rkonfj/sk/scada/cmd/scadactl/npm/dist/3iot-scadactl-2.7.1.tgz","_nodeVersion":"26.4.0","_npmVersion":"11.18.0","dist":{"integrity":"sha512-VBvgMUukAR+phXXeitFCaSa6dCDxY1LLvoTlMTjFUZ5XTIC+cAXF06x+VfdmoTcx7PcGIZ9FUFXpHpNWfqyYvw==","shasum":"3771c7f3fad737d6cb8bebe2bd157ca0ac502aed","tarball":"https://registry.npmjs.org/@3iot/scadactl/-/scadactl-2.7.1.tgz","fileCount":4,"unpackedSize":5698,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDnmbOLedAh+pieCYVpIPRlv+OilmWnsoXxFfCvrLqQeAIhAOxhM/VV4hbC0VJHzmmIktRDb7ubKSKLJUXsxqeRJ+fx"}]},"_npmUser":{"name":"rkonfj","email":"rkonfj@gmail.com"},"directories":{},"maintainers":[{"name":"rkonfj","email":"rkonfj@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/scadactl_2.7.1_1784730198615_0.9604609237904487"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-22T14:20:45.464Z","modified":"2026-07-22T14:23:19.095Z","2.7.1-windows-amd64":"2026-07-22T14:20:45.991Z","2.7.1-windows-arm64":"2026-07-22T14:22:53.411Z","2.7.1-linux-amd64":"2026-07-22T14:23:00.945Z","2.7.1-linux-arm64":"2026-07-22T14:23:06.551Z","2.7.1-darwin-arm64":"2026-07-22T14:23:15.016Z","2.7.1":"2026-07-22T14:23:18.934Z"},"license":"UNLICENSED","homepage":"https://www.shenkong.cc","description":"Command-line client for Shenkong SCADA","maintainers":[{"name":"rkonfj","email":"rkonfj@gmail.com"}],"readme":"# scadactl npm packages\n\n该目录用于将 Go 编写的 `scadactl` 发布为跨平台 npm 命令行工具。\n\n## 安装\n\n```sh\nnpm install --global @3iot/scadactl\nscadactl -h\n```\n\n入口包 `@3iot/scadactl` 本身只包含 Node.js 启动器。npm 会根据平台包中的 `os` 和 `cpu` 字段，仅安装当前系统对应的 optional dependency：\n\n| 构建目标 | npm `os` | npm `cpu` | optional dependency alias |\n| --- | --- | --- | --- |\n| `windows_amd64` | `win32` | `x64` | `@3iot/scadactl-windows-amd64` |\n| `windows_arm64` | `win32` | `arm64` | `@3iot/scadactl-windows-arm64` |\n| `linux_amd64` | `linux` | `x64` | `@3iot/scadactl-linux-amd64` |\n| `linux_arm64` | `linux` | `arm64` | `@3iot/scadactl-linux-arm64` |\n| `darwin_arm64` | `darwin` | `arm64` | `@3iot/scadactl-darwin-arm64` |\n\n这些别名均指向同一个真实 npm 包名 `@3iot/scadactl` 的平台预发布版本。例如 `@3iot/scadactl-linux-amd64` 对应 `npm:@3iot/scadactl@2.7.1-linux-amd64`。\n\n## 发布\n\n在本目录执行：\n\n```sh\nnpm run set-version -- 2.7.1\nnpm run check\nnpm run build\nnpm run pack:all\nnpm run publish:all -- --dry-run\nnpm run publish:all\n```\n\n`set-version` 只接受 `x.y.z` 格式，并同步更新入口包、五个平台包和所有 npm alias。`build` 使用 `CGO_ENABLED=0` 交叉编译五个平台，`pack:all` 将六个 tarball 写入 `dist/`。\n\n`publish:all` 先以 `platform` dist-tag 发布五个平台版本，最后以 `latest` 发布入口包。可以把 npm 参数继续传给脚本，例如：\n\n```sh\nnpm run publish:all -- --registry=https://registry.example.com\n```\n\n平台二进制生成在 `packages/<target>/bin/`，打包产物生成在 `dist/`；两者都不会提交到 Git。\n","readmeFilename":"README.md"}