{"_id":"@ctyun/desktop-agent-sdk","_rev":"18-4f99ca661d9e97cd733721610742aa65","name":"@ctyun/desktop-agent-sdk","dist-tags":{"latest":"0.0.18"},"versions":{"0.0.1":{"name":"@ctyun/desktop-agent-sdk","version":"0.0.1","author":{"name":"zhangjiliang"},"_id":"@ctyun/desktop-agent-sdk@0.0.1","maintainers":[{"name":"lemon_cn","email":"lemoncn@163.com"},{"name":"zjlhope","email":"1343590422@qq.com"},{"name":"leinad59","email":"dcui1995@foxmail.com"},{"name":"mansonchor.zzw","email":"mansonchor1987@gmail.com"}],"homepage":"https://desk.ctyun.cn/html/download/","dist":{"shasum":"73dd7b37e25a6c733a6a9cfeeda0f84ce3f6e3f3","tarball":"https://registry.npmjs.org/@ctyun/desktop-agent-sdk/-/desktop-agent-sdk-0.0.1.tgz","fileCount":4,"integrity":"sha512-QxhVJWL3fcHv6LKWVwsC4vms/AygEmPF+yc7s3paaoWPZEy8z4rDsWEa6p3A/XToQNEsHR9F9cF4ziUCal0NkQ==","signatures":[{"sig":"MEQCIB214SU4te6mXJBzyBnna1S4VMwdfgSeoqaA7yDDn33wAiB+yyw7wgmyHHuHsdZfl2j5VYjoqYRU7RiwvR1QLEGahQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":18601},"main":"dist/index.cjs.js","module":"dist/index.esm.js","exports":{".":{"import":"./dist/index.esm.js","default":"./dist/index.cjs.js","require":"./dist/index.cjs.js"}},"gitHead":"66e6d8485573ab96903487581e8df4260e9d5098","scripts":{"build":"rollup -c rollup.config.mjs","prepublishOnly":"npm run build"},"_npmUser":{"name":"zjlhope","email":"1343590422@qq.com"},"_npmVersion":"10.9.3","description":"the agent web sdk to interactive with your computer","directories":{},"_nodeVersion":"22.20.0","dependencies":{"axios":"^1.13.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"rollup":"^4.55.1","rollup-plugin-delete":"^3.0.2","@rollup/plugin-terser":"^0.4.4","rollup-plugin-license":"^3.6.0","@rollup/plugin-commonjs":"^29.0.0","@rollup/plugin-node-resolve":"^16.0.3"},"_npmOperationalInternal":{"tmp":"tmp/desktop-agent-sdk_0.0.1_1770283803817_0.7542641208780121","host":"s3://npm-registry-packages-npm-production"}},"0.0.2":{"name":"@ctyun/desktop-agent-sdk","version":"0.0.2","author":{"name":"zhangjiliang"},"_id":"@ctyun/desktop-agent-sdk@0.0.2","maintainers":[{"name":"lemon_cn","email":"lemoncn@163.com"},{"name":"zjlhope","email":"1343590422@qq.com"},{"name":"leinad59","email":"dcui1995@foxmail.com"},{"name":"mansonchor.zzw","email":"mansonchor1987@gmail.com"}],"homepage":"https://desk.ctyun.cn/html/download/","dist":{"shasum":"7e892c41c8639c305059610b3c894a375d8a5459","tarball":"https://registry.npmjs.org/@ctyun/desktop-agent-sdk/-/desktop-agent-sdk-0.0.2.tgz","fileCount":4,"integrity":"sha512-a5eMPvVWkq/fLfNFnOmNYXSI5nUwx+IKTMBeFSOeGzBHb45St+c/04vf/IaSrRHsXXgFEBfMYKqnWZA+NIFfzw==","signatures":[{"sig":"MEUCIGQn01vclNkqoKupxdk9nBWhuZyevg/40auY3ALA0kE3AiEAs7E0+Gz+M0bfN6TU4SIPl9VBUREIjIihq//fjb+9B88=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":18685},"main":"dist/index.cjs.js","module":"dist/index.esm.js","exports":{".":{"import":"./dist/index.esm.js","default":"./dist/index.cjs.js","require":"./dist/index.cjs.js"}},"gitHead":"f866a3f83d00f485b05e9b8f8a1ee92cd1a87203","scripts":{"build":"rollup -c rollup.config.mjs","prepublishOnly":"npm run build"},"_npmUser":{"name":"zjlhope","email":"1343590422@qq.com"},"_npmVersion":"10.9.3","description":"the agent web sdk to interactive with your computer","directories":{},"_nodeVersion":"22.20.0","dependencies":{"axios":"^1.13.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"rollup":"^4.55.1","rollup-plugin-delete":"^3.0.2","@rollup/plugin-terser":"^0.4.4","rollup-plugin-license":"^3.6.0","@rollup/plugin-commonjs":"^29.0.0","@rollup/plugin-node-resolve":"^16.0.3"},"_npmOperationalInternal":{"tmp":"tmp/desktop-agent-sdk_0.0.2_1770966699682_0.6736411215651104","host":"s3://npm-registry-packages-npm-production"}},"0.0.3":{"name":"@ctyun/desktop-agent-sdk","version":"0.0.3","author":{"name":"zhangjiliang"},"_id":"@ctyun/desktop-agent-sdk@0.0.3","maintainers":[{"name":"lemon_cn","email":"lemoncn@163.com"},{"name":"zjlhope","email":"1343590422@qq.com"},{"name":"leinad59","email":"dcui1995@foxmail.com"},{"name":"mansonchor.zzw","email":"mansonchor1987@gmail.com"}],"homepage":"https://desk.ctyun.cn/html/download/","dist":{"shasum":"b9ca9255fd495947f0b148d8ebb0c290f99f602d","tarball":"https://registry.npmjs.org/@ctyun/desktop-agent-sdk/-/desktop-agent-sdk-0.0.3.tgz","fileCount":4,"integrity":"sha512-Ju/dbS3peAN7uijfANRm7SJ3xfSfPY9djIQUgCzPXXaV8TLwn+lQ+qv9JA8LYxVBFxCtevaKDQkG/kFvPXlThQ==","signatures":[{"sig":"MEQCIFQomcif0MZHavmP1OuxvMBTzkKOWddyHdfbdsoreIKzAiA5NaQsE56ZSFiubQNkkC7VSAJ64QNW61Mij3PDr64mug==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":18777},"main":"dist/index.cjs.js","module":"dist/index.esm.js","exports":{".":{"import":"./dist/index.esm.js","default":"./dist/index.cjs.js","require":"./dist/index.cjs.js"}},"gitHead":"dc36871b8d56d7bc236e76807a190e338e56da0e","scripts":{"build":"rollup -c rollup.config.mjs","prepublishOnly":"npm run build"},"_npmUser":{"name":"zjlhope","email":"1343590422@qq.com"},"_npmVersion":"10.9.3","description":"the agent web sdk to interactive with your computer","directories":{},"_nodeVersion":"22.20.0","dependencies":{"axios":"^1.13.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"rollup":"^4.55.1","rollup-plugin-delete":"^3.0.2","@rollup/plugin-terser":"^0.4.4","rollup-plugin-license":"^3.6.0","@rollup/plugin-commonjs":"^29.0.0","@rollup/plugin-node-resolve":"^16.0.3"},"_npmOperationalInternal":{"tmp":"tmp/desktop-agent-sdk_0.0.3_1772090223285_0.45984582759621295","host":"s3://npm-registry-packages-npm-production"}},"0.0.4":{"name":"@ctyun/desktop-agent-sdk","version":"0.0.4","author":{"name":"zhangjiliang"},"_id":"@ctyun/desktop-agent-sdk@0.0.4","maintainers":[{"name":"lemon_cn","email":"lemoncn@163.com"},{"name":"zjlhope","email":"1343590422@qq.com"},{"name":"leinad59","email":"dcui1995@foxmail.com"},{"name":"mansonchor.zzw","email":"mansonchor1987@gmail.com"}],"homepage":"https://desk.ctyun.cn/html/download/","dist":{"shasum":"e95898938836dbe04d99beda0f61b0bf49f46130","tarball":"https://registry.npmjs.org/@ctyun/desktop-agent-sdk/-/desktop-agent-sdk-0.0.4.tgz","fileCount":4,"integrity":"sha512-CMg1T1I4em6aagLlTk3K+aecFHjqrQYbUA9Avp05q2HzhopetFfCFqWSoPY1zExentaKR6uQhpcoAMw/SceACQ==","signatures":[{"sig":"MEUCIQCwo/OjH2y9Mc5Yu1Q+p3p8zUVjjC+qbTuUHj1gNkh0cQIgAo75MpNGOF1NHtDgTJ/e540HZVEjbk97iw+3ksksmRc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":18395},"main":"dist/index.cjs.js","module":"dist/index.esm.js","exports":{".":{"import":"./dist/index.esm.js","default":"./dist/index.cjs.js","require":"./dist/index.cjs.js"}},"gitHead":"40af7e8db0e1afe7749bb1530f15e17b3bcde735","scripts":{"build":"rollup -c rollup.config.mjs","prepublishOnly":"npm run build"},"_npmUser":{"name":"zjlhope","email":"1343590422@qq.com"},"_npmVersion":"10.9.3","description":"the agent web sdk to interactive with your computer","directories":{},"_nodeVersion":"22.20.0","dependencies":{"axios":"^1.13.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"rollup":"^4.55.1","rollup-plugin-delete":"^3.0.2","@rollup/plugin-terser":"^0.4.4","rollup-plugin-license":"^3.6.0","@rollup/plugin-commonjs":"^29.0.0","@rollup/plugin-node-resolve":"^16.0.3"},"_npmOperationalInternal":{"tmp":"tmp/desktop-agent-sdk_0.0.4_1772094562207_0.15269882802115142","host":"s3://npm-registry-packages-npm-production"}},"0.0.5":{"name":"@ctyun/desktop-agent-sdk","version":"0.0.5","author":{"name":"zhangjiliang"},"_id":"@ctyun/desktop-agent-sdk@0.0.5","maintainers":[{"name":"lemon_cn","email":"lemoncn@163.com"},{"name":"zjlhope","email":"1343590422@qq.com"},{"name":"leinad59","email":"dcui1995@foxmail.com"},{"name":"mansonchor.zzw","email":"mansonchor1987@gmail.com"}],"homepage":"https://desk.ctyun.cn/html/download/","dist":{"shasum":"c582932cf6e9100ccc210656c88f63030373ab67","tarball":"https://registry.npmjs.org/@ctyun/desktop-agent-sdk/-/desktop-agent-sdk-0.0.5.tgz","fileCount":4,"integrity":"sha512-+zrG5qBCyQhHF3kdxcBJJoclWWJ8ELgSppIn/NFUlU9hva/n7oDuW3Rbgo86zcMj7V5PmIRR8w77e6H3gtP3mQ==","signatures":[{"sig":"MEQCIB29+XUZo+2AZ1oNgIQo1nR4ushP5z9d6/YZSnLUEIPPAiB7Hd6NjEjARXEgN9wOq2eKtg1Lk+vQpicQPEtwFAkMvA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":19025},"main":"dist/index.cjs.js","type":"module","module":"dist/index.esm.js","exports":{".":{"import":"./dist/index.esm.js","default":"./dist/index.cjs.js","require":"./dist/index.cjs.js"}},"gitHead":"40af7e8db0e1afe7749bb1530f15e17b3bcde735","scripts":{"build":"rollup -c rollup.config.mjs","prepublishOnly":"npm run build"},"_npmUser":{"name":"zjlhope","email":"1343590422@qq.com"},"_npmVersion":"10.9.3","description":"the agent web sdk to interactive with your computer","directories":{},"_nodeVersion":"22.20.0","dependencies":{"axios":"^1.13.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"rollup":"^4.55.1","rollup-plugin-delete":"^3.0.2","@rollup/plugin-terser":"^0.4.4","rollup-plugin-license":"^3.6.0","@rollup/plugin-commonjs":"^29.0.0","@rollup/plugin-node-resolve":"^16.0.3"},"_npmOperationalInternal":{"tmp":"tmp/desktop-agent-sdk_0.0.5_1772163548084_0.8024977593627118","host":"s3://npm-registry-packages-npm-production"}},"0.0.7":{"name":"@ctyun/desktop-agent-sdk","version":"0.0.7","author":{"name":"zhangjiliang"},"_id":"@ctyun/desktop-agent-sdk@0.0.7","maintainers":[{"name":"lemon_cn","email":"lemoncn@163.com"},{"name":"zjlhope","email":"1343590422@qq.com"},{"name":"leinad59","email":"dcui1995@foxmail.com"},{"name":"mansonchor.zzw","email":"mansonchor1987@gmail.com"}],"homepage":"https://desk.ctyun.cn/html/download/","dist":{"shasum":"ec90263d01561bf87cf1f3234db3a6a3c3156243","tarball":"https://registry.npmjs.org/@ctyun/desktop-agent-sdk/-/desktop-agent-sdk-0.0.7.tgz","fileCount":4,"integrity":"sha512-h1IJUWEmbcDtcEcHIJKvTwiciD9Hp1+fNE++pynclvr/tYLeoj9EmQqqwrLArgmuNUWnkitviLVc8DaBYFWwaA==","signatures":[{"sig":"MEQCIBRFQtc5cVHfYglaNl3EUaUodWpbYW7xtvzuM33jmVNkAiBK2AH+MwhhG8ALS/5lJPkIVHzw/IPGf993ZzV/JHjHrA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":18467},"main":"dist/index.cjs.js","type":"module","module":"dist/index.esm.js","exports":{".":{"import":"./dist/index.esm.js","default":"./dist/index.cjs.js","require":"./dist/index.cjs.js"}},"gitHead":"b7127ae3845fcf0fc398c71d4501a9d048eb0a42","scripts":{"build":"rollup -c rollup.config.mjs","prepublishOnly":"npm run build"},"_npmUser":{"name":"zjlhope","email":"1343590422@qq.com"},"_npmVersion":"10.9.3","description":"the agent web sdk to interactive with your computer","directories":{},"_nodeVersion":"22.20.0","dependencies":{"axios":"^1.13.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"rollup":"^4.55.1","rollup-plugin-delete":"^3.0.2","@rollup/plugin-terser":"^0.4.4","rollup-plugin-license":"^3.6.0","@rollup/plugin-commonjs":"^29.0.0","@rollup/plugin-node-resolve":"^16.0.3"},"_npmOperationalInternal":{"tmp":"tmp/desktop-agent-sdk_0.0.7_1772190603776_0.5221038129957922","host":"s3://npm-registry-packages-npm-production"}},"0.0.8":{"name":"@ctyun/desktop-agent-sdk","version":"0.0.8","author":{"name":"zhangjiliang"},"_id":"@ctyun/desktop-agent-sdk@0.0.8","maintainers":[{"name":"lemon_cn","email":"lemoncn@163.com"},{"name":"zjlhope","email":"1343590422@qq.com"},{"name":"leinad59","email":"dcui1995@foxmail.com"},{"name":"mansonchor.zzw","email":"mansonchor1987@gmail.com"}],"homepage":"https://desk.ctyun.cn/html/download/","dist":{"shasum":"6b1e7528ff542f6a6097a4e5498d5fac54834f77","tarball":"https://registry.npmjs.org/@ctyun/desktop-agent-sdk/-/desktop-agent-sdk-0.0.8.tgz","fileCount":4,"integrity":"sha512-gZM6p8dLfuYIHMSW6Navn2fa69fu5AZfzHLTywX0QkfrepBw/qudMQsZ82Dac8GCJIWm2yA2+k0yjyI+PRNkug==","signatures":[{"sig":"MEUCIEtpdnIK92ymsDY7A4V3wwUxMzMfIN0L8g3xIftAIZwjAiEAvezTbpO3WdtzvHLZcK+hnM8CwpvOlTQVrokPS8L+UX4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":18710},"main":"dist/index.cjs.js","type":"module","module":"dist/index.esm.js","exports":{".":{"import":"./dist/index.esm.js","default":"./dist/index.cjs.js","require":"./dist/index.cjs.js"}},"gitHead":"7f345a987b1d474632c1f5013b42304dc9932ee6","scripts":{"build":"rollup -c rollup.config.mjs","prepublishOnly":"npm run build"},"_npmUser":{"name":"zjlhope","email":"1343590422@qq.com"},"_npmVersion":"10.9.3","description":"the agent web sdk to interactive with your computer","directories":{},"_nodeVersion":"22.20.0","dependencies":{"axios":"^1.13.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"rollup":"^4.55.1","rollup-plugin-delete":"^3.0.2","@rollup/plugin-terser":"^0.4.4","rollup-plugin-license":"^3.6.0","@rollup/plugin-commonjs":"^29.0.0","@rollup/plugin-node-resolve":"^16.0.3"},"_npmOperationalInternal":{"tmp":"tmp/desktop-agent-sdk_0.0.8_1772509034268_0.3891991563730939","host":"s3://npm-registry-packages-npm-production"}},"0.0.9-beta":{"name":"@ctyun/desktop-agent-sdk","version":"0.0.9-beta","author":{"name":"zhangjiliang"},"_id":"@ctyun/desktop-agent-sdk@0.0.9-beta","maintainers":[{"name":"lemon_cn","email":"lemoncn@163.com"},{"name":"zjlhope","email":"1343590422@qq.com"},{"name":"leinad59","email":"dcui1995@foxmail.com"},{"name":"mansonchor.zzw","email":"mansonchor1987@gmail.com"}],"homepage":"https://desk.ctyun.cn/html/download/","dist":{"shasum":"c26343231def0c15ac7e23ad652f484730c16531","tarball":"https://registry.npmjs.org/@ctyun/desktop-agent-sdk/-/desktop-agent-sdk-0.0.9-beta.tgz","fileCount":4,"integrity":"sha512-IWPFucRAOkSWJkceYPAiTzraRxZvVj14Ew7L8Gzss9rIQCKbOmk0JEsc1uznEA/GztNG9nXOpzUukH2fIYJ9Nw==","signatures":[{"sig":"MEUCIQDZQPFyD3a2pq6hOG4CqQGFkI0/kxK9QvM0DB755gz+UAIgJAB3Wt8JoJQywMpnVuQ5sBPjfRaqSDoUSVVHd4dTlX8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":19202},"main":"dist/index.cjs.js","type":"module","module":"dist/index.esm.js","exports":{".":{"import":"./dist/index.esm.js","default":"./dist/index.cjs.js","require":"./dist/index.cjs.js"}},"gitHead":"97aa1eace229b3cbac45b01e4818b76a5d42c8fe","scripts":{"build":"rollup -c rollup.config.mjs","prepublishOnly":"npm run build"},"_npmUser":{"name":"zjlhope","email":"1343590422@qq.com"},"_npmVersion":"10.9.3","description":"the agent web sdk to interactive with your computer","directories":{},"_nodeVersion":"22.20.0","dependencies":{"axios":"^0.31.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"rollup":"^4.55.1","rollup-plugin-delete":"^3.0.2","@rollup/plugin-terser":"^0.4.4","rollup-plugin-license":"^3.6.0","@rollup/plugin-commonjs":"^29.0.0","@rollup/plugin-node-resolve":"^16.0.3"},"_npmOperationalInternal":{"tmp":"tmp/desktop-agent-sdk_0.0.9-beta_1776743873289_0.9733643357921582","host":"s3://npm-registry-packages-npm-production"}},"0.0.9":{"name":"@ctyun/desktop-agent-sdk","version":"0.0.9","author":{"name":"zhangjiliang"},"_id":"@ctyun/desktop-agent-sdk@0.0.9","maintainers":[{"name":"lemon_cn","email":"lemoncn@163.com"},{"name":"zjlhope","email":"1343590422@qq.com"},{"name":"leinad59","email":"dcui1995@foxmail.com"},{"name":"mansonchor.zzw","email":"mansonchor1987@gmail.com"},{"name":"linhongjack","email":"1562680945@qq.com"}],"homepage":"https://desk.ctyun.cn/html/download/","dist":{"shasum":"eaa4cce0e3b6e91fe152755d3980019aceb2a69d","tarball":"https://registry.npmjs.org/@ctyun/desktop-agent-sdk/-/desktop-agent-sdk-0.0.9.tgz","fileCount":4,"integrity":"sha512-1FeDkI9ZGLFjkPuZNVzuNkeKIQWtstQv6NXgz9qwIcinRWI0+Y9K8mTuCH5qOxDu9Cf4dFUAV6gIL+/ZMiZdHQ==","signatures":[{"sig":"MEUCIQDpm2AgOEDm6ESwTv631217TevslpMgF1S+MdraykX++gIgZglUjwu3EyEyizreeDw/8gvVH1u/rGbOe+0qpVdvKIo=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":358840},"main":"dist/index.cjs.js","type":"module","module":"dist/index.esm.js","exports":{".":{"import":"./dist/index.esm.js","default":"./dist/index.cjs.js","require":"./dist/index.cjs.js"}},"gitHead":"f03e530aeeb29f86d5db1105bbae79d018aed8c6","scripts":{"build":"rollup -c rollup.config.mjs","prepublishOnly":"npm run build"},"_npmUser":{"name":"linhongjack","email":"1562680945@qq.com"},"_npmVersion":"11.6.2","description":"the agent web sdk to interactive with your computer","directories":{},"_nodeVersion":"24.11.1","dependencies":{"axios":"^0.31.1","form-data":"^4.0.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"rollup":"^4.55.1","@rollup/plugin-json":"^6.1.0","rollup-plugin-delete":"^3.0.2","@rollup/plugin-terser":"^0.4.4","rollup-plugin-license":"^3.6.0","@rollup/plugin-commonjs":"^29.0.0","@rollup/plugin-node-resolve":"^16.0.3"},"_npmOperationalInternal":{"tmp":"tmp/desktop-agent-sdk_0.0.9_1778126052969_0.7754402197162498","host":"s3://npm-registry-packages-npm-production"}},"0.0.10":{"name":"@ctyun/desktop-agent-sdk","version":"0.0.10","author":{"name":"zhangjiliang"},"_id":"@ctyun/desktop-agent-sdk@0.0.10","maintainers":[{"name":"lemon_cn","email":"lemoncn@163.com"},{"name":"zjlhope","email":"1343590422@qq.com"},{"name":"leinad59","email":"dcui1995@foxmail.com"},{"name":"mansonchor.zzw","email":"mansonchor1987@gmail.com"},{"name":"linhongjack","email":"1562680945@qq.com"}],"homepage":"https://desk.ctyun.cn/html/download/","dist":{"shasum":"2169eb65ac1ba8b32d2c5fc42ac0172c3ed72133","tarball":"https://registry.npmjs.org/@ctyun/desktop-agent-sdk/-/desktop-agent-sdk-0.0.10.tgz","fileCount":4,"integrity":"sha512-cnKph94UmRcBl++MjJpbU6nIEHKVcFZa7mo1YAIXj8YwNCqDz8VP/ADa5tTFziqO9GzpDz5L9Rd4Il6XkgxbvQ==","signatures":[{"sig":"MEUCIA2UP886XjYH+tcxiqfMgaVpgycao5s2mHOFx3kJlJV+AiEA8xHRlQSqGLeP0qSRJJUG3FTIwdKeJW2UmfVxLZOZ0sM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":360130},"main":"dist/index.cjs.js","type":"module","module":"dist/index.esm.js","exports":{".":{"import":"./dist/index.esm.js","default":"./dist/index.cjs.js","require":"./dist/index.cjs.js"}},"gitHead":"f03e530aeeb29f86d5db1105bbae79d018aed8c6","scripts":{"build":"rollup -c rollup.config.mjs","prepublishOnly":"npm run build"},"_npmUser":{"name":"linhongjack","email":"1562680945@qq.com"},"_npmVersion":"11.6.2","description":"the agent web sdk to interactive with your computer","directories":{},"_nodeVersion":"24.11.1","dependencies":{"axios":"^0.31.1","form-data":"^4.0.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"rollup":"^4.55.1","@rollup/plugin-json":"^6.1.0","rollup-plugin-delete":"^3.0.2","@rollup/plugin-terser":"^0.4.4","rollup-plugin-license":"^3.6.0","@rollup/plugin-commonjs":"^29.0.0","@rollup/plugin-node-resolve":"^16.0.3"},"_npmOperationalInternal":{"tmp":"tmp/desktop-agent-sdk_0.0.10_1778228655823_0.19876629040833182","host":"s3://npm-registry-packages-npm-production"}},"0.0.12":{"name":"@ctyun/desktop-agent-sdk","version":"0.0.12","author":{"name":"zhangjiliang"},"_id":"@ctyun/desktop-agent-sdk@0.0.12","maintainers":[{"name":"lemon_cn","email":"lemoncn@163.com"},{"name":"zjlhope","email":"1343590422@qq.com"},{"name":"leinad59","email":"dcui1995@foxmail.com"},{"name":"mansonchor.zzw","email":"mansonchor1987@gmail.com"},{"name":"linhongjack","email":"1562680945@qq.com"}],"homepage":"https://desk.ctyun.cn/html/download/","dist":{"shasum":"4df8f155b37128f55de8cf9e27cfc16eb8681956","tarball":"https://registry.npmjs.org/@ctyun/desktop-agent-sdk/-/desktop-agent-sdk-0.0.12.tgz","fileCount":4,"integrity":"sha512-G3fAwpOgbrBitH0BH5nFF/2MgvJ0oUIKb1C367kbCv0ch/TZNmGAFNSz5534FetPA1IhjBYWfdNWi2yf0Jy1bw==","signatures":[{"sig":"MEUCIQCMuWf2fQKtvqAZz4cT7XU5eBDexJtfht/5l1pNb7ueqgIgQJiTLEqzsXMKJV+H64/SIyWgRo9OHK0CFt73zrEBX0c=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":360586},"main":"dist/index.cjs.js","type":"module","module":"dist/index.esm.js","exports":{".":{"import":"./dist/index.esm.js","default":"./dist/index.cjs.js","require":"./dist/index.cjs.js"}},"gitHead":"f03e530aeeb29f86d5db1105bbae79d018aed8c6","scripts":{"build":"rollup -c rollup.config.mjs","prepublishOnly":"npm run build"},"_npmUser":{"name":"linhongjack","email":"1562680945@qq.com"},"_npmVersion":"11.6.2","description":"the agent web sdk to interactive with your computer","directories":{},"_nodeVersion":"24.11.1","dependencies":{"axios":"^0.31.1","form-data":"^4.0.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"rollup":"^4.55.1","@rollup/plugin-json":"^6.1.0","rollup-plugin-delete":"^3.0.2","@rollup/plugin-terser":"^0.4.4","rollup-plugin-license":"^3.6.0","@rollup/plugin-commonjs":"^29.0.0","@rollup/plugin-node-resolve":"^16.0.3"},"_npmOperationalInternal":{"tmp":"tmp/desktop-agent-sdk_0.0.12_1778489136628_0.4294427966208576","host":"s3://npm-registry-packages-npm-production"}},"0.0.15":{"name":"@ctyun/desktop-agent-sdk","version":"0.0.15","author":{"name":"zhangjiliang"},"_id":"@ctyun/desktop-agent-sdk@0.0.15","maintainers":[{"name":"lemon_cn","email":"lemoncn@163.com"},{"name":"zjlhope","email":"1343590422@qq.com"},{"name":"leinad59","email":"dcui1995@foxmail.com"},{"name":"mansonchor.zzw","email":"mansonchor1987@gmail.com"},{"name":"linhongjack","email":"1562680945@qq.com"}],"homepage":"https://desk.ctyun.cn/html/download/","dist":{"shasum":"d776098b7880d4dd93e24ec8bb7f0c2ca19512d9","tarball":"https://registry.npmjs.org/@ctyun/desktop-agent-sdk/-/desktop-agent-sdk-0.0.15.tgz","fileCount":4,"integrity":"sha512-k8nsmtKqDz458mAxe6JMFjeK7TA8BTNb2fXyCsyHChpGqjYdyBV1+wMh8y+Ve1G8SeH1/FVpG+2Qa+4fR9iAqA==","signatures":[{"sig":"MEUCIAVM87vEbz2AJ5XRp+lePTaDM4rL8SGR+w9AWDnwxeUTAiEAsTITsB5L50cjaahUUlrODrdLlQOjR/jG4G8eppfr/MA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":363322},"main":"dist/index.cjs.js","type":"module","module":"dist/index.esm.js","exports":{".":{"import":"./dist/index.esm.js","default":"./dist/index.cjs.js","require":"./dist/index.cjs.js"}},"gitHead":"f03e530aeeb29f86d5db1105bbae79d018aed8c6","scripts":{"build":"rollup -c rollup.config.mjs","prepublishOnly":"npm run build"},"_npmUser":{"name":"linhongjack","email":"1562680945@qq.com"},"_npmVersion":"11.6.2","description":"the agent web sdk to interactive with your computer","directories":{},"_nodeVersion":"24.11.1","dependencies":{"axios":"^0.31.1","form-data":"^4.0.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"rollup":"^4.55.1","@rollup/plugin-json":"^6.1.0","rollup-plugin-delete":"^3.0.2","@rollup/plugin-terser":"^0.4.4","rollup-plugin-license":"^3.6.0","@rollup/plugin-commonjs":"^29.0.0","@rollup/plugin-node-resolve":"^16.0.3"},"_npmOperationalInternal":{"tmp":"tmp/desktop-agent-sdk_0.0.15_1778665745723_0.18651590151794495","host":"s3://npm-registry-packages-npm-production"}},"0.0.16":{"name":"@ctyun/desktop-agent-sdk","version":"0.0.16","author":{"name":"zhangjiliang"},"_id":"@ctyun/desktop-agent-sdk@0.0.16","maintainers":[{"name":"lemon_cn","email":"lemoncn@163.com"},{"name":"zjlhope","email":"1343590422@qq.com"},{"name":"leinad59","email":"dcui1995@foxmail.com"},{"name":"mansonchor.zzw","email":"mansonchor1987@gmail.com"},{"name":"linhongjack","email":"1562680945@qq.com"}],"homepage":"https://desk.ctyun.cn/html/download/","dist":{"shasum":"0a07f2884361693d177129739f14ef306186341c","tarball":"https://registry.npmjs.org/@ctyun/desktop-agent-sdk/-/desktop-agent-sdk-0.0.16.tgz","fileCount":4,"integrity":"sha512-RjgZ3LKXp5NlD+LzjEC2quHXby7ENY7fzms+XojIxMRI0U4palzibzY1IQ94pEi5SoFyXC7qxhTIXleTrfHZtw==","signatures":[{"sig":"MEUCIHtluYhFUhDM9zOzRTGfQ5PjJJ7Sm4wF9ZAskxe4+EqMAiEA8DyZQrmBiH9/4Azfn+xUL6MuMGvgWRuce3yq/7wamMA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":363322},"main":"dist/index.cjs.js","type":"module","module":"dist/index.esm.js","exports":{".":{"import":"./dist/index.esm.js","default":"./dist/index.cjs.js","require":"./dist/index.cjs.js"}},"gitHead":"f03e530aeeb29f86d5db1105bbae79d018aed8c6","scripts":{"build":"rollup -c rollup.config.mjs","prepublishOnly":"npm run build"},"_npmUser":{"name":"linhongjack","email":"1562680945@qq.com"},"_npmVersion":"11.6.2","description":"the agent web sdk to interactive with your computer","directories":{},"_nodeVersion":"24.11.1","dependencies":{"axios":"^0.31.1","form-data":"^4.0.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"rollup":"^4.55.1","@rollup/plugin-json":"^6.1.0","rollup-plugin-delete":"^3.0.2","@rollup/plugin-terser":"^0.4.4","rollup-plugin-license":"^3.6.0","@rollup/plugin-commonjs":"^29.0.0","@rollup/plugin-node-resolve":"^16.0.3"},"_npmOperationalInternal":{"tmp":"tmp/desktop-agent-sdk_0.0.16_1778722139065_0.23400116595117804","host":"s3://npm-registry-packages-npm-production"}},"0.0.17":{"name":"@ctyun/desktop-agent-sdk","version":"0.0.17","author":{"name":"zhangjiliang"},"_id":"@ctyun/desktop-agent-sdk@0.0.17","maintainers":[{"name":"lemon_cn","email":"lemoncn@163.com"},{"name":"zjlhope","email":"1343590422@qq.com"},{"name":"leinad59","email":"dcui1995@foxmail.com"},{"name":"mansonchor.zzw","email":"mansonchor1987@gmail.com"},{"name":"linhongjack","email":"1562680945@qq.com"}],"homepage":"https://desk.ctyun.cn/html/download/","dist":{"shasum":"57838b8cb7b11b21b3e97d25b21162573bc01e73","tarball":"https://registry.npmjs.org/@ctyun/desktop-agent-sdk/-/desktop-agent-sdk-0.0.17.tgz","fileCount":4,"integrity":"sha512-isYe/No3y4fT8h1jYd2qF9skkUG9OIJ51zYDK+EYQL4ISkNnBLTVHwFrXmEMAHIil7Oya2MxZJiUUv/wwX6aQA==","signatures":[{"sig":"MEYCIQDuXPnXgTawi/Y7H6It6NHRlf2gEAhRfvS5z2sI2dnTlQIhAJKo2tH8s1sFj+uHi/gEyXIvYBjXwDcXh7We/aW5Ip4g","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":363322},"main":"dist/index.cjs.js","type":"module","module":"dist/index.esm.js","exports":{".":{"import":"./dist/index.esm.js","default":"./dist/index.cjs.js","require":"./dist/index.cjs.js"}},"gitHead":"f03e530aeeb29f86d5db1105bbae79d018aed8c6","scripts":{"build":"rollup -c rollup.config.mjs","prepublishOnly":"npm run build"},"_npmUser":{"name":"linhongjack","email":"1562680945@qq.com"},"_npmVersion":"11.6.2","description":"the agent web sdk to interactive with your computer","directories":{},"_nodeVersion":"24.11.1","dependencies":{"axios":"^0.31.1","form-data":"^4.0.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"rollup":"^4.55.1","@rollup/plugin-json":"^6.1.0","rollup-plugin-delete":"^3.0.2","@rollup/plugin-terser":"^0.4.4","rollup-plugin-license":"^3.6.0","@rollup/plugin-commonjs":"^29.0.0","@rollup/plugin-node-resolve":"^16.0.3"},"_npmOperationalInternal":{"tmp":"tmp/desktop-agent-sdk_0.0.17_1779089144459_0.8021290067144538","host":"s3://npm-registry-packages-npm-production"}},"0.0.18":{"name":"@ctyun/desktop-agent-sdk","version":"0.0.18","description":"the agent web sdk to interactive with your computer","main":"dist/index.cjs.js","module":"dist/index.esm.js","type":"module","exports":{".":{"import":"./dist/index.esm.js","require":"./dist/index.cjs.js","default":"./dist/index.cjs.js"}},"author":{"name":"zhangjiliang"},"homepage":"https://desk.ctyun.cn/html/download/","scripts":{"build":"rollup -c rollup.config.mjs","prepublishOnly":"npm run build"},"publishConfig":{"access":"public"},"devDependencies":{"@rollup/plugin-commonjs":"^29.0.0","@rollup/plugin-json":"^6.1.0","@rollup/plugin-node-resolve":"^16.0.3","@rollup/plugin-terser":"^0.4.4","rollup":"^4.55.1","rollup-plugin-delete":"^3.0.2","rollup-plugin-license":"^3.6.0"},"dependencies":{"axios":"^0.31.1","form-data":"^4.0.4"},"gitHead":"f03e530aeeb29f86d5db1105bbae79d018aed8c6","_id":"@ctyun/desktop-agent-sdk@0.0.18","_nodeVersion":"24.11.1","_npmVersion":"11.6.2","dist":{"integrity":"sha512-jfEelomI4JNy7DCYf02rXRwRchIKJqSlXsFLuZGWS2XU5QQT9QAZQ/93KMaAEigUWhuVqh9oAkUNjV9jlkbGjw==","shasum":"df2ae5be62ca3f85a91be7ba0f2eb116a8310bb9","tarball":"https://registry.npmjs.org/@ctyun/desktop-agent-sdk/-/desktop-agent-sdk-0.0.18.tgz","fileCount":4,"unpackedSize":363322,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDJU2eJpgpcybZEDCpzo1luEryjgO8nBEVvh8NCx2DlpgIhAJ7Z0/mzvRJkNjAk/i0mXJWMRBEKoaoHnlumdB2etJEg"}]},"_npmUser":{"name":"linhongjack","email":"1562680945@qq.com"},"directories":{},"maintainers":[{"name":"lemon_cn","email":"lemoncn@163.com"},{"name":"zjlhope","email":"1343590422@qq.com"},{"name":"leinad59","email":"dcui1995@foxmail.com"},{"name":"mansonchor.zzw","email":"mansonchor1987@gmail.com"},{"name":"linhongjack","email":"1562680945@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/desktop-agent-sdk_0.0.18_1779416609044_0.1501459930982083"},"_hasShrinkwrap":false}},"time":{"created":"2026-02-05T09:30:03.730Z","modified":"2026-05-22T02:23:29.421Z","0.0.1":"2026-02-05T09:30:03.992Z","0.0.2":"2026-02-13T07:11:39.818Z","0.0.3":"2026-02-26T07:17:03.433Z","0.0.4":"2026-02-26T08:29:22.358Z","0.0.5":"2026-02-27T03:39:08.247Z","0.0.6":"2026-02-27T11:02:17.375Z","0.0.7":"2026-02-27T11:10:03.920Z","0.0.8":"2026-03-03T03:37:14.424Z","0.0.9-beta":"2026-04-21T03:57:53.437Z","0.0.9":"2026-05-07T03:54:13.193Z","0.0.10":"2026-05-08T08:24:16.011Z","0.0.12":"2026-05-11T08:45:36.796Z","0.0.15":"2026-05-13T09:49:05.896Z","0.0.16":"2026-05-14T01:28:59.200Z","0.0.17":"2026-05-18T07:25:44.611Z","0.0.18":"2026-05-22T02:23:29.211Z"},"author":{"name":"zhangjiliang"},"homepage":"https://desk.ctyun.cn/html/download/","description":"the agent web sdk to interactive with your computer","maintainers":[{"name":"lemon_cn","email":"lemoncn@163.com"},{"name":"zjlhope","email":"1343590422@qq.com"},{"name":"leinad59","email":"dcui1995@foxmail.com"},{"name":"mansonchor.zzw","email":"mansonchor1987@gmail.com"},{"name":"linhongjack","email":"1562680945@qq.com"}],"readme":"# Desktop Agent SDK\r\n\r\n用于操作天翼云电脑的一套SDK，支持鼠标控制、键盘输入、屏幕截图等操作。\r\n\r\n## 项目简介\r\n\r\n`@ctyun/desktop-agent-sdk` 是天翼云电脑远程操作 SDK，第三方开发者可以通过该 SDK 以编程方式控制远程桌面。支持以下功能：\r\n\r\n- 鼠标移动、点击、拖拽和滚动\r\n- 键盘按键和文本输入\r\n- 屏幕截图\r\n- 获取鼠标位置\r\n\r\n## 环境设置\r\n### 系统要求\r\n* TypeScript/JavaScript  \r\n  Node.js 14及以上版本  \r\n  建议安装在维护期内的LTS版本\r\n* Window版本要求  \r\n  Windows 8.1 或 Windows Server 2012 R2 及以上\r\n* Linux版本要求  \r\n  kernel>=3.10\r\n\r\n## 安装方法\r\n\r\n### npm 安装\r\n\r\n```bash\r\nnpm install @ctyun/desktop-agent-sdk\r\n```\r\n\r\n### yarn 安装\r\n\r\n```bash\r\nyarn add @ctyun/desktop-agent-sdk\r\n```\r\n\r\n### pnpm 安装\r\n\r\n```bash\r\npnpm add @ctyun/desktop-agent-sdk\r\n```\r\n\r\n## 基本使用方法\r\n\r\n### 1、 创建 Client 实例\r\n\r\n首先导入并创建 Client 实例。创建实例时需要提供以下参数：\r\n\r\n- `apiKey` (必需): 控制台上的AccessKey ID\r\n- `apiSecret` (必需): 控制台上的AccessKey Secret\r\n- `desktopCode` (必需): 桌面编码\r\n- `serviceURL` (可选): 服务地址，默认为 `https://desk.ctyun.cn:8816`\r\n\r\n```javascript\r\nimport Client from '@ctyun/desktop-agent-sdk';\r\n\r\nconst client = new Client({\r\n  apiKey: 'your-api-key',\r\n  apiSecret: 'your-api-secret',\r\n  desktopCode: 'your-desktop-code',\r\n  serviceURL: 'https://desk.ctyun.cn:8816' // 可选，使用默认值\r\n});\r\n```\r\n\r\n### 2、 创建会话\r\n\r\n使用 `createSession()` 方法创建会话，会话创建成功后将返回会话对象，包含 sessionId 和操作方法。\r\n\r\n```javascript\r\nconst session = await client.createSession();\r\nconsole.log('会话创建成功，sessionId:', session.sessionId);\r\n```\r\n\r\n### 3、 使用 computer 方法\r\n\r\n创建会话后，可以通过 `session.computer` 对象调用各种计算机控制方法。\r\n\r\n#### 移动鼠标\r\n\r\n```javascript\r\n// 将鼠标移动到指定坐标\r\nawait session.computer.move_mouse({x:500, y:300});\r\n```\r\n\r\n#### 点击鼠标\r\n\r\n```javascript\r\n// 在指定坐标点击鼠标（默认左键、按下并释放）\r\nawait session.computer.click_mouse({x:500, y:300});\r\n\r\n// 点击一下左键\r\nawait session.computer.click_mouse({x:500, y:300, clickMode:'left'});\r\n\r\n// 点击一下右键\r\nawait session.computer.click_mouse({x:500, y:300, clickMode:'right'});\r\n\r\n// 双击一下鼠标\r\nawait session.computer.click_mouse({x:500, y:300, clickMode:'double_left'});\r\n\r\n// 仅按下鼠标左键（不释放）\r\nawait session.computer.click_mouse({x:500, y:300, clickMode:'left', pressMode:true, releaseMode:false});\r\n\r\n// 仅释放鼠标\r\nawait session.computer.click_mouse({x:500, y:300, clickMode:'left', pressMode:false, releaseMode:true});\r\n```\r\n\r\n#### 拖拽鼠标\r\n\r\n```javascript\r\n// 从起始坐标拖拽到目标坐标\r\nawait session.computer.drag_mouse({startX:500, startY:300, endX:800, endY:500});\r\n```\r\n\r\n#### 滚动\r\n\r\n```javascript\r\n// 在指定位置滚动（Direction: 'up' 或 'down'）\r\nawait session.computer.scroll({startX:500, startY:300, direction:'down', amount:3});\r\n```\r\n\r\n#### 按下键盘按键\r\n\r\n```javascript\r\n// 按下键盘按键（如 Enter）\r\nawait session.computer.press_key({key:'Enter'});\r\n```\r\n\r\n#### 输入文本\r\n\r\n```javascript\r\n// 输入文本\r\nawait session.computer.type_text({text:'Hello World'});\r\n```\r\n\r\n#### 屏幕截图\r\n\r\n```javascript\r\n// 截取屏幕\r\nawait session.computer.screen_shot();\r\n```\r\n\r\n#### 获取鼠标位置\r\n\r\n```javascript\r\n// 获取当前鼠标位置\r\nawait session.computer.get_cursor_position();\r\n```\r\n\r\n### 4、 关闭会话\r\n\r\n使用完成后，应该关闭会话以释放资源。\r\n\r\n```javascript\r\nawait session.close();\r\nconsole.log('会话已关闭');\r\n```\r\n\r\n## 完整示例\r\n\r\n```javascript\r\nimport Client from '@ctyun/desktop-agent-sdk';\r\n\r\nasync function main() {\r\n  // 创建 Client 实例\r\n  const client = new Client({\r\n    apiKey: 'your-api-key',\r\n    apiSecret: 'your-api-secret',\r\n    desktopCode: 'your-desktop-code'\r\n  });\r\n\r\n  let session=null;\r\n  try {\r\n    // 创建会话\r\n    session = await client.createSession();\r\n    console.log('会话创建成功:', session.sessionId);\r\n\r\n    // 移动鼠标并点击\r\n    await session.computer.move_mouse({x:500, y:300});\r\n    await session.computer.click_mouse({x:500, y:300});\r\n\r\n    // 输入文本\r\n    await session.computer.type_text({text:'Hello from Desktop Agent SDK!'});\r\n\r\n    // 截图\r\n    await session.computer.screen_shot();\r\n  } catch (error) {\r\n    console.error('操作失败:', error);\r\n  } finally {\r\n    // 关闭会话\r\n    await session.close();\r\n  }\r\n}\r\n\r\nmain();\r\n```\r\n\r\n## API 参考\r\n\r\n### Client 类\r\n\r\n#### 构造函数\r\n\r\n```typescript\r\nnew Client(options: ClientOptions): Client\r\n```\r\n\r\n**ClientOptions 参数说明：**\r\n\r\n| 参数名 | 类型 | 必需 | 说明 |\r\n|--------|------|------|------|\r\n| apiKey | string | 是 | 控制台上的AccessKey ID [打开控制台](https://desk.ctyun.cn/cloudB/) |\r\n| apiSecret | string | 是 | 控制台上的AccessKey Secret |\r\n| desktopCode | string | 是 | 桌面编码，控制台可查看 |\r\n| serviceURL | string | 否 | 服务地址，默认 `https://desk.ctyun.cn:8816` |\r\n\r\n#### 方法\r\n\r\n##### createSession()\r\n\r\n创建会话并返回会话对象。\r\n\r\n```typescript\r\nasync createSession(): Promise<Session>\r\n```\r\n\r\n**返回值：**\r\n\r\n| 属性名 | 类型 | 说明 |\r\n|--------|------|------|\r\n| sessionId | string | 会话唯一标识 |\r\n| computer | ComputerAPI | 计算机控制方法集合 |\r\n| close | Function | 关闭会话方法 |\r\n\r\n### Session 对象\r\n\r\n- #### computer 对象\r\n\r\n#### 返回值说明\r\n对computer类下面的所有方法的调用都是**异步调用**，返回值遵循相同的返回格式：\r\n``` json\r\n{\r\n   \"code\": 0,\r\n   \"data\":null,\r\n   \"msg\":null\r\n}\r\n```\r\n| 参数名 | 类型 | 说明 |\r\n|--------|------|------|\r\n| code | number | 状态码，为`0`代表成功，其他表示失败 |\r\n| data | number | 结果，code为`0`时不为空 |\r\n| msg | number | code不为`0`时记录错误信息 |\r\n\r\n##### move_mouse({x, y})\r\n\r\n移动鼠标到指定坐标。\r\n\r\n| 参数名 | 类型 | 说明 |\r\n|--------|------|------|\r\n| x | number | 目标 X 坐标 |\r\n| y | number | 目标 Y 坐标 |\r\n\r\n##### click_mouse({x, y, clickMode?, pressMode?,releaseMode?})\r\n\r\n在指定位置点击鼠标。\r\n\r\n| 参数名 | 类型 | 必需 | 说明 |\r\n|--------|------|------|------|\r\n| x | number | 是 | X 坐标 |\r\n| y | number | 是 | Y 坐标 |\r\n| clickMode | string | 否 | 点击模式：`'left'`(默认)、`'right'`、`'middle'`、`double_left` |\r\n| pressMode | Boolean | 否 | 鼠标按下状态：`true`保持按下,`false`(默认)不按下 |\r\n| releaseMode | Boolean | 否 | 鼠标松开状态：`true`松开鼠标,`false`(默认)不松开 |\r\n\r\n**提示**\r\n- `pressMode=true`&`releaseMode=true`：鼠标点下又松开\r\n- `pressMode=false`&`releaseMode=false`：鼠标点下又松开\r\n- `pressMode=true`&`r`eleaseMode=false`：鼠标点下不松开\r\n- `pressMode=false`&`releaseMode=true`：鼠标松开\r\n##### drag_mouse({startX, startY, endX, endY})\r\n\r\n拖拽鼠标。\r\n\r\n| 参数名 | 类型 | 说明 |\r\n|--------|------|------|\r\n| startX | number | 起始 X 坐标 |\r\n| startY | number | 起始 Y 坐标 |\r\n| endX | number | 目标 X 坐标 |\r\n| endY | number | 目标 Y 坐标 |\r\n\r\n##### scroll({startX, startY, direction, amount})\r\n\r\n滚动页面。\r\n\r\n| 参数名 | 类型 | 说明 |\r\n|--------|------|------|\r\n| startX | number | 滚动位置 X 坐标 |\r\n| startY | number | 滚动位置 Y 坐标 |\r\n| direction | string | 滚动方向：`'up'` 或 `'down'` |\r\n| amount | number | 滚动量，单位：px |\r\n\r\n##### press_key({key})\r\n\r\n按下键盘按键。\r\n\r\n| 参数名 | 类型 | 说明 |\r\n|--------|------|------|\r\n| key | string | 按键名称，如 `'Enter'`、`'Escape'` 等 |\r\n\r\n##### type_text({text})\r\n\r\n输入文本。\r\n\r\n| 参数名 | 类型 | 说明 |\r\n|--------|------|------|\r\n| text | string | 要输入的文本内容 |\r\n\r\n##### screen_shot()\r\n\r\n截取屏幕。\r\n\r\n##### get_cursor_position()\r\n\r\n获取当前鼠标位置。\r\n\r\n- #### close()\r\n\r\n关闭当前会话。\r\n\r\n**返回值：** 关闭结果\r\n\r\n## FAQ\r\n### 常见错误码\r\n\r\n| 错误码 | 说明 |\r\n|--------|------|\r\n| 52060 | 指定桌面不属于当前用户 |\r\n| 92006 | 桌面不在线 |\r\n| 92100 | 通过 sessionId 找不到 session |\r\n| 92101 | 消息发送失败 |\r\n| 92102 | 消息长度不能超过 2000 字符 |\r\n| 92103 | 找不到消息记录 |\r\n| 92104 | 功能未开放，请联系管理员 |\r\n| 92105 | 功能未开放，请联系管理员 |\r\n## Filesystem API\n\nThe SDK also exposes a separate `session.filesystem` module so callers do not need to mix file actions into `computer`.\n\n```javascript\nconst session = await client.createSession();\n\nawait session.filesystem.create_directory({ path: 'D:/tmp/demo' });\nawait session.filesystem.write_file({ path: 'D:/tmp/demo/a.txt', content: 'hello world' });\nconst readResult = await session.filesystem.read_file({ path: 'D:/tmp/demo/a.txt' });\nconsole.log(readResult.data.content);\n\nconst downloadResult = await session.filesystem.download_file({\n  source: 'C:/ai-user-test/xigua2.zip',\n  destination: 'D:/xigua3.zip'\n});\nconsole.log(downloadResult.data.localPath);\n```\n\nAvailable methods:\n\n- `create_directory({ path })`\n- `read_file({ path, offset?, length? })`\n- `download_file({ source, destination })`\n- `move_file({ source, destination })`\n- `write_file({ path, content, mode? })`\n- `upload_file({ localPath, destination, mode? })`\n- `search_files({ path, pattern, matchMode? })`\n\n### file_url handling\n\n`read_file` and `write_file` hide the internal `file_url` transport from SDK callers:\n\n- When `write_file` content would exceed the `1500` character contract, the SDK uploads the text to the file server automatically and sends a `file_url` request to the backend.\n- When `read_file` comes back as `transport=file_url`, the SDK downloads the text automatically and returns inline `content` to the caller.\n- `upload_file` uploads a local binary file and writes it to the target desktop.\n- `download_file` calls the target desktop to upload a remote binary file, downloads the returned `fileUrl`, verifies `size` and `sha256` when present, and writes it to `destination`.\n\nCallers only pass `content` for `write_file`, and callers only consume `content` for `read_file`.\n\n### Optional fileServer config\n\nIf you need to override the default file service, pass `fileServer` when creating the client:\n\n```javascript\nconst client = new Client({\n  apiKey: 'your-api-key',\n  apiSecret: 'your-api-secret',\n  desktopCode: 'your-desktop-code',\n  fileServer: {\n    baseURL: 'https://filesvryilian.ctyun.cn',\n    uploadPath: '/fileserver/file/upload',\n    type: 'aiusetool',\n    tenantCode: 'aiusetool',\n    tenantSecret: 'your-tenant-secret'\n  }\n});\n```\n","readmeFilename":"README.md"}