{"_id":"@alicloud/agenthub","_rev":"30-03925088bcf1624c30f1462d395e5d93","name":"@alicloud/agenthub","description":"整合 agentx 和 commandx 便利工具","dist-tags":{"latest":"2.0.1","tracing":"2.0.2"},"versions":{"1.0.0":{"name":"@alicloud/agenthub","version":"1.0.0","description":"整合 agentx 和 commandx 便利工具","main":"agenthub.js","bin":{"agenthub":"bin/agenthub"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/aliyun-node/agenthub.git"},"keywords":["agentx","commandx","alinode"],"author":{"name":"aliyun-node"},"license":"MIT","bugs":{"url":"https://github.com/aliyun-node/agenthub/issues"},"homepage":"https://github.com/aliyun-node/agenthub#readme","files":["bin","agenthub.js","client.js"],"dependencies":{"agentx":"^1.8.4","commandx":"^1.3.3","nounou":"^1.2.1"},"gitHead":"7f59be0f745e9bb1d23f38db173867cda84a05f0","_id":"@alicloud/agenthub@1.0.0","_npmVersion":"5.3.0","_nodeVersion":"8.4.0","_npmUser":{"name":"hyj1991","email":"1539194907@qq.com"},"dist":{"integrity":"sha512-j/Y4drMf93aGY4ZPljjTOMDlFpTKDBFEdnwnBTacfY7H2BK4D/IVh2vh4dvq9pM9/1lZtp2o+ilw/306wTGcnw==","shasum":"c4e42184fba5653891d8e2a67f69684088fe023a","tarball":"https://registry.npmjs.org/@alicloud/agenthub/-/agenthub-1.0.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD+BCLza9s+ruImttuJsmoaN1cuQcFgnufs9/LntO8wfwIgVanvVhwJYWNzfJHczBdY0EsDMZyY9ZlzVSvBeBENQvY="}]},"maintainers":[{"name":"hyj1991","email":"1539194907@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/agenthub-1.0.0.tgz_1509616588617_0.9744037275668234"},"directories":{}},"2.0.0":{"name":"@alicloud/agenthub","version":"2.0.0","description":"整合 agentx 和 commandx 便利工具","main":"lib/agenthub.js","bin":{"agenthub":"bin/agenthub"},"scripts":{"lint":"eslint bin/* lib test --fix","test":"mocha -R spec -t 80000 test/*.js --exit","cov":"nyc -r json -r lcov -r text-summary npm test","ci":"npm run lint && npm run cov"},"repository":{"type":"git","url":"git+https://github.com/aliyun-node/agenthub.git"},"keywords":["agentx","commandx","alinode"],"author":{"name":"aliyun-node"},"license":"MIT","bugs":{"url":"https://github.com/aliyun-node/agenthub/issues"},"homepage":"https://github.com/aliyun-node/agenthub#readme","files":["bin","agenthub.js","client.js"],"dependencies":{"agentx":"^1.8.4","commandx":"^1.3.3","nounou":"^1.2.1"},"devDependencies":{"eslint":"^4.18.2","mocha":"^5.0.3","nyc":"^11.4.1"},"gitHead":"2e6ea237c341420574c60a9442a4a752e6b1e720","_id":"@alicloud/agenthub@2.0.0","_shasum":"bc4a89583541dbaf65cefc5b3745237bd663295a","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.11.2","_npmUser":{"name":"jacksontian","email":"shyvo1987@gmail.com"},"dist":{"shasum":"bc4a89583541dbaf65cefc5b3745237bd663295a","tarball":"https://registry.npmjs.org/@alicloud/agenthub/-/agenthub-2.0.0.tgz","fileCount":5,"unpackedSize":12020,"integrity":"sha512-evl2S+e0LmCdsdkROzbekTgALgoexTBkW7z/I9phPOGruRGodK4Fb6kCEzuFsqv9tAl3xj638VLUjHVUK/Y3SQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDzAN8qJ6IXOA5RgQNE6jYWSfzd+818DUNj7pNW5upwUwIgDxwFScnxRI4IYJ/kb13ZR2n0JKECMod+OoknTiLO8hg="}]},"maintainers":[{"email":"halfthink@gmail.com","name":"humanhuang"},{"email":"1539194907@qq.com","name":"hyj1991"},{"email":"shyvo1987@gmail.com","name":"jacksontian"},{"email":"ls_huster@163.com","name":"ls_nodejs"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/agenthub_2.0.0_1520580277548_0.3799770471175754"},"_hasShrinkwrap":false},"2.0.1":{"name":"@alicloud/agenthub","version":"2.0.1","description":"整合 agentx 和 commandx 便利工具","main":"lib/agenthub.js","bin":{"agenthub":"bin/agenthub"},"scripts":{"lint":"eslint bin/* lib test --fix","test":"mocha -R spec -t 80000 test/*.js --exit","cov":"nyc -r json -r lcov -r text-summary npm test","ci":"npm run lint && npm run cov"},"repository":{"type":"git","url":"git+https://github.com/aliyun-node/agenthub.git"},"keywords":["agentx","commandx","alinode"],"author":{"name":"aliyun-node"},"license":"MIT","bugs":{"url":"https://github.com/aliyun-node/agenthub/issues"},"homepage":"https://github.com/aliyun-node/agenthub#readme","files":["bin","lib"],"dependencies":{"agentx":"^1.8.4","commandx":"^1.3.3","nounou":"^1.2.1"},"devDependencies":{"eslint":"^4.18.2","mocha":"^5.0.3","nyc":"^11.4.1"},"gitHead":"6809a821e7925eebbbb80565973f74d1e49f48f7","_id":"@alicloud/agenthub@2.0.1","_npmVersion":"5.5.1","_nodeVersion":"8.9.1","_npmUser":{"name":"jacksontian","email":"shyvo1987@gmail.com"},"dist":{"integrity":"sha512-DmtLRaNzZ7zpaoQFJ5hj5a8od6oMCjQ7c6Qzfh9mNcmZxrslVM3awvM5AF20jDH/KMTwsUUpNEXN628poBoncA==","shasum":"f59cbc105ceb51b21fd0c383c5d3f2ce8f3718e0","tarball":"https://registry.npmjs.org/@alicloud/agenthub/-/agenthub-2.0.1.tgz","fileCount":8,"unpackedSize":13827,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDxo8ox+swVy3F3il0r7NUrLleqeZKtaO9MP9BRIVxiUwIhAKM4e1hFX4TuCgWWHTNtiVfy3sidS2SGl5A7XCI01Ho4"}]},"maintainers":[{"email":"halfthink@gmail.com","name":"humanhuang"},{"email":"1539194907@qq.com","name":"hyj1991"},{"email":"shyvo1987@gmail.com","name":"jacksontian"},{"email":"ls_huster@163.com","name":"ls_nodejs"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/agenthub_2.0.1_1520580656374_0.12305373479841664"},"_hasShrinkwrap":false},"2.0.2":{"name":"@alicloud/agenthub","version":"2.0.2","description":"整合 agentx 和 commandx 便利工具","main":"lib/agenthub.js","bin":{"agenthub":"bin/agenthub"},"scripts":{"lint":"eslint bin/* lib test --fix","test":"mocha -R spec -t 80000 test/*.js --exit","cov":"nyc -r json -r lcov -r text-summary npm test","ci":"npm run lint && npm run cov"},"repository":{"type":"git","url":"git+https://github.com/aliyun-node/agenthub.git"},"keywords":["agentx","commandx","alinode"],"author":{"name":"aliyun-node"},"license":"MIT","bugs":{"url":"https://github.com/aliyun-node/agenthub/issues"},"homepage":"https://github.com/aliyun-node/agenthub#readme","files":["bin","lib"],"dependencies":{"agentx":"tracing","commandx":"^1.3.3","nounou":"^1.2.1"},"devDependencies":{"eslint":"^4.18.2","mocha":"^5.0.3","nyc":"^11.4.1"},"readme":"agenthub\n===========\n\nagenthub 是由 Node.js 性能平台提供的 agent 命令程序，用于协助您的 Node 应用性能数据上报和问题诊断。\n\n- [![Build Status](https://travis-ci.org/aliyun-node/agenthub.svg?branch=master)](https://travis-ci.org/aliyun-node/agenthub)\n- [![dependencies Status](https://david-dm.org/aliyun-node/agenthub/status.svg)](https://david-dm.org/aliyun-node/agenthub)\n\n## 安装\n\n```sh\n$ npm install @alicloud/agenthub -g\n```\n\n以上命令会将 agenthub 安装为一个全局的命令行工具。\n\n## 使用\nagenthub 需要一个配置文件来进行使用，agenthub 仅会在配置指定下的目录执行命令或读取日志。\n\n### 极简配置\n\n最简单的配置只需要传入 appid 和 secret 即可，格式如下：\n\n```json\n{\n  \"appid\": \"<YOUR APPID>\",\n  \"secret\": \"<YOUR SECRET>\",\n}\n```\n\n保存为 `config.json` ，完成配置后，请使用以下命令进行执行：\n\n```sh\n$ nohup agenthub config.json &\n```\n\nagenthub 将以常驻进程的方式执行。部署完成后，请访问 <https://node.console.aliyun.com/> 查看您的应用详情。如果一切正常，稍等片刻（1分钟）即可收到你的应用性能数据。\n\n### 启动 agenthub\n\n在 agenthub 2.0 中，我们可以不依赖 nohup 命令即可实现启动，启动命令如下：\n\n```sh\n$ agenthub start config.json\nagenthub has started(pid: 60039).\n// 如需查看日志\n$ cat ~/.agenthub.log\n```\n\n### 查看运行的 agenthub\n\n```sh\n$ agenthub list\n|- App ID -|- PID -|---- Start Time -----|--- Config Path ------------------------------------|\n|      886 | 60039 | 2018-03-09 15:15:19 | /path/to/config.json |\n|----------|-------|---------------------|----------------------------------------------------|\n```\n\n### 关闭 agenthub\n\n```sh\n$ agenthub stop all\n$ agenthub stop <appid>\n```\n\n### 详细配置\n\n详细配置如下所示：\n\n```json\n{\n  \"server\": \"<SERVER IP>:8080\",\n  \"appid\": \"<YOUR APPID>\",\n  \"secret\": \"<YOUR SECRET>\",\n  \"logdir\": \"</path/to/your/log/dir>\",\n  \"error_log\": [\n    \"</path/to/your/error.log>\",\n    \"您的应用在业务层面产生的异常日志的路径\",\n    \"例如：/root/.logs/error.#YYYY#-#MM#-#DD#-#HH#.log\",\n    \"可选\"\n  ],\n  \"packages\": [\n    \"</path/to/your/package.json>\",\n    \"可以输入多个package.json的路径\",\n    \"可选\"\n  ]\n}\n```\nerror_log 配置完成后您可以在 Node.js 性能平台上看到规整后的错误日志信息；packages 配置完成后您可以看到项目的版本依赖，以及对应的安全风险提示。\n\n> 配置中的#YYYY#、#MM#、#DD#、#HH#是通配符，如果您的异常日志是按时间生成的，请使用它。\n\n## 联系我们\n\n所有使用中遇到的问题，请咨询钉钉群：11794270。\n\n## License\n\n[MIT](LICENSE)\n","readmeFilename":"README.md","gitHead":"6809a821e7925eebbbb80565973f74d1e49f48f7","_id":"@alicloud/agenthub@2.0.2","_npmVersion":"5.6.0","_nodeVersion":"8.11.0","_npmUser":{"name":"hyj1991","email":"1539194907@qq.com"},"dist":{"integrity":"sha512-8A1/FhQ4RkuIyROJcBHe//JaoVV58cF/xLm51cp1El5bTvNUIFiOU9NJLjgYXr6f2kdnrWHf2+xfleIAR2lYSQ==","shasum":"a58d45cba8fa5922430113e29bd2216c13fd4372","tarball":"https://registry.npmjs.org/@alicloud/agenthub/-/agenthub-2.0.2.tgz","fileCount":8,"unpackedSize":13828,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbBSvBCRA9TVsSAnZWagAA9sIP/3vsWh7ogk41Z2/bY4fx\nkPnPXIV6OTfHTnM6+z9S/J5iBcEktTEmgzqTcB8ZaeXjBO2mumpKy1hIbbXo\nnBzBaz4gMPO5bRDSAe3InNZyv3k3uR0c4uPzrLtgL/jJ7sFSCN7WiqBUkJA+\nSmyuuY6kRCW3cK0SCMjU61YQIJZycE1PEAOM77L1W4p8oTMNyOUQ/zZrBbfn\nlc8SZmj+faFYjQvS65Ff7Dk9Wp83lhg6g6kwFA41zZ8yYpiVYmj1T7wJwUhj\n+6obv4GR2bnpkcpSJx6Q1pt0OqJGJjIdjwSLTVu1f4NZ8P1BU21zjCdCk+Dh\ngwVGlqYEDhOV0l4aXmy5mimTqGBU2OvdRKmOrGwk04vuso3189sqeu5aHw9Q\nxSBAPk5GsbMDddCetbZVFAcK0MMRRJjQOakypJ5wbv5IXBVgFLZ/BGi9gLmV\nFDHxxJyAF5XP/M6fLpQ48aR1cTCsccFirXmK1B5ixT24Gw7guK16LcPZ9AqH\noYOGfvlb6MWuqx7T7rfkcwbgAzMXuX8Ybx6d6TG055tYC6nBwhi8zn4Y0bDz\nyRsazqyXDNOc5ekJxPah5FaHU87CU+FID2r2fA5opjMvDQNe2IMMv85zAKrL\na0f5GIn4Wy8AtEeQKVskUtRkm00dzw/rxup91fIrT/YwbWUth8hVsbaeOIgK\nrGIE\r\n=xbhS\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICCiU+ZYGKXZ0FBVGkNsBItug7+7Pbn/2g4zWj6a+mDaAiBDz+umIpx6fdEdV0BcfjGHHzWfNvJLTYzFzC/OhDDtnQ=="}]},"maintainers":[{"email":"aleelock@126.com","name":"aleelock"},{"email":"halfthink@gmail.com","name":"humanhuang"},{"email":"1539194907@qq.com","name":"hyj1991"},{"email":"shyvo1987@gmail.com","name":"jacksontian"},{"email":"ls_huster@163.com","name":"ls_nodejs"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/agenthub_2.0.2_1527065537168_0.6537365673830617"},"_hasShrinkwrap":false}},"readme":"","maintainers":[{"email":"console-fe@alibabacloud.com","name":"console-fe"},{"email":"sdk-team@alibabacloud.com","name":"aliyunsdkteam"},{"email":"cpj1106@gmail.com","name":"pagecao"},{"email":"fengmk2@gmail.com","name":"fengmk2"},{"email":"shyvo1987@gmail.com","name":"jacksontian"}],"time":{"modified":"2022-06-12T14:30:33.809Z","created":"2017-11-02T09:56:29.636Z","1.0.0":"2017-11-02T09:56:29.636Z","2.0.0":"2018-03-09T07:24:37.680Z","2.0.1":"2018-03-09T07:30:56.523Z","2.0.2":"2018-05-23T08:52:17.260Z"},"homepage":"https://github.com/aliyun-node/agenthub#readme","keywords":["agentx","commandx","alinode"],"repository":{"type":"git","url":"git+https://github.com/aliyun-node/agenthub.git"},"author":{"name":"aliyun-node"},"bugs":{"url":"https://github.com/aliyun-node/agenthub/issues"},"license":"MIT","readmeFilename":""}