{"_id":"@microsoft/bf-lu","_rev":"317-e7d0482f0419ab4749bd2ed75fdddd19","name":"@microsoft/bf-lu","dist-tags":{"rc":"4.15.0","latest":"4.15.0","next":"4.16.0-dev.20231122.4561d55"},"versions":{"0.0.0":{"name":"@microsoft/bf-lu","version":"0.0.0","_id":"@microsoft/bf-lu@0.0.0","maintainers":[{"name":"microsoft","email":"npmjs@microsoft.com"}],"dist":{"shasum":"3e9e7de2b2f56f0f39c106492408e7bf06649bdc","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-0.0.0.tgz","fileCount":1,"integrity":"sha512-otefV5QMe2ArBWGfuJmj2D2kRb5R5o4jweNawFWaoS231QhfK/KFh8U+RSvqZv3pwZgC2VnDA4tOitapQsrDzA==","signatures":[{"sig":"MEQCIBVguXZQiiWYfR+FjCJm2ukgXYe+clRllekaFfOnFen8AiACnbrrp+g8wDeIi/plRqT61XoL4r1wtEi21TW3UsrNLQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":53,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdqMnxCRA9TVsSAnZWagAAw3QP/RUe0O2niU8SsAHpDhdC\nqnUBkTUQ8w3SoeMh/2tZLWRWjNhUN9JjthB569qBbVFkmQccR1JzFDmT2yPN\nxpzqpGnz5mCp+80YqqspH0368VFCMvm/TJywjwUaSeX2J8p/u8sxOvM2Y2h2\nxbX3ztJD9s+fvXE531JssEjq/6OE/xbbsx2ZEoS1dlad6BSviE1JkRgNeM9u\nWhEmzysVTcvQJocE/d1B9TOtMLq8Q+gHk5Sg+M0TnF2bDQcUUYuWt6jgrbS4\nuA3ENT2jY5XryNJ8EkkwKUEjbcNfMlzJzQrRv0eaD2I2C61o6bT79JaxQwaU\nXg2duXBRGzjJzP5rwv5HPpDxRezbm5ApFvMR3SmQKqUskQqe1oBCVTZoT4JD\nzgGbDSwxP8p39GfouzwMfNscrXaceg2cCd8JQ4EKk3BwMQkYMuMvkzuRQFpl\nx8UgCih2Nkc5OtxRF/XkNj2HdIzhLvM1D7x9Gmj0GEWoF5r/3zwLERN+GODD\nzRMEzjiGuItqOQKH1U8clbvXYuz12TWBTeG9sLRgUJ1B6WQGMi6edSpQn8fJ\nVfJ+Et+e7vxkIV+VthDO4egyFNKuQNJxQ+y1s629NBOOA4bWJpJ4rEU3lyye\nqOyi6CuVe24AS9aUuVZ4CXgmNpmlqBjPqbQL2L7lnR3In8ts2cNH9Zcokoi2\nJSms\r\n=bUCQ\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"microsoft","email":"npmjs@microsoft.com"},"_npmVersion":"6.9.0","directories":{},"_nodeVersion":"10.16.3","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/bf-lu_0.0.0_1571342833399_0.985618700062729","host":"s3://npm-registry-packages"}},"4.6.0":{"name":"@microsoft/bf-lu","version":"4.6.0","keywords":["oclif-plugin"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.6.0","maintainers":[{"name":"botframework","email":"botframework@microsoft.com"},{"name":"microsoft","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"ba342757623e37ba324f55fb4d250b0427b36c6f","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.6.0.tgz","fileCount":62,"integrity":"sha512-LDewhS6XmyjKGyAha0mYCjUrA6fNrBitSM0QVgdjsu7OKlokCQt+nbU0vK4BRNeUMwgOwDsNhJLPxJhXufznmQ==","signatures":[{"sig":"MEUCIQC+F7TLFRQtA9GvEcjZ7a5M3aKezSLGnmhzluMrw3JLqgIgZgOR+7eyzvYgoGAwFG3nY7f9hF2qOJTpf9n3b3yrpRA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":559398,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdub+3CRA9TVsSAnZWagAAqOAQAJXUmJRfDJah3ikzDmMC\nmoIou95Idop4sPeJvkbXIt8SOHqyR0k0bD82wnmn8kvLr5cB4/iHjJ7xvAEk\njE5nuQeWCZXuZZJo2DiahWLf560S3+Vj4Zyv8j17oZnWJZrLv6xWUp1voWxO\nfeDlitEf3k5dSPp/ubZoK+EixOrqU/1XApxwINAJxPIjeinzrq1Ob/E9nTaf\nx01NJ1JBvKtGKxciqEiexSvflxsDCFkUliT0sY5e826EF5tfaFLCfsHbO0bm\nnEYEmFbYvpCEz4OtADrCZ3mpEJ56SilkAKtsJRd6V/uSbHxLeo2rVhvrt5me\nmJ68u9gnbhsbwdFV4mX9LkHv8KlMN2YMhXFSWCKkQd8jREZo7mYp2+pl8hM5\n6U31PNRBvihUxbDv/FtDMPRgbmKyqmyS2H9Q0tLLcxAGnCdAJoeqsm5P//KB\nlR0GDE+7vqITN0GhBTXzkY+KubQliVmPGWZaOG2B6CGS5M5yBA721ffMTN96\ncEgXvup40O8WSAWpPc+xhPb3qX4Vho1qjrLgm9z9YpdoyBBZ94yBYpOiulR+\nWfsbmPJg4R725KvEXAHCiI/JW5JL9u9i4hsH6wcnW6m7H9IipQT77UdKAgV7\nQ4gcuZqOwl4By2iOaBhwpj6ZOuX5Tt2Md4doGy8+cLUwBRV6ab066zRtwfqo\nHj10\r\n=tZ7c\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_Botframework-CLI-daily/drop/microsoft-bf-lu-4.6.0.tgz","oclif":{"bin":"bf","commands":"./lib/commands","devPlugins":["@oclif/plugin-help"]},"engines":{"node":">=8.0.0"},"scripts":{"test":"nyc --extension .ts mocha --forbid-only \"test/**/*.test.**\"","prepack":"rm -rf lib && tsc -b && oclif-dev manifest && oclif-dev readme","version":"oclif-dev readme && git add README.md","postpack":"rm -f oclif.manifest.json","posttest":"tslint -p test -t stylish","documentation":"rimraf lib && tsc -b && oclif-dev manifest && oclif-dev readme && rimraf oclif.manifest.json"},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.9.0","description":"@microsoft/bf-lu\r ==================","directories":{},"_nodeVersion":"10.16.3","dependencies":{"chalk":"2.4.1","tslib":"^1.10.0","antlr4":"^4.7.2","lodash":"^4.17.15","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","node-fetch":"^2.1.2","@oclif/config":"~1.13.3","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@microsoft/bf-cli-command":"~4.6.0"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^13.3.0","chai":"^4.2.0","nock":"^10.0.6","mocha":"^5.2.0","globby":"^10.0.1","tslint":"^5.18.0","ts-node":"^8.3.0","typescript":"^3.5.3","@oclif/test":"^1.2.5","@types/chai":"^4.2.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@oclif/tslint":"^3.1.1","@oclif/dev-cli":"^1.22.2","@oclif/plugin-help":"^2.2.1"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.6.0_1572454327306_0.06724110686838336","host":"s3://npm-registry-packages"}},"4.7.0":{"name":"@microsoft/bf-lu","version":"4.7.0","keywords":["oclif-plugin"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.7.0","maintainers":[{"name":"botframework","email":"botframework@microsoft.com"},{"name":"microsoft","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"66ee8698c745d71e20f569ee89950aad9b5690d8","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.7.0.tgz","fileCount":69,"integrity":"sha512-m1w6JMdjMefqQylXUKdPw90J0MCr9EqeSwIg5Xykp22hZKZFHvo9QPDMiJYCRggu6NAz426ixqMyGz3KeJN/9Q==","signatures":[{"sig":"MEQCIAmDu4BEAiTnsJe0yCVI/moV5H+nmsbZBVfqFxtlj8K2AiAanM3a2rQ9HwzzrBasafjzH1LFg397w6z23uPeQE6P/A==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":620502,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd+XfyCRA9TVsSAnZWagAAde8QAJt9fz2um1qyGvFFfRAW\naEh/KnsZvOkXv6tp0keSTTkjnXo7YZ68jxcnLXkCYaBY9sGPcYYo0FaJtAy3\nTKaqS6DlE+q6BfEAxa9F6M03JX6+QIf9dRO/eRgu5W1PFRIwfVDoxj49h3Us\nWlvBLZIacBCWFcvD9kBOJBVgGTpqmnXqZhWEx7xwAmJN3eK4FUWaHqw06tMZ\nVLnfMn2NWE96Ix6M7vPZdKI5MtJvjhU7//HldyoM291Sqce/uYIyuDsKctAR\n6OzEU3W25Lc0nI7UQtZMErE6etxmRbpUKgu3Kqr9F4BuXzqp1XNruFpvrCTX\nt1HlUpGzZNokP9vsgOokYNvNmBTHu+Pp/Fm56J+8r10i4o0S/b3VLTikkE7V\n7UzkMNokvB9ne+0fuK8ArcIcAqetgLH8MGQC8ugc3h0xfpNjq0l29eqP4eNH\nZerSoo8uUAZZ6zU2fX2MVqfqQ+M4SYtiiyoSVdH8C3uZ/vL3JggRTFsCSa9L\n2Fp/TUvP8Xi0rtEG/++9IbFDiu0XqYnlVUNG9lx6Fuokc2HD3DKrTqIyIboI\nbm6u4rQyAA+zX8C7lT+P0Jbsv9JDGx8QHsgejfsvBAzUuImFKT+tzPx4X4Lk\nArZe+s9QlDNb07wHceqatIxb/3iF4h93sUZR+lKpHxsVdY8jV/Exv0NKihN9\nxMoo\r\n=zKiV\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_microsoft.botframework-cli/drop/microsoft-bf-lu-4.7.0.tgz","oclif":{"bin":"bf","commands":"./lib/commands","devPlugins":["@oclif/plugin-help"]},"engines":{"node":">=8.0.0"},"scripts":{"doc":"npm run build && npm run doc:readme && rimraf oclif.manifest.json","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","postpack":"rimraf oclif.manifest.json","posttest":"tslint -p test -t stylish","doc:readme":"oclif-dev manifest && oclif-dev readme","report:coverage":"npm run coverage && nyc report --reporter=text-lcov | coveralls"},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.12.1","description":"@microsoft/bf-lu\r ==================","directories":{},"_nodeVersion":"12.13.1","dependencies":{"uuid":"~3.3.3","chalk":"2.4.1","tslib":"^1.10.0","antlr4":"^4.7.2","lodash":"^4.17.15","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","node-fetch":"^2.1.2","@oclif/config":"~1.13.3","@oclif/errors":"~1.2.2","@oclif/command":"~1.5.19","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@microsoft/bf-cli-command":"4.7.0"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","mocha":"^6.2.2","globby":"^10.0.1","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^8.3.0","typescript":"^3.5.3","@oclif/test":"^1.2.5","@types/chai":"^4.2.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@oclif/tslint":"^3.1.1","@types/lodash":"~4.14.146","@oclif/dev-cli":"^1.22.2","@oclif/plugin-help":"^2.2.1"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.7.0_1576630257644_0.7285213909638681","host":"s3://npm-registry-packages"}},"4.8.0":{"name":"@microsoft/bf-lu","version":"4.8.0","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.8.0","maintainers":[{"name":"botframework","email":"botframework@microsoft.com"},{"name":"microsoft","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"83a260f286836a4b06671a2572009c72bf1283ef","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.8.0.tgz","fileCount":76,"integrity":"sha512-FEWt7TaAC6AcE3SasKVY9PeTlQijnMNfujLn8Rz5/9/ieibQwSgLDcgFzzUO1k4ON/V8sds0I72Y0ey950kziw==","signatures":[{"sig":"MEUCIQC9B6li/aXTJt6AUY5qCrzNsMY8JNVTg9f/DMOkh/jP1AIgdcWkcIfxu4/keByJuqv24M1iP0zOAYPNwiANqGwNquw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":718704,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJecVHuCRA9TVsSAnZWagAA+IgQAINFz5z0XaHacFY8WZnd\ncsstCT3K8gI2F38vgRWmyotdAOeSWmDY5PzWOWXpbRoeJTaTOOB0w9nl28ed\n6w9BGdrNrQyLDB+NTUun3EQmie79lNXV7cNiGHys/oOetTMlBPXbffH78qZ+\nxR74CMH0Cz3865bh/Dk8NTkFAe5jbHtSQhTPpZfTuObY4HjKwuCNpBqPH4n0\nzQ7Eb/GHC3T9pesuuln5Snkg93Txz334LMIFXv6YA5PH+auq9DAw/RLPoTFN\ni7c9d36Q+MIlvdhBAQHl5H2wevqr4Cvp1rTnRqvkqCYwutCX4ZVkBPSRz/E/\n8qFuUT9nfDuWkml+fFSHqE4EvW1ku21S0qwx1UWvlj7PxPZ1pvut23hR9pKB\nrk+xakbB9LcLg3HFfZ2pw9pQlQlDkUd+luLRdp96xW1WCsZFCsw3O4Ethmby\n2jnBFVsl7mTrvU75L12mBOl3rLUmH1IVcou3LXHq8qg6OFqoqB132dNoGa9g\nl4q/S0+/XCgcbBq1NIQHzDW4H/waApRcJhO5UVTCjkjEiYbtxxHDEXMeya9j\nfVthwiZ42RkEIsTiD4ew0AgCJOeVleXJ1solnHOD+dlzr8Hdrf8/uQMj8Z5V\n2YCLWGpKzich/tegLnD0ff3kM+p4Q8I+adLzmelU0x8+10XVCMP3x+TMKGav\nTokI\r\n=UWp/\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_microsoft.botframework-cli/drop/microsoft-bf-lu-4.8.0.tgz","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","postpack":"","posttest":"tslint -p test -t stylish","doc:readme":"","report:coverage":"npm run coverage && nyc report --reporter=text-lcov | coveralls"},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.13.4","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"12.16.1","dependencies":{"chalk":"2.4.1","delay":"^4.3.0","tslib":"^1.10.0","antlr4":"^4.7.2","globby":"^10.0.1","lodash":"^4.17.15","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","node-fetch":"~2.6.0","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","@azure/ms-rest-azure-js":"2.0.1","@azure/cognitiveservices-luis-authoring":"4.0.0-preview.1"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^8.3.0","typescript":"^3.5.3","@oclif/test":"^1.2.5","@types/chai":"^4.2.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@oclif/tslint":"^3.1.1","@types/lodash":"~4.14.146"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.8.0_1584484845854_0.882947765367895","host":"s3://npm-registry-packages"}},"4.9.0":{"name":"@microsoft/bf-lu","version":"4.9.0","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.9.0","maintainers":[{"name":"botframework","email":"botframework@microsoft.com"},{"name":"microsoft","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"abd8711aa8daf9af15b6c54116505021d616a0e8","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.9.0.tgz","fileCount":87,"integrity":"sha512-Yojf0xw6rJANP9Jrv8Pr8oRUpMGQVzAiU0zGIcUXlzwDZIyLXjxp+U0WsVo3OQkOVF5hqaqGHDcAnjC5JxHDMg==","signatures":[{"sig":"MEYCIQDAGDgSvsolfOMcHU7DSp2ZYoZTIv0KRNnB9KG0iwEx5wIhAMkYfN+OOwixkSlABs4NPBdeCoqUrP7Anxu9pYkEAzNJ","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":784876,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeuu07CRA9TVsSAnZWagAA8LcP/jYqJz+uqAWBAeUjCPgl\n26mLOUc+nNfPyPnSz8pyIhuImEfocNXj5+6caJ41BNVzMHNsfudMq+FPePcF\nzY6FyAcZTjwo/ElFlktNAbkLK/z4LF2uPfJGoxeVf1HIwML+nwj5ruvOnZdL\n3ujsOnwOC6E5+k4gNZWRcszwVhGTQJ6IHSR6S/rQpmWdZpyGzg92Hxtg8hCb\ncGrRtDH+6xV3+/+NDYisSyW+I1DgP2TopPQFJwVlICK0SL+FjUQVeQbKj3qs\npClRT1uOSVHWiQHTpgAa3KwaoN8VfM0jSb0WISYnJdQSrUX1iUlbxt9DaG07\n4VUtMGRf+IhCuUzOF6omqn8ENa/aWg4CovEt7b3g/aLI5AZd0CTNRA3tasp2\ntVA/gSfVTbyEN3tPjs9+D6AZx2mFW1U6O6EC3Kox6NP7U0k5rcqt1AjUve+2\nd/MSYPGgU5kikDt/bk2gc1rxU92aJgaZl7TU6f/aF9QDxpUaW3OPL3vkCPhp\n/BuMzKRQFwdO1iHPkQWlnHXzmhWemT4ujOryBjlnY0Fgw0WZRxRN6U/w0xPJ\npj057Ulk/K2/ra+ayGkNh+i01wPBzUrG4GkHcmRB1fdNK5bEpmDljrlERWV1\nMnyyrloOeMyDbbHO1e/DzhAVm6gYN3zBD7Mddx86GHbX8vTRljb5MZ6MoXm4\nVbPw\r\n=DeHa\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_microsoft.botframework-cli/drop/microsoft-bf-lu-4.9.0.tgz","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","postpack":"","posttest":"tslint -p test -t stylish","doc:readme":"","report:coverage":"npm run coverage && nyc report --reporter=text-lcov | coveralls"},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.4","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"12.16.3","dependencies":{"chalk":"2.4.1","delay":"^4.3.0","tslib":"^1.10.0","antlr4":"^4.7.2","globby":"^10.0.1","lodash":"^4.17.15","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","node-fetch":"~2.6.0","@oclif/errors":"~1.2.2","@oclif/command":"~1.5.19","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","@azure/ms-rest-azure-js":"2.0.1","@azure/cognitiveservices-luis-authoring":"4.0.0-preview.1"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^8.3.0","typescript":"^3.5.3","@oclif/test":"^1.2.5","@types/chai":"^4.2.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@oclif/tslint":"^3.1.1","@types/lodash":"~4.14.146"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.9.0_1589308731254_0.5922467195088794","host":"s3://npm-registry-packages"}},"4.9.1":{"name":"@microsoft/bf-lu","version":"4.9.1","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.9.1","maintainers":[{"name":"botframework","email":"botframework@microsoft.com"},{"name":"microsoft","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"06e85e85cbd3fad508473d24e07b8f9d05fa2b11","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.9.1.tgz","fileCount":87,"integrity":"sha512-ge39GhTNRQB4LSuT71txRO+R7VKMAHHF2vDNi8Mkcr+8boDXLGagWl3gUB57SjcQTPCXCe1iVEAirYAgMXNFUA==","signatures":[{"sig":"MEQCIHlK09hBDJO3Pju29/foo1tq3aCykt1tY2TmAKARHo7OAiBokHaHcSuA94MDezUkWIRSbVy3bz2YzXfZDPABL6iO3A==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":796728,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJez/dtCRA9TVsSAnZWagAAnCUQAIamKj27m9ZciPwfsNOw\n9Xpw6TZNw1KzCnmTzWGH+dfLv1/9MHdoXgI091EYUyRIYVuG/iPO7SiAjG/W\nIyyj/3hBdOfXhb5Gzy0vwfq4R/HvLHLER+KNKUvYr8vJxDv+EeaqfmH7Nsnb\nEyW9DD/mCGXZCvNWUrkzVEvEfd+d3IlW3eClK8fJH4xvLYaQ4tbNgOdKFW2P\naV78wlOmYqlslU9lUOeIjlM14vepwbuPw6AgV9HGUwS8f9ADbZ12k09CQF8N\nnQe25UiHasr9oisb4RSp6JXamzSPlvDaRa+ccNiM8dWncdxKEwSwtp9N3Vlu\nbo0zOFGN+wmxuw7LduQjxqCZIT7R/DG1qOxUZTOFF9BBH4AfboZ/3UszuHu3\n7/DYnTzSFHO+dtwB1JrBHuO0pqijEOzRA4t2jwKfWM1gKzyUHFN4Grwnsf3n\nvHZYuTmW/3dM/1MdakQhLbcpuEoLf3dL+1q25LEfrbV0VqX9IJMrsFOCJZl8\nilB0QYZRT8qUSGpO5c41jqyYvAHOAvmKee2pMoMGLEic0BEf9bFbHQMrZc7Z\nib6IjK1IGPtcvvxaoH+rfKL5QouaPlihAqwrj3rqhLIVAaXf3k1dZPCtGK3w\nzIiXzJ1v0ZxhamBQ5TMHtCVaCYtJXIiYweZ4gH5emIX/arJPKXZbTtfyTPUd\ngEqw\r\n=Px9h\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_microsoft.botframework-cli/drop/microsoft-bf-lu-4.9.1.tgz","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","postpack":"","posttest":"tslint -p test -t stylish","doc:readme":"","report:coverage":"npm run coverage && nyc report --reporter=text-lcov | coveralls"},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.4","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"12.16.3","dependencies":{"chalk":"2.4.1","delay":"^4.3.0","tslib":"^1.10.0","antlr4":"^4.7.2","globby":"^10.0.1","lodash":"^4.17.15","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","node-fetch":"~2.6.0","@oclif/errors":"~1.2.2","@oclif/command":"~1.5.19","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","@azure/ms-rest-azure-js":"2.0.1","@azure/cognitiveservices-luis-authoring":"4.0.0-preview.1"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^8.3.0","typescript":"^3.5.3","@oclif/test":"^1.2.5","@types/chai":"^4.2.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@oclif/tslint":"^3.1.1","@types/lodash":"~4.14.146"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.9.1_1590687597252_0.2692653471994608","host":"s3://npm-registry-packages"}},"4.10.0-dev.20200714.6b8b8a9":{"name":"@microsoft/bf-lu","version":"4.10.0-dev.20200714.6b8b8a9","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.10.0-dev.20200714.6b8b8a9","maintainers":[{"name":"botframework","email":"botframework@microsoft.com"},{"name":"microsoft","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"dc99078e9adb75f96a7ec9145b86e377916597a9","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.10.0-dev.20200714.6b8b8a9.tgz","fileCount":88,"integrity":"sha512-2Glw3Ma2clk6LrVUGyA13ExNP04SH/ch/VCCgTRwWRexIA4gu0K4fVYmiuFYiczcXesbY5VACTFEbV6/Pu1yTQ==","signatures":[{"sig":"MEUCIGYelFKZY/atSB3etrELyxGWoMhOL8/Pg486nm/RHAN8AiEAxIgJMHn3NFgR84dbefJUsuUFY5jt6raCamOLD/rN9so=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":814316,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfDiy5CRA9TVsSAnZWagAAgRoP/jgxeNCgsw09iAvpRF56\nSIzLyvmIQNYUT8wVWgN92CjV+LM3539thNLwFiOdD5WHDhbt19y/nvS0oSAa\n+PoIC4QX4TFTvGyXBmjKO44Lblqm3i78dcyz6Ld2lBJeS+iMx/SEXQWipHD9\nUdKekrfPuzlI0MrnwhM+j+CvixyIZfxsj4wvDF9vuX38erUHrEIwW1dkYLFN\nT4VogNnjS7cijphPEFGXbA91OOdU3i8JbgrGhmlcBxZhkueoNJDCWbBvKxqU\nYOYPQoqlWgZhXsW7OzjAjFMB8VjTJLwqbfvyuyLpQP2tvY9pUA3D2G9Vg65w\ndLcWk3AJZ9+9IMFw/VjZVSL7TLbmdSSAF1LH0GSfJKQlN2Rbsggd+9BwCp5w\nva72M5jcBvhGELik7qoGo5XNsZ1qF3QzVWEE9taRg8GX1bsaI/ePzY1QAbWC\nm3jp6rGb1YQmk77W8/PhrDza033mLgrPkIwe4P3veC/Y2+rsqNfSQ3oVR4bt\nSBeGQo/70b/WwLO5MrCUUlRsRvuBPbXIduZUMcCC6db4rfQ/0GAP8VzPNgp6\n/WV9qmsFdP72OnEuYjDFBwQYZeOAUCbA/Aw89kF9t89VHAEMNwObNfd85bT8\nQArP2zQ7tFhF6IdciDBnMPi47rSQNxB9X9NLRqS7aqOynvokg3T0fBbmjEUr\n+Zk4\r\n=iOJg\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.10.0-dev.20200714.6b8b8a9.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n## Parsing lu files\r\nTo parse LU files, you can use the parseFile() method. \r\n\r\n```js\r\nconst ludown = require('@microsoft/bf-lu');\r\nconst luContent1 = `# Greeting\r\n- hi`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nludown.parser.parseFile(luContent1, log, locale)\r\n    .then(function(parsedContent) {\r\n        // Parsed LUIS object\r\n        console.log(JSON.stringify(parsedContent.LUISJsonStructure, 2, null));\r\n        // Parsed QnA content\r\n        console.log(JSON.stringify(parsedContent.qnaJsonStructure, 2, null));\r\n        // Additional files to parse\r\n        console.log(JSON.stringify(parsedContent.additionalFilesToParse, 2, null));\r\n    })\r\n    .catch(function(err) {\r\n        let errObj = new ludown.helperClasses.Exception(err);\r\n        // err is of type ludown.helperClasses.Exception. \r\n        // Possible error codes are available under ludown.helperEnums.errorCodes\r\n        if(errObj.errCode === ludown.helperEnums.errorCodes.INVALID_INPUT) {\r\n            // do something specific to this error code\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    })\r\n```\r\n\r\n## Validating parsed lu files\r\n\r\nYou can use the available validateLUISBlob() function to verify if the parsed LUIS blob is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst ludown = require('@microsoft/bf-lu');\r\nconst luContent = `# Greeting\r\n- hi {userName=bob}\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n    let parsedContent;\r\n    try {\r\n        parsedContent = await ludown.parser.parseFile(luContent, log, locale);\r\n    } catch (err) {\r\n        let errObj = new ludown.helperClasses.Exception(err);\r\n        // err is of type ludown.helperClasses.Exception. \r\n        // Possible error codes are available under ludown.helperEnums.errorCodes\r\n        if(errObj.errCode === ludown.helperEnums.errorCodes.INVALID_INPUT) {\r\n            // do something specific to this error code\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n    // validate the parsed luis content\r\n    ludown.parser.validateLUISBlob(parsedContent.LUISJsonStructure)\r\n        .then(res => res)\r\n        .catch(function(err) {\r\n            let exception = new ludown.helperClasses.Exception(err);\r\n            console.error('Oops, invalid LUIS content!\\n');\r\n            console.error(exception.errCode + ' : ' + exception.text);\r\n        })\r\n}\r\n\r\nparseContent();\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS and QnA maker JSON using constructMdFromLUIS() and constructMdFromQnA() methods. Here's an example code snippet. \r\n\r\n```js\r\nconst ludown = require('@microsoft/bf-lu')\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n    let parsedContent;\r\n    try {\r\n        parsedContent = await ludown.parser.parseFile(luContent, log, locale);\r\n    } catch (err) {\r\n        let errObj = new ludown.helperClasses.Exception(err);\r\n        // err is of type ludown.helperClasses.Exception. \r\n        // Possible error codes are available under ludown.helperEnums.errorCodes\r\n        if(errObj.errCode === ludown.helperEnums.errorCodes.INVALID_INPUT) {\r\n            // do something specific to this error code\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n    \r\n    if(await ludown.parser.validateLUISBlob(parsedContent.LUISJsonStructure)) {\r\n        // reconstruct md content\r\n        ludown.refresh.constructMdFromLUIS(parsedContent.LUISJsonStructure)\r\n        .then(function(result){\r\n            console.log(result);\r\n        })\r\n        .catch(function(err) {\r\n            let exception = new ludown.helperClasses.Exception(err);\r\n            console.error('Oops, invalid LUIS content!\\n');\r\n            console.error(exception.errCode + ' : ' + exception.text);\r\n        })\r\n    }\r\n\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the parseAndTranslate() method. Here's a code snippet.\r\n\r\n```js\r\nconst ludown = require('@microsoft/bf-lu');\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\nludown.translate.parseAndTranslate(luContent, subscriptionKey, targetLanguage, '', translateComments, translateLinkText, log)\r\n    .then(function(result) {\r\n        console.log(result);\r\n    })\r\n    .catch(function(err){\r\n        let exception = new ludown.helperClasses.Exception(err);\r\n        console.error(exception.errCode + ' : ' + exception.text);\r\n    })\r\n\r\n```\r\n\r\n\r\n# V2 API (Preview. Download from [here](https://botbuilder.myget.org/feed/botframework-cli/package/npm/@microsoft/bf-lu))\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","postpack":"","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.5","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"12.18.2","dependencies":{"chalk":"2.4.1","delay":"^4.3.0","tslib":"^1.10.0","antlr4":"^4.7.2","globby":"^10.0.1","lodash":"^4.17.15","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","node-fetch":"~2.6.0","@oclif/errors":"~1.2.2","@oclif/command":"~1.5.19","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","@azure/ms-rest-azure-js":"2.0.1","@azure/cognitiveservices-luis-authoring":"4.0.0-preview.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^8.3.0","typescript":"^3.5.3","@oclif/test":"^1.2.5","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@oclif/tslint":"^3.1.1","@types/lodash":"~4.14.146"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.10.0-dev.20200714.6b8b8a9_1594764473120_0.9221308779309865","host":"s3://npm-registry-packages"}},"4.10.0-dev.20200715.547c305":{"name":"@microsoft/bf-lu","version":"4.10.0-dev.20200715.547c305","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.10.0-dev.20200715.547c305","maintainers":[{"name":"botframework","email":"botframework@microsoft.com"},{"name":"microsoft","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"095f30e82912d3690f7218f667112e6985b4b21f","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.10.0-dev.20200715.547c305.tgz","fileCount":88,"integrity":"sha512-BjhmjZi5/lxKlHKtxJQGGFB5Zk2CMl3+OnqEydtOSVqB8MduidlubKGq9wwiWPS7vtGGqWW+9SvnPJ5z7q1yOA==","signatures":[{"sig":"MEUCIQCyicb9FmoTMDMJUAooX297hGN5mPLNxBNHzz8TDHdTugIgD9epqvOf0kAg1Rr7xdPWhUR7qhuYx4rMdVIwU9N2Iuk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":814316,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfDq3qCRA9TVsSAnZWagAAp0UQAJAQt0uAWNkRDK1Md//y\nCrtl4gcCoCqosIdZ8971R0GYMYBaNmrqooAwAy3aACfqPyGEMKb7zFMBnFb0\n60ZzQ6i5mzgCy4F9ZUOy/jj9nA6pQ5RnDalivKP51sO/6sIE/bq4tmtI/JWp\n7kgKqxQdb7+QsIolQ6vIu0T6LwTmwnoI0tAXgeU2pKO4pTx/QhFX2pt0OjJC\nrgCCTh6EaZDmES/MoNvEepI30fNaqJxl3Ss6tBlsiM26j+uj6/uWS4lV/LVT\nDPGcBpdrlozR4MIxLmJlJP5Sly+ul3V9DFlc9fNh+kND/5ffqYiw7mKzUKpV\nvRr3rfQUNYFb+8pKjSlECTfIuNbj9n9QCvMf4XLfmVsZBM5qaqhTgi2uoeJU\nZTVRQTqVr02s7ENxiRlQeBH5qKxpCUDsEaInk25x0VPCmVczADdn2AOF8GWq\nCaxCEKD04vvNPeBc+6KUvzi9kUCLBKS77fnqLM1nbWxaQkN5G2kpIF/6QSjG\nZIOMqufhccITtayd+muY86wLAZXs2dAnse+Til6U11LXsXmQ7kac/A4WvyTF\n7ZVdugT1G4IEdZ5f2M/0L8pdg2JodOvOGl45NdQskN8mWtv2F1KgXJ57wa7R\nYVHQoaJHSkUbx9/KefEQAUvfkp4vjyflWNpDOwx5wFaIBdV2uiq1phnn0qcN\nlFgV\r\n=TdO5\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.10.0-dev.20200715.547c305.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n## Parsing lu files\r\nTo parse LU files, you can use the parseFile() method. \r\n\r\n```js\r\nconst ludown = require('@microsoft/bf-lu');\r\nconst luContent1 = `# Greeting\r\n- hi`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nludown.parser.parseFile(luContent1, log, locale)\r\n    .then(function(parsedContent) {\r\n        // Parsed LUIS object\r\n        console.log(JSON.stringify(parsedContent.LUISJsonStructure, 2, null));\r\n        // Parsed QnA content\r\n        console.log(JSON.stringify(parsedContent.qnaJsonStructure, 2, null));\r\n        // Additional files to parse\r\n        console.log(JSON.stringify(parsedContent.additionalFilesToParse, 2, null));\r\n    })\r\n    .catch(function(err) {\r\n        let errObj = new ludown.helperClasses.Exception(err);\r\n        // err is of type ludown.helperClasses.Exception. \r\n        // Possible error codes are available under ludown.helperEnums.errorCodes\r\n        if(errObj.errCode === ludown.helperEnums.errorCodes.INVALID_INPUT) {\r\n            // do something specific to this error code\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    })\r\n```\r\n\r\n## Validating parsed lu files\r\n\r\nYou can use the available validateLUISBlob() function to verify if the parsed LUIS blob is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst ludown = require('@microsoft/bf-lu');\r\nconst luContent = `# Greeting\r\n- hi {userName=bob}\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n    let parsedContent;\r\n    try {\r\n        parsedContent = await ludown.parser.parseFile(luContent, log, locale);\r\n    } catch (err) {\r\n        let errObj = new ludown.helperClasses.Exception(err);\r\n        // err is of type ludown.helperClasses.Exception. \r\n        // Possible error codes are available under ludown.helperEnums.errorCodes\r\n        if(errObj.errCode === ludown.helperEnums.errorCodes.INVALID_INPUT) {\r\n            // do something specific to this error code\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n    // validate the parsed luis content\r\n    ludown.parser.validateLUISBlob(parsedContent.LUISJsonStructure)\r\n        .then(res => res)\r\n        .catch(function(err) {\r\n            let exception = new ludown.helperClasses.Exception(err);\r\n            console.error('Oops, invalid LUIS content!\\n');\r\n            console.error(exception.errCode + ' : ' + exception.text);\r\n        })\r\n}\r\n\r\nparseContent();\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS and QnA maker JSON using constructMdFromLUIS() and constructMdFromQnA() methods. Here's an example code snippet. \r\n\r\n```js\r\nconst ludown = require('@microsoft/bf-lu')\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n    let parsedContent;\r\n    try {\r\n        parsedContent = await ludown.parser.parseFile(luContent, log, locale);\r\n    } catch (err) {\r\n        let errObj = new ludown.helperClasses.Exception(err);\r\n        // err is of type ludown.helperClasses.Exception. \r\n        // Possible error codes are available under ludown.helperEnums.errorCodes\r\n        if(errObj.errCode === ludown.helperEnums.errorCodes.INVALID_INPUT) {\r\n            // do something specific to this error code\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n    \r\n    if(await ludown.parser.validateLUISBlob(parsedContent.LUISJsonStructure)) {\r\n        // reconstruct md content\r\n        ludown.refresh.constructMdFromLUIS(parsedContent.LUISJsonStructure)\r\n        .then(function(result){\r\n            console.log(result);\r\n        })\r\n        .catch(function(err) {\r\n            let exception = new ludown.helperClasses.Exception(err);\r\n            console.error('Oops, invalid LUIS content!\\n');\r\n            console.error(exception.errCode + ' : ' + exception.text);\r\n        })\r\n    }\r\n\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the parseAndTranslate() method. Here's a code snippet.\r\n\r\n```js\r\nconst ludown = require('@microsoft/bf-lu');\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\nludown.translate.parseAndTranslate(luContent, subscriptionKey, targetLanguage, '', translateComments, translateLinkText, log)\r\n    .then(function(result) {\r\n        console.log(result);\r\n    })\r\n    .catch(function(err){\r\n        let exception = new ludown.helperClasses.Exception(err);\r\n        console.error(exception.errCode + ' : ' + exception.text);\r\n    })\r\n\r\n```\r\n\r\n\r\n# V2 API (Preview. Download from [here](https://botbuilder.myget.org/feed/botframework-cli/package/npm/@microsoft/bf-lu))\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","postpack":"","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.5","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"12.18.2","dependencies":{"chalk":"2.4.1","delay":"^4.3.0","tslib":"^1.10.0","antlr4":"^4.7.2","globby":"^10.0.1","lodash":"^4.17.15","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","node-fetch":"~2.6.0","@oclif/errors":"~1.2.2","@oclif/command":"~1.5.19","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","@azure/ms-rest-azure-js":"2.0.1","@azure/cognitiveservices-luis-authoring":"4.0.0-preview.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^8.3.0","typescript":"^3.5.3","@oclif/test":"^1.2.5","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@oclif/tslint":"^3.1.1","@types/lodash":"~4.14.146"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.10.0-dev.20200715.547c305_1594797546184_0.3593289470553678","host":"s3://npm-registry-packages"}},"4.10.0-dev.20200716.d3cbcf0":{"name":"@microsoft/bf-lu","version":"4.10.0-dev.20200716.d3cbcf0","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.10.0-dev.20200716.d3cbcf0","maintainers":[{"name":"botframework","email":"botframework@microsoft.com"},{"name":"microsoft","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"63a3fe56f8e55413ec899a14b7b98ad5c8990e06","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.10.0-dev.20200716.d3cbcf0.tgz","fileCount":88,"integrity":"sha512-vLsR3SdPGlAST0aR4dJFkD2w8zYrj8bLFaiEDt+k+BXXnSPtsCmYdjFeMFKhchbOFAV0/1+MDQuwN5BclQpVeA==","signatures":[{"sig":"MEQCIA5xRWiRsFLtzKQgTY3/P+BODwAEMxQ9zjPf2/d+RHeWAiAAym22sp8xZ+c6i8i0xBGOFyPs9A6/VBBHe9gn8gCnRg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":814413,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfD/+BCRA9TVsSAnZWagAAqsEP/00pJLCWzoShIM//5XLw\nfToHaa4XHks01nC5dwFZ12DZAyeiNbW7vdHHOqpZTd8ZoBHs84/uYh49zXgw\negNC5RUdJPH9CST8JDUdOjS830uFkyZpC06Q5wDQ1cOUlldAAH9HJPEXfJz0\nnT+JllzedzYUYuO1HMxO0SbvBHk2vV5mNmsssSIvOsUGJCATZ7NTEdGhh0EQ\nnvBGqO+BB9JlKXA26KDjDnkV+DLV/IW4s7rzqUFTXuz+zA13wFmmK66WshYE\nlPf3CsJkbjOjvoGrwB6ycUrRHck9d4G1U+EZ+Zqxho1dATuEfa1cNWZ6Qari\nfhO1Uz+oTf2Go4IW8UOjJrreBNlKrP8TePd/EJzM3rAIrwqwLH3GKVM8BCY9\n2VDmowbBgR4aZKI1GQVnGqSZ6hEPFPctlhVmXovMbYvJS3KdOp8vaS5bIlRT\nXEotAy/cjw93rTaIftwmVsRo5RqZGW8Q1n/A4VwSZfdZ5hbmMRL1LSC8rBI4\nfLEcz+4H3oaDAtssO2Ks/GhC2SNEDtWmjF3MNuKAcoLdS8/xWE7J1TEUwSOY\nexlmr6zsoZB8zrF3pnAKGDiXXPv5bbocTSzhdgEZCkLC7/FLiwWrlzRxxlo7\nAeFW+COB8WD1ae6nlZkGLTuVI7o1kg8KnFP9rbTLZXSINC65fmYWP8sZmEcF\nHV78\r\n=ZJkL\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.10.0-dev.20200716.d3cbcf0.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n## Parsing lu files\r\nTo parse LU files, you can use the parseFile() method. \r\n\r\n```js\r\nconst ludown = require('@microsoft/bf-lu');\r\nconst luContent1 = `# Greeting\r\n- hi`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nludown.parser.parseFile(luContent1, log, locale)\r\n    .then(function(parsedContent) {\r\n        // Parsed LUIS object\r\n        console.log(JSON.stringify(parsedContent.LUISJsonStructure, 2, null));\r\n        // Parsed QnA content\r\n        console.log(JSON.stringify(parsedContent.qnaJsonStructure, 2, null));\r\n        // Additional files to parse\r\n        console.log(JSON.stringify(parsedContent.additionalFilesToParse, 2, null));\r\n    })\r\n    .catch(function(err) {\r\n        let errObj = new ludown.helperClasses.Exception(err);\r\n        // err is of type ludown.helperClasses.Exception. \r\n        // Possible error codes are available under ludown.helperEnums.errorCodes\r\n        if(errObj.errCode === ludown.helperEnums.errorCodes.INVALID_INPUT) {\r\n            // do something specific to this error code\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    })\r\n```\r\n\r\n## Validating parsed lu files\r\n\r\nYou can use the available validateLUISBlob() function to verify if the parsed LUIS blob is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst ludown = require('@microsoft/bf-lu');\r\nconst luContent = `# Greeting\r\n- hi {userName=bob}\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n    let parsedContent;\r\n    try {\r\n        parsedContent = await ludown.parser.parseFile(luContent, log, locale);\r\n    } catch (err) {\r\n        let errObj = new ludown.helperClasses.Exception(err);\r\n        // err is of type ludown.helperClasses.Exception. \r\n        // Possible error codes are available under ludown.helperEnums.errorCodes\r\n        if(errObj.errCode === ludown.helperEnums.errorCodes.INVALID_INPUT) {\r\n            // do something specific to this error code\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n    // validate the parsed luis content\r\n    ludown.parser.validateLUISBlob(parsedContent.LUISJsonStructure)\r\n        .then(res => res)\r\n        .catch(function(err) {\r\n            let exception = new ludown.helperClasses.Exception(err);\r\n            console.error('Oops, invalid LUIS content!\\n');\r\n            console.error(exception.errCode + ' : ' + exception.text);\r\n        })\r\n}\r\n\r\nparseContent();\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS and QnA maker JSON using constructMdFromLUIS() and constructMdFromQnA() methods. Here's an example code snippet. \r\n\r\n```js\r\nconst ludown = require('@microsoft/bf-lu')\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n    let parsedContent;\r\n    try {\r\n        parsedContent = await ludown.parser.parseFile(luContent, log, locale);\r\n    } catch (err) {\r\n        let errObj = new ludown.helperClasses.Exception(err);\r\n        // err is of type ludown.helperClasses.Exception. \r\n        // Possible error codes are available under ludown.helperEnums.errorCodes\r\n        if(errObj.errCode === ludown.helperEnums.errorCodes.INVALID_INPUT) {\r\n            // do something specific to this error code\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n    \r\n    if(await ludown.parser.validateLUISBlob(parsedContent.LUISJsonStructure)) {\r\n        // reconstruct md content\r\n        ludown.refresh.constructMdFromLUIS(parsedContent.LUISJsonStructure)\r\n        .then(function(result){\r\n            console.log(result);\r\n        })\r\n        .catch(function(err) {\r\n            let exception = new ludown.helperClasses.Exception(err);\r\n            console.error('Oops, invalid LUIS content!\\n');\r\n            console.error(exception.errCode + ' : ' + exception.text);\r\n        })\r\n    }\r\n\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the parseAndTranslate() method. Here's a code snippet.\r\n\r\n```js\r\nconst ludown = require('@microsoft/bf-lu');\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\nludown.translate.parseAndTranslate(luContent, subscriptionKey, targetLanguage, '', translateComments, translateLinkText, log)\r\n    .then(function(result) {\r\n        console.log(result);\r\n    })\r\n    .catch(function(err){\r\n        let exception = new ludown.helperClasses.Exception(err);\r\n        console.error(exception.errCode + ' : ' + exception.text);\r\n    })\r\n\r\n```\r\n\r\n\r\n# V2 API (Preview. Download from [here](https://botbuilder.myget.org/feed/botframework-cli/package/npm/@microsoft/bf-lu))\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","postpack":"","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.5","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"12.18.2","dependencies":{"chalk":"2.4.1","delay":"^4.3.0","tslib":"^1.10.0","antlr4":"^4.7.2","globby":"^10.0.1","lodash":"^4.17.15","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","node-fetch":"~2.6.0","@oclif/errors":"~1.2.2","@oclif/command":"~1.5.19","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","@azure/ms-rest-azure-js":"2.0.1","@azure/cognitiveservices-luis-authoring":"4.0.0-preview.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^8.3.0","typescript":"^3.5.3","@oclif/test":"^1.2.5","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@oclif/tslint":"^3.1.1","@types/lodash":"~4.14.146"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.10.0-dev.20200716.d3cbcf0_1594883968830_0.48394461203121897","host":"s3://npm-registry-packages"}},"4.10.0-dev.20200717.fbe453f":{"name":"@microsoft/bf-lu","version":"4.10.0-dev.20200717.fbe453f","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.10.0-dev.20200717.fbe453f","maintainers":[{"name":"botframework","email":"botframework@microsoft.com"},{"name":"microsoft","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"1002cf7b86ea921256e55f790c1a50c8bb479dcc","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.10.0-dev.20200717.fbe453f.tgz","fileCount":88,"integrity":"sha512-/DungF2vJffztrbykUWhssR49sbhh3jn0E8vVtBchK4g1A3UJqbHsq7AcBW+EjGlSw8FRDc1BM18Fd/16rnqMA==","signatures":[{"sig":"MEQCIH80uO/uFWsWLBVB9lEbqej40F65hBAlwxRh4Ss/IZWKAiBPHn+tXOaFN6iSk7nPIxN0kNMf57lkAIpSngoKseYmOw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":814673,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfEVFzCRA9TVsSAnZWagAA4I0P+wU8XYrrZVIWfTwcLyKd\nxfexLznhnKrCdt61wqm1l9ovKHCzZCR0GiAxiSFiJ285qXoLGqeXiRSZ7GY6\n/SJ1yilAE2q0puY3KkbeqpAFyKfurIngaKOboLROCHK4REa0TzYc045E7rML\nWElAXnnSa7DTjbUngGt5DR8SJQyGa1iz0phyWlIxVXWyPa5260vrFOSbTcj0\nIwZVFOm69DTDVdMTY3RB+ATe9aSk2VR2fBFXzyGkdo50EXBSnqtTFqikX/9p\n+sEfwAcwvsmMaGp/Hy32gAewaSdTWttOP35DWhCsbgYkBn63lHAkC4n/UF58\nRdP3MmAr9Zccn1peM/3wC+yIgNShEQKLGaU4WVMglmRaZRezB5T7QervBIto\ndmDuciWjr1vXIIrPswroXFMBvHA4fD8I7xUHCN3FAw84gq0d1RaFSCUMVj11\nlbi2dl/Ovq5o6R/X2GsGc1D/lscKJuXC5I9cMYWjKhEYHVOdlk6MQf583vH1\nQ9w9w2LRc/qiCR+cz5wzTVF9LtMGq97cmiIymES8Hji4Dk0esQzDimkDl6xZ\nnXY5MkOTQgqlhjGhsQ+0T6uncvz3wG458qDukjx0eiouTOqwpQZK0n4KE3mN\nTH/APt2a0QVUdFmudhjHuN/X0tn3HBBul7CatHDp/9jLoz8rvcoVLa/zJSO1\nF6mw\r\n=4HO7\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.10.0-dev.20200717.fbe453f.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n## Parsing lu files\r\nTo parse LU files, you can use the parseFile() method. \r\n\r\n```js\r\nconst ludown = require('@microsoft/bf-lu');\r\nconst luContent1 = `# Greeting\r\n- hi`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nludown.parser.parseFile(luContent1, log, locale)\r\n    .then(function(parsedContent) {\r\n        // Parsed LUIS object\r\n        console.log(JSON.stringify(parsedContent.LUISJsonStructure, 2, null));\r\n        // Parsed QnA content\r\n        console.log(JSON.stringify(parsedContent.qnaJsonStructure, 2, null));\r\n        // Additional files to parse\r\n        console.log(JSON.stringify(parsedContent.additionalFilesToParse, 2, null));\r\n    })\r\n    .catch(function(err) {\r\n        let errObj = new ludown.helperClasses.Exception(err);\r\n        // err is of type ludown.helperClasses.Exception. \r\n        // Possible error codes are available under ludown.helperEnums.errorCodes\r\n        if(errObj.errCode === ludown.helperEnums.errorCodes.INVALID_INPUT) {\r\n            // do something specific to this error code\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    })\r\n```\r\n\r\n## Validating parsed lu files\r\n\r\nYou can use the available validateLUISBlob() function to verify if the parsed LUIS blob is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst ludown = require('@microsoft/bf-lu');\r\nconst luContent = `# Greeting\r\n- hi {userName=bob}\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n    let parsedContent;\r\n    try {\r\n        parsedContent = await ludown.parser.parseFile(luContent, log, locale);\r\n    } catch (err) {\r\n        let errObj = new ludown.helperClasses.Exception(err);\r\n        // err is of type ludown.helperClasses.Exception. \r\n        // Possible error codes are available under ludown.helperEnums.errorCodes\r\n        if(errObj.errCode === ludown.helperEnums.errorCodes.INVALID_INPUT) {\r\n            // do something specific to this error code\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n    // validate the parsed luis content\r\n    ludown.parser.validateLUISBlob(parsedContent.LUISJsonStructure)\r\n        .then(res => res)\r\n        .catch(function(err) {\r\n            let exception = new ludown.helperClasses.Exception(err);\r\n            console.error('Oops, invalid LUIS content!\\n');\r\n            console.error(exception.errCode + ' : ' + exception.text);\r\n        })\r\n}\r\n\r\nparseContent();\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS and QnA maker JSON using constructMdFromLUIS() and constructMdFromQnA() methods. Here's an example code snippet. \r\n\r\n```js\r\nconst ludown = require('@microsoft/bf-lu')\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n    let parsedContent;\r\n    try {\r\n        parsedContent = await ludown.parser.parseFile(luContent, log, locale);\r\n    } catch (err) {\r\n        let errObj = new ludown.helperClasses.Exception(err);\r\n        // err is of type ludown.helperClasses.Exception. \r\n        // Possible error codes are available under ludown.helperEnums.errorCodes\r\n        if(errObj.errCode === ludown.helperEnums.errorCodes.INVALID_INPUT) {\r\n            // do something specific to this error code\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n    \r\n    if(await ludown.parser.validateLUISBlob(parsedContent.LUISJsonStructure)) {\r\n        // reconstruct md content\r\n        ludown.refresh.constructMdFromLUIS(parsedContent.LUISJsonStructure)\r\n        .then(function(result){\r\n            console.log(result);\r\n        })\r\n        .catch(function(err) {\r\n            let exception = new ludown.helperClasses.Exception(err);\r\n            console.error('Oops, invalid LUIS content!\\n');\r\n            console.error(exception.errCode + ' : ' + exception.text);\r\n        })\r\n    }\r\n\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the parseAndTranslate() method. Here's a code snippet.\r\n\r\n```js\r\nconst ludown = require('@microsoft/bf-lu');\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\nludown.translate.parseAndTranslate(luContent, subscriptionKey, targetLanguage, '', translateComments, translateLinkText, log)\r\n    .then(function(result) {\r\n        console.log(result);\r\n    })\r\n    .catch(function(err){\r\n        let exception = new ludown.helperClasses.Exception(err);\r\n        console.error(exception.errCode + ' : ' + exception.text);\r\n    })\r\n\r\n```\r\n\r\n\r\n# V2 API (Preview. Download from [here](https://botbuilder.myget.org/feed/botframework-cli/package/npm/@microsoft/bf-lu))\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","postpack":"","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.5","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"12.18.2","dependencies":{"chalk":"2.4.1","delay":"^4.3.0","tslib":"^1.10.0","antlr4":"^4.7.2","globby":"^10.0.1","lodash":"^4.17.15","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","node-fetch":"~2.6.0","@oclif/errors":"~1.2.2","@oclif/command":"~1.5.19","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","@azure/ms-rest-azure-js":"2.0.1","@azure/cognitiveservices-luis-authoring":"4.0.0-preview.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^8.3.0","typescript":"^3.5.3","@oclif/test":"^1.2.5","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@oclif/tslint":"^3.1.1","@types/lodash":"~4.14.146"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.10.0-dev.20200717.fbe453f_1594970482779_0.9935192325082176","host":"s3://npm-registry-packages"}},"4.10.0-dev.20200718.6bd5cf5":{"name":"@microsoft/bf-lu","version":"4.10.0-dev.20200718.6bd5cf5","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.10.0-dev.20200718.6bd5cf5","maintainers":[{"name":"botframework","email":"botframework@microsoft.com"},{"name":"microsoft","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"5d894cce6db6fad9243fa6e6325c3926b298a66f","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.10.0-dev.20200718.6bd5cf5.tgz","fileCount":88,"integrity":"sha512-r/cRO1pDkVHyGEcsGcQJy2QLvxFTrOUnj6iqqzz5yMDzvpjPit6Qi3Hzo7lyTcGWc/oRsWVOVRM2tm83+T+zRw==","signatures":[{"sig":"MEQCIGKnuJ4jjcVNXcx3LQtxasvtl1PTNPi4pEBHOj2Gzt3rAiAY/CTu+iO1NC1Mps5eap2TiZ4UH691n8rlTpTrphHxhw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":814673,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfEqJ+CRA9TVsSAnZWagAA1zcP/jCqd14GZhEO1yr8nogo\nX5tTGL/z25UMgnQo3cyXJI6dz8mY5x00xibiS25r23eyv0RIjVs1YS9rbiSO\n4IEoHR1GgvchkUTbVGJ3Sq5n2mlqCiBev1mAMaVbPzKvPpHQ+NAMbCRkeZ0C\nisWPLoCQotoglOQXPt3OrVhR3Y+NXZdC32be5XUXDzTTWz4dcKDXgQkf4sNo\nqTNCKw/4gQmLRRAxUeCCOqCBx0gUozPwDUPcHSlzO6atAyizMcq6B/lXIchV\n2yo66zlySGtvo+jWEVPHym/H1Kg7AuhoxgeUupuDkIzDJJmfuLogsFSgBPNU\n+/CPs7Tme52RGhLC2N55RX96oBCz1OIsSapKPDqzBchZj4JkeSy0RG0xEMJs\n965YHX6F41EihcflZOVn/AZeG/AzTJY64rjOvD3Lico77N/HyT9meMMV6vrh\n1iix7PyhrYm1faGebvi90E7zK9vnQ9RwcfQ9f5WxDtyOFjb5OPDrDJTygM4o\nCTEvOmb9+3ZrtDK7ZIEAiS0WFPD+RgX77VJg/L69xI3RwVS3Z7J1XUnCnxRO\npnOk1ASryEokBL/BVyEKLMOyW2SH1KML0n1fsx3OivxBksQc2AwDNO8400UV\nppqmFp0NRCGIWIiW22uEITZ/ZEVagt8HK7HPJGlNK05HhnZXWjj2I8lxulnx\nKGea\r\n=c5Tp\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.10.0-dev.20200718.6bd5cf5.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n## Parsing lu files\r\nTo parse LU files, you can use the parseFile() method. \r\n\r\n```js\r\nconst ludown = require('@microsoft/bf-lu');\r\nconst luContent1 = `# Greeting\r\n- hi`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nludown.parser.parseFile(luContent1, log, locale)\r\n    .then(function(parsedContent) {\r\n        // Parsed LUIS object\r\n        console.log(JSON.stringify(parsedContent.LUISJsonStructure, 2, null));\r\n        // Parsed QnA content\r\n        console.log(JSON.stringify(parsedContent.qnaJsonStructure, 2, null));\r\n        // Additional files to parse\r\n        console.log(JSON.stringify(parsedContent.additionalFilesToParse, 2, null));\r\n    })\r\n    .catch(function(err) {\r\n        let errObj = new ludown.helperClasses.Exception(err);\r\n        // err is of type ludown.helperClasses.Exception. \r\n        // Possible error codes are available under ludown.helperEnums.errorCodes\r\n        if(errObj.errCode === ludown.helperEnums.errorCodes.INVALID_INPUT) {\r\n            // do something specific to this error code\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    })\r\n```\r\n\r\n## Validating parsed lu files\r\n\r\nYou can use the available validateLUISBlob() function to verify if the parsed LUIS blob is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst ludown = require('@microsoft/bf-lu');\r\nconst luContent = `# Greeting\r\n- hi {userName=bob}\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n    let parsedContent;\r\n    try {\r\n        parsedContent = await ludown.parser.parseFile(luContent, log, locale);\r\n    } catch (err) {\r\n        let errObj = new ludown.helperClasses.Exception(err);\r\n        // err is of type ludown.helperClasses.Exception. \r\n        // Possible error codes are available under ludown.helperEnums.errorCodes\r\n        if(errObj.errCode === ludown.helperEnums.errorCodes.INVALID_INPUT) {\r\n            // do something specific to this error code\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n    // validate the parsed luis content\r\n    ludown.parser.validateLUISBlob(parsedContent.LUISJsonStructure)\r\n        .then(res => res)\r\n        .catch(function(err) {\r\n            let exception = new ludown.helperClasses.Exception(err);\r\n            console.error('Oops, invalid LUIS content!\\n');\r\n            console.error(exception.errCode + ' : ' + exception.text);\r\n        })\r\n}\r\n\r\nparseContent();\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS and QnA maker JSON using constructMdFromLUIS() and constructMdFromQnA() methods. Here's an example code snippet. \r\n\r\n```js\r\nconst ludown = require('@microsoft/bf-lu')\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n    let parsedContent;\r\n    try {\r\n        parsedContent = await ludown.parser.parseFile(luContent, log, locale);\r\n    } catch (err) {\r\n        let errObj = new ludown.helperClasses.Exception(err);\r\n        // err is of type ludown.helperClasses.Exception. \r\n        // Possible error codes are available under ludown.helperEnums.errorCodes\r\n        if(errObj.errCode === ludown.helperEnums.errorCodes.INVALID_INPUT) {\r\n            // do something specific to this error code\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n    \r\n    if(await ludown.parser.validateLUISBlob(parsedContent.LUISJsonStructure)) {\r\n        // reconstruct md content\r\n        ludown.refresh.constructMdFromLUIS(parsedContent.LUISJsonStructure)\r\n        .then(function(result){\r\n            console.log(result);\r\n        })\r\n        .catch(function(err) {\r\n            let exception = new ludown.helperClasses.Exception(err);\r\n            console.error('Oops, invalid LUIS content!\\n');\r\n            console.error(exception.errCode + ' : ' + exception.text);\r\n        })\r\n    }\r\n\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the parseAndTranslate() method. Here's a code snippet.\r\n\r\n```js\r\nconst ludown = require('@microsoft/bf-lu');\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\nludown.translate.parseAndTranslate(luContent, subscriptionKey, targetLanguage, '', translateComments, translateLinkText, log)\r\n    .then(function(result) {\r\n        console.log(result);\r\n    })\r\n    .catch(function(err){\r\n        let exception = new ludown.helperClasses.Exception(err);\r\n        console.error(exception.errCode + ' : ' + exception.text);\r\n    })\r\n\r\n```\r\n\r\n\r\n# V2 API (Preview. Download from [here](https://botbuilder.myget.org/feed/botframework-cli/package/npm/@microsoft/bf-lu))\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","postpack":"","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.5","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"12.18.2","dependencies":{"chalk":"2.4.1","delay":"^4.3.0","tslib":"^1.10.0","antlr4":"^4.7.2","globby":"^10.0.1","lodash":"^4.17.15","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","node-fetch":"~2.6.0","@oclif/errors":"~1.2.2","@oclif/command":"~1.5.19","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","@azure/ms-rest-azure-js":"2.0.1","@azure/cognitiveservices-luis-authoring":"4.0.0-preview.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^8.3.0","typescript":"^3.5.3","@oclif/test":"^1.2.5","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@oclif/tslint":"^3.1.1","@types/lodash":"~4.14.146"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.10.0-dev.20200718.6bd5cf5_1595056766165_0.8747282745478615","host":"s3://npm-registry-packages"}},"4.10.0-dev.20200719.7816875":{"name":"@microsoft/bf-lu","version":"4.10.0-dev.20200719.7816875","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.10.0-dev.20200719.7816875","maintainers":[{"name":"botframework","email":"botframework@microsoft.com"},{"name":"microsoft","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"20c72e9839f699f9ce806b2771f030d98fc2c507","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.10.0-dev.20200719.7816875.tgz","fileCount":89,"integrity":"sha512-tXkP3Di1/kqpuy8GYa5KQy4lXNZFLaedOkJ7jnD9SQy+mgig+4aTQYQ0k+7uNf+TN9a8/3FYYWaLx+94TK6EXA==","signatures":[{"sig":"MEUCIQD6rQZdewYza5dRw8whCWL6tIQA4MAn0JoHnWCoEPZdGgIgKFudEPUO7WfTgOJ58t0y+VF2d0F6J5aq+IerSl9wwKM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":826980,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfE/PoCRA9TVsSAnZWagAAgKkQAIY5yINrE/kLretO/gXR\nXB0Tu4r4zD+alOdyTH/7JIT1Hm8lZF86eyg26kGzwnW5S+bxYdY0fetYUUCn\n55owQD/u0gMEEdL7FBCWzAHrQeavFlXhJsdyMMjRGg5gaFRJ48B4CHER7pjF\nPicScdGgK9zGRhm9FZsSt8ccE0Tff0LFErPA8OK6hVj4G5TSiVYKb20ht1c5\nSHLXLkjSaWqY+mFQmexxqR09fQr7RYvfyhlana98O6EYwiSajHl21lEQqYH6\nONwH+mgAyl8takVMHxPUXFQ5nrjNiixeAro+jy7vbJfbeNnSFlWXP+rK+5OR\n5gWYLAjzK2ZHjxewz7RW+jQgBRuo84uMI9Bn4yQHnRqQjF6xAHSnPVf5xvPt\n4itjToUppnh6IlSq2XUhNIrRVslYr2k3u7aEEVEMMfMa3ieQkCWxbOjCroqA\no8jN1muP7zgf3uBhyhlO7K8NINUX0WQYykJ21KwWLxoxtYmTszNWmx8FUZRu\nlhqPTfo8hgcfZsLGSsAXEz2LRlAsDF8lAR+MqZQhtjg1zzzaoqCFEu17ZItQ\nB8PzXuRHd3gmVJOuvCwxOV7tls4ND4IGltAl6HcSuZ0TUED6lWnkjANALlzJ\nkrAOMyia2VHW1bGZeib+uoCh5ACSyLlWa5xhvQVTQlxoK5Ve+cYgDNBvrrlF\nr0Ir\r\n=hoNV\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.10.0-dev.20200719.7816875.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n## Parsing lu files\r\nTo parse LU files, you can use the parseFile() method. \r\n\r\n```js\r\nconst ludown = require('@microsoft/bf-lu');\r\nconst luContent1 = `# Greeting\r\n- hi`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nludown.parser.parseFile(luContent1, log, locale)\r\n    .then(function(parsedContent) {\r\n        // Parsed LUIS object\r\n        console.log(JSON.stringify(parsedContent.LUISJsonStructure, 2, null));\r\n        // Parsed QnA content\r\n        console.log(JSON.stringify(parsedContent.qnaJsonStructure, 2, null));\r\n        // Additional files to parse\r\n        console.log(JSON.stringify(parsedContent.additionalFilesToParse, 2, null));\r\n    })\r\n    .catch(function(err) {\r\n        let errObj = new ludown.helperClasses.Exception(err);\r\n        // err is of type ludown.helperClasses.Exception. \r\n        // Possible error codes are available under ludown.helperEnums.errorCodes\r\n        if(errObj.errCode === ludown.helperEnums.errorCodes.INVALID_INPUT) {\r\n            // do something specific to this error code\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    })\r\n```\r\n\r\n## Validating parsed lu files\r\n\r\nYou can use the available validateLUISBlob() function to verify if the parsed LUIS blob is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst ludown = require('@microsoft/bf-lu');\r\nconst luContent = `# Greeting\r\n- hi {userName=bob}\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n    let parsedContent;\r\n    try {\r\n        parsedContent = await ludown.parser.parseFile(luContent, log, locale);\r\n    } catch (err) {\r\n        let errObj = new ludown.helperClasses.Exception(err);\r\n        // err is of type ludown.helperClasses.Exception. \r\n        // Possible error codes are available under ludown.helperEnums.errorCodes\r\n        if(errObj.errCode === ludown.helperEnums.errorCodes.INVALID_INPUT) {\r\n            // do something specific to this error code\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n    // validate the parsed luis content\r\n    ludown.parser.validateLUISBlob(parsedContent.LUISJsonStructure)\r\n        .then(res => res)\r\n        .catch(function(err) {\r\n            let exception = new ludown.helperClasses.Exception(err);\r\n            console.error('Oops, invalid LUIS content!\\n');\r\n            console.error(exception.errCode + ' : ' + exception.text);\r\n        })\r\n}\r\n\r\nparseContent();\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS and QnA maker JSON using constructMdFromLUIS() and constructMdFromQnA() methods. Here's an example code snippet. \r\n\r\n```js\r\nconst ludown = require('@microsoft/bf-lu')\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n    let parsedContent;\r\n    try {\r\n        parsedContent = await ludown.parser.parseFile(luContent, log, locale);\r\n    } catch (err) {\r\n        let errObj = new ludown.helperClasses.Exception(err);\r\n        // err is of type ludown.helperClasses.Exception. \r\n        // Possible error codes are available under ludown.helperEnums.errorCodes\r\n        if(errObj.errCode === ludown.helperEnums.errorCodes.INVALID_INPUT) {\r\n            // do something specific to this error code\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n    \r\n    if(await ludown.parser.validateLUISBlob(parsedContent.LUISJsonStructure)) {\r\n        // reconstruct md content\r\n        ludown.refresh.constructMdFromLUIS(parsedContent.LUISJsonStructure)\r\n        .then(function(result){\r\n            console.log(result);\r\n        })\r\n        .catch(function(err) {\r\n            let exception = new ludown.helperClasses.Exception(err);\r\n            console.error('Oops, invalid LUIS content!\\n');\r\n            console.error(exception.errCode + ' : ' + exception.text);\r\n        })\r\n    }\r\n\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the parseAndTranslate() method. Here's a code snippet.\r\n\r\n```js\r\nconst ludown = require('@microsoft/bf-lu');\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\nludown.translate.parseAndTranslate(luContent, subscriptionKey, targetLanguage, '', translateComments, translateLinkText, log)\r\n    .then(function(result) {\r\n        console.log(result);\r\n    })\r\n    .catch(function(err){\r\n        let exception = new ludown.helperClasses.Exception(err);\r\n        console.error(exception.errCode + ' : ' + exception.text);\r\n    })\r\n\r\n```\r\n\r\n\r\n# V2 API (Preview. Download from [here](https://botbuilder.myget.org/feed/botframework-cli/package/npm/@microsoft/bf-lu))\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","postpack":"","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.5","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"12.18.2","dependencies":{"chalk":"2.4.1","delay":"^4.3.0","tslib":"^1.10.0","antlr4":"^4.7.2","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","node-fetch":"~2.6.0","@oclif/errors":"~1.2.2","@oclif/command":"~1.5.19","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","@azure/ms-rest-azure-js":"2.0.1","@azure/cognitiveservices-luis-authoring":"4.0.0-preview.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^8.3.0","typescript":"^3.5.3","@oclif/test":"^1.2.5","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@oclif/tslint":"^3.1.1","@types/lodash":"~4.14.146"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.10.0-dev.20200719.7816875_1595143143658_0.6669028163780377","host":"s3://npm-registry-packages"}},"4.10.0-dev.20200720.88a2a42":{"name":"@microsoft/bf-lu","version":"4.10.0-dev.20200720.88a2a42","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.10.0-dev.20200720.88a2a42","maintainers":[{"name":"botframework","email":"botframework@microsoft.com"},{"name":"microsoft","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"0820d94cd3e5f062244036b649fb2979fb2abdc3","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.10.0-dev.20200720.88a2a42.tgz","fileCount":89,"integrity":"sha512-tZh1uAQMV0+Esq4q31OmANRXhrGORL9KwLojmP0w9xC/CJm6MnfGFpS1/L1Xe/CGQJqRe3L2dlaiZCEDAEd+TA==","signatures":[{"sig":"MEUCICKmOsZw+Equ2+o3ur/ZQy2AkZdLzhADxhprRnQ5c8IoAiEAlSVdubqe/Z8RkKdXcNgx3/MVKadSwN8+68zlmLUoG4Y=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":826280,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfFUXUCRA9TVsSAnZWagAAj/8P/iC0Q3x4NEi/KmwWbTsB\ne8qGkGtkUHGRzhuz1PhKEIcfa8kxwLJ0MTvuiGpTSaIEqZNIe8D8mKyN4tRI\n/jLECehIExDFjS+wFNj4kZvkzZmzT5EY61+73JAraO1jWwVvJZCMF1jPuCxZ\nL/xRZTQVXrOJxG7NHbbqmVhxR2PEArB4lE9TwJhYTGuVTiZ8i0i+DT3tcIIC\n7+Fv9wLVrLthhiwZP4pdCMYDPEDRSm5DMWJCPCrxLevKFZBj3LXUyioSYmhi\n3YbFUImn2Ovc9oKjwb6cMOAuNppAPV3tk4Y/Gbct1wJRTEYwSy5rJRuwkBNY\nX1QkC+VItYedytib0JNlQlmVZzK/oL8YCTtYAEJUdkYMGGsYlx9VSdfnMErC\n5oqsgcjdl2HjecyElNilF0jXi7F31qSOMH3oD+XUJZ6xNNH/Fz75dVP7SQTG\n8BKE9waQmZVY3W6ViUFLD6WBtj0mr/5M+CbfM6a/kPp5Ndrco3hfLBMGYMUV\nugMeSESpL4bVtWkqRRTKBZHkObaIYThs0I32J5/vP9L5Lf9b2BOp5DAfF3QF\npp2+yITg5CrU5gAxJ1TdTYq5ZKdG2D4ef14xWSLhSMZsg15YPo7E0voPAPIB\neDaRGYSjw/M3F7V78rlaASwmW6UJeFcdVYSSuyWVSM2X/FovC5LxcXI+Ds1h\n7dnH\r\n=4h0w\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.10.0-dev.20200720.88a2a42.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n## Parsing lu files\r\nTo parse LU files, you can use the parseFile() method. \r\n\r\n```js\r\nconst ludown = require('@microsoft/bf-lu');\r\nconst luContent1 = `# Greeting\r\n- hi`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nludown.parser.parseFile(luContent1, log, locale)\r\n    .then(function(parsedContent) {\r\n        // Parsed LUIS object\r\n        console.log(JSON.stringify(parsedContent.LUISJsonStructure, 2, null));\r\n        // Parsed QnA content\r\n        console.log(JSON.stringify(parsedContent.qnaJsonStructure, 2, null));\r\n        // Additional files to parse\r\n        console.log(JSON.stringify(parsedContent.additionalFilesToParse, 2, null));\r\n    })\r\n    .catch(function(err) {\r\n        let errObj = new ludown.helperClasses.Exception(err);\r\n        // err is of type ludown.helperClasses.Exception. \r\n        // Possible error codes are available under ludown.helperEnums.errorCodes\r\n        if(errObj.errCode === ludown.helperEnums.errorCodes.INVALID_INPUT) {\r\n            // do something specific to this error code\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    })\r\n```\r\n\r\n## Validating parsed lu files\r\n\r\nYou can use the available validateLUISBlob() function to verify if the parsed LUIS blob is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst ludown = require('@microsoft/bf-lu');\r\nconst luContent = `# Greeting\r\n- hi {userName=bob}\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n    let parsedContent;\r\n    try {\r\n        parsedContent = await ludown.parser.parseFile(luContent, log, locale);\r\n    } catch (err) {\r\n        let errObj = new ludown.helperClasses.Exception(err);\r\n        // err is of type ludown.helperClasses.Exception. \r\n        // Possible error codes are available under ludown.helperEnums.errorCodes\r\n        if(errObj.errCode === ludown.helperEnums.errorCodes.INVALID_INPUT) {\r\n            // do something specific to this error code\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n    // validate the parsed luis content\r\n    ludown.parser.validateLUISBlob(parsedContent.LUISJsonStructure)\r\n        .then(res => res)\r\n        .catch(function(err) {\r\n            let exception = new ludown.helperClasses.Exception(err);\r\n            console.error('Oops, invalid LUIS content!\\n');\r\n            console.error(exception.errCode + ' : ' + exception.text);\r\n        })\r\n}\r\n\r\nparseContent();\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS and QnA maker JSON using constructMdFromLUIS() and constructMdFromQnA() methods. Here's an example code snippet. \r\n\r\n```js\r\nconst ludown = require('@microsoft/bf-lu')\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n    let parsedContent;\r\n    try {\r\n        parsedContent = await ludown.parser.parseFile(luContent, log, locale);\r\n    } catch (err) {\r\n        let errObj = new ludown.helperClasses.Exception(err);\r\n        // err is of type ludown.helperClasses.Exception. \r\n        // Possible error codes are available under ludown.helperEnums.errorCodes\r\n        if(errObj.errCode === ludown.helperEnums.errorCodes.INVALID_INPUT) {\r\n            // do something specific to this error code\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n    \r\n    if(await ludown.parser.validateLUISBlob(parsedContent.LUISJsonStructure)) {\r\n        // reconstruct md content\r\n        ludown.refresh.constructMdFromLUIS(parsedContent.LUISJsonStructure)\r\n        .then(function(result){\r\n            console.log(result);\r\n        })\r\n        .catch(function(err) {\r\n            let exception = new ludown.helperClasses.Exception(err);\r\n            console.error('Oops, invalid LUIS content!\\n');\r\n            console.error(exception.errCode + ' : ' + exception.text);\r\n        })\r\n    }\r\n\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the parseAndTranslate() method. Here's a code snippet.\r\n\r\n```js\r\nconst ludown = require('@microsoft/bf-lu');\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\nludown.translate.parseAndTranslate(luContent, subscriptionKey, targetLanguage, '', translateComments, translateLinkText, log)\r\n    .then(function(result) {\r\n        console.log(result);\r\n    })\r\n    .catch(function(err){\r\n        let exception = new ludown.helperClasses.Exception(err);\r\n        console.error(exception.errCode + ' : ' + exception.text);\r\n    })\r\n\r\n```\r\n\r\n\r\n# V2 API (Preview. Download from [here](https://botbuilder.myget.org/feed/botframework-cli/package/npm/@microsoft/bf-lu))\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","postpack":"","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.5","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"12.18.2","dependencies":{"chalk":"2.4.1","delay":"^4.3.0","tslib":"^1.10.0","antlr4":"^4.7.2","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","node-fetch":"~2.6.0","@oclif/errors":"~1.2.2","@oclif/command":"~1.5.19","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","@azure/ms-rest-azure-js":"2.0.1","@azure/cognitiveservices-luis-authoring":"4.0.0-preview.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^8.3.0","typescript":"^3.5.3","@oclif/test":"^1.2.5","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@oclif/tslint":"^3.1.1","@types/lodash":"~4.14.146"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.10.0-dev.20200720.88a2a42_1595229651912_0.6273632574912384","host":"s3://npm-registry-packages"}},"4.10.0-dev.20200721.88a2a42":{"name":"@microsoft/bf-lu","version":"4.10.0-dev.20200721.88a2a42","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.10.0-dev.20200721.88a2a42","maintainers":[{"name":"botframework","email":"botframework@microsoft.com"},{"name":"microsoft","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"2e19c12cccceb5d1f21b0100cb5b3736d58e6ed5","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.10.0-dev.20200721.88a2a42.tgz","fileCount":89,"integrity":"sha512-HnaKAW91Uooakfn/tu1vbnxlxjfKD4cBLqG1doheOqY4LWSvx6XZSHp+W7Y0MFYdg7ePyy8GUkPyAFTr+xv5Lw==","signatures":[{"sig":"MEUCIQCzgGtgIvKU02W6o84u4XPHcwVBrvCeGgZPWf4L0Alj7AIgKpSX1l4OBzgni82ytfg9MJs9aE9t0CCsGG8kxxCMEto=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":826280,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfFrPLCRA9TVsSAnZWagAAOQEP/1nxiIbynjCFlTTGrKIy\nSADuY/XGp9J74NZcPRx0+HQ570MznPsCimF/gKAAyysxwDNtTTwboR/CiUr/\nKukCIhFsmrl3ZouSWjGXCJPYwfd/KS9/seMie/OgP2YC+eM4vMOuGk2NS3/Q\nQpMjJyMvRkl8mKTOsp5b5qBbNTv3YqvV1RfCk+WwGkb+c2LCEVGOyXA58IgD\n3BB9OYF30tklASJnhfTj/HS+6TvCKIYnna8YPteO8SZWcrEoJgpMRlBQaMd1\nSEsAD8zJFJN48Hj9D9RY/7nFgp9oAImPQsWd1yfhDMgzbY4oUV5tTziJtvvj\nJQaJMQ7AAUFexPWlothov8/9yHQtbFFiHBd51yyLALIGoyCVN+ujIHt557c8\nQJHBaT6Z+jAQfPOetaxNqDfwrTML/Vz48ppYVooziNR6jcwvOKe02K1gH0j/\nd0cEb6BfRCqdlphGCqlnD0s+4p9otLrkVFxCSy9SchRpg/GwcBrQ+S+YBIai\n4UjRgH76Ge49FmFgWM8UzqVMOSpvOL7YOuVlkTVcmTe3BTK7pxiByMZHTDoM\nuggiEsbiV3CgkmM8AWmJ4yA4nXAhPoo6QE7WeZCMOhucXlqLUHPr1YLMofRf\nwspPTL59VVLp9x0oUDltgxYlUpW66lDRA56z/8o/AzyLIxBZnK5EmkdUCBY9\na4IZ\r\n=LxN7\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.10.0-dev.20200721.88a2a42.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n## Parsing lu files\r\nTo parse LU files, you can use the parseFile() method. \r\n\r\n```js\r\nconst ludown = require('@microsoft/bf-lu');\r\nconst luContent1 = `# Greeting\r\n- hi`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nludown.parser.parseFile(luContent1, log, locale)\r\n    .then(function(parsedContent) {\r\n        // Parsed LUIS object\r\n        console.log(JSON.stringify(parsedContent.LUISJsonStructure, 2, null));\r\n        // Parsed QnA content\r\n        console.log(JSON.stringify(parsedContent.qnaJsonStructure, 2, null));\r\n        // Additional files to parse\r\n        console.log(JSON.stringify(parsedContent.additionalFilesToParse, 2, null));\r\n    })\r\n    .catch(function(err) {\r\n        let errObj = new ludown.helperClasses.Exception(err);\r\n        // err is of type ludown.helperClasses.Exception. \r\n        // Possible error codes are available under ludown.helperEnums.errorCodes\r\n        if(errObj.errCode === ludown.helperEnums.errorCodes.INVALID_INPUT) {\r\n            // do something specific to this error code\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    })\r\n```\r\n\r\n## Validating parsed lu files\r\n\r\nYou can use the available validateLUISBlob() function to verify if the parsed LUIS blob is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst ludown = require('@microsoft/bf-lu');\r\nconst luContent = `# Greeting\r\n- hi {userName=bob}\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n    let parsedContent;\r\n    try {\r\n        parsedContent = await ludown.parser.parseFile(luContent, log, locale);\r\n    } catch (err) {\r\n        let errObj = new ludown.helperClasses.Exception(err);\r\n        // err is of type ludown.helperClasses.Exception. \r\n        // Possible error codes are available under ludown.helperEnums.errorCodes\r\n        if(errObj.errCode === ludown.helperEnums.errorCodes.INVALID_INPUT) {\r\n            // do something specific to this error code\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n    // validate the parsed luis content\r\n    ludown.parser.validateLUISBlob(parsedContent.LUISJsonStructure)\r\n        .then(res => res)\r\n        .catch(function(err) {\r\n            let exception = new ludown.helperClasses.Exception(err);\r\n            console.error('Oops, invalid LUIS content!\\n');\r\n            console.error(exception.errCode + ' : ' + exception.text);\r\n        })\r\n}\r\n\r\nparseContent();\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS and QnA maker JSON using constructMdFromLUIS() and constructMdFromQnA() methods. Here's an example code snippet. \r\n\r\n```js\r\nconst ludown = require('@microsoft/bf-lu')\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n    let parsedContent;\r\n    try {\r\n        parsedContent = await ludown.parser.parseFile(luContent, log, locale);\r\n    } catch (err) {\r\n        let errObj = new ludown.helperClasses.Exception(err);\r\n        // err is of type ludown.helperClasses.Exception. \r\n        // Possible error codes are available under ludown.helperEnums.errorCodes\r\n        if(errObj.errCode === ludown.helperEnums.errorCodes.INVALID_INPUT) {\r\n            // do something specific to this error code\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n    \r\n    if(await ludown.parser.validateLUISBlob(parsedContent.LUISJsonStructure)) {\r\n        // reconstruct md content\r\n        ludown.refresh.constructMdFromLUIS(parsedContent.LUISJsonStructure)\r\n        .then(function(result){\r\n            console.log(result);\r\n        })\r\n        .catch(function(err) {\r\n            let exception = new ludown.helperClasses.Exception(err);\r\n            console.error('Oops, invalid LUIS content!\\n');\r\n            console.error(exception.errCode + ' : ' + exception.text);\r\n        })\r\n    }\r\n\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the parseAndTranslate() method. Here's a code snippet.\r\n\r\n```js\r\nconst ludown = require('@microsoft/bf-lu');\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\nludown.translate.parseAndTranslate(luContent, subscriptionKey, targetLanguage, '', translateComments, translateLinkText, log)\r\n    .then(function(result) {\r\n        console.log(result);\r\n    })\r\n    .catch(function(err){\r\n        let exception = new ludown.helperClasses.Exception(err);\r\n        console.error(exception.errCode + ' : ' + exception.text);\r\n    })\r\n\r\n```\r\n\r\n\r\n# V2 API (Preview. Download from [here](https://botbuilder.myget.org/feed/botframework-cli/package/npm/@microsoft/bf-lu))\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","postpack":"","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.5","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"12.18.2","dependencies":{"chalk":"2.4.1","delay":"^4.3.0","tslib":"^1.10.0","antlr4":"^4.7.2","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","node-fetch":"~2.6.0","@oclif/errors":"~1.2.2","@oclif/command":"~1.5.19","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","@azure/ms-rest-azure-js":"2.0.1","@azure/cognitiveservices-luis-authoring":"4.0.0-preview.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^8.3.0","typescript":"^3.5.3","@oclif/test":"^1.2.5","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@oclif/tslint":"^3.1.1","@types/lodash":"~4.14.146"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.10.0-dev.20200721.88a2a42_1595323338964_0.49375210724378293","host":"s3://npm-registry-packages"}},"4.10.0-dev.20200723.4c45f4a":{"name":"@microsoft/bf-lu","version":"4.10.0-dev.20200723.4c45f4a","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.10.0-dev.20200723.4c45f4a","maintainers":[{"name":"botframework","email":"botframework@microsoft.com"},{"name":"microsoft","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"6f0eb5e3d2f3094221d6d911c125f50caaeee456","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.10.0-dev.20200723.4c45f4a.tgz","fileCount":89,"integrity":"sha512-bTGwArL8fz/10XYsh8a0Ude//+qyu/kDDA8LHoSqsoeLs9ozLqI0ApQz5bC/DoUMtb2pC0vFgsK3zlI4QyAOHw==","signatures":[{"sig":"MEQCIB8p2uI/rVNDVv6yRXjyaMwsIRN5w9uaRFiuy93wZCVPAiAVie+/3mZ5BU+IerJ4FIGxQfhPxIIi1+9hgnBfZiga3A==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":832602,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfGVbNCRA9TVsSAnZWagAAYq4P/ArxbOfgGq9Mj12GY6QC\nUEW6lXglVVguP4rkX/cfenRKtyb/aAFgTz22sZ83SiCTvrzF4EbFYAW1mv5Z\nQQkS9GheMuWcxPMum9Lq79NgWyHVBSUhLOGZe5WbO/+TgonZWjkgPlYI5Fs8\nHQU6og5UTmhCaCH0V5/2el1BQf0kwINnYudK8VgQJLASfzz362XHzG/3y1vu\nCxaUZwe5F17ksT8KQUkz+ypkH4hM9GiF84oTyPqLx6mxl7WEUdvZ1XxkQbxm\nGeW+PqVFePTf6VeBST36jMh065kw8ccX0xXgNQVLwopU5w4N+JUNOkxpW2lg\nx9HglPFLyYD17r3EAyMUU3QCIo6qHEkTy6YH27LdKh122ZhrSNZXp96E8NWJ\nWQEMR3Z0XnlnvCXkLt9LiZWy4d9wNK6P5eE4tB/3cglOxg9pY0h2ETWUpC3Y\n8SzWRHscrdRyHZkABOb3ea5QCUVLYsJi6zkMzYKczxbF8O+H2RxCxSqsmY4j\ntvz9j4qcrs/Gfp8zMrXGDT12nsMR0kXNkJskLWgg0FQVnfAx+IiTbTMc/ScN\nRnyNYI0S53d3botelmocczMxltiKvmk2VJpV1+cGnOBxOOAxmtJGtUToKf0O\n3rIIr0HoI/J5eM69hjolvDh+h8lbfp8AgS+I+c8lxcZaqoczNz4HoMizzsr/\n6BAV\r\n=42Or\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.10.0-dev.20200723.4c45f4a.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n## Parsing lu files\r\nTo parse LU files, you can use the parseFile() method. \r\n\r\n```js\r\nconst ludown = require('@microsoft/bf-lu');\r\nconst luContent1 = `# Greeting\r\n- hi`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nludown.parser.parseFile(luContent1, log, locale)\r\n    .then(function(parsedContent) {\r\n        // Parsed LUIS object\r\n        console.log(JSON.stringify(parsedContent.LUISJsonStructure, 2, null));\r\n        // Parsed QnA content\r\n        console.log(JSON.stringify(parsedContent.qnaJsonStructure, 2, null));\r\n        // Additional files to parse\r\n        console.log(JSON.stringify(parsedContent.additionalFilesToParse, 2, null));\r\n    })\r\n    .catch(function(err) {\r\n        let errObj = new ludown.helperClasses.Exception(err);\r\n        // err is of type ludown.helperClasses.Exception. \r\n        // Possible error codes are available under ludown.helperEnums.errorCodes\r\n        if(errObj.errCode === ludown.helperEnums.errorCodes.INVALID_INPUT) {\r\n            // do something specific to this error code\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    })\r\n```\r\n\r\n## Validating parsed lu files\r\n\r\nYou can use the available validateLUISBlob() function to verify if the parsed LUIS blob is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst ludown = require('@microsoft/bf-lu');\r\nconst luContent = `# Greeting\r\n- hi {userName=bob}\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n    let parsedContent;\r\n    try {\r\n        parsedContent = await ludown.parser.parseFile(luContent, log, locale);\r\n    } catch (err) {\r\n        let errObj = new ludown.helperClasses.Exception(err);\r\n        // err is of type ludown.helperClasses.Exception. \r\n        // Possible error codes are available under ludown.helperEnums.errorCodes\r\n        if(errObj.errCode === ludown.helperEnums.errorCodes.INVALID_INPUT) {\r\n            // do something specific to this error code\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n    // validate the parsed luis content\r\n    ludown.parser.validateLUISBlob(parsedContent.LUISJsonStructure)\r\n        .then(res => res)\r\n        .catch(function(err) {\r\n            let exception = new ludown.helperClasses.Exception(err);\r\n            console.error('Oops, invalid LUIS content!\\n');\r\n            console.error(exception.errCode + ' : ' + exception.text);\r\n        })\r\n}\r\n\r\nparseContent();\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS and QnA maker JSON using constructMdFromLUIS() and constructMdFromQnA() methods. Here's an example code snippet. \r\n\r\n```js\r\nconst ludown = require('@microsoft/bf-lu')\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n    let parsedContent;\r\n    try {\r\n        parsedContent = await ludown.parser.parseFile(luContent, log, locale);\r\n    } catch (err) {\r\n        let errObj = new ludown.helperClasses.Exception(err);\r\n        // err is of type ludown.helperClasses.Exception. \r\n        // Possible error codes are available under ludown.helperEnums.errorCodes\r\n        if(errObj.errCode === ludown.helperEnums.errorCodes.INVALID_INPUT) {\r\n            // do something specific to this error code\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n    \r\n    if(await ludown.parser.validateLUISBlob(parsedContent.LUISJsonStructure)) {\r\n        // reconstruct md content\r\n        ludown.refresh.constructMdFromLUIS(parsedContent.LUISJsonStructure)\r\n        .then(function(result){\r\n            console.log(result);\r\n        })\r\n        .catch(function(err) {\r\n            let exception = new ludown.helperClasses.Exception(err);\r\n            console.error('Oops, invalid LUIS content!\\n');\r\n            console.error(exception.errCode + ' : ' + exception.text);\r\n        })\r\n    }\r\n\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the parseAndTranslate() method. Here's a code snippet.\r\n\r\n```js\r\nconst ludown = require('@microsoft/bf-lu');\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\nludown.translate.parseAndTranslate(luContent, subscriptionKey, targetLanguage, '', translateComments, translateLinkText, log)\r\n    .then(function(result) {\r\n        console.log(result);\r\n    })\r\n    .catch(function(err){\r\n        let exception = new ludown.helperClasses.Exception(err);\r\n        console.error(exception.errCode + ' : ' + exception.text);\r\n    })\r\n\r\n```\r\n\r\n\r\n# V2 API (Preview. Download from [here](https://botbuilder.myget.org/feed/botframework-cli/package/npm/@microsoft/bf-lu))\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","postpack":"","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.5","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"12.18.2","dependencies":{"chalk":"2.4.1","delay":"^4.3.0","tslib":"^1.10.0","antlr4":"^4.7.2","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","node-fetch":"~2.6.0","@oclif/errors":"~1.2.2","@oclif/command":"~1.5.19","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","@azure/ms-rest-azure-js":"2.0.1","@azure/cognitiveservices-luis-authoring":"4.0.0-preview.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^8.3.0","typescript":"^3.5.3","@oclif/test":"^1.2.5","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@oclif/tslint":"^3.1.1","@types/lodash":"~4.14.146"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.10.0-dev.20200723.4c45f4a_1595496140606_0.2514031991093515","host":"s3://npm-registry-packages"}},"4.10.0-dev.20200727.f10d79c":{"name":"@microsoft/bf-lu","version":"4.10.0-dev.20200727.f10d79c","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.10.0-dev.20200727.f10d79c","maintainers":[{"name":"botframework","email":"botframework@microsoft.com"},{"name":"microsoft","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"94b2d18d7480e7d64e04c006006860c0ab56a3f3","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.10.0-dev.20200727.f10d79c.tgz","fileCount":89,"integrity":"sha512-LE4EFvcVauZCss+nO585wLeA2W42PcdoK6afDYCI7GQHfzZVPp4K28R0SAqWw8IvqjNS+1hEiMXN5XfomqsLTA==","signatures":[{"sig":"MEUCIAb3+c4WskSE9M4JBgcI+C7L+dsuiqgn3d0dPlg46WvqAiEAl4FKDZgPlzL0ewQz1drUlztSzQ6fyL2yMtR3HpureD8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":832602,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfHp0yCRA9TVsSAnZWagAA+XgQAI2Q/IMc4IT2pEQZRiO+\nLmAhWB9rJOmU/gg8mfZURshO2lLBfTO5okgvUyptxpuMBvti3ZHqeIQFzqXt\nlgdDARps4oVNGYGVdkOc85D8eAYIcHX2LziBACnXj1Vz5Ggx+XShqhBZnysK\nI2uM990Td+j3XasEW6mfYUr3OrBBl7BpdAdh0h2FWQwjojmlH/XZHPOWpuZL\nZLLpKsuKJ7VRQATfSY8dIjw5VJP1wdSQhfgyaPKdfxfBRrh3rglIzVqWx1Wx\nFLyrvD/Bn81xMlrTO9QlytC5tdXX53cnbdteAQJdqjSUonNFA6hr3FrcC3ES\noJKA5hnIbq9Endj+mkva1kRRo7hlv1d0qxCwj6Q+rF2hE62KOHjwrCTSla7N\nqHXhvkecnK3LUw4CWK/7Xk58QJ4bGO7S35aPrg3LqpjbuDpwwtr9Z6yjuFVw\nWN/1YIqX2zev2mkzVLxeQQOxBbavu0h5ooEj6kQ0/LukwfsPON6+tYjDKdx5\n4++2S67roBZ7eBGNYevcv6n0UM44uIWWD2LDtMrLUcfHYNLli/Csonpqcx7t\n/ZhUJhf2EmjoxAXpmq37wvsSgOqNfaBKVPNGyGTCduyJ/66/7C8QBiA0B+Oy\nsDvqLPoozv97lic02uCNXW6mpGOJN39JYRPU2/e2fbdcWJHNjLEkyR8DI+UK\nMdqp\r\n=htQU\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.10.0-dev.20200727.f10d79c.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n## Parsing lu files\r\nTo parse LU files, you can use the parseFile() method. \r\n\r\n```js\r\nconst ludown = require('@microsoft/bf-lu');\r\nconst luContent1 = `# Greeting\r\n- hi`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nludown.parser.parseFile(luContent1, log, locale)\r\n    .then(function(parsedContent) {\r\n        // Parsed LUIS object\r\n        console.log(JSON.stringify(parsedContent.LUISJsonStructure, 2, null));\r\n        // Parsed QnA content\r\n        console.log(JSON.stringify(parsedContent.qnaJsonStructure, 2, null));\r\n        // Additional files to parse\r\n        console.log(JSON.stringify(parsedContent.additionalFilesToParse, 2, null));\r\n    })\r\n    .catch(function(err) {\r\n        let errObj = new ludown.helperClasses.Exception(err);\r\n        // err is of type ludown.helperClasses.Exception. \r\n        // Possible error codes are available under ludown.helperEnums.errorCodes\r\n        if(errObj.errCode === ludown.helperEnums.errorCodes.INVALID_INPUT) {\r\n            // do something specific to this error code\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    })\r\n```\r\n\r\n## Validating parsed lu files\r\n\r\nYou can use the available validateLUISBlob() function to verify if the parsed LUIS blob is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst ludown = require('@microsoft/bf-lu');\r\nconst luContent = `# Greeting\r\n- hi {userName=bob}\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n    let parsedContent;\r\n    try {\r\n        parsedContent = await ludown.parser.parseFile(luContent, log, locale);\r\n    } catch (err) {\r\n        let errObj = new ludown.helperClasses.Exception(err);\r\n        // err is of type ludown.helperClasses.Exception. \r\n        // Possible error codes are available under ludown.helperEnums.errorCodes\r\n        if(errObj.errCode === ludown.helperEnums.errorCodes.INVALID_INPUT) {\r\n            // do something specific to this error code\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n    // validate the parsed luis content\r\n    ludown.parser.validateLUISBlob(parsedContent.LUISJsonStructure)\r\n        .then(res => res)\r\n        .catch(function(err) {\r\n            let exception = new ludown.helperClasses.Exception(err);\r\n            console.error('Oops, invalid LUIS content!\\n');\r\n            console.error(exception.errCode + ' : ' + exception.text);\r\n        })\r\n}\r\n\r\nparseContent();\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS and QnA maker JSON using constructMdFromLUIS() and constructMdFromQnA() methods. Here's an example code snippet. \r\n\r\n```js\r\nconst ludown = require('@microsoft/bf-lu')\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n    let parsedContent;\r\n    try {\r\n        parsedContent = await ludown.parser.parseFile(luContent, log, locale);\r\n    } catch (err) {\r\n        let errObj = new ludown.helperClasses.Exception(err);\r\n        // err is of type ludown.helperClasses.Exception. \r\n        // Possible error codes are available under ludown.helperEnums.errorCodes\r\n        if(errObj.errCode === ludown.helperEnums.errorCodes.INVALID_INPUT) {\r\n            // do something specific to this error code\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n    \r\n    if(await ludown.parser.validateLUISBlob(parsedContent.LUISJsonStructure)) {\r\n        // reconstruct md content\r\n        ludown.refresh.constructMdFromLUIS(parsedContent.LUISJsonStructure)\r\n        .then(function(result){\r\n            console.log(result);\r\n        })\r\n        .catch(function(err) {\r\n            let exception = new ludown.helperClasses.Exception(err);\r\n            console.error('Oops, invalid LUIS content!\\n');\r\n            console.error(exception.errCode + ' : ' + exception.text);\r\n        })\r\n    }\r\n\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the parseAndTranslate() method. Here's a code snippet.\r\n\r\n```js\r\nconst ludown = require('@microsoft/bf-lu');\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\nludown.translate.parseAndTranslate(luContent, subscriptionKey, targetLanguage, '', translateComments, translateLinkText, log)\r\n    .then(function(result) {\r\n        console.log(result);\r\n    })\r\n    .catch(function(err){\r\n        let exception = new ludown.helperClasses.Exception(err);\r\n        console.error(exception.errCode + ' : ' + exception.text);\r\n    })\r\n\r\n```\r\n\r\n\r\n# V2 API (Preview. Download from [here](https://botbuilder.myget.org/feed/botframework-cli/package/npm/@microsoft/bf-lu))\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","postpack":"","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.5","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"12.18.2","dependencies":{"chalk":"2.4.1","delay":"^4.3.0","tslib":"^1.10.0","antlr4":"^4.7.2","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","node-fetch":"~2.6.0","@oclif/errors":"~1.2.2","@oclif/command":"~1.5.19","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","@azure/ms-rest-azure-js":"2.0.1","@azure/cognitiveservices-luis-authoring":"4.0.0-preview.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^8.3.0","typescript":"^3.5.3","@oclif/test":"^1.2.5","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@oclif/tslint":"^3.1.1","@types/lodash":"~4.14.146"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.10.0-dev.20200727.f10d79c_1595841842199_0.43384753748940197","host":"s3://npm-registry-packages"}},"4.10.0-dev.20200728.930f45e":{"name":"@microsoft/bf-lu","version":"4.10.0-dev.20200728.930f45e","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.10.0-dev.20200728.930f45e","maintainers":[{"name":"botframework","email":"botframework@microsoft.com"},{"name":"microsoft","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"d8a5867d1e3028124b9e0171877b1f063b2bd08e","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.10.0-dev.20200728.930f45e.tgz","fileCount":89,"integrity":"sha512-vmC2D0MFUzqIV46h1GS1PMzXaiI8iXauWMEVJ3B1Bje7CkLpGZRzthBCW8a8+02ZvphKsZ195LhArkn9zM1rVA==","signatures":[{"sig":"MEQCIEOEWpN+3ix60LP7YCrmSTnTQn159T8nl8vjJz4kaoA+AiBbb/orQCQF/J09wR+WWiUL4s1NzAkEktaX/7o+t8WxTQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":831443,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfH+3ACRA9TVsSAnZWagAA1vEP/Rr+8brnHJnV5fCQ5W4k\nP0VwZ8RybjJLNBkEqdXZw05azcgsSgifxyUH+vGcBZhqBN2T1O9Wj6e0qJFg\nDNkxDp7mC2OUH2L75vLi8lNkD2c+OQUvIrCz4klXB4vBSim2tF5ehugoxPZS\njIbhyFL8s5tT7sWzMuLitEW/7hd3ENvYGUTbGNwBE3NJ8wuZBEnC5JPKyxQg\nDvjaht93JQQgY31+kaRqW/krwXv/NS2Vl+dJgEOCx66kfmWRKaBuZzTGdnxh\nGfL9vQ9AAyzDvk/oVZVMQrp+0uK3qJZ0LNo+9ZTUMoxbYmeSaN7iBMrJa/kO\naO5xfpMPS1vVHcjzSL4zv5azb374YFdezb0bmdXkEyLPpUXjM3V6zjz1NxMJ\nENDnws7aS7X3VMko/FqIL33ycIhOGmXql1/8j1lWGgZItm7+orbeLcNbdvYB\nu2EoeOvDp5hpoyDhLoyK/gDGiNF3Bd/GHA3kcI64RMCM2j8jA0IhePhfSnbe\nWfmJGhZUdrRPAjJkET0TSrrpaxTjuxyNxEkiAoJths7kIQKsVqO80XxRd4Hu\ncY1HWNdsJjPEy6F20GcVFNpL0/U2zUmo4E1ors0dN7ybZJabk7EQjmEhPFF1\nfmATb55MJJZZBMWhCdfmYOKOMrdhsE7NOGclWZFTyE6OwZW3L2vWcnzUU939\nzL+y\r\n=MANu\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.10.0-dev.20200728.930f45e.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n## Parsing lu files\r\nTo parse LU files, you can use the parseFile() method. \r\n\r\n```js\r\nconst ludown = require('@microsoft/bf-lu');\r\nconst luContent1 = `# Greeting\r\n- hi`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nludown.parser.parseFile(luContent1, log, locale)\r\n    .then(function(parsedContent) {\r\n        // Parsed LUIS object\r\n        console.log(JSON.stringify(parsedContent.LUISJsonStructure, 2, null));\r\n        // Parsed QnA content\r\n        console.log(JSON.stringify(parsedContent.qnaJsonStructure, 2, null));\r\n        // Additional files to parse\r\n        console.log(JSON.stringify(parsedContent.additionalFilesToParse, 2, null));\r\n    })\r\n    .catch(function(err) {\r\n        let errObj = new ludown.helperClasses.Exception(err);\r\n        // err is of type ludown.helperClasses.Exception. \r\n        // Possible error codes are available under ludown.helperEnums.errorCodes\r\n        if(errObj.errCode === ludown.helperEnums.errorCodes.INVALID_INPUT) {\r\n            // do something specific to this error code\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    })\r\n```\r\n\r\n## Validating parsed lu files\r\n\r\nYou can use the available validateLUISBlob() function to verify if the parsed LUIS blob is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst ludown = require('@microsoft/bf-lu');\r\nconst luContent = `# Greeting\r\n- hi {userName=bob}\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n    let parsedContent;\r\n    try {\r\n        parsedContent = await ludown.parser.parseFile(luContent, log, locale);\r\n    } catch (err) {\r\n        let errObj = new ludown.helperClasses.Exception(err);\r\n        // err is of type ludown.helperClasses.Exception. \r\n        // Possible error codes are available under ludown.helperEnums.errorCodes\r\n        if(errObj.errCode === ludown.helperEnums.errorCodes.INVALID_INPUT) {\r\n            // do something specific to this error code\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n    // validate the parsed luis content\r\n    ludown.parser.validateLUISBlob(parsedContent.LUISJsonStructure)\r\n        .then(res => res)\r\n        .catch(function(err) {\r\n            let exception = new ludown.helperClasses.Exception(err);\r\n            console.error('Oops, invalid LUIS content!\\n');\r\n            console.error(exception.errCode + ' : ' + exception.text);\r\n        })\r\n}\r\n\r\nparseContent();\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS and QnA maker JSON using constructMdFromLUIS() and constructMdFromQnA() methods. Here's an example code snippet. \r\n\r\n```js\r\nconst ludown = require('@microsoft/bf-lu')\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n    let parsedContent;\r\n    try {\r\n        parsedContent = await ludown.parser.parseFile(luContent, log, locale);\r\n    } catch (err) {\r\n        let errObj = new ludown.helperClasses.Exception(err);\r\n        // err is of type ludown.helperClasses.Exception. \r\n        // Possible error codes are available under ludown.helperEnums.errorCodes\r\n        if(errObj.errCode === ludown.helperEnums.errorCodes.INVALID_INPUT) {\r\n            // do something specific to this error code\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n    \r\n    if(await ludown.parser.validateLUISBlob(parsedContent.LUISJsonStructure)) {\r\n        // reconstruct md content\r\n        ludown.refresh.constructMdFromLUIS(parsedContent.LUISJsonStructure)\r\n        .then(function(result){\r\n            console.log(result);\r\n        })\r\n        .catch(function(err) {\r\n            let exception = new ludown.helperClasses.Exception(err);\r\n            console.error('Oops, invalid LUIS content!\\n');\r\n            console.error(exception.errCode + ' : ' + exception.text);\r\n        })\r\n    }\r\n\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the parseAndTranslate() method. Here's a code snippet.\r\n\r\n```js\r\nconst ludown = require('@microsoft/bf-lu');\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\nludown.translate.parseAndTranslate(luContent, subscriptionKey, targetLanguage, '', translateComments, translateLinkText, log)\r\n    .then(function(result) {\r\n        console.log(result);\r\n    })\r\n    .catch(function(err){\r\n        let exception = new ludown.helperClasses.Exception(err);\r\n        console.error(exception.errCode + ' : ' + exception.text);\r\n    })\r\n\r\n```\r\n\r\n\r\n# V2 API (Preview. Download from [here](https://botbuilder.myget.org/feed/botframework-cli/package/npm/@microsoft/bf-lu))\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","postpack":"","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.5","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"12.18.2","dependencies":{"chalk":"2.4.1","delay":"^4.3.0","tslib":"^1.10.0","antlr4":"^4.7.2","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","node-fetch":"~2.6.0","@oclif/errors":"~1.2.2","@oclif/command":"~1.5.19","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","@azure/ms-rest-azure-js":"2.0.1","@azure/cognitiveservices-luis-authoring":"4.0.0-preview.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^8.3.0","typescript":"^3.5.3","@oclif/test":"^1.2.5","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@oclif/tslint":"^3.1.1","@types/lodash":"~4.14.146"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.10.0-dev.20200728.930f45e_1595928000009_0.6252079852762968","host":"s3://npm-registry-packages"}},"4.10.0-dev.20200729.4ac1279":{"name":"@microsoft/bf-lu","version":"4.10.0-dev.20200729.4ac1279","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.10.0-dev.20200729.4ac1279","maintainers":[{"name":"botframework","email":"botframework@microsoft.com"},{"name":"microsoft","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"6fb56bb49ac2cc2191dbd3aa7a247d78ea412d73","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.10.0-dev.20200729.4ac1279.tgz","fileCount":89,"integrity":"sha512-gXutU4z/toG+3WIdxthYBEnvIOTWWbaKfUNpY1jGKNbgDQGweoodQn/jVxK13tkIXtcYZYw6HpTGbD4PGnkl5A==","signatures":[{"sig":"MEUCIQC3umcbNEAqgeoWVZDVtbhSuyzmGX0EzkTIaT3LTbryNgIgWXX4IEj7GMEzb58FTaxolkVvNJstxD9639qS9DZXYms=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":831443,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfISNuCRA9TVsSAnZWagAAqQwP/3Clq8HGziz8xv1rt7Fm\nr0ho8ZAG36PSI+hDzd+1DhR5zrBR7CoZjuLrOpSnPH5A817xzi10qIYv9fRF\nznLfPqtjGj7lq1M8y7f0VO6dGBM/AMxuiWgx/1OEg9js+ZOYR7idkRsmMnix\ntbYrYEAmxVi+Lg1uM+7UnzdQmlH4fkj5qJsv5JjPV55Eyuozjd2WRyWtld5W\nhSoTEITNrZEtufVwl4rCJJOp3znPxsWpoQCP7bhxT6bZL/cIlBGfeRWX+KOl\nMlPxnapFmDH8+A19NEPGZomAAUH1mxokvv0FeGMgHowH+qCshW1EPT20+fHV\nf4MSTrVVTXOrzeptC/XJ505ip+3cym9gTq9lWcsNg/D8wOjJzshO1DrHu2bp\nkp/1/Vhjtm130UZLDa/Oi8jPyHOV7eNdRCYgj9C/mS4U++NO1E0G3KpOrkEg\n6TrUN5iwsllhutUsLqkLljmHGVW/20p6FCXRuKX0BArDeqXNArwbKMpnmXZC\nF2wDLyYrWUQ9abmcTkj0KnMbSMvwY4TS/d8iOUJBLiK1dTpS4mP14g4RAGQj\nW3oq28U1GU9xwGcMi9K0pNGPfSjfdz6BYbhBDmHtfyWW0V8B9R1flDU/WydG\ngB+bDzSC5WhldZMOvrzVstraDZ8mCg48592uAo+SycKrZmdE97Jvq/EV44x0\nDpzi\r\n=SBLM\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.10.0-dev.20200729.4ac1279.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n## Parsing lu files\r\nTo parse LU files, you can use the parseFile() method. \r\n\r\n```js\r\nconst ludown = require('@microsoft/bf-lu');\r\nconst luContent1 = `# Greeting\r\n- hi`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nludown.parser.parseFile(luContent1, log, locale)\r\n    .then(function(parsedContent) {\r\n        // Parsed LUIS object\r\n        console.log(JSON.stringify(parsedContent.LUISJsonStructure, 2, null));\r\n        // Parsed QnA content\r\n        console.log(JSON.stringify(parsedContent.qnaJsonStructure, 2, null));\r\n        // Additional files to parse\r\n        console.log(JSON.stringify(parsedContent.additionalFilesToParse, 2, null));\r\n    })\r\n    .catch(function(err) {\r\n        let errObj = new ludown.helperClasses.Exception(err);\r\n        // err is of type ludown.helperClasses.Exception. \r\n        // Possible error codes are available under ludown.helperEnums.errorCodes\r\n        if(errObj.errCode === ludown.helperEnums.errorCodes.INVALID_INPUT) {\r\n            // do something specific to this error code\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    })\r\n```\r\n\r\n## Validating parsed lu files\r\n\r\nYou can use the available validateLUISBlob() function to verify if the parsed LUIS blob is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst ludown = require('@microsoft/bf-lu');\r\nconst luContent = `# Greeting\r\n- hi {userName=bob}\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n    let parsedContent;\r\n    try {\r\n        parsedContent = await ludown.parser.parseFile(luContent, log, locale);\r\n    } catch (err) {\r\n        let errObj = new ludown.helperClasses.Exception(err);\r\n        // err is of type ludown.helperClasses.Exception. \r\n        // Possible error codes are available under ludown.helperEnums.errorCodes\r\n        if(errObj.errCode === ludown.helperEnums.errorCodes.INVALID_INPUT) {\r\n            // do something specific to this error code\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n    // validate the parsed luis content\r\n    ludown.parser.validateLUISBlob(parsedContent.LUISJsonStructure)\r\n        .then(res => res)\r\n        .catch(function(err) {\r\n            let exception = new ludown.helperClasses.Exception(err);\r\n            console.error('Oops, invalid LUIS content!\\n');\r\n            console.error(exception.errCode + ' : ' + exception.text);\r\n        })\r\n}\r\n\r\nparseContent();\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS and QnA maker JSON using constructMdFromLUIS() and constructMdFromQnA() methods. Here's an example code snippet. \r\n\r\n```js\r\nconst ludown = require('@microsoft/bf-lu')\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n    let parsedContent;\r\n    try {\r\n        parsedContent = await ludown.parser.parseFile(luContent, log, locale);\r\n    } catch (err) {\r\n        let errObj = new ludown.helperClasses.Exception(err);\r\n        // err is of type ludown.helperClasses.Exception. \r\n        // Possible error codes are available under ludown.helperEnums.errorCodes\r\n        if(errObj.errCode === ludown.helperEnums.errorCodes.INVALID_INPUT) {\r\n            // do something specific to this error code\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n    \r\n    if(await ludown.parser.validateLUISBlob(parsedContent.LUISJsonStructure)) {\r\n        // reconstruct md content\r\n        ludown.refresh.constructMdFromLUIS(parsedContent.LUISJsonStructure)\r\n        .then(function(result){\r\n            console.log(result);\r\n        })\r\n        .catch(function(err) {\r\n            let exception = new ludown.helperClasses.Exception(err);\r\n            console.error('Oops, invalid LUIS content!\\n');\r\n            console.error(exception.errCode + ' : ' + exception.text);\r\n        })\r\n    }\r\n\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the parseAndTranslate() method. Here's a code snippet.\r\n\r\n```js\r\nconst ludown = require('@microsoft/bf-lu');\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\nludown.translate.parseAndTranslate(luContent, subscriptionKey, targetLanguage, '', translateComments, translateLinkText, log)\r\n    .then(function(result) {\r\n        console.log(result);\r\n    })\r\n    .catch(function(err){\r\n        let exception = new ludown.helperClasses.Exception(err);\r\n        console.error(exception.errCode + ' : ' + exception.text);\r\n    })\r\n\r\n```\r\n\r\n\r\n# V2 API (Preview. Download from [here](https://botbuilder.myget.org/feed/botframework-cli/package/npm/@microsoft/bf-lu))\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","postpack":"","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.5","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"12.18.2","dependencies":{"chalk":"2.4.1","delay":"^4.3.0","tslib":"^1.10.0","antlr4":"^4.7.2","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","node-fetch":"~2.6.0","@oclif/errors":"~1.2.2","@oclif/command":"~1.5.19","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","@azure/ms-rest-azure-js":"2.0.1","@azure/cognitiveservices-luis-authoring":"4.0.0-preview.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^8.3.0","typescript":"^3.5.3","@oclif/test":"^1.2.5","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@oclif/tslint":"^3.1.1","@types/lodash":"~4.14.146"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.10.0-dev.20200729.4ac1279_1596007278517_0.8803421782055203","host":"s3://npm-registry-packages"}},"4.10.0-dev.20200730.3786d10":{"name":"@microsoft/bf-lu","version":"4.10.0-dev.20200730.3786d10","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.10.0-dev.20200730.3786d10","maintainers":[{"name":"botframework","email":"botframework@microsoft.com"},{"name":"microsoft","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"ed2863a4565bb3ae550d17e1e26ae9e6f6600cf0","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.10.0-dev.20200730.3786d10.tgz","fileCount":89,"integrity":"sha512-y5bvRmAZt7nC5+sr0P7tIBLYghieCoTb6CkZTXLezZk9vBTmpCVE0hxCWkb7hMB88iTsxaVR7VEQtr0RACjAFg==","signatures":[{"sig":"MEUCIQCGSsjlCGeCBFR8JQXETty2iTJrVtCVCsaKD8VzrGUNCAIgTRo4btb6nH3vJGfF03GB8oiHHai3sBFQ0LjTXfGjGWI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":831443,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfInSoCRA9TVsSAnZWagAAu10P/isJbYZALNJjhxdNUlhE\n32z8Hae2zuAnzPgRJnCtyVY9CYVgVT0fi4yJHLBqqnDyNhdVmHXju3liKyGE\ndeTy5PluT6ReDEsmncYlFeVBW8gT4cWayDhwT3HX7NDgl1CYLqyjUYV1d9/L\nETIaVTLUjByep3l+6ANFChYqgKVYvOLkW7Z+ceI5Wlmfq6hbn9zeY6dkpuJj\ncx3jElQMzzWdbTpgBcytyUdl6RNj0iYd0BPnrGtnQxmeku+H0iy7kqPPr6kR\nBPLmbdbwihx4+iVPOYF6fnGso30FxKMG+7tuGUh/f/bVI8Qx/4YBUC5u+36o\n5I9xpkQhdIEnEiWKSW0StlGyty/qL8/5SMEDGXLPHxqdUZKM+DYGn5HwVN4x\njijUjT90d697WxHNgAN7Jb+eRGFyaV0l02v5m8WA2pg60dYzF3SACC7BywB+\nCYsT0sfYB36LJDNmYGsYVPvaqJZjWh3I+1zqBft7r/tsxhdRn50k8WkAKRZs\nuakqmKqqskNK7gj4GB6sR8J4jbe2xEIRYs0j3M7Fah8ooGloWbpdwwOCzH+0\nkSwu0ITmKW3V06m5Y4djWepPGdJxidAVTZO0aIXwwIWtaEPqSztDE8fH0v1N\nQT6n4F+WjXhtF4HVK9tLLVE7ztzkvBS268dtqdFszIxjOrvQrYbAhWBSwJHt\n74kQ\r\n=Bp4Z\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.10.0-dev.20200730.3786d10.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n## Parsing lu files\r\nTo parse LU files, you can use the parseFile() method. \r\n\r\n```js\r\nconst ludown = require('@microsoft/bf-lu');\r\nconst luContent1 = `# Greeting\r\n- hi`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nludown.parser.parseFile(luContent1, log, locale)\r\n    .then(function(parsedContent) {\r\n        // Parsed LUIS object\r\n        console.log(JSON.stringify(parsedContent.LUISJsonStructure, 2, null));\r\n        // Parsed QnA content\r\n        console.log(JSON.stringify(parsedContent.qnaJsonStructure, 2, null));\r\n        // Additional files to parse\r\n        console.log(JSON.stringify(parsedContent.additionalFilesToParse, 2, null));\r\n    })\r\n    .catch(function(err) {\r\n        let errObj = new ludown.helperClasses.Exception(err);\r\n        // err is of type ludown.helperClasses.Exception. \r\n        // Possible error codes are available under ludown.helperEnums.errorCodes\r\n        if(errObj.errCode === ludown.helperEnums.errorCodes.INVALID_INPUT) {\r\n            // do something specific to this error code\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    })\r\n```\r\n\r\n## Validating parsed lu files\r\n\r\nYou can use the available validateLUISBlob() function to verify if the parsed LUIS blob is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst ludown = require('@microsoft/bf-lu');\r\nconst luContent = `# Greeting\r\n- hi {userName=bob}\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n    let parsedContent;\r\n    try {\r\n        parsedContent = await ludown.parser.parseFile(luContent, log, locale);\r\n    } catch (err) {\r\n        let errObj = new ludown.helperClasses.Exception(err);\r\n        // err is of type ludown.helperClasses.Exception. \r\n        // Possible error codes are available under ludown.helperEnums.errorCodes\r\n        if(errObj.errCode === ludown.helperEnums.errorCodes.INVALID_INPUT) {\r\n            // do something specific to this error code\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n    // validate the parsed luis content\r\n    ludown.parser.validateLUISBlob(parsedContent.LUISJsonStructure)\r\n        .then(res => res)\r\n        .catch(function(err) {\r\n            let exception = new ludown.helperClasses.Exception(err);\r\n            console.error('Oops, invalid LUIS content!\\n');\r\n            console.error(exception.errCode + ' : ' + exception.text);\r\n        })\r\n}\r\n\r\nparseContent();\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS and QnA maker JSON using constructMdFromLUIS() and constructMdFromQnA() methods. Here's an example code snippet. \r\n\r\n```js\r\nconst ludown = require('@microsoft/bf-lu')\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n    let parsedContent;\r\n    try {\r\n        parsedContent = await ludown.parser.parseFile(luContent, log, locale);\r\n    } catch (err) {\r\n        let errObj = new ludown.helperClasses.Exception(err);\r\n        // err is of type ludown.helperClasses.Exception. \r\n        // Possible error codes are available under ludown.helperEnums.errorCodes\r\n        if(errObj.errCode === ludown.helperEnums.errorCodes.INVALID_INPUT) {\r\n            // do something specific to this error code\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n    \r\n    if(await ludown.parser.validateLUISBlob(parsedContent.LUISJsonStructure)) {\r\n        // reconstruct md content\r\n        ludown.refresh.constructMdFromLUIS(parsedContent.LUISJsonStructure)\r\n        .then(function(result){\r\n            console.log(result);\r\n        })\r\n        .catch(function(err) {\r\n            let exception = new ludown.helperClasses.Exception(err);\r\n            console.error('Oops, invalid LUIS content!\\n');\r\n            console.error(exception.errCode + ' : ' + exception.text);\r\n        })\r\n    }\r\n\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the parseAndTranslate() method. Here's a code snippet.\r\n\r\n```js\r\nconst ludown = require('@microsoft/bf-lu');\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\nludown.translate.parseAndTranslate(luContent, subscriptionKey, targetLanguage, '', translateComments, translateLinkText, log)\r\n    .then(function(result) {\r\n        console.log(result);\r\n    })\r\n    .catch(function(err){\r\n        let exception = new ludown.helperClasses.Exception(err);\r\n        console.error(exception.errCode + ' : ' + exception.text);\r\n    })\r\n\r\n```\r\n\r\n\r\n# V2 API (Preview. Download from [here](https://botbuilder.myget.org/feed/botframework-cli/package/npm/@microsoft/bf-lu))\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","postpack":"","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.6","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"12.18.3","dependencies":{"chalk":"2.4.1","delay":"^4.3.0","tslib":"^1.10.0","antlr4":"^4.7.2","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","node-fetch":"~2.6.0","@oclif/errors":"~1.2.2","@oclif/command":"~1.5.19","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","@azure/ms-rest-azure-js":"2.0.1","@azure/cognitiveservices-luis-authoring":"4.0.0-preview.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^8.3.0","typescript":"^3.5.3","@oclif/test":"^1.2.5","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@oclif/tslint":"^3.1.1","@types/lodash":"~4.14.146"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.10.0-dev.20200730.3786d10_1596093607786_0.8494417618556123","host":"s3://npm-registry-packages"}},"4.10.0-dev.20200731.4aa848c":{"name":"@microsoft/bf-lu","version":"4.10.0-dev.20200731.4aa848c","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.10.0-dev.20200731.4aa848c","maintainers":[{"name":"botframework","email":"botframework@microsoft.com"},{"name":"microsoft","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"97c2e0d78d50a3ca473933a83b5e5988b70523b7","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.10.0-dev.20200731.4aa848c.tgz","fileCount":89,"integrity":"sha512-Dp6nDhKjSZ/tcKFb5jLlvQejmbQpKQR+I3AMoWaSStQwR1s/jxe1VvjaT8JI0FOnzYuRe8okkXMgsQWnbVLvuA==","signatures":[{"sig":"MEYCIQCG8i6W3L8Bil0LXgqoVLdrbN7p7OLvTa6ofuDVzOm8GAIhAMPL0foOU+nVM9lLO0w8a70Hme1Imz4lrCKCPzsfrDJs","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":835793,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfI8XiCRA9TVsSAnZWagAARDEP/2oSWZ5iBhI5EW0BRFYp\ndFHhq0yjyTEvG2S2lHiMh8l9ejNAJWW2tHeGMjcIaMM8V4o3PN0kDhorzmWH\nlX/6tKrkggYHmg6EMf3+x/rSaA7aWBRW8+gmnaKyAbvy9h+kLnIgEjaERFzE\nK4WFtx/05IDJaA9JbSehoJnSwAjG52165I2W0NkXYRp+u8w0FEQn/Wjqn3N7\nw8mtJ3vfdophZVCT7Desm3UQsDyHPkAVCgyh8XYRtSI/1ZryLhYrfLoqua+H\nMsRPtXA5xJfmKgDs5Krk0W9zn6L7dGJXg5qUnwQh/9FB9UhiVCDL10R3MzHv\n74/3m8fACdtFPr8ErFfhYGnAZMnXeqO1qii6/UK+XVDSuusbgj/1MOEq0VTe\nzka7fScCEWnMmK7fW9Uzatc240qS2C2rt0AK2LH8p6V4PsuzDlVomSGBmaxt\n3PlxkqiiXdblSB8038/kNYxX1LcS+9MfApm4Vm3Yw39PaVCtBpapcC/iJTDL\nCIhRbMAp120sep7CgWQoPLm9YURNszqReoKVGNOxSNxbcAbl9MAljb/f0XXX\nmR0g6B/FosSu7PsuLVIEwmPaVXdknNesnZm54OKU3zj5c/lqcqoelnboiKUH\nFzvBKYleRcZL5P6wF2unSuPmHM+dv2HQ0vdeqBUL7Q1nHuGZ+kb38jbtgjqT\n6LN0\r\n=Cg6C\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.10.0-dev.20200731.4aa848c.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n## Parsing lu files\r\nTo parse LU files, you can use the parseFile() method. \r\n\r\n```js\r\nconst ludown = require('@microsoft/bf-lu');\r\nconst luContent1 = `# Greeting\r\n- hi`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nludown.parser.parseFile(luContent1, log, locale)\r\n    .then(function(parsedContent) {\r\n        // Parsed LUIS object\r\n        console.log(JSON.stringify(parsedContent.LUISJsonStructure, 2, null));\r\n        // Parsed QnA content\r\n        console.log(JSON.stringify(parsedContent.qnaJsonStructure, 2, null));\r\n        // Additional files to parse\r\n        console.log(JSON.stringify(parsedContent.additionalFilesToParse, 2, null));\r\n    })\r\n    .catch(function(err) {\r\n        let errObj = new ludown.helperClasses.Exception(err);\r\n        // err is of type ludown.helperClasses.Exception. \r\n        // Possible error codes are available under ludown.helperEnums.errorCodes\r\n        if(errObj.errCode === ludown.helperEnums.errorCodes.INVALID_INPUT) {\r\n            // do something specific to this error code\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    })\r\n```\r\n\r\n## Validating parsed lu files\r\n\r\nYou can use the available validateLUISBlob() function to verify if the parsed LUIS blob is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst ludown = require('@microsoft/bf-lu');\r\nconst luContent = `# Greeting\r\n- hi {userName=bob}\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n    let parsedContent;\r\n    try {\r\n        parsedContent = await ludown.parser.parseFile(luContent, log, locale);\r\n    } catch (err) {\r\n        let errObj = new ludown.helperClasses.Exception(err);\r\n        // err is of type ludown.helperClasses.Exception. \r\n        // Possible error codes are available under ludown.helperEnums.errorCodes\r\n        if(errObj.errCode === ludown.helperEnums.errorCodes.INVALID_INPUT) {\r\n            // do something specific to this error code\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n    // validate the parsed luis content\r\n    ludown.parser.validateLUISBlob(parsedContent.LUISJsonStructure)\r\n        .then(res => res)\r\n        .catch(function(err) {\r\n            let exception = new ludown.helperClasses.Exception(err);\r\n            console.error('Oops, invalid LUIS content!\\n');\r\n            console.error(exception.errCode + ' : ' + exception.text);\r\n        })\r\n}\r\n\r\nparseContent();\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS and QnA maker JSON using constructMdFromLUIS() and constructMdFromQnA() methods. Here's an example code snippet. \r\n\r\n```js\r\nconst ludown = require('@microsoft/bf-lu')\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n    let parsedContent;\r\n    try {\r\n        parsedContent = await ludown.parser.parseFile(luContent, log, locale);\r\n    } catch (err) {\r\n        let errObj = new ludown.helperClasses.Exception(err);\r\n        // err is of type ludown.helperClasses.Exception. \r\n        // Possible error codes are available under ludown.helperEnums.errorCodes\r\n        if(errObj.errCode === ludown.helperEnums.errorCodes.INVALID_INPUT) {\r\n            // do something specific to this error code\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n    \r\n    if(await ludown.parser.validateLUISBlob(parsedContent.LUISJsonStructure)) {\r\n        // reconstruct md content\r\n        ludown.refresh.constructMdFromLUIS(parsedContent.LUISJsonStructure)\r\n        .then(function(result){\r\n            console.log(result);\r\n        })\r\n        .catch(function(err) {\r\n            let exception = new ludown.helperClasses.Exception(err);\r\n            console.error('Oops, invalid LUIS content!\\n');\r\n            console.error(exception.errCode + ' : ' + exception.text);\r\n        })\r\n    }\r\n\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the parseAndTranslate() method. Here's a code snippet.\r\n\r\n```js\r\nconst ludown = require('@microsoft/bf-lu');\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\nludown.translate.parseAndTranslate(luContent, subscriptionKey, targetLanguage, '', translateComments, translateLinkText, log)\r\n    .then(function(result) {\r\n        console.log(result);\r\n    })\r\n    .catch(function(err){\r\n        let exception = new ludown.helperClasses.Exception(err);\r\n        console.error(exception.errCode + ' : ' + exception.text);\r\n    })\r\n\r\n```\r\n\r\n\r\n# V2 API (Preview. Download from [here](https://botbuilder.myget.org/feed/botframework-cli/package/npm/@microsoft/bf-lu))\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","postpack":"","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.6","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"12.18.3","dependencies":{"chalk":"2.4.1","delay":"^4.3.0","tslib":"^1.10.0","antlr4":"^4.7.2","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","node-fetch":"~2.6.0","@oclif/errors":"~1.2.2","@oclif/command":"~1.5.19","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","@azure/ms-rest-azure-js":"2.0.1","@azure/cognitiveservices-luis-authoring":"4.0.0-preview.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^8.3.0","typescript":"^3.5.3","@oclif/test":"^1.2.5","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@oclif/tslint":"^3.1.1","@types/lodash":"~4.14.146"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.10.0-dev.20200731.4aa848c_1596179938435_0.5788889951895944","host":"s3://npm-registry-packages"}},"4.10.0-dev.20200804.10e144c":{"name":"@microsoft/bf-lu","version":"4.10.0-dev.20200804.10e144c","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.10.0-dev.20200804.10e144c","maintainers":[{"name":"botframework","email":"botframework@microsoft.com"},{"name":"microsoft","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"aa31c8cfa783cb94c32dd8ff60c2732c2dd0c391","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.10.0-dev.20200804.10e144c.tgz","fileCount":89,"integrity":"sha512-mfcVb92CxUrnOIs3IxK8QkU34U5Kg+q+1uEPLzxVL1LS0Hz2rDXusDmd5B1YD7f87mO7I4VSen0EL+3Gss7fAw==","signatures":[{"sig":"MEQCIHK6JphISGhmkpQnsTLM/IAZGRFjtrD5Qq+/A5KTHHtoAiAYJ62CU1a39RXcT3SfqFpHpJPHOCtfU0FTYjGCIrtgZA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":835701,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfKQv6CRA9TVsSAnZWagAAVhwP/2v88jLFEY24dzLArryx\nGZh4iEV5Dl9eFflaJ4Z1z9N7aJTisyl6r/PecgA0JzNytB7aH3+u5tRGvVlG\njfsrXWRPZn+kl/Zyb8C7IYnUx/XdbVV8qBgQdoz70qyVpIDPbifcrNwUpWv0\nfjmXJGwO/5vFptu2VtZMM6mTz/lvm6giA+Zg3PY6S2m235xdqJ+tCGhgurHX\nfU71TLVXqHVW/qimQ/K6WqD65mM/24nwH98Pui03UvAZCIu9wDQ6HduN7DZy\nutX9acEXqaTU0pQiQSZcaazg83Y7iMklIj/d3dszmxRwzM7baifQ8fVE6fyI\n3FAPAZRnZR7q3/ldvB9i7BHYycK8doTW8cMNSvIRuz/oQdFkldf0LpSCCbGu\n7cvBm1ePyWOimiOLR5VR/mPuzX9JwDH58okt3v9Pg99Cuwn6aWMTC64WCg4k\nCp37hjLS7zBMfwQrpQtWnAjQUZF42letLf3QgCrIMDLXd1d98vgKULlGeBAR\n1mhx+BE2FMv9NYqzabn493+DIuwsN/qTrRz0L6SSDrZ6A9oCqXmw3uIdhXCB\n0mGoiauBYsSesrE7qYqUBIr5GW9PgsCIxnke1of77T3H3fK4hjU/SXV0OhFP\nM1vKspv3tnWeAEQne3xPb3dR5Y/kuyyIgkuOgDShn0sRvQnPVWkFhekWKEGv\nXJNm\r\n=LtM+\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.10.0-dev.20200804.10e144c.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n\r\n\r\n# DEPRECATED V1 API\r\n## Parsing lu files\r\nTo parse LU files, you can use the parseFile() method. \r\n\r\n```js\r\nconst ludown = require('@microsoft/bf-lu');\r\nconst luContent1 = `# Greeting\r\n- hi`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nludown.parser.parseFile(luContent1, log, locale)\r\n    .then(function(parsedContent) {\r\n        // Parsed LUIS object\r\n        console.log(JSON.stringify(parsedContent.LUISJsonStructure, 2, null));\r\n        // Parsed QnA content\r\n        console.log(JSON.stringify(parsedContent.qnaJsonStructure, 2, null));\r\n        // Additional files to parse\r\n        console.log(JSON.stringify(parsedContent.additionalFilesToParse, 2, null));\r\n    })\r\n    .catch(function(err) {\r\n        let errObj = new ludown.helperClasses.Exception(err);\r\n        // err is of type ludown.helperClasses.Exception. \r\n        // Possible error codes are available under ludown.helperEnums.errorCodes\r\n        if(errObj.errCode === ludown.helperEnums.errorCodes.INVALID_INPUT) {\r\n            // do something specific to this error code\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    })\r\n```\r\n\r\n## Validating parsed lu files\r\n\r\nYou can use the available validateLUISBlob() function to verify if the parsed LUIS blob is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst ludown = require('@microsoft/bf-lu');\r\nconst luContent = `# Greeting\r\n- hi {userName=bob}\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n    let parsedContent;\r\n    try {\r\n        parsedContent = await ludown.parser.parseFile(luContent, log, locale);\r\n    } catch (err) {\r\n        let errObj = new ludown.helperClasses.Exception(err);\r\n        // err is of type ludown.helperClasses.Exception. \r\n        // Possible error codes are available under ludown.helperEnums.errorCodes\r\n        if(errObj.errCode === ludown.helperEnums.errorCodes.INVALID_INPUT) {\r\n            // do something specific to this error code\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n    // validate the parsed luis content\r\n    ludown.parser.validateLUISBlob(parsedContent.LUISJsonStructure)\r\n        .then(res => res)\r\n        .catch(function(err) {\r\n            let exception = new ludown.helperClasses.Exception(err);\r\n            console.error('Oops, invalid LUIS content!\\n');\r\n            console.error(exception.errCode + ' : ' + exception.text);\r\n        })\r\n}\r\n\r\nparseContent();\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS and QnA maker JSON using constructMdFromLUIS() and constructMdFromQnA() methods. Here's an example code snippet. \r\n\r\n```js\r\nconst ludown = require('@microsoft/bf-lu')\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n    let parsedContent;\r\n    try {\r\n        parsedContent = await ludown.parser.parseFile(luContent, log, locale);\r\n    } catch (err) {\r\n        let errObj = new ludown.helperClasses.Exception(err);\r\n        // err is of type ludown.helperClasses.Exception. \r\n        // Possible error codes are available under ludown.helperEnums.errorCodes\r\n        if(errObj.errCode === ludown.helperEnums.errorCodes.INVALID_INPUT) {\r\n            // do something specific to this error code\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n    \r\n    if(await ludown.parser.validateLUISBlob(parsedContent.LUISJsonStructure)) {\r\n        // reconstruct md content\r\n        ludown.refresh.constructMdFromLUIS(parsedContent.LUISJsonStructure)\r\n        .then(function(result){\r\n            console.log(result);\r\n        })\r\n        .catch(function(err) {\r\n            let exception = new ludown.helperClasses.Exception(err);\r\n            console.error('Oops, invalid LUIS content!\\n');\r\n            console.error(exception.errCode + ' : ' + exception.text);\r\n        })\r\n    }\r\n\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the parseAndTranslate() method. Here's a code snippet.\r\n\r\n```js\r\nconst ludown = require('@microsoft/bf-lu');\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\nludown.translate.parseAndTranslate(luContent, subscriptionKey, targetLanguage, '', translateComments, translateLinkText, log)\r\n    .then(function(result) {\r\n        console.log(result);\r\n    })\r\n    .catch(function(err){\r\n        let exception = new ludown.helperClasses.Exception(err);\r\n        console.error(exception.errCode + ' : ' + exception.text);\r\n    })\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","postpack":"","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.6","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"12.18.3","dependencies":{"chalk":"2.4.1","delay":"^4.3.0","tslib":"^1.10.0","antlr4":"^4.7.2","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","node-fetch":"~2.6.0","@oclif/errors":"~1.2.2","@oclif/command":"~1.5.19","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","@azure/ms-rest-azure-js":"2.0.1","@azure/cognitiveservices-luis-authoring":"4.0.0-preview.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^8.3.0","typescript":"^3.5.3","@oclif/test":"^1.2.5","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@oclif/tslint":"^3.1.1","@types/lodash":"~4.14.146"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.10.0-dev.20200804.10e144c_1596525562244_0.2540334805248423","host":"s3://npm-registry-packages"}},"4.10.0-dev.20200806.789391b":{"name":"@microsoft/bf-lu","version":"4.10.0-dev.20200806.789391b","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.10.0-dev.20200806.789391b","maintainers":[{"name":"botframework","email":"botframework@microsoft.com"},{"name":"microsoft","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"96b4069a3eaf7f424a7680a37a0da25e39b33c21","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.10.0-dev.20200806.789391b.tgz","fileCount":89,"integrity":"sha512-IzLxFLs0OlYFBZe/ydv+NZ6AhopZK5dwaAyQ/FMSMi2RDhsWIHdp9E7HYy0ogQVE+qEkBAnWeMYY6gqYX23GyQ==","signatures":[{"sig":"MEUCIHK3ByYeauc0K7jKdynKSfYcm/I8HLsXgYxptmYT+LmvAiEAlJ72IU/EKEHzMqm3W291guoCxVSxwKh1Ey3ltjuXSCg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":837690,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfK7CGCRA9TVsSAnZWagAAQawP/3i8BqUykFeyDS3CSGsq\n/dTgVxRbfG24KGbIoCAdTDFuGYkChxgTbnB5QMxhWHkOl6XDLtW0n40cwpWk\nE4s+yFOX7tToIITtQA904EU0zoSRtzYJ7dxWYoE0IUIRPEFo0teZftx+SiB2\nW6GkTrbNn/T/5okUaGQR31XtZyO6wT/mULs+akEg9o8HdWkNmlnXTOfUCv+y\nWd4uDwCNmoCkDzrokb0tsYVOFKg0oL6fIyKuDyzEpu9O16VREw11Jo7A3CwM\nPk8qBQNPF1q08EG3e81OJp1/VDLz1Wk1QS2OYNY0+pd2T6KprEUcG8BJOAB1\nIQ40c151o3/MNx0OJHn8m4EcwsunGhatCVs0rHJdkTHICF53zEwPXf3A5bsd\nNZPLlO12O7FBSM8Ogcjs9bNgZuWpvpgQ1Sn5d5qSmD6+LcfAve81K6vUoANf\nwRdK3QtZ1j/WQ9odrAqer7z+KPKZg7idO5WnVogx5U2vXuXLin/OtsPmBRl1\n0HJt0dlGmeITi1IhTriY2wQxrFYc350IMGswUtmbSWgS9zmYmtXl4+Et+Y+e\nm6KqVHL3MvauaioANEFfhP2dexZYUhAECt9Vc8kKdAPYoec47rRXych1ar5N\nbSvPoPFI1GgBdF17JDgmP6TAZzefyhrWav6egnZWx3lGrvJ87N0Aa0E+Gphi\nxpgm\r\n=8Pbi\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.10.0-dev.20200806.789391b.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n\r\n\r\n# DEPRECATED V1 API\r\n## Parsing lu files\r\nTo parse LU files, you can use the parseFile() method. \r\n\r\n```js\r\nconst ludown = require('@microsoft/bf-lu');\r\nconst luContent1 = `# Greeting\r\n- hi`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nludown.parser.parseFile(luContent1, log, locale)\r\n    .then(function(parsedContent) {\r\n        // Parsed LUIS object\r\n        console.log(JSON.stringify(parsedContent.LUISJsonStructure, 2, null));\r\n        // Parsed QnA content\r\n        console.log(JSON.stringify(parsedContent.qnaJsonStructure, 2, null));\r\n        // Additional files to parse\r\n        console.log(JSON.stringify(parsedContent.additionalFilesToParse, 2, null));\r\n    })\r\n    .catch(function(err) {\r\n        let errObj = new ludown.helperClasses.Exception(err);\r\n        // err is of type ludown.helperClasses.Exception. \r\n        // Possible error codes are available under ludown.helperEnums.errorCodes\r\n        if(errObj.errCode === ludown.helperEnums.errorCodes.INVALID_INPUT) {\r\n            // do something specific to this error code\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    })\r\n```\r\n\r\n## Validating parsed lu files\r\n\r\nYou can use the available validateLUISBlob() function to verify if the parsed LUIS blob is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst ludown = require('@microsoft/bf-lu');\r\nconst luContent = `# Greeting\r\n- hi {userName=bob}\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n    let parsedContent;\r\n    try {\r\n        parsedContent = await ludown.parser.parseFile(luContent, log, locale);\r\n    } catch (err) {\r\n        let errObj = new ludown.helperClasses.Exception(err);\r\n        // err is of type ludown.helperClasses.Exception. \r\n        // Possible error codes are available under ludown.helperEnums.errorCodes\r\n        if(errObj.errCode === ludown.helperEnums.errorCodes.INVALID_INPUT) {\r\n            // do something specific to this error code\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n    // validate the parsed luis content\r\n    ludown.parser.validateLUISBlob(parsedContent.LUISJsonStructure)\r\n        .then(res => res)\r\n        .catch(function(err) {\r\n            let exception = new ludown.helperClasses.Exception(err);\r\n            console.error('Oops, invalid LUIS content!\\n');\r\n            console.error(exception.errCode + ' : ' + exception.text);\r\n        })\r\n}\r\n\r\nparseContent();\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS and QnA maker JSON using constructMdFromLUIS() and constructMdFromQnA() methods. Here's an example code snippet. \r\n\r\n```js\r\nconst ludown = require('@microsoft/bf-lu')\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n    let parsedContent;\r\n    try {\r\n        parsedContent = await ludown.parser.parseFile(luContent, log, locale);\r\n    } catch (err) {\r\n        let errObj = new ludown.helperClasses.Exception(err);\r\n        // err is of type ludown.helperClasses.Exception. \r\n        // Possible error codes are available under ludown.helperEnums.errorCodes\r\n        if(errObj.errCode === ludown.helperEnums.errorCodes.INVALID_INPUT) {\r\n            // do something specific to this error code\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n    \r\n    if(await ludown.parser.validateLUISBlob(parsedContent.LUISJsonStructure)) {\r\n        // reconstruct md content\r\n        ludown.refresh.constructMdFromLUIS(parsedContent.LUISJsonStructure)\r\n        .then(function(result){\r\n            console.log(result);\r\n        })\r\n        .catch(function(err) {\r\n            let exception = new ludown.helperClasses.Exception(err);\r\n            console.error('Oops, invalid LUIS content!\\n');\r\n            console.error(exception.errCode + ' : ' + exception.text);\r\n        })\r\n    }\r\n\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the parseAndTranslate() method. Here's a code snippet.\r\n\r\n```js\r\nconst ludown = require('@microsoft/bf-lu');\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\nludown.translate.parseAndTranslate(luContent, subscriptionKey, targetLanguage, '', translateComments, translateLinkText, log)\r\n    .then(function(result) {\r\n        console.log(result);\r\n    })\r\n    .catch(function(err){\r\n        let exception = new ludown.helperClasses.Exception(err);\r\n        console.error(exception.errCode + ' : ' + exception.text);\r\n    })\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","postpack":"","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.6","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"12.18.3","dependencies":{"chalk":"2.4.1","delay":"^4.3.0","tslib":"^1.10.0","antlr4":"^4.7.2","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","node-fetch":"~2.6.0","@oclif/errors":"~1.2.2","@oclif/command":"~1.5.19","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","@azure/ms-rest-azure-js":"2.0.1","@azure/cognitiveservices-luis-authoring":"4.0.0-preview.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^8.3.0","typescript":"^3.5.3","@oclif/test":"^1.2.5","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@oclif/tslint":"^3.1.1","@types/lodash":"~4.14.146"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.10.0-dev.20200806.789391b_1596698757932_0.17135795369859408","host":"s3://npm-registry-packages"}},"4.10.0-dev.20200807.8f27460":{"name":"@microsoft/bf-lu","version":"4.10.0-dev.20200807.8f27460","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.10.0-dev.20200807.8f27460","maintainers":[{"name":"botframework","email":"botframework@microsoft.com"},{"name":"microsoft","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"b2575ff609639fde81776a8fcfc29b1abfc142d0","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.10.0-dev.20200807.8f27460.tgz","fileCount":89,"integrity":"sha512-1CvIvsAonbJpf+MiWQyw9uSDE/XxVffyMoro047pZBPPLin+X/tfpi877goSEpLRlAgi3/k5AUh5CmhcoXVZLw==","signatures":[{"sig":"MEUCIDw1btWQ4k+hTZDUx2rvomyDihQdPWiQ1gfYCMnpkp6DAiEA3575p5Th/DB1bfkXdgjoSHhWVHczw2SwkQ9oNDAe4BM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":839884,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfLQB3CRA9TVsSAnZWagAAEm0P/Al0RNPe7kjNNbT+eP1W\nJZIOUNsL/VTBTo53VilWomVSHNUeK6IVZKcUucmUwA+nOBXmnfNv3Fl80koF\nCTB6AoKC2vLPDpKoP1cPB8kqqxd16PmSCHuFQJduQwCQLYJLuYNWSUs2nM2A\nRefF4mxXlRvPd+tFK1c4GE/s4EJBEFPomt0ISGjBW6uWthK1lSEqUZ9rmqqG\nvR43FTtccwfS54lr5AL9PGfLHqlVXm6qDdrwt9L+7YRgkEIGdVjDe9ItFszo\n8QAkN8ml/m1tHPcXU6IAhVkwaHaUwiAgDksmavXU7w40iIuvR0VIRHW/Cq3U\nixKDEI/FV/VWBe5WbwwC6vRMHo4CY2OhQlBLsUMhKqIns3fI9HT+7NG7UF5h\nZzeNd8hKI9GtVjnKSDfrrL9TdOe2rCYkS4TjJxQ4jW6lfDO/SSFUX8gOzpED\nygOQ5FrW2VJcYsav298uWP09ef5eOLPJkq/xgnrREZgzUpFHVdG9b25Gu4/r\nAUSIyS0Zo7VfmCMsb3wZUt5gcJZKueCLei6ejP0UNGyOSwP82LPwP0pCK9iY\nLoNwxG/9hBDkwVWl5jZprklg80lPeK/yD2Bw3vuRd2pt+g3xqhrdbKzt78Y2\nuEGinAOECMHng4uAh2FCwzg1ors9SPkmT+NxM3PixPNnStZNmzrbRmv+sfU3\nd9Ci\r\n=pt+c\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.10.0-dev.20200807.8f27460.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n\r\n\r\n# DEPRECATED V1 API\r\n## Parsing lu files\r\nTo parse LU files, you can use the parseFile() method. \r\n\r\n```js\r\nconst ludown = require('@microsoft/bf-lu');\r\nconst luContent1 = `# Greeting\r\n- hi`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nludown.parser.parseFile(luContent1, log, locale)\r\n    .then(function(parsedContent) {\r\n        // Parsed LUIS object\r\n        console.log(JSON.stringify(parsedContent.LUISJsonStructure, 2, null));\r\n        // Parsed QnA content\r\n        console.log(JSON.stringify(parsedContent.qnaJsonStructure, 2, null));\r\n        // Additional files to parse\r\n        console.log(JSON.stringify(parsedContent.additionalFilesToParse, 2, null));\r\n    })\r\n    .catch(function(err) {\r\n        let errObj = new ludown.helperClasses.Exception(err);\r\n        // err is of type ludown.helperClasses.Exception. \r\n        // Possible error codes are available under ludown.helperEnums.errorCodes\r\n        if(errObj.errCode === ludown.helperEnums.errorCodes.INVALID_INPUT) {\r\n            // do something specific to this error code\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    })\r\n```\r\n\r\n## Validating parsed lu files\r\n\r\nYou can use the available validateLUISBlob() function to verify if the parsed LUIS blob is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst ludown = require('@microsoft/bf-lu');\r\nconst luContent = `# Greeting\r\n- hi {userName=bob}\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n    let parsedContent;\r\n    try {\r\n        parsedContent = await ludown.parser.parseFile(luContent, log, locale);\r\n    } catch (err) {\r\n        let errObj = new ludown.helperClasses.Exception(err);\r\n        // err is of type ludown.helperClasses.Exception. \r\n        // Possible error codes are available under ludown.helperEnums.errorCodes\r\n        if(errObj.errCode === ludown.helperEnums.errorCodes.INVALID_INPUT) {\r\n            // do something specific to this error code\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n    // validate the parsed luis content\r\n    ludown.parser.validateLUISBlob(parsedContent.LUISJsonStructure)\r\n        .then(res => res)\r\n        .catch(function(err) {\r\n            let exception = new ludown.helperClasses.Exception(err);\r\n            console.error('Oops, invalid LUIS content!\\n');\r\n            console.error(exception.errCode + ' : ' + exception.text);\r\n        })\r\n}\r\n\r\nparseContent();\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS and QnA maker JSON using constructMdFromLUIS() and constructMdFromQnA() methods. Here's an example code snippet. \r\n\r\n```js\r\nconst ludown = require('@microsoft/bf-lu')\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n    let parsedContent;\r\n    try {\r\n        parsedContent = await ludown.parser.parseFile(luContent, log, locale);\r\n    } catch (err) {\r\n        let errObj = new ludown.helperClasses.Exception(err);\r\n        // err is of type ludown.helperClasses.Exception. \r\n        // Possible error codes are available under ludown.helperEnums.errorCodes\r\n        if(errObj.errCode === ludown.helperEnums.errorCodes.INVALID_INPUT) {\r\n            // do something specific to this error code\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n    \r\n    if(await ludown.parser.validateLUISBlob(parsedContent.LUISJsonStructure)) {\r\n        // reconstruct md content\r\n        ludown.refresh.constructMdFromLUIS(parsedContent.LUISJsonStructure)\r\n        .then(function(result){\r\n            console.log(result);\r\n        })\r\n        .catch(function(err) {\r\n            let exception = new ludown.helperClasses.Exception(err);\r\n            console.error('Oops, invalid LUIS content!\\n');\r\n            console.error(exception.errCode + ' : ' + exception.text);\r\n        })\r\n    }\r\n\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the parseAndTranslate() method. Here's a code snippet.\r\n\r\n```js\r\nconst ludown = require('@microsoft/bf-lu');\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\nludown.translate.parseAndTranslate(luContent, subscriptionKey, targetLanguage, '', translateComments, translateLinkText, log)\r\n    .then(function(result) {\r\n        console.log(result);\r\n    })\r\n    .catch(function(err){\r\n        let exception = new ludown.helperClasses.Exception(err);\r\n        console.error(exception.errCode + ' : ' + exception.text);\r\n    })\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","postpack":"","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.6","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"12.18.3","dependencies":{"chalk":"2.4.1","delay":"^4.3.0","tslib":"^1.10.0","antlr4":"^4.7.2","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","node-fetch":"~2.6.0","@oclif/errors":"~1.2.2","@oclif/command":"~1.5.19","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","@azure/ms-rest-azure-js":"2.0.1","@azure/cognitiveservices-luis-authoring":"4.0.0-preview.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^8.3.0","typescript":"^3.5.3","@oclif/test":"^1.2.5","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@oclif/tslint":"^3.1.1","@types/lodash":"~4.14.146"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.10.0-dev.20200807.8f27460_1596784758607_0.6458968527043643","host":"s3://npm-registry-packages"}},"4.10.0-dev.20200808.5a7c973":{"name":"@microsoft/bf-lu","version":"4.10.0-dev.20200808.5a7c973","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.10.0-dev.20200808.5a7c973","maintainers":[{"name":"botframework","email":"botframework@microsoft.com"},{"name":"microsoft","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"5ef0741e48bc1ac6dc82afd3128777bde737d658","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.10.0-dev.20200808.5a7c973.tgz","fileCount":89,"integrity":"sha512-rrXGtaQcGuR8qCkDmLXxJrdPaYMnOq34hViz9ZkYh+wSIWaOgDjSbZ3/NwFcgmLAXFceajN9BQRYxhkosrJZMQ==","signatures":[{"sig":"MEUCIEWk9iGA4b9dJqf3p+IMvlzYcWw9z221AAIrN+ocEB2yAiEA9Hbwv1fBQHY5jx7GFYHDOqkwYfFBgNG6qciFMy0fRMM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":839884,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfLlHgCRA9TVsSAnZWagAAICAP/iYDf8yqU3Od+2dEkMiF\nDPdfCIK0Fd94Jvd+kVV9VDKzZo0EeGq+VDgKWerNkrCYp6BoFd/55ccDI8Ph\ny3bVqXhXXZxtLaYVZAJylSoEne71vVwigZOhJQ2m0P2/I1zCKBbhCyZ46bM1\npf7+Bu9VBRnnvPgoub+Kc8vn0yAUq+H3Xga+hyRnaQK6dHZmrLyP9L0CXpmj\nNa3fYbPrVaP9H2/s/snyp/mlORnnx4nD36hyojCNM2ZwGh6Lm9Jk4LIAOOH2\n7Dri11KBrRlFYQ97YYnJ9l4STgjwe7OzdGrnzPzmSIBRU0U+iSLHRMV/DkVf\nRbgGNtdBMoqy/B3E1eizT16DJTN8x9ObcF8Ykjkt3iFOab/7PIESwEpiZ8qt\n3cYJbUPl87K5uTuB20cWH57AwwTxdkr4/ZkHNlZafrNCpM4TdXu+QyKNXgNX\naFt6gSAjhHXmNZRVU1qHKLmQbE4OtkEynJ0HofC+E9rXUWS/6WB79na3osoQ\n4XnqobP+adq8QiuUWPKvHT+WaTVWD705vjxywkelOBOP+hU7aVQ7CWvqXs2J\nb5oBZL529IRdjcHIOBKYyx3GqdjxsSLIYtIg6Emm0eqedfiZvPjgC/5oBTM4\nT0LnA/0QVgHCKfnfH7ifNWdEUu4dpe7R+/S2bKgHNG+vUMD5QeRMjafA/epj\nxg/s\r\n=AJWt\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.10.0-dev.20200808.5a7c973.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n\r\n\r\n# DEPRECATED V1 API\r\n## Parsing lu files\r\nTo parse LU files, you can use the parseFile() method. \r\n\r\n```js\r\nconst ludown = require('@microsoft/bf-lu');\r\nconst luContent1 = `# Greeting\r\n- hi`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nludown.parser.parseFile(luContent1, log, locale)\r\n    .then(function(parsedContent) {\r\n        // Parsed LUIS object\r\n        console.log(JSON.stringify(parsedContent.LUISJsonStructure, 2, null));\r\n        // Parsed QnA content\r\n        console.log(JSON.stringify(parsedContent.qnaJsonStructure, 2, null));\r\n        // Additional files to parse\r\n        console.log(JSON.stringify(parsedContent.additionalFilesToParse, 2, null));\r\n    })\r\n    .catch(function(err) {\r\n        let errObj = new ludown.helperClasses.Exception(err);\r\n        // err is of type ludown.helperClasses.Exception. \r\n        // Possible error codes are available under ludown.helperEnums.errorCodes\r\n        if(errObj.errCode === ludown.helperEnums.errorCodes.INVALID_INPUT) {\r\n            // do something specific to this error code\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    })\r\n```\r\n\r\n## Validating parsed lu files\r\n\r\nYou can use the available validateLUISBlob() function to verify if the parsed LUIS blob is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst ludown = require('@microsoft/bf-lu');\r\nconst luContent = `# Greeting\r\n- hi {userName=bob}\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n    let parsedContent;\r\n    try {\r\n        parsedContent = await ludown.parser.parseFile(luContent, log, locale);\r\n    } catch (err) {\r\n        let errObj = new ludown.helperClasses.Exception(err);\r\n        // err is of type ludown.helperClasses.Exception. \r\n        // Possible error codes are available under ludown.helperEnums.errorCodes\r\n        if(errObj.errCode === ludown.helperEnums.errorCodes.INVALID_INPUT) {\r\n            // do something specific to this error code\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n    // validate the parsed luis content\r\n    ludown.parser.validateLUISBlob(parsedContent.LUISJsonStructure)\r\n        .then(res => res)\r\n        .catch(function(err) {\r\n            let exception = new ludown.helperClasses.Exception(err);\r\n            console.error('Oops, invalid LUIS content!\\n');\r\n            console.error(exception.errCode + ' : ' + exception.text);\r\n        })\r\n}\r\n\r\nparseContent();\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS and QnA maker JSON using constructMdFromLUIS() and constructMdFromQnA() methods. Here's an example code snippet. \r\n\r\n```js\r\nconst ludown = require('@microsoft/bf-lu')\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n    let parsedContent;\r\n    try {\r\n        parsedContent = await ludown.parser.parseFile(luContent, log, locale);\r\n    } catch (err) {\r\n        let errObj = new ludown.helperClasses.Exception(err);\r\n        // err is of type ludown.helperClasses.Exception. \r\n        // Possible error codes are available under ludown.helperEnums.errorCodes\r\n        if(errObj.errCode === ludown.helperEnums.errorCodes.INVALID_INPUT) {\r\n            // do something specific to this error code\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n    \r\n    if(await ludown.parser.validateLUISBlob(parsedContent.LUISJsonStructure)) {\r\n        // reconstruct md content\r\n        ludown.refresh.constructMdFromLUIS(parsedContent.LUISJsonStructure)\r\n        .then(function(result){\r\n            console.log(result);\r\n        })\r\n        .catch(function(err) {\r\n            let exception = new ludown.helperClasses.Exception(err);\r\n            console.error('Oops, invalid LUIS content!\\n');\r\n            console.error(exception.errCode + ' : ' + exception.text);\r\n        })\r\n    }\r\n\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the parseAndTranslate() method. Here's a code snippet.\r\n\r\n```js\r\nconst ludown = require('@microsoft/bf-lu');\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\nludown.translate.parseAndTranslate(luContent, subscriptionKey, targetLanguage, '', translateComments, translateLinkText, log)\r\n    .then(function(result) {\r\n        console.log(result);\r\n    })\r\n    .catch(function(err){\r\n        let exception = new ludown.helperClasses.Exception(err);\r\n        console.error(exception.errCode + ' : ' + exception.text);\r\n    })\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","postpack":"","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.6","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"12.18.3","dependencies":{"chalk":"2.4.1","delay":"^4.3.0","tslib":"^1.10.0","antlr4":"^4.7.2","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","node-fetch":"~2.6.0","@oclif/errors":"~1.2.2","@oclif/command":"~1.5.19","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","@azure/ms-rest-azure-js":"2.0.1","@azure/cognitiveservices-luis-authoring":"4.0.0-preview.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^8.3.0","typescript":"^3.5.3","@oclif/test":"^1.2.5","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@oclif/tslint":"^3.1.1","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.10.0-dev.20200808.5a7c973_1596871136167_0.6839012600768983","host":"s3://npm-registry-packages"}},"4.10.0-rc.20200811.e3d7c37":{"name":"@microsoft/bf-lu","version":"4.10.0-rc.20200811.e3d7c37","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.10.0-rc.20200811.e3d7c37","maintainers":[{"name":"botframework","email":"botframework@microsoft.com"},{"name":"microsoft","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"e4dd52b2d5ce63847c8b72ba970cd11ff7f03f30","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.10.0-rc.20200811.e3d7c37.tgz","fileCount":89,"integrity":"sha512-68zmMJT1uRiWDfMO38grciCj9Id0T4vUQs6yz660c63B48l6yRVhc1kMOJZWeg0K2V7zrrHhkUDdzaXtX0fBHA==","signatures":[{"sig":"MEYCIQCdbzjZHyHuSEU8pAs2zApk3CkzoUP0w4GTtr2AMmgbGwIhAN2kXAhW5DBeAYTKtX3ZIvFiC0JjZRaknP0Imb3XcOYb","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":839883,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfMyWcCRA9TVsSAnZWagAAve4QAJGnRsHbrg5biw9JZIuq\nAucbClp/+Z5yvR8COPkw58UHoPZd4QAVtr4puL9cyHdnZrFQVR0vQ6Fcgvyi\nh+rXsHFXdPporL0NLFhXy9UtHBTNEziDPcM01JbATXUf0Ir1luKZ5RLtXYUe\nuJZsuoDqEYhrecht1J5mVQiCOmw7oBvJcsIkYQOrdo2At8CKPBbl0ia5opRy\nayTTvcK4N+A6oTuoyOvucVeUF8P9OJbXEpLEFslJyYu4/3cQ3Ld9YCQx3WjE\nWplMeyv+ZaBo0U2GxKYp8cq8Dj+Xjd30CmJJMoox7R5Lx34saYbyyzzqKQCj\neZixwRfrnc92/tyJVjowJ/XYIBijphlrlfRdjhDT22XAwSZ8u+Axjot7mxsp\nJhrFdy5d/VQtuOxiGizhLM8O0TPXzXL6WFxv+DWJRuIazfHpLHUT/FBZEIcC\ncCqMX1P2h4hPPqpiKiqMRwVX50Cb0H9uXoxSCsK2yFq1PSISkB98IbqBKH1U\nnFGfi7Aq1nojeyddvxI+bravRJubU43fbYxLwPi4EGbO4ItvAwDKQLrfa/Rt\n8Nf/vR3Wo8NFZycGOmZZrO2y01RCSkDdWJ09yV/J+qdi+dhOQ/fZYo0FzWNP\n5YxIzqGAw+djwNwX5Ixqti2F8zGScQNnx9MPfih0Vv5eh8L/+pQd7pSxzoro\nLoar\r\n=1S+4\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-rc/drop/microsoft-bf-lu-4.10.0-rc.20200811.e3d7c37.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n\r\n\r\n# DEPRECATED V1 API\r\n## Parsing lu files\r\nTo parse LU files, you can use the parseFile() method. \r\n\r\n```js\r\nconst ludown = require('@microsoft/bf-lu');\r\nconst luContent1 = `# Greeting\r\n- hi`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nludown.parser.parseFile(luContent1, log, locale)\r\n    .then(function(parsedContent) {\r\n        // Parsed LUIS object\r\n        console.log(JSON.stringify(parsedContent.LUISJsonStructure, 2, null));\r\n        // Parsed QnA content\r\n        console.log(JSON.stringify(parsedContent.qnaJsonStructure, 2, null));\r\n        // Additional files to parse\r\n        console.log(JSON.stringify(parsedContent.additionalFilesToParse, 2, null));\r\n    })\r\n    .catch(function(err) {\r\n        let errObj = new ludown.helperClasses.Exception(err);\r\n        // err is of type ludown.helperClasses.Exception. \r\n        // Possible error codes are available under ludown.helperEnums.errorCodes\r\n        if(errObj.errCode === ludown.helperEnums.errorCodes.INVALID_INPUT) {\r\n            // do something specific to this error code\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    })\r\n```\r\n\r\n## Validating parsed lu files\r\n\r\nYou can use the available validateLUISBlob() function to verify if the parsed LUIS blob is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst ludown = require('@microsoft/bf-lu');\r\nconst luContent = `# Greeting\r\n- hi {userName=bob}\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n    let parsedContent;\r\n    try {\r\n        parsedContent = await ludown.parser.parseFile(luContent, log, locale);\r\n    } catch (err) {\r\n        let errObj = new ludown.helperClasses.Exception(err);\r\n        // err is of type ludown.helperClasses.Exception. \r\n        // Possible error codes are available under ludown.helperEnums.errorCodes\r\n        if(errObj.errCode === ludown.helperEnums.errorCodes.INVALID_INPUT) {\r\n            // do something specific to this error code\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n    // validate the parsed luis content\r\n    ludown.parser.validateLUISBlob(parsedContent.LUISJsonStructure)\r\n        .then(res => res)\r\n        .catch(function(err) {\r\n            let exception = new ludown.helperClasses.Exception(err);\r\n            console.error('Oops, invalid LUIS content!\\n');\r\n            console.error(exception.errCode + ' : ' + exception.text);\r\n        })\r\n}\r\n\r\nparseContent();\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS and QnA maker JSON using constructMdFromLUIS() and constructMdFromQnA() methods. Here's an example code snippet. \r\n\r\n```js\r\nconst ludown = require('@microsoft/bf-lu')\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n    let parsedContent;\r\n    try {\r\n        parsedContent = await ludown.parser.parseFile(luContent, log, locale);\r\n    } catch (err) {\r\n        let errObj = new ludown.helperClasses.Exception(err);\r\n        // err is of type ludown.helperClasses.Exception. \r\n        // Possible error codes are available under ludown.helperEnums.errorCodes\r\n        if(errObj.errCode === ludown.helperEnums.errorCodes.INVALID_INPUT) {\r\n            // do something specific to this error code\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n    \r\n    if(await ludown.parser.validateLUISBlob(parsedContent.LUISJsonStructure)) {\r\n        // reconstruct md content\r\n        ludown.refresh.constructMdFromLUIS(parsedContent.LUISJsonStructure)\r\n        .then(function(result){\r\n            console.log(result);\r\n        })\r\n        .catch(function(err) {\r\n            let exception = new ludown.helperClasses.Exception(err);\r\n            console.error('Oops, invalid LUIS content!\\n');\r\n            console.error(exception.errCode + ' : ' + exception.text);\r\n        })\r\n    }\r\n\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the parseAndTranslate() method. Here's a code snippet.\r\n\r\n```js\r\nconst ludown = require('@microsoft/bf-lu');\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\nludown.translate.parseAndTranslate(luContent, subscriptionKey, targetLanguage, '', translateComments, translateLinkText, log)\r\n    .then(function(result) {\r\n        console.log(result);\r\n    })\r\n    .catch(function(err){\r\n        let exception = new ludown.helperClasses.Exception(err);\r\n        console.error(exception.errCode + ' : ' + exception.text);\r\n    })\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","postpack":"","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.6","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"12.18.3","dependencies":{"chalk":"2.4.1","delay":"^4.3.0","tslib":"^1.10.0","antlr4":"^4.7.2","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","node-fetch":"~2.6.0","@oclif/errors":"~1.2.2","@oclif/command":"~1.5.19","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","@azure/ms-rest-azure-js":"2.0.1","@azure/cognitiveservices-luis-authoring":"4.0.0-preview.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^8.3.0","typescript":"^3.5.3","@oclif/test":"^1.2.5","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@oclif/tslint":"^3.1.1","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.10.0-rc.20200811.e3d7c37_1597187484127_0.917883334600716","host":"s3://npm-registry-packages"}},"4.11.0-dev.20200812.fedc732":{"name":"@microsoft/bf-lu","version":"4.11.0-dev.20200812.fedc732","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.11.0-dev.20200812.fedc732","maintainers":[{"name":"botframework","email":"botframework@microsoft.com"},{"name":"microsoft","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"109af9b54786b883c770c0f3f0eb3769ce6f3e5d","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.11.0-dev.20200812.fedc732.tgz","fileCount":89,"integrity":"sha512-H50tAHJfmlkGn/HMO/7u+4sTatRwkc0+9Zf/Iokqwji9jO6g2CQIQb0uUhU64svnTPBe84kRmxrSQ6uhWGtpvg==","signatures":[{"sig":"MEUCIHaeD5qYJr2+rIM0M5kBFFsjJ8H3hSVs9gGJnz9UX5nIAiEAkWqMe503xC9ZaqG7eS3Zmj28x9Y6052aqfxcvHUdF/Y=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":839884,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfM5eYCRA9TVsSAnZWagAA0KcP/ikyXTBdTEt/2vP05KYC\nEH2LHeoP4zyl//nFRz04r8ZTQyPztGLgq3ksQxy195mxAHXERnbgxQCzzMAO\nlA7aM0aWsg6+NfQebxlz6P/ht3kw18SSf2TvN3ateYvYi9B4MzpO6+puJpXE\nlfaAoI3RFC9ukgtIX2tx87sHyimQ5uQZ8PEzVBG2yYLP4yI+4dMaffAI092r\nCC2Ob/wzlOrxqSEE2zHdEGGy39VaTrRiF1NnxS7mlKs1m6nOurjmML8+OMWG\nLSZ36Sv4m4sjm7sQK6sZ26MXg88ss//UMswI1UBlH5gNYKDQroAYTFEgaOx+\nrH1bS0iLq12YZZ5Xgw0DfHaRAoiwmMunxli74rGbPtUaOCBfXYfPMjHcRZSE\nKZm1e1Z1Jltrjg4hhmRK0sfBH1ublqmYmVOdae/qR/OMl2EUgq/o3cv0jbjj\nI6V67F67OA70IVXMPjoUPXfy6HrE9qdk868ZWrZLaujBut/y2p592GytodF9\nFHyASMlLIp9iOFxoMgrUnVgtV/Y0JUydgOHlFfmzqivoSjRo7b6Ret9+QA2k\n2/KWZyf9MDW8X6116nh5roMmVxYnzRpNbN1EDZERLbEu8sK7JpLdUgc5KNQa\n2tnmkTBOcPIm9mCHHi9r1+hFPuhFRNiYrENJ821rcEapoOyz2xsBwMBM+uPP\nEoiK\r\n=dRCB\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.11.0-dev.20200812.fedc732.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n\r\n\r\n# DEPRECATED V1 API\r\n## Parsing lu files\r\nTo parse LU files, you can use the parseFile() method. \r\n\r\n```js\r\nconst ludown = require('@microsoft/bf-lu');\r\nconst luContent1 = `# Greeting\r\n- hi`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nludown.parser.parseFile(luContent1, log, locale)\r\n    .then(function(parsedContent) {\r\n        // Parsed LUIS object\r\n        console.log(JSON.stringify(parsedContent.LUISJsonStructure, 2, null));\r\n        // Parsed QnA content\r\n        console.log(JSON.stringify(parsedContent.qnaJsonStructure, 2, null));\r\n        // Additional files to parse\r\n        console.log(JSON.stringify(parsedContent.additionalFilesToParse, 2, null));\r\n    })\r\n    .catch(function(err) {\r\n        let errObj = new ludown.helperClasses.Exception(err);\r\n        // err is of type ludown.helperClasses.Exception. \r\n        // Possible error codes are available under ludown.helperEnums.errorCodes\r\n        if(errObj.errCode === ludown.helperEnums.errorCodes.INVALID_INPUT) {\r\n            // do something specific to this error code\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    })\r\n```\r\n\r\n## Validating parsed lu files\r\n\r\nYou can use the available validateLUISBlob() function to verify if the parsed LUIS blob is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst ludown = require('@microsoft/bf-lu');\r\nconst luContent = `# Greeting\r\n- hi {userName=bob}\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n    let parsedContent;\r\n    try {\r\n        parsedContent = await ludown.parser.parseFile(luContent, log, locale);\r\n    } catch (err) {\r\n        let errObj = new ludown.helperClasses.Exception(err);\r\n        // err is of type ludown.helperClasses.Exception. \r\n        // Possible error codes are available under ludown.helperEnums.errorCodes\r\n        if(errObj.errCode === ludown.helperEnums.errorCodes.INVALID_INPUT) {\r\n            // do something specific to this error code\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n    // validate the parsed luis content\r\n    ludown.parser.validateLUISBlob(parsedContent.LUISJsonStructure)\r\n        .then(res => res)\r\n        .catch(function(err) {\r\n            let exception = new ludown.helperClasses.Exception(err);\r\n            console.error('Oops, invalid LUIS content!\\n');\r\n            console.error(exception.errCode + ' : ' + exception.text);\r\n        })\r\n}\r\n\r\nparseContent();\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS and QnA maker JSON using constructMdFromLUIS() and constructMdFromQnA() methods. Here's an example code snippet. \r\n\r\n```js\r\nconst ludown = require('@microsoft/bf-lu')\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n    let parsedContent;\r\n    try {\r\n        parsedContent = await ludown.parser.parseFile(luContent, log, locale);\r\n    } catch (err) {\r\n        let errObj = new ludown.helperClasses.Exception(err);\r\n        // err is of type ludown.helperClasses.Exception. \r\n        // Possible error codes are available under ludown.helperEnums.errorCodes\r\n        if(errObj.errCode === ludown.helperEnums.errorCodes.INVALID_INPUT) {\r\n            // do something specific to this error code\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n    \r\n    if(await ludown.parser.validateLUISBlob(parsedContent.LUISJsonStructure)) {\r\n        // reconstruct md content\r\n        ludown.refresh.constructMdFromLUIS(parsedContent.LUISJsonStructure)\r\n        .then(function(result){\r\n            console.log(result);\r\n        })\r\n        .catch(function(err) {\r\n            let exception = new ludown.helperClasses.Exception(err);\r\n            console.error('Oops, invalid LUIS content!\\n');\r\n            console.error(exception.errCode + ' : ' + exception.text);\r\n        })\r\n    }\r\n\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the parseAndTranslate() method. Here's a code snippet.\r\n\r\n```js\r\nconst ludown = require('@microsoft/bf-lu');\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\nludown.translate.parseAndTranslate(luContent, subscriptionKey, targetLanguage, '', translateComments, translateLinkText, log)\r\n    .then(function(result) {\r\n        console.log(result);\r\n    })\r\n    .catch(function(err){\r\n        let exception = new ludown.helperClasses.Exception(err);\r\n        console.error(exception.errCode + ' : ' + exception.text);\r\n    })\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","postpack":"","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.6","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"12.18.3","dependencies":{"chalk":"2.4.1","delay":"^4.3.0","tslib":"^1.10.0","antlr4":"^4.7.2","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","node-fetch":"~2.6.0","@oclif/errors":"~1.2.2","@oclif/command":"~1.5.19","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","@azure/ms-rest-azure-js":"2.0.1","@azure/cognitiveservices-luis-authoring":"4.0.0-preview.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^8.3.0","typescript":"^3.5.3","@oclif/test":"^1.2.5","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@oclif/tslint":"^3.1.1","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.11.0-dev.20200812.fedc732_1597216664210_0.3323477718464083","host":"s3://npm-registry-packages"}},"4.11.0-dev.20200812.46ecaa3":{"name":"@microsoft/bf-lu","version":"4.11.0-dev.20200812.46ecaa3","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.11.0-dev.20200812.46ecaa3","maintainers":[{"name":"botframework","email":"botframework@microsoft.com"},{"name":"microsoft","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"5548e7ed72d06a40695643dd486db9947f7e0f55","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.11.0-dev.20200812.46ecaa3.tgz","fileCount":89,"integrity":"sha512-RyWaZ1nWsoeSG9eW4pEdOZa9WhjuzIjzRk0vaFmhYFAUdJ7CjTqhD60/HxCEMSq2ii1Wqm+KZk2Sy11ZYxZOtA==","signatures":[{"sig":"MEYCIQD/mrlsg1EwhCBlYO6rNV8eeEM4KEJZ+aQFUp4Biq02CwIhAI9QpMQMW6LyqNB00Nk3npWUrw8D1ICVPE6JFbMPIL80","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":839884,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfNGfECRA9TVsSAnZWagAANtwQAJkHQu+RG3sH0XxfruzD\npFtoSntzXKFUHJsOMTI1snUuLO1EqfZn69eEwCeE4eimF215J+WKN9eUp90+\n6f7OAbL89kikkq3G9MeEyzEDUvmbcnF890epXc0hfsE6TSAWUQT1Jptek2kz\naDy8tqB4sZovt0LUjRIUuLgrQtGCd5kSNFdbvxuUYmBH1ZZTz2l8t0YjWnKv\nPvXMxT9e6mJOQZJGF+SvlpXU2fZr+DTt5I/LDAZufXhBKF7Y6Jx91wWXRoxY\nENUECoon2IQnLLrsgTaZ8Y+EUZNuxRrzPxk29uPJcJCAJzz0JX+tvG7b8G0q\neG84NPzTqMt7oy1uE5zXC6Ym1sqmrr2gTIMtEYWnW4yNNEbHc+tVKdfhZpUV\nP8fAdU/f1OU4fsci4nEQ+SECB24r4CfZb+w2Gn5WPyeamSPWnBcIxtPhSqnP\nOwCavTcfHAjTr0Ue1AhPbE6BP1+BDeQKntwWUFee8k5TvR6KiGqWduUHxbSD\ndLRYyS35Qbn23suJFeT6O70R/xpD5E9eGWjpAy3ph1ooH9WYkZW38zKy/dxE\n1m9sDvbZKqLSptkKOaWYg8A8dqZsni4dm4jVzaq6MrDleOrFfDSYGAgrlhHj\nbpyLaNO+M0mVDMZjgJIxi4LeurTiWx2SY25DzOn0KNoIiRfWGesZZF2OcreQ\n1Wrv\r\n=fggG\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.11.0-dev.20200812.46ecaa3.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n\r\n\r\n# DEPRECATED V1 API\r\n## Parsing lu files\r\nTo parse LU files, you can use the parseFile() method. \r\n\r\n```js\r\nconst ludown = require('@microsoft/bf-lu');\r\nconst luContent1 = `# Greeting\r\n- hi`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nludown.parser.parseFile(luContent1, log, locale)\r\n    .then(function(parsedContent) {\r\n        // Parsed LUIS object\r\n        console.log(JSON.stringify(parsedContent.LUISJsonStructure, 2, null));\r\n        // Parsed QnA content\r\n        console.log(JSON.stringify(parsedContent.qnaJsonStructure, 2, null));\r\n        // Additional files to parse\r\n        console.log(JSON.stringify(parsedContent.additionalFilesToParse, 2, null));\r\n    })\r\n    .catch(function(err) {\r\n        let errObj = new ludown.helperClasses.Exception(err);\r\n        // err is of type ludown.helperClasses.Exception. \r\n        // Possible error codes are available under ludown.helperEnums.errorCodes\r\n        if(errObj.errCode === ludown.helperEnums.errorCodes.INVALID_INPUT) {\r\n            // do something specific to this error code\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    })\r\n```\r\n\r\n## Validating parsed lu files\r\n\r\nYou can use the available validateLUISBlob() function to verify if the parsed LUIS blob is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst ludown = require('@microsoft/bf-lu');\r\nconst luContent = `# Greeting\r\n- hi {userName=bob}\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n    let parsedContent;\r\n    try {\r\n        parsedContent = await ludown.parser.parseFile(luContent, log, locale);\r\n    } catch (err) {\r\n        let errObj = new ludown.helperClasses.Exception(err);\r\n        // err is of type ludown.helperClasses.Exception. \r\n        // Possible error codes are available under ludown.helperEnums.errorCodes\r\n        if(errObj.errCode === ludown.helperEnums.errorCodes.INVALID_INPUT) {\r\n            // do something specific to this error code\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n    // validate the parsed luis content\r\n    ludown.parser.validateLUISBlob(parsedContent.LUISJsonStructure)\r\n        .then(res => res)\r\n        .catch(function(err) {\r\n            let exception = new ludown.helperClasses.Exception(err);\r\n            console.error('Oops, invalid LUIS content!\\n');\r\n            console.error(exception.errCode + ' : ' + exception.text);\r\n        })\r\n}\r\n\r\nparseContent();\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS and QnA maker JSON using constructMdFromLUIS() and constructMdFromQnA() methods. Here's an example code snippet. \r\n\r\n```js\r\nconst ludown = require('@microsoft/bf-lu')\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n    let parsedContent;\r\n    try {\r\n        parsedContent = await ludown.parser.parseFile(luContent, log, locale);\r\n    } catch (err) {\r\n        let errObj = new ludown.helperClasses.Exception(err);\r\n        // err is of type ludown.helperClasses.Exception. \r\n        // Possible error codes are available under ludown.helperEnums.errorCodes\r\n        if(errObj.errCode === ludown.helperEnums.errorCodes.INVALID_INPUT) {\r\n            // do something specific to this error code\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n    \r\n    if(await ludown.parser.validateLUISBlob(parsedContent.LUISJsonStructure)) {\r\n        // reconstruct md content\r\n        ludown.refresh.constructMdFromLUIS(parsedContent.LUISJsonStructure)\r\n        .then(function(result){\r\n            console.log(result);\r\n        })\r\n        .catch(function(err) {\r\n            let exception = new ludown.helperClasses.Exception(err);\r\n            console.error('Oops, invalid LUIS content!\\n');\r\n            console.error(exception.errCode + ' : ' + exception.text);\r\n        })\r\n    }\r\n\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the parseAndTranslate() method. Here's a code snippet.\r\n\r\n```js\r\nconst ludown = require('@microsoft/bf-lu');\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\nludown.translate.parseAndTranslate(luContent, subscriptionKey, targetLanguage, '', translateComments, translateLinkText, log)\r\n    .then(function(result) {\r\n        console.log(result);\r\n    })\r\n    .catch(function(err){\r\n        let exception = new ludown.helperClasses.Exception(err);\r\n        console.error(exception.errCode + ' : ' + exception.text);\r\n    })\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","postpack":"","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.6","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"12.18.3","dependencies":{"chalk":"2.4.1","delay":"^4.3.0","tslib":"^1.10.0","antlr4":"^4.7.2","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","node-fetch":"~2.6.0","@oclif/errors":"~1.2.2","@oclif/command":"~1.5.19","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","@azure/ms-rest-azure-js":"2.0.1","@azure/cognitiveservices-luis-authoring":"4.0.0-preview.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^8.3.0","typescript":"^3.5.3","@oclif/test":"^1.2.5","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@oclif/tslint":"^3.1.1","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.11.0-dev.20200812.46ecaa3_1597269955643_0.2017145156672817","host":"s3://npm-registry-packages"}},"4.11.0-dev.20200813.46ecaa3":{"name":"@microsoft/bf-lu","version":"4.11.0-dev.20200813.46ecaa3","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.11.0-dev.20200813.46ecaa3","maintainers":[{"name":"botframework","email":"botframework@microsoft.com"},{"name":"microsoft","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"673306392bbb5b74c26ff1309088494a209c5b90","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.11.0-dev.20200813.46ecaa3.tgz","fileCount":89,"integrity":"sha512-jVryDA0gL7SIcEdmN9Wm+T5/LwcvpwG+pJeupDd7UCm6h4hNZGivLaqpk6/zgoz2EcwywkbA0f7hUddIvP4lOw==","signatures":[{"sig":"MEUCIQCqP19ke6JpK+tZY4SnOpH9n0RYMNuCafmyCUEzysHyogIgZwLZnflHPmUACx7VufdSniYHWuza1SJheXFe/BT+Gd8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":839884,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfNOl5CRA9TVsSAnZWagAA2PYP+wVCPTQJqfX/34YDXewO\nXX1MoQg0evVfCFSnzTXL/JzsoD3uHG26LtIsK1bCZFBMEg0j/0naCF++HwZ7\nrMOsyu7vsbkiCT5TObUKvX8Sd5cuTNUGtuo+NNYMFcwCtYyNoOrAIpaKLLJa\nD+h/4E2Dnanz5F1UZiDT2P+eWDVcmqe3w1Xx3YkO6dVqlYcBYRoyQ6BjCnm3\nKmFxR9HoaLKmrib8b2sAeHmYIPG4GoD3PA32Ql2SO1Pfts0VA4UARWtTcD5A\nayQ9L0NhYxlZPGjN9+gzms5dpdAtKVocGXNkvfj7NSH4wd8POCmVtK5EktKL\nhCiakYMHUNWpq22Ule+0UvBP+StRcRvPqwkjhG8vggRdffH2+j1ud0ImNC1u\nwbDjInbn8DQ1MwrmYTjVvsYnRVqIhPJmb0dOTigwQW7XAB0sUg3lEQmHF6rT\npbLK08H9e+CNklj6tBxJ1WJvhggLA1X+Llw970i68elg0DN4+L/PM48DStho\nz3P10lpNYk914FP+Gf+kBzQnPUkxbWJPBaXUWITk90wlZXHuDxYv8igJwI3K\nZe/aHamE//M4fk0nmqmma1gAQPMFPLHGEo5SlcyE5rzJgJmbEbBjG7WYIhQ8\nkCym4iCq1DlwmndqU/cuHZcJKb+nIbxpECxevUppXKD5kqmPc9O/8BjHmTnn\n7Rrc\r\n=XZm0\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.11.0-dev.20200813.46ecaa3.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n\r\n\r\n# DEPRECATED V1 API\r\n## Parsing lu files\r\nTo parse LU files, you can use the parseFile() method. \r\n\r\n```js\r\nconst ludown = require('@microsoft/bf-lu');\r\nconst luContent1 = `# Greeting\r\n- hi`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nludown.parser.parseFile(luContent1, log, locale)\r\n    .then(function(parsedContent) {\r\n        // Parsed LUIS object\r\n        console.log(JSON.stringify(parsedContent.LUISJsonStructure, 2, null));\r\n        // Parsed QnA content\r\n        console.log(JSON.stringify(parsedContent.qnaJsonStructure, 2, null));\r\n        // Additional files to parse\r\n        console.log(JSON.stringify(parsedContent.additionalFilesToParse, 2, null));\r\n    })\r\n    .catch(function(err) {\r\n        let errObj = new ludown.helperClasses.Exception(err);\r\n        // err is of type ludown.helperClasses.Exception. \r\n        // Possible error codes are available under ludown.helperEnums.errorCodes\r\n        if(errObj.errCode === ludown.helperEnums.errorCodes.INVALID_INPUT) {\r\n            // do something specific to this error code\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    })\r\n```\r\n\r\n## Validating parsed lu files\r\n\r\nYou can use the available validateLUISBlob() function to verify if the parsed LUIS blob is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst ludown = require('@microsoft/bf-lu');\r\nconst luContent = `# Greeting\r\n- hi {userName=bob}\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n    let parsedContent;\r\n    try {\r\n        parsedContent = await ludown.parser.parseFile(luContent, log, locale);\r\n    } catch (err) {\r\n        let errObj = new ludown.helperClasses.Exception(err);\r\n        // err is of type ludown.helperClasses.Exception. \r\n        // Possible error codes are available under ludown.helperEnums.errorCodes\r\n        if(errObj.errCode === ludown.helperEnums.errorCodes.INVALID_INPUT) {\r\n            // do something specific to this error code\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n    // validate the parsed luis content\r\n    ludown.parser.validateLUISBlob(parsedContent.LUISJsonStructure)\r\n        .then(res => res)\r\n        .catch(function(err) {\r\n            let exception = new ludown.helperClasses.Exception(err);\r\n            console.error('Oops, invalid LUIS content!\\n');\r\n            console.error(exception.errCode + ' : ' + exception.text);\r\n        })\r\n}\r\n\r\nparseContent();\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS and QnA maker JSON using constructMdFromLUIS() and constructMdFromQnA() methods. Here's an example code snippet. \r\n\r\n```js\r\nconst ludown = require('@microsoft/bf-lu')\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n    let parsedContent;\r\n    try {\r\n        parsedContent = await ludown.parser.parseFile(luContent, log, locale);\r\n    } catch (err) {\r\n        let errObj = new ludown.helperClasses.Exception(err);\r\n        // err is of type ludown.helperClasses.Exception. \r\n        // Possible error codes are available under ludown.helperEnums.errorCodes\r\n        if(errObj.errCode === ludown.helperEnums.errorCodes.INVALID_INPUT) {\r\n            // do something specific to this error code\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n    \r\n    if(await ludown.parser.validateLUISBlob(parsedContent.LUISJsonStructure)) {\r\n        // reconstruct md content\r\n        ludown.refresh.constructMdFromLUIS(parsedContent.LUISJsonStructure)\r\n        .then(function(result){\r\n            console.log(result);\r\n        })\r\n        .catch(function(err) {\r\n            let exception = new ludown.helperClasses.Exception(err);\r\n            console.error('Oops, invalid LUIS content!\\n');\r\n            console.error(exception.errCode + ' : ' + exception.text);\r\n        })\r\n    }\r\n\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the parseAndTranslate() method. Here's a code snippet.\r\n\r\n```js\r\nconst ludown = require('@microsoft/bf-lu');\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\nludown.translate.parseAndTranslate(luContent, subscriptionKey, targetLanguage, '', translateComments, translateLinkText, log)\r\n    .then(function(result) {\r\n        console.log(result);\r\n    })\r\n    .catch(function(err){\r\n        let exception = new ludown.helperClasses.Exception(err);\r\n        console.error(exception.errCode + ' : ' + exception.text);\r\n    })\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","postpack":"","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.6","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"12.18.3","dependencies":{"chalk":"2.4.1","delay":"^4.3.0","tslib":"^1.10.0","antlr4":"^4.7.2","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","node-fetch":"~2.6.0","@oclif/errors":"~1.2.2","@oclif/command":"~1.5.19","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","@azure/ms-rest-azure-js":"2.0.1","@azure/cognitiveservices-luis-authoring":"4.0.0-preview.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^8.3.0","typescript":"^3.5.3","@oclif/test":"^1.2.5","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@oclif/tslint":"^3.1.1","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.11.0-dev.20200813.46ecaa3_1597303160770_0.9087239034005425","host":"s3://npm-registry-packages"}},"4.10.0":{"name":"@microsoft/bf-lu","version":"4.10.0","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.10.0","maintainers":[{"name":"botframework","email":"botframework@microsoft.com"},{"name":"microsoft","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"279e44927874a6a01f2ea3988737cca53bdce8ec","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.10.0.tgz","fileCount":89,"integrity":"sha512-eUa86Sa6nzlQSoh2kUpkcnwEYSwezLC1JbhqM9PMuMWa3ZEQK1M+vEV0dQjmXzj2RXCw75hr70LebSq/rp1/Fw==","signatures":[{"sig":"MEUCIG5Mpn8NsNG2Gd7zilIl9PpKLKzZCQuAppSGljPkr1orAiEAjijqlZaLfe5qtzknXDWfphQtuReG/sEpVyLNkxGqszU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":839863,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfNwdJCRA9TVsSAnZWagAAzOQP/2Myh8QHftZmlzH++IaJ\npEtcJtdFn+SFvOs+HanE9X1ebx5PPhVKXxHxemJlz1oP4o5Sk4I6x3V7EWJ5\nvl1Ms+IU/xAuty7rNVE7zJ52x2+5EVziTk+XcZXaL7cv/VRhzQRybGCjwquk\ng1/GbBIlmlgDIXnKxU9v0nHm2Fi+h1pvwh8hSspAgqCKRNYdoqtpx4efxR20\na1OFI7u21e2f63sxfkCI7VXuBsBJOm4xqVvYn3xND1KxLDeN1GT45j9R8YjC\nDttk5QS67kxonAAGiMnVWvIqO8erHTjYE5QM3Dgtt2grTMdESDOZIgr31bVz\n4M9OC+rsy/jJ8ksJbQvRHJqTwvBkXInq8HizbmtiJBu+n5mTKbykn6sv1GxW\nh/t/YZ57mCvCqNXbxIK0x0iFjSJsF5uXSwbiLg8P2HNbwjZhG6/clqIbgU3d\nkLrj5pqPanRc2yZnipaEyvFu1B3ZIMGbrnCVlNNDXlCjb/wGzgqtN5t24q+S\noDLQ2A6CQJoZ4yRf07OUZmkt/Y5JbZnYgK2a1REeosAyuJwthnytTDkrjVdr\n0xTFCFFuD12KP1UjsrTKNzzGMCsNnyfm7kBZHf3dXdZ19G090BNtYu8nhuGS\nqp1DwgyBmtGoQB045mfUR+ZqRQ3SEz6KR+q5K9UhbPlu046wtCAZvQy+OKNX\nZ7oj\r\n=GcQL\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-rc/drop/microsoft-bf-lu-4.10.0.tgz","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","postpack":"","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.6","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"12.18.3","dependencies":{"chalk":"2.4.1","delay":"^4.3.0","tslib":"^1.10.0","antlr4":"^4.7.2","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","node-fetch":"~2.6.0","@oclif/errors":"~1.2.2","@oclif/command":"~1.5.19","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","@azure/ms-rest-azure-js":"2.0.1","@azure/cognitiveservices-luis-authoring":"4.0.0-preview.1"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^8.3.0","typescript":"^3.5.3","@oclif/test":"^1.2.5","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@oclif/tslint":"^3.1.1","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.10.0_1597441865307_0.24102711721270476","host":"s3://npm-registry-packages"}},"4.11.0-dev.20200818.9437cc1":{"name":"@microsoft/bf-lu","version":"4.11.0-dev.20200818.9437cc1","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.11.0-dev.20200818.9437cc1","maintainers":[{"name":"botframework","email":"botframework@microsoft.com"},{"name":"microsoft","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"b8fd79af49dc464f75023e30b97af43479d2212b","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.11.0-dev.20200818.9437cc1.tgz","fileCount":89,"integrity":"sha512-oY+nKhhms+Jo/gTOgZhgqppwf+JNEiMfBFzA3WtKbMdUpaPyy5H8Am2+VQ3/gv8/BvBVup4pJWCAlXGmjnXxvw==","signatures":[{"sig":"MEUCIQCfpxnehBqzByDP2GFrYrAqt1b76S2yYQJVeEoG99uHagIgWMy5zTCM7O753U6T0OG+ek829ty29WZRsO8vjnRw5sg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":839884,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfO4CICRA9TVsSAnZWagAAON0P/0WLd8KX92LHxJCgOueK\nM8i2ut9dh6u9qZvgQNf6dyf6NVp7c0zsBHhC0ipHOliM9LcGhFF2JA8Q2gPL\nHCOTzU0/D4if0ufnEOSHmfy6HkfV9ijpjagvsopNSHZwKWFpWf6/jzF3qVJ1\nQC8VgAE/fZUnZMKoZFCYqfIQ9aabwr7zFXSDVvYKlZDYbfzAfNnVWXdpPQas\n8Xsvulb3Ti0OJ22ipRo0YOIIIAYQvzf54hOQMhopcl8zcRK7uCVFqiHMnrYw\nsgFW/lLMd4TEUOym5Vodrr7uU4uuvBXXHGWyljK27RsrvRgvfOa/QUYgSdB7\n1MRlTe4Ggcj00XBSYWzopdpT29p2/Npg9CpQqGFVzxQ75fsgzjdLxgMYZm2d\nMCXAhwSE9o3skGDiE5Lf+Xlz2IfBSvtuJfGD+ZyxPglrzDDK9XKdcrCiiEmL\nPLqWFyBPeQRTFWWSbNl74/9VxI9WF9M0ndkdM51DHMzWJmXIBqWMgkyZjziX\nrC1zMGIfrYXUwRkwzeRY7SD9prWDspDmUM39y4Ex700pAMkFYCAY09qawBl1\nJuvR8+3RKQPe/HuLQ4X8lp/rI2R9kNTRsTITEQpiX0r+xxeeIYSpnNdyrzJ5\nlm2bgjZKU7d8wCTB6kZucZXs59VGRzUwury0pM8LPfQk2AKR7VG0nbSKBp+f\ncBBk\r\n=FeiD\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.11.0-dev.20200818.9437cc1.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n\r\n\r\n# DEPRECATED V1 API\r\n## Parsing lu files\r\nTo parse LU files, you can use the parseFile() method. \r\n\r\n```js\r\nconst ludown = require('@microsoft/bf-lu');\r\nconst luContent1 = `# Greeting\r\n- hi`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nludown.parser.parseFile(luContent1, log, locale)\r\n    .then(function(parsedContent) {\r\n        // Parsed LUIS object\r\n        console.log(JSON.stringify(parsedContent.LUISJsonStructure, 2, null));\r\n        // Parsed QnA content\r\n        console.log(JSON.stringify(parsedContent.qnaJsonStructure, 2, null));\r\n        // Additional files to parse\r\n        console.log(JSON.stringify(parsedContent.additionalFilesToParse, 2, null));\r\n    })\r\n    .catch(function(err) {\r\n        let errObj = new ludown.helperClasses.Exception(err);\r\n        // err is of type ludown.helperClasses.Exception. \r\n        // Possible error codes are available under ludown.helperEnums.errorCodes\r\n        if(errObj.errCode === ludown.helperEnums.errorCodes.INVALID_INPUT) {\r\n            // do something specific to this error code\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    })\r\n```\r\n\r\n## Validating parsed lu files\r\n\r\nYou can use the available validateLUISBlob() function to verify if the parsed LUIS blob is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst ludown = require('@microsoft/bf-lu');\r\nconst luContent = `# Greeting\r\n- hi {userName=bob}\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n    let parsedContent;\r\n    try {\r\n        parsedContent = await ludown.parser.parseFile(luContent, log, locale);\r\n    } catch (err) {\r\n        let errObj = new ludown.helperClasses.Exception(err);\r\n        // err is of type ludown.helperClasses.Exception. \r\n        // Possible error codes are available under ludown.helperEnums.errorCodes\r\n        if(errObj.errCode === ludown.helperEnums.errorCodes.INVALID_INPUT) {\r\n            // do something specific to this error code\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n    // validate the parsed luis content\r\n    ludown.parser.validateLUISBlob(parsedContent.LUISJsonStructure)\r\n        .then(res => res)\r\n        .catch(function(err) {\r\n            let exception = new ludown.helperClasses.Exception(err);\r\n            console.error('Oops, invalid LUIS content!\\n');\r\n            console.error(exception.errCode + ' : ' + exception.text);\r\n        })\r\n}\r\n\r\nparseContent();\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS and QnA maker JSON using constructMdFromLUIS() and constructMdFromQnA() methods. Here's an example code snippet. \r\n\r\n```js\r\nconst ludown = require('@microsoft/bf-lu')\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n    let parsedContent;\r\n    try {\r\n        parsedContent = await ludown.parser.parseFile(luContent, log, locale);\r\n    } catch (err) {\r\n        let errObj = new ludown.helperClasses.Exception(err);\r\n        // err is of type ludown.helperClasses.Exception. \r\n        // Possible error codes are available under ludown.helperEnums.errorCodes\r\n        if(errObj.errCode === ludown.helperEnums.errorCodes.INVALID_INPUT) {\r\n            // do something specific to this error code\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n    \r\n    if(await ludown.parser.validateLUISBlob(parsedContent.LUISJsonStructure)) {\r\n        // reconstruct md content\r\n        ludown.refresh.constructMdFromLUIS(parsedContent.LUISJsonStructure)\r\n        .then(function(result){\r\n            console.log(result);\r\n        })\r\n        .catch(function(err) {\r\n            let exception = new ludown.helperClasses.Exception(err);\r\n            console.error('Oops, invalid LUIS content!\\n');\r\n            console.error(exception.errCode + ' : ' + exception.text);\r\n        })\r\n    }\r\n\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the parseAndTranslate() method. Here's a code snippet.\r\n\r\n```js\r\nconst ludown = require('@microsoft/bf-lu');\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\nludown.translate.parseAndTranslate(luContent, subscriptionKey, targetLanguage, '', translateComments, translateLinkText, log)\r\n    .then(function(result) {\r\n        console.log(result);\r\n    })\r\n    .catch(function(err){\r\n        let exception = new ludown.helperClasses.Exception(err);\r\n        console.error(exception.errCode + ' : ' + exception.text);\r\n    })\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","postpack":"","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.6","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"12.18.3","dependencies":{"chalk":"2.4.1","delay":"^4.3.0","tslib":"^1.10.0","antlr4":"^4.7.2","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","node-fetch":"~2.6.0","@oclif/errors":"~1.2.2","@oclif/command":"~1.5.19","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","@azure/ms-rest-azure-js":"2.0.1","@azure/cognitiveservices-luis-authoring":"4.0.0-preview.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^8.3.0","typescript":"^3.5.3","@oclif/test":"^1.2.5","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@oclif/tslint":"^3.1.1","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.11.0-dev.20200818.9437cc1_1597735047901_0.804150979477454","host":"s3://npm-registry-packages"}},"4.11.0-dev.20200818.1c4ddb8":{"name":"@microsoft/bf-lu","version":"4.11.0-dev.20200818.1c4ddb8","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.11.0-dev.20200818.1c4ddb8","maintainers":[{"name":"botframework","email":"botframework@microsoft.com"},{"name":"microsoft","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"a399a2f455bf4b18b388386855668fd18f3a5555","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.11.0-dev.20200818.1c4ddb8.tgz","fileCount":89,"integrity":"sha512-G5xAXx7/UMXY5bkYcX4+wDkjnryqDh4aIUP/SbpChVIm3kA4nsPcWdH8D3g8UNtTy2Yy+hP3DhnRl5yUcFBiWg==","signatures":[{"sig":"MEQCIAWvpGE/yJ8pg7P5Ich9gXAAfb+ERZh9HhlezsaPq1hWAiBA5hsu88Fq8UcLpprkRjItjldZKdxquE2q5zdYYjs/EA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":839884,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfPDQtCRA9TVsSAnZWagAAvjsP/Re/qbNIFWFbNbfXA+aD\nGxoEbDbQN+/YeRTYdGRq3THIVNMwBNJV+7wzgGNtydowAySpCr0+OuXSWNbV\nRiqAWP9GDEqbhCkhYz8GgaYdyJsV5qJELuCYOCj7IhHZ+jOqiHtD3GJdsss6\nKNZmVTEE3HmfwltT9CxTctWdfCxZFG+67cynVcGQEyz/GEbOi/h9mrQnUqc8\nmWu3f2r5/SkEN599jsU0Yq7M73tO+NDC/Tn61G8LcIc84rznQ+ObsDKBH9Tp\ngb0KAyQAi6H+QxU6Esvd1nuPAeWH2L8c8oxSpM3nOo+rHXyZ7xKVCI3UJh6f\nLklQ07TJ6egO3jfauboZf/YZh8W46veo8y7QxENT2tRwva62ah3ZCjqo6/ip\nJXTV/P2BVYghW+fUBXnLCgYUO3buCfhX67tDJpsTHCPQk1MRsmlyr+ku3IIS\nP9EbHSx+gWqeh0Pnu5voLE2AEUCo3YeHRCY7gN6d9rJ84zYz7Om+JbfNC1QL\nGoHDG3DV4UcTtopjc6z3EkOYuTBkaKZ8E6zBx78JLscP1CvZ/Mf7ocJVPs+b\nSnE2JiEQhvwFoc2jltUZDGm8xnuDzBY2zoY0jhRRX3nS79LuDiG+GeD/FDhg\n+8OOmrH5sBc+P/BE83otZpUEH/T7L8c8GpPinIUuCbbKkOul2CBd7ybTP8Kx\n5Anj\r\n=oP/o\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.11.0-dev.20200818.1c4ddb8.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n\r\n\r\n# DEPRECATED V1 API\r\n## Parsing lu files\r\nTo parse LU files, you can use the parseFile() method. \r\n\r\n```js\r\nconst ludown = require('@microsoft/bf-lu');\r\nconst luContent1 = `# Greeting\r\n- hi`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nludown.parser.parseFile(luContent1, log, locale)\r\n    .then(function(parsedContent) {\r\n        // Parsed LUIS object\r\n        console.log(JSON.stringify(parsedContent.LUISJsonStructure, 2, null));\r\n        // Parsed QnA content\r\n        console.log(JSON.stringify(parsedContent.qnaJsonStructure, 2, null));\r\n        // Additional files to parse\r\n        console.log(JSON.stringify(parsedContent.additionalFilesToParse, 2, null));\r\n    })\r\n    .catch(function(err) {\r\n        let errObj = new ludown.helperClasses.Exception(err);\r\n        // err is of type ludown.helperClasses.Exception. \r\n        // Possible error codes are available under ludown.helperEnums.errorCodes\r\n        if(errObj.errCode === ludown.helperEnums.errorCodes.INVALID_INPUT) {\r\n            // do something specific to this error code\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    })\r\n```\r\n\r\n## Validating parsed lu files\r\n\r\nYou can use the available validateLUISBlob() function to verify if the parsed LUIS blob is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst ludown = require('@microsoft/bf-lu');\r\nconst luContent = `# Greeting\r\n- hi {userName=bob}\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n    let parsedContent;\r\n    try {\r\n        parsedContent = await ludown.parser.parseFile(luContent, log, locale);\r\n    } catch (err) {\r\n        let errObj = new ludown.helperClasses.Exception(err);\r\n        // err is of type ludown.helperClasses.Exception. \r\n        // Possible error codes are available under ludown.helperEnums.errorCodes\r\n        if(errObj.errCode === ludown.helperEnums.errorCodes.INVALID_INPUT) {\r\n            // do something specific to this error code\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n    // validate the parsed luis content\r\n    ludown.parser.validateLUISBlob(parsedContent.LUISJsonStructure)\r\n        .then(res => res)\r\n        .catch(function(err) {\r\n            let exception = new ludown.helperClasses.Exception(err);\r\n            console.error('Oops, invalid LUIS content!\\n');\r\n            console.error(exception.errCode + ' : ' + exception.text);\r\n        })\r\n}\r\n\r\nparseContent();\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS and QnA maker JSON using constructMdFromLUIS() and constructMdFromQnA() methods. Here's an example code snippet. \r\n\r\n```js\r\nconst ludown = require('@microsoft/bf-lu')\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n    let parsedContent;\r\n    try {\r\n        parsedContent = await ludown.parser.parseFile(luContent, log, locale);\r\n    } catch (err) {\r\n        let errObj = new ludown.helperClasses.Exception(err);\r\n        // err is of type ludown.helperClasses.Exception. \r\n        // Possible error codes are available under ludown.helperEnums.errorCodes\r\n        if(errObj.errCode === ludown.helperEnums.errorCodes.INVALID_INPUT) {\r\n            // do something specific to this error code\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n    \r\n    if(await ludown.parser.validateLUISBlob(parsedContent.LUISJsonStructure)) {\r\n        // reconstruct md content\r\n        ludown.refresh.constructMdFromLUIS(parsedContent.LUISJsonStructure)\r\n        .then(function(result){\r\n            console.log(result);\r\n        })\r\n        .catch(function(err) {\r\n            let exception = new ludown.helperClasses.Exception(err);\r\n            console.error('Oops, invalid LUIS content!\\n');\r\n            console.error(exception.errCode + ' : ' + exception.text);\r\n        })\r\n    }\r\n\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the parseAndTranslate() method. Here's a code snippet.\r\n\r\n```js\r\nconst ludown = require('@microsoft/bf-lu');\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\nludown.translate.parseAndTranslate(luContent, subscriptionKey, targetLanguage, '', translateComments, translateLinkText, log)\r\n    .then(function(result) {\r\n        console.log(result);\r\n    })\r\n    .catch(function(err){\r\n        let exception = new ludown.helperClasses.Exception(err);\r\n        console.error(exception.errCode + ' : ' + exception.text);\r\n    })\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","postpack":"","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.6","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"12.18.3","dependencies":{"chalk":"2.4.1","delay":"^4.3.0","tslib":"^1.10.0","antlr4":"^4.7.2","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","node-fetch":"~2.6.0","@oclif/errors":"~1.2.2","@oclif/command":"~1.5.19","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","@azure/ms-rest-azure-js":"2.0.1","@azure/cognitiveservices-luis-authoring":"4.0.0-preview.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^8.3.0","typescript":"^3.5.3","@oclif/test":"^1.2.5","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@oclif/tslint":"^3.1.1","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.11.0-dev.20200818.1c4ddb8_1597781036553_0.12539252487767993","host":"s3://npm-registry-packages"}},"4.11.0-dev.20200819.1c4ddb8":{"name":"@microsoft/bf-lu","version":"4.11.0-dev.20200819.1c4ddb8","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.11.0-dev.20200819.1c4ddb8","maintainers":[{"name":"botframework","email":"botframework@microsoft.com"},{"name":"microsoft","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"60793c920cc13d354ab9054ba01cb13c7f3a2714","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.11.0-dev.20200819.1c4ddb8.tgz","fileCount":89,"integrity":"sha512-2gwXfu0vlPjhmpTHRq6g5FOQXeq/ckUu1ijjbHwPmMuiYs8+G0hI29+6js+Ea4WNSBSSHP8AwG7L4JfIk1WXhw==","signatures":[{"sig":"MEUCIGBG3Ip4wGCU61F05GKtFAHyJgPhThA9/Epc+0wqoMriAiEA71ZYh3Q1S41tI/EhLqJjMhbOpRsP2MSv2CyWIvSWmFg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":839884,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfPNHlCRA9TVsSAnZWagAALBcQAINTrBtO6CkPyv0S7+nZ\nBiNhCb04Z5ZDGnx75C0Lv6xu3hSPqXQxFeGwk7nP2RHmp31Q7T6UJJ6phxWf\ntnq6jBlZBdlnTdmZt9HzzclySkviiklA7psU84cjGfDMjaibLaAZ/yuRhDym\nw2pO51G1oWcu462XeIGkqWUEsi78PqXClew7mXoZtuzdppuvH9C0HQD9IjvY\nCBCK1V4AYQUIyuC4ADG9B2gwRaDT/VpPscaRyr48zBMcBowVws+qURSRV3sq\nBVQJkyGIuVqB4SSFgkPqPouLMQnshKxLDX9qDT6ynmw+cP7Id/KyG0+OEqED\nckxM/4IPCn1oZyhTMmEqZ36vJEuToEb/qElNvkbIVfBIFfWfgsbXyQthG15/\nndjVl03w4XPTXR2GefhzuT9CRjV0NOT3CLeEn5P4tLSS7v8bQ5MtV+EekBU4\nSJwrV+7jEHFkcge8DnMZ6cormUkXVVP2mbP6KrYVA19KF7qCi9a5rzwVkZtq\nVRUXR9rE+6IEazolpXe7savXhhWH+DF+HhztP1iZ52Si6XlCLfiPG6G7qCiC\nIslWBKDw06JQcjj0la3WUXzHPFdQUXXQAGjpENxcULhedfATPV8UBK9yk6Ij\nEuI3R3qJU/j3JBLqYRsL1uA1qoxILeD6hv6h8kMHLjJEMviA5X3pZZsgp/kB\nOjvq\r\n=c9mj\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.11.0-dev.20200819.1c4ddb8.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n\r\n\r\n# DEPRECATED V1 API\r\n## Parsing lu files\r\nTo parse LU files, you can use the parseFile() method. \r\n\r\n```js\r\nconst ludown = require('@microsoft/bf-lu');\r\nconst luContent1 = `# Greeting\r\n- hi`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nludown.parser.parseFile(luContent1, log, locale)\r\n    .then(function(parsedContent) {\r\n        // Parsed LUIS object\r\n        console.log(JSON.stringify(parsedContent.LUISJsonStructure, 2, null));\r\n        // Parsed QnA content\r\n        console.log(JSON.stringify(parsedContent.qnaJsonStructure, 2, null));\r\n        // Additional files to parse\r\n        console.log(JSON.stringify(parsedContent.additionalFilesToParse, 2, null));\r\n    })\r\n    .catch(function(err) {\r\n        let errObj = new ludown.helperClasses.Exception(err);\r\n        // err is of type ludown.helperClasses.Exception. \r\n        // Possible error codes are available under ludown.helperEnums.errorCodes\r\n        if(errObj.errCode === ludown.helperEnums.errorCodes.INVALID_INPUT) {\r\n            // do something specific to this error code\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    })\r\n```\r\n\r\n## Validating parsed lu files\r\n\r\nYou can use the available validateLUISBlob() function to verify if the parsed LUIS blob is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst ludown = require('@microsoft/bf-lu');\r\nconst luContent = `# Greeting\r\n- hi {userName=bob}\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n    let parsedContent;\r\n    try {\r\n        parsedContent = await ludown.parser.parseFile(luContent, log, locale);\r\n    } catch (err) {\r\n        let errObj = new ludown.helperClasses.Exception(err);\r\n        // err is of type ludown.helperClasses.Exception. \r\n        // Possible error codes are available under ludown.helperEnums.errorCodes\r\n        if(errObj.errCode === ludown.helperEnums.errorCodes.INVALID_INPUT) {\r\n            // do something specific to this error code\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n    // validate the parsed luis content\r\n    ludown.parser.validateLUISBlob(parsedContent.LUISJsonStructure)\r\n        .then(res => res)\r\n        .catch(function(err) {\r\n            let exception = new ludown.helperClasses.Exception(err);\r\n            console.error('Oops, invalid LUIS content!\\n');\r\n            console.error(exception.errCode + ' : ' + exception.text);\r\n        })\r\n}\r\n\r\nparseContent();\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS and QnA maker JSON using constructMdFromLUIS() and constructMdFromQnA() methods. Here's an example code snippet. \r\n\r\n```js\r\nconst ludown = require('@microsoft/bf-lu')\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n    let parsedContent;\r\n    try {\r\n        parsedContent = await ludown.parser.parseFile(luContent, log, locale);\r\n    } catch (err) {\r\n        let errObj = new ludown.helperClasses.Exception(err);\r\n        // err is of type ludown.helperClasses.Exception. \r\n        // Possible error codes are available under ludown.helperEnums.errorCodes\r\n        if(errObj.errCode === ludown.helperEnums.errorCodes.INVALID_INPUT) {\r\n            // do something specific to this error code\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n    \r\n    if(await ludown.parser.validateLUISBlob(parsedContent.LUISJsonStructure)) {\r\n        // reconstruct md content\r\n        ludown.refresh.constructMdFromLUIS(parsedContent.LUISJsonStructure)\r\n        .then(function(result){\r\n            console.log(result);\r\n        })\r\n        .catch(function(err) {\r\n            let exception = new ludown.helperClasses.Exception(err);\r\n            console.error('Oops, invalid LUIS content!\\n');\r\n            console.error(exception.errCode + ' : ' + exception.text);\r\n        })\r\n    }\r\n\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the parseAndTranslate() method. Here's a code snippet.\r\n\r\n```js\r\nconst ludown = require('@microsoft/bf-lu');\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\nludown.translate.parseAndTranslate(luContent, subscriptionKey, targetLanguage, '', translateComments, translateLinkText, log)\r\n    .then(function(result) {\r\n        console.log(result);\r\n    })\r\n    .catch(function(err){\r\n        let exception = new ludown.helperClasses.Exception(err);\r\n        console.error(exception.errCode + ' : ' + exception.text);\r\n    })\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","postpack":"","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.6","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"12.18.3","dependencies":{"chalk":"2.4.1","delay":"^4.3.0","tslib":"^1.10.0","antlr4":"^4.7.2","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","node-fetch":"~2.6.0","@oclif/errors":"~1.2.2","@oclif/command":"~1.5.19","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","@azure/ms-rest-azure-js":"2.0.1","@azure/cognitiveservices-luis-authoring":"4.0.0-preview.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^8.3.0","typescript":"^3.5.3","@oclif/test":"^1.2.5","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@oclif/tslint":"^3.1.1","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.11.0-dev.20200819.1c4ddb8_1597821412778_0.059643443643768945","host":"s3://npm-registry-packages"}},"4.10.1":{"name":"@microsoft/bf-lu","version":"4.10.1","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.10.1","maintainers":[{"name":"botframework","email":"botframework@microsoft.com"},{"name":"microsoft","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"ac4cbbde522d6b7f163e781e9976c8af0ef0833a","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.10.1.tgz","fileCount":89,"integrity":"sha512-ATtM5WcStRlu68MyDB0Q49iUumDpZdPbtOcc9qOdmNCyNfaJ0a1iUSGtugWvx24MRn2Uk+Cgb8YPUxZrdaUxwg==","signatures":[{"sig":"MEYCIQCAd0Yo0mJVslqx9Q8xuBBYtWisfgAhfJX/2EA1cAhC1wIhAKrgDvYGc7su8+aGtqLv3NvPaJsPTb1vqstJQcZlZFbm","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":839863,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfPWxYCRA9TVsSAnZWagAATeAP/RmDBquSBVeEm281mVSx\nLOA9STydHBxfRk9qMQg07xQ7aSxvS5sP59ba9F3cYJ8BVyFdStMM4H+CuJE7\nsK+O3iiOoxmogEl9qmui2yLPkFy3Vl4pKjoef8PnAvfHrJCrkST+adZWcp6Y\nJvUGMs3/gcA6yuYTezA+csIOZbj6LekmHYn+vRnog9F+eBw9rk8LsNAuB7a8\neKJk9Xx5rCCCPvGJKlRWMjtJ5rEaAtZAm0ov4oZ17V0UK3V2kgrtfGZsspu2\nOKcHZ58bhL6MW1t+UezDu3QD3YXFbKns86bkryV7belSX/fTF7HMQtyw7NTL\nF6ks2I+MQZVYLTCX9BcwkMTAu8wTgY09N7Y0kK4rZPuSQt5c82LmtN2HsvTJ\nAxAxPnhk0EEu/ZuIlXZM2Rn8fFb1Mum+fUgcWAuBFN/rhVlA4R00enhfOxqO\ndVlDIZggC+VhXLJppRvAxcE0Vjzdork6FFKP8fuX0SnsQjqc0FD2MAZyN1Sg\n2ruy96VEnzc7xCxRYpW5CYrOd2xfOFA0HbAdfc+fWDrm+DfwBsTezImoXtdE\noKzCOhtFM5ksOXeT81wM83C1FqAEw1U94WNgH115IPOfJTIotDd/GYd/P7Xm\nlvhw/NMQ7S6NbDVVsvkjoEAGUZYndx4Oysp2D2SuFalCvoPiutkBa7+2QhpR\n17Dc\r\n=6CId\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-rc/drop/microsoft-bf-lu-4.10.1.tgz","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","postpack":"","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.6","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"12.18.3","dependencies":{"chalk":"2.4.1","delay":"^4.3.0","tslib":"^1.10.0","antlr4":"^4.7.2","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","node-fetch":"~2.6.0","@oclif/errors":"~1.2.2","@oclif/command":"~1.5.19","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","@azure/ms-rest-azure-js":"2.0.1","@azure/cognitiveservices-luis-authoring":"4.0.0-preview.1"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^8.3.0","typescript":"^3.5.3","@oclif/test":"^1.2.5","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@oclif/tslint":"^3.1.1","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.10.1_1597860952127_0.054833140758977716","host":"s3://npm-registry-packages"}},"4.11.0-dev.20200821.de66343":{"name":"@microsoft/bf-lu","version":"4.11.0-dev.20200821.de66343","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.11.0-dev.20200821.de66343","maintainers":[{"name":"botframework","email":"botframework@microsoft.com"},{"name":"microsoft","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"5024990d5098793dde5f78056360baaeccd854c6","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.11.0-dev.20200821.de66343.tgz","fileCount":89,"integrity":"sha512-04YYujrkudv8TEmMrqed7p7n9F/rHB5oEQC2PFR94YI2xqtb4+oG34+Rvm1RNPxqwX7OgDUO/p50mC8JZPqZ5g==","signatures":[{"sig":"MEYCIQC7lqyloaZB2lOARTMZGP7zbjQKNgjtHvFSRMN38VDLVQIhAIrtrP/UjmJ5ywS5R2KXfp5WcSkohlnFa5du8b04LLkY","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":835695,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfQAR9CRA9TVsSAnZWagAA/M8P/Asc3Mk7DKHIz0kxADkv\nJLbWlyixfo1G8+ZheFOJf5BWjWra0mMQvT75xnYZu9m8fugkR4ghaQeVXv+i\n87rNiRdxQsd31TlL3qc7NZ3zKL+xrZfekS54bXfKmBdPIc7gicNDFa2viklj\nwQQt+pFcuaitaiOIPG5Yk2HyIPtCffznjoIdp/WUV7KyCIprQeDoZf0Vj3Gc\naILVuhtdTG2Z4MQ9fSrgrLORfMzFnbhjJeoqtPiwisWVAX3GKYENz2UHmaL9\nS8crtLYbBYQZ/ERFdxZB4hL9LqgcMEC9JeB7lEKc9VsmQL1kY0//mxQWRRyW\nzQB1XjKIqDWc85oQHEkqnkQFrjo3a3ZA5cyE8q8JVqW9pKqyYIh/5txbzRT0\nxSN6Wr1y85kDKxDBQHXWM9EZuej1SLNr7gJjzoOlUCM2E83TopdCKrjCvZrJ\nofH58QIEmLY3A68stwtXxsGlp/hL+RyjntUltb3G8mfoIk0cFrA7XZpfIdzd\nQPAJIwEf1N+N9SfUrHlWSCHk0L6N4zf9uDtFu3NLcMTGI6wt38XogL1NsO9Y\nM0jUhD4zRZobYBYsjCti/kCyPE0LUmiHcW1M6J+PUai7oxNiD/P67To36XuV\nn9kuDfmbp+rfBvl+yx1RMBxSoOi/v3tTes9IkrbTdF+PYKDog9kyL1mubc9X\nkwYB\r\n=q9E2\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.11.0-dev.20200821.de66343.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","postpack":"","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.6","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"12.18.3","dependencies":{"chalk":"2.4.1","delay":"^4.3.0","tslib":"^1.10.0","antlr4":"^4.7.2","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","node-fetch":"~2.6.0","@oclif/errors":"~1.2.2","@oclif/command":"~1.5.19","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","@azure/ms-rest-azure-js":"2.0.1","@azure/cognitiveservices-luis-authoring":"4.0.0-preview.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^8.3.0","typescript":"^3.5.3","@oclif/test":"^1.2.5","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@oclif/tslint":"^3.1.1","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.11.0-dev.20200821.de66343_1598030973122_0.15130335678620188","host":"s3://npm-registry-packages"}},"4.11.0-dev.20200824.de66343":{"name":"@microsoft/bf-lu","version":"4.11.0-dev.20200824.de66343","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.11.0-dev.20200824.de66343","maintainers":[{"name":"botframework","email":"botframework@microsoft.com"},{"name":"microsoft","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"a3ca8277967e201efa9045bc94a1412f411b948e","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.11.0-dev.20200824.de66343.tgz","fileCount":89,"integrity":"sha512-Rut+3IL3kqAJF+s9ryHzl+9ygPeN+9Va+PQ9cDryyLGuu/ipF0WXvTK1lYH95t2odgoukRZJ9MSkRAnIqbq/tw==","signatures":[{"sig":"MEYCIQCaE989AhWmY3JNN9yl51A4O0vLzuNmnVstGz8nmnVoFQIhAPWQjbjOrlc2wgQF35UB6uldvroz5zNctLhrXKPBVIr8","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":835695,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfQwc3CRA9TVsSAnZWagAANVsP/3gtc6Amw8UcSRjwZTDu\nofPbazX18ce7UHpQ/1wYvLQu5kYJcpsfx/1k5UYT7FYzWRIWlGKKDhDTPwmQ\nZi1DQS7/uk8B6aJPLEs8G2E2ZehL6W1f3fkU56+FiCQ/C1uvMqiU5N555Sk5\nEPBUscfHJZXzZDay6TrYhw1lHP3ngaW4OG6AQPudGJ7YdN3CBb6MesrhDGlJ\naH1noYnwjdovJ55hfQuvux8uknDi/wkhMF3QQTISHbZop/6q4Sq551WWXkF6\nHkQFkTqzjKZe3cuwQmy30xc4Tl5S0yGR0tCvjOQKs8cWsTqPXi0DlH8C+87D\nJRP+BLrv8tiGPKHE8L7BUZk7xs7RCBG8Ym8KTkQ36yOzsiD5iMoQ+TdtCZH6\nXoiUuEyk4Mdl84oJNGTjX8s423e+9MtcOU9Uavbv5U9oGjrpEZiRqBixELZk\nIXQTMlZI6hHqZB6/DYlaUg1QjQbMDzB9mD1NOrc9ep94aHrL8s/A/BDVDseh\n9VLbHwc80FHtapXRX1Lu3fDhu5YNyc90vPIy3mIyJMwxp7vrGj9GN0urpuC3\n5k6eDO2uSHnB6DrTr5fD8RDbdItfUL9coBT9/B4YQ7/2id5XU9jDTfCgUBIV\njnNFdXj0BF5CE00MV5wLpou+3hk2dt79XA548m1JPkODUcmYIcNv0fbxQTw+\nr1J2\r\n=qZWd\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.11.0-dev.20200824.de66343.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","postpack":"","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.6","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"12.18.3","dependencies":{"chalk":"2.4.1","delay":"^4.3.0","tslib":"^1.10.0","antlr4":"^4.7.2","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","node-fetch":"~2.6.0","@oclif/errors":"~1.2.2","@oclif/command":"~1.5.19","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","@azure/ms-rest-azure-js":"2.0.1","@azure/cognitiveservices-luis-authoring":"4.0.0-preview.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^8.3.0","typescript":"^3.5.3","@oclif/test":"^1.2.5","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@oclif/tslint":"^3.1.1","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.11.0-dev.20200824.de66343_1598228279326_0.05423750592010279","host":"s3://npm-registry-packages"}},"4.11.0-dev.20200826.65eff66":{"name":"@microsoft/bf-lu","version":"4.11.0-dev.20200826.65eff66","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.11.0-dev.20200826.65eff66","maintainers":[{"name":"botframework","email":"botframework@microsoft.com"},{"name":"microsoft","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"e25ddae84a8364ef79eb50841d8e85dd0e33fc56","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.11.0-dev.20200826.65eff66.tgz","fileCount":89,"integrity":"sha512-6mAWqabpSg8djpph3tT41wk3mbvJftRREPtSlevtOlOe/vjrEm2kafADLfs4h6pz21WnoGJwmj8kPEOFH/ab5A==","signatures":[{"sig":"MEUCIE5UN7vE2vsY5C+oAA4zca/zwKNw9aJ+cIVePcOq7aIMAiEAyGwu7pnB5RLIAeqEzrT+VQFHsI95il7HWQKEX5Svcqg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":834279,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfRg0JCRA9TVsSAnZWagAAwKUP/05XyHASMhc8LS+gwtQW\nt0w/OlU4qTrUpZPMUrMlgi5+KHgmyhfhUZAe1BXMvy6zLtLgfKIT7iK6oVbM\nERN39WsruUywWbnoK9+PDK5W5MLL84aTfXOAUN8wObZjehZu+Zayz7S5WeD7\noKxZnDI9yWLJn/vxMhklxOZcMRstYdxb4CX4jn80mEnRX1EqI1Zw7EQtOaEK\ngiduhY/Ffs2JCIeXvhHxvVmLfktdHWDuQkT5VVHFGL8xtPYqm5FZ+Uy1A7Fu\nlyxfDLWkThuprK9IABj2mZu8NJS3TIJIaclEYcqktPHDHvj+qLksaIg2XUbn\nHocPIVhijJW6K6oCzAvvyjAQEde9wCoR349Lqd0aqrG4ZIb0wMpOQ/d5wbk6\nsk+oEfSxMHjH2El3+pNTWil8BJWv5zkqc1BHRw3611hSRQRUe2QwOIlmDuOh\nLh2mHT+IHdN1aFTwE1fJDyVUht0H79O7ulvGyQGAKkXEHIklL3aq0dG38Jmh\nDzPHB+K24siHEVAojAkbaiYnrm8nkhB1GRXelmVQ8z03g7OaB7JtGQyHDWvy\nkkiv8mo6e2G+jgPbZENCJyPhDWXP1Z+QV0bQ8DO+rvPX3L0KufWTS/3zc1eg\nlRUX4qkRvmwI8gH+ZydChNvDaH5AtsN7jIoZDCWbSsNz55+UWc+nslr5zPg0\np1zi\r\n=BUQe\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.11.0-dev.20200826.65eff66.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","postpack":"","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.6","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"12.18.3","dependencies":{"chalk":"2.4.1","delay":"^4.3.0","tslib":"^1.10.0","antlr4":"^4.7.2","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","node-fetch":"~2.6.0","@oclif/errors":"~1.2.2","@oclif/command":"~1.5.19","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","@azure/ms-rest-azure-js":"2.0.1","@azure/cognitiveservices-luis-authoring":"4.0.0-preview.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^8.3.0","typescript":"^3.5.3","@oclif/test":"^1.2.5","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@oclif/tslint":"^3.1.1","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.11.0-dev.20200826.65eff66_1598426377360_0.06933205597378045","host":"s3://npm-registry-packages"}},"4.11.0-dev.20200827.d5b17d9":{"name":"@microsoft/bf-lu","version":"4.11.0-dev.20200827.d5b17d9","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.11.0-dev.20200827.d5b17d9","maintainers":[{"name":"botframework","email":"botframework@microsoft.com"},{"name":"microsoft","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"be3fc9410fca2b692ef5021d8796f03746ed43f9","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.11.0-dev.20200827.d5b17d9.tgz","fileCount":89,"integrity":"sha512-WWOBR586mF2E9XmFWTAI+0cwWhA0TiqvsPZjTlb2azI09tIEyURlI0Ew/bVKM32unuS+nc5RA54MPT6tn/Rc8g==","signatures":[{"sig":"MEQCIHI6qpP5EiIBmJRpy66QRmI8fNNkabv4/jI4GG9oahfUAiAjaAZL+EBdZsfb9EvN155+WG/0hOkAkdSDkNtCUC6Ykw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":834347,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfR13uCRA9TVsSAnZWagAAkM8P/RikujsgIwFZU+arBOcr\nVLLVin0JXRI8BrXysYwcE9KFTXw/+8qZIDKMz8daGHYCDqGK9tdplh/jHe8K\nbfMzGtBEihQr8kezZcqn/ou3NOwYa4RW1wgSybZLYtczUhyF8mFSav0t5n+/\nBEOrsg5ItS37hzbq6RrIX9K1IET8BZIqFM/SB5XZrhNO0LwUaC1QiVLkojE+\nNdELS+kq+64Dxz1/Bmu1fWF1lPHnGZ1pki+1ofvZxrHCGfJ0ZjojpgM6D4qY\nz13NCKNXzTzyPtZi6dayYDAouVFC0SO6/cCAdY3rORYm/bJfiqekOz+qHumS\nQ6fwRLteMSj45vA/ZK05rzTIjfBq016uEMBsXOgcF/6z4Z2EvFc3omJrnnIi\nHyhPgMH0xk9k9vUqYGi3ZGeaXLNMrejMIIJpofJQ+Wa859j9gevTro9hyNmb\nSlXeFLbNk9yBSsrmi1JWPMc9z0Z4KYMfaiduPHKPUgBQZ/D4FoNztVF79pSd\n3yYS3/ZKeFR4HgnGR94eJ/QiRFoPGmXHCR273Ly644bXTqUSZHgDfKWkEert\nF3rTWa9/nTO2p5e9TdVGg3fr1NjaGXPm0rREjCPebRYjIIx6H6UzhDOvjreT\nppjZlTSsnf76or/8YaZZOzps5VqmJLZJ3L8vkh/CTacn7ZfCnMaAAgFO4Dt3\nInJ1\r\n=MACv\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.11.0-dev.20200827.d5b17d9.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","postpack":"","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.6","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"12.18.3","dependencies":{"chalk":"2.4.1","delay":"^4.3.0","tslib":"^1.10.0","antlr4":"^4.7.2","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","node-fetch":"~2.6.0","@oclif/errors":"~1.2.2","@oclif/command":"~1.5.19","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","@azure/ms-rest-azure-js":"2.0.1","@azure/cognitiveservices-luis-authoring":"4.0.0-preview.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^8.3.0","typescript":"^3.5.3","@oclif/test":"^1.2.5","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@oclif/tslint":"^3.1.1","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.11.0-dev.20200827.d5b17d9_1598512622317_0.8232570377674693","host":"s3://npm-registry-packages"}},"4.11.0-dev.20200831.d7b6149":{"name":"@microsoft/bf-lu","version":"4.11.0-dev.20200831.d7b6149","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.11.0-dev.20200831.d7b6149","maintainers":[{"name":"botframework","email":"botframework@microsoft.com"},{"name":"microsoft","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"63ecb95a90e9f3c69db09058f8af6d877d3ed08d","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.11.0-dev.20200831.d7b6149.tgz","fileCount":89,"integrity":"sha512-Yh1PLKOGcQ+MNIAYCNwWya2/WQ/B3QNO0CsbYqVfpzO3OZK5bjPULXBqbuWbwGy8EeLWzpFzdYIhsIVoC26GgA==","signatures":[{"sig":"MEYCIQD65jMiq76ig2ObrPkuVUf+p8t9dKFac8kTj4cqpAsCuAIhAPMp3jp6chEhbarbUn4zd4wjP/bvQySi+JTSbduTDN8b","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":834231,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfTKP0CRA9TVsSAnZWagAA20QQAI+8BEmVSNz3oBFZDVLO\nnB6lS14XhSdIvzbpOD1/q1nB5zW6hm89Vea3egv7dnbbaxiiCGSbEPmY04Kt\n71YUMYPZISZPKU1Dxw1f4CGSEaWLinb+dSFeKnMbgHGoYZkRi0T+TLvxa2Zy\nG+mZNjUHSQvedvs1QO8pYFVAEWMgtci4LtNZhPlGNR+kGFWPljMLwSX27XCj\ndBvYGmzdmvme2OxtO/4zx4IRY5Wn36ercQ742YgXmI9FL7Yc9Yr4yVMy4JHM\nP0zVFlg4CqhrlJnTg2+UZYWlAyeS+94nfW560Jt/STRCuHK0Q3hvR0TD007c\n5+F35HP4yQMugsu2T1ns2UyMx1wr33zAIIoJcN8UaFW9kC2TJOwVIN2WQwl6\nGPXSwCtXTTaLo9MlGl7p5r45/Co8XaFAzg/xYIo8TE1Wnpsv65Ru+T1kM1NW\nQcA3YwArIdZ3TotcXfg+QXdKy6tiwJ+9/sJWb+8wIFvZpmI6fYRwOeSryzgD\nNQlKDML0HMvA3lm32AfroJQjR8t49E3y4nxIt9XCFkAqaemd/iIiDUL4mnpi\niLAR5D9Tdo+uQFL9HWoZ6iX2GeYUufm+wsOJs/Y8PjrpYxSeyakjW4owl98Z\nDhjaTCfEh/xsO8s/LQUMRBN7ZYSAwEMR3Q6kRFn/rX58uywZWzCkBdz7iKLy\nnRmw\r\n=clwo\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.11.0-dev.20200831.d7b6149.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","postpack":"","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.6","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"12.18.3","dependencies":{"chalk":"2.4.1","delay":"^4.3.0","tslib":"^1.10.0","antlr4":"^4.7.2","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","node-fetch":"~2.6.0","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","@azure/ms-rest-azure-js":"2.0.1","@azure/cognitiveservices-luis-authoring":"4.0.0-preview.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^8.3.0","typescript":"^3.5.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.11.0-dev.20200831.d7b6149_1598858228075_0.33768922486447095","host":"s3://npm-registry-packages"}},"4.11.0-dev.20200904.ed789e7":{"name":"@microsoft/bf-lu","version":"4.11.0-dev.20200904.ed789e7","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.11.0-dev.20200904.ed789e7","maintainers":[{"name":"botframework","email":"botframework@microsoft.com"},{"name":"microsoft","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"15f8ef0f0e00c4892eb5a7e150872e0e8c0171f9","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.11.0-dev.20200904.ed789e7.tgz","fileCount":90,"integrity":"sha512-srDbUm+N9/rEnAHVu93Nuy3oPypmIlRe9Q0cF3C2f449vYrFYuWQqcQOx2ns9qjgdE0ZoPrsYLK33USFcVqERg==","signatures":[{"sig":"MEQCIGKMiWZazAy/mmu+o/bgOS7TRSxJ8k6kN5+LtBNbSFOHAiBzuaHGkZZkApyO9eT5cEFYL+CAmU3QvXUxozqe7CFQCw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":849253,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfUenuCRA9TVsSAnZWagAAdlgP/ixaS146UjJ0+X3kqqWs\nw/2tfoE75/821R6rzs7GA5zxt1RbDnQlR4K5WoD965jx1ksqgHgCqwpFupVO\n4oCqfKNI0qiUekC6XLt7zPf2X45wHJ+Nk9kBJVil78ZSAFP2DQKQVxsNhOwy\npZfWeIkAoIlX8hpQ6w4kbdWCHboUTjSgC6HFy4gM4WYlXMQlyuK+kpzpmafK\nMdxzmcSWADIb6pa2Q9BRlqtFUkOP5Lh9WbMjLg+3WNmL7gYVNJTKF8D6yFES\n6AjPJAsvQ9cQG2H+dC7o4CWU72L3S4gEJOPjw8aaF0YF7RceZrPkAIEulROX\nOGeEbbTWIIsJEjbujl29KTKeqGrjY2pkPK1AJlud4Ef48Bu8pgKxfNiwqRTN\nPzki4wsFFUnhrV0QIuGchhKMVLopoGgIe72Covk20eA5pvzLpo9gimt89wov\n+Pm580iawsGOR3Fx22PDEgdNTf20VuYeq/H9ozAQ9QnKUpapKizZM/SY6KjK\nNKbZFoh98aUjbc0+6W76sZMlfWX8ZfytQpt/vDIGtKptKs46+7RBVt8Zs+Y2\nCBiSLt7qup2x6pGQApH7XKCgilo5V8HERUGjOqkAkzXtt5zSpe5M1NMnXaOy\nnsqe8WZ7PhZHYFG7G06s3dVXhhUU3dbFtfBOsBZNkyG8trfEf6oqwYJI77YB\n3yCB\r\n=CeL0\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.11.0-dev.20200904.ed789e7.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","postpack":"","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.6","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"12.18.3","dependencies":{"chalk":"2.4.1","delay":"^4.3.0","tslib":"^1.10.0","antlr4":"^4.7.2","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","node-fetch":"~2.6.0","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","@azure/ms-rest-azure-js":"2.0.1","@azure/cognitiveservices-luis-authoring":"4.0.0-preview.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^8.3.0","typescript":"^3.5.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.11.0-dev.20200904.ed789e7_1599203821810_0.4987019556963741","host":"s3://npm-registry-packages"}},"4.11.0-dev.20200907.c063415":{"name":"@microsoft/bf-lu","version":"4.11.0-dev.20200907.c063415","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.11.0-dev.20200907.c063415","maintainers":[{"name":"botframework","email":"botframework@microsoft.com"},{"name":"microsoft","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"4eede983928df843ebe89640bde0e29d05e64bdc","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.11.0-dev.20200907.c063415.tgz","fileCount":90,"integrity":"sha512-8MEFBPVAvNSukDOjGYb09C4klpG9GZsJG3VzDXKySkCwMrHrSPKH9TWJn4rTLE6Q0PpHH1pgpiIPMw61cemv1g==","signatures":[{"sig":"MEUCIQC3gTXkmjkvPc3m7jB2qpBrkVZpzpKGI2rdPc7e9QpDgwIgRQ8KoVPvzSaGyjjZT1hGr4nwS8sualBmiqAfB+dG/3E=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":849945,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfVd53CRA9TVsSAnZWagAA4N8QAJnSMFzxwzR7QntHdCba\nRYwAVkMNzouCa1Xu1U+HrHq+GebcynTpTTIoUdrp4HgY+E3oAIjRb7GosxdQ\no7Ophxxug3dAtOMEsu5togxu/RoOueqOj4n0Gqi19qnuMpavxfZOixa9SOcg\nIuMx+50kkJVLISqrOkcqIO218/sI5Xtk3S55uxH2cV3V51FG1QTSqq7EBnsf\nWkrkVqwPs4F6+BmEBHCiuy6rjBFxUn2lSK9rg4JLje50YEgqs96LLE/2IuII\nGD26NsA8Zjs7j0CQtKXbH1bVVJnxUxAt5bvGS+61ivx2Au39mviCoaC9G4/u\n1DGhbvxqkEIiFJVwyxJyXT+g/DqUz84Mwr5fevVvSYUIOFQ7jaKEen44V2ug\n4hvOFKfxNcBGKNf54LAZDSrW20HJmTXMXjsQcZt4Qpj36kFULjOC0YB8lNQz\nkJZlJI/go8uQ7R8pX21XeLwVFf6PR1AT5re2PZKVk+k2212B6NBGaNqsj1gB\nTMzHH6l6hqI9Xp5vcIImkY/uEmx1fLEkXMDH3oMSUOfwhG3Mn7D889pp6eWk\nAPOPpFby28hkAQwx7KycyErGOwAansJ595bnyFsXJU6PafA6zgwk+Ph4A69G\ndBbikmzkJ8+qimrMVgJ/fInOR4VF2IBzgP8KIRBORKUVeASTS3mQMPMdgn+B\nNlut\r\n=NwbA\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.11.0-dev.20200907.c063415.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","postpack":"","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.6","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"12.18.3","dependencies":{"chalk":"2.4.1","delay":"^4.3.0","tslib":"^1.10.0","antlr4":"^4.7.2","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","node-fetch":"~2.6.0","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","@azure/ms-rest-azure-js":"2.0.1","@azure/cognitiveservices-luis-authoring":"4.0.0-preview.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^8.3.0","typescript":"^3.5.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.11.0-dev.20200907.c063415_1599463031245_0.11471631664849702","host":"s3://npm-registry-packages"}},"4.11.0-dev.20200911.7d6ad59":{"name":"@microsoft/bf-lu","version":"4.11.0-dev.20200911.7d6ad59","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.11.0-dev.20200911.7d6ad59","maintainers":[{"name":"microsoft","email":"npmjs@microsoft.com"},{"name":"botframework","email":"botframework@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"d637b41c49f73e9b9ad15b006026b104817afba2","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.11.0-dev.20200911.7d6ad59.tgz","fileCount":90,"integrity":"sha512-nj24GuZbiusIxKwIa9L2go/d2UV7vFZutXQ+3sEH03EvUHrM4j7tvnq+VW+cKSriHZFMzb9xl5yQ/yfPBHL7YA==","signatures":[{"sig":"MEUCIQDBLjREgZXBHTDOAJoNzWs+/vrJIm+DHRV5YyFkQCKzGAIgZiP7wvegOoJUTtj3bXh6jH2anzZmOK7cNFef16E7vO8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":850427,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfWyS5CRA9TVsSAnZWagAA/eEP/joeJ3ITQ6KDszhQSuMb\nWpa3HAiuqDBCooxRB4VgYesV+pD7cA4MjW1E+Wsmo4hPlQR9pJkikZ9JGmgI\nvB3c9ipzSTYEb4UR0evuexursf/JEBU0Xh2X7hxCWJXGkFRtDuSn8RFtoNLh\nnICUxsscFh1rSg8K7yqN9F30BEnLMgC79VS4VPlP/e2NtP02oOvulACRlp1P\n4bTYbpRAem40rfxVkWu628uhnJwFlStGlFAAQ6iA/rEzTgz4aMtWlkWB4UJV\nZt2m7kSSq++28s2Bm5ibeZ18DZY0A2ENdwfmKHKRh5WToo4zqTbWEn6eqS0t\nb+srdZ8o3HQGH+9hvXMi1f0XNjWSWnD7U07JSJsXrs2Qrj/NJQ0Lzgs3LYj1\nVa8xeYwUkhHv9UgvDi0o2wkNUwUF3/coMiXq86TM5iPabkGRNfXGAqt6ySpG\nvbyY+CYurX8VRx456gi7xvC/Uis159ImgZ6VD7CbyrKnA79QmCue4uiinGRF\n/ZDnthvxfLKIAiS2LX88NGXIMMsfiwnZfwm7zglosrEYkuNZC9JsnBUfArHJ\nkjLp7DGsYVRSwfvgh7iRUDvumVey/VOc3PyNH46O/H24wY4fzsW4HIm/sPFw\nHHBxPHusv0h2kQ3R/P0Jpm7fwqVLxB9AKwlX1gc9BL28CKmfJiMkFgtB9X+6\nU7dG\r\n=h7ip\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.11.0-dev.20200911.7d6ad59.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","postpack":"","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.6","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"12.18.3","dependencies":{"chalk":"2.4.1","delay":"^4.3.0","tslib":"^1.10.0","antlr4":"^4.7.2","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","node-fetch":"~2.6.0","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","@azure/ms-rest-azure-js":"2.0.1","@azure/cognitiveservices-luis-authoring":"4.0.0-preview.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^8.3.0","typescript":"^3.5.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.11.0-dev.20200911.7d6ad59_1599808697035_0.3334549993676932","host":"s3://npm-registry-packages"}},"4.11.0-dev.20200911.c8afdcc":{"name":"@microsoft/bf-lu","version":"4.11.0-dev.20200911.c8afdcc","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.11.0-dev.20200911.c8afdcc","maintainers":[{"name":"microsoft","email":"npmjs@microsoft.com"},{"name":"botframework","email":"botframework@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"96346e12e54cdaa72e0e932bfa73db2d0e4fa06d","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.11.0-dev.20200911.c8afdcc.tgz","fileCount":90,"integrity":"sha512-6E3yOqqIc2V2+1iS+yThla0HYWi3nj+4q8QLvqhdQozCgBe4z3/WyAfl3Ttcacw6T/xx9zexT2nMnaCCr6iCRg==","signatures":[{"sig":"MEYCIQDa0774tGf60y6esBhyMlnyzBMSyOOr6QYhzK8+kJVrpQIhANqfU88CZL1/bqOTnAbTJ7wrcqEU1zfYbHe7HytTS7mk","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":850427,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfW9LpCRA9TVsSAnZWagAAWfUQAIh5aroTsFJh2rzhEzpg\ni7nHfHZnfUTXMviAC0Zhk/Ct5sbZDNNLLbx8K6ybJBY+gJ5VWdmTRSp74Hu1\njufbNjHwsn9ADkeG05ZWEpqRSljEciWTsIMPloHaktGhKAQbyaXsBKTtN5TG\nvkCG0mHznSqrnhbdj0+DBFLn9Vjvp5FA0L53iw491qd+I4JKMl6l87v5JvVL\ntff3lGdl6/oEjXozY5FD0LOzWGLK6iP+hmEHCVN3B9QjpqbxUSbFIB74Bihs\n+EZD/ZubMLYVazYliPgdqh8XA+z1TJDj+i5ZOGYcl3cri1nIstTNG5rGS3rX\nIwgF1eVYv4UHmtOlWeN9GY5JR/qECWVKjwjZoRzxdDeiNgkVs5nnao8q9r5T\n4fXYJKZlP8tswz5HS8hRzfCVguRhAGuwNOo7KZkhWIcI7TgaAUQWU/0VDNwE\nc+zRrp3j+U5n9rZBZDE48RkyccWHxSjK302/C1xk1Iz0xxHmYAdw355jLlz/\nVzzcVe6IMuBBgxv9PODEG1DYckoG+jwCyL6Od6IOCVcIfLnrkqfAUwuR/Qyf\nBBYIpZMP9Vxz6FF6aXOjUKFg7ZnX62N+jxEbgl3R7Y7ZXtFa70+LA9Gk0DEz\nUjzm7xBzjm5S4wx1venynoC6ZKfqW5ArCIIdYJcB/M/TmO6NBzFD5vwCxqm+\nWg1v\r\n=flzR\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.11.0-dev.20200911.c8afdcc.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","postpack":"","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.6","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"12.18.3","dependencies":{"chalk":"2.4.1","delay":"^4.3.0","tslib":"^1.10.0","antlr4":"^4.7.2","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","node-fetch":"~2.6.0","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","@azure/ms-rest-azure-js":"2.0.1","@azure/cognitiveservices-luis-authoring":"4.0.0-preview.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^8.3.0","typescript":"^3.5.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.11.0-dev.20200911.c8afdcc_1599853288926_0.7117121539699387","host":"s3://npm-registry-packages"}},"4.11.0-dev.20200914.c8afdcc":{"name":"@microsoft/bf-lu","version":"4.11.0-dev.20200914.c8afdcc","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.11.0-dev.20200914.c8afdcc","maintainers":[{"name":"microsoft","email":"npmjs@microsoft.com"},{"name":"botframework","email":"botframework@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"8e9b909cde47be689be7595d46e4204a8ddc3641","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.11.0-dev.20200914.c8afdcc.tgz","fileCount":90,"integrity":"sha512-EoFFMPoPV+8Or2+rtQt40D2AoSdDCLcQJnvFNyCm71xbdZ7fyTCRPKGUbKACTMPRo2tMmR74o1lvB0gDmoqjmw==","signatures":[{"sig":"MEQCIDh9T4xFvLPPGtEkyMrlUhBkc+aqapcObEGdQjH2Ka1aAiBWxYFQyY3UI6ZBzVtT8AHPV++dcUSiapoVR9gL7EEkxw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":850427,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfX5JHCRA9TVsSAnZWagAAehQQAJSI7Mnz+HfmsCHp1e+y\ns3We/azjRC4xH/Lz3WWfBUGqhue0R4Q8oLOhdX2jrhFYIWl7v+e/qAp6g0Yj\ncs997I7y5UAoTc7pvWhuAWESzsRQO1LCAZ86LJcxW+UgW2/QoXpZk1If3efA\nHdY10ePs6qIWFTRiNRZFLWUg9hsprGPIx5XKLKCearMo7BjfE4EO+7IQF4ZU\n3ACYG5PcORNdkIMYMvLC/pQYRf3eXu+R+LipxEt/bgJoI7WbE1EADIt+DZaU\nLcGb6a8V/A+N8+efZRwajjJL7WMHNOqZ5Yw6b4KwCfcEd52pi4+JReVFh2Jv\nnjgcTxUxxVsyUj4yRf/gLmsX/PGJX36PbrmCooDStb6hX/2M1wCUvkbmOYS2\n2BsSpvF7nVOBoK5lRlM/UUo0mh1aEi978ElrXGSzg0Rc59RRodkbAENJvAqS\nfMBla2xKZh1WX+xxXWkyFWMpp2mjqgZgOmGL57+RQDxM6FtNQwXz2GkKc7Ka\nkiUcJYpzSIxEDg1L3mjgW/PO9j/fs++JRFd6xwYg/lI0qjdfLFe5Cwa1i4Ux\nXuOUvTE48uwaefoIkizPP480J0yRMHd0+7AZ/vf5wnj5Uf1EeFnYF8L4Mfn3\nbkKdNpmu8m2R6pTIQjutDFuHLFIfRa6qOc1dnL6++IAt/n9wcIX7EYcoK9MI\nG6A3\r\n=bMi5\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.11.0-dev.20200914.c8afdcc.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","postpack":"","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.6","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"12.18.3","dependencies":{"chalk":"2.4.1","delay":"^4.3.0","tslib":"^1.10.0","antlr4":"^4.7.2","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","node-fetch":"~2.6.0","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","@azure/ms-rest-azure-js":"2.0.1","@azure/cognitiveservices-luis-authoring":"4.0.0-preview.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^8.3.0","typescript":"^3.5.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.11.0-dev.20200914.c8afdcc_1600098887033_0.8247280287023344","host":"s3://npm-registry-packages"}},"4.11.0-dev.20200916.4f7c793":{"name":"@microsoft/bf-lu","version":"4.11.0-dev.20200916.4f7c793","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.11.0-dev.20200916.4f7c793","maintainers":[{"name":"microsoft","email":"npmjs@microsoft.com"},{"name":"botframework","email":"botframework@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"0b2a2c1cbed2e98a64c2ca379d306b6454ff1e16","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.11.0-dev.20200916.4f7c793.tgz","fileCount":90,"integrity":"sha512-IuiEjvV4/3S1tDFIPMQK9rIuUIEiAUPvtLrTaoMKEiEFTviPS0FdqwQJsorsHg3Vxy8h0GXsVFXJQiI1gro4GQ==","signatures":[{"sig":"MEYCIQDe2Rd0zyPCruPp5V572MN3dHnEzmQyAqsN7qxF7vIoxAIhANGAkb/E9HPFOtFs+0dn1FsYAciVF3P099tXqTsJ4uBZ","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":852065,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfYbwbCRA9TVsSAnZWagAASxEQAJVDNPeE74Qw42BiUSSt\no0qo+BOwo2M617jOFs/kZNjXbu/OvHjbUPp/SFoUL2/EMoEXWzSboJcE3cSX\nQPxadKZnmQvSdHZPpjflefgDAcFvdj9VdBJTM+urb5pngYPundqq5Y9zw3Wo\n9Vy3VSJwTTgdhq4dgkrMSZewd0DoGttquL8IBk+BN4v/NwYjCM8eIKsCCIj3\nT4nKfbXptSs8M2kLjbzEm/wiE1fKcw0/0uRd+FPzkvhjUBgaGt6TLZFrzUzM\nNLLHZCgR+NlN81s62ZvZdtIryje+DB2c5NGv+Lqk1RG6nV4dyQY1sMgLbTvj\nfYFOfdaHkn2BdetVy6eWvk+l3J7W4HwsjVuNCK2CLknrRhOsETlThCIGMfh+\n+7pnRwhoZ04fTbA7L+GMGTITZSgdG91vqtK6EeLa3qqxZYY01Qd2M0Am52xS\ntSu7bLZnHzyTsJh6cUgYWTq1YIGum5dkYsovbtD+DzAeBllJkb8F6NGBxvRg\nXVC9GemQuwpm2sSti36cwPrhY9RStuS+NcI/gjab4/5gjvCoENic3FOhiI+o\n3oPUt/Bl9NF/eWIhdJrh3fofQhzEm1duP9hK8zdBWSz17vyOOGMhl61sAR7b\naUvCcMOAI39BOPG+9eudt3d1TBDDRZbjc26/s3hXJecs4ns4cCV/Yv0aZnBi\nH/sf\r\n=JUGj\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.11.0-dev.20200916.4f7c793.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","postpack":"","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.6","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"12.18.3","dependencies":{"chalk":"2.4.1","delay":"^4.3.0","tslib":"^1.10.0","antlr4":"^4.7.2","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","node-fetch":"~2.6.0","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","@azure/ms-rest-azure-js":"2.0.1","@azure/cognitiveservices-luis-authoring":"4.0.0-preview.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^8.3.0","typescript":"^3.5.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.11.0-dev.20200916.4f7c793_1600240666934_0.9564341649474173","host":"s3://npm-registry-packages"}},"4.11.0-dev.20200917.ec30167":{"name":"@microsoft/bf-lu","version":"4.11.0-dev.20200917.ec30167","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.11.0-dev.20200917.ec30167","maintainers":[{"name":"microsoft","email":"npmjs@microsoft.com"},{"name":"botframework","email":"botframework@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"1d05e553fbb3d9b3f31bcacff5ff7b4cf4ad9178","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.11.0-dev.20200917.ec30167.tgz","fileCount":90,"integrity":"sha512-JE8J/llLfirJBjWFnJRfkXYWtQNwW8RyWChoGMoOS0O+KNuPEVQThmOzrp9/CRRkdcsqyDePiVZrjhRb8LOSlQ==","signatures":[{"sig":"MEYCIQDkcRgiRCOUDBePhllrIzVF643nPib9TkUpgq2kLot2TAIhAJTGwFbzK54Z2QtW3oAz2z0ErrUyc+v/x/+ReQ9NpICN","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":856723,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfYtyiCRA9TVsSAnZWagAAulMP/1QqZ2wzseTxyDGyqtrA\n1AZ0eVbv88OW5axrM5WUaZHvBrO7v8tXaKjcHNkilmX020gk28VB8Q/pgXaM\nYNSIBLRwE4vlWrMitILABHdxMmjehGNhq1CelK8QcOsqAGmOhVwSIzEIee65\nR1/mZHUqfow9r4j9LsATNrIftK6pX/S93zcS2pbZxvwFJsdI7CNbjdZthPu3\nPZUjD6tpxzk2sQZnQiYJ4SSGRQXHLGEHqxXaKFZ3aWjr+NzQTzoSBMhh9SpV\nYek5Q/0423vOOUdLZzhM4Iq7b08KJun2bjz3zzM+jA1a4yn0+WGJgXM6cVfB\nQS0kmjJSEwQQiQ8oRIFzznBtwCvS7EA6jiwHUymYx1PnwLyIMG5IeGSM8+6S\n228gknrWi5Fwo6piQaxwaDbSuIg5U6kIx5l4aC9sBvygLqKkvCBVE+qlBK31\nY1uyQ/qlrjY41JtEU9gN2puRvUQAooUVkN0l6ZSUCBGfXWAAOtDJjbckuOap\nQv+pwFzPV9Uah6FcTBikrI53hf4OmiBWhMXNXCk8BJKTmRUfZy4SvSBJUTaI\nBFMw9uPwq68XPD7R+Jokz9rjQ0DxVdpLUALqFcX1E3+oZwbrzpnIXBdU1JsR\n9B/EINKSLrIt9qNRSJVDJEs63LAN8aK72fqhuozhD4rJwyPALTLm0DvMtS15\nIQxh\r\n=87Sy\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.11.0-dev.20200917.ec30167.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","postpack":"","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.6","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"12.18.3","dependencies":{"chalk":"2.4.1","delay":"^4.3.0","tslib":"^1.10.0","antlr4":"^4.7.2","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","node-fetch":"~2.6.0","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","@azure/ms-rest-azure-js":"2.0.1","@azure/cognitiveservices-luis-authoring":"4.0.0-preview.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^8.3.0","typescript":"^3.5.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.11.0-dev.20200917.ec30167_1600314530051_0.8743244765803702","host":"s3://npm-registry-packages"}},"4.11.0-dev.20200917.737fe95":{"name":"@microsoft/bf-lu","version":"4.11.0-dev.20200917.737fe95","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.11.0-dev.20200917.737fe95","maintainers":[{"name":"microsoft","email":"npmjs@microsoft.com"},{"name":"botframework","email":"botframework@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"6d8090a520a937075560fe36b3946074c7d47e91","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.11.0-dev.20200917.737fe95.tgz","fileCount":90,"integrity":"sha512-zc1qMDtK6Uuv8/yIkpWl2B8S2v3ZMlDay71TUJZHhCphuhlhGywattrsrk94RR6TgywVWc61qcuTUULKFLtjcA==","signatures":[{"sig":"MEUCIQD1NaMFblHyNQZ8/gqHy6qw2fTbuYBlYKzWQRMnYw/pdAIgdra122kaqsMw1/7iMgeR9MJz5vYb5jBWqtZ5lONcJ9M=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":856723,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfYw17CRA9TVsSAnZWagAACYcP+gPnQy0apg+VXakwlnd2\nbNyoXWp4mJs6dC1gVnk3zu2dgYpjJrz4yHMRbGA1g+Ra0sAfkPNrpKhSdnft\nEUYFhzldO+1Fqmc8Q69fUVPlFq+mm4M9vnLGa3whJ90uN28FWuFX5jTiyQpk\ncLR0MrHxyXTm6fwtyrPTpwznRO7csrKZVOdAfBa2ddloohi3JyUeALcVsx4r\nqev4FQDuplPzP6J2uFRXYvLdeBINv4ObLHSGX6cE77VdqQKR+ykSgSJ6zG0t\nAtNMQr5DFgjUnL0in6mDSSpjsP90dE1irTPagA7dwpGUP5erUVjDzKbyfuKh\n8Y7+bRBf2Y6c28i9PB/LdkEiYLD+8cRtVN0/E9nlqkcwmktGA4z1nqcNG/b1\nr5frPEXJNeOh4TyCLqoylts1t0FG8AMgmD+qIlLm0NVpzOITQq3zgP0BhiiE\ngUdHGyg6bj5V/US2TtBhWFWqqkWLJUQvGXZnFIIcqQoSgPcWV/992z1Sesxh\nlPv7McOpF3C+IKPMlo0ddn6lwi3xB6KKEQ9OLzvKMnAuTr+LX3wDGbaNGQcL\nVy71J0nQ3Rf79S0+zccDDzXI8zp1ecCrlOruzE0z3jMAQUkbDMjKvWHUs5o3\ntcSwNgB1i0GZU4hyVegsjRPbuSfNINQM7AqnF/0qHNb1tAj5oVOG04mJpnZQ\nrU3K\r\n=17sD\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.11.0-dev.20200917.737fe95.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","postpack":"","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.6","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"12.18.3","dependencies":{"chalk":"2.4.1","delay":"^4.3.0","tslib":"^1.10.0","antlr4":"^4.7.2","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","node-fetch":"~2.6.0","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","@azure/ms-rest-azure-js":"2.0.1","@azure/cognitiveservices-luis-authoring":"4.0.0-preview.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^8.3.0","typescript":"^3.5.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.11.0-dev.20200917.737fe95_1600327034749_0.22274713906513233","host":"s3://npm-registry-packages"}},"4.11.0-dev.20200922.6a0f42c":{"name":"@microsoft/bf-lu","version":"4.11.0-dev.20200922.6a0f42c","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.11.0-dev.20200922.6a0f42c","maintainers":[{"name":"microsoft","email":"npmjs@microsoft.com"},{"name":"botframework","email":"botframework@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"ec8886e0be67c0785c41b80e47d7f37a90b93c5c","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.11.0-dev.20200922.6a0f42c.tgz","fileCount":90,"integrity":"sha512-C5gQHJrzq6iZVVVnJOrYLDkrVm6ai/EI9wWagr1slvvUyhwxCG01OUuhXcznfiEB5FwV3O5rBHk9+vbVXBgjSg==","signatures":[{"sig":"MEQCIA7H+2h7tDX1i4yQnoM5JxQmMY4fDs6Do3JnufLLvKiyAiBn/nU65yoQobDOeQ0WX2Dj6Vvwese0o8zwD8SKfbrF8g==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":856723,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfaaTsCRA9TVsSAnZWagAAsywP/2HcCCWCKHioBTbZ2bNN\nssrqGBCCaYNMKzO2ICrVqgVSKaAjRIFDaGEXfcHLc9Yqwcz717cTmJR6KQ2O\naP/U2HZi5L2U9NCR1fHDtGZNL3SyQyYpdxdMEKPz9dRPS60Dvhvl6PBKJFj4\nw0vw7+mTIejBfTpr1F9vqfFu8mQLPm8rw6n+GLEIT3qbg/aFzck99hmrbot1\nKwbu7JGzNPeplLZKsbMOHWs7xzyWAzS4GICcBJgmx6JxwzJP2ZVktHVwcgy6\n7ppqDAFXAIIGPcTKgIxl28h31j1PalU6qBvVqtBdbZ6TskwGqo+beaWCOl6x\nVcrWlVQRq170QK1Kg2fUyZJvXFikWZdN0mKzD5kjUrJ9O+FgUV9nWE4Pi+M1\ngXklqzDMyvs/v4be/wMeUgoDZLXAz6X6muCcJYHXMuWAy1CKFs3YoqT/UUW4\nWolCELtQM+NOd0MExt/JFhcKZMWXlSWXJcsbGIWA5zBrpthhbhofKq+RyfB+\n0yAmk7gHdlQ+dCUJNPe1EYsjTj5NflxoYwO9IDtsOIk2DpJlVRl2INfAGFfW\ncviaUadW/yd38Qb1xg4lJDhLYfEK2BtEsIC5T3h2VfE4mNBzuhTVRHZQ8MxH\nAIAZyvJLKBf9Ht6rfy81Jvios/y154nR8gZ+SX3g05Eyzyq70TiyyuJ6xsZS\nQjRe\r\n=OGXS\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.11.0-dev.20200922.6a0f42c.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","postpack":"","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.6","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"12.18.3","dependencies":{"chalk":"2.4.1","delay":"^4.3.0","tslib":"^1.10.0","antlr4":"^4.7.2","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","node-fetch":"~2.6.0","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","@azure/ms-rest-azure-js":"2.0.1","@azure/cognitiveservices-luis-authoring":"4.0.0-preview.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^8.3.0","typescript":"^3.5.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.11.0-dev.20200922.6a0f42c_1600759020557_0.079797566063744","host":"s3://npm-registry-packages"}},"4.11.0-dev.20200924.df24cb2":{"name":"@microsoft/bf-lu","version":"4.11.0-dev.20200924.df24cb2","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.11.0-dev.20200924.df24cb2","maintainers":[{"name":"microsoft","email":"npmjs@microsoft.com"},{"name":"botframework","email":"botframework@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"d51c3cb4d54bdf668861e2d0cc2ccdd57b49045b","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.11.0-dev.20200924.df24cb2.tgz","fileCount":90,"integrity":"sha512-jsMZfvUT+7VDoR/eLvgdE5B18iAnpAhHQN669ZZSsGJZS7UfIxCmonK5hvhtyzzyFA2ooU002dIBIK88mVwDsA==","signatures":[{"sig":"MEUCICFNY1cZzamIADu4Y+zlIIhe8Wt98vpPovelCRmNX3lLAiEA6+J7Dgg4sNsE9C9A1f1p8CAY6QWf2gLoedwObreGq9U=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":857345,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfbEkPCRA9TVsSAnZWagAA9CkP/jREeXtjwbmaPot/V0rT\n4gpuoJmkARFXHRL9q4zQOwozQlQWlnfNFgIEL+eUZVHP/L94UKYXrz5m1w8l\n751L1/klbU5EbFNN4a/0WPcpTegcJujmfFmQs97NGusW1olqjLd83/t1AD5a\nVChtXmP2buyubRMrfH2IMhBC53o72DCbm50G/ZKEgNfbJ8OLD/sL4bYYJsyq\nevfYXoFzsz8CoQ17WBmy2uVjrjvz3ca9i7A5bosTRb6uw7cOV/ziP8CWLRBd\n9Clbz+wyBrDmdiYSdbHn1D6WjsZdChh3jNWeLbKQa8D3Dg2eS3PVF8OXdJnR\ngx156W6a5yeV5XCt4QKIVAgKwhoZfSO1vafxRlP2N0Ayk8JUS0sLV/BY0JHJ\nJ1bu6w5p6D4xhzWAdvrs+3Ri2Utl4QXiPFKts268gMn3tihb2VtUykvYbaP4\nPM9yT1TUscTH2siOc6ySY3G3u44TNJhL0/6gxaqaUH3pQi8N+Hqr3yyJz/sj\nLHBrOj6F61EP2UKd2+OXD0JZgIZwIJc5IFbWnRYJSv+dl7EDWJlXLjPWDqjv\nfaUIWtZrQlecUU9fqlSncABH2VdUgI5IBjQP7EbQGYMD1tFRFgpX/Lzd4szm\nV4VGKT6dl68mlyjwEOVENmigDE+VVdyJbZWQFZfU3jLJmajRCOvnSve7b4Kt\ngkuk\r\n=0s/L\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.11.0-dev.20200924.df24cb2.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","postpack":"","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.6","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"12.18.4","dependencies":{"chalk":"2.4.1","delay":"^4.3.0","tslib":"^1.10.0","antlr4":"^4.7.2","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","node-fetch":"~2.6.0","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","@azure/ms-rest-azure-js":"2.0.1","@azure/cognitiveservices-luis-authoring":"4.0.0-preview.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^8.3.0","typescript":"^3.5.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.11.0-dev.20200924.df24cb2_1600932111358_0.33969149877531146","host":"s3://npm-registry-packages"}},"4.11.0-dev.20200930.028a4ec":{"name":"@microsoft/bf-lu","version":"4.11.0-dev.20200930.028a4ec","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.11.0-dev.20200930.028a4ec","maintainers":[{"name":"microsoft","email":"npmjs@microsoft.com"},{"name":"botframework","email":"botframework@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"03c4d66a1b8f1c7fd2e148b1d620f0e36f405717","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.11.0-dev.20200930.028a4ec.tgz","fileCount":90,"integrity":"sha512-mL+GQka4afFrId5SYcjfQUxvi3DTLv9WaLOl1eM4Gq7F0mGeBzr92L+qJLLVYPDhpOqrQ8nNC1eO1lRkH1A6dg==","signatures":[{"sig":"MEYCIQCBeTDcwF1HzAb4c0QObh2/5eG9pMgqXlmbe9cLAkFM6AIhANu5vqN0VxCfD30ig1H5liiEOQBxaKvce6GEtzcDGTCs","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":862880,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfdDD4CRA9TVsSAnZWagAAr7gQAIc78fvIliIhuyEOoMWx\nKgFn3JYl+pDhVwHfCidGIHaZUttVLH5u9Lvet2X8HOuC4k9oP+abprTq7haW\nvxMj0DkXW7R/eIFvZlCSVF0u1lp3U2/tHZ9cfWEdPmKdUaaKDj3vRtcSpnlZ\nUfSAWgABfUMfSYpggEdtqSU1BDuE/C9Uusgw/5KxGGOJHVXvNcdomcGf7fNp\n/paSD96WRXkSCAEm/RaI74OffKs/oK5xEAcV+C2DGbNcYWaJao5Q1mA4wcUs\nKnp6IVhZcITaOEf8iGejlbAkdCq65UFLbO42VlR8I/Eq0mkDJSYFN02jRCmz\noghTsVSYmx6Xu45PPXegVUskJb48oIr+Fkdq9t0wD+ldhuRDvCDIStPD7LFr\nbr8wOe4+YPkOf0BeYtEQ1D+mV6kMKrGgXX0VFH3ZaDg4oD3nwR0RU6Mst7XH\nqcLY0I1ELCFc5iwLQOrb8K/FWHqOxmwHmQy8o45CP/Dfss1M0OlpGwzXh8LD\n7uvVqUvTY7Z88fsyhrEpiQJc8V+IKRx/w6EGB3Rf6ZRPYqBhpgXL5zjsR0uC\nujwbbgGsPV4nhNwdPK5SX9Iy07R4rUO6huDdcjNLiio4vZcy7/txY8T3XYWS\nxclLIs9Eyvd2TjVwPQhPKdhedakYCc+cmbkBF5qqUrdRkjQAUSDXdNEyujFy\n1cJi\r\n=JMlU\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.11.0-dev.20200930.028a4ec.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","postpack":"","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.6","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"12.18.4","dependencies":{"chalk":"2.4.1","delay":"^4.3.0","tslib":"^1.10.0","antlr4":"^4.7.2","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","node-fetch":"~2.6.0","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","@azure/ms-rest-azure-js":"2.0.1","@azure/cognitiveservices-luis-authoring":"4.0.0-preview.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^8.3.0","typescript":"^3.5.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.11.0-dev.20200930.028a4ec_1601450231661_0.3082566051844835","host":"s3://npm-registry-packages"}},"4.11.0-dev.20201002.780bf2c":{"name":"@microsoft/bf-lu","version":"4.11.0-dev.20201002.780bf2c","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.11.0-dev.20201002.780bf2c","maintainers":[{"name":"microsoft","email":"npmjs@microsoft.com"},{"name":"botframework","email":"botframework@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"1274d253f3575e7adb7b8eabe910c9c9b4ec62fe","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.11.0-dev.20201002.780bf2c.tgz","fileCount":90,"integrity":"sha512-/Xj2xBeJiZq5xMzCIZCcXy2RrpRZnXCN942Tv6e1JC/tjQ6NTzhKjX/h28Apy1eanPiXnfTemBUQgPiW8WEyhA==","signatures":[{"sig":"MEUCIB8Qb7w4nSpdre8HmH7/4pB+NuSfPvH0xeFo8dYX8UQIAiEA2HqP0B148PVfyVK7ELFD2HT8yM0hw6PO0ynn4APf4x4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":862880,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfdtQlCRA9TVsSAnZWagAAuc8P/2YdKTzmWAeYgrDN612Y\nhKOmIMd72Yp4EWtLipyQaDSukB1wjawdOnnnYrZaM5H3Cl5I0wpbCc6lVkOv\nOSkcOCi4De9BPazocxEenbWDlqLlRe/m9a6hr1+YTvV4DOLnYsCU+5XNMiG/\nLbBeat7HwMSyMWspL/ukbaq4Pm7a6E6mSQJbY1N0BAt7vHpmOdR2yZuBVk4g\nw+Bc2XeJGbPkm5OGBQ/3zYqARc0TgTETOXZpW2zrEg1ve9q7UuXHyz2JX4tH\nMbb6ZofQSJjIbmf3ns6nHz8KSVuxrZ45WvgkavELUSHOMH373n5p0FNRLOwj\nJkYWPox15hmCieBSvI6CSdb+bLHAr8Af3yVHyaLyev/3lvz7VxQH4F8ymSjm\nCNe4hQQ/XIrTxEIlhoegNwteJSi88+ojZFg/5wySDaNIUIffd10kWVB3Sr53\nBytweKZMhZAvYjpLNC5SyrdYkNRyuXXp56ab8Xz/2jD6a5bOifmBeVGX/qbT\nPuTyyPH/aLH5vUIGYaPHlzkUrq2tDlIAHoZ/wqSiTq/ILPAVMHkaH8Z4UTv2\nmZQoIX386bHss0Zrsz9tKRNen2QYKHNtZNeCaKUj0zLbwQ+u0VjX/PLh9jjt\niPpdjiR1hQehrscyCIBwsKHbuhBWXEa9VBvfsGi3dogL3+FpCDNP0qt/rTQF\n9GF4\r\n=AvDk\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.11.0-dev.20201002.780bf2c.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","postpack":"","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.6","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"12.18.4","dependencies":{"chalk":"2.4.1","delay":"^4.3.0","tslib":"^1.10.0","antlr4":"^4.7.2","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","node-fetch":"~2.6.0","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","@azure/ms-rest-azure-js":"2.0.1","@azure/cognitiveservices-luis-authoring":"4.0.0-preview.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^8.3.0","typescript":"^3.5.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.11.0-dev.20201002.780bf2c_1601623077379_0.5790973187240023","host":"s3://npm-registry-packages"}},"4.11.0-dev.20201005.7e5e1b8":{"name":"@microsoft/bf-lu","version":"4.11.0-dev.20201005.7e5e1b8","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.11.0-dev.20201005.7e5e1b8","maintainers":[{"name":"microsoft","email":"npmjs@microsoft.com"},{"name":"botframework","email":"botframework@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"62f9a37bb8340456e41853e179f2941dab9dfc87","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.11.0-dev.20201005.7e5e1b8.tgz","fileCount":90,"integrity":"sha512-0vZ7sw+lDj0HiUa1vfaftIqhCSEMLwOl9uExR3gt1HkulakG676vtyG9Orr5z7ROTn+byhSHXdjfgFZdMtw1BQ==","signatures":[{"sig":"MEUCIQDdlAkwq0Ggcq8AYsMjd+geECmRX9NjDDp2B1ppe8W6ZgIgKIuWtu3v9i8gs2Ou3WBMYwzrDQpJIxhWNfpGD2mTURk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":867946,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfesjgCRA9TVsSAnZWagAA5twP/2dJWZq7z2ozEEcfHWcy\nb/pNtfrJZcyKjGAVWBxlY01DiC5UEie2FlpAlICtyTtUjEqOBGyHF8UHkZWF\n9KjpneP6B9qqB6AzqZVKKhUtwfx3IcfACiYy4/gs988sihy1PwdxoXBEvMH3\n1m8fReey5QRVFa5dJf46dICne+/BAx/qQKArSpor0yEtNQwxZugMF65i0ukZ\nsaXEFvccCei+Bn7UxT2/1gIT1SPtkcvMxgKJ/4Khpe89ldem3Ya1r1a3zm8e\noIAiZg+uxVgpskFT7GEhKmujBY2VVPh1bTV0fRlLVHtH8IzZUi/rne3adksE\nq/ImvHrReAefBcbqfa1Fxs20QVe74rjg1qUfnUGYQZMvp3qxAX1w2Z9mi6ga\nk3zSIdigzyRRJEXt3PgCbyQtoN8mXQBIOykNcUA5d+FtP4kTZPGtiXPBsDbW\napaX+S052c1I32QjqhMLlRISdAm/w3gmjtEuFUQM0TC9a6hkYZdEeaVNMUxh\nVUaznyI7I23ZORt36tDbppheqDKl0ldXlBEBvi8K2sxoATwPthvzUqwemmAs\nSFbFbYvY9PTCQMvZz401jYrfYAY4ST45fX/jeOUoeoM+6DIsQRsIS7dhRGDN\nIaNLXAvjD2QPB/Ee9pLWWfvWDmATP9dGKgnyI4752bWFyf9lb9xMoQS3OfH0\nVk1Q\r\n=kyPI\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.11.0-dev.20201005.7e5e1b8.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","postpack":"","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.6","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"12.18.4","dependencies":{"chalk":"2.4.1","delay":"^4.3.0","tslib":"^1.10.0","antlr4":"^4.7.2","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","node-fetch":"~2.6.0","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","@azure/ms-rest-azure-js":"2.0.1","@azure/cognitiveservices-luis-authoring":"4.0.0-preview.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^8.3.0","typescript":"^3.5.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.11.0-dev.20201005.7e5e1b8_1601882335753_0.028144245074058993","host":"s3://npm-registry-packages"}},"4.11.0-dev.20201008.18fba61":{"name":"@microsoft/bf-lu","version":"4.11.0-dev.20201008.18fba61","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.11.0-dev.20201008.18fba61","maintainers":[{"name":"microsoft","email":"npmjs@microsoft.com"},{"name":"botframework","email":"botframework@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"7ffcb888309f06d518a85d342c62dc4b843d2949","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.11.0-dev.20201008.18fba61.tgz","fileCount":178,"integrity":"sha512-Re2uRIgRRg3g7kbpqDbSfoXwD2jbl6QK7KKshvqlLGH1GSEGIfM1m2piIqk6E+O6/+6Gzlg5eHUuCoZ6BrBviQ==","signatures":[{"sig":"MEQCIFiG0IsMrLXDANFt58jhZChiNwuydcKMc7UdVbpJ7yO0AiBCRSrOLDByoEYD6Fa96Zsnmy+5Rtp69zNPOfNEAzTFfw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1541247,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJffrzmCRA9TVsSAnZWagAA4/0P/R/nd+QBGDay8BDXugWh\n8OfoEl2pxJonxbq/mlXWzEeYpDvCc/EPULN4o1BKajyM9eruAJ+1ugRmB9qP\nMpqXTA8UFt3Q1fBPoVE8Ss4kgVzlvYTUibeNCaNlbJUEOj1Souy64gPT54oO\nlgfqUuT11TRiaDJ57LV20D1fqfs/AFnmDCJV3DS6svxo6ON8zLi+HoiLsEzn\n20qkfPr5O54TqufN+sH2ASL+aVDaVZcLZOPZrO2f/0TbhSp4kiHL8XxAsDHE\nQC+WkX7Zz+0mZMAd/my0RrAhUuuqXuT+yJiZVIuMU8I+C8OHMdgtJgSYhHIz\n2qXF0/33lNGbev7dSUEnJhuZKe9Tv09W16gUi0uwekGjiN6VwFufBtkvyzS0\nL2gmitE9gp2QfXiws/xHCbzEmKZ3EqweouNwI5U60OU/O0VK5vT3OESE5r6K\nCNHvVlYeJM2o9QEorQjeteS0jUtzEbIRloNbZiiLVVtOjlJyNWBg4KbSG56i\nvuDrdK/WEumPwi7W+qDBbM+Bez49KQVtTheHPPZ5TFvoriHxGtJpDYfemF6C\ndM932M6TqktzFFDz7EbVcldF+6wRwK7G0cVfBGuEwPmK5750EGUGVYQlN3VQ\n1zO4nt5omTMa/Q0riUjwjy8GUroRIKSjQN0VRxuLPKhEyjQkto63r5kKgeLa\nooBP\r\n=GQ+G\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.11.0-dev.20201008.18fba61.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","postpack":"","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.6","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"12.18.4","dependencies":{"chalk":"2.4.1","delay":"^4.3.0","tslib":"^1.10.0","antlr4":"^4.7.2","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","node-fetch":"~2.6.0","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","@azure/ms-rest-azure-js":"2.0.1","@azure/cognitiveservices-luis-authoring":"4.0.0-preview.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.11.0-dev.20201008.18fba61_1602141413717_0.40701831387095755","host":"s3://npm-registry-packages"}},"4.11.0-dev.20201013.7ccb128":{"name":"@microsoft/bf-lu","version":"4.11.0-dev.20201013.7ccb128","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.11.0-dev.20201013.7ccb128","maintainers":[{"name":"microsoft","email":"npmjs@microsoft.com"},{"name":"botframework","email":"botframework@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"9dbb5043d3f7a384d1449c73fd984016b5115ca4","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.11.0-dev.20201013.7ccb128.tgz","fileCount":178,"integrity":"sha512-xaG5yDxtdwNNfYa6cs9wmCGTN6K6d2sh8jfGvMt7dqs26My3c6Sus03VF74sRrp2OQXnbBLqZPVY1qzLKnjoJg==","signatures":[{"sig":"MEYCIQCm1QEy95khaEFjnXYUUv+8tVUQqaJATYvNw2XHicPgRwIhAKpiMqWTo2/DhcBqE8/FJVDognz4hsCcrznePli4CJa6","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1533172,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfhVXvCRA9TVsSAnZWagAA+PMP/AyXWZIWBvkpW9HMseAs\nG1ArBdx+qxm7DuVDJRIkHC08h5Rrjk1+JnaGBT7THMT00kmproc8I76Punqz\nBHNjfrNOgevWwYdX8mZufKyJX4q7e1U5NX8AtmkSBMqzOYDxPsndZ47TL/v+\nwaI55/AMNL3RC0b6S0QL32iTis35dFI66ODwnKPzNj5elysT6JHmpZJJZ2sB\nEcgU0DmedXzl19MlCA19GgOe84XI12XLH6fEsq9pUGQpWrpRqqPj4O87S5UH\nxfjKHOAEBtlOfjPJQYCzZ1yASfNXjSd1a9HEy6Ps2E+7oF/7RvZtbTxsievd\njowUr4GXHO/OpMXzAnMaglIZ44BVdyieXVLMjNRLeQUO78TjEyYW3wIXyJLO\nopRKAnlt/C0v+H1+ruG0eMmSV+65pwYCGRtpc4l9YczeEOZ4j92eGL8aEb2W\nt/oPxY7tAyG5D8NwmiF9QBwjTpzaSBnopLjldvdmrZ4bqmdO+pIPgKl/1LdX\n8RuAqzwVESbG8iomrpBybTKz1LHHe5K8sk6G3+7cPsuFBOgKT+35Wb9/g13W\nCeqzIR2x1pQ1U8va6GFF6Gf9/Gdjt9RKyUqb2pRhrNwrGd2RbGJXNfNK2Cg1\nQXhYeLPCL7HSx7w3ixUFBupBJN4GElygV1b0Jiw+MfP7Og1Lw2gE3robDxJ2\nWHHD\r\n=Rd6Y\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.11.0-dev.20201013.7ccb128.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","postpack":"","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.6","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"12.18.4","dependencies":{"chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"^4.7.2","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","node-fetch":"~2.6.0","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","@azure/ms-rest-azure-js":"2.0.1","@azure/cognitiveservices-luis-authoring":"4.0.0-preview.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.11.0-dev.20201013.7ccb128_1602573807048_0.6758791934526589","host":"s3://npm-registry-packages"}},"4.11.0-dev.20201014.d8a6b54":{"name":"@microsoft/bf-lu","version":"4.11.0-dev.20201014.d8a6b54","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.11.0-dev.20201014.d8a6b54","maintainers":[{"name":"microsoft","email":"npmjs@microsoft.com"},{"name":"botframework","email":"botframework@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"59bdb6e94e54307f76ccadd606ca9e61b6ee4aed","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.11.0-dev.20201014.d8a6b54.tgz","fileCount":178,"integrity":"sha512-3iTq2YSXlQaxShepP/Hu393iuyAAOsAg0IGqt88Hhm+1QhT0WJeuqxzYQeZHYitxJrpEcWfN9/PsoCkBqDEsgw==","signatures":[{"sig":"MEUCIQCLj8tZ3EQtCzg2bZJhqMJDQR9QwhoIQRe9QzQIIgKkcQIgOv3Bq6mGz9ZXJznP5yvKSJN+7tjcIeDBF39+jceJEg0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1533172,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfhqZFCRA9TVsSAnZWagAAGdcP/2jgcuzJtEUlUfAW/HWt\nWJ1zVk1t+znuu/X2f1hLKZoswgpNsy9/lS0YesT0Pey7DbM+fFC60ltg/N4u\n/PSKgekvETH+cQv0VvsUm8hw0GIQFuEPFz7XpBNEdw+ix9Xph2BXzCA8GMFA\nXy4zZm+Gl7kSDvYnZvFdMYFd48Pv/1W0XwZFz+uQNNgwB5wQiVr2GqOyvBSV\neV8QOGNgKNcMUNz2sqLfrSOh7mX9flURIw3oOcDiCfzN3nKs/KYwwFKRcQYZ\nAlQyTEO1f30AOF9HTRMvI3sD87sEpKWqfnftprWjtXgLhAumRJYNFODy06CY\nGzcHIvb3v0l2CXYefolsmjobNhsbuInUebitfIH/3hpPunGzvxsF72hRUj7k\nOPNJYMTzleHHeitW6v/iu/bTAsXJbNW42R+duCzf3kY3XkzYvIfLJNJcZzxc\nUVNd4D3DphVcUQEyQ8DNzjzz+IVZcybmiMKdaIiI3sqk+7Sh5xgdqUhPaGZo\nP+oc9MECzyK7vtwPAEdrI/pQQx6wFE9gfuEjj860Qw+zWcSYD5IcRJ6e6UHT\nLWksMf3s5UzeAYuFNYSdPirP3d3/R1PMlCP/Azeu4NN5qUTwHTMoSS3uHweh\n/9f3Q7NeY3j+bmBtoLgNw5jl8SmEgfH7BRbHKLNw4nxxh9NKuVLZw2l6OGOE\nieN3\r\n=G0DJ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.11.0-dev.20201014.d8a6b54.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","postpack":"","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.6","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"12.18.4","dependencies":{"chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"^4.7.2","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","node-fetch":"~2.6.0","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","@azure/ms-rest-azure-js":"2.0.1","@azure/cognitiveservices-luis-authoring":"4.0.0-preview.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.11.0-dev.20201014.d8a6b54_1602659909245_0.6192976885249024","host":"s3://npm-registry-packages"}},"4.11.0-dev.20201015.a41c691":{"name":"@microsoft/bf-lu","version":"4.11.0-dev.20201015.a41c691","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.11.0-dev.20201015.a41c691","maintainers":[{"name":"microsoft","email":"npmjs@microsoft.com"},{"name":"botframework","email":"botframework@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"1002eb10b7625fead68274c007ac857de79f4446","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.11.0-dev.20201015.a41c691.tgz","fileCount":178,"integrity":"sha512-Bq/4NJ8FpJV/wOOdjxLPMHmZoT08qSKozFbnukjdh5L0UNDDDyhTSSLmG1hdGc337VmtQF6YBsLu9sEmATSJUA==","signatures":[{"sig":"MEYCIQDVGno48nJVyRcfRVKQ1xCHCboL8n2vXp/91lwREMGdHwIhALXvZire/gTKgdlzgZPU7cLCFyoTi2kWooX2KuhZZkYx","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1533240,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfh/kwCRA9TVsSAnZWagAA23MP/iY+wJqrxfdtmBioC9T+\nrnqAzDM7lzTMCpH4gBUdVP518fiRv3pzKEqtQuseuksORJWcoi5BRgbKtBzy\n+7qJeoWd1KLNx3TtVei3pOXcQYbdj5liufNE4ZNQskTfL1mDLqkUeM0AD6Y7\n6qxnhLKV4xhYwrELFBstVJgVox1b0eplbjlAZhIf6QWHL/ma1SfUtwwwVIaI\nW3Zmac0wOb+PdHkmw5o6nGsMPFIN7XPzN03ECaYdzvcsQOen9MVQNLmSxnbq\n1AwDvtjhh5fbcRgmA/Wg2Rn3euZiwtIxbqiaz4PvjKyAldy7+bgY1JCyETWm\n7r+/Kt1Eq8i42YSB5Vo11CsuJhLePcK4M8vJzrXsXkGlRSZdLo3kjBnnn+0D\ngGR4kfq5aN2xvmX4yQeKI5+RroXBLBrKG0OIUTmw0TvsI/w06PWqTrUHui0I\n8EAf0dXCo99+M0lRBAs95UMSbw6tipWkcT8P8S3coU0G70dvuqDoHlDdTo2P\nrc1+ubHDejeNtT28Gew6aaqgx4sXlfUnqV6qqLtplpf6aFwrHOklMXmOxVfc\ntMgtoEyPVRA3OIpfRFc9hDTi1RU7a0jkVgBeCA5Ci7CRQk5VyJzl0A7h8WLV\nqaIN+z/avnLTqSMmzT1snlBjFsI4TfV6wEzdzORVMv/RD7XJh27+omB+WciR\nYL8j\r\n=1hDK\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.11.0-dev.20201015.a41c691.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","postpack":"","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.6","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"12.18.4","dependencies":{"chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"^4.7.2","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","node-fetch":"~2.6.0","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","@azure/ms-rest-azure-js":"2.0.1","@azure/cognitiveservices-luis-authoring":"4.0.0-preview.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.11.0-dev.20201015.a41c691_1602746672532_0.6654943777159155","host":"s3://npm-registry-packages"}},"4.11.0-dev.20201016.24ec3b9":{"name":"@microsoft/bf-lu","version":"4.11.0-dev.20201016.24ec3b9","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.11.0-dev.20201016.24ec3b9","maintainers":[{"name":"microsoft","email":"npmjs@microsoft.com"},{"name":"botframework","email":"botframework@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"a0f3880087978ff09236510e25ffcf085cbeee5a","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.11.0-dev.20201016.24ec3b9.tgz","fileCount":178,"integrity":"sha512-bMSJszZLYlJQFZKXBnMGdo8WTm+p9wZQERGlVzxYAqTooI9nqBdhS5MCki9qUlpPC9KkScyp0VI+n1UV63S64A==","signatures":[{"sig":"MEUCIAr55N25IN7S7Vy05GEmFuDps+/oyQtFqj5/h+1Ya5lVAiEAlj1DeHqXmWAubgIHU3NcMxrReDfvxTsSAxWzy1JcAcE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1533269,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfiUrvCRA9TVsSAnZWagAAM+IP/iKfux7j1Anw+Lgugihs\npfBOdyboXBxpQI4l8Eeptjut0GKk7LAig82Zil2YQObUH85bMcQbvn5nCiW8\n+eeH/MtiGqijcDAu1LTJpKPpsar79VR3oQm1ulvSv8Ph4zu4O93lquP3xIgI\nyD4ouXcEAKr9Bq4a5GDZ/zoxu6L8uKDaAF8oEpnh3HZt922GXaLxNK97coWh\noQa+eC1F9zGofpiExtRbrDDzx2liA7FaV7AvD9xF/3E5fgd4ivjDRbK+Du1G\nQYx8us77T7Q1lTApW2ZTvKA3gCPOjEFn9TCE9b9Tx6+7W3kJ8W5uI8yaRunx\nLczBKPwM/xcDmF5iJOjoEoxSHM8bFy6+ZTxmyVWD8fJg0Cqht/IgiX+T/qSf\ny/zoy/KcE3ylQHFez+MBx9BzV9n548MnG6XH6LwQO8VTI2DQU0rY3C3pctG+\n80Bn/hmauy9Toj2Gb/vZXz5RT/U1AUKAyyxS8417nN9ue650Tgxs2a+0koRD\nz6gsEIpvMCPrCvy+lp+nDiS7igOTpO4emenYgRnfuHyg4VmQRMsWRpLePKX/\nOqOd0U035M7h7OqGz5eLG24EsbO4H4I9LfEMegB0yIam0jiNs9EYT6T3Yhmj\ns8/oRm5RUJMYL38xeLKccRjvUUaedSu80MumJGkDHYgSfegT3bLG1ap9kM4D\nfBmy\r\n=vj2h\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.11.0-dev.20201016.24ec3b9.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","prepack":"npm run clean && npm run build","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.6","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"12.18.4","dependencies":{"chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"^4.7.2","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","node-fetch":"~2.6.0","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","@azure/ms-rest-azure-js":"2.0.1","@azure/cognitiveservices-luis-authoring":"4.0.0-preview.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.11.0-dev.20201016.24ec3b9_1602833135446_0.566277386310353","host":"s3://npm-registry-packages"}},"4.11.0-dev.20201019.091464d":{"name":"@microsoft/bf-lu","version":"4.11.0-dev.20201019.091464d","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.11.0-dev.20201019.091464d","maintainers":[{"name":"microsoft","email":"npmjs@microsoft.com"},{"name":"botframework","email":"botframework@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"a19d9d4c9668be0eaceb05ddd53626d91b5c2383","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.11.0-dev.20201019.091464d.tgz","fileCount":178,"integrity":"sha512-X0gLCI2A8LEJx9//zl9Et0WytJHnZ3S6JrrP46MtoQRiy5s7k4bpogtHb8ZziKrXgayKeW15PcUletd7KmkbaA==","signatures":[{"sig":"MEUCIF8dgwEC0/WKZniCCtlEtjr+pOvYsXdQOo/DWhwYriQHAiEA7SY/Aje6hyo/gtusXwNixuq2vAhQ628hU5ZUXcI8LAc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1533269,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfjT1gCRA9TVsSAnZWagAA7rkP/RazSDcaeHrOZNK3fm+7\nyhnine3l7XuWqzjqlWK8HiDZXd1UsgYAfxyCSyyXRSc+1gWdiT+oJZoFNdbs\n0M2cmOVWGSR10WlxARLIak7dy2hbMYBAnsjWb5+yONlnJcSd7RBFEW+pSIFw\n02zHDMaCoLpIEmsVVDN3+B041kGFjhAbVKHfxbHGbUBR2tSEEVKQKGZyS0hE\neI/eb8SqNQsz2OVtmFUe6i+yXdMCPZCou0iUtj6jlytcZxF2qeCvMMLARizn\ndCQtZSDeT+WCtCED1c58nq2SjCFqZ1FGN5gUshtchs0xE7kI3oNbRcYIROx2\nLAEu3Jl3CWGQcXlf2mYcgszvR7EPlljuv9UcN3w0bfpUygpbbohVXzOpYwvh\nfGXhq781oIp27AE0h+ZBzFxsxZsGpj+vR1noVXppb46lWF4/GVA1qvf7umii\n9X/HVdHDb4gHZjFVeuNOij6nuKNY6SfBnjyhRr4Lnl6YPVmpElcpqK+0ZunW\nEJ2EKsGPrtrEll5+yICjEPP4w2ya8L5JR1c6mxB8Uy/5uVpGgeZ+qD8daSM2\nYOW0PJLG4OTJaWe2UZ7RXFcpaSk9SkooQ0EgIGG/bAxosYhpK9LgacCR1ZY6\n25d++g7nkFjDTRer+I3edDLhEqXWfrUgJPDFlPC0lSkWg4rAAHXdWyHneH6u\njjPg\r\n=wRgz\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.11.0-dev.20201019.091464d.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","prepack":"npm run clean && npm run build","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.6","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"12.18.4","dependencies":{"chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"^4.7.2","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","node-fetch":"~2.6.0","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","@azure/ms-rest-azure-js":"2.0.1","@azure/cognitiveservices-luis-authoring":"4.0.0-preview.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.11.0-dev.20201019.091464d_1603091808187_0.4993017240110995","host":"s3://npm-registry-packages"}},"4.11.0-dev.20201021.d59abb5":{"name":"@microsoft/bf-lu","version":"4.11.0-dev.20201021.d59abb5","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.11.0-dev.20201021.d59abb5","maintainers":[{"name":"microsoft","email":"npmjs@microsoft.com"},{"name":"botframework","email":"botframework@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"1ddcda50278b3b700d418c57a2f93b6476823285","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.11.0-dev.20201021.d59abb5.tgz","fileCount":176,"integrity":"sha512-n22N9Vqq2lvMCm070he5oxZp4+cdD20vx5rayC1rXfzGHHKxpw8n1s2qIOU8bw8RhkCWga8EM3E6swLxiI8ybg==","signatures":[{"sig":"MEQCICL/oiivBsnPxuURIpHBiqehnYaojDVcRITKkZUXPsxhAiAg+0yEXCuuuU/lEyrw6urNF5ZCNM1r/sPqyAg4xhTmOw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1523829,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfj+CUCRA9TVsSAnZWagAAxqkQAJxuBEryzyYeXa1BRcfJ\npUl0kSG0JuzM4avb8dAIo0QRp87w97FdAE8m3QsotuZXVTMZzKXEmkwSrTxD\nolOTHMTYWxwWoySww8u+doZZ6z1vtEa7et/qfLilxA3VHEAy3/iUmS77jWca\nG1BZDU2LHHJBVv6ZcKNJJQxTXDkNATjS1gw269qM5FrICBcFIQbD3waDwK3V\nxk5afu8g0Bt4SwVr2iN9b0bl51Z/AICqBB9QQJCd2IN68nCeJu7mJRNiypQc\nR1GbVe5XlZUaZAYSPcqXRPy8F1PVKmqfxz+DOLs3Hq3BIQHMIi0/XbiW2kYq\ndb4XkLhVIMfAdZIdEn9qgk4LXuYjar8x7nyWKsbEtUf9wlrrKaEXP/lE32o0\nchqJBYEOf8Q2nIA+VJhrrsl7GQjRvo2WpyZikyOHLbbqvkr9lmgysao26l+w\nO9lHJMzRAEfvnkCQlp4PNRPaUWCZkiaYJApoxEatRiJwso2YvmEV/zbtwerI\nsScVe2nhd+4b8NxF7vabrWvPycxbxp+Ea7EuoG9rCW8u+c3uQNpa4MwgUO64\nnyWcxJa3Wikl/j4Bs9+juj+QqCH08uBTG4TvDKHsdCqRo3+Vf8DXSeElVtsa\nqtjfrXkxbMT46D5myGnTF2Ec5Cks9KysR6TKsFCpfpXqq4kdhe+mPWfJnse/\nhxON\r\n=U0ZR\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.11.0-dev.20201021.d59abb5.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","prepack":"npm run clean && npm run build","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.8","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"12.19.0","dependencies":{"chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"^4.7.2","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","node-fetch":"~2.6.0","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","@azure/ms-rest-azure-js":"2.0.1","@azure/cognitiveservices-luis-authoring":"4.0.0-preview.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.11.0-dev.20201021.d59abb5_1603264660299_0.007807081338906174","host":"s3://npm-registry-packages"}},"4.11.0-dev.20201022.a4b06fc":{"name":"@microsoft/bf-lu","version":"4.11.0-dev.20201022.a4b06fc","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.11.0-dev.20201022.a4b06fc","maintainers":[{"name":"microsoft","email":"npmjs@microsoft.com"},{"name":"botframework","email":"botframework@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"6166c13fdbe49174e1f8edc9778c4abde81108da","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.11.0-dev.20201022.a4b06fc.tgz","fileCount":176,"integrity":"sha512-TOXCWDxEavk1XGhlU4dubF0FryptLQ9plmv/Fi09z5vIwcaASoRdVnUSDEbB+spgTRNZvdA47yj44D9ac8YOkQ==","signatures":[{"sig":"MEUCIQCMaNyqFv82QCFKGdgZHRw5LkzVa7+cyaYVXQbw9DqJfwIgOjr/KX9+2y45Yzugfl3CFIJnJvI4emvAZtVHNXBA6ao=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1523829,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfkTH+CRA9TVsSAnZWagAAkpAQAILk/xpqx4sHoMuh3IUL\nabm2oatdBu5z1wsncoRBqHaMoD/jp+KFc8wdwU0KOwC0kYkALC6OMTsCEmMz\nGDA+tM+6cjuND4YuLxnlEwUwwJwV8M8dNli3nCgGuzdqbZ9hcJcpTjpy8BrQ\ng+iJ/iu39xkhwNcm+MKrfPPsfWTNy5Vbd1Vz/mvuaKkDdTyGVRYl8GWANf23\nJrsg3Q/lmkBPy4MSE1BzJN6AxwEz5gn6CwNxwsN6ZU2HSgN/eBvn73cpu5yM\n4XxtQTs2ThK5OR1+0AYS19gChYLnFtJXoMTYbH8RKIv9UHN5qwA91E+K0Bt2\ncwQtgjlr8iwkZoGBKFGlrcV6Ev6EQ8cyS5PaMkpSgEr9lpK8MCSuhwAehq/A\nRJ2p9aVbBfcjUAWSpS1C+wsRNgKl/HOMEWrLi8pOYZIBBLKbntbbz4WlZFhA\nKcfbyCFNFBiLt4jxnXcN1AX4mYd75Z6Cruqjztzn2T7zkFJ/DDksYFcJpUvX\nLhcf5d1s8l2XEBnigbstWxiAboWMbdQFd1nTUb9SErlJBa8YD3dCaHoDRN9c\nVgaq8vfDesHkmDScXk+wfXyGQd1UoQQOS7nfGbEm+FcAF93CW0rK8+qUtUuF\nS+W5NDTdGoycdktT79/C28z+9YWsnL9DVRkye3S8IOQ4fgvYvZf7Z9wq1zI4\nDwc4\r\n=KasL\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.11.0-dev.20201022.a4b06fc.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","prepack":"npm run clean && npm run build","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.8","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"12.19.0","dependencies":{"chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"^4.7.2","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","node-fetch":"~2.6.0","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","@azure/ms-rest-azure-js":"2.0.1","@azure/cognitiveservices-luis-authoring":"4.0.0-preview.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.11.0-dev.20201022.a4b06fc_1603351038325_0.6135912312444545","host":"s3://npm-registry-packages"}},"4.11.0-dev.20201023.4d90f4e":{"name":"@microsoft/bf-lu","version":"4.11.0-dev.20201023.4d90f4e","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.11.0-dev.20201023.4d90f4e","maintainers":[{"name":"microsoft","email":"npmjs@microsoft.com"},{"name":"botframework","email":"botframework@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"ac9a84f94a682286854e9481aa727d5770e75815","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.11.0-dev.20201023.4d90f4e.tgz","fileCount":176,"integrity":"sha512-kUbUg2nzyCcUJ7qEDXEAqlWXgRgBoJjLEAKIDAq21LD8ka9BfmCUqf3Z3yzzXf2IY6kh1eyhkZ7g/kb9dOHpmg==","signatures":[{"sig":"MEUCIErI6e44yk0oYKFx2Z0f2QR/lFQmBOr87qXbJ0s0FqAaAiEA8ieIJ6OijWmcTyahnAgVSscMKPUQXVAQBjplGleYxiY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1523827,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfkoOPCRA9TVsSAnZWagAAkugQAIgsajxgctae4Npl8HIa\nGcypG8PZWWlE/N4BmcBV0XBufPpwWHrDEMc8aFBe17fO5zewR7iYKXFt44XA\n1c3YYdIEJbPH81PCgJ8kz/VCPg6H1lcypCj3yEABkIj7qApDB2Qhe/sAHPNI\nvsr6iTQvjfeHlTc9gBYm8r7Qw4CsOdMYc4lWkfYqEKJf2op9IHl3ivEK2Fzm\nceoa/omxTcZEuw21ZG9VSdaC4DuOhYZMcSZDUIXOZ8plk74Xq5feRUMshHBi\naR6lQcRlxI5RroOi3IVQCY8/SmQ1B6r6uNpuG7GJcKKZU/o+WKWhvaKJIEic\nOFR/eLC7GBBkxin2HGnEmJ/6xEcI4v00xys3cShhjQeUf/rY27+dHEgb/mal\nyHcE0cK0eXtzKBA9wB6rx99K1u7LlUrjqPnqHk1/ENOM2Snzr9s43xcy09Ku\n97ahpJXcIO0EC4Ie3gYO9TtBppIwMCISPP4AQ6/iTJClszfjWR4ivTIetbW2\nJ5u4yhSGtdJ8CYO6GQmaFbOXj4ezcCBt6ramco79Tv3Be5yDUsXbEvYxhwNO\nuyMMaBWWizI9FOaIC/Y47JO6q8e+yBR0utBwA6QxmBccvqtulReiN8LaWCxR\n+C0hP9FnqXVqdX7mfmb2kx6yML9pp1MFPJrtLBUhDfC3/Z0cwvT4aGdWNsol\nGjQJ\r\n=Dj7k\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.11.0-dev.20201023.4d90f4e.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","prepack":"npm run clean && npm run build","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.8","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"12.19.0","dependencies":{"chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"^4.7.2","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","node-fetch":"~2.6.0","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","@azure/ms-rest-azure-js":"2.0.1","@azure/cognitiveservices-luis-authoring":"4.0.0-preview.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.11.0-dev.20201023.4d90f4e_1603437454698_0.583016556138189","host":"s3://npm-registry-packages"}},"4.11.0-dev.20201025.69cf2b9":{"name":"@microsoft/bf-lu","version":"4.11.0-dev.20201025.69cf2b9","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.11.0-dev.20201025.69cf2b9","maintainers":[{"name":"microsoft","email":"npmjs@microsoft.com"},{"name":"botframework","email":"botframework@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"0664a7ec491b0a9952456d9e581f6d934c385b20","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.11.0-dev.20201025.69cf2b9.tgz","fileCount":176,"integrity":"sha512-mnMVxOiDkbXTsG7gHDbp4C65M3nELz0isvh/8MSlcnsy18q5lsvIi8lXeSONnfu3iePaUcwQfOiylXQKWtA7Ew==","signatures":[{"sig":"MEUCIQDCKmIuEQvpne0VJbh1P9XzLgCmRZx0gTg/juuYee/R/QIgVy4y3Qj1i3mkFZMRn+LonNj+JTu7pUoPQIjrdxU9Gy0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1525068,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJflbMNCRA9TVsSAnZWagAAjsMP/RHCPtMqJMBNDAC2tkL+\nfNGE4L9FtFQPmkD0F3LLe7XTRoHgSujSpAe7n8yflKbfrOUIOmE3434kjII5\ncuEZoLze2UZJv5LB4wDcyze/RzQUsLM+saHHWYSaAPOkdQUAZUxFVfy2cuJ5\nzrWtytYzuR+obRiC+EPdu23yu/jlJrea0qAwhQdepx5ac+3kz37/8robJRaT\nRYgOF8oL17EXljlJBMnolh/wiVG5nkrOGlnCDxrWadPSZ4+IngErQTBbFcYz\nMdYwnUJSRX5sZHQyv5uoz+RuszLf7/ihkXiU/GAmZGrLgD8BVUIZGDWk2GJ8\nCpdDQ3Alu7d/VO3g9nHQpw5FhoGPHCQyMCw210Qluhct0OLiPaO0mh6PL2bm\nXuLCT+y7VUssVrrMkEwQPxZ4qbkOCdqZ2vRBBYVRvmlcELf/7DSIfFPXh1eY\nmef2yZ8ra69rZcpzoVutCq122zqUTf+V06pOe1MIJA970F9OQ054nvaeFUb4\n2xeBySvVCPGh/kHlcMLHYjVVUlWZu/IJoktGED+qaUrskW56fOfUJoQCblMB\nRKGlfvuBFvFpo8WjOmYluFaF4M22zZ6otOD9Y63Y72xai8+09fbrc2OtCDTv\n3igKtWjReqMKal3JmLH6MzLvtHixFqNY53s2iJKH3FgXs1kEwXlIBh2WizlM\n6sho\r\n=YyAf\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.11.0-dev.20201025.69cf2b9.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","prepack":"npm run clean && npm run build","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.8","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"12.19.0","dependencies":{"chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"^4.7.2","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","node-fetch":"~2.6.0","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","@azure/ms-rest-azure-js":"2.0.1","@azure/cognitiveservices-luis-authoring":"4.0.0-preview.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.11.0-dev.20201025.69cf2b9_1603646221087_0.825329981515373","host":"s3://npm-registry-packages"}},"4.11.0-rc.20201026.e06ad47":{"name":"@microsoft/bf-lu","version":"4.11.0-rc.20201026.e06ad47","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.11.0-rc.20201026.e06ad47","maintainers":[{"name":"microsoft","email":"npmjs@microsoft.com"},{"name":"botframework","email":"botframework@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"a7664b94c9ec75d12e5d11205075a935928587b0","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.11.0-rc.20201026.e06ad47.tgz","fileCount":176,"integrity":"sha512-Ysjv6Nnr0caxsSNWCafO9Kngb7gqCP5tq8mhUBM3FzsyOcmvfg5VVwTLZSYmogjM/tcr6WxqXQw2y7QG7NKB1A==","signatures":[{"sig":"MEYCIQC2m+/n4bucKI4LcINwGh5oUSYbHAQLl0TpELR4MtCfoAIhANs7b96zpp/5FEfUJsjIk4zzDvebetNz/7eb9lYKmmAJ","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1525067,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfl1UUCRA9TVsSAnZWagAAeDcQAJUmsG5W38MSAF+1HuW9\nhYdh2LWR8J4oiSWKpd6iKacDgL6SEvlOIdJ+yUOrw1Ij+iTAfcHRNHCIwTUE\nz4SEMnhgp7Ww98PG0YObhXOD8sikOVxCjnOuus3n1fCgNAUAn7lVNpZ8sK7y\ntOu/sLYMWKQHGBGJ3acNkuCidG8zUWgh6gHndj1kT0ErRC1y3jVlZ8rbRK30\n28tZDSm9vlv7VOoHYdwPHjqJxvA+btLcIBpqCFhUD51zS+EvBnE5WroIynGK\nZPneJATqnIM/OjWGxvAMHd1GXXi8RogIE2z1VyWnW7AFsiks8MrVtLOob2Ls\nEHE85M3TiWFIKnUmY1H3C7RlQfEBeh32GiKGx/2U9+jiXIZrLFee9ZWeb7CC\nU34NMeRGBd55Tlxmu75HZqCMxzk/j7pViDg12dlh7Cbe5QHxz6GjURS34H2d\nM3GkGQZw3krj853I7FzqvfE8MfgJKm0k+SbKcMvwz1YBwyZra3OTS243Kwlc\nPEkxptH16345e1JYRsXyH1k/eQHriOBfdBOyGSk+/9+fMx18Zd9mN6UKuT1b\nNwJPrFkbxGJSJREqjryiMuUcabtK2zssoSvPIqyhxxUpRxtwEWH5kInAdRS+\nyEphGfIixWFTtJSpQK4CgWH0KkThrryjp8a5KPgjclud9LO0nm7f/ochFa0S\nwc8d\r\n=9Q0k\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-rc/drop/microsoft-bf-lu-4.11.0-rc.20201026.e06ad47.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","prepack":"npm run clean && npm run build","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.8","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"12.19.0","dependencies":{"chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"^4.7.2","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","node-fetch":"~2.6.0","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","@azure/ms-rest-azure-js":"2.0.1","@azure/cognitiveservices-luis-authoring":"4.0.0-preview.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.11.0-rc.20201026.e06ad47_1603753236308_0.9907378564049405","host":"s3://npm-registry-packages"}},"4.11.0-dev.20201027.e06ad47":{"name":"@microsoft/bf-lu","version":"4.11.0-dev.20201027.e06ad47","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.11.0-dev.20201027.e06ad47","maintainers":[{"name":"microsoft","email":"npmjs@microsoft.com"},{"name":"botframework","email":"botframework@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"4557e1376159886a3a6496f865e3088315b98bfb","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.11.0-dev.20201027.e06ad47.tgz","fileCount":176,"integrity":"sha512-e3+G3+sr0yJZliNl+jVMQICmgu3GS7/T+UM/njS3/rggE1HpUL4Vos1BWSGOFPLhavg3InSdJRc/uUGK4X51VQ==","signatures":[{"sig":"MEYCIQCKCRd5OKqbhLbpJbmjwnKVOHSdX8FsEPFLidFbuMrGhwIhAPsUnyk9z+IVHZqOlixQZDLUXewGzBZFs7mCq60PImkc","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1525068,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfl8m7CRA9TVsSAnZWagAA7WAP/0ZwQHXkHcnPST7x+T1s\nVurEbY28p2FFsMhmROIWs7Q9BUaZdSuql33NtXF2Pwwn8wXUWyVc6nHPs2oH\nwbnQJLcifkk7SH6ltRgBMKfSkIuy7/sB5X4KXMwIsgdafCNps1I6vqN1ZJvD\nuIstHsIhCJ9GBPUsLb4DiqM8HIKwbXTsNitvT/D1/MZndqw9W+ZdGsAirDZ/\nyAVOuIKZwg5oJ2vOz+lK+fGH+0Nt4b0wAwrgr+urFm6g0es+cCBCMbmtyasO\nNmfvDG9oNVsl9fJkpgGFv+SPMHLFn4IEiP6eNapKDfgO8IAMQBTXC7xm3aYh\nzPcsgDypfsjLoSDZg6FTZzfYc9V/Dtjx6/jUoWwaIkN8BVDPqYBsgPHbSzni\nS0JXRe/PkXiJ4rB0c1N79Ogv6wKBjXP+ZDHUYwz27YMQr8/EcJf8N9I97XcZ\nChljxPgBnhp6xaI0zYzcGn6/0eWrR57Nz8NITtM2kqAjTJbsxkW5nnRxddvE\nQgiITA9QmFlQC1seL5tD777sdfbyorhJZuhC5O9TRjmrXY1JTQxpF/HIZhLb\n0owTPXaYTsko3YLp/SZMnqi+O/TKoLiVx287dlVk6sQLQ4Mu9UfhqyAY86Bs\n0Hoao3MJOv9kYNQyERETesWrRa2ntIDWm+iZMC7RFNAIwNGEZf/DU6TKMZUq\nGZ66\r\n=fi6Q\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.11.0-dev.20201027.e06ad47.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","prepack":"npm run clean && npm run build","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.8","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"12.19.0","dependencies":{"chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"^4.7.2","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","node-fetch":"~2.6.0","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","@azure/ms-rest-azure-js":"2.0.1","@azure/cognitiveservices-luis-authoring":"4.0.0-preview.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.11.0-dev.20201027.e06ad47_1603783098849_0.41139737248087216","host":"s3://npm-registry-packages"}},"4.12.0-dev.20201028.999bc32":{"name":"@microsoft/bf-lu","version":"4.12.0-dev.20201028.999bc32","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.12.0-dev.20201028.999bc32","maintainers":[{"name":"microsoft","email":"npmjs@microsoft.com"},{"name":"botframework","email":"botframework@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"be2d651dd0932d3d77c7fbca959837e61b4d5a92","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.12.0-dev.20201028.999bc32.tgz","fileCount":176,"integrity":"sha512-GQWaH6IXNOC2qAFmURAT3sl5YD1MaBgpLAy4nS3r5zUcLPNJjE8taksueqtQwltvCWJGbZdPLgPVTdwI+iBR3g==","signatures":[{"sig":"MEQCICu2JPidLHeXPLcDKCWVXovdvVtCkk5eOMJDWsa5xGm6AiBG0E5K3gCouTcfdvb9ER2XDwa81+pD2AZ33j94MPbt8w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1525068,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfmRsgCRA9TVsSAnZWagAAuRUQAJLnpQHEoRo1F++QyZfr\ntHfoJ4TcaVuzxHPO/WddM8O1lllw2YAaYAKl9Ov076gnQInlRL4pCVA2BApd\nvcQmAXkseijz6I6zR00UajPtrN0W8I2GX7TSu3cxxYewSMbhwox7NumEmzpm\n11t6W7Mgfcn8RgKtegAEEH+YmqGMR064skLJSteiO+mRrMkLjYn7lQLcALNG\npKMNHkHveVZMgBgFvaXjKe1RVVIAp4PdRpvdfDvdWroEerK2dCiDokhnQU7C\nM0ISkAsBbkomeIfRRmoa82GvIsrfn/GFIaDh1RRZvj8bnr/E6/Z+6i8lE435\nspNSXwdEooFSrLTEG2UT1cuPqEQKM+DU5bgH1muLarzQurYcE3HirDd+SS86\ni4dbslD+fMD8qX7XOJCGnp6iBCg+iVYyRrz23TVOweB6OfPg+CtQb5PgnVCh\nOKFYD3cDeIXBaF6EHGnBXnfBdxTMW9ezdmwqrOYEkgQkuZTLzKdhYk3DYkfG\nGylBHMc/Q0jVNu2SN6e6e4RCxmAwSGJVFm/DKFGzrQxeGhC2GRpxvHVqXMe5\n5uuBTAu5833K2m25XKrRtyfG56c6EjBDCVf03gH9Ysi06+k57IqJZTVgPkma\nEgh/x/CgfUABNaLoY19XifHDBUBy8Bd5nzPbFqIJWJNjRsqiWfjEFnq7mY49\ntm/o\r\n=l0bZ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.12.0-dev.20201028.999bc32.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","prepack":"npm run clean && npm run build","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.8","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"12.19.0","dependencies":{"chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"^4.7.2","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","node-fetch":"~2.6.0","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","@azure/ms-rest-azure-js":"2.0.1","@azure/cognitiveservices-luis-authoring":"4.0.0-preview.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.12.0-dev.20201028.999bc32_1603869471993_0.17613808834135236","host":"s3://npm-registry-packages"}},"4.11.0-rc.20201028.6f4722f":{"name":"@microsoft/bf-lu","version":"4.11.0-rc.20201028.6f4722f","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.11.0-rc.20201028.6f4722f","maintainers":[{"name":"microsoft","email":"npmjs@microsoft.com"},{"name":"botframework","email":"botframework@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"76e28d6737184f4915d11f6d59b3d2468c9ab947","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.11.0-rc.20201028.6f4722f.tgz","fileCount":176,"integrity":"sha512-KMVS6I/F6pMyTb5M65raBrYmglRGkcGeKRmxld1XErTKtdz7aNF007BGug/ISJn3JIDZJ5FExIqPy27ns438oQ==","signatures":[{"sig":"MEUCIEiIz9YjU6IF8hMhfQnGfgOTmGtNZg/Kw20qxf3q95vxAiEA6thd6tTMGFVpOH1YqNj6ojoqT37jJJOxxrz2YF607gs=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1526630,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfmc+NCRA9TVsSAnZWagAAEQIP/igFpefQBBJ2gYPVqHS6\ndK+E8TWjo25AgG0Q8yz/NgOR0t4RoDPiAYl9eEok9y9oz1MekT/SHtCF91db\nEUCOXhAjKO4RdxG8yCnbYni8fyMJut5yrNBcTRIljsVGqJmN7Wd5tDlrlGAV\nkpf3banljAuTUUvLROnw3MWPf2ELYbUXg0uRLXFEEtXGKub2h2lThPETnnIM\n5s8QQRJUx4tLiJL63zyfFeyAfUJ+Ca0OQTbmj8idAZkPwlXYDjlmDUWJkwXE\nlZilU9XG7EdiFf1Y1jijcAtVVd+lfG5INmxgYylatmaYiMPO1wG8+3x+vqHu\nZJNv4gGIk01NaIovy9NoKojo3+mIoDUVwsecs2sQ0PxRkDdTso3z5GVtGMtE\n8kUT08O49k0VjQvWujN+9XINpuqGh50O8teeX+83Lz9O5+LxTsG+PMkOwGyn\nLgx+kkK0BXvFm3z25BvkT4L+6M5udxaHVFiT3hJB7GOLSlmrE5vgq3WSw1Be\nS1hHXaipLe6Nud0paXqY1A7cMJednTUsY6a4lbAIlgsylZD5F6anfIY5fI0+\n2AmmF0dSzmx+yDNxJJppBc9syUI8uoT8fRODfK4skwfJ/yg1hgFcKV1nOpiu\ntvrZbtRIpRw2Cz/j2TpSK2/PSa/SiKcf77iXbKrD8toWLHUO0zqJa/gMCyU9\nJasC\r\n=Uh2l\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-rc/drop/microsoft-bf-lu-4.11.0-rc.20201028.6f4722f.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","prepack":"npm run clean && npm run build","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.8","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"12.19.0","dependencies":{"chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"^4.7.2","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","node-fetch":"~2.6.0","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","@azure/ms-rest-azure-js":"2.0.1","@azure/cognitiveservices-luis-authoring":"4.0.0-preview.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.11.0-rc.20201028.6f4722f_1603915660512_0.6780554132461947","host":"s3://npm-registry-packages"}},"4.12.0-dev.20201029.76cad5c":{"name":"@microsoft/bf-lu","version":"4.12.0-dev.20201029.76cad5c","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.12.0-dev.20201029.76cad5c","maintainers":[{"name":"microsoft","email":"npmjs@microsoft.com"},{"name":"botframework","email":"botframework@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"55ae9c33d04328bab66189ca98e049f74ac82da2","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.12.0-dev.20201029.76cad5c.tgz","fileCount":176,"integrity":"sha512-SuHpBK/7R1h9O1jAtq9wQbdSp8M/GQEbBw4Zoeu9JRw9z5+lGz/4bWbdqHYkrruFQ2S+haniMEFIG36hrbj4Vg==","signatures":[{"sig":"MEUCIQDQSHQ1q4gzG8cuiCbMKMRkPWn6ldjseDXvoPrRT6nwPgIgWu3IN3rVMsiCsbFVqHDdHhp81m39Py/z9JVkQQJBDJs=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1526631,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfmmyHCRA9TVsSAnZWagAAb6gP/32gnedy8rvMD9w5vbSu\nBsD4SN3xher+8mkXkH5OQpQeY4OE8Ylb2OPOCMtTn2RinQ+YMhciS3f7w/FU\ncHh+rM1ZX5g52NeTyPlPfnPIUSQF6r/+uY06BSQu1fqNEpEKW6jlj3VgirOd\nsa0lSJ2JmlGH6VgwBgeq42QhrOkVGyyBKczg9eZEk5Cuba8kKiIJZnuCd3v4\nKchL5z1gjAib1/NzGCG+YlAyOQBdnWrN3YgV2EgHGc3d4JYtWPpvJkcGe6pq\nsIWTP5+QsAcKs5z7AGI4Zithw9VI2mlgeMvbgu6EfJ9fb0Usz8/yKHILnO7l\nXqpRryOnIK0WNJRb0CbASvfJn+1AOaJdWWyqiI3CowWK9EotNiolPHmUIBvr\nN1ZbCoxciH7sTH1xSPZ0egmW55/TWR7yV6cuZPjVYNkXbVK+d1aluz+CENPY\nxT9R7Mhl76tn9BTd3osoe7PpMHfELKai+NyIpUUWrZyVkhWj5ZRz87kp59KW\naXCSGrQuXQ4efgWnXwJuIsMtjcVpTZyxev5yhJ0Pc0cghdaAafc8t5dbqDw4\ni8z7mL2mN2300O77sKN6ja6JXtq5lpyn1d+N8VdK3uQcfexlPxxorrNwf7P8\nKacobDnFvSWUVGLocISv9mRRjk3+pRm7rP3RDxXRKDHzbc1ukRJPSHmX0o+V\nBrDs\r\n=V9UF\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.12.0-dev.20201029.76cad5c.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","prepack":"npm run clean && npm run build","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.8","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"12.19.0","dependencies":{"chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"^4.7.2","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","node-fetch":"~2.6.0","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","@azure/ms-rest-azure-js":"2.0.1","@azure/cognitiveservices-luis-authoring":"4.0.0-preview.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.12.0-dev.20201029.76cad5c_1603955847023_0.5230784267612469","host":"s3://npm-registry-packages"}},"4.12.0-dev.20201030.307bcd7":{"name":"@microsoft/bf-lu","version":"4.12.0-dev.20201030.307bcd7","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.12.0-dev.20201030.307bcd7","maintainers":[{"name":"microsoft","email":"npmjs@microsoft.com"},{"name":"botframework","email":"botframework@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"4106708c9fff4e3f5e4b1ef87943ee902d423dae","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.12.0-dev.20201030.307bcd7.tgz","fileCount":176,"integrity":"sha512-v/yvHpLNQV6cVFux+TylhqEjb1Af3dzC7plHIwy8BpEwBNfs5nK6D5Fiqy45EIN391VlDrYTGxOYdRZatU9Hfg==","signatures":[{"sig":"MEYCIQCcXnboZ3Z7QQEB3AEoE05h1ft0qxXxt7LYm8DN2nzUXwIhAJVdPQAqn5zhpH5Qp65pgCBdZrqPapoeaBDmvKGRsokf","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1527832,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfm74FCRA9TVsSAnZWagAAiEAQAIWF4fLFsF8uli4BmErw\ntisJYPheYqHryJLOsEyYwbt2gQJjuAIrll5JLqQiPkG8RnLO7JfGZgTgPcVZ\n8ck5P3YDmLPg4P1u9ZSd7ZTIDGBKXCDphDVcsGnpreCNuofaRMFMv77wr8TJ\nVBO7N6Dx/hg8IN5/4xOrq32ZmYuznBahwAv9OFSVT9u2xB7X+PTQkW3d8ksF\nlqqZDpR5Qpy97RhraYDDqj9TOAPRtv/hiRYMPJ4DGtE4qjkOeA7EPGOpFQnF\n5Wd8C1FhRP48gM3qTi5kbzoQ1KTtb9wgwOtM0DZCz3siikA3fc9R8M+RsKy9\nbdNiSvM7FKv7B3OayKT3LZKTcR8wyPA0ECK0QcSSbpQFmjWcBzb3GtuThBUn\ngK3qY1lLOQ0m7Sajof2+yb11pOqejooSkSm1BSLBiEb1NoyCSRhktCNSh8yM\nlPC8nGswle7fNECvJrC3jAAbXO39ufn6naVdb2vlVQ1XdAau2bOwTxUrZZvf\nAw0VnjPSKfRVOUIPMylksc0w6hzjfn56NeNWVWrhcf51Ho/fLZ+Oix2+uukJ\nOiQ97QTIIbCUUQzVIEY/sk8YgpF+tFI4y2D1+pUTr9NgkR8WH4fX+jTBU7Qe\n84uLj2yO8wvbpgJp2MxBn6jaMPz0m1v32wv+qYav400b33pUdKZV7GNqLTxV\nGaF+\r\n=yuAD\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.12.0-dev.20201030.307bcd7.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","prepack":"npm run clean && npm run build","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.8","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"12.19.0","dependencies":{"chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"^4.7.2","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","node-fetch":"~2.6.0","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","@azure/ms-rest-azure-js":"2.0.1","@azure/cognitiveservices-luis-authoring":"4.0.0-preview.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.12.0-dev.20201030.307bcd7_1604042245377_0.7869010046896563","host":"s3://npm-registry-packages"}},"4.11.0-rc.20201030.a9f9b96":{"name":"@microsoft/bf-lu","version":"4.11.0-rc.20201030.a9f9b96","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.11.0-rc.20201030.a9f9b96","maintainers":[{"name":"microsoft","email":"npmjs@microsoft.com"},{"name":"botframework","email":"botframework@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"9fcb2a18d66bcef74eabc98f06df4574215c402f","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.11.0-rc.20201030.a9f9b96.tgz","fileCount":176,"integrity":"sha512-+VFZUGQdH+1lwuSxE9G2lOqO6KPevvhijKyX8N93/I+VxwfHuCF/BZ439MseT3+vJ9OzATfkeccqgOuI/kNBlQ==","signatures":[{"sig":"MEQCIF2bRD5T5kRdlEuB19pdgBJYxaH9WHI7gZgaiWAKOA5KAiAM1/2zn+ZvHtgWB0GHU1XSgJIpHwt8Nehxs1mPw6VYTQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1527831,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfnHihCRA9TVsSAnZWagAAKYMQAJ5fucFU87Ydw5zHKUfe\njsOU10e5SW3a+9lspQj6E7YCdu5pNEYdfNN/Zhe0Ps7al7HvhDKhft7mmyL9\n/HQeBxtbouzwcA9DA9d5yKYVORSvaQZ9ZI9j0Gl7Nh8b4Ocu1JxNh7lmQMJq\n3EBLAM1wtgGjDW/goqU6MS4T899lxo7wCgQ77z/9m30DJR8fqYZ55RfCJ//+\nEfXuR3bXGjL1r6f6H+TkKGNo7px5Td+WLppgQMvCzlsgk3cTm8Y3yxSWnm7Q\nyApAzPLxOnCbH44eoXhmkDccPwUvCA446ohhDP15D8L3oWNfBQsMpu2ypGj5\nYuSJ0QcCHdyvEztYp74Op3oQ54dO9fd9Y6G/IIKjyM0n6+ZhGAJQzF6yvnBy\nX+Q05SmjwfYQz9wTZKezb+9JhnC97xwAgjULRRNN15yW5tIyT7INAZMoOgIg\noDXKqdhKgPUDe4R/KnqwKRTIshn1YpYiDDCBLtbzfS48CgaEV8ksl3vrag3B\nw91EAJ9DNoGafFAvQrMQ1Gtp6m5XwuH0uFXJO2EwWpXHW4ylTPDM8aHg+91G\n7UftOTFgpeGgd4xgPjI0TTz61w5ImXYGMhLP6i7GG5mpiv2B+2rbZ5eH1Zyh\nMnytbdx7Kqv7m3e1WFCK7y3WXecDVaixuXvnOnYealPNI0Llg5OJHdPomemD\nGy6g\r\n=lEBs\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-rc/drop/microsoft-bf-lu-4.11.0-rc.20201030.a9f9b96.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","prepack":"npm run clean && npm run build","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.8","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"12.19.0","dependencies":{"chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"^4.7.2","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","node-fetch":"~2.6.0","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","@azure/ms-rest-azure-js":"2.0.1","@azure/cognitiveservices-luis-authoring":"4.0.0-preview.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.11.0-rc.20201030.a9f9b96_1604090016744_0.5637161175162217","host":"s3://npm-registry-packages"}},"4.12.0-dev.20201105.f7da1b8":{"name":"@microsoft/bf-lu","version":"4.12.0-dev.20201105.f7da1b8","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.12.0-dev.20201105.f7da1b8","maintainers":[{"name":"microsoft","email":"npmjs@microsoft.com"},{"name":"botframework","email":"botframework@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"5765d42d0bf5c2c0782255f88a8acbd685f85196","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.12.0-dev.20201105.f7da1b8.tgz","fileCount":176,"integrity":"sha512-awx9iY0DqYj//G+bw6OmVuopwrc9JhKq98v/VBy+tGGGRMN1i0hiQYekAaN4gSqEXcGl1m5KLhwpvbIYg7x4jA==","signatures":[{"sig":"MEUCIDHnKdK8LmhC7CWkuLgFuOmOqP3QiHLymF4psG/NWoxiAiEAzWAPHGBYUlczKeCmVPFsoIpa2AHNqfRw3ElAOwRNc9k=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1527890,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfo7WhCRA9TVsSAnZWagAAx1IP/3iwUItG2Q0GdXrWC6+N\nUYhkLrcXsAXL6dhsNw7H1iZYuXzD1DNJzlSjaX0IMCOZlU6YL+KvxXvKO0YN\nLpQvhRtunATDKx92c3L+mq2zW49ioN21viLD1I+gy7fLO3RMjS/OHvaBa+r7\nxEnUF8XxHb2w+uRbEOLmSoyaSgn2vf3Ax5ctkSLbTMKQXrBrae2FokdW1gPf\nLBhlEjIfS8aSW1ylWccjkxV4vJHyHT8aOMJRfuzbl/4Pj9ow9jlA+PxavIsX\nGTGxyUDlkdsEn1ga6uMHqeKYgV64asCElkvQvKeb90BvXNbEmL6/jX8Lr26S\nHcJ+KWbcTMwuXt6S81mZ3aGyIZ9xsNcpMnhcudC+01NHm5g0t95fC4cfxoHF\nTrnqEt8SE5NNwwh41VpxQCTXtCVqEb9cNrK7VtObHjoOYLpJYTfJeL3fYUIM\nUQaK4CKzyXoJv9oe1V8qNrCHrCHe2OJR3J0nzVYPcspfQTOE8TXLcgmIfmOd\nNPhG/XsBhYeO7NpgRYKYe0fUSTq9FxYUF155SFiJYcnCaM1sBxgwxmNfwRCc\nPJlkBrJbM/bxToXfKRZP9yfODrqNFiUwVKRRnqVrX+ZnFgQWrqQR3Yb6q/Ml\nWuEG9D4wpbqJ4i3DBQ1LE5pHC8nfIovG3/qPaF4j+/RUH6R6iu4hrm7523eQ\nY6GO\r\n=mcEy\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.12.0-dev.20201105.f7da1b8.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","prepack":"npm run clean && npm run build","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.8","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"12.19.0","dependencies":{"chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"^4.7.2","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","node-fetch":"~2.6.0","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","@azure/ms-rest-azure-js":"2.0.1","@azure/cognitiveservices-luis-authoring":"4.0.0-preview.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.12.0-dev.20201105.f7da1b8_1604564384769_0.40081571235550784","host":"s3://npm-registry-packages"}},"4.12.0-dev.20201106.c64ea80":{"name":"@microsoft/bf-lu","version":"4.12.0-dev.20201106.c64ea80","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.12.0-dev.20201106.c64ea80","maintainers":[{"name":"microsoft","email":"npmjs@microsoft.com"},{"name":"botframework","email":"botframework@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"ab3aaaca085df03371fb4a933cbb16ecd5cbeea0","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.12.0-dev.20201106.c64ea80.tgz","fileCount":176,"integrity":"sha512-zwyxg0E8Hpvqc+3UCrJVsGAFBKCv1CTUtZFMknPVD9inyDI3WhyeA79X3BaksYxRg0dPx9Xxrg1YyTcI1RimGQ==","signatures":[{"sig":"MEUCIQCl7xi785qm4Izp7Z7hRHCkU4yvIAZabWqy0X8m8DhwvAIgOxhx1Ir1CoBj0U0fAIYXnvgNO+kfz7qS6cCo9bdsduQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1527805,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfpQY4CRA9TVsSAnZWagAA6SQP/0zb/ihO67091sO4vpxA\nmiDD/LvXLXZcthOKlM0l98KQ0O2aZkE0haVBtgPGCgsRvQL5bLM3oB4NhjFQ\nrcQgSSTeJljEO1we3JTgIYgpflObkogo0OHz1Bv3MXq3SVpLWiND1hISsD+M\nUNLQD1N84QhYHaPzQM83TDBB9/NePATtw3vflNnnexu5QruRDnfmS1AMy1tC\ncU1Zh6oaDvtVn78bSPCstx43c3cfZMBOVNU4JZV+/vjjiP5gMFlv/iShm7FL\n6EW/1I3UP5IJzfmtDJt0aV43STrPeRN2iiG4cmLOhXfgBxxJhvdSC/jGzxCE\nTrOdLPxTYVXHSoocLnwuRyihX+DADfyuYm6VYqOqO8z7ahGAhe6WoKmNKw8/\nwzDFtGj7RNJA/KlHSwrqjA/O8q/vCcG8+WI3bwDoHfW19ell4vbX9kwZsWXK\nIfM4gj2xcxIb1GJ5ywteTXiPPNbQmfTI71CZ6csRLnEVPk7VJulBhhjjjt/L\nv31D08qQULe8q9Q+5WY/IBg+k/7zhilnHgxFNbKdLqiMEeZG5jLyKwmOgx5Z\ngYyqviCSOJ4wBstCPs1iYxQiNQJbee0L9RDu+wbvXM2hSJE7rYpJ+V9ZvoY3\nZJf8I29Fzt1603lDzJTNOyRak1tfIYxwm6w+FTknV7u7PjWmzE/bg8Snyryo\nnvki\r\n=Ja2i\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.12.0-dev.20201106.c64ea80.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","prepack":"npm run clean && npm run build","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.8","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"12.19.0","dependencies":{"chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"^4.7.2","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","node-fetch":"~2.6.0","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","@azure/ms-rest-azure-js":"2.0.1","@azure/cognitiveservices-luis-authoring":"4.0.0-preview.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.12.0-dev.20201106.c64ea80_1604650551565_0.5664155962292861","host":"s3://npm-registry-packages"}},"4.11.0":{"name":"@microsoft/bf-lu","version":"4.11.0","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.11.0","maintainers":[{"name":"microsoft","email":"npmjs@microsoft.com"},{"name":"botframework","email":"botframework@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"23ffd0f5b53456da675bd0dd9b210c3a3b6c818e","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.11.0.tgz","fileCount":176,"integrity":"sha512-rrVpc3ILRpV2uj33VHtrAjLsFDYxkiiK+hFpm4d9F9MkNatnR48hpkmlCdecofNjVZLHCuhBJfPnI5jfdG/8Fw==","signatures":[{"sig":"MEYCIQCbyydGDpD7lh5xgLoZC21j0pK+LXd/yccvv8r+ZtioxQIhAP/umecFp9oF1RYAvYeQKPQG1YHGSWBt2iLWwgk8hjcL","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1527811,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfpdKuCRA9TVsSAnZWagAAK0kP/RFVS1lV9dGrAvuFqVMN\n4FCwnI+rGcC5SZXUQfAhYd15Aok9zWvOXz4GWQKFFgeKiYuiAlwEjQ6PtlmE\ntDxuVJh7rjRTOdYihKWyP8YpInrxNNZl09Wdk0bxLNxC1uEfp0YonJyYqsJZ\nw4gXA284Dp3AwE3FaVIGnaPlP34EyZHO6v9+EAHER8QCduvQZV38uf0gaQAU\nYSde1tqBTG86tafuR/XLV7saZZDT/HJMxaQZ4cp1qrxhsKB/qg8lHOif0uSI\nQCbEku/3KD+R5A14Q/Gch/0ivUAxTlcOzH48TIeOx7A1CSDCxtizgszPkKFq\nTNpePXxyUZtCp/LQZzhZIzRLs43Lfv43RefpwHGv5sbwum8anxLLu7whEr/W\n9y2Szr/pTQkdsou1wgYzLbpI2t+GINLp5yGjaTo4p0TsfcN8HCaE/mR9EdfH\nDkxucrOzIa9+HlMeFRjOvjvc0pkFnt/aZysgmKTFrqYBI8ojEeyGs/JduntT\n7VNid9YR3aLKlQ640bzM8TVdtdZj7K/52fWpQc+Pw6Nr/5owgPZ/BFlVgnp0\nwtbwZjhfgX1yI5zbqXZ3CglEVtfPCe5iicex/jABgg/5LIQLlUOkEY1HC4l+\nKG0A+eTBbr6s3jgbgL/te15FM7UxoK2yzLhJESh4Ak5PDM4R0fPpYKWElV01\n54a2\r\n=zX9+\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-rc/drop/microsoft-bf-lu-4.11.0.tgz","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","prepack":"npm run clean && npm run build","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.8","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"12.19.0","dependencies":{"chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"^4.7.2","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","node-fetch":"~2.6.0","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","@azure/ms-rest-azure-js":"2.0.1","@azure/cognitiveservices-luis-authoring":"4.0.0-preview.1"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.11.0_1604702894445_0.07565878957900818","host":"s3://npm-registry-packages"}},"4.12.0-dev.20201112.f9270c9":{"name":"@microsoft/bf-lu","version":"4.12.0-dev.20201112.f9270c9","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.12.0-dev.20201112.f9270c9","maintainers":[{"name":"microsoft","email":"npmjs@microsoft.com"},{"name":"botframework","email":"botframework@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"8d0733b6c975832317486d76698af5e6dd3e67c3","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.12.0-dev.20201112.f9270c9.tgz","fileCount":176,"integrity":"sha512-R3XJHoDKdj0UlMRFkqBYQJMKHn2pfUS/ZTX60de5UOrg9Tg2rJWwi0Ysutxp8UjibIG/DchOo9SeWYB3gTBYsA==","signatures":[{"sig":"MEUCIGlf6BJBmFU6RECOGPaTC7rmLWjPKlrRfXwjivi1owlgAiEAoxgaOQhPd3ZG4d8FnzLM+hXPOWvlFQJF7rKEj5AvB04=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1527805,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfrO9DCRA9TVsSAnZWagAAWEQP/A9M/36E8u4EyyDqUm6x\nXu4x0cSUrHyImOVMP+hFp1/pnVBqn/mLjf7ok+pMMo1aiemPBmpPPIJiUcqy\nyebvNgF/GmMNVw5PEetV78nYhBLb6dmxGdRg/DsJcJ1z7K7wY/m9ifFaRQ9K\nyMnOiA+SQS1hdRr0LCgDNWuzBrfdaUbkvKfDVusfawRScFqZGHTVWtLSd+R/\nh1uIHbc4tsF+Hh8OM8g0/t8HPc345FHsaCtHd7ZZyRPVQodXc+w9Ltc31Tdy\nPfKn3JLhE7xdy22sZCUN+/wR28LaLWEi10iVsNh6krJmsFneXll+aVEyFCgl\npw8PGaj1VmSNnze2YPrZbLN4UlemUkKry1qwq8Bexmn5NTYuSV6E1EeHNGYb\nEeO/kWeewotQN1m6aSvi0cGWf9wo2WTfdHY/GKpIhqmFSJ7xiFhAvUcnhBWw\n41x+cKZDbQOlMXqgN78VRDVW09VUfNB9w9vnuHc0u2UtBp+BdQO1nSTPaWzX\neXDss5AKeZo1olFch20uvzGoSce1DdePOBuJ+ZKNDkC1G2Z4XFpebYvmJ8PT\nfqfwq3UacA3HJGxIv6vmO2/bn9pKTTpjhGmsdADJmB4praecXNuR9xSDkz07\nt2FtnGNDyUjjizIKsaoHTte0muP1hPpowfiYU+z/f/Pda7ygElm1IHa+Eodl\nQrAM\r\n=cB8S\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.12.0-dev.20201112.f9270c9.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","prepack":"npm run clean && npm run build","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.8","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"14.15.0","dependencies":{"chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"^4.7.2","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","node-fetch":"~2.6.0","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","@azure/ms-rest-azure-js":"2.0.1","@azure/cognitiveservices-luis-authoring":"4.0.0-preview.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.12.0-dev.20201112.f9270c9_1605168963356_0.701108349438736","host":"s3://npm-registry-packages"}},"4.12.0-dev.20201118.1cb4bee":{"name":"@microsoft/bf-lu","version":"4.12.0-dev.20201118.1cb4bee","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.12.0-dev.20201118.1cb4bee","maintainers":[{"name":"microsoft","email":"npmjs@microsoft.com"},{"name":"botframework","email":"botframework@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"92db5bf274c3fbb9a3fedbc9b63b8a2e2faec61b","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.12.0-dev.20201118.1cb4bee.tgz","fileCount":176,"integrity":"sha512-rcn2C8SpgShw9Tf6pyzN86rS4R/YOKyMZ928kdutfob1kvf4DojU25k9Xly1lZP1iIMd5OVMZxJADRrbAQa2+g==","signatures":[{"sig":"MEYCIQDeQUTbQgZfu3L/JHhmgDfR2ESh8upJJ/NpGWaZqcnQCQIhAPhaVI9ocpVgohmL6j68Z52nhry9CCs6U34bsdSxnqSY","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1527805,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJftNh3CRA9TVsSAnZWagAAGO8P/2RpWJOLa8Tb37WgEIP7\nP9kHCCUeIbxNl4i85YJ3VYtBbLIKIsatIxH8n9fr6rvPfTUQmvfvSLxP0Cej\nI3RmDEoKL1JO4LFm3j7lI3QJc23Kt8JZ8Ld8z9Ukj8aDqBXs6x8rKk08Vp+V\n7OP2ZeWwa/cRdbh5kw5qVKM8FRxvHGM6l/4NRv3NuUA1pgHaVPyvxy+FF/Kr\nO1E+WZzDYJLcYeQhnA5b3UwGVd5aJkPfq9lUgmNYXXku+gZiOeKgnRlq+W/G\n7UXS1GEYrVW3RJrno5GCW2aGk4rPukx/Io203e5wAW/NvA9L/ET/AJd4TUfL\nDX962ZDgjmGSDxSEj0M9QmwO+z6PL5Kj50w5jp4rLEcESBBsoB+g2Wjxd+Hx\naPL6BPr42v4rgbclxp3LTNoXyZz6mLa2hCW0hfIPo5ZxLRfYLwwaif3F2Fyo\ndAFiR4tQGDMXHiyUDCTTaU8jKHpGv3IuAOdUWtE4V9R+E0+XEteXLEJhram5\n4BASRisHsxqWxrLtaG47BwVVK/JtdCbr5rZQAQyiTx6JD4ELKIBMi4s5qCXE\nMZcIdD6d52xO6KwiT4sTTsd6MF2vabHIMOVKY1snhNiqxtn3lm7sKfrbpBRB\nCuTqArrf2KwOz1z/o9GLpb+DPePfn1FvkPQrQ3OdTQkEcjBHYklOS/kLldXn\ne3np\r\n=ndTf\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.12.0-dev.20201118.1cb4bee.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","prepack":"npm run clean && npm run build","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.8","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"14.15.0","dependencies":{"chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"^4.7.2","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","node-fetch":"~2.6.0","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","@azure/ms-rest-azure-js":"2.0.1","@azure/cognitiveservices-luis-authoring":"4.0.0-preview.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.12.0-dev.20201118.1cb4bee_1605687414756_0.4510179836032866","host":"s3://npm-registry-packages"}},"4.12.0-dev.20201125.454bc64":{"name":"@microsoft/bf-lu","version":"4.12.0-dev.20201125.454bc64","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.12.0-dev.20201125.454bc64","maintainers":[{"name":"microsoft","email":"npmjs@microsoft.com"},{"name":"botframework","email":"botframework@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"da1d285a171dc5175115ad6d04737f7c647e804f","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.12.0-dev.20201125.454bc64.tgz","fileCount":176,"integrity":"sha512-P3FqLnNmyIXrDSRkHnCHz1QrxR9feR992/75J85vNHmT6Md8JTlRcYQYZgEDiaYRj7EU7KHCGBvVyxBNVtPo7w==","signatures":[{"sig":"MEUCIDZw7yaCcpPy2Lm4ItsUbUgs1jSIGA8L1hznGBQUDYTaAiEAn+axGLfrCvt0gl7SmfuAqLa7DQ9vuaR5ECmnntGV8Fc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1527805,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfvbzICRA9TVsSAnZWagAANacP/2Asj+LUCCDdbg9rZMeA\neh8PnwEH+6pMg1Vz7H8xn7XzafUJvvON2J/TP2G6brzPSurJm3GHKqmpCg5G\nC5XpU9fb75Xmm+S0jNAhAQwqes2l0xSTvmejmWrD74VvsZGLqmTQPhaor5Eu\n6HeM41J6A8NYJX6BLk0X23NCHh48ODaqI9nzl48sk1FEbXFGsfxtuAcYlCvB\nJccrAjRXAiLjNfwJT+RtDN8f8lKBZR1OFPSkq6BITa/puySWTdJa0NXqeJvm\n29cpVf6ob+UwTDwk301deQktl6N0hj9PDc61urOxvBt8JML+tcxDVoql/s0l\nRoRfdNbbGxpn3miUOSSxUJgm8mM2T/PsTNORRAHNGrjDNqqBwE+uPFlYusuK\nSKiXGPXRUIpvuLnVEog6if1QhKlenTe5DJDd4GKtANUDVMYp036uPxCxqv2d\nPij/Mpyq1R/z9lS6pARe+opbzW80wEQIFOPkTrq442GdrhgHRjCFNwRDoFio\nWHfp6pYDOwo94Lg2qhnK27ucXceegmwF84mlMmzDns+T0S+xWBM3fCkQ45Gv\nwoZBYpbvB2dZJFJ7SGDsD6lvXu1JWQWtQZdhZugi696MfBv1DfVXhQUzv4w+\noabHxbtyBMHLrqlS2geA0tc89R09hKky9G426iu2m4zKlTuLYIozajyFaMse\no2CB\r\n=5lmE\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.12.0-dev.20201125.454bc64.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","prepack":"npm run clean && npm run build","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.8","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"14.15.0","dependencies":{"chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"~4.8.0","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","node-fetch":"~2.6.0","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","@azure/ms-rest-azure-js":"2.0.1","@azure/cognitiveservices-luis-authoring":"4.0.0-preview.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.12.0-dev.20201125.454bc64_1606270152411_0.5581228095355366","host":"s3://npm-registry-packages"}},"4.11.1":{"name":"@microsoft/bf-lu","version":"4.11.1","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.11.1","maintainers":[{"name":"microsoft","email":"npmjs@microsoft.com"},{"name":"botframework","email":"botframework@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"b5e65d519b4e801c7254ff2df0dac4b74b80b7db","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.11.1.tgz","fileCount":176,"integrity":"sha512-T0DmGhS2u1Aw9aMxVBXToTFfe0NIlKNg/kgxqBDHKIE7mbJeXUl7GCNIUt8U6WNSA+56+2G7wwK484mifmd36A==","signatures":[{"sig":"MEUCIBIVqkaxMQtjrT1HwwwLoYeBqjZ+mMkAVrQsc7d8Dm1mAiEAvonOoQkaFaSkENoKP81qn3bOBfi9buwXM6XibxKh7kk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1527811,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfvdOfCRA9TVsSAnZWagAAHeQP+QG6DCrLU9uN4PIZofGR\nfomuCcBK6hJbq9OZyiyqo2eGdLKKUqC/pW3IHJdiVDAduji5FsjQFlPRqK7u\n3s/N/cSfzgAxi/nO5MrQhFooBwYCcWZWHZSoYhX5+UU00frN0B0jGpikx8H/\nXWqDBI0wqQrv3mcUDWCdYOb8gDtcBFhIA9KriGc4xFpjflgnJWyQj61zCKvf\nqHr07TFmXfvEAX95MLLykCL77fiKT+ochCcd4OKPyAk4Vh4sHCa8eXwHPvkN\nBNPghs0gaOzM1hDf90TQBijc+lJg+wzMG2OP5/8QlPYehrozu+229vcf324J\n3AEBzREfCd7kVbBy5hznh6B6u0Worq1HbDiGI6tM8658/uBMXs88t+5/bMkE\nskWOC6mZXEuLWPP//kD4cxufFbsWUu50YiH1OV4+OeEfp5p2sZZvp99bHGl7\n/A0COya7EXe2J1+fWG4l7OsuyArK4kiazEcG5KjGcN17CItGxr6Xvzd5fxa1\n4pyvAiEeELSFmFylR8IV6n6ZbOaJlD+gMHzo1Sltg/h3PQ8zkuHrUdMSquDA\nTH2N1+c/HmN5iB0NlHenXznARVahpHAywDTNadFmdUdESibhgDTqKE+d5HrI\n9C9gYhx5PCkkVpzHV1PHKWy9gsNk+FzDijfnZNeeEAilLcP49jtkTELeGu90\n6OXb\r\n=dQ6s\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-rc/drop/microsoft-bf-lu-4.11.1.tgz","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","prepack":"npm run clean && npm run build","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.8","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"14.15.0","dependencies":{"chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"~4.8.0","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","node-fetch":"~2.6.0","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","@azure/ms-rest-azure-js":"2.0.1","@azure/cognitiveservices-luis-authoring":"4.0.0-preview.1"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.11.1_1606275998823_0.7469804919803207","host":"s3://npm-registry-packages"}},"4.12.0-dev.20201125.77567ef":{"name":"@microsoft/bf-lu","version":"4.12.0-dev.20201125.77567ef","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.12.0-dev.20201125.77567ef","maintainers":[{"name":"microsoft","email":"npmjs@microsoft.com"},{"name":"botframework","email":"botframework@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"8b6662073d2c9d8a78dbe0287c501b33537ce414","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.12.0-dev.20201125.77567ef.tgz","fileCount":176,"integrity":"sha512-kGXEmpXQbpJZ3atMmUYko7VJj77IWh3vHcR4HOTL9tDh+KI+xH8FbH4/zDC4w8H8U2svPQkAVdOxpGwiRow1OQ==","signatures":[{"sig":"MEQCIDb/n/N6IaI4/BHPw082hZJm8vx4trtOFB+ZJ3fbvJYwAiAWIjdzJwGOQOJkxbsAD1QN46FPqWNcvbBvv8QmcVIxmg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1524937,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfvhMOCRA9TVsSAnZWagAAVXEP/1merKcDFSnV8aA3Lzju\nmDpULesCL4harXm7t+VRpw6IHik1Y3wI2WtyTr3SiRxDYOTABGQoRIlUjLhS\nxT6Lc/EJ31fkIXORaDLf3SpeScqX2F8on+79WM24x1s1OOzxS/SiXpj5AWT9\nC7qZu+D/ychoyZhGz9dikmv9CjO+x/E6+Jf5QCOssCWXGn+F535bdlPERzTt\nDZAUZAXYALlRzIwpFsk8QmovcJatRX14akI4mNdvFuEXGzBgnu/TR3ltf+yx\nlBHTioe6jMbjY5T/tjPJtA/k02tHeUyl5j/eXn9R9gqW115oK/WuTqSiE2Vl\nUPgOi4dnbTIGE2TO+ev0smcpRYPC6hQGSTVQVqFH9vmNX4FuPJtdc29/nSEA\nW+QvzVPwWqyRzsFdeRVREbew0LQSbfjP+6edg2Be74y0HPJM3t10fQjjnnsp\nY5x04QvdXcAf4Iqhmh/TNH1MtvBSpF21teeuhEqb0Kb1RGN/fMQzopsAtjh6\n/ydnvXBOTanmhCfgSLpukdmBT68i9KzvPEg96Wy5OsfrcjYPjAUoH9Bw5/5O\nYPhNWGcawN5hxtT/9/JsC2cYaDIt/5Ol6saSmUwY6dJhFzMyXTshhX0/VuIU\ng0Xha1gPtmUdQAwgQd1DcJ7QDADnMEnd7sP+/p+ZJX2FsSCP9jal7dV/XQZ8\nmo75\r\n=4AFv\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.12.0-dev.20201125.77567ef.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","prepack":"npm run clean && npm run build","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.8","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"14.15.0","dependencies":{"chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"~4.8.0","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","node-fetch":"~2.6.0","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","@azure/ms-rest-azure-js":"2.0.1","@azure/cognitiveservices-luis-authoring":"4.0.0-preview.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.12.0-dev.20201125.77567ef_1606292237942_0.9518231685184457","host":"s3://npm-registry-packages"}},"4.12.0-dev.20201126.853f44c":{"name":"@microsoft/bf-lu","version":"4.12.0-dev.20201126.853f44c","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.12.0-dev.20201126.853f44c","maintainers":[{"name":"microsoft","email":"npmjs@microsoft.com"},{"name":"botframework","email":"botframework@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"181096a3c0924dc279b48230602068210fc29019","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.12.0-dev.20201126.853f44c.tgz","fileCount":176,"integrity":"sha512-L0+/cVhCrIfmtLGZJpmGCN/5xaYtKdEh7bbxWErgfPVv6c129z5+O0WHOee38bpRdRVNpK9hy6gdg9Pi87ohSA==","signatures":[{"sig":"MEQCIDiib1dDx1FaW6tDWOhxNVopdjihjNPYpp6/SW0yTl0sAiBsA/lLGYhaDeGClrbiMJl9w17RUPx+L3SNUr0SJhm9xQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1524937,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfv2SQCRA9TVsSAnZWagAAS34QAICg2h71PKnIK3GTx5Wb\nay3ZeSjyQLsmStqAgvotJ5mF73fryuLh3ABDUrlMRAU8J2GuVk9vWzf3d1Ee\n6bJd/K7fRMH0tpZgByCvRRrZyuFDNZfVu7m5RyI+J1YFeE9nQDy58AFZydJp\n/fEkggGlLlzVRhWbKOr+V37iulbYIytpLfs8yqkAwj6Nqrsl6NOouzP3nooU\nH7vwQ0i8kq2YiOv/mTyKmZV8uKYidb9pWByfXbe7/SO8TsGlYe45T9QEwc7B\nqQpd4buGmt02NWf7Xe8N76x0Nl9h7oWzwcT/9AzZb7F9VX6KQ80v751cqwgE\nX1NVfNIJhr7AuqhBw75Rg8ST/2mVo39dYF9UdJk1XzpboSAEHNqwIVHWhpik\nRsJy+Vz7BVKiciPXNmDyWQhly8dER7/j6dhSHp0QJ8JbwE7MAGJLtL2zRJdK\nF0mbo6lQZK7LjCGKg1Nk2RDehrrl6fecnH6QiduByDDnTx1XFUYBlxS4ils2\nw48UpymCe7MjBu7hnHTOAaG/55guKKqreMhOT5RZTi1JWYnD1IJ2AN/opbaE\nqncs4g6QC0WpAqI2iaK4AFb2lr7jGqpX9vRDaOJYpOXT070gxPCkaJXK4GOV\nz03b3SGphiWq0sZj5oeVTUyERTR10SCTC8x+gb5XJd97YnfyQYbDtKbFVMZT\n0Fla\r\n=jrj9\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.12.0-dev.20201126.853f44c.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","prepack":"npm run clean && npm run build","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.8","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"14.15.0","dependencies":{"chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"~4.8.0","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","node-fetch":"~2.6.0","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","@azure/ms-rest-azure-js":"2.0.1","@azure/cognitiveservices-luis-authoring":"4.0.0-preview.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.12.0-dev.20201126.853f44c_1606378640205_0.6851623215045062","host":"s3://npm-registry-packages"}},"4.12.0-dev.20201201.1253a5b":{"name":"@microsoft/bf-lu","version":"4.12.0-dev.20201201.1253a5b","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.12.0-dev.20201201.1253a5b","maintainers":[{"name":"microsoft","email":"npmjs@microsoft.com"},{"name":"botframework","email":"botframework@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"0a264c23f2303ddbf2f4c2279e53cac1411e9c98","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.12.0-dev.20201201.1253a5b.tgz","fileCount":176,"integrity":"sha512-QNtp+CxEqWbqmqgJHWrKi3ZzqkMWiYbOJAvx2zvTt4BUrl110iIVwNuna6iYPJJcLcE8JknSxvYcRvQuIjEWbg==","signatures":[{"sig":"MEYCIQCTNGK5cgKKkqB3SDu1dTESX66iJIOsygn6Dof3UJOLLQIhAJ0tZwWTSf1ybUpXMtT7gek5uC0jsJ+AjV0yCwXelYmk","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1524937,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfxfvZCRA9TVsSAnZWagAAJj8P/15M9chg+XXEGk9paXBI\nQ5ON1wSNKV3J6Q8T3OBVHK84eRWvwH7z9j+6MjQyahz9D13EOd6WkdC+guFI\n/RTpVBn0dLcSZo0emP8urJ3wdIv0uWCxIkdWYTbbxJmcAMHd4eGKM61DBC6C\n5L+T3+ExWw+IewkJb9YauT09No1eow/2IxM2pnmgF+fG9QU3PN1hlXFnajpd\nZKE6DaHVqfxFkHyaUyftS8OTX2NM2kTndrbdhmIYgFA6KpLRm7DpC+agHajA\nxUCS/XYkzJ6lQLQpZiyQFRu5URjHCTjd3ttv4XULv1x1pBUALdnvKdD/Y4K8\nelEwvvfxWIW3XeBM116l/Ijnx4M+KoYaFqWXNe5juVffI5ySLp6NW0ZJ13sT\naHKlJlgmv7YhK0xodU277lovY3tA4DgkYBYKoFjIBAmdzBdsBUV9mMaEwNoe\netr7d2OTaMzCgtE4cJIxG7dqQhjFZigC5OLuL1aJ0UozDFmwFDSOD8IsiRJD\nlTxIXEoWpQjXj3yStR8UK5u3+e5GiSzxTcGl0jpfxZLFiU8jg9RGbbp+CloN\nbCGWTEvFihY2/Wrl10y0O1FgbF7FJUqIGsJbjlNPXzd1H017rUsrwkxpsGhQ\nqcfjMsSlRDQLzS/EVlkmb6H6Z7kVs/elVe0g6JklCmhlOKQ0yyJlsA3bI1Em\n9VhN\r\n=gOJb\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.12.0-dev.20201201.1253a5b.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","prepack":"npm run clean && npm run build","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.8","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"14.15.0","dependencies":{"chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"~4.8.0","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","node-fetch":"~2.6.0","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","@azure/ms-rest-azure-js":"2.0.1","@azure/cognitiveservices-luis-authoring":"4.0.0-preview.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.12.0-dev.20201201.1253a5b_1606810584949_0.7460687615835899","host":"s3://npm-registry-packages"}},"4.12.0-dev.20201203.954f006":{"name":"@microsoft/bf-lu","version":"4.12.0-dev.20201203.954f006","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.12.0-dev.20201203.954f006","maintainers":[{"name":"microsoft","email":"npmjs@microsoft.com"},{"name":"botframework","email":"botframework@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"c70269356230f939184203c9b7f3227d825c5bd3","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.12.0-dev.20201203.954f006.tgz","fileCount":176,"integrity":"sha512-kSfRjU+M5ozGtlrx7r8QLjPMOmNWxDYa7dFidI/I0ZpjE6TJRh1yPfOiX/6n9PNgcX110sSyZHSyeA79t2DM9w==","signatures":[{"sig":"MEUCIFz8OUKMdg/xEf9lYgMdOBTrX90/Oh32c4YjieWrj37LAiEAlbSaemPs02B3kZwfoj3TWUMrbY8G9krVX7+gdT4g9A0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1524937,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfyJ7uCRA9TVsSAnZWagAAQ0AP+QDaigAhGqcR28N39fWN\nyM9zP3bswKEf9vUlU631ZiS8Xua0H1/qtKxT4a6zDMzA38XHk3X02oqULvKR\nTj4/7qza2LDdRpQz+BcvMMfc+MIOvn+3ibYaSHxEx6LiB0GFAqeijJLeKh4I\nDs4chTS0FS/q4mxMWlyLos4mgIl62uGFedtcabNgRLS4yo6p4W62TDdbS/ja\nxOA3X9g+u2wWYGd0BRtMpL8zFeDxbJaHjHFsPdMPuHuXLHcP6wEgsy/wg7lL\nRABtLSIbcyBMnUkwKaSIN8n8opcnrkamISydFHlUXgKsG6mthvrBMn83w7qW\nZjVqAtkFIGOa95vAx86DoAwEsjlI8ykkKCz+83LdaDIV9FJ1kmzy3V3bmQaf\nORxCisUX3N2FRDl3XRNgi4cTdHAjaKeORQWPisg/xPqzVgEewetYO+5rrz+e\nMX1UXMC0qnFPjE5ZU0b+gcjTDjPGrb2wXZf4VbtILJw6M7UkFIhrjvD93OCT\npKbhaZZaX2Dq62hVsO+LCqJbN2TsCgqfqdZP9mEiIWaM016/QbHBcqrgIN94\naOy0+VD+C4B2wJzYPLtTCB9bRQgEnVusY1ppZrip/dh8nLJo2841ktmWvSAy\n7uCLkIFzu3jZpElYmOCOZ+NUlNu/DdGuZ+/VlJ4+fKZgc69EIFVjN4Bk8Pb9\nFyAK\r\n=CVj+\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.12.0-dev.20201203.954f006.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","prepack":"npm run clean && npm run build","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.8","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"14.15.0","dependencies":{"chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"~4.8.0","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","node-fetch":"~2.6.0","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","@azure/ms-rest-azure-js":"2.0.1","@azure/cognitiveservices-luis-authoring":"4.0.0-preview.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.12.0-dev.20201203.954f006_1606983405678_0.9272140508937621","host":"s3://npm-registry-packages"}},"4.12.0-dev.20201208.3315f42":{"name":"@microsoft/bf-lu","version":"4.12.0-dev.20201208.3315f42","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.12.0-dev.20201208.3315f42","maintainers":[{"name":"microsoft","email":"npmjs@microsoft.com"},{"name":"botframework","email":"botframework@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"66994c2a875191b03f29e57f932097ed5e470f70","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.12.0-dev.20201208.3315f42.tgz","fileCount":176,"integrity":"sha512-4yszd4BZSP7NDXkvyPFw4H+n08ukmCdWdWddGkbhlYN86Ub3mkZO71LoqWKuQPVComvRSig4Xoa4esqJXlBXgQ==","signatures":[{"sig":"MEYCIQCptogfkUvGTrVKl88WVtArcfIAIT0ONqDce7DEsQ4DwAIhAPgGiESptBrmIfN3RbIGj+Gf0gmkbWo0hutODFwjvVuv","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1525267,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfzzZ6CRA9TVsSAnZWagAANpAP/2xNKXrdXWx81yM0B/lb\ngSpebH1AodVd7BKB/iXaUpKrnCJRwqMEdlz5VY1oDkybUI04mYSL4ul71MLz\n+Ve43Kj8JNe0O3plQ8j/n/I+HUdl05dxfxODQKEQ7g1kt/s/gDEvnT9dtS+E\nEsXyVUK5++VPaxQr3i0DPhHB2C7QNhF5Ao/LJEws5pJtfxDMnWjv36EsH7kp\nYFFik5fkarhrM6Pyxc1OtcP3I6FCby31OXKhIKbShDS30WSD62mHaXe0Mj7V\neVhpmGhwOgceGjpksTEfcIvb8f3Klk42ku0W1TaaSGjHXFn0tcTFuo3rFI6Z\nVlfa25WgHAvtFSm8Y0/EfBuZExBOS6Sj1E6Izo0eihPtfJjJXwjL3bjdUNuj\nDaEMoNVXxf0HGjn7gZydy49x6ddsHAIv+z0IfZKOrUYAO4Y2nOzCbn55QsDr\niwvzWYAioz4CzsfOiObpN5bzudK5U5MuIHos8y84ktqUwNUwVB4wMyMHcmi8\nNb1PugB9BMooAvSViGqgamL6lkZcT5IB6RYhdKPt7Ee07d261pVS/l1wmrtt\nGrT6vFGkVAlYE2IlDhXSLZkeY30omwb45lffAwGUlPyD+j6c9ktqH5ML7F2d\n4oFniZwUFD/2CHSEfcOleQkfTEBENVMN1ZDu0BaDYCgqPD3O4qv2YKiHFx+Y\n+0JX\r\n=riq+\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.12.0-dev.20201208.3315f42.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","prepack":"npm run clean && npm run build","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.8","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"14.15.1","dependencies":{"chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"~4.8.0","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","node-fetch":"~2.6.0","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","@azure/ms-rest-azure-js":"2.0.1","@azure/cognitiveservices-luis-authoring":"4.0.0-preview.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.12.0-dev.20201208.3315f42_1607415417834_0.8244153959989162","host":"s3://npm-registry-packages"}},"4.12.0-dev.20201209.a2ab9dd":{"name":"@microsoft/bf-lu","version":"4.12.0-dev.20201209.a2ab9dd","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.12.0-dev.20201209.a2ab9dd","maintainers":[{"name":"microsoft","email":"npmjs@microsoft.com"},{"name":"botframework","email":"botframework@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"edf04d5f7eab1bad05c759e9e8fde8acb7e3dd5e","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.12.0-dev.20201209.a2ab9dd.tgz","fileCount":176,"integrity":"sha512-w7gr7w4yOfXpooFNGEcKC+WC6WYxRK5SLQBbZzL2lWPwp+3P+d7Yih/HgnZPpFIg//IK6v/b/JfySYZUe0+fBA==","signatures":[{"sig":"MEQCICf2zsBtWur9k4tBKu8Oq5aea6JozeAIV303ty2+7ZEYAiAyVh5b2yj97jGhyldB2VR+er/jNQb+UYDNz7ZZXjJ92Q==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1526221,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf0If2CRA9TVsSAnZWagAAg1cP/RSL8Mhytm1/VBgsHupG\nN2TaQUNyb1NMsUqjT87CLVmPxAdbovQWQu/mZ6Fyf6fuo+CO9jbB9OTKLbpp\nzoF0mkoclcUQqwVxeNpkM0pcvgx1UPxZCxuDhsEtzG8doITY2Dw5xw4hf/yN\nkfBocNSYrSQUcqtE/04yUPZNd/FVHgD+daqIZVaqaxLLjlef5owPcblhPPLY\ncrmkGBCzP7a5CYakUm2wPUJHMw0cP9r4Qtne3DVk0UOWuBGNUTJt40yawzHj\n1pQ2OIspMJR9dzcZ/WCSmzr/YroNJZZHKgLVL5UW1nY+MwmOBsqYeeRSDrcZ\nPnbmumw4J6qL62l47OWvNK13jDe1dLYZzWQ1xbCtxEsoBmrdN3274mAeGeHI\n4VZ+iITxTK6Kd+J2dnAY19dS+6uPpi8u+qugwh8jQzaqS1+iObIOD1+1YkxI\nCcxXMrw3C9sm4SoTRagkUdV0UjJDE1eJa2HVKco2JEr0hp7poUrVqCXqHlf+\njBRTS9mqOzYPRW804CHBvMGbUeWn1IjOxsQxypUbJqYVlA1vd1Vc7Y+25aMe\nuTj9WXx44+LEs2ROUwIX/7tXWXLVeCFw+Um+rRMxL4cT0b3m7dFspwytqvyd\n2jt8CCxKi5LQlLLK2K170A45IwLDsTWiIVyodeoskIT9S7x7cO2mJZxzSr5a\nLbWI\r\n=kraR\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.12.0-dev.20201209.a2ab9dd.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","prepack":"npm run clean && npm run build","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.8","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"14.15.1","dependencies":{"chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"~4.8.0","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","node-fetch":"~2.6.0","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","@azure/ms-rest-azure-js":"2.0.1","@azure/cognitiveservices-luis-authoring":"4.0.0-preview.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.12.0-dev.20201209.a2ab9dd_1607501814371_0.9456104319215248","host":"s3://npm-registry-packages"}},"4.12.0-dev.20201211.e06f70f":{"name":"@microsoft/bf-lu","version":"4.12.0-dev.20201211.e06f70f","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.12.0-dev.20201211.e06f70f","maintainers":[{"name":"microsoft","email":"npmjs@microsoft.com"},{"name":"botframework","email":"botframework@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"8c2bc57d2a6acef290d46f6a861a5295d5432d91","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.12.0-dev.20201211.e06f70f.tgz","fileCount":176,"integrity":"sha512-2JIvk5CckCKvKsJG07j70440/oittZOv1Aq6GPPbm+OgzvG4T7Oc33VIFaP6zJNVGPamr8aS+FlGC6fv7WvhrQ==","signatures":[{"sig":"MEUCIHv0DDnJP1F8j0bPMVPAwgnI6GbQIU4r0o0wqub+OUAnAiEAjnoLEOxnNgeu+L2bdZtrxGkTqa5vfYadH6RVdxLYl+o=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1526221,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf0yriCRA9TVsSAnZWagAAlGgP+wbHIkGlpwWdprcPoMla\n3cmKcvU7/h6XmjPgROu9HRYG6bftwONytJQeLTdgY1e0v9ClB+LYAVDAhDmU\n6Vwkpmgr9s1TOqkhgovdibjKhTCOAsN/EnxakOoARl/oykOzJnD5E1sM4DK3\n24w9I26QFybJYyW6opkxmdPxIDkq+gP5KSOAaEQ5s8y5Y0gdz0SFRYYCjv4Z\n5f2laANKOqegbGgEZ4qAuVZCYGi7Nr0NliR7nyVX1LhthGrwvjoTP+YS73Z0\nvxGt0ISJ8pdDIdXzTIM7S2vD+a5gBhmIJMg3uLeXt/JTrcenLOzG2ITgfwec\nHL8pfyxALE7YTxvR74e1oEz0dTnpHDr/U5hZnNQxZ+TwOXFGbzkylZKmPyDX\nEXSZxAXmPd8u00UC0GI0R2R0M3ZX3dSA0hWOBiU/a63imyxIc9yRpGzw1Rvg\nuprbmPwAOnHYfoAgrdWZ/cFVD12SNi/YB8X1chZtkemX0Io61LDkfOegqE1E\nro0PDp3Rq2QMIPUtZ36zphO++JeAmjDqZaESIhOq+sEbixh0IQjmwGY5sR92\nh0VXEvL30LDygNDr6QDu68LBzHV9ST4jlvabywR7bRkIgKcFoFbs8+1vZlKw\nSsTJf2lhWxdNYq7v+D3OJOqOyANgKoxgg0NBRQJDnuKlOxKNcYq2dfifRMNJ\nvhRZ\r\n=t5Nv\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.12.0-dev.20201211.e06f70f.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","prepack":"npm run clean && npm run build","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.8","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"14.15.1","dependencies":{"chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"~4.8.0","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","node-fetch":"~2.6.0","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","@azure/ms-rest-azure-js":"2.0.1","@azure/cognitiveservices-luis-authoring":"4.0.0-preview.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.12.0-dev.20201211.e06f70f_1607674593665_0.7146220431794881","host":"s3://npm-registry-packages"}},"4.12.0-dev.20210115.2b00408":{"name":"@microsoft/bf-lu","version":"4.12.0-dev.20210115.2b00408","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.12.0-dev.20210115.2b00408","maintainers":[{"name":"microsoft","email":"npmjs@microsoft.com"},{"name":"botframework","email":"botframework@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"d9cdf4c48683116138499124fccb81c49893bbe3","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.12.0-dev.20210115.2b00408.tgz","fileCount":176,"integrity":"sha512-3IIOzT08al8pr9LXqcLTsII6JXeWMY2wvdsTz7FIKBI/XJMuD+YLJz913gyIJv+2EZt7FTzAZ67Nr+76Gen55Q==","signatures":[{"sig":"MEUCIDG4A1GVmZUe0J37qiL5gOpqITFEmqX7bEZHGECz1hdnAiEA7Je401gS+iAkFQF4DfMuCGtmrdgoyddekZhN+9MEk0w=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1526806,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgAU9lCRA9TVsSAnZWagAA+x4P/jt8N+5d8pi79y4volVZ\ndw3bkCMD9tO60h2SdnXYgB91gAaxjV2z+WyNZCcayTIQDIgHoEEudn80uKRp\nIVfcqPBYEQtvv9qqjX4mcou5uYQFE23PMVdRHBjTa3KXv86C9QrVQVEHn2Vp\ngWZHGRk96RNC1q+ZB/E8aUmsSEP1+tdm3sjnK1r7CbnXOMZNVDrV7j26qWdS\nJQTOaGS9UQLsEKWM5LnS1nBcU1pQOWScRwraD0OUXNbx1iG9EfgBu9wleDMc\nsx4bakgL1owbv27emFFdkUbGY1yDl3Ar90ymBeHxLCCWsID1ZLOvr4hj3fEP\nQAsBkxr2a2Kyaz3Y620L+6Grq8PtmRw05fV3jVAZoDBd+DXeK8YpxnCgcE5t\nzbNV7U3Bn7f1IuSNClKlOUeatgfj+6XP+tG1fEPTIDEP1qZHWDtpiwxsRbnX\nQMpJMRbdcRcprfltPM0/p9htexaztiJEw+vluYwuRvReTdqXL0oP8MMTl8Fc\nPxxm6plLOJXcA9eaFww2jjxB5zEl+wSB5A3xf5v+ZQDiYWspSxPv+JUsegVD\nMhJtjbrNZtLwLLVSQ/2WT5xY62aeZkr96muok8sjy7yqeTtFtlPFyKuI/rxE\nPED81Nqg+Ln3ib8JVBKvn0LQIa6VQ00GAfLScC6DyqiIoIGq8NRRQdLw4Zii\nDui3\r\n=N6MX\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.12.0-dev.20210115.2b00408.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","prepack":"npm run clean && npm run build","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.10","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"14.15.4","dependencies":{"chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"~4.8.0","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","node-fetch":"~2.6.0","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","@azure/ms-rest-azure-js":"2.0.1","@azure/cognitiveservices-luis-authoring":"4.0.0-preview.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.12.0-dev.20210115.2b00408_1610698597252_0.46559147985177884","host":"s3://npm-registry-packages"}},"4.12.0-dev.20210118.d2c102f":{"name":"@microsoft/bf-lu","version":"4.12.0-dev.20210118.d2c102f","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.12.0-dev.20210118.d2c102f","maintainers":[{"name":"microsoft","email":"npmjs@microsoft.com"},{"name":"botframework","email":"botframework@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"59c4ff6a80b708e1050ef199fe7c7e98c44be866","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.12.0-dev.20210118.d2c102f.tgz","fileCount":176,"integrity":"sha512-WGYDDkOwMEbdoBU2KHI7T+Fn59vceWmmQuRQ6GoDwt8WVfVkSqD3bMaW9qALvc+Mbb0flgATCBP6k1QZ3JajeQ==","signatures":[{"sig":"MEUCIENcb0X2MnQ4/vJ2WnsFGzELsELtNRWTdjr8kACLBS5iAiEAi9ufWtYxyZ7qnhEnsKFVVka7Ig60hJtvfz99aHeaRQA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1532712,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgBUQZCRA9TVsSAnZWagAAjtoQAJGihmfyBTlnRZSieg8X\n+ENc+hjXH4qi/eUKMsbboNWLWDf/O5E1pGQwphkKWkpfQNanpDGbxDggYq22\nyJ37MOrihAeagA4ioB6AKEeeVUJmvQfeCOeu36WaiWPYNfWeZESB+JEEc+CZ\nzgEmwA/e8MlaFDWxjAh8NkdkG4lXbBz+Of4lY7kfYjyYataYIfiump70L6Zr\nM+Pf75Vr+MAYoUgW7UpOfvpOu7oZVeCkYduAh2h6c2AirW2aeBpXgyvwoaS1\nbS/RY5Yqrvj/PRUANP02FCU87HqPHlEmqDceevxvUTfgaXOn43v93BM2eTe9\ntgr68XWvyUZCQMQGVOJFlcbaORSPE0WU7JGC8JTynIDxHFL7IVViKcNbL38v\nT4R5PiY6EmyMH+WWV3WAhJBLEVkORrY0ljgJK7GdVPfWEKoPVCBBLu0UDGMe\nBgnsZeq3Gx8FCugURm/df8wsw2bgc32NNsrin/30DRCOEbDda+pBOSV9EDwL\nzNsjiJ8nJN3w3I983Rw+Q1h5lvdBdQDIqq0zBMa0S/e4xiv88NHuj7Fg+KLR\nltACYtsbxbJmPDxwg4XDYV/Phr/uyjjohl1k9ASM6HZ2oDzCbONjJDw1+vuP\ngL0mF0pH751GxBMihL7JIPkpmoCz1CcwvSAX0glfvTJt2WkgpvvYj9gUDzzI\nVRz7\r\n=yBQA\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.12.0-dev.20210118.d2c102f.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","prepack":"npm run clean && npm run build","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.10","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"14.15.4","dependencies":{"chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"~4.8.0","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","node-fetch":"~2.6.0","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","@azure/ms-rest-azure-js":"2.0.1","@azure/cognitiveservices-luis-authoring":"4.0.0-preview.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.12.0-dev.20210118.d2c102f_1610957849234_0.20481591461207937","host":"s3://npm-registry-packages"}},"4.12.0-dev.20210121.7decc06":{"name":"@microsoft/bf-lu","version":"4.12.0-dev.20210121.7decc06","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.12.0-dev.20210121.7decc06","maintainers":[{"name":"microsoft","email":"npmjs@microsoft.com"},{"name":"botframework","email":"botframework@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"6febab7e85a27b2daf52a9e62bd23cc23714588d","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.12.0-dev.20210121.7decc06.tgz","fileCount":176,"integrity":"sha512-ferwngoeRr9vbB+JXnBYHXEM4aUywPA9CKuijdq17JKWcOIfi/ALXNIIXAGFAg/TsoKMZa7GLmzQ2PT3czur4g==","signatures":[{"sig":"MEUCIAFJ9v6b3so6JFkWDJf04+m+BWdTuBJc4BZArMD/x1ksAiEA/FGUno1kI4QVhl0bo8XWXasAmuB+OVYclBU3ZkV/+lA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1532736,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgCTh2CRA9TVsSAnZWagAAJDIP/Rp0qgYfVNOyOSQILl67\nujyNpw621tfJvTjsvQWGE5TYS0eBo8n2grF6xjdnGmplxyoaOasAl26Oy1gQ\nYpomWulqOtbJxteJ1HR6sEJ0qqBbWRQT2Oh5AIe1JRA42bZR6NaR7vMyBHYH\nMUUQKbPQFo4+Lk5zfZ+KUee1JsGdjwEKMLd+F+/bB7kB2+ezf5xKYjicykfU\nhj+1yFWA+6EeDFXnzjuVriu8zz7l6Cij0vMhlAAvPZX3C6oJ4/3AqhL4J6+p\nh3F8p45S5BDrr9AwmW9AKtGY4mhAMEUTKUSPjVKZYW36+RTSnndztqZdKLjY\nSeHmDX0szrdF1EPZ8SkWBraZkgEj9JMORL7Q6HHVXoEaWzi6MjKYb0FK9Wh3\nLMlgOe9L4Or6eEjr5l6jBLGsdvw3DivqkBWtqgJ/AVcf6g+QyhyM00SZEbSX\nXA5kneUHCz2DQrzFzQj1GES3siObo9Wz0Gp7VmMI6eFYCRdAf1ohsXvN9yr7\ntcEL82NCenOUtIv5S/lGMCnJxsthl5ffFhXYTJT6Vf7bjgFSsRbh55u4Iw21\nRquMQXYvBetZ+4c/R9HFbQZ/g+sIXZbyMs3aHEUsBqBCl3hHEx87UjrrndBG\nDOfN995UeK+zO5tN33QgpguWRM5l/MRXeqh/0P6tJpgBWsqFfBCzxo/DaRuZ\nFsIh\r\n=NACX\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.12.0-dev.20210121.7decc06.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","prepack":"npm run clean && npm run build","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.8","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"14.15.1","dependencies":{"chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"~4.8.0","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","node-fetch":"~2.6.0","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","@azure/ms-rest-azure-js":"2.0.1","@azure/cognitiveservices-luis-authoring":"4.0.0-preview.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.12.0-dev.20210121.7decc06_1611217013960_0.6590776721671772","host":"s3://npm-registry-packages"}},"4.12.0-dev.20210126.0184ff0":{"name":"@microsoft/bf-lu","version":"4.12.0-dev.20210126.0184ff0","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.12.0-dev.20210126.0184ff0","maintainers":[{"name":"cwhitten","email":"christopherwhitten@gmail.com"},{"name":"cmullins","email":"cmullins@gmail.com"},{"name":"sgellock","email":"sgellock@microsoft.com"},{"name":"joshgummersall","email":"npm@josh.standardlabs.dev"},{"name":"botframework","email":"botframework@microsoft.com"},{"name":"microsoft","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"b4f3aa268d0be303bf89f32f8f785e56b0267a1d","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.12.0-dev.20210126.0184ff0.tgz","fileCount":176,"integrity":"sha512-t8IwG5m19HJfCRYDPcgBV2saut9jjPJaf9WJIWlsLqOXDAEayfc1HkhffAdCZy8ErgRDRwwcucauic4K8bZARg==","signatures":[{"sig":"MEUCIQDLM+4r5Hmw+0ZS39np78KjjVAfEKyVZ28la5r9KbLXYgIgEdMxcIVen8CSU+yMMgME6coufYbGCX8HEZMpT5M5xnI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1532736,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgD8+pCRA9TVsSAnZWagAApYMQAJqgLC9LjVnKF/Rl+GbW\nprl3UxMcu/BI96ZDPacS/S2BRJqdFRpgyGKhxgDnkBi6YqWIwD4sTeGkyUW1\nLmJ8ECsLxZeai9vrKhWjv3IMkspjkAiqhNPcYhijOxKAYj2w9cjwIPLkD8iE\nXshIudtg8PluzwXrTykLnitUX+5nAq9TGTb7uzVUZd2xkPBUlPiiKWFom0r0\nHxjoJLEiCVBO3/rYOwObKuuyw5FKo3s+vwLvVtjHB5KQuqz8IwdswnJJQ5eG\nKDVqA2+NicCrjHzUKXOdzXgdsGkZAPbn9v18MLcMg8Z9Ci3yaFBIDuReqsnB\nktXXsYMivktMU9SjdqJoTMTQVAsUQxONyms2cv//qcILlmjYU7TnwHLz0Lmm\nsRzvsbsC63Z6WKA8PjLlV3RpUha4ddDK4dg3tuV8/QQs55HtRZEHJy0XWwB8\niDXIwm9s3p7IgOM9NhB0/DtK0CYo229z4c5UhNAmEHvc/ygcfBsxJA5qtAU6\nwf41dGVrmsFZ6ibBMUafqQ1iBV6xin08+h9hY1vYZP4lbWrm6dgy2JMU3DUN\ncwd6C8H497fykR3sFZszM+8/8PzAMgh1MbURvEjJtK3tej5GvW+8NrTa+ixB\nFmeQGS/U2PCTU6jHcQmGGPzSOgQXT6P0W4fZBO+L2bYQqWuVS3wcpQ8A3KAM\n1Tsn\r\n=vbrA\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.12.0-dev.20210126.0184ff0.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","prepack":"npm run clean && npm run build","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.8","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"14.15.1","dependencies":{"chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"~4.8.0","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","node-fetch":"~2.6.0","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","@azure/ms-rest-azure-js":"2.0.1","@azure/cognitiveservices-luis-authoring":"4.0.0-preview.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.12.0-dev.20210126.0184ff0_1611648937238_0.2566033028290873","host":"s3://npm-registry-packages"}},"4.12.0-dev.20210127.fc25e77":{"name":"@microsoft/bf-lu","version":"4.12.0-dev.20210127.fc25e77","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.12.0-dev.20210127.fc25e77","maintainers":[{"name":"cwhitten","email":"christopherwhitten@gmail.com"},{"name":"cmullins","email":"cmullins@gmail.com"},{"name":"sgellock","email":"sgellock@microsoft.com"},{"name":"joshgummersall","email":"npm@josh.standardlabs.dev"},{"name":"botframework","email":"botframework@microsoft.com"},{"name":"microsoft","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"1d28b25241c4c7fd578eb8912abc5493f9b080a5","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.12.0-dev.20210127.fc25e77.tgz","fileCount":176,"integrity":"sha512-tBPVp2eFNQqgDXdss+d4cNRVgZUp1f5sngeKC0CU3ceiDBsV58Om8DOJI558k4gw5qzwUFbTOtiinzjwko6SKw==","signatures":[{"sig":"MEYCIQCWAMBBEyf8OWZpSB9dhJ2x+F5TpohO9efW7k5cxfvtTAIhAOToJCDDWyLpYqr+YXaiw8MuKTNL4jmsSuB5NqK9Q3Ax","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1533058,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgESGKCRA9TVsSAnZWagAAGAAQAIjBfYTBTymwslb4A/cf\nBh3N/2/keH/Tvwfx/noetFRLOu2phfsa6jQklJ1FflA6NjpCPcTsb6+trlBi\nXz3dTPMzeT03s/VqB0JI2/+zBRrLNyYGl+CKKUdhLX6KHm8YKX7/vO9OiHPj\nIevaaGoXmM8zZyxJkD9xQC63cim87F33J/GLTCK6C0oATXhCrTIhRss+oPNX\n5pyH6gU3r2m3fMmph85JBNd3vczBAHAOz8QMfHZzfehkC1iQ3LZ9CR7qj24Z\nYFyxisAPdWL8HZ+2Klw9ZsrLtdBEZaje9B0T3dNu1WrhSIVBvuiFN4wqXGtD\n3dlvs4RzeIBsTo4b+9ifJDJY1KQuR2J/SKHmmx7UW81gV/azp2q7zev6L6s/\nN95SnuuWDKfeMLmYiN/r+7M0GBhHEy5T97UD7FvVKrYYnqaWusHIM3l3DEyK\nDjq2tvyvliDmE+9cEr0X/e1hht3m7gnB/Bl+z2QCOgrCWvAmOsjIByWWO1+B\nucYQHJ3luEAhRujos9L2jhjqh3t/1XAVOyRlFBkhhxvj5Jnoz6yKpuK0xeUH\nkbq7dj4dShA0tXfLvBxx1PhoPZVM3s0oPTDnWC1tbagqIdtcq+PXIiS56yuZ\nSjMAamiOIyH/Nk6+AdaOo/sw4wGgMdFZTRRE6vw4O0m7Vd9TZM7YTCWjmMGW\n4z7z\r\n=Pkb4\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.12.0-dev.20210127.fc25e77.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","prepack":"npm run clean && npm run build","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.8","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"14.15.1","dependencies":{"chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"~4.8.0","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","node-fetch":"~2.6.0","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","@azure/ms-rest-azure-js":"2.0.1","@azure/cognitiveservices-luis-authoring":"4.0.0-preview.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.12.0-dev.20210127.fc25e77_1611735433897_0.9803538193759496","host":"s3://npm-registry-packages"}},"4.12.0-dev.20210127.3725565":{"name":"@microsoft/bf-lu","version":"4.12.0-dev.20210127.3725565","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.12.0-dev.20210127.3725565","maintainers":[{"name":"cwhitten","email":"christopherwhitten@gmail.com"},{"name":"cmullins","email":"cmullins@gmail.com"},{"name":"sgellock","email":"sgellock@microsoft.com"},{"name":"joshgummersall","email":"npm@josh.standardlabs.dev"},{"name":"botframework","email":"botframework@microsoft.com"},{"name":"microsoft","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"d05b3e5824c0e7248839c02e876457d3bfdc487e","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.12.0-dev.20210127.3725565.tgz","fileCount":176,"integrity":"sha512-ooPfN+zWYt7gqInfqxbzEZkBLCv3u2xOi7mZPq7yQA7ZFgdNK1KFxEIPzIAdhJ+uBWGSbSJMFqNBG+bIqxSRQw==","signatures":[{"sig":"MEYCIQDAQz66V0q1pGrpZPQr+tgGlrZuOZiY/w01AH4GG9C/3AIhAI6UjLbeLqMKA4m5SucwX8U15jXGiwRf5hIWdhL1v25S","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1533058,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgEcN+CRA9TVsSAnZWagAAbMoP/AzefFjdsoi6G3SOWyxb\nRDAybvjZn5VO7r/s9QbmwN1I7ieCyTeGsjIVC9zhLGgYUA2VLbDJafExbk14\nk16DK0J6LQTQHOEPI+VZz8jJe7oFR8sJso/a+qjm3Qj93uljxcW9e79yTKA6\nuvHIJtm5NzDBjmA+isvp0QV5im+cr7MplLMpDd1HUPp9D4pInJyfOSjC6XBF\nixH5UzYAAdeKslLY7loJBq+hoKSOll22QxYJokDsNJ/caxeWVqbTExVtZLY+\nNVRSvocxHq9ahcWNctObIKUKS8WwOA6ZriWC7YoWZqiviVeO3o0PslG50ruE\nmSNjkjgHfiRJ0kkugu4ABEkFBpOgb/3rSVSF94nedutYbL66LO9wk2UNvke9\nr9TFRjZrkbX54W4SkGuipbsezeIrarRXh1Mwr2qa2g/DXzXPb2lyyHFEmveR\nM2ze7QuBEH255oX6qAC8PT9g+UeAG0qmlJpQ0aXb6rEulmKJ1hcJKsTSQZ6B\nTbly8P49lAFGqZhDZolnizJBUhjMez1McRFFVKsBbJCGA52Piu4iZtGlE5vW\nU+3DvA+Ipqd1X83ZrCp0RMEFWxMZKynRTUlg1DA0EpR/d//e/T2voRiOMHkN\neNk35hcUQwrQmg1lK8lEXgYX5jLRAkZE8z91sGVBxfNcx+CrJChv2kP8E7xy\nPqvV\r\n=7KCB\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.12.0-dev.20210127.3725565.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","prepack":"npm run clean && npm run build","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.8","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"14.15.1","dependencies":{"chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"~4.8.0","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","node-fetch":"~2.6.0","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","@azure/ms-rest-azure-js":"2.0.1","@azure/cognitiveservices-luis-authoring":"4.0.0-preview.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.12.0-dev.20210127.3725565_1611776893572_0.8733783751483473","host":"s3://npm-registry-packages"}},"4.12.0-dev.20210128.3725565":{"name":"@microsoft/bf-lu","version":"4.12.0-dev.20210128.3725565","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.12.0-dev.20210128.3725565","maintainers":[{"name":"cwhitten","email":"christopherwhitten@gmail.com"},{"name":"cmullins","email":"cmullins@gmail.com"},{"name":"sgellock","email":"sgellock@microsoft.com"},{"name":"joshgummersall","email":"npm@josh.standardlabs.dev"},{"name":"botframework","email":"botframework@microsoft.com"},{"name":"microsoft","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"a05372907f7b66c15cf9c94c77f14d1293d010b6","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.12.0-dev.20210128.3725565.tgz","fileCount":176,"integrity":"sha512-zsWtUOF2dTDaUNd3zPh4n1kZMxLqxriE0mo8eizmEoUri0B96YX9EGQXcvyctUnIZhdhDA2JM/+yumnXFywVuw==","signatures":[{"sig":"MEUCIQCTCg20S225umxme0h4SHApBrzgIEgTUJxZcfEnb4knlwIgahjGIegHrUl8m4OfBgqryOnZ1WHmslEu0Mq4JkUX0QI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1533058,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgEnMFCRA9TVsSAnZWagAAmGUP/Az3fE44si9Uq4KQw7cb\nKVBmEgU2rZLdLXx15S/9T0SnNDp+KYWd6Xy/FHm5QuSNz4q8oIJyaYTkMNDj\nUaIeNY+898aJ+/sjK1Dp4YZ8HeuA2cM1Bo5ItBoGveYyKjigz3areHOBMUtU\nW44PXxMz2+9mxdF9BeQi6mrOxTtrs/e2ysYeDjooyz+UKIJiXPG6379dakmp\nVf1E7VnkcxPI0/Hjdve2VEF11lDzLZiVPlSyt0iRrg5PyNvgF1WVdas6lAw4\ns4glZcXszmgxVIDK7cHYnuzuzwpaNXROxtEttwumrAZzTDLEKDvt+6KRl3Xc\n5MRzMMPVacvKzpAQaFlofbBGQKyn0kc/XFOpuSYaOO/SQD5iQuxS+7JHsLXs\njBPVcHiDbJycHzI68tGjyJDTIa1tS4ImPGklp8MJwKmAwnsRTQDY/je66fHC\nhTSjUpPU6Y5YW93/rqYZaTIDaD9/1wOnQdAZuTVklXyJY0L1BrUakcSlj9lt\nZwiQkdhz0Or5Eq0IonuoeFpXuf2/JvVz5idgdh/j3HhzlxqCEeJvY6dlPDLE\nQ1dIVLcI38pE/eGfdC3HC6cyDwoy1w6ETSqORMVrYAmmItKlVpUKH2cBrFpA\nZtK5XJvashzSSmgreQNn/NfDK4kefSqoXFxnsmef3DzTF8iHwWRpK3LznXzh\nvk12\r\n=vauB\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.12.0-dev.20210128.3725565.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","prepack":"npm run clean && npm run build","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.8","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"14.15.1","dependencies":{"chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"~4.8.0","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","node-fetch":"~2.6.0","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","@azure/ms-rest-azure-js":"2.0.1","@azure/cognitiveservices-luis-authoring":"4.0.0-preview.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.12.0-dev.20210128.3725565_1611821829261_0.6479883625740817","host":"s3://npm-registry-packages"}},"4.12.0-dev.20210129.82760de":{"name":"@microsoft/bf-lu","version":"4.12.0-dev.20210129.82760de","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.12.0-dev.20210129.82760de","maintainers":[{"name":"cwhitten","email":"christopherwhitten@gmail.com"},{"name":"cmullins","email":"cmullins@gmail.com"},{"name":"sgellock","email":"sgellock@microsoft.com"},{"name":"joshgummersall","email":"npm@josh.standardlabs.dev"},{"name":"botframework","email":"botframework@microsoft.com"},{"name":"microsoft","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"f3b4c932b1fb6b3e69e6d0cba3356fc3ba61ade8","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.12.0-dev.20210129.82760de.tgz","fileCount":176,"integrity":"sha512-nlzKjMAvr/bgjqVNXh/v4ns7aP4L5d6UT51keXa7k6+XGtHcQQkwXxwgWvo8CQXjZE5Aju8DTbxbIBY0bXcq6A==","signatures":[{"sig":"MEUCIQCh18Ewgb9Ar4e09QI3NmtiyNMQUIu1qe90ABJcsNm72wIgNZhsmpnGqMuA9/dGSivr+uxnBka4Zgr6vOxLoYvaX0g=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1534066,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgE8RjCRA9TVsSAnZWagAA1hoP/AslNh2Hb3DNbrUsvnEi\nZv/3bLbhWM+RCKOBQF9La68GDjZlejfDur0CwH5cm1ACL41FPmZFJ+Oocn+4\nZtmPTwmdfQZHoy+eTLpnZYtkcIvzRaR/HHY/+Nzv0MZ4cfJqm7PjkwdH06w9\nufTzTvoCRd/v9HroW0sBI+OjyCX/unCyctVHPPUJnMQF3B1I5WH4HF0g5/ZQ\n6xTAXQ8LqXkZVoKlz/OwmN9M8NgyxEYcRT4WwF5hDICxP8wtoUz0ltMZj2Yc\naZnKjO8cjz7FdQXxtDortqmXXgiOY3Z0ihemfgwVXdL6nzaPfSUPGkVvfpBZ\nKY3yY42CLnq3HqxZGGBCqoceHoVIFtGdm6X+MceMTHFeB1An73T812NlykB9\nZhZhGd2Uz0dcSwOZm3w7SgcGIbEZivufoVf4zAauQZyVmrv40iylhBYvbKVe\nNQ0dojNf6QHv6Rb+Xk43R0nNPvfl0sPjB8a/TzX1zGIXRvOknyus8JvbNNJX\nDvXSp8U9z1fTY2dxMtYNcjL5tmo/9FdC5kFB0lDGEfSre1rh5DPGAvXYyanb\nWUHJt0UchiB3qyAUdLsLabXLfzzbZPzf0eZeELPdLsOTjlPiMpvtANtzVt8q\nNPpMMVXbl9a/e/fl/hVtcDu2KuY08skGE/TMRcFv/wTAqW4ufvwcCrpw2TPe\npkFD\r\n=cmuh\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.12.0-dev.20210129.82760de.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","prepack":"npm run clean && npm run build","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.8","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"14.15.1","dependencies":{"chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"~4.8.0","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","node-fetch":"~2.6.0","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","@azure/ms-rest-azure-js":"2.0.1","@azure/cognitiveservices-luis-authoring":"4.0.0-preview.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.12.0-dev.20210129.82760de_1611908194904_0.22317767201983885","host":"s3://npm-registry-packages"}},"4.12.0-dev.20210202.c622c6f":{"name":"@microsoft/bf-lu","version":"4.12.0-dev.20210202.c622c6f","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.12.0-dev.20210202.c622c6f","maintainers":[{"name":"cwhitten","email":"christopherwhitten@gmail.com"},{"name":"cmullins","email":"cmullins@gmail.com"},{"name":"sgellock","email":"sgellock@microsoft.com"},{"name":"joshgummersall","email":"npm@josh.standardlabs.dev"},{"name":"botframework","email":"botframework@microsoft.com"},{"name":"microsoft","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"a19a9ffd2bd09c783f8f254c58eeda45bbbebcee","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.12.0-dev.20210202.c622c6f.tgz","fileCount":178,"integrity":"sha512-Bi1mLKJuAqrKpp2svqSq/p4fvweHf3ie7EiSyfAaWmcmFdWES9N/z5T6xKSlY0BT41vOEvu0BpYfTFz0lNnZwA==","signatures":[{"sig":"MEQCIFRlPTjs6g0jrVSmXsgO3oU/+A6LNE+bdQgJiQGN+pG8AiAkZl1Z0xOwurQC1JIxMY3p3BT8S4rl89EgDYr9KJpQCg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1536507,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgGQpzCRA9TVsSAnZWagAAo9UQAJOD9jllB9L9IfetQGvO\n++DTm71ig2QTfthUXCs0Rx+2zPqXYmyzv45IU3/pDJPci/amSdDIj7IJCvVM\nOS7CrHMf4knLOUWzuKO63r4+bVkKgerU1IQUtMHy82rH2alTjp8oQLJ6h+1z\nLUshoHljR8Ls6+4O3GbWsK900+DYiLhg+7aCMrVEeM/6IQRFp9BYDW+LolkH\nrvuWQQ6gp+AyzwjQ4n7t5C2l/J5K7XY8mIxub0e25+DZ1jMIfluyFGcOsETu\n2wc1Y4tL8ZPr/rAHsLFnwthnOfF5pXigJyUUCt2HpOJXBq1q+3rF8cMWHOfO\n0HQ9Z3OTPC9Hdl4EdAm+9T02m4Diw6miDX+QWCyJVuWUdAWKwofdhN9+uyL1\nxUpMsdMHW6vEWG6KlzuNH8EHkK7CyFZm2VY3ceH6hEtGScxafNTqZrsdkk+e\ntFVg4HYPg4EV7Bhnlhe5uBCxBh7yx58QroaLSFCrGvy5UjvtsEoUaTvo0+QF\n+L/sYFlmW/gbRejFr4O8IvpiIdjvqQqbUl/tgNOSBQYuBoUkjqnTDtCPwp8f\nNael7cIpE3ix8DQ09WN/24yZ6GwH4LlJe49FWWpXzP/TbmV0weR7N5cceRIx\nUevIjorJgbbeD7womVhhmBTk9gA2PVo0qX3tJkQYEoFZgXNYCd3v5mGTsJhI\nQqud\r\n=1rBg\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.12.0-dev.20210202.c622c6f.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","prepack":"npm run clean && npm run build","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.8","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"14.15.1","dependencies":{"chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"~4.8.0","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","node-fetch":"~2.6.0","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","@azure/ms-rest-azure-js":"2.0.1","@azure/cognitiveservices-luis-authoring":"4.0.0-preview.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.12.0-dev.20210202.c622c6f_1612253810564_0.6731198132907781","host":"s3://npm-registry-packages"}},"4.12.0-dev.20210205.fe56306":{"name":"@microsoft/bf-lu","version":"4.12.0-dev.20210205.fe56306","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.12.0-dev.20210205.fe56306","maintainers":[{"name":"cwhitten","email":"christopherwhitten@gmail.com"},{"name":"cmullins","email":"cmullins@gmail.com"},{"name":"sgellock","email":"sgellock@microsoft.com"},{"name":"joshgummersall","email":"npm@josh.standardlabs.dev"},{"name":"botframework","email":"botframework@microsoft.com"},{"name":"microsoft","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"acc0f0aaf340317fea81d55e7b2db79c897bd540","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.12.0-dev.20210205.fe56306.tgz","fileCount":178,"integrity":"sha512-2JrF54LBGWIbuddtB3M2U0qxA0ZSMscfIL7nay3/KS9eN/yJtS5GOwmaxoaUNi1c36kIW6MZcK005CbcmPKMMQ==","signatures":[{"sig":"MEQCIGxl9kzZGeKhZ05m61Q1KuXnNXK3UyHuz+/OBknwhxv9AiAgtl0A+7tEFps9JEUJNmb0EievN0IDfH/ig4h5lRotfg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1536958,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgHP7tCRA9TVsSAnZWagAAnB0P/RoaZOjzWAai9rQtV1sn\n5/beP9Egjq/BjS98d8gBsBpkiCVyROcSqKjGXCQUnrr49nA2g2EO7GyLVSqZ\n50O3kMSTaS+qfVhK9VLCX0Avz9IEGljUpAenMOpYNTbhlkJL0hBcEctgCo71\n/lU03QnCUR+bh+N//vpJBAVoSWRWYWunx6Zu1xyE5NhJATpDl5Kl029eD2bI\nEXEKhjsXAE8vvRdrSEJSaGVS7hZu96Lr5Mfk5DOZuUZ92KC8K98XwM7DuN+M\n/ktH17w5+8czXKc4K0h5QopVGkRi9Kbk+wOiBhmbfHQXSmoMR2Xq20YO4uk3\nYUyou3T9ge4jntHqWPdVGSNjbZOqPCRcs2pL7PFyVGc20RYTwkH0eRKxLiML\nghlEwxN/Dmp2mSeX7xLyyHBbNPODI7W+JO+rlkjUB9kG2Ukka7eGybdX1J6+\npctrvcGw+h9S1p8cu6IODfN7oQpibNxS/AjOMN1dudVr4W0MwV3Ylbl8x+Pj\npNw3qcojCLptpf8katNjgcZy7xZuOUqPcIgl2768S4E7UEFKvw7b5afRxHxS\nzgH+79zJzrMayxft+qg5Y+2393MH9u86uBZu8fEpWC7Vsv4cg1vD3SJ2igav\nGNPuI0l+F1r31fMGkPM1GcHSCExwTWFfPu4v07/V8A8cPBruhFQnH5dwovzh\nryN3\r\n=CSit\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.12.0-dev.20210205.fe56306.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","prepack":"npm run clean && npm run build","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.10","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"14.15.4","dependencies":{"chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"~4.8.0","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","node-fetch":"~2.6.0","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","@azure/ms-rest-azure-js":"2.0.1","@azure/cognitiveservices-luis-authoring":"4.0.0-preview.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.12.0-dev.20210205.fe56306_1612513005395_0.8062366652039621","host":"s3://npm-registry-packages"}},"4.12.0-dev.20210208.b300d92":{"name":"@microsoft/bf-lu","version":"4.12.0-dev.20210208.b300d92","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.12.0-dev.20210208.b300d92","maintainers":[{"name":"cwhitten","email":"christopherwhitten@gmail.com"},{"name":"cmullins","email":"cmullins@gmail.com"},{"name":"sgellock","email":"sgellock@microsoft.com"},{"name":"joshgummersall","email":"npm@josh.standardlabs.dev"},{"name":"botframework","email":"botframework@microsoft.com"},{"name":"microsoft","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"dbfd7469ed63e70cd3fc18b23a29da7fb17df406","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.12.0-dev.20210208.b300d92.tgz","fileCount":180,"integrity":"sha512-C+6NyJ7bluonp6s09KKKNQI0oS2f8PVtqJUfkfn6UUBBx37SjMcJ92r/RBbGFSJEuLPmBO1/Keud/ATqszPL4g==","signatures":[{"sig":"MEUCIQDTceCoqc+Y0Fgpdfdy7aQGsYunauYJZmX+DppnFIMlZQIgK1VvF6kMs3p0tZlVckfMVuscuL2LCSK8+PfT2KaF/ls=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1551078,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgIPOrCRA9TVsSAnZWagAAvjEP/jpr3/G1ckdGByYWlXBE\ns2/W12KsXzS0NMCHwsPdPBT1DnW+KowmIGF1bg9gumYG2ZehLxMTUcuWSIuX\nVDQBwdK4mHmPchr4K2z0RA1GhsNIK8hThZMx/VE3baJtCu81oEXxXcPFq1YY\ntoEk2GC/Ftl+4ZFYqbcgBZ52pyPmhFgqI48GQqRtr4pko8ttr89OW/6wKLZ7\nrmt3zxqCaGzGM0O4Gkfd4mtdON65JfzUcMUS111c6ICwnxCgG9YWHij+bkjZ\nDWyJ1rc4PQls4ppv1iF6OUJK+EiInMwVcpS7lwiCMXAtznsEhH5iSKCSEL6R\nybZ/s3OYfk2xcXCQbMQfujGzeAi5NEkBTCJcjZqs1nHUE1Mz6040i9XoHvIK\nzBtt553hX5ZBBMBYy62nZH00fDLFmIzFP07UtZYuNZ+dnshSX2FmG28M1q2O\nGa5glI4mf6GSrHuMLjMus1UQwIJF0dpqUEmH55oxDlLLZIzCqPIyCNbYohnS\nmxrXHs9/C9UdnmclaH72py3MJ1jcQ0qNNw7U2TI+eqeV88st5eDwKJWZou4r\nVLfyLCIiE7OB5SnOXI+S9GJLkHmculYWwS18TzEfPUGQ4H8jjQGxiMasabyh\nw73Z1BuJa2k9EmAz9GEE1QwI/mgWDZ1hyw56xzaGfuAYNAAqMyqQq4XYA+zI\nuZeV\r\n=kvG3\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.12.0-dev.20210208.b300d92.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","prepack":"npm run clean && npm run build","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.10","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"14.15.4","dependencies":{"chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"~4.8.0","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","node-fetch":"~2.6.0","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","@azure/ms-rest-azure-js":"2.0.1","@azure/cognitiveservices-luis-authoring":"4.0.0-preview.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.12.0-dev.20210208.b300d92_1612772266815_0.053487446292630025","host":"s3://npm-registry-packages"}},"4.12.0-dev.20210209.dbba6c6":{"name":"@microsoft/bf-lu","version":"4.12.0-dev.20210209.dbba6c6","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.12.0-dev.20210209.dbba6c6","maintainers":[{"name":"cwhitten","email":"christopherwhitten@gmail.com"},{"name":"cmullins","email":"cmullins@gmail.com"},{"name":"sgellock","email":"sgellock@microsoft.com"},{"name":"joshgummersall","email":"npm@josh.standardlabs.dev"},{"name":"botframework","email":"botframework@microsoft.com"},{"name":"microsoft","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"ace2fc674fa0aeb7f0decf66626ef0e454c2112f","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.12.0-dev.20210209.dbba6c6.tgz","fileCount":180,"integrity":"sha512-1rBklZkJU+Qc7YpEAyHl91Q5kWK3RbPDQ2+X7+9n8WNG+8bwEZ72Q7RbvsyWltS18iIWaHxDlbzoSXnc4vofig==","signatures":[{"sig":"MEUCIQDyacBdhiR3WIsEiHkDb+si8FVMhiPlUuOvaToaZ/sJ9gIgbkyzBNkTQxnLwB3fVlknlhUaCR7iLyns3YdKbMtnvOw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1554168,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgIkT6CRA9TVsSAnZWagAAbiIP/iNfIDlHVnctoSgurxvg\n+ptEmdRQZczeolMJUqnPXNUDd22Ny6vHuZD6yVq8N1HSiCgTnAZQY5nHjmHK\nJQFMFJQDDCiBYVRTrfNHxfNo00QESzHmav59oD/3dQpgVQtdSK7uHRiBhgGg\n/QVlYdgH7ahA3Q6E9qTbi6iRdSTaHvEyeRfLWF8nQUx3jd+ffgi9P4r/Ob61\nIJEL1etwMZqdjfzfLU8CVmEs8fGH/TUS7Ismrzpo5zVNOT/8cBieRAu55Y42\nHxa1cCk5758N6qrJrcVifrr/KRmir72bMqlxabSLR0GroUqFbC5qRvedGH/R\nXzPHwBOQKxOZLLMNtq2Hg0e2SdLekPLY+lfx5iPe/a7vjWDojodKyp8OCWkM\ninEmNFLuvZW5DXMUwq9FDkinkfc88yC8XUpEKU//ctGTvoak4uCgSdbobazh\nrLWWoCJSsBWsW2cVfCvRzP/O9pH4O9S+iOKdho8zF6IkF5EUx1jISyZ1j7+a\nC3xZH9SiqcjQt8dkSG8IArC+Nbu7CCtXtxVPHFeOwxWUASjjY6VDqc/mdzDy\n7AMcfp049RDA9VrI+EYlrH55ccQ/owUInGm6PUBe/vKKvs9Wj08llYF/LLkx\ngJvvKOjKaloj+Lh+OqKPWF2+Ncm9et1srUaQv9CTqC/w12dIy27BJe3GNtYf\nue6D\r\n=gm8Z\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.12.0-dev.20210209.dbba6c6.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","prepack":"npm run clean && npm run build","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.10","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"14.15.4","dependencies":{"chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"~4.8.0","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","node-fetch":"~2.6.0","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","@azure/ms-rest-azure-js":"2.0.1","@azure/cognitiveservices-luis-authoring":"4.0.0-preview.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.12.0-dev.20210209.dbba6c6_1612858617672_0.8153799591224251","host":"s3://npm-registry-packages"}},"4.12.0-dev.20210211.d80ed6a":{"name":"@microsoft/bf-lu","version":"4.12.0-dev.20210211.d80ed6a","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.12.0-dev.20210211.d80ed6a","maintainers":[{"name":"cwhitten","email":"christopherwhitten@gmail.com"},{"name":"cmullins","email":"cmullins@gmail.com"},{"name":"sgellock","email":"sgellock@microsoft.com"},{"name":"joshgummersall","email":"npm@josh.standardlabs.dev"},{"name":"botframework","email":"botframework@microsoft.com"},{"name":"microsoft","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"2eea489da8705790bd24aa7bc1b8413a1a950e7a","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.12.0-dev.20210211.d80ed6a.tgz","fileCount":180,"integrity":"sha512-VWUnI4dZ87mFIb8/rIuWg1S2jQoue/CbQSULYAxMCkdii0e9GTDwzB8vpOl8LXBEB60Rn47hkg80CqsgEz5Zsw==","signatures":[{"sig":"MEQCIDR/+kQJEkVWdyV5TZR9qH7sJ/vlYs1OCeKxXPsD+gTUAiBuVeTn9t85/ylliAvaK3kQ9dJngnat+EOWl8ZuBpp47A==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1554168,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgJOfQCRA9TVsSAnZWagAAQj8P/jkPh8LEJIfMCh3U4P1A\n0X8/aKwq9bbVUpw6KI7ibCMfEAf2EH+4RNorV4fOcn8zMP04/7EwYs7V++gM\ntBf1P0ODMn/qToRfUYz52qrXEhL9vLznDyZ+guQrIdd90uB0fVTDfNi4UdgS\nDNjj9e7yIDKGKWi1uVVRdRvwwN1WfIxr0j28eXADcj1JdxZu56lX14AZOvMX\nGQTkm2waXGBIpa8RG/FgH1lvqLpld4GWqSSA4x58TksxK8HN+YRjK/UqXhF5\nNp0+M10Pih28yps7SN8LwO3Q5DfwwRd/2qaxiDXvOGZBGuCGqL3ZgOc2VZan\nEY5PpjOorE7f3TAZ5+Q/KGJsQzAo1qUgNmy37Cfht2QUAWLC9bFAJeigVHSU\nkXn5/4kWrPQvyG5wr7Qt++y2/UfoJZKwCfJsDdkQfaJl0+U9yq5/kjaPZGms\n306Z9aRhTZjtbcSEaFeRoYGXQf/nIf6uXqEiQbX/MXd3Oj9lGuhIE8AE3Nyr\ncI3+eUArKiBDn5VDWYmAqsFyX37pGGRAj7Uk8BjmoCBvMPu/QlS8+6Fd/Dbw\nuwqLrHnfnNzKKuvYiTQEginAiWQ5PGMF+qmOqcUEm+ALDRg4jzuNHs103+4V\n7MFLxTNKoC0SITtKOfgiXMMuQDx8nL0lQhVInoamI+8aHgJE5r+4s+V/T+Dk\naoz/\r\n=d8Hy\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.12.0-dev.20210211.d80ed6a.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","prepack":"npm run clean && npm run build","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.10","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"14.15.4","dependencies":{"chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"~4.8.0","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","node-fetch":"~2.6.0","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","@azure/ms-rest-azure-js":"2.0.1","@azure/cognitiveservices-luis-authoring":"4.0.0-preview.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.12.0-dev.20210211.d80ed6a_1613031376468_0.326504142826346","host":"s3://npm-registry-packages"}},"4.12.0-dev.20210212.50bae19":{"name":"@microsoft/bf-lu","version":"4.12.0-dev.20210212.50bae19","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.12.0-dev.20210212.50bae19","maintainers":[{"name":"cwhitten","email":"christopherwhitten@gmail.com"},{"name":"cmullins","email":"cmullins@gmail.com"},{"name":"sgellock","email":"sgellock@microsoft.com"},{"name":"joshgummersall","email":"npm@josh.standardlabs.dev"},{"name":"botframework","email":"botframework@microsoft.com"},{"name":"microsoft","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"8bc89ff0986f138a698654226cba75e856e98699","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.12.0-dev.20210212.50bae19.tgz","fileCount":180,"integrity":"sha512-6yJ2BluvgA7Sw3UfeUAcJTznZdzo9y79g5KScYSSfkmQQRdtsmg3hTmT+uzg5C0sD0EC/d/nYyEqPvzWiT2s3w==","signatures":[{"sig":"MEYCIQD0XWjkPCDe23ESOuqnCWMSFR7+EKZt830GOmR8kFseyQIhAJFJL6eW3FAV3oEEGoNXMuzMRdbGKpP224nHZPovbp4v","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1554168,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgJjlvCRA9TVsSAnZWagAAMSwP/2mgvUeEr0alrf22Scw8\nMewgcpKLGsNwr0lygU08RRa2ds6AbGavu4FDSxTSZlmGE69jjo5ektyCTtoV\nPnBW0JvNaB7XdykoPNHdRXY4LM+1R3n/mFsOPZtVtiQY0fhg0HoHoWAqwWoy\n02NUQBsgRJ4yhtLPy7lxv8Ft56g6SJ8mkRKRdG6QS67d/GEmTLUJHccePlMc\n+hX90Pc7QVnr0nxERAo3p+FAtz7Jb23Vqk0zaE9QBneswO3sBNUsVKgwf6aa\nz+XpCbkqGhxfXd7dKBkBFCC5tJCiEjx6OiX1U17Ndh3aXh97iXdRGs756Tm0\nosecxp38ltLq/PYr/7uqS9yKb9H096ursTIbro7ziGyjNBKAZxd052cVP1wU\ncQPZtajDBxfKnSROr6/aXBRPAteJvMbEdtIyagsAM0L5ceCM+OvRG1OfgQX8\nZnOD/Cg+6RgMY5c2GMdgSpzjYMS7a58aHLhEefKVptV9E/FVrk7r4EyiRDqz\nph6MRCLtpFqu7sbqyomIv5VKSn0ERsBS7iR6pBuXS4r9akQBYd/+chFiOMrS\nqYrVbzuijHNL4BUUOWTzYI3rYUcFJkFFPBJSCREgDE9OuMyMux3Pqk212nAY\nPyAzaM2UsXwcofUtuj702euUgDphyNKdMCmGdr19KA85VMhq1mgTfFAiNMpc\n0aE1\r\n=9Hdr\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.12.0-dev.20210212.50bae19.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","prepack":"npm run clean && npm run build","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.10","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"14.15.4","dependencies":{"chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"~4.8.0","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","node-fetch":"~2.6.0","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","@azure/ms-rest-azure-js":"2.0.1","@azure/cognitiveservices-luis-authoring":"4.0.0-preview.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.12.0-dev.20210212.50bae19_1613117807331_0.7864061326874372","host":"s3://npm-registry-packages"}},"4.12.0-dev.20210215.64a2839":{"name":"@microsoft/bf-lu","version":"4.12.0-dev.20210215.64a2839","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.12.0-dev.20210215.64a2839","maintainers":[{"name":"cwhitten","email":"christopherwhitten@gmail.com"},{"name":"cmullins","email":"cmullins@gmail.com"},{"name":"sgellock","email":"sgellock@microsoft.com"},{"name":"joshgummersall","email":"npm@josh.standardlabs.dev"},{"name":"botframework","email":"botframework@microsoft.com"},{"name":"microsoft","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"cd15bfcccb99ce2f064e55c7853f3239c3bdf613","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.12.0-dev.20210215.64a2839.tgz","fileCount":180,"integrity":"sha512-69JTL1H+PWqeSmaRqLmECc5H3VbE+YM2/rsqxR073Q4PfGJNfLM+LLVmJXNhj+PfSUKyL8PRrylAX/aw8RLuNQ==","signatures":[{"sig":"MEUCIQCL/sSZrlhiL+Nei0IyioU2//CG/mG98EAqSx6JDKwvcwIgEQf45Dn1K2zwahxiWmnXgVTAp+oR6DFIb2UP9j4LmZg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1555265,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgKi4jCRA9TVsSAnZWagAAwH0P/2aHFp1YMPmXgHhY5s9v\nrEyLct1rLcAKsMAJ/Okq/v0f7HwxdB7x5uvzhhyisqzi9jfnKc/mzYlPvYvM\nXdQNGENUFoYxOVvzajML+E9hRX8KfXYkncvAYuU/CU5hyRuLAlt3CXT78xRD\nzzta5YeHmDVb1JeuurFDUd7FptEkdv/s/1r/4MyYC6an2CSXRdIV0ZfSk4RD\nEsLlDH9ewCFnv+H6FTS1W/Ob5xa4GP0RdWdk1NoqezHooJXdjREbxL/GOpYe\nOmcnAXvf8RDjRSAw8thsQB8hOd29py/4bL/mMzux0bwqSaXM5wva3zao29Qf\nwk3N3n+ZqSPxLi5xQsbjRrEP1MazvCO21qqd5pCS2/IA2aDV3IFnfcWAaf1v\n4FAX0YEL5JhdKEQGmZyrAZ1RFmTQio9ww6WEWw3XnL6Lsj8SSJONrpVea36c\nRdtQjQyaAZA/P3l8JDLXrSb2hHLhAG9m8QaPmjWNaQ+mYSMAtyq61vVD1HL7\nTae3xHzKisSAxkx4rK4RJur/HA5AvleOkPDzSRYJPgBNe1OZQGXlFjxd6CDC\nvrCpUsKSoHdY8ihFegTFhcAh+kcvrPHI0aznjwkP4Ya0PhRnUJbI2X91ghX1\n7W2nhm2l4C0oRnMmXbfUaUBHqQRe7hQDmAqe+3CbmodNpPJfGBsICoy+XZMb\nnqos\r\n=Jl9/\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.12.0-dev.20210215.64a2839.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","prepack":"npm run clean && npm run build","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.10","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"14.15.4","dependencies":{"chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"~4.8.0","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","node-fetch":"~2.6.0","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","@azure/ms-rest-azure-js":"2.0.1","@azure/cognitiveservices-luis-authoring":"4.0.0-preview.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.12.0-dev.20210215.64a2839_1613377058936_0.9125982781214512","host":"s3://npm-registry-packages"}},"4.12.0-rc0":{"name":"@microsoft/bf-lu","version":"4.12.0-rc0","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.12.0-rc0","maintainers":[{"name":"cwhitten","email":"christopherwhitten@gmail.com"},{"name":"cmullins","email":"cmullins@gmail.com"},{"name":"sgellock","email":"sgellock@microsoft.com"},{"name":"joshgummersall","email":"npm@josh.standardlabs.dev"},{"name":"botframework","email":"botframework@microsoft.com"},{"name":"microsoft","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"9c1aa4cb7d22a0a49d4c16eb1bce5d5e222c40b1","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.12.0-rc0.tgz","fileCount":180,"integrity":"sha512-bz5BPQsIh+BwXZ+YAMG15wTndF/Ug3EviSjOs0GtryRSkgJkmAqAhdpU0SRjVAVuy7XzTRpltxbMmSoiYVnHtA==","signatures":[{"sig":"MEUCIQCGLXNNbZzua36nEYdsyn/mPtMezw2PKhIN7/LEB6ZnnQIgJfgYxgLj1TvdkeVEzd+BGduBssQZ3EZ5PnhKk0Jp7DI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1555248,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgLa5fCRA9TVsSAnZWagAAbN8P/R8IH7gEqulQE+KjSvtU\nqFFJ0uH3okL7CVqaFiGQyG8IRkcvjg5sXv/kCcmkcq+v6eKRKPv6azXzQ5RT\nuHuePFZxqS8tgrvmkHEkyx7G11yapAaJGHJpbPZj5xDebyIZTCBtnRmtDez9\nMzmkmMukHuuiuWugRf7MOrZ6v/rYUmgDnl9Sz406am0JIFkYuRNzC5pzNBWf\nFvWnRDl57fEMWyQTpDJFlVpmqTMrokkzwvp+ehmcMmBdj9aZZT0+BaO8osMC\nhi2b28j4zAviFAg6cXmJejGEnsYByas8DoINLA5c4qAFYl9vqtS/EDeoqBYG\nAOUTcU1V4zfbaTW7zl5W8CNNEiP8PVtbV2KPJ5STAzKFzejNoU56LQd6SQYy\nXe91ZgS4/AyB4cP8y30TCOXh7pplhtbBbZFJ/fRMdYZRoCGzXY8As9+YD72+\nWYIS8icjGZsaZeN9tTtfUSVhg6HnuXcTkYdRED4qRLwQVjV9U1biXQ+EFtuM\nzTVk5mUmbnZvHZFgZodtAUx5GsvauoKv3r8tGy1nzhR2RO17sTx0Xndk7GX+\nG4vx3TIFqAQpxEdYzBRIis2Gl3P20WRUOJ3NjK/hwCAmiMjx6DjQsyTKs2AP\n2TSU06k+z1oqUEVcyKxKtx+h9lJ9g4XgFjh+/CIdRaXZkCsftuyCcAlSVjpb\nrMSQ\r\n=RvOB\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-rc/drop/microsoft-bf-lu-4.12.0-rc0.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","prepack":"npm run clean && npm run build","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.10","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"14.15.4","dependencies":{"chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"~4.8.0","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","node-fetch":"~2.6.0","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","@azure/ms-rest-azure-js":"2.0.1","@azure/cognitiveservices-luis-authoring":"4.0.0-preview.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.12.0-rc0_1613606495393_0.8222322352424536","host":"s3://npm-registry-packages"}},"4.13.0-dev.20210218.d9e7d3a":{"name":"@microsoft/bf-lu","version":"4.13.0-dev.20210218.d9e7d3a","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.13.0-dev.20210218.d9e7d3a","maintainers":[{"name":"cwhitten","email":"christopherwhitten@gmail.com"},{"name":"cmullins","email":"cmullins@gmail.com"},{"name":"sgellock","email":"sgellock@microsoft.com"},{"name":"joshgummersall","email":"npm@josh.standardlabs.dev"},{"name":"botframework","email":"botframework@microsoft.com"},{"name":"microsoft","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"351004819bf9a130d324e687e774df621914e2a0","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.13.0-dev.20210218.d9e7d3a.tgz","fileCount":180,"integrity":"sha512-Z/cBw1nu6WzvPR4r8dVuGfp3Cw6hSws9TNntrIsSYr2hCcGw9fROf2GJP1JMIs+QZYAt6+AvnuKnH8L1BiZOTg==","signatures":[{"sig":"MEQCIFZyXt/H1/EEXnAtOWVvUNXzw2fVXEHi+G4e5H4fsLWOAiBHV2SETHb9pLHSLufnhrrdlgoWbP3afo0R6WWPE7FFwg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1555265,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgLiJBCRA9TVsSAnZWagAA0VAP/2HNiNXocXmGp6UecJRw\naYzJMZUBcYCJy53eAHRSJ5yP49tQnkxuXt2bIc3/f6vmRjQhsit8U2JwVPVD\nG5LNOWNe2ZiERlk1mkbGVGLv84Xa3tI7lAXUuSXr16YHLJRpThFmBBwBUYKS\ntraDjplD0bZlMefzFi6y3iW+TZAdiAlCb3jQr8N8Ym9cHkCpFFN9aSsOi48m\nMYHiYYX7pdbVyLHgoMOfmhH/5LQzKH+uBpFlMtdHcPVFdJJ0XZzMn8ZR8nSB\nHWgBFpCacJ0Gk6W0DzACmplPalWL0WWh+Ec/iwvGNJN36VmuNAZaDUfj+cT2\nq+XQIb8zCYrBWm4XziE02ecRiI4flilL1mlx8CEp57EM2+aJUw6lj47426xs\ndbqap/+bwmLuUcit7Skk92/G8/S2szy64eX+wStPYbE3ZV5FsDCqILWjuZPO\npUwMWLELLHRcFiWJDkpl6S41vMyrEiKK6EzoGIzYw3nxfE2RUonBGXaIQchH\nMJQzMli/y+tFF+JpOTMfo124RiQfcZTMtGomcO2SRecHxxTZi0pBGQFWJl6l\nw45YRN5htT8hhb9onDV6DbKizScSkSbiQs2/+jDaUe93+mdQRPxPKi0c2A+o\nTfAgYVRVUq7EFOF7/o/BDzbI6kvtNf6cPgRzGJGSLmjC0D27y2skyrRruyGo\nyrFX\r\n=RAfz\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.13.0-dev.20210218.d9e7d3a.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","prepack":"npm run clean && npm run build","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.10","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"14.15.4","dependencies":{"chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"~4.8.0","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","node-fetch":"~2.6.0","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","@azure/ms-rest-azure-js":"2.0.1","@azure/cognitiveservices-luis-authoring":"4.0.0-preview.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.13.0-dev.20210218.d9e7d3a_1613636161252_0.9461702793387299","host":"s3://npm-registry-packages"}},"4.12.0-rc1":{"name":"@microsoft/bf-lu","version":"4.12.0-rc1","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.12.0-rc1","maintainers":[{"name":"cwhitten","email":"christopherwhitten@gmail.com"},{"name":"cmullins","email":"cmullins@gmail.com"},{"name":"sgellock","email":"sgellock@microsoft.com"},{"name":"joshgummersall","email":"npm@josh.standardlabs.dev"},{"name":"botframework","email":"botframework@microsoft.com"},{"name":"microsoft","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"92e2d9d6a0f1d07358af476b000840f85c744722","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.12.0-rc1.tgz","fileCount":180,"integrity":"sha512-q6an4rALPNhuc/LQLkBw2kuJU0d8Yws8qKygM7q1iU+t9soLvthaa+f+HaACC+TG8fiiS9UnFikJODfkL/3Sfw==","signatures":[{"sig":"MEUCIDi7aOErKQErl19WmaAIRhiAC87m1dAvaqtpgPF+d5STAiEAzWpfX8l7LnVDEyqoaAHXsAHpbvwDHYnkpI34EDb8zHs=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1555761,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgMGRnCRA9TVsSAnZWagAALJEP/A74l2MkGlflzhsUqvDY\nKnPm//UWdPVSfw+sf6BrIEMPtKQG+Slub/9RSQCTZ5F1ktIcsKIa+scT6OGJ\nx/U/yPRhBH2Hse7nYzPGIx7cISpYSQIJhEz3MkbgnUIS/sYY+VTU1n7S2W+p\nb1tvqA6/2/fsdiKL9SUYTKwJ8EB5M7kKLRD5UtUi0LlzA0+zpnO6eanRbUJm\nELoS37mQZC2rjBAS9VWhQkrtHxzoK5ZY1lM74ghn49sANQJ3rOQjW3AFApu6\n79/lQXaOG8dMw0fWMbIoUNxqKNH6mrjMvSwlu6kPV+tvw31CD2PzHCRemSQh\n8gkOyanBJux8wQNhmkmgGwOkAE49srWXSt/7uRVTHvfGgVg1Bf1uX7mBPCxd\njDydNvF8xA/f0oQveZhJI5j/vDrLiqEqR3fRyDb4pmidJMMSo95Kk2B4hpZ+\nPPzgCUJZheSGmcm8ak3ZcqVO4WHLhsoE2/WyFjvjRzDMMUjW28oNQsbXEacW\nrKbjhabyGzz7qtGYnDWbF5rRSQW8MqvRX7FBhXrqZvdjlWtmgDY7I2iMWlem\nzn+djMTXyCaBjUbCB7OGwj3XcFadGQQWjfyfsKO2H9+6ZAyq50Of6dXb+49g\nZETql8P2KHVu7xe6JWqt/BDpXmucLzcsYflP+pvvFHFcYHjX+c/fglnWUgpk\nxkHf\r\n=jguT\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-rc/drop/microsoft-bf-lu-4.12.0-rc1.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","prepack":"npm run clean && npm run build","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.10","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"14.15.4","dependencies":{"chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"~4.8.0","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","node-fetch":"~2.6.0","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","@azure/ms-rest-azure-js":"2.0.1","@azure/cognitiveservices-luis-authoring":"4.0.0-preview.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.12.0-rc1_1613784166980_0.7008428338015844","host":"s3://npm-registry-packages"}},"4.13.0-dev.20210222.5f35a0e":{"name":"@microsoft/bf-lu","version":"4.13.0-dev.20210222.5f35a0e","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.13.0-dev.20210222.5f35a0e","maintainers":[{"name":"cwhitten","email":"christopherwhitten@gmail.com"},{"name":"cmullins","email":"cmullins@gmail.com"},{"name":"sgellock","email":"sgellock@microsoft.com"},{"name":"joshgummersall","email":"npm@josh.standardlabs.dev"},{"name":"botframework","email":"botframework@microsoft.com"},{"name":"microsoft","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"4daa69b4eb96cbd6c47d33f09fbd43ba79426327","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.13.0-dev.20210222.5f35a0e.tgz","fileCount":180,"integrity":"sha512-H4V5CosJS+hZnK0MSwYbB2l3ENEN8TkCBHB11XMInj3Hb+9mnLx8MmExjya98AtMhyMIWBP8XbEWAnwzix25+A==","signatures":[{"sig":"MEYCIQCZsw8EX8XlzyXUsrBBrFY0AAKHe6Vqvs+H3ekiEq+RIwIhAP0r3C8DMXdznSnmeFzrHLrQ/iFXn79+G84VHfqm0S3l","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1555778,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgM2iiCRA9TVsSAnZWagAA0ToP/RdEjKtKw5VwC2Rjpr8g\nv3AZ2ky0jRqLISDjrOr6BexIl92fMj8FsmiRJHCD2Pr4X5Q1lMtPrAE3BN6d\nOs1yHC+7eu6wLbj39Q4J39+9C7wRz79/+NYvH/L0E7ch3zY44ZNMc6etaaMw\nfKVeVdcybXNLp7GFmaqog5DaR6WJWN0ziVLmJSkEcMcauAJbhSVXhjgrwzrV\nqTtguOPnd2sHlwOBlAWBNVuoMjy+3XktWtKjwiuQpTt+DXqD4glE+xqq83aE\n1nnbm/BURiIQK8zNRZ/S36mvpk0Y8fMXbSgW2NDSKMlUp4dsJpW0kIw7UGSd\n7GjhcSGq+Sr5Zu+XF0K52lQ8G+ocfI7V6GdYShPAI5U7hUbzhQcJ9zAHEKAl\nmmmLJCTeOo5dtLgBxg88/wHe+5+PicP3p32uaH6xiT4XTZzJw0MHSRAUr4Tk\nqzWGIEXcNDrKkW/7U8p6NSpnmrmvzb3nuFHFe/eG6GWONN1w/bmE2GSwtnmL\nfDm4ZdvbqRkrO+Tn9HYWITLCEyWILPiqwkZkCyfoZjyfB4bqAcTZiO5O6GiL\nGWGAzkM1iI7rsGtWGR02tDl8giYt5FkK6APZzhwwxWGqsXRQ70L1rki2ECYE\nh/Xw9JxvQMbJ7E9kjmByDqQCob0h9fjRHlVALewfAi4ZJaRFbZS4DE6CfzjD\nyd5h\r\n=Vm3x\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.13.0-dev.20210222.5f35a0e.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","prepack":"npm run clean && npm run build","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.10","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"14.15.4","dependencies":{"chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"~4.8.0","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","node-fetch":"~2.6.0","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","@azure/ms-rest-azure-js":"2.0.1","@azure/cognitiveservices-luis-authoring":"4.0.0-preview.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.13.0-dev.20210222.5f35a0e_1613981858273_0.706340028585863","host":"s3://npm-registry-packages"}},"4.13.0-dev.20210225.ab2ff4c":{"name":"@microsoft/bf-lu","version":"4.13.0-dev.20210225.ab2ff4c","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.13.0-dev.20210225.ab2ff4c","maintainers":[{"name":"cwhitten","email":"christopherwhitten@gmail.com"},{"name":"cmullins","email":"cmullins@gmail.com"},{"name":"sgellock","email":"sgellock@microsoft.com"},{"name":"joshgummersall","email":"npm@josh.standardlabs.dev"},{"name":"botframework","email":"botframework@microsoft.com"},{"name":"microsoft","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"8a9c80ab9edefd45289b594e8a481322f7c066ed","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.13.0-dev.20210225.ab2ff4c.tgz","fileCount":180,"integrity":"sha512-tQTGQ8gebuYDp76pQ51lD8j8cY6QQJ+EVtgRVRdaXAs3ND+vJecbxoiZ4BEqtIC201KHR5Q/73gyMKx42YN54w==","signatures":[{"sig":"MEYCIQDhA+Dmbb4RLrSRTLtZTVsqiG8dVqEVO1zPKvnsl4hdCQIhAP9xtevdLQJvGhTEkxTeaiskRk3eMFkZP/52Y7C9cIVu","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1557837,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgN10bCRA9TVsSAnZWagAAN0MP/3MStUhUwyueZ610zKAd\nS7Qj9RDV6E015iX+c9GjkCJsjnkFx1xAAc6xiVDPNHX4y37goq9Mz5kTzZ00\nzWl632IGMTRalModed7jO1HHDFYi038BQXCnOLoTB2ZHDXcUmSGxcv7HtOSj\nhYr3xQWOq34mDZhZxSEFB9dyQ/IakaETKYX/zJTn3NC7Tlergs5vaI2PoH0e\n021iMhEDyZ1XuToS7lo81E0rQLOl5vVkOryTrl4layaWHmpgWBT2irsRGxRQ\nQ+FYBpq+BykLSLEK56r0jBxj1hvS8DC+H+cdD7di4MSV6Hglf/Int1+w+y2P\nnjGRDtc8Q54zKn1I5TVkHZJ0U2KLqcQHyApNyEew9j4tEi1BMq2nT9O/GoJ5\n94NZo+9D+XM1W6GZVVpQHVdQyP1x80pwYBv73XINaIRqERROMoZDpTyYx4R3\nuZhccmHyLgiJSbpuWPLk7NSe5gGfNKscW4OnlCNspbF6CjpMQo5p6s5ezCpd\nLx519LPuujsNMmwrUx42+Rsjs/gfuQZYOouTBFdWOT/LSXWhhRnXN0dOL5nS\nhk2J7TV6lqdgC3Aqd1aY/FXgGDSGfrkVrb6VOVJYsxIrv8vTXh9snPTrvwik\nujWCDWsLfGRqsQCD1MKrLwmpCdJxPyK2W28/oe0xQ4/zhbHjNDvrSdsncCkK\no0FR\r\n=z6p7\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.13.0-dev.20210225.ab2ff4c.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","prepack":"npm run clean && npm run build","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.10","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"14.15.4","dependencies":{"chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"~4.8.0","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","node-fetch":"~2.6.0","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","@azure/ms-rest-azure-js":"2.0.1","@azure/cognitiveservices-luis-authoring":"4.0.0-preview.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.13.0-dev.20210225.ab2ff4c_1614241050679_0.3214525322159858","host":"s3://npm-registry-packages"}},"4.13.0-dev.20210302.8d7ee7f":{"name":"@microsoft/bf-lu","version":"4.13.0-dev.20210302.8d7ee7f","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.13.0-dev.20210302.8d7ee7f","maintainers":[{"name":"cwhitten","email":"christopherwhitten@gmail.com"},{"name":"cmullins","email":"cmullins@gmail.com"},{"name":"sgellock","email":"sgellock@microsoft.com"},{"name":"joshgummersall","email":"npm@josh.standardlabs.dev"},{"name":"botframework","email":"botframework@microsoft.com"},{"name":"microsoft","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"c99ab3ec64506c4ebd40b8a1986a37b5e6fb9e79","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.13.0-dev.20210302.8d7ee7f.tgz","fileCount":180,"integrity":"sha512-/aPHAdXcb+mT0q2oauYSkZpljYBqJVaW8NgnCOl+lSk0oG3ndmXeinIt+DB9kk6M4AaY6Ixsd9YIJG3Qla2otg==","signatures":[{"sig":"MEYCIQDXFgnKFvU3HCjDDzMN0B9J7TlUqJ+7qxPabbZ82S2CvgIhANTmAMCMbIZIbwj6NHSDwtDwJdi2H6LVLu5jGHWhMTqL","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1559329,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgPfRkCRA9TVsSAnZWagAABuEP/RijrnfASyrhF/xrmHGY\nydDLx9wTtNFbnODGeOiBMI5vgYl22D5GhWdCAGKkbKxXBR5J2h/i9vGSRmHC\nr3nFNoeNNYGOTjRwZzFfasLlX4fqGpNUOOIb5ZaKUVgMDQwmJlhFv/IxrAzV\nvmelXu9OMTjV+kQHUYvISTVqMkLVAfB336yy4eV9h/ntmFOMmZTYLf4+OEtU\nJCbLUaoafdBRQuEjCwcDCvQJvQkvS98WTfBQB3nuefDy0ibr8WBULxQ3JRZ8\nj5L/JbVb+ksECw8zfn9mK3LBZfx7ouRnVD59NwklbUNyLsYT7DUcDj+NmqE8\nvtb05UxzpTvJwRLmptmO5KYR5N68mUNe81I+xC3sMbo4oaIzn6JcXrSdbFph\nYjl2xg/HFDi35nrrn939+YqN0yMmnEsORfob/TA8MHAE85PH0mVvV6cR8yb3\ngzEEYisDcK+zfVIGYRbI6BjcAaoz5NFvCe3wMzDFBWo+aWCJw9u0Z6L3jTBz\nOyqFnwgRuZv0tBSHq9soNpH6JjNg0k0mW6wACQLvs+ulA133YjKVwiyblUUL\nA8PgXPQbSlpYUr3WHElzbSo9v8pYCsnP/2b62Jt2AYUMsXt+z+Wn0/2oCaEs\niKpIiRcmXWT3TjU8vGeVsv52aIoBZAaRnXWSz9SfrfoaGSylEX8DQbiH2eII\nFfqI\r\n=Anpr\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.13.0-dev.20210302.8d7ee7f.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","prepack":"npm run clean && npm run build","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.11","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"14.15.5","dependencies":{"chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"~4.8.0","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","node-fetch":"~2.6.0","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","@azure/ms-rest-azure-js":"2.0.1","@azure/cognitiveservices-luis-authoring":"4.0.0-preview.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.13.0-dev.20210302.8d7ee7f_1614672996454_0.39259357917647253","host":"s3://npm-registry-packages"}},"4.13.0-dev.20210303.7004e0b":{"name":"@microsoft/bf-lu","version":"4.13.0-dev.20210303.7004e0b","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.13.0-dev.20210303.7004e0b","maintainers":[{"name":"cwhitten","email":"christopherwhitten@gmail.com"},{"name":"cmullins","email":"cmullins@gmail.com"},{"name":"sgellock","email":"sgellock@microsoft.com"},{"name":"joshgummersall","email":"npm@josh.standardlabs.dev"},{"name":"botframework","email":"botframework@microsoft.com"},{"name":"microsoft","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"a49ccf1a7c76327dfd5dcfcbe0948dfe4cbb134a","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.13.0-dev.20210303.7004e0b.tgz","fileCount":180,"integrity":"sha512-ca7B1RBIXxS/sY53La4/Ssbja3kP0MT507v6sIdPz18hBoLls7VqBZdCcZ/8vXx+mZ/Ispk6GOLjqXxMl2yQ2Q==","signatures":[{"sig":"MEUCIQCBp+gmGmwoc+SUb1rr8J3OYSkxojylCY+i0ZZ7hhSWHwIgJVqHOIY4DHQFm1S2Xd7N7cxpc68h90l/eHSBS+ILVJg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1559329,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgP0XWCRA9TVsSAnZWagAAmNQQAJIYO1l3h5bxJ9AmqOoC\nhC+Zk6YpTxb0jPO90gI/iLYyCsUe4K6n0dElIiUjiXJ3VgcV4EQf09dRt8TC\nB2BFBtilPEESO+abyt7t8BoLPQ1qP60Ng8Dylen1ZvqLFUl8NS4R7aeNJxiW\n21v6iMGvz3DA7MfF8PD7MCAoj4JSLDekZZ4lzNzJ1FNzq1sDX/3nG0NriLde\nm7G5C4KR0gk2Gsip7OwS4C36HAafgYhu3D3/A+4SdmLUNqRtD/CKK5Wi5EiC\nV8532X78VpevMMAN+69Ct4QkLd+ftenHvMttuI+ZBg91z6GcZRdqVM7W2P76\nypYVBOYO1dKOkPZ1b/ea6Bb1Lr4SKvPRW5oqTrQHNy6DK3/pzVaXPNPzkAOA\nOwsaMgeCO7lVhsDvBXLgfLCD4qqtZYnC0uOgtjciKXXsjiXb1+kuK748qEOm\njQKCZ97SrSUYvy8zRA7ACP7lkERLEIEdYtL4r0draueEP9oapQvpp85AY9FU\n7hIkHCeEQZOkePHMyVJ4pQPEtI4ZK+SDUmxo0OGHC+PFIM+e4W68YDpKmm7g\nexkBc4nEgblqkXZWIEuYF6ai6r/qAqCoWIhlBx7i41mn339QyE4ew1iVoV8m\n9NCTGoa/5HBv+9Vx02bMWAL6OI411YtBFPpwM1flIDElsxHtpuq7ephgEPnB\nOq6b\r\n=+gt5\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.13.0-dev.20210303.7004e0b.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","prepack":"npm run clean && npm run build","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.11","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"14.15.5","dependencies":{"chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"~4.8.0","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","node-fetch":"~2.6.0","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","@azure/ms-rest-azure-js":"2.0.1","@azure/cognitiveservices-luis-authoring":"4.0.0-preview.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.13.0-dev.20210303.7004e0b_1614759381512_0.6366334847079698","host":"s3://npm-registry-packages"}},"4.12.0":{"name":"@microsoft/bf-lu","version":"4.12.0","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.12.0","maintainers":[{"name":"cwhitten","email":"christopherwhitten@gmail.com"},{"name":"cmullins","email":"cmullins@gmail.com"},{"name":"sgellock","email":"sgellock@microsoft.com"},{"name":"joshgummersall","email":"npm@josh.standardlabs.dev"},{"name":"botframework","email":"botframework@microsoft.com"},{"name":"microsoft","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"13b7a462ea55de9cc0c2b039a62940ec7f61638c","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.12.0.tgz","fileCount":180,"integrity":"sha512-ya/BaM5MDcQq6LZAf9RUiRwUgMWXSGthwO4sRBH12W9rEcQi3SG18LyhSgtMPCr5jVmXB/x7bjP6fBxogCfFhg==","signatures":[{"sig":"MEYCIQDUyWdRBGx9qzCnQ5VP/uPmF1aZjyB9sLb/pcHzBaeLKQIhAPYX4g3Q/0OStpjmxswe6PkgXgguD3m1I8E0DzAkJMk3","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1555757,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgQXiMCRA9TVsSAnZWagAAlHsP/3+lg0MPO+XLELO6YK2f\nvdO3GWUWFProO2/IFAZ3hkqF+TDHBLYfJ9MvDr8eNXecym9gb+T6Nc+2jaeF\nNqQNXLspDFFig3KZLh14zcSB/Ls+nZJC1nwE7ipOXotBYAY656Hr2Tb0sKop\nxbKY1eQ7QpDCenh5Fjnug6qHV+orePanSZ0e/qMl9l2JGtwJIf4GfPFaEDHn\nmAVHD/iogV3LTwiHMaiEhiu6Pr/P/9tMXCUSEagDUfOFAyQN3zMk37OkX9C4\nxauCKYuX4Yowh6XpCNtGoD/cp/FbQ8kcoCvW86yaeat8BpV7HYJ7n2Ce4eqf\nZgCEPjRxqrAQ/UNkVkSGtpQa+nB1tSfxwMiM51RdGxlNpj3zYIbogycf//eg\nPt18YfiGifqpZwfKTPpd7+7Nfgf94A60S/VFmixgCEVsYstNPKPjamXMaxzy\nUuSIZUijX+pIeSHdn3fJ042DTb73MMvokR833n0P0L5AIzdu7clC56k+9RrH\nQB/OxuB4Zw3w+XfKGJUod+6z4948YycCLSBE1c40dKET2KC0gTTLWfiUbz/R\nEHUfR3jthUGx5qvoeUCZb8UKPBVBROYCseRWSUFEOZ0ZT4IDfwK8shXpNi25\nmHwDTUYtqoYfOIJX4Zi65EvZ/l8jITwgTQrS1Qbbw86JEBwhXuE0S2S6AjXB\nupk0\r\n=LIvJ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-rc/drop/microsoft-bf-lu-4.12.0.tgz","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","prepack":"npm run clean && npm run build","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.11","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"14.15.5","dependencies":{"chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"~4.8.0","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","node-fetch":"~2.6.0","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","@azure/ms-rest-azure-js":"2.0.1","@azure/cognitiveservices-luis-authoring":"4.0.0-preview.1"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.12.0_1614903436137_0.677429206952503","host":"s3://npm-registry-packages"}},"4.13.0-dev.20210309.33c7b6e":{"name":"@microsoft/bf-lu","version":"4.13.0-dev.20210309.33c7b6e","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.13.0-dev.20210309.33c7b6e","maintainers":[{"name":"cwhitten","email":"christopherwhitten@gmail.com"},{"name":"cmullins","email":"cmullins@gmail.com"},{"name":"sgellock","email":"sgellock@microsoft.com"},{"name":"joshgummersall","email":"npm@josh.standardlabs.dev"},{"name":"botframework","email":"botframework@microsoft.com"},{"name":"microsoft","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"4b0c45dea522f7a71c57b40161df57fc35a1933f","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.13.0-dev.20210309.33c7b6e.tgz","fileCount":180,"integrity":"sha512-ik/1KsIR/wx1SgwALqYqoYitTDqJgOAfUQROTXZC3gakEVFS7OqKh65IWqCshCZSCaXgovUJvBH5eMnseRVGLA==","signatures":[{"sig":"MEYCIQC04/Dvv4dOoYAFqCh6gsTBnANOE7XsWaHOJLtQj3vxVQIhAO4ozmPUN3MH732/WYACCd+JD/2kkCJTerYzrpywgLhU","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1563890,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgRy8FCRA9TVsSAnZWagAA3QQP/1ecE69fXAYGcYqTddiT\nmIihpC8ajmSBCb663/g1hQE0nY98ror4ixSDhF3rO6aLCeZS99JVGaLFn2vL\nONbNZwo5wVh+PwHDJ7gmYkVf/C9ywJeppNUUN5/ZiBo3RSZmScChsOINjTE1\nOx49dTbniS6K1DBpmVCoou7N3D6dT0tqbqsPBjap4MjPcuCfBeKVSmCVmtK6\nwOoMXlwglIuS6IEriEy2hHRS0gr3xTc5Vy7G800CP5AX0TplnFbg3FDMAjCO\n3Z1dDfBngi6KjNvyOH+cfa2dulfysdcsfd5mm0mzXHtceMKwvY50qaFyfjmI\nooxr4YwfWfCoNkhpgRFj/lEkfKYv7Ki9xnHXkI/j618XTh3Qms9NBsMo0SS5\ndhc7hSb5DfuUPS4lIpiSnaE+88w7ZasCOxyCphIUeB2uINb2aZbqgdGDRCyY\nFvP14Yjs0L9xQqoozq5TwIID3JJ4y8jPDQEXbse+lPLJmLw+qJt2elq+qUcd\ntJE95pTQuVyx4HkoFolIYDT/xmNZHMoSBrT50YHudeZRaBEqp5ltZxLarNr6\nWzg5rcju9xgKlQUw96173XtQiwGbkV4T+sbJtOs1B2nDxLiBraZX4ZF+USQq\nol2fUZV7D7ROCpe+bj8caMHM5CPVCt0THjNJs/gC2bhHrTYg/hrnXukarlsa\nW20d\r\n=WebM\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.13.0-dev.20210309.33c7b6e.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","prepack":"npm run clean && npm run build","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.11","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"14.15.5","dependencies":{"chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"~4.8.0","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","node-fetch":"~2.6.0","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","@azure/ms-rest-azure-js":"2.0.1","@azure/cognitiveservices-luis-authoring":"4.0.0-preview.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.13.0-dev.20210309.33c7b6e_1615277828596_0.9195478162191839","host":"s3://npm-registry-packages"}},"4.13.0-dev.20210311.ea3dc6f":{"name":"@microsoft/bf-lu","version":"4.13.0-dev.20210311.ea3dc6f","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.13.0-dev.20210311.ea3dc6f","maintainers":[{"name":"cwhitten","email":"christopherwhitten@gmail.com"},{"name":"cmullins","email":"cmullins@gmail.com"},{"name":"sgellock","email":"sgellock@microsoft.com"},{"name":"joshgummersall","email":"npm@josh.standardlabs.dev"},{"name":"botframework","email":"botframework@microsoft.com"},{"name":"microsoft","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"1b2dd4e61e1a83ae5c13dfcc116825e91e8ddffe","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.13.0-dev.20210311.ea3dc6f.tgz","fileCount":180,"integrity":"sha512-SZAYlWeTAd3FS9KxfTQ49x8BX1hLFGaNO0XHKwpiSyp7Opu8iRpF5MqUQ1cIeT+gNNG+WtfitK3Pk8hNzzXQLw==","signatures":[{"sig":"MEQCIAk4Ngb2d4TY4Kt2fa1PWwfxc4/oEA8mJ3FW1kTyLcqBAiAv2Bsxm6CMntvbNP4cktDqVb8J6Z/PqGtRWFiGEnN89w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1563890,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgSdHyCRA9TVsSAnZWagAAhuEP/A3yTJANHDwf5m7fHqBe\nfiZYU++vzoA3SJ7puLXMPgaKF/aXGnF5J/HnrFcxhIfUuEunufm65nbu8wFE\nbRVpdPO0GjpmkKaeZfVR5Di7X9l/I6U3Mcc5YiCQeMSbKobwU38akXSQ6Gdz\nEGWcVG+/BAlFkB2eWnh+rsk/a2PIgA5qiLvn3Ck2lNw1CEtcSc+xQnqD6aeH\ndz7S0+K0b0IVoih7A/aFC9S+pqfXLSYiOvAsCR9d/mONDlwTyuz9msUPn1hH\n8jpunwePSMIVjrVPPrmZvMvuTb/1VNihdWafifoejD4WVhg8Dj0pXPISRDRj\npgnpbni4IgdU2LxlZKI0Td81Htjsx7cvrsVREJUSKVWk5QAIQp4xRDRTCeoz\niOOzu9hvw0hOEvbjdsSVrwxRPBtWyV6NeMzdvqXlQuG2EUS/AjcnhZBJxDlp\nLab/3BfcMSt50Mm/FeTOQdA/swJ4BSn1NZWc9d7pRxiqfgikHFPDdFhcuETj\nvHTiVLWlbQ3aotXDcFD+uy/FMOz58dUJFAaacLQHGebgN4O+DNU9hIv1sfwg\nhCV68WgyyFeO3P2sr9SXz/agJoBi5zd2CjilPkPGoqigJxTK7mw6J1Zd/9HJ\nAotafDfhBwS/JF9VZ+DHludO55AT94jO9YWSzL1dF9mOwPvD9rL1SBbAkqhA\nshqs\r\n=xt+K\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.13.0-dev.20210311.ea3dc6f.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","prepack":"npm run clean && npm run build","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.11","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"14.15.5","dependencies":{"chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"~4.8.0","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","node-fetch":"~2.6.0","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","@azure/ms-rest-azure-js":"2.0.1","@azure/cognitiveservices-luis-authoring":"4.0.0-preview.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.13.0-dev.20210311.ea3dc6f_1615450609938_0.10382838996578614","host":"s3://npm-registry-packages"}},"4.13.0-dev.20210317.7efaf27":{"name":"@microsoft/bf-lu","version":"4.13.0-dev.20210317.7efaf27","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.13.0-dev.20210317.7efaf27","maintainers":[{"name":"cwhitten","email":"christopherwhitten@gmail.com"},{"name":"cmullins","email":"cmullins@gmail.com"},{"name":"sgellock","email":"sgellock@microsoft.com"},{"name":"joshgummersall","email":"npm@josh.standardlabs.dev"},{"name":"botframework","email":"botframework@microsoft.com"},{"name":"microsoft","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"ac5951ceb01bd07ab3a387c11e9a674f81f65e17","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.13.0-dev.20210317.7efaf27.tgz","fileCount":180,"integrity":"sha512-KQOxJEmIe1vdTiu/X8mjAi11Q+Sxn0LxJcGyewHPkMKoRIClU3W93ZFSEHCSDrXJT2TLbpp4qkyp6o9BtvZNMw==","signatures":[{"sig":"MEUCIQCUFCctLYS1RucQjcLhxub2vN7GvhsXCd7djIFdFfdA/AIgQ2ZYxcNxHNFELncikknABVAdTpnAhTZz+nguWXSR7SE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1566408,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgUa3gCRA9TVsSAnZWagAASpoP/j9KPmI0276ZnEHMoqFB\nfcXk8V9cMAPCqCmSXc9AxQx/S8148SYsA+aFDaL/wwh2LxVJVrYBoNXWHysS\ndadhpL+QY9+YPUf+kADD+595Iu8iep2zP8jDYKbLYRWOQDwrkpZ7Sm1CXX3/\n4VvOtsds70xur6ekOZIrKD0rMuOIlhQIMnFNN0kZKxHe4KN1oMKhUKs7i4we\n3hoygGKfDZ64slXhbswSa8MBLmQUhxNcxmLPMYjtWyAKeNsyVoPFp+xHFjGh\nk9WOqZ5tyLvn3a0MCHsHVx54+VDwc46cpEiSzAUl4anOM0WkJmdXBHg0bjYZ\n2bkst8A03nNaZQcHWn0jcI10R0Czos63c4Z2nantuceoKZGJrRr8C4wvVvnM\ntJIJrd1TIkRIkt9mzbJVGLGi1eiBGtEw36MsrOs9i3q8Cg5xojGBQR9PAjBe\nIEYU9HNmH3ghUTRYoKx8f4olIE4pql+OnpKVJRiVFwGAW/Kr68ZynIyh40wd\neWucJ7uFEULU7hY6O8LLEAJDFmLP9GKT3GezFlk5mZorHmXCkSaDbR9ZCdu4\nc6KHGzvpIhiaxU0IwYELhJId5xQFpDFNwSExCnN/xvbdQ/iAeWlUOCnDXDC3\nO7+fw16/BG4iih3sP95gn5Y5AvuuctIPF/miC3t/ipWJ1+JDAWc3rF8uM8hs\nA4rw\r\n=GGQZ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.13.0-dev.20210317.7efaf27.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","prepack":"npm run clean && npm run build","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.11","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"14.15.5","dependencies":{"chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"~4.8.0","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","node-fetch":"~2.6.0","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","@azure/ms-rest-azure-js":"2.0.1","@azure/cognitiveservices-luis-authoring":"4.0.0-preview.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.13.0-dev.20210317.7efaf27_1615965663991_0.8428602909614824","host":"s3://npm-registry-packages"}},"4.13.0-dev.20210318.2aac9b5":{"name":"@microsoft/bf-lu","version":"4.13.0-dev.20210318.2aac9b5","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.13.0-dev.20210318.2aac9b5","maintainers":[{"name":"cwhitten","email":"christopherwhitten@gmail.com"},{"name":"cmullins","email":"cmullins@gmail.com"},{"name":"sgellock","email":"sgellock@microsoft.com"},{"name":"joshgummersall","email":"npm@josh.standardlabs.dev"},{"name":"botframework","email":"botframework@microsoft.com"},{"name":"microsoft","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"6d9f5b7216fe2613a71ceb0a2639677e5b1979ac","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.13.0-dev.20210318.2aac9b5.tgz","fileCount":180,"integrity":"sha512-TJRCbr0SSrt+2DCRsTCUkipGlcYAzZjrPjVwaUqHxEFIv2+TX/H313Z/T2Ms+CgdVKLzQq1MYqGUlzlhn1Zlfw==","signatures":[{"sig":"MEYCIQCbrQEdvhJHApozfcNuH4q+MlfCLMaU77xqjqE7lcIjxAIhAPTLWE8QOvLIqUhTb7esTMOJWa5e49k0F8tmhHGWnFs+","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1565716,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgUv5TCRA9TVsSAnZWagAAGggP/27mnPYQc6jRpAH+ECic\ndX70KMjNQCBZ2Yg/1C3j2Wgm+SmOFhX9hYqY5a4cLOrYbQhbdss0egmsBDsc\nLEd6uyMVpeM9mSovui9d1F61EMdLzP02MxcnWGb/Ts49fzwgn1MWW6gt7rfY\n8zwOcQ239ogpEEVHUKx/YOHbUgrmSONHRYMNcb7FR3HBzdPhXT0XILAzPfn1\n7bJZxBi7KMKJOIjFxkktrBRF7WECorcWk4CNvOKdnu3DN5EIf4W3LkCi3t32\nDrOvZSZQs9Qn81A/TmufmMUBg5MmTY/VK3V5S2DrY9rs6fWwpvt42E3Bh/nn\nLlKGLaT+ncVyUoQqa5fim0koo8zkQ/qb4dkqdNCXmqUcN8KOw9WCk4thOrtW\nXFUckHVWLr0lyBCvnWXhhCs7LFTCAUtuSFNt+zCMEjEMvsbi/N7Y9flJUIR4\nT+HG8rPq4NfveDxSGTy99Zw2Wja0cG+z6RLZmC03i2B4DZzMbenevF6npyV8\nkANwQKZ1M9ZtqZo0uMLnQ4cS5T0r8ktAiTp3vDYBpC7KOxMyw6Jk7KLv7FZ9\n2u2xlkTjHX6OYv1CTiKYs+QhgpQ0ITHT9sU4JdAM2ewjDNXCI8/cbBEY5W4n\neMcijZGWNi4a9WEv4uFbnYXRLmIFlAgg4Enng/hCZyLwVeRrpTZ07N1y8p7g\nQIxb\r\n=GNWH\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.13.0-dev.20210318.2aac9b5.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","prepack":"npm run clean && npm run build","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.11","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"14.16.0","dependencies":{"chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"~4.8.0","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","node-fetch":"~2.6.0","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","@azure/ms-rest-azure-js":"2.0.1","@azure/cognitiveservices-luis-authoring":"4.0.0-preview.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.13.0-dev.20210318.2aac9b5_1616051795209_0.4684921498774537","host":"s3://npm-registry-packages"}},"4.13.0-dev.20210322.de71c51":{"name":"@microsoft/bf-lu","version":"4.13.0-dev.20210322.de71c51","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.13.0-dev.20210322.de71c51","maintainers":[{"name":"cwhitten","email":"christopherwhitten@gmail.com"},{"name":"cmullins","email":"cmullins@gmail.com"},{"name":"sgellock","email":"sgellock@microsoft.com"},{"name":"joshgummersall","email":"npm@josh.standardlabs.dev"},{"name":"botframework","email":"botframework@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"874234ff90f88d7235903a11268bcb6e1ce1c765","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.13.0-dev.20210322.de71c51.tgz","fileCount":180,"integrity":"sha512-uFJeWeB5qnu43HxtHrCEtxbm9jzPX+vgljSQ6y7Vtouq7VLijNhVMBvyJOz79eOLlzuWEPZbQiLYmPqvx+RRTA==","signatures":[{"sig":"MEYCIQDDftp+eGO5NExfLv4+qLeHmkAE28cvRf0s+ExwRESNxQIhAKnn9fL4sjNrh1uogOHJ3RuPs/mSXBTlszJe8Mz8WBfe","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1566220,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgWESUCRA9TVsSAnZWagAAbJMP+QAfuyOfBT90AEWVnewK\n8aUkNEA46Jh++drmiYN25bRVMe1dwUng0RFFSix5GJGruWvE5vfx70q1KgZF\nOeene7jl2UaAtzXbTHFVk0hFYN1bHXBuT0ZUPzvoROhm2bsv/UHU7OkaSaKQ\nGfPWxeV3LahUNLDI3LMAohCRM6bOdQySvl7qnejPIxtmuLLY/j5tFNIjYkAc\n59SyaenmTAVWkcr+xFm9R86T0wlThr3unrRqONHYSvwEy3dPQscfAZ2po+iX\nYT83AfrxdrsDGxcAHaLc6pf/Ct98nHanPPh+Uz2Gp67MoyL1o0TZunv/EbP/\nOmeIUrDRnIb9HIv9/GN8DKvYr/xrw/05eTtHzDpRc6PICFQiEL6oEexmCoVB\nAATrE2g8ipY3v1S725cFeDgi8Yxq9g5vInLrF9DUiTmdGNOaI0gSO0C+AXZb\nZFXzz8g2VOQcj8kVeVJboHyawlFikIMP0lYf0GlYjDiSZ0W2vYYxFu+SAEYf\ntNDrAeogq3RyajlNFkkES43GcmZkWzgJ177zHd86mLIF/sVQbzZyxA7SCHTd\nzKTb/jiyGenBD4eoQoq2xkFRrnu/odTCY4EjRZa+O2mS1drQQK/VMJLSijus\nnqOfIqotxv5v/sPO+FqTnVq7UAl42ypqyONJSU+UoQVhsvoV+NF0zQtdtJKE\nGWS8\r\n=8Yr6\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.13.0-dev.20210322.de71c51.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","prepack":"npm run clean && npm run build","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.11","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"14.16.0","dependencies":{"chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"~4.8.0","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","node-fetch":"~2.6.0","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","@azure/ms-rest-azure-js":"2.0.1","@azure/cognitiveservices-luis-authoring":"4.0.0-preview.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.13.0-dev.20210322.de71c51_1616397460305_0.5571238173222446","host":"s3://npm-registry-packages"}},"4.13.0-dev.20210323.8f22a9d":{"name":"@microsoft/bf-lu","version":"4.13.0-dev.20210323.8f22a9d","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.13.0-dev.20210323.8f22a9d","maintainers":[{"name":"cwhitten","email":"christopherwhitten@gmail.com"},{"name":"cmullins","email":"cmullins@gmail.com"},{"name":"sgellock","email":"sgellock@microsoft.com"},{"name":"joshgummersall","email":"npm@josh.standardlabs.dev"},{"name":"botframework","email":"botframework@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"b5b937d16566adcd4726a42e440d75723fa72c61","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.13.0-dev.20210323.8f22a9d.tgz","fileCount":180,"integrity":"sha512-j/YZSp7Ziclg4OLqjr+wgLjFHDbK/L2SBj8gOfII6QG9IzZwKHi0knA4v0RR+EaeFp7O9gN1ydhM7lZCHLLq7A==","signatures":[{"sig":"MEUCIHFDAK116vn5qr8E5yDxyp7UfsxnIMJGwF+wDp/orV8EAiEAqNqwwITC+7sfI87VnNZz6L81030+EDTAgxCzizDEjuk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1566738,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgWZYPCRA9TVsSAnZWagAAO+0QAJ3+yCidvLFaRcLtghc/\nMskewv9cP+8/nYWHMmK3cYs5MffVzzAjetjRWsXd8UXLhrKpzigXeibmKLBF\nV/E8uhrygiI6gftlcXqZLgGVEEy1TGBZYIg1lB56FT7OWLeBD8usRTCMqRMr\n8tncmbTqgd7W3J8blGrQlQjBSu/kv/6f/PS8oB7gcvQo0dj0FToYvxUZ9maO\nb0IVzSYHdQx3tueAuc17gGhlpoKNIiWzqj0C5tncAODyteOn4NwLEN0WRh5n\nR6MIAlp7EWvlMbqfaFRUKah/KPhkHfiYufqSFzIRTMQB8xli1mzpSadqISHY\niOYcgRaTnsVzOFVZUMMfYglDf7uEiaH100ca295+/E7qhcBSjZ9XM1Y4a5B5\n588u818l6tRfJvwXlQtQJTzCM1MmG5YR2pU0AItKvvETF7G0mR0umjx3R/XX\nuK60r6k8bTuovPkfS/9E7u85AuPONFrlpwMvsIpt8sRBqFnc8yUoJfHnzTXO\nrHrj18xzEai2Zk40dzPmAjz/yVfONQnTLVf9WpS8A//Dg1l049Akhq8EvOuF\nN8ytukHgEnnapGy83Kw49VQWrhxmYljFc3/bF+JYYEUqCtwqsk88Cgv4sjBE\ndl9kZMHBMN0gAPsNbQBS9zRETAq4Fna761GOkS7G3z5PwJA3EM4ISXrP0cty\n4lcs\r\n=zlg7\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.13.0-dev.20210323.8f22a9d.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","prepack":"npm run clean && npm run build","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.11","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"14.16.0","dependencies":{"chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"~4.8.0","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","node-fetch":"~2.6.0","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","@azure/ms-rest-azure-js":"2.0.1","@azure/cognitiveservices-luis-authoring":"4.0.0-preview.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.13.0-dev.20210323.8f22a9d_1616483854971_0.18747036563334962","host":"s3://npm-registry-packages"}},"4.13.0-dev.20210324.2241623":{"name":"@microsoft/bf-lu","version":"4.13.0-dev.20210324.2241623","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.13.0-dev.20210324.2241623","maintainers":[{"name":"cwhitten","email":"christopherwhitten@gmail.com"},{"name":"cmullins","email":"cmullins@gmail.com"},{"name":"sgellock","email":"sgellock@microsoft.com"},{"name":"joshgummersall","email":"npm@josh.standardlabs.dev"},{"name":"botframework","email":"botframework@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"e95425283507f1752f054cc0cfe4415c97f47f1b","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.13.0-dev.20210324.2241623.tgz","fileCount":180,"integrity":"sha512-yNj64usSn1Cct/3zcHIyJvFyJA+AtJ8td1V0ZQikEqRpupoqVRTWU9UCq8rbWmv7T/hIKcBD4xsnFU+xvDJdIQ==","signatures":[{"sig":"MEQCIB4SDpMngPEWwhzMv94EDdx+AcjjIx3tiXN4JSwYjaodAiBNqrAP4mjGuyvb2fGh5+2n6B1GY6aBCO234TAEyL5m4g==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1566738,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgWueECRA9TVsSAnZWagAAXmcP+wUlEbZo40jC7kNgROOy\nYa4leIMlpg1jx146wB2NOvTJDtAShYQIzyr1WT31npN43kdl3YoTqSxFO5s8\ndrmG8LD+y5pxzrO793K/gSzYpFN+MX38VZjL11xh0gyRoEOENzCEqaLY0pEw\n6AAZb07GEed59Ym+f2a9WbRDzqDkFlyEovmTxw6Exg1C1E4aG0BS15fhO7OY\nGJqevfVXEHt0CuYXFq1zfRFC4ovGjqVS4Tr+8wdyLHRTduNq4lElbQuqky4E\nkPznDtX0SQ9Dey4Dkrbk4YhYH26rEAnmdG/Q2vOrziOQ2G491ImhEwpIDayE\nFzxyDqghW/4mdcOpecR+aM9O+doskGk4qBd+YFa/QBI8Tru86BBHlSzkyzNS\nSHc6j6pikqLQ5w6wnLC1D/Zy1yeBSDMkWs1i8qKWvuQ5JLi3EkbDYgUjI5z5\nl3SM5itQB7hAMfTGU28jw7D9ODL2wccok+1TqY2zH6uX4Ec7Q+/t9yUcRPSh\nGJvRefj1x6U1P9luK7WvqkdH1NCkAXlerSEhtn7Uj6PnKhRH61JDUoyIHQ+3\nPNrr77IF8pfiIIu124qwrCQHKZgHLo/qYWlSoYrQQAGGiIfcBMrFiLy4Pm/h\nebax1321z9fj56YwNEFBrg5HvkK5V85UAHQqJaWEFKmuzTQO2lcI/aqjsDev\nCE+V\r\n=QqaJ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.13.0-dev.20210324.2241623.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","prepack":"npm run clean && npm run build","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.11","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"14.16.0","dependencies":{"chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"~4.8.0","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","node-fetch":"~2.6.0","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","@azure/ms-rest-azure-js":"2.0.1","@azure/cognitiveservices-luis-authoring":"4.0.0-preview.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.13.0-dev.20210324.2241623_1616570241266_0.7770386310624744","host":"s3://npm-registry-packages"}},"4.13.0-dev.20210329.edada32":{"name":"@microsoft/bf-lu","version":"4.13.0-dev.20210329.edada32","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.13.0-dev.20210329.edada32","maintainers":[{"name":"cwhitten","email":"christopherwhitten@gmail.com"},{"name":"cmullins","email":"cmullins@gmail.com"},{"name":"sgellock","email":"sgellock@microsoft.com"},{"name":"joshgummersall","email":"npm@josh.standardlabs.dev"},{"name":"botframework","email":"botframework@microsoft.com"},{"name":"awentzel","email":"awentzel@microsoft.com"},{"name":"eisenbergeffect","email":"rob@bluespire.com"},{"name":"janechu","email":"jachu@microsoft.com"},{"name":"nirice","email":"nirice@microsoft.com"},{"name":"ccf-bot","email":"CCF-Sec@microsoft.com"},{"name":"peterinnesmsft","email":"peinnes@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"68bfd26243fcd829cad5b1d1be9b6d69ae997b9b","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.13.0-dev.20210329.edada32.tgz","fileCount":180,"integrity":"sha512-3d5qOr1h0Hf01g8j+f2kxRe9GzyOPwk/s1x7H+EJKHNHIDhL+AGT0J2tJvds2DDOYVlJOgABcB26wokHxga5Fw==","signatures":[{"sig":"MEQCIC4nBEldX2f17YPqmmklnPZcuewes09BBGgPGp7hPYfEAiAsOuRMRf1J5Aa7tg4ddtSmzxWeyRlt5GPaWEszhTTAYw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1566738,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgYX9ZCRA9TVsSAnZWagAAPmQP/RjwRlz5lbtSLVVyQm0O\nVfPCtqCcVKTT4UIrEfbxS3zIjbLUsfVwiAbv0+YnQe6pkRjfz7oKLtwPo5Og\nd3QXju/Fk4pKO04MmQXcAK9/1xImCvBSDJsTCH9qCGvjpc6Uuuk6XdPBMXfd\n/+888Dw+5ovLPS3bxxHnLkbzY1yfGArVdGGUR2og9SLfTEq1nwQAMQpesjVK\nPwopYV0PoaRFd/Rz0GXKU/Su/rTs/tx/vkVDzonoJlT1jCaVp5Rv+IU5C5LX\nkUXRujaCC6MDRNO/y6dM7mojy4pQK1yCU/TwuQwWXunOX1CnW7nVqnop5u8n\nIEbqZ/DE63+bnryBOAFygYLeOe4K2kRtDhqQAhjjQO2/TluPzbArlh6ABxcG\nJbyLArJCtKnmKdffpSbKdYMyL826VgquE5dSq4KwLSqylpkcZMIEHnVoF2Hb\nMHciE+zLGUw/dMmN/8rehwKMbVLW0gIqBPpavLJtcmzvzImDw/DwKK3AWe4R\nIDwTtzt0vb//H6+SGRXFEITlodUOBfKBitTslpD2NRO46B/Q+ROJLea44xA9\n/VHcNtGGG78C8XYkaB/0jdEfFLGzkdL571qi+9mIouO2rbwTnnZ9cHDPZfkk\nNi8Y+a8Kya3xUM2Q2/NRp4QEFL5iOZq+SYfvKy2a2cOJkaePhbBSKC2NdmFr\n22xF\r\n=/+sD\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.13.0-dev.20210329.edada32.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","prepack":"npm run clean && npm run build","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.11","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"14.16.0","dependencies":{"chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"~4.8.0","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","node-fetch":"~2.6.0","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","@azure/ms-rest-azure-js":"2.0.1","@azure/cognitiveservices-luis-authoring":"4.0.0-preview.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.13.0-dev.20210329.edada32_1617002329267_0.1214674718509412","host":"s3://npm-registry-packages"}},"4.13.0-dev.20210330.dc0594f":{"name":"@microsoft/bf-lu","version":"4.13.0-dev.20210330.dc0594f","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.13.0-dev.20210330.dc0594f","maintainers":[{"name":"cwhitten","email":"christopherwhitten@gmail.com"},{"name":"cmullins","email":"cmullins@gmail.com"},{"name":"sgellock","email":"sgellock@microsoft.com"},{"name":"joshgummersall","email":"npm@josh.standardlabs.dev"},{"name":"botframework","email":"botframework@microsoft.com"},{"name":"awentzel","email":"awentzel@microsoft.com"},{"name":"eisenbergeffect","email":"rob@bluespire.com"},{"name":"janechu","email":"jachu@microsoft.com"},{"name":"nirice","email":"nirice@microsoft.com"},{"name":"ccf-bot","email":"CCF-Sec@microsoft.com"},{"name":"peterinnesmsft","email":"peinnes@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"7982f565a2a570b0e2ea879dd63abe9966ee5b07","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.13.0-dev.20210330.dc0594f.tgz","fileCount":180,"integrity":"sha512-nyr6y9zqUBNZHq0fwQtQQOvbN4fr1azEIihovrfytrKw4TjAMTSYzWOotxeeggEwK1O2FJZR3AejoMouD9xMuQ==","signatures":[{"sig":"MEYCIQCRnyA2c3EK9ahPs7raTnnFAiRDnKjkuS+whqr88iLmXwIhAJVUtjfX2nvtqcJbJLh02/K6KQpGeIO5GDaJ+0NAdZ+H","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1566738,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgYtB4CRA9TVsSAnZWagAA52AP/Alhr1iiW465w0U82QRa\n56a4nhDApGh3rGhPAE1NejhDLNSF2L19F97oZHzrPKL7+q51AtoSZbH7sBwo\n9H4oSBtQL5ZCFFrdmI98qVAe2da1Y+67IR6CbRvi8m+Nkump2UfiqDouwxjg\neFBPEN0j9FyjOK/tBd2dMBsW+HHXGGznjg/EGoifS3Hs4/tCwKIeMXD36cBz\nXLClVefs/Q5D938F65tBet2tMLzuMP8MbbUQn+dkCRN4nD+l7CgagJcrUjzU\n5etG3EBeLpOPPnXkyCBzgMoinJDkW+rtJxJczse+8ASjQR21oJ2sSm6R5YTl\nzD1XqXMohxFwyY/b2k0vtuwRMFeNunxs+pqInoAqmUTvIccT2dhImQZaV21f\n34wHAFyP/XdM9TKLtrvCLNJabFh58pP6vxZcPROhEaFgUG64oBGeXwxPwAg6\n361Lq7AKuh8/ELKmb/yiiUElHpRN1dAAEUCa6Aj7kWfKnUSpUlgOWLQ1pOUL\nMJqZCNFBaMlWCSykqCX0B5QPJxeLDZQ81k8K/ZmmhB1xsEtyfnW8LN7lfiOM\ndDYOA2QEltyfSxj78b5/73h4WuXoJC1bszaV4evrvTEE5EqGFF8u6U69PKLw\noBtIVZ8B8Mf6eg4hqYn8/88sIkDP0ZoWqdeeHOM8Uy56IjyQSmWGpbxQp/bS\nik+M\r\n=Vzys\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.13.0-dev.20210330.dc0594f.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","prepack":"npm run clean && npm run build","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.11","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"14.16.0","dependencies":{"chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"~4.8.0","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","node-fetch":"~2.6.0","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","@azure/ms-rest-azure-js":"2.0.1","@azure/cognitiveservices-luis-authoring":"4.0.0-preview.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.13.0-dev.20210330.dc0594f_1617088631884_0.7522734644979501","host":"s3://npm-registry-packages"}},"4.13.0-dev.20210401.8dc6ffe":{"name":"@microsoft/bf-lu","version":"4.13.0-dev.20210401.8dc6ffe","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.13.0-dev.20210401.8dc6ffe","maintainers":[{"name":"cwhitten","email":"christopherwhitten@gmail.com"},{"name":"cmullins","email":"cmullins@gmail.com"},{"name":"sgellock","email":"sgellock@microsoft.com"},{"name":"joshgummersall","email":"npm@josh.standardlabs.dev"},{"name":"botframework","email":"botframework@microsoft.com"},{"name":"awentzel","email":"awentzel@microsoft.com"},{"name":"eisenbergeffect","email":"rob@bluespire.com"},{"name":"janechu","email":"jachu@microsoft.com"},{"name":"nirice","email":"nirice@microsoft.com"},{"name":"ccf-bot","email":"CCF-Sec@microsoft.com"},{"name":"peterinnesmsft","email":"peinnes@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"1ac6650dedb8c1ac31cfa06e8c8ab598e82c5d40","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.13.0-dev.20210401.8dc6ffe.tgz","fileCount":180,"integrity":"sha512-f/4y5A7pPe90iNDLWhEtxVnmzj5lLJZoGoy3OlDpj0D3CIwRt5Wi9QHihxJWNfhhbXWvhCe9xMqDVckaxlu6ew==","signatures":[{"sig":"MEUCIQCsj9Zb3ux50h3yos/bZiP9b79hSxm4p/cYM6IDQsmUXQIgFE9t+ofwDEGiUnPE/A6JCg/CmaC4KlEZWwe1JU6YuRA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1566738,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgZXOYCRA9TVsSAnZWagAA/WgP/0+YGbjUsalISHIWAb9p\nsV6H2VSTfHjsNnfv+wry823wVJP5yshMn1cgX+5E3dVS3NjbSL9qZZjDuax+\nJCo0NQ/UVJFiS1AyjkAWOSZYknSyTf8gCgS5nuuPHWbwBtYoIwh0L/nLT32s\n4U7bBbUcJP2byvpdxNSEZQ18ub1zl1Wf1clLgJOMW6+0G6UFaR2ul2vrYQua\nEWL/ml4w4SdQc8C3xpf6jygRWXmhs+Bacr3Fg9lM+5yqZiD/cHo9qFVxrb7o\nW0gHytwI2Wz827Sp43qqCeL9yP/mI0DsKoILX6UBaJjgpgFXvCV1iNGwT4Hh\nZ2Xg/zhVabjSSjJ3JYxNSAYvqGiUthOu+KeF7/vUjlmjJTw+m2as6iQXVHGb\ncZR+VtUGivKt1URC+VETGz0ksJyj0Py3s87EvQeZCBC419QBDGFEOkOUvcBv\nb7JP1WzK6dfS2x3wdQAlCrtML2OVRyywsiS9ykEe4inYg6bkLuIojhFhxmNU\nK8K10l6o0WGeiF/TTskFFEISRVDZGoVnoKqT2rX4LQVwEpYobNm1qD5fMCET\nC+P9euKJtXP3abTcXWd6Uos8LS7NJXvMgZsEO8lP8KEhRpTqdgXgNQ3XYfn2\nPHqw6Fy3doR2iYvXgY5CJVVUXvatJRZZDKXUcFJ9wmkEhbuuJ6go8kxqHLKq\n6Ys1\r\n=RQEs\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.13.0-dev.20210401.8dc6ffe.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","prepack":"npm run clean && npm run build","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.11","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"14.16.0","dependencies":{"chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"~4.8.0","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","node-fetch":"~2.6.0","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","@azure/ms-rest-azure-js":"2.0.1","@azure/cognitiveservices-luis-authoring":"4.0.0-preview.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.13.0-dev.20210401.8dc6ffe_1617261464024_0.33961683518093855","host":"s3://npm-registry-packages"}},"4.13.0-rc0":{"name":"@microsoft/bf-lu","version":"4.13.0-rc0","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.13.0-rc0","maintainers":[{"name":"cwhitten","email":"christopherwhitten@gmail.com"},{"name":"cmullins","email":"cmullins@gmail.com"},{"name":"sgellock","email":"sgellock@microsoft.com"},{"name":"joshgummersall","email":"npm@josh.standardlabs.dev"},{"name":"botframework","email":"botframework@microsoft.com"},{"name":"awentzel","email":"awentzel@microsoft.com"},{"name":"eisenbergeffect","email":"rob@bluespire.com"},{"name":"janechu","email":"jachu@microsoft.com"},{"name":"nirice","email":"nirice@microsoft.com"},{"name":"ccf-bot","email":"CCF-Sec@microsoft.com"},{"name":"peterinnesmsft","email":"peinnes@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"117c6f86fc40e4afa022d48fe2050678e02084b3","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.13.0-rc0.tgz","fileCount":180,"integrity":"sha512-JP105CuKZdCSevkKov183c1tJ1cyAjPv/X2TT6rTmzWq00sJcvBU1sv/k2Vg4MAVLO3RsJZbYixfOxKQ/s/bew==","signatures":[{"sig":"MEQCIFlqAAQLQalvohHFXajUiNG+000GiixzP3HoO7DVGfIFAiABAKhbJPQyU3/JRstyN975doKCYC4myidYk/D4jNIGZA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1566721,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgZmpaCRA9TVsSAnZWagAARzsQAJT6tVXmpBGH93zNj0yr\nT2KCmOdupX5VtllmDZjEhptU2VUDk3SRUPsc4X2ADDWVkX1tdtIOGjIs/6+v\n3t0fcfIOb0RhXXI5oEx5q9VnItRwLV5CD33A/7fUeQIdS/dqqFl5FmM2Sqi9\nIYy3dBIueZmR0uI7DLurzHXMG+Z08rwWGVSdQzk8ZLxrJCoNbPICe1yYM8IT\nQDldwH347WXyJqUswcZWFIloZUB0aJ3EWdTcurOz8YhdMzbTk1mquwxAooTt\nV/rfACA5/gaTlVoraI2j6LYTCPC5AOOp+zgU2aw26y7GJGlp8jA7FkVa2cqH\nNEgsmeTrx4z3iYSvpgHzbB5140lN2iO/znzje5r/XpizdFhYHLNpzVVEAjlW\njwe3dCXZbWpJNcNfUusomotSkXSAV23R3Gc5aFwC2c5M1MI6J139CLGjjQPP\nUKq3EXgLVh4yx5jn43XnuyPtd3+YS/Lc3sg6SRC9rB0xt/wydaXhrD1m53wc\nK7C4Vd7bwZm3jzOyx3Oc/48rV2D6zMV6xzMwdMh5LBqFGG7BR3hpIQ7D4R2P\nf+9bIvG4CxgJcTB8PsqeaLfWu/eWvMoumbzZn6uxy8VUqq5OyCHvSOa0Y/KA\n9l6k6tK9aP4trqU9sUmJbK5FN4M6O2jBSR7zhqIcd4s3JuvCjyweFNBUtVyh\n1mUw\r\n=FKFs\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-rc/drop/microsoft-bf-lu-4.13.0-rc0.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","prepack":"npm run clean && npm run build","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.11","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"14.16.0","dependencies":{"chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"~4.8.0","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","node-fetch":"~2.6.0","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","@azure/ms-rest-azure-js":"2.0.1","@azure/cognitiveservices-luis-authoring":"4.0.0-preview.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.13.0-rc0_1617324634238_0.17092978112528856","host":"s3://npm-registry-packages"}},"4.14.0-dev.20210402.7e5fa93":{"name":"@microsoft/bf-lu","version":"4.14.0-dev.20210402.7e5fa93","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.14.0-dev.20210402.7e5fa93","maintainers":[{"name":"cwhitten","email":"christopherwhitten@gmail.com"},{"name":"cmullins","email":"cmullins@gmail.com"},{"name":"sgellock","email":"sgellock@microsoft.com"},{"name":"joshgummersall","email":"npm@josh.standardlabs.dev"},{"name":"botframework","email":"botframework@microsoft.com"},{"name":"awentzel","email":"awentzel@microsoft.com"},{"name":"eisenbergeffect","email":"rob@bluespire.com"},{"name":"janechu","email":"jachu@microsoft.com"},{"name":"nirice","email":"nirice@microsoft.com"},{"name":"ccf-bot","email":"CCF-Sec@microsoft.com"},{"name":"peterinnesmsft","email":"peinnes@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"1c2eee4c45d79a250c0136469e7f7dde3c9896ca","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.14.0-dev.20210402.7e5fa93.tgz","fileCount":180,"integrity":"sha512-HC1LCkRCxg72kfCm5MYb8NNJKSc/TmkNbdKB+h9oZ5tSbPzFX1PAcwajf2PLA+4yR8rqXW17RR3h8P6A8bcP/w==","signatures":[{"sig":"MEUCIQDS/xHnPBNdLQI/iGai2qHbjtwhp1NtcKcpDMfnDAsVqQIgM+TuQN+UxHFgZ62lZT0tHbhMbEVZA8UyGLycV9ccElg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1566738,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgZsX3CRA9TVsSAnZWagAAZqEP/AtEPVA5OJZFJeafjDON\n4jTP0sHZpnlaEC48emdIOWUezhIUKmLGrjDhIfUNiJnfeY607W60mZVTIH6j\nH+mjhtoVxfyGsngIyPjLgoMA6kui4h1La/sC3pmZqbOhQSFXO2oKxV4VqbMB\noHIQ97WrlEL6uzKaOvUMFYjr6Gl+1FQPPUmS+9m9RvfTB/Lqd1cnKcGiSZIq\nLyZ7QIsxwHArYxPP/7jitGiqkNW28n4SRseComTwmTk3DIvy0oXUL0jSnFFJ\nRE8RkyLrHlvxq+VERjGAx07MvPXNwnhUtgj2VruCfFHzRZmjEjyvPBHn+AhZ\nrkSChNj3UdrzQpYuFoWkKTpGaB4UVcUx8JHCRczZPJuDBh3AVO57Gm2PiCAG\nC2J5cm4wvOymqKqUiTkn9DZvwYgYuZB5HemDuaudgqbgqgkSvxxshRyqhTEB\nC9aRdnstxI71ICtdwrZ1IV/hs1slGH5kDq/innxd7NB0F6pjYIascVF4GnpD\nbq2gCXceAdDJolg/1vr1sdspk3WwzjaWOCLFFGTNcinrygFgX9LxTqUp2UqS\npqsQg40kJkTQI1Uwumni588Lq38b5AjtUkhs3R4enki84efUL4+YJhIHUa1z\nia5VSAgbXvcROED28xHtB/yIeUP4Jv7hJVTzwY4ji3Fp/pfulax8Z9x+/8II\nVzzX\r\n=O3n3\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.14.0-dev.20210402.7e5fa93.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","prepack":"npm run clean && npm run build","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.11","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"14.16.0","dependencies":{"chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"~4.8.0","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","node-fetch":"~2.6.0","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","@azure/ms-rest-azure-js":"2.0.1","@azure/cognitiveservices-luis-authoring":"4.0.0-preview.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.14.0-dev.20210402.7e5fa93_1617348086850_0.029048266128568923","host":"s3://npm-registry-packages"}},"4.14.0-dev.20210406.74baacc":{"name":"@microsoft/bf-lu","version":"4.14.0-dev.20210406.74baacc","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.14.0-dev.20210406.74baacc","maintainers":[{"name":"cwhitten","email":"christopherwhitten@gmail.com"},{"name":"cmullins","email":"cmullins@gmail.com"},{"name":"sgellock","email":"sgellock@microsoft.com"},{"name":"joshgummersall","email":"npm@josh.standardlabs.dev"},{"name":"botframework","email":"botframework@microsoft.com"},{"name":"darinious","email":"dahoove@microsoft.com"},{"name":"benkenawell-ms","email":"bekenawe@microsoft.com"},{"name":"abrilgonzalez","email":"abgonz@microsoft.com"},{"name":"awentzel","email":"awentzel@microsoft.com"},{"name":"eisenbergeffect","email":"rob@bluespire.com"},{"name":"janechu","email":"jachu@microsoft.com"},{"name":"nirice","email":"nirice@microsoft.com"},{"name":"ccf-bot","email":"CCF-Sec@microsoft.com"},{"name":"peterinnesmsft","email":"peinnes@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"ab57c4f6cc0b327fea9c322667b8e69dfa6d0764","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.14.0-dev.20210406.74baacc.tgz","fileCount":180,"integrity":"sha512-vh0Qz3wGeig2ohTlHejsIPMgEQHwyKcu5v9rlhWE4y1ichNCqvYrrGYo3AE86XdDCdVK3iQrJOuIQLgBugPzCA==","signatures":[{"sig":"MEQCIFjXYy1HKpCfyO98d/mjO08ztbI2ABq4CKRj+Ys6h3GMAiAOKGPr5MbeeC3gwWPyYiEGuUFe8u/HHZZKv5J8yjSlxw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1566738,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgbAuiCRA9TVsSAnZWagAAbisP/3a2KEnDr7GjWGyrmh9x\nV9fSe+AtaPbVhhPlhuL3/ArTcWaQh+4xzwaUz4D7Kv+ADMYZM2guWtf8et2k\npti5bZacc5GdWO3vqsSl6ZZkYozhwJb/aqPUdXZkVaL0XHON+z6wWUQGNIcF\n5XJFXTOl6uG3KichWo7mokMq6PmplE+/4JIS9YfcgRW6a7tbBh2BJkUH5itV\nfACM0aQOdZr9GZJMtfIdepX1+1eoorMmcpbe+dUv7Cdkfz+H2jj+qcIWpyEc\nvVXNdEbYldE7IOu4eStNVeLRvVmCC7c3Fia+PFZw9WLrIdPpxZjCeDSgllR5\nGrSNx1MPX66XNjUDzua+EaT30YxzZc8TtmZUaUcogWrXurdE8xWq77urwPk0\niZfgdRMqXhXb1orgvgeMaSrFMdXNXGBGLzxc2ZpccGs6cfhvlxkrwVJqTObc\nEce8vS9XEFvsNcisU12hB9OxoFzh8SPtPZ9s2hcPDBn8xWX1Es61LBSF4U4O\n2rMe98XZ5WNuwxavRh3r1GHTErwHoFyjrBiy1HCG2rKUF60GgT1jM//P91cB\nKvTj7XwKf0RAiknmByXgd1Ak1FxjgfH7c3E9fnpYHc34cyaPZUrrxAZvehXA\n3RtoVz+L+V8L9j0nrIuRMjC0i8rhI4clzIbftk0llxw0OcNkZn+0U6y1mrNo\ne2Jn\r\n=VA0f\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.14.0-dev.20210406.74baacc.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","prepack":"npm run clean && npm run build","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.11","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"14.16.0","dependencies":{"chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"~4.8.0","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","node-fetch":"~2.6.0","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","@azure/ms-rest-azure-js":"2.0.1","@azure/cognitiveservices-luis-authoring":"4.0.0-preview.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.14.0-dev.20210406.74baacc_1617693602106_0.025203793738661107","host":"s3://npm-registry-packages"}},"4.14.0-dev.20210407.6745788":{"name":"@microsoft/bf-lu","version":"4.14.0-dev.20210407.6745788","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.14.0-dev.20210407.6745788","maintainers":[{"name":"cwhitten","email":"christopherwhitten@gmail.com"},{"name":"cmullins","email":"cmullins@gmail.com"},{"name":"sgellock","email":"sgellock@microsoft.com"},{"name":"joshgummersall","email":"npm@josh.standardlabs.dev"},{"name":"botframework","email":"botframework@microsoft.com"},{"name":"darinious","email":"dahoove@microsoft.com"},{"name":"benkenawell-ms","email":"bekenawe@microsoft.com"},{"name":"abrilgonzalez","email":"abgonz@microsoft.com"},{"name":"awentzel","email":"awentzel@microsoft.com"},{"name":"eisenbergeffect","email":"rob@bluespire.com"},{"name":"janechu","email":"jachu@microsoft.com"},{"name":"nirice","email":"nirice@microsoft.com"},{"name":"ccf-bot","email":"CCF-Sec@microsoft.com"},{"name":"peterinnesmsft","email":"peinnes@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"c290ca69ca815ada3b16de2761ca1e4248386d3e","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.14.0-dev.20210407.6745788.tgz","fileCount":182,"integrity":"sha512-/0USG+nDW+HfWcVUDu6oIt2FQHzRlMomVlvYClZ8SXoetwVs1ky0CTVV2CFAykP4zop2QRd/4OXXG+qcwJ+TCg==","signatures":[{"sig":"MEUCIQDka+hQo5CNsE+bmP6MQOeMqWNSQWsDS9713GeajeNAzgIgZMgmpMZ9X8Tg0WQjrdvccUajcNqqtgSPByc5mIZHApk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1566709,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgbkSBCRA9TVsSAnZWagAAfnIP/iN23ikBKYTujiSlP8YQ\nBnXCI1Sht5SDv7rSl/fPjOxZVIHGsfLnbk8KR6vw7FO9YSA7H33bu+4WVtSI\nSz5jnjYo7yY3mgF+zOkR1Mq2Y9/P+NB6l4PBbncrormZgFx2u1k7f0IgfcrR\nWmaFrhO99Dxx8/CbWMK26pbtCylVOVsrmtu/Uhknq+1KXwavo/LZLDrasZfn\nb4e0z37HNkmD6ObgPuoGpNwBG/bdoBmlXU/LtR+1yzIXVPssDbVhNvmZbMBb\n6M9z+klEMXw1ZYRSxMe+N9hLs4nUS9HOxf1VrVNOVxfNUcYqOLDOSbNO1VgA\nkrFybewrkbj7GZoCAW4d8GZKE3q33KawujitSj59Z2fo9Nii716VPuTDBhUS\nYQs8npbeSsg8jhIx1Crnsc2u2JHJ7xh5bvF7OaeECsEiawz5F9Vm68Mn23Vn\nF2HQ8PPckSxtzMdOLHeNeA4x4Ej9CPD+PFiBsAgubnI08oPF28VjK/ckYj61\nL1PBzqyhdLrL2Evd1iu20yjBFDlS6jcs2EIEy4O4jqlSxUqBsgXQNUDlRHGX\n7HHOSFNcmRsHzYnXl66CV/LUvuZhka4TIS3Aw8zftreM3gLiIoNSAZ+c65hv\n5snVtfhxK+PJVW2ci8ycu+TUxltptZhDQrQLK6f/XhfdJhq2vEHjsGF0JW+j\n8rMQ\r\n=5YHt\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.14.0-dev.20210407.6745788.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","prepack":"npm run clean && npm run build","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.11","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"14.16.0","dependencies":{"axios":"~0.21.1","chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"~4.8.0","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","node-fetch":"~2.6.0","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.14.0-dev.20210407.6745788_1617839232997_0.4759896791311753","host":"s3://npm-registry-packages"}},"4.14.0-dev.20210408.393d33d":{"name":"@microsoft/bf-lu","version":"4.14.0-dev.20210408.393d33d","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.14.0-dev.20210408.393d33d","maintainers":[{"name":"cwhitten","email":"christopherwhitten@gmail.com"},{"name":"cmullins","email":"cmullins@gmail.com"},{"name":"sgellock","email":"sgellock@microsoft.com"},{"name":"joshgummersall","email":"npm@josh.standardlabs.dev"},{"name":"botframework","email":"botframework@microsoft.com"},{"name":"darinious","email":"dahoove@microsoft.com"},{"name":"benkenawell-ms","email":"bekenawe@microsoft.com"},{"name":"abrilgonzalez","email":"abgonz@microsoft.com"},{"name":"awentzel","email":"awentzel@microsoft.com"},{"name":"eisenbergeffect","email":"rob@bluespire.com"},{"name":"janechu","email":"jachu@microsoft.com"},{"name":"nirice","email":"nirice@microsoft.com"},{"name":"ccf-bot","email":"CCF-Sec@microsoft.com"},{"name":"peterinnesmsft","email":"peinnes@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"99ed0fd1691f9239d66239efe14e90a04c3b8100","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.14.0-dev.20210408.393d33d.tgz","fileCount":182,"integrity":"sha512-CdBpc+al4W2/Fha+tBawL5jgD2w4SUZzhFwJtxgbMY7xwA6mKhVV2/r2Zfdr8WHgeosJkTQwE5DRsQjES/Q3Ug==","signatures":[{"sig":"MEQCIBMUoFR4w4ROlC8W/ZCqMIoTHiLeV26eoNCrJNaHom0SAiADoB8JvAMW+vnEFo1TINxbWucl7+B6rC9F1MsDyEHhsQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1566709,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgbq6qCRA9TVsSAnZWagAAIvcP/0YmA2mpdpOveLtXwrgJ\nExckoNhlLOIVt41WNELovNZq9iEVGiKOuhpKk56Y37k0om3WziQNseIsznwt\nZpTKIra09zGlOSoQjuzFy7yoRQRKZEqwnNF199vVYixfgGLQyw6L5e78zfL9\nH3d2wWfIBgoYuqCAf+vcy3LIalS6qsaBlMY/aTATDTkWJvPbJxzlw8TsUUzJ\n3bO0+7KLpVQoABbvAxAnTPKQSkrAJ+0J1XG/NtKmEYFYsK2R1tRPZZE2uOgS\nfD/v3m8gd4GtC206x76JJ5wp43Mo2twOUkM0nzahn7RtFZgMwc84TJlLRkPO\nZuUTZDFlPzdByqoFKWMlt239UAxaX8ykrNT96Dp3mBU9M/eGKPIwxccZofIz\nBafs3IOBhAZhYjES+uIQLKDBFG0oRKfcd0X6gaU5SwKzjjtvfQiWfFF10Zk7\nxdCNSK6Lf298TD+qFMpZ7qVbotRy2QR2+e6ACEsAXyuTQeqSzBzNlKRhqrCj\nTgjQ1HP4te8wje51CjJwC+FxRAdUySft2klC0dJvmf0QtqAQ5enj5Y0OG//L\nhfJowD5mH+1h2oWoD1lqNhyQScxGMiRWBvYuzjTydXIFmPmRbEKi/0Kz6xIm\npW6LPNcFqPCTQ+roa2IklkgbUhgcsv4Kbb2C99vUnVMEXvH3FN1U0WhYbyPJ\n3NwY\r\n=8lRV\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.14.0-dev.20210408.393d33d.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","prepack":"npm run clean && npm run build","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.11","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"14.16.0","dependencies":{"axios":"~0.21.1","chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"~4.8.0","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","node-fetch":"~2.6.0","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.14.0-dev.20210408.393d33d_1617866410263_0.13158318659055657","host":"s3://npm-registry-packages"}},"4.14.0-dev.20210408.1a5070e":{"name":"@microsoft/bf-lu","version":"4.14.0-dev.20210408.1a5070e","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.14.0-dev.20210408.1a5070e","maintainers":[{"name":"cwhitten","email":"christopherwhitten@gmail.com"},{"name":"cmullins","email":"cmullins@gmail.com"},{"name":"sgellock","email":"sgellock@microsoft.com"},{"name":"joshgummersall","email":"npm@josh.standardlabs.dev"},{"name":"botframework","email":"botframework@microsoft.com"},{"name":"darinious","email":"dahoove@microsoft.com"},{"name":"benkenawell-ms","email":"bekenawe@microsoft.com"},{"name":"abrilgonzalez","email":"abgonz@microsoft.com"},{"name":"awentzel","email":"awentzel@microsoft.com"},{"name":"eisenbergeffect","email":"rob@bluespire.com"},{"name":"janechu","email":"jachu@microsoft.com"},{"name":"nirice","email":"nirice@microsoft.com"},{"name":"ccf-bot","email":"CCF-Sec@microsoft.com"},{"name":"peterinnesmsft","email":"peinnes@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"fb4b9f0d8e79c4f7f6bd90d3f40c8920250fc7c0","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.14.0-dev.20210408.1a5070e.tgz","fileCount":182,"integrity":"sha512-eqV0xvBAciD9bAgFe9GHK4wt9z/p0ZmhIG46MsyY7bN92N0/TKG+IQy9fxnz/zv9ssqap5gpO+qdOzXEVReg6A==","signatures":[{"sig":"MEQCIATpBe52BGPHy+OPhXN+DjBUT2MhPWWktBE76DYXst7MAiB5go4wenay66VRQCe2l2Ru6uo5INCVMflVMpEfCnlPvg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1567130,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgbza/CRA9TVsSAnZWagAA2k0QAI9jJP99KvelfSoPj4Hk\ntdvVFvSduPHu+hu7GG+90ZFOYlMHC3ZBC7gE37nw1DG/2+TNwcOV91PR9Bc2\n+d18aeBk7dNwDj2p9nrE7T+zbnhfeEl8fBg2PJclskLQnIkOvLAJH1FPtlyW\ndusbsDiMinw3Y4riJLY6fuoIjLPg7XSQ8AMDGm9huS93/SW2a32xFjMjagQy\nTFFqLqUXaUzu+DBS9l8G6Xp7nD543qKp5ihf6KN2ZLkJ3tuPnYr5DLi/DF7V\nrMP6hx6kGHf1zaKlCrekwn8E1KbDJZneQIy+Nd2z2OSDkgFp+usP353kxRxw\nxzxzP/ldlpsV29i/XV1JCHLOr9caBWv5ZlrqRN8p+aRyOp5b8FTC2YbSnZKv\n0y083zpfJ547rJSWAJ7AHy89XUDbpyrQ9XISBhnWDzbur7WMW54cncMZ0vcI\nIHlz/XWnTRZJTxgtGp2wnVw2856ZcDw6TASMf8WqOTG5QjCFLtDpVscUcLEb\nXscLgD0weMist1DJPIUtohwPOT3fhwLzRYs+L43HGswgvtlTzvmNwhXlpfw0\nqAMVEn4bKcSsOvaxzy25rGHxoJ9mTsy8fM5l+wgPUB1O5Ip+tb90fr0LAhQB\n8Gl0PRhufRZhrj5S9s1eP9h0uLeT4x1U2yjIWPfLauxY8pE+qeBYqYyFHExo\nVpJY\r\n=GSPO\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.14.0-dev.20210408.1a5070e.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","prepack":"npm run clean && npm run build","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.11","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"14.16.0","dependencies":{"axios":"~0.21.1","chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"~4.8.0","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","node-fetch":"~2.6.0","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","axios-https-proxy":"^0.1.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.14.0-dev.20210408.1a5070e_1617901247386_0.5581215455486335","host":"s3://npm-registry-packages"}},"4.14.0-dev.20210409.1a5070e":{"name":"@microsoft/bf-lu","version":"4.14.0-dev.20210409.1a5070e","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.14.0-dev.20210409.1a5070e","maintainers":[{"name":"cwhitten","email":"christopherwhitten@gmail.com"},{"name":"cmullins","email":"cmullins@gmail.com"},{"name":"sgellock","email":"sgellock@microsoft.com"},{"name":"joshgummersall","email":"npm@josh.standardlabs.dev"},{"name":"botframework","email":"botframework@microsoft.com"},{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"darinious","email":"dahoove@microsoft.com"},{"name":"benkenawell-ms","email":"bekenawe@microsoft.com"},{"name":"abrilgonzalez","email":"abgonz@microsoft.com"},{"name":"awentzel","email":"awentzel@microsoft.com"},{"name":"eisenbergeffect","email":"rob@bluespire.com"},{"name":"janechu","email":"jachu@microsoft.com"},{"name":"nirice","email":"nirice@microsoft.com"},{"name":"ccf-bot","email":"CCF-Sec@microsoft.com"},{"name":"peterinnesmsft","email":"peinnes@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"444f419f6292278ae5f76424f8c182f3d6a0b278","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.14.0-dev.20210409.1a5070e.tgz","fileCount":182,"integrity":"sha512-8SwsC5ixV+D0chERAz+vTsg3x9d+qxDw40+VrxBQWigIfo0ZgblmumgStPol0dpzyEZ+kQtdpDsuHsRDl/9m3Q==","signatures":[{"sig":"MEYCIQCgZVwFwWE5eF9TDYgdznPs1XuKoosO/1IfOTDfnlCl8QIhAMVNrsSztV7YDRwowzsX6tJedQaBc14aV6tm0O7UoL11","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1567130,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgcABECRA9TVsSAnZWagAAe2EP/1axE/lvlTdNdymymXog\n/4ubcVFZdeFpTHbQfp8GqhDq2ByilVLqSKMwV9m3UPE7Ys/X9rGx3+yRGfOp\n+G7jrJb5I6X+RWmAtR0qTwwtOVLE6Js4YN0DT6y/qhfgnaV3l+muCTY3LOPT\nkFaKyI+DZNoQMgK7AYFLHkkLbRQuWfcwAtX/5VoYEDLr5SrVzQ0D2z4EW0W0\nWrJqy2qOagts3U8Xhtq67KdEABS96WRJt32nN5hvGGYsq2UHeFLxbghSu2k3\n7jvbkyArMo+3qrpij6CtUCCj2aAjrB+GnzeS9BjvrtxVdVxIuGRJ/YkSvBqL\n6fWosqrTMehm1Q1TKKNAN9BfWNJf1dia5zHCD4t7Pn1Ky0jxDsrNF7pV0Xwx\nUZqnQASkPeKeMUGIcvTz+HakMAGweg5Ntz9AU+SxoCiT1hy+WdR3mHyYJZUi\nxj6bi4LlX+uOhjTDhpoRdVyD+uiFWrc6huttTZxiLfHAU21pcVDRXVdCxFV/\nMWwX14rriEE3PMmlDoKBPCde0Bb7by0qXcA2CZoBhL8/Ezl2LZ5G7wwF1qsn\niCEuLDrQnLuc/NGpyh4QEeXuX4XNxw3roo27cluZ3kvrHa/KwvITZU81Sr4B\nEK27XmuiKhqYRrBNhm1/2HxhHaoMQGCoA0dQBjn9wG5mK5rBZgeJJYLYWEW8\n/hNX\r\n=NphJ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.14.0-dev.20210409.1a5070e.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","prepack":"npm run clean && npm run build","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.11","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"14.16.0","dependencies":{"axios":"~0.21.1","chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"~4.8.0","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","node-fetch":"~2.6.0","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","axios-https-proxy":"^0.1.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.14.0-dev.20210409.1a5070e_1617952835581_0.2704847617631285","host":"s3://npm-registry-packages"}},"4.13.0-rc1":{"name":"@microsoft/bf-lu","version":"4.13.0-rc1","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.13.0-rc1","maintainers":[{"name":"cwhitten","email":"christopherwhitten@gmail.com"},{"name":"cmullins","email":"cmullins@gmail.com"},{"name":"sgellock","email":"sgellock@microsoft.com"},{"name":"joshgummersall","email":"npm@josh.standardlabs.dev"},{"name":"botframework","email":"botframework@microsoft.com"},{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"darinious","email":"dahoove@microsoft.com"},{"name":"benkenawell-ms","email":"bekenawe@microsoft.com"},{"name":"abrilgonzalez","email":"abgonz@microsoft.com"},{"name":"awentzel","email":"awentzel@microsoft.com"},{"name":"eisenbergeffect","email":"rob@bluespire.com"},{"name":"janechu","email":"jachu@microsoft.com"},{"name":"nirice","email":"nirice@microsoft.com"},{"name":"ccf-bot","email":"CCF-Sec@microsoft.com"},{"name":"peterinnesmsft","email":"peinnes@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"0c6c2de7e5209afe993a7e0feb5ba3e315f8dd29","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.13.0-rc1.tgz","fileCount":182,"integrity":"sha512-vYOA6UcrbRwRDYxITfe1kydc/jt1L8yykeOQEK3G/22Lo6+SCOClApgmM5kADI/mqLDFqOKWLPLoVEBthZI3Ww==","signatures":[{"sig":"MEUCIQCDeIpSAd72M7uA2dyxePh3Yxor6iWaqxr2IIiJ4gQ95AIgMkRuOncfm2sLvp6wYSczE+VcH9fUtJlQVQ/Tp3dZa7Q=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1567113,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgcI83CRA9TVsSAnZWagAA8hIP/2mNtvIBi17cp18IHBKs\nnCBmXd/POlX7s7jdJpSbRwzqNDCuJ75MjhXYs16hL6+OZ94GPV2dPRnu9jZd\ncJ3qdz2c9ag+74xP8Sc2HbPpSgExan7/mvkyxRuucnNLTJOVf/qQN4v2CcvX\ncSx4zXVHTtPbhuFvTxdtlPv8mV89MMckcv4BA1XtiSYN/lSsEPWeYe5DRPOC\nI8q1qA5Ao2HjWu5kVOULROQ5XnGDb/Z8Pm2U4AoXn4X8zD0t6xKDGiZEU0oW\n6U8WeQRevoJKvar1pAYzWQW7mi6bdphTsl4qtTmnxNNA7KWY4hXjf9coT2lF\nGu9sGxRmR96Mrksiz+pp6K32b5O7l+M4EdtvOjD0x3tj2aWsBBCFxWV6+IEl\nA4vs3iDHqjAo8LDtQChNs+3xBdmEfX/OW3MuHqhv9h1saC0aNzcALcN992ii\nt3k7LiZmBtrcDCSmZDDu8dtVxQ7fBrRX/cAPNZq8XF0deSqc2KaYatdh3DkD\nvGqSuV+I2UO72brujrgKpYjFg8an0Qtwmz7hlq/LuphuR2bAWmGgXvcaGbMA\nrbKYtFh/41sONEpdFWVo7XvxBPm/mMuLmmj3d0G7hRf/R6ungpQ+ryyvKDN1\nK7Wex0BF+GGuMJGrSpoHaWNrx/SLQsUgBZVfI4UNa6QK9Fzn/vrE8pmVlv5A\n/uEH\r\n=753m\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-rc/drop/microsoft-bf-lu-4.13.0-rc1.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","prepack":"npm run clean && npm run build","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.11","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"14.16.0","dependencies":{"axios":"~0.21.1","chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"~4.8.0","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","node-fetch":"~2.6.0","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","axios-https-proxy":"^0.1.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.13.0-rc1_1617989431319_0.7790356735565835","host":"s3://npm-registry-packages"}},"4.14.0-dev.20210415.161c029":{"name":"@microsoft/bf-lu","version":"4.14.0-dev.20210415.161c029","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.14.0-dev.20210415.161c029","maintainers":[{"name":"cwhitten","email":"christopherwhitten@gmail.com"},{"name":"cmullins","email":"cmullins@gmail.com"},{"name":"sgellock","email":"sgellock@microsoft.com"},{"name":"joshgummersall","email":"npm@josh.standardlabs.dev"},{"name":"botframework","email":"botframework@microsoft.com"},{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"darinious","email":"dahoove@microsoft.com"},{"name":"benkenawell-ms","email":"bekenawe@microsoft.com"},{"name":"abrilgonzalez","email":"abgonz@microsoft.com"},{"name":"awentzel","email":"awentzel@microsoft.com"},{"name":"eisenbergeffect","email":"rob@bluespire.com"},{"name":"janechu","email":"jachu@microsoft.com"},{"name":"nirice","email":"nirice@microsoft.com"},{"name":"ccf-bot","email":"CCF-Sec@microsoft.com"},{"name":"peterinnesmsft","email":"peinnes@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"da17cadfd52d9025d823c7bb0822962c6458b2bf","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.14.0-dev.20210415.161c029.tgz","fileCount":184,"integrity":"sha512-UAoUsAMaqfDw5EvRhAf2iVt/SDYWO7gdeyVfIHDrDt6FoQM/n8YQt1etm8GujhIJxodGu5ZkB7oySrwJYNe58w==","signatures":[{"sig":"MEUCIDnUkK/LHXRDpJdbqVA4qZi3QUcc/s6vv1KWND1UynJpAiEAnKZipRN8qtICuchtQhitVzFVjiXDwuEdMdGvO4h9QIs=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1569013,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgd+kzCRA9TVsSAnZWagAA5IgQAJ4t/OvN+0CVgNjz779f\nfKrimxxGcdL7tpmmMOGli9XOC+QU5sOQcgb7Km7aIX9N/MBSSd9sEfoDYDwi\nOgTWIEZT+HVVuoX7onJP8los6ZCbleDSQ1M8LBcnUDgOpprLU0LS0AeOp3bW\nPeH0M45btGXC2PWcYFws5BImC9ueWecHHNprTqHZ10NJZ7v375jm2ye6fqJb\nQn5ryKKyPrT78KpapVn99FNDtYdDTRGJiTvCVTFu89jScElCSY1W04Bkn8iZ\nx64UTjZY72c4ZZ2BgvUcVVNhhhOUAej2xRwbqm86nG9AN7LV/Qkr5tTKlbJh\nZHKDG3+xHVnq0tfVvvEHiGczeSEg4r1oH81Y1jzyGnkiftp8ksV+D2Wyuo11\n2F9fvKxN20TW142IBKxLCbLb47egVZAzytvS6d1bBwzsu3fQTSoewe+KBzz+\noaLdXnak/IOtJb4fA06XDuCY6wgo2pobcrsrvCR0Ia6jL0BL2livYD2wqzuV\nAGUKX0eBdnUifeC3ggWqXWqMCNLb6GQSkZtc2/DGRi+dfEW2vEyvh7DPT8WF\nTkHVezRaz8zIO8XE6JRolrniPjJ77b7AyTf+/8MaPsbckB24dQwCk+Co28Ax\nlm2YnolvsMaKnWhOqJhEpbDkwmHtgXVIsyk7BtoDa0vFw3iBnYj+5IDCzjDU\npXyH\r\n=YW+V\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.14.0-dev.20210415.161c029.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","prepack":"npm run clean && npm run build","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.12","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"14.16.1","dependencies":{"axios":"~0.21.1","chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"~4.8.0","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","node-fetch":"~2.6.0","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","https-proxy-agent":"^5.0.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.14.0-dev.20210415.161c029_1618471218960_0.920201534596992","host":"s3://npm-registry-packages"}},"4.14.0-dev.20210415.7e35288":{"name":"@microsoft/bf-lu","version":"4.14.0-dev.20210415.7e35288","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.14.0-dev.20210415.7e35288","maintainers":[{"name":"cwhitten","email":"christopherwhitten@gmail.com"},{"name":"cmullins","email":"cmullins@gmail.com"},{"name":"sgellock","email":"sgellock@microsoft.com"},{"name":"joshgummersall","email":"npm@josh.standardlabs.dev"},{"name":"botframework","email":"botframework@microsoft.com"},{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"darinious","email":"dahoove@microsoft.com"},{"name":"benkenawell-ms","email":"bekenawe@microsoft.com"},{"name":"abrilgonzalez","email":"abgonz@microsoft.com"},{"name":"awentzel","email":"awentzel@microsoft.com"},{"name":"eisenbergeffect","email":"rob@bluespire.com"},{"name":"janechu","email":"jachu@microsoft.com"},{"name":"nirice","email":"nirice@microsoft.com"},{"name":"ccf-bot","email":"CCF-Sec@microsoft.com"},{"name":"peterinnesmsft","email":"peinnes@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"025efdb5a8bc8dddf1bc183c04cfeaf21e974357","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.14.0-dev.20210415.7e35288.tgz","fileCount":184,"integrity":"sha512-YM9fZEBIncXOKuFmcVTypEY9QXdRYs455LLNTajAg73ZmchgXktHV3T1t17eSzK1mRLbRHmyI9U7B4Pvog+3og==","signatures":[{"sig":"MEUCIEhMwNQDJ9FxRxJQw4tuxOkUvjHFlV3C3mHFgrcH9lfPAiEA+E6RTUXnOVh22RzpNNPNbJLizCDaXtJWg4NxzKbq0n0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1569013,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgeJC2CRA9TVsSAnZWagAAusMP/0a0tC3GUwsknXxTPnsm\n4XH4Quksjy3nzcJ8GlnuoPFvzkGqxuBubUKAwF5daVYF6FVr7G+Kyibxgpmm\n5/nHzv6fNHzNHK/xCyvwenNe+IWIrxDWmyNKr6EXVYA9z3Trb04rNkKrIrEG\nj/4XD5yOlF2q3F3VVLylqKY0JIBE5laEedeJ/TM8DQRsTLHnLZ9mZlTeNHEs\nRKr2fQwOrWgtVlwCtniA+Aetvv15XwrNL64UMpJEGJarG030vr9tvWyY4xXx\n2TK6AYARvFG7i1ePp3hycbz5PDpIHhys35GYdyP6kdkGC38bV0UchADWk+xj\nBJAaJQI4BN5PEaU7dWEGubXgqnTLxcaAFAD1Z9KlsKTTosYHXv5/1NLefg9W\neL0o479m1AtxggMTIT/tNdUTqHcd8sX5aIUaFWhni8WEiAVMkYHBofA2rkbl\n2it0cOHNZg54/Y79/h52Exkuersb62Pvyp6DK1ovUw1DK5J1lYAGykS1q4Gp\ny0tktghuYBJO2303birFbuCLzKNCaAEMR2c+v7bxdNb+xhOCIBJMtIEaiMsC\nAvaXQpUVM3jdd0ocPQfHIDRVtCNAuB8H1M3qPti02UnK3HvZma8ffaCXHgvK\ncyIOpQht9kaAL3/7r+FmFPgVtbpvPynVknrHdo+T+Jg3+uZ9LucrtVyGZr+3\nDJT+\r\n=iCLc\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.14.0-dev.20210415.7e35288.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","prepack":"npm run clean && npm run build","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.12","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"14.16.1","dependencies":{"axios":"~0.21.1","chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"~4.8.0","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","node-fetch":"~2.6.0","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","https-proxy-agent":"^5.0.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.14.0-dev.20210415.7e35288_1618514102484_0.25240149208589946","host":"s3://npm-registry-packages"}},"4.14.0-dev.20210415.ab0fc09":{"name":"@microsoft/bf-lu","version":"4.14.0-dev.20210415.ab0fc09","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.14.0-dev.20210415.ab0fc09","maintainers":[{"name":"cwhitten","email":"christopherwhitten@gmail.com"},{"name":"cmullins","email":"cmullins@gmail.com"},{"name":"sgellock","email":"sgellock@microsoft.com"},{"name":"joshgummersall","email":"npm@josh.standardlabs.dev"},{"name":"botframework","email":"botframework@microsoft.com"},{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"darinious","email":"dahoove@microsoft.com"},{"name":"benkenawell-ms","email":"bekenawe@microsoft.com"},{"name":"abrilgonzalez","email":"abgonz@microsoft.com"},{"name":"awentzel","email":"awentzel@microsoft.com"},{"name":"eisenbergeffect","email":"rob@bluespire.com"},{"name":"janechu","email":"jachu@microsoft.com"},{"name":"nirice","email":"nirice@microsoft.com"},{"name":"ccf-bot","email":"CCF-Sec@microsoft.com"},{"name":"peterinnesmsft","email":"peinnes@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"54e08a117174e222b392ec2090d6b5b43b68bbd8","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.14.0-dev.20210415.ab0fc09.tgz","fileCount":184,"integrity":"sha512-D824zd3zh9b+ulkiFhSkOmx4EH8L8k042xVyhTUqtSfk4heeL2hiWb1639v3gAWhbkrmvnK2+QFE995aQkRCRw==","signatures":[{"sig":"MEUCIQCmhJZuSAn1UnMp7yi6Oadz5GugYsS7qTqVwuYobe80DQIgAKENzPxfCgu7Zacsb81rJ0yr4HMHj+hS/kgzZY6ZlgU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1569013,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgeKC6CRA9TVsSAnZWagAATsMP/0YkNYdMsbZo3UmehHn5\ngoxllZzQateZRoI18N6D7r6Qq+eOp8J7jgOv7GnofCJlTDY0DwkEg8gPLfI4\nADBBWf9Bi13y+s+4gj8k8/hNok2CwobAWy6h3Dzk/YvVelb4zfPHK21MbTrX\niXXD/uQQ1l7pYoRbUaN44uhIDH5uI51Zknj+VGHGPJO3h1eyntdJKCJ2tVxv\nn5yUmAg05fAO9TdUuYOycA+43WVR7CkAx6dRWOmIJ2f6S6iEa3GiPkjPzAW1\nBoq5JqfIaO1ommxn6Hf6u2uHFbkdWHk6xeWsZ5CSw+oBCIkMLBSSNALRuave\nUSAEsb7Lh+42I4BTUij7AxCWWW4us/ZIAXJTDou7kIc5/HFL7c3YfEoqnUkr\n9jsoGD2f8HrIenViTKlw3IM+doM/UxPcOJqgFAaDDKPFcYomysRqdO6ge4EW\nOfGUBWBuHUKhKoCzedP3/gSJxePYrENB+s6Re0lH+TVhpgeJztBcX2sLSneL\nc9lnR6DOyZXq/Ga+5cQw/mDKX4vjthjnHNPDz67YmVXr9adzm8btZf12oRD2\nEwnLzjIYXTVKMoRY7HVmhBQQCvK4JagH5CECc09Gwoc98+lEFCZO3dxDmzoS\nscei3alN8e06NqUXqUmrRe1SIgvg3sI5N/cmsu3hcCXJ8ehTMiQOyPlu0gko\nCqte\r\n=+iS5\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.14.0-dev.20210415.ab0fc09.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","prepack":"npm run clean && npm run build","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.12","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"14.16.1","dependencies":{"axios":"~0.21.1","chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"~4.8.0","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","node-fetch":"~2.6.0","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","https-proxy-agent":"^5.0.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.14.0-dev.20210415.ab0fc09_1618518202064_0.9659961539993756","host":"s3://npm-registry-packages"}},"4.13.0-rc2":{"name":"@microsoft/bf-lu","version":"4.13.0-rc2","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.13.0-rc2","maintainers":[{"name":"cwhitten","email":"christopherwhitten@gmail.com"},{"name":"cmullins","email":"cmullins@gmail.com"},{"name":"sgellock","email":"sgellock@microsoft.com"},{"name":"joshgummersall","email":"npm@josh.standardlabs.dev"},{"name":"botframework","email":"botframework@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"afd6f19805efa6360bc57af4dd6655696ba3d0d1","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.13.0-rc2.tgz","fileCount":184,"integrity":"sha512-8aGjouvzM9DRFbihF4AaylUF8WAwjjHJuzsU5PQiHHequ52JA5T71PuEL9bzoJpD+wKrlcDjMG6y3r/mQ/rC1A==","signatures":[{"sig":"MEUCIQD7LuazNjEwwWDJDEFihdEYSr4QB7BhRkksCzSkMxd/WAIgcEURy0eNB/wrLgUa1SLhby4QxUXuvCj+vQKG7TQbHFk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1568996,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgeMM3CRA9TVsSAnZWagAAYMwP/jJG6knf/tMRGbwq+p7l\nyV3ZQ095wxLt5kQrUK/h6uBACCmr6lW7Zz2Ak+UcR6uwSHYi4Y9SHAXF3+1J\nIrS5C8Z15Ekw4M6TqN2iHcwmYfsZ+KeuXfJv3FCR5lbTrgnU7anQQ+2sqxr3\n8id0SgagGCBbV9opjGh06lPOoUmXvtCnEStXf+PZSjUpOxoDeF3S8m9406by\nOvG2XJoJM3Z0TztBkYjvQXfLLtTSCsUXjKEVpe+cU2uzYum22Skt27sh5K3k\nImV2fpEkxYgc0/Ru1LDo84nynJCQWr+wIld5FH4JgZHcp/I5k+rlsZiBP1wY\nsSgX3eufMeeRkVro7p21lXeRCnnWJMdFu6i/NmvsyFN4F261fbFuZTuPPk6X\nUFU9eF+O1MkOt8pyb8V1d3dOJDENL8JOlH7GxfAIAwTUOujiy2CVx16KN7PF\nWhIK2RocWcD9SI0Y1HfPNhBUyw+6P+pnLAMo0dXzksLh5aIP7pNzs1sE+RhZ\nDwsgKObc0X+gZ7FEYPqrIoq24eLkEy3kJ94n+GPNJMaV9MRNvFAo4FWz/sjO\nK5PoQeWKKqgMEQJh460tVXNewsGmjcE3haWkxHRrUdoV8w9MvXyY+sQBhL41\n8//cuXS3goDM+1XmKamCuoKTf0sqbcubEU1dkyHcF5FrHRKFu/D2kQrbhGLB\nAzih\r\n=urWp\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-rc/drop/microsoft-bf-lu-4.13.0-rc2.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","prepack":"npm run clean && npm run build","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.12","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"14.16.1","dependencies":{"axios":"~0.21.1","chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"~4.8.0","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","node-fetch":"~2.6.0","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","https-proxy-agent":"^5.0.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.13.0-rc2_1618527030594_0.2514592129018194","host":"s3://npm-registry-packages"}},"4.14.0-dev.20210416.ab0fc09":{"name":"@microsoft/bf-lu","version":"4.14.0-dev.20210416.ab0fc09","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.14.0-dev.20210416.ab0fc09","maintainers":[{"name":"cwhitten","email":"christopherwhitten@gmail.com"},{"name":"cmullins","email":"cmullins@gmail.com"},{"name":"sgellock","email":"sgellock@microsoft.com"},{"name":"joshgummersall","email":"npm@josh.standardlabs.dev"},{"name":"botframework","email":"botframework@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"880081b252636fb816db1435cbfaebcb0c95a612","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.14.0-dev.20210416.ab0fc09.tgz","fileCount":184,"integrity":"sha512-WGDRKdsCHRJSZO+5TCVQ2cKxWAjujx+fKQCI59lKSNueiDnEMJJpZVLQhbyJM9bz9wQMZEyUPx3cRlIUKhHO8g==","signatures":[{"sig":"MEUCIB7JzDn3bjF6d11d4RwYCKf4rdZalTjMPXJgtnJqvElLAiEAo24ah3mh+TKQ6vES5WhRjTUe85aEV2Mpkmujh3xTJjQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1569013,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgeTq0CRA9TVsSAnZWagAAUNsQAJOb0+M+ul5X9CkX5W9y\n97DYCXUw5ZCp0wqAcIgZGOug0+RgQYBzYNV8CtOkD71WTpQAvgkSt0/Rj4XY\nvJT81ekwSFlMEJlf7UGyIIRrrVUkmWKzpY9KV2+K77ZKtkKpL1zz+mQkJH6X\nE2co4pxxOqoxYdTGz/h/91Nt6p+pUZbcQslR5aUwBYGgKNYFjGZ1R/WAQ41v\nEj1Melnwu1/ysKP67FGPCS37Y4QBrlrFLwL9PiTUVKmzBa4I9+4PVH06wfJi\njsne+q0HMkLEmpQo3Pt13NzcF9yLCcvrJlraab+lCILf0X3v0Bil5CqdPpFm\nQeqNpvLx84c+HZQAUbvmY0xtsvAkF49ny5KbMCU6L0POxgvkIEyUd1mPJj8H\nF0m37H5ROPkbyl5QnlYgo9pjF7iauQqt2z3kjdqPGvzDRyBzVX2PaAidqD9Z\n95mHG4gvKJNHoLMAPzdskDku/swM4FHLo2VDNF+pqQPxPcSur42hi6jCJNrg\nIlTSNbS6L6j8yyxmVMAVd8FKNJ8bQYXwHuKBFp/uoGDJPSCO4GpMjcS987tI\ng3ZgWPMq3iO0JTYPA12VDNa0vEMoyq3nCXx7DRGqMukJmaD/C4aRF5A/W0yt\nfB2ZXBF9ascAIUA7pU5cXkq68ZGr6rZo0nyBqBUc5MjovL27kxwj4Z4UVh2e\noM9R\r\n=/wlq\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.14.0-dev.20210416.ab0fc09.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","prepack":"npm run clean && npm run build","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.12","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"14.16.1","dependencies":{"axios":"~0.21.1","chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"~4.8.0","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","node-fetch":"~2.6.0","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","https-proxy-agent":"^5.0.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.14.0-dev.20210416.ab0fc09_1618557620098_0.6911822471762017","host":"s3://npm-registry-packages"}},"4.14.0-dev.20210419.7257bc2":{"name":"@microsoft/bf-lu","version":"4.14.0-dev.20210419.7257bc2","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.14.0-dev.20210419.7257bc2","maintainers":[{"name":"cwhitten","email":"christopherwhitten@gmail.com"},{"name":"cmullins","email":"cmullins@gmail.com"},{"name":"sgellock","email":"sgellock@microsoft.com"},{"name":"joshgummersall","email":"npm@josh.standardlabs.dev"},{"name":"botframework","email":"botframework@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"dfd7a3b553f8a38807e81471ab887b0654d97cbc","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.14.0-dev.20210419.7257bc2.tgz","fileCount":184,"integrity":"sha512-IGobp2KyYRxNedWiICIp4osFWhBJ3ajV7flWXxLuw5kbn39kC449pO9Fu6o8cHOvNuhWkoXLKIzFOz0/KW/PuA==","signatures":[{"sig":"MEQCIGOpDN2bMnJ0VVlr/Q3NxSchMKnXA0IQAW474lqt1NnUAiBlKmnbrDrGQiHbDd+F6tZJt9ODp0IUVg9yTgQ7GuYC3A==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1569013,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgfc1BCRA9TVsSAnZWagAAWI0QAJMGwBH6ka/1JhuXuyrI\ndkIFrUnKJbby/7tb9Yd/9w1vcWG3gSLEKm274ISF1xDKWYuzerhzgxC9Hr1h\nTjM9/28HFoVTijnm8sHcYBXim6IuKxb3Y+AN9P/eSdXPxcXUudEqj3WS/4iI\nx3qVBcKQwH0RqFgqkFTV7iG3TAwtWLVCRHVhRGo9oqYrK4bwgc+J1fO5LHa3\n9TLFneXnm6C+lvnBhIKmyCda5RFOBpj4/e9i7XVFy3dymC2+IobLmZ2zKQKT\nIJ9gRUgKzpUewRYdc05daDnusG0rhLB7YNbLUnATJEo+NInIfPYcCsWe+h8w\ngKhJ6/9Z4LWe4uNZzfECBY9D4mfdbvZnBc23Hzc+ZbNHR89O58Hp5wy4DCp+\nLM0OBPK5RbMVFiM5L+yXBzXOYwXgr3788vxsPbuIOAF9ZGZB446PnWG7bfz/\n/9WWan0sbG+UZONTZQwuENRSRY01Stte6uOqy/KOq/edhioYD/NrTa1mTmi/\n31IRHRAnY8yy9zSJUCOYenf8oMwS+qBxXUSWwXUkcCqrIjku0HNNdUBVsgFD\nI9S7bls8Xbg/iEqnGvUh6ZTowfHvsN7UcEQgKKn/2csqbea0+Mhj3leVklJQ\n+t1quB25AGtGjRIAmQ8biYsZxVd51rfDd26VPl3kQf/pBQyByjGAceXgyfeU\nOJ+a\r\n=vYBA\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.14.0-dev.20210419.7257bc2.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","prepack":"npm run clean && npm run build","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.12","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"14.16.1","dependencies":{"axios":"~0.21.1","chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"~4.8.0","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","node-fetch":"~2.6.0","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","https-proxy-agent":"^5.0.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.14.0-dev.20210419.7257bc2_1618857280913_0.7546003739671907","host":"s3://npm-registry-packages"}},"4.13.0":{"name":"@microsoft/bf-lu","version":"4.13.0","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.13.0","maintainers":[{"name":"cwhitten","email":"christopherwhitten@gmail.com"},{"name":"cmullins","email":"cmullins@gmail.com"},{"name":"sgellock","email":"sgellock@microsoft.com"},{"name":"joshgummersall","email":"npm@josh.standardlabs.dev"},{"name":"botframework","email":"botframework@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"a477d7849848cf62156c835740e0e07bd7acc1eb","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.13.0.tgz","fileCount":184,"integrity":"sha512-w+dsh7EQZUAg7vnwXX+R4k0SxM59hbbAOJSfUNuKMzBMpPAYaiPkFsJj3FBd+OVVmxv9Sza3CUe9VLwYUREhJg==","signatures":[{"sig":"MEUCIDMkhb1ePuFNKdWTESbmJ+KRjiGDUbwONdR2szyacBdFAiEA+KiJLoRuMnJJbxKpFRlE+6iR9MBnYo3XMxxYOJLLk2U=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1568992,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgfgHTCRA9TVsSAnZWagAAWVEP/jLYUnz5OTy5duYc2muE\nBXfjkW58lKAuBvSz+NiFEqpAHqFGVXHZSOzC9wegorgu/2yC3VY963HGPfWa\nLibKpYk7yI/Bj43NZ71b0pblQddUc8WE2TEHhx4Mp6Lml7gRgQilf7L3p9X5\nGri+E3/WAwu9iGIX9IlsOp7WhKmqfdBJNRCuN3p9e2X88xdO8IPndjW0SJr1\n/j+sxjlG5QpLb2+GiRpZCuraA/64HUWm5ZJYpzW55RkP8p1KgQOJqDdSJxnC\n9ZoCz7/zAnYIMX33buVHLch9mvvnZb/xkEwmBfFghgs35gAcSPYB8UoOmEAL\n0ouzdPl7u2Wxh1wiffvI7IHpO/l6wor+j3saZTRP8F0AbL/fUwMD8kzGNj/F\n0JJQC97t/dPukq5hLcYO2vvTgzcs0nlwz2UyMNYFgZq5A5BL8AAAs95elKsp\n0KvT3MXz7EieOtlODuWFB3gHW6L3h6AuAtsK/DXYBjSYhh379VBlicYI+vGz\nzCbCpjx5eHBNi1QDcIdiPuTWwYNN5KMqsj8yc/3mBm0V27jkn7lndD953fml\nOcKPO5tUvzzXcwM3DGMh6DMibxXVaC4oxuPj4ryfocMyiqYsOgNJoDjoupXm\n4hri8b9wEV5jJQPF3Bc6b00e4+tKavlCrlKWondzPgNwadA6UOLQ17zE63ju\n3zOf\r\n=ejdm\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-rc/drop/microsoft-bf-lu-4.13.0.tgz","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","prepack":"npm run clean && npm run build","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.12","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"14.16.1","dependencies":{"axios":"~0.21.1","chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"~4.8.0","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","node-fetch":"~2.6.0","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","https-proxy-agent":"^5.0.0"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.13.0_1618870739314_0.21086025396646124","host":"s3://npm-registry-packages"}},"4.14.0-dev.20210420.fc92e9b":{"name":"@microsoft/bf-lu","version":"4.14.0-dev.20210420.fc92e9b","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.14.0-dev.20210420.fc92e9b","maintainers":[{"name":"cwhitten","email":"christopherwhitten@gmail.com"},{"name":"cmullins","email":"cmullins@gmail.com"},{"name":"sgellock","email":"sgellock@microsoft.com"},{"name":"joshgummersall","email":"npm@josh.standardlabs.dev"},{"name":"botframework","email":"botframework@microsoft.com"},{"name":"zhyuer","email":"zhany@microsoft.com"},{"name":"nintan","email":"nintan@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"63f671bef567b5b461489d99b85a806522f20170","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.14.0-dev.20210420.fc92e9b.tgz","fileCount":184,"integrity":"sha512-/nFseGt6t39IjkWlQ9e/wRvNS/+ZMhsGhO2yIGeOUR34oimbah9y6qZ+jTrgxMKutkY5C88tnUUS/D/QncZJGg==","signatures":[{"sig":"MEQCIG155Z8l1+F0j1q2WAS8OYOVGwH+dT3uI/2qHkHmfwGAAiByXSINoFNqIXivVJz2vDjgoY4/ZVZFwEgc9XdaMrLDdw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1570828,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgfoCwCRA9TVsSAnZWagAAACkP/2ArTrikDZENlmHsVZUW\nyD2hHkLuUDw8UvtEOUvfiY1nbt2PM8156KWY7N07lfoOBK1zJDmlS9jHlij9\nk1jOXzAF+j1pSH8zvBiRkmRtdYYvfH2KiC5WRg33pBMpqqWhyVbT/SZJ0dML\nX0cVtwvB4d6H7uqwx+a+H/2ja7ToL9thgrWABYpygzLA/EUxTLdQObSJ8Xom\nlcLp6StHlufOIdIzMOB/pepBEeUFahujXV64875ltVu2xl7AwmJuYa8ZKC2t\nKgpa/u440Ru0wFwzMEI3KX3PEEob5kclYiQPUsfi/gq6ctUaWqKQAOEVo2UX\nOqlsurthj+LHPZgIA6fjSZkzKCY4BgmroRVlQx7t0D9HoyFS5mcPuNdD2/9f\nom6Jhne/eRoQNoEIr3Gu5y98O0yjQUUuZDIppVCOBin18voZDYdxQk9GmQnJ\nch5D3hcJmO4sq1i5eTLGWOpWiIdolkX3P+XMMWWiLObtlUg+YDWvyGTfVJM6\nGXZWyru8VxmN+Up6/ULNo0D5kf0VylqXOL2VZelvB07AjwzD3Lcko9RtHOla\nmIX4cuVJZNKt4Apr1w6h6cymj38OD4Ior1yCjoV1Bna/78o2jlm3pWIIwaQ+\nnabJ68WFk26upKmQl7+Nje9/eD8zjmdhw/4R/spEjAO5Y3CwIZtf4kk2IPkq\nLVn9\r\n=a8Er\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.14.0-dev.20210420.fc92e9b.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","prepack":"npm run clean && npm run build","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.12","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"14.16.1","dependencies":{"axios":"~0.21.1","chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"~4.8.0","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","node-fetch":"~2.6.0","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","https-proxy-agent":"^5.0.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.14.0-dev.20210420.fc92e9b_1618903215921_0.8447126319171487","host":"s3://npm-registry-packages"}},"4.14.0-dev.20210422.eccdf02":{"name":"@microsoft/bf-lu","version":"4.14.0-dev.20210422.eccdf02","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.14.0-dev.20210422.eccdf02","maintainers":[{"name":"cwhitten","email":"christopherwhitten@gmail.com"},{"name":"cmullins","email":"cmullins@gmail.com"},{"name":"sgellock","email":"sgellock@microsoft.com"},{"name":"joshgummersall","email":"npm@josh.standardlabs.dev"},{"name":"botframework","email":"botframework@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"983f431f002bd3090f4f99a7aae0baeca78c3501","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.14.0-dev.20210422.eccdf02.tgz","fileCount":184,"integrity":"sha512-PxQ3IYn4v7qXTr9ctJqs0pATuswyD/kIgfCh1/6Cucb/+hMeTcAGHF145I4b7UfWmvKJL57cQQThJc1+9pHUpg==","signatures":[{"sig":"MEYCIQCYf9d5CXIi+DpWqPjI57tiyAs14OgJlCKAWfjrwWwHBAIhAImtdLkOnWpjmceoRmEUgpBvcxLSfNx5OGRLUWqoduBu","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1570828,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJggSQICRA9TVsSAnZWagAAKZgP+QEv7GxKePH0nGAXfBLN\nXaP9/hkpIlPunNsoUqZwqeE6285PwBp7f5/k4YkyepmEmwuDgXEpyddbCtK/\n47ftK1WK8iAdIGq/APpPUxi/dhhhof6Kd7xRQFX/Co2l4VEmYoOOifTg9c+0\nFdwQ4gQTotekNclAXzQfY3qxERcAF3mIGnG9Ip7S5TcY+ms6M5UGEMxy0mNP\nz0iAAhZ6DANpYCEzmZFPbfx1gRUmxQjL4BW9uB2p8jvbCiDNfQHV0VRDRDZl\nrO74sUto+Kh5MxLahXRxACDWj2F9JkGgsTqBWFJ/zOQCHUKaCXYRJ9cUF4GI\nS2/jVfgvPakpCd89HeGxJuuFreAO3Cn6tl+m3KYW5gP9tyE//0RsVhQx8OwF\nTgg+gPmmmmxSEw2MYCr30BeAWplqVofzT9akr+ls2+J7aRb+ifPOZrugY3hx\nesRe+5kpLq1y0J/lil8avYo2k1rsgykiLdAQMdGD9fS+BCBqAya7MHeWQL8Z\niIqrUddwGEvweNPIiMDYHFeW3t5RcVV/HPDU+NGlSpaex+1r/9gWTXZpd/1s\ncvDo4sBjlF3q8QEX+hZO2Aj/nZc+Xrwamnp6scwq5NBzoYBqKyD1xSCrgk4a\nvhGfWFwuvVvudlJhVEwPKH2dcyer5NmJljbCUsL3A3KCJ1w3CQkPwKFwkVET\n8p7L\r\n=C9nJ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.14.0-dev.20210422.eccdf02.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","prepack":"npm run clean && npm run build","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.12","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"14.16.1","dependencies":{"axios":"~0.21.1","chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"~4.8.0","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","node-fetch":"~2.6.0","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","https-proxy-agent":"^5.0.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.14.0-dev.20210422.eccdf02_1619076104205_0.28061931809728424","host":"s3://npm-registry-packages"}},"4.13.1":{"name":"@microsoft/bf-lu","version":"4.13.1","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.13.1","maintainers":[{"name":"peterinnesmsft","email":"peinnes@microsoft.com"},{"name":"cwhitten","email":"christopherwhitten@gmail.com"},{"name":"cmullins","email":"cmullins@gmail.com"},{"name":"sgellock","email":"sgellock@microsoft.com"},{"name":"joshgummersall","email":"npm@josh.standardlabs.dev"},{"name":"botframework","email":"botframework@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"a34196a54257a7c1fc09809284e5b6e5e4ce91e5","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.13.1.tgz","fileCount":184,"integrity":"sha512-FnqhOGHZwQ5nhyqbHq2uarXlcF/PPwCGTWcSFlXoQ7gtzRXZ3oH3V2NjTYyl/5iw7Y6tNP4QpVYMzoUoBDbHkA==","signatures":[{"sig":"MEYCIQDeb31Fk8VqoXar4MIcvRxkfmVIyIWko8u2Lxoa61I0hgIhAJaYjMv2MoLSP2NeMyGe8RE0Cm5941EigCDe7MBYWtIO","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1568992,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJghzNhCRA9TVsSAnZWagAAMOQP/j4HtfZbtdhyOucod2ih\n7PyqouHYBw51zVgAEDspnynz3AVb4iPRRy/6vslOEiA/NKZ/LpwVStfWPBKz\nxxA/g7Sc5XPc3TahKSR7JRJlLhaBEfR7UbQj8/j7A2ZAmGF77u6zJBYGRg0l\nop5Ir8cKGRjMnqRAOcQFo8XVHw5hBVbDlb4KwBQ0ODypstMmRmr9rG+KBDNY\nQgt3lXkxo9J4RFs6MH1C6s9L90lk0aaVEUNlHvNIc+wPMWKbHuWr9ySX0rr0\nMBUqgwZCbPChrxbsByAFZymzcgmN3oWBWhfz6iz8b5g/DdaAURz5dWRoyVx9\nK8Cch6SdaV4TootQZ7gAz2o7RdaWo3D+ztbgbBDGbMC0IxDhbYepxaRT1tKj\nqRfJ3UM4ur1aQuK6693EiMdEMRa+35h+Lz3uNanPbXSCQkHl19O2b4yzmXyr\nxCXa9QZsccSlhb5RZLr01qSwCG59ZZHr5yccnJ5DmhPvP/NN3Zn4Sg4c2reU\nRqESGaDTsSAr8nVSZyuURyfBOuFjJi9+5fs4mS9BVOLyv9zJmA2a82pvi2UX\ncJQg9H85/Ob76huXBmBgJ/lTS92JZfbqWTlWIrkA4jBqyKIyLQH+q2SWxern\n3bLbAa68GGaN4R9chGRm3fOvqcymVCHKxSrIbfugoDJekp1mfLU/tLkAhdlh\nJS1s\r\n=dHYe\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-rc/drop/microsoft-bf-lu-4.13.1.tgz","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","prepack":"npm run clean && npm run build","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.12","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"14.16.1","dependencies":{"axios":"~0.21.1","chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"~4.8.0","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","node-fetch":"~2.6.0","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","https-proxy-agent":"^5.0.0"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.13.1_1619473249215_0.9355249215283328","host":"s3://npm-registry-packages"}},"4.14.0-dev.20210427.c0be653":{"name":"@microsoft/bf-lu","version":"4.14.0-dev.20210427.c0be653","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.14.0-dev.20210427.c0be653","maintainers":[{"name":"peterinnesmsft","email":"peinnes@microsoft.com"},{"name":"cwhitten","email":"christopherwhitten@gmail.com"},{"name":"cmullins","email":"cmullins@gmail.com"},{"name":"sgellock","email":"sgellock@microsoft.com"},{"name":"joshgummersall","email":"npm@josh.standardlabs.dev"},{"name":"botframework","email":"botframework@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"b710879b1843af69b0d43ecb5cbf583c946ec1d0","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.14.0-dev.20210427.c0be653.tgz","fileCount":184,"integrity":"sha512-yE8Aiy/7UHwUAMf8aW1Cut+HFChyjyr+FEnsrplNVfT8i+3a3Cg4DITIe+VEk5+zrG0A7iGNvf3PWcAZspcfdg==","signatures":[{"sig":"MEUCIQCQEfWL+LQsN48gXOwpD2KJNhZ28dksak7Gbb6TUYlDqgIgdm62Q25yrjEh+vNK2C6uROnZDDMr4UqIVHLzQtcx1H8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1573828,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgh7t+CRA9TVsSAnZWagAAbRIQAIHy1+ef7AJ4g99yqRE6\na4fLvuKv2K189uRCna5im93W58yxBVdvyNEZo28T8hluexSgvgbYLRDxKuX9\naw2MmFK7mtcQMRCqx1BZZ6Bj1gVr0XubfVXzeV7xZV0Fq81vB+BSjsIZWvqo\nm8tdyTJsepnT3SnSea+36VsQTDROmgoFxTF3CVaLwZMOxgwApYs9HAMumKnZ\nIitUyD2G2O5umF3UhdC/VAxY7owsKA6IH7gxXzwzEsz627UGeWszC89hKebj\n+pFXJreI56sPkNiCmvGy7VUan4nfSC1RkCQsTrNqTaxSXEvlsL//DCey5rGr\nla8q523GJw0JyJPEMxGSUJcX1h3ahEiEwmN6wVseEGiAkwpZKrdka85Yv9vY\nlexw6jgHvocoUAtSDel4+PA8Grwk70PoOMhEOi9mwL+qxWri56+twpQIKGNO\ny6fQC2jEUUpW2eBuRmA0tHSDrF5m11abvXHya1qOSYXfC16JFFlgJI1S9iws\nt7cFWJcj+Ph2RIvlPs+CnpapwNv6ph9OaaLWdk/pWxd7i+yWj2yPKbUZR4I4\n3P/6hI8+ZbTvtmMzY7qEnbjrNW6xB7pcZzHujvookl94g5wLWU1URN4h48S2\ntL87je7VI+phu9tt/qbhKp3UButQaVF9t3XOOAjqv7AMymME418KnmaPUpam\nmKyW\r\n=JtqA\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.14.0-dev.20210427.c0be653.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","prepack":"npm run clean && npm run build","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.12","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"14.16.1","dependencies":{"axios":"~0.21.1","chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"~4.8.0","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","node-fetch":"~2.6.0","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","https-proxy-agent":"^5.0.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.14.0-dev.20210427.c0be653_1619508094091_0.5710165525278206","host":"s3://npm-registry-packages"}},"4.13.2":{"name":"@microsoft/bf-lu","version":"4.13.2","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.13.2","maintainers":[{"name":"peterinnesmsft","email":"peinnes@microsoft.com"},{"name":"cwhitten","email":"christopherwhitten@gmail.com"},{"name":"cmullins","email":"cmullins@gmail.com"},{"name":"sgellock","email":"sgellock@microsoft.com"},{"name":"joshgummersall","email":"npm@josh.standardlabs.dev"},{"name":"botframework","email":"botframework@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"77ebddd1ceea66f96fb8f78502e28c55d2c554d7","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.13.2.tgz","fileCount":184,"integrity":"sha512-r1Jv1a4ORCMSNizZ0uTZLRhto8ye0LJiG6E1iemXgQKGWJmDrE0u2bHrKLAXYOnpJO8F25NT1Ho5tYBvP2pKiw==","signatures":[{"sig":"MEYCIQDqjsmCkTW4miGbAf66YGoI59wREGRR2ihyQwl67x3LkQIhAIVbMMRsZ3OoLQedM/S8ayIuFR8FoFOtMzb2A35ttlbH","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1573712,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgieTFCRA9TVsSAnZWagAAej0P+wYmhI/UbIRziG3heBfg\nKbqemWaAYcenMpk7D7SKDiAyLmDE9zCp+FGIPId4imgtHoJmEdYK9deDV9bu\nXbdGx8i1tn+6uA3tsmtwU5lduj8V33N+53aJwkUkjhHtsbeFHceViAgKmd8C\nrx2EQt1K0KE7GuSVRGR5O80fKU3XL870rJ2Qo6rd/iul6+Cd4h4NunCV1fme\nqfuz61XIRajY4euiIAyZZ9I4xIq9YoXONGI/XgN3/0CzK35iLY8jePBLQODD\n88VMnQmwmkYVVfTgwOmTWMvR3TfmnKOMZdJdkNauLeH4zF+V3b+5uedSV0pw\nuGwj2uqa+spYTrKEp96TMBulMrWr0Nme0CFpI3V5suLUAlRXLLtO/3luSRh4\nVulRZwT3AAIzrUPh8FHZeuZGQU5cPBq1KZKHDKGJ1Xjj9Yw1Er8LDTTxJFow\nYkaovy6cEIJJBYbw81ufE4J0f1z4HvU86UCGyrsz7+NEZM6GtCJ7UfWKRLUU\n8E9oijdAlSECFV/+mmkc2F+wdHsQ7pI1/hRkDRABypnZWzWFHkguEA757Xln\nFktBcZwYLRn6CGVlv3YLnARwwrR70v8gQ30IWtWJj/LzMT3jDTFtoOrjMygo\nYXjaTUeuod/JfFw2wDndX0koItn0syyOVwqoAfsoUUIGmm2jzNbyZ/NWXLI6\n4ehR\r\n=y28/\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-rc/drop/microsoft-bf-lu-4.13.2.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","prepack":"npm run clean && npm run build","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.12","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"14.16.1","dependencies":{"axios":"~0.21.1","chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"~4.8.0","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","node-fetch":"~2.6.0","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","https-proxy-agent":"^5.0.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.13.2_1619649733443_0.058023150124835166","host":"s3://npm-registry-packages"}},"4.14.0-dev.20210429.968ef75":{"name":"@microsoft/bf-lu","version":"4.14.0-dev.20210429.968ef75","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.14.0-dev.20210429.968ef75","maintainers":[{"name":"peterinnesmsft","email":"peinnes@microsoft.com"},{"name":"cwhitten","email":"christopherwhitten@gmail.com"},{"name":"cmullins","email":"cmullins@gmail.com"},{"name":"sgellock","email":"sgellock@microsoft.com"},{"name":"joshgummersall","email":"npm@josh.standardlabs.dev"},{"name":"botframework","email":"botframework@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"eef52cdc5179d9daa8aa397c18f77faba1ce66a8","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.14.0-dev.20210429.968ef75.tgz","fileCount":184,"integrity":"sha512-o9I0bXvTNR10Ueevg/ZOPf6Zfar7mULVct+yJhyTwkZCd3vUQZb4MXVT7jX978kC9ufhASUbWm9Gc3BnG5WKTA==","signatures":[{"sig":"MEQCIHyYodMW5PzOwABOEywGnn0lpTfDDeAkoFj3H9itI2NhAiBRZM2Lf+4CaZx+MndLlVSATnnlLvgkRK0y0DOHIcJrvg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1573828,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgitbbCRA9TVsSAnZWagAAg+YQAIakp9BLRCAhJn1wIGdA\nMorofI4ORJCnvjh0kQaRjrVS37w800UoEvjONqWbt0DHzT6qaQNi3IhjE7o9\n6aKf4VEY/3MNUFGQfbU+ZNuPkAMPQafFkcdoCps3UvorZznaPLRaXmeRaQDw\niJby9Avb7kpNbQwYjIMmLbfZdCO8dQXNDg+PeSB1R4OuYf8yu/0EK0/KZ7xs\nKZTQwlkwOPTGzVkm706m25tT0jvV4xRGRHlL1Tb4VbIIrFlWQ7huMqbuGudo\nnQ00d2Yd4ZGBWvp46PDLRMfalzo+bb7v56hLHUP+BFt+kd6QU/pNMcBZrk3p\namdYnXWQxOgV3bu7Zx+cuX6eZe74YdzEZ5xTaAY3++YHwUBSz6EN/cVlwV3r\nxknxl9acghQaO1yLzECuFmtVhI0oGNZrfFD0+hdalTQiNNh1+a/d5FcR0pS2\nWlAJUGa9LNf1Jr58z5eTiLeiY/Eiod04MH7H7xcTU1sMg2paqrqltFZLAwRM\n//ZE0p1ML9D6jelINw0TNVER21aZvrBmZOaGxkyFogog+ptlF/A3wZjVk7Ni\nB+QxyZ0+pwaq8KGEFF2hieUyg0TiDxYTjJyqYR5uiEk5ul2xLa9PSulehHs7\nLKkXmFHymilwpnXjs5Z2SzcYIc04qQSu+TgQ03grLHTKogWgz7UxLtAAv/S1\nC2op\r\n=AXHK\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.14.0-dev.20210429.968ef75.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","prepack":"npm run clean && npm run build","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.12","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"14.16.1","dependencies":{"axios":"~0.21.1","chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"~4.8.0","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","node-fetch":"~2.6.0","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","https-proxy-agent":"^5.0.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.14.0-dev.20210429.968ef75_1619711707480_0.0417389649100508","host":"s3://npm-registry-packages"}},"4.13.3":{"name":"@microsoft/bf-lu","version":"4.13.3","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.13.3","maintainers":[{"name":"peterinnesmsft","email":"peinnes@microsoft.com"},{"name":"cwhitten","email":"christopherwhitten@gmail.com"},{"name":"cmullins","email":"cmullins@gmail.com"},{"name":"sgellock","email":"sgellock@microsoft.com"},{"name":"joshgummersall","email":"npm@josh.standardlabs.dev"},{"name":"botframework","email":"botframework@microsoft.com"},{"name":"nikithauc","email":"nchettia@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"403303b6d60097e2f406ac2ab46a439e6715858c","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.13.3.tgz","fileCount":184,"integrity":"sha512-fwcPmn8TTuSjeqbe3EIBfpYbzGK36VQW6HLqWB8QV3Wx+OuiuUGnxjgHFVmc12WmOOUNlHHJC1LDYgKFwsXTBw==","signatures":[{"sig":"MEUCIFF+SyChfGNJ6xct9Qqpa7oHYJwH1jIQFKfejwAKW5WPAiEAgEKPIr+b6WiW4C2rTqnf76WL3JMboFK0QARZh9MoMS0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1573712,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgixy9CRA9TVsSAnZWagAAwN4P/jNrjeh0QylZNo7492R7\n8+kd24rPXr2BNWcdYOCER0kHBM46etXWUe/gLcp8ZQnt5EaJAJp1e82a0n99\nUsyvG8wqfDdzBCtTRE3UtrK4+KQJmYqOc+625GfJBSdaTXi0/PxqvpEj/eO1\nLrE6HtEB6kHubBUe151NsUaKVEZksQRzdQFiMOU2z/b53y8V2lSS3/ve4zIG\nnurCbDzeZ4ZyOm4YvnAoErdYq2T7e4Jjm1qd1CrLgjDTmhAVlEebUSyurnBu\n06WJxrDuL7YCF0ZsUpYyIIk1lP3ARVQUf6dnliw8+eIl2Ura32bwdKEqURkE\nXOAkl3AqUjFopRPPWMYKcJ3pLUrsenBXiC+BctuNxHbweRqkPYciBaFeTZc3\nbE2WeMLxvERDak+Nv+trt/D8J2vEpaZrQFvfVnZC4GbmzCxQhll90jbVlSd3\nqlBKJ6VV/zB7Vp3FTQeSRHKC1I4CgOv5ftJU5xDUB6FUKB1Jhb3XB2xsSsY3\nSzqWnpPV6N9d3AVN/veyPF6mXR8NUUj70dxkpoXRuXKyXWZH06bGQ01miAIL\n5/P/wZ3pxBGMyuW5cnMkuJZAkItGcywQwf4Ib32sylHjpO0VRPpOGSXh/hMA\naqd3uhS/S0007Hp1GBKJT/rlf/7eYpZWq4+kkMEdddtp6Fn1bGVqt1sJxL43\nFrio\r\n=ljN7\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-rc/drop/microsoft-bf-lu-4.13.3.tgz","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","prepack":"npm run clean && npm run build","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.12","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"14.16.1","dependencies":{"axios":"~0.21.1","chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"~4.8.0","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","node-fetch":"~2.6.0","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","https-proxy-agent":"^5.0.0"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.13.3_1619729597120_0.8680125019586622","host":"s3://npm-registry-packages"}},"4.14.0-dev.20210430.968ef75":{"name":"@microsoft/bf-lu","version":"4.14.0-dev.20210430.968ef75","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.14.0-dev.20210430.968ef75","maintainers":[{"name":"peterinnesmsft","email":"peinnes@microsoft.com"},{"name":"cwhitten","email":"christopherwhitten@gmail.com"},{"name":"cmullins","email":"cmullins@gmail.com"},{"name":"sgellock","email":"sgellock@microsoft.com"},{"name":"joshgummersall","email":"npm@josh.standardlabs.dev"},{"name":"botframework","email":"botframework@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"4660b0e098e0397fd31be2c98da9714d2b3f729f","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.14.0-dev.20210430.968ef75.tgz","fileCount":184,"integrity":"sha512-qyI/MmiY28VrC0Rd0aelH23ChWH9zYLKSOGpERb0AH1/HEsUmbwQLVcnMWRAO8NdCS3m9JPFy9OB+mmMewvLCQ==","signatures":[{"sig":"MEQCIAEhAWMKthtEUPwH3Y5wHmnhJfLTPDzHx3ipNtGb/u1IAiBui5F6sn/YW9PEfQrawBLVPiJ3ojyPhpgGQchMBRzzrA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1573828,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgi69+CRA9TVsSAnZWagAAOEoP/3H0fCfzUpidYyHlrqGI\nJAth9WRt6HxuEjATBrV55osb+tkp0oQKk8BQWDB0bHkVMcx2XbuiXPcflIup\nhCP3fL4AfI0VBLpDcFTE1mMwgU9H1kZ+LkHoFpnv7L3rUMLcSKj3gMcNwPN2\nXBF2K/4d9tepFj3rsFoERtMPMg1rhu/SwHqTmgDjJnrzUD7fiT+fOaXTYden\nGPAtzS75T16E/ayuOunXn5gBjdH0XDD9npG+xdQ882T8dzu/lZclGAsHXdx6\n3LDcipuT2Qc6LJ1MwhOS7VSigZU1SjAp2g+GedU88SKGvklinmCw/utb6c/l\nw3hQzmQ8MdfBQREsh4WThDviZRyUu1RaAK0+x5GBxYbCrSxna+/8hGWwxZvB\nLKjLHg6mCvCYlDOrxumG9icdm/dGYLNVaMJw+k0YgyxP7vXTN1iLbuq5JycN\n03IMpAWyX4p3egeLG7Tqa8Rtq+0Q+gAJ4Jm3dM23DvUjO/hW2TDRd0EYHw8K\n4hwKfq/DMr6XujEO8hXRa/AzGHxNqShzfqtt+ba/ixxFA95NeJweKcW4dBGb\nlins7lnLX8IfV4NAD+i3CRUibi0EagDEvyAYvN4FseBQRA28JiswOum2U3+q\nusc2+YxKS92FEy1jYz5nYGPMxTNbBg9K4ucOi/O65a5ewKB3NB7gcdkWvHCk\nolve\r\n=w1Rx\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.14.0-dev.20210430.968ef75.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","prepack":"npm run clean && npm run build","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.12","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"14.16.1","dependencies":{"axios":"~0.21.1","chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"~4.8.0","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","node-fetch":"~2.6.0","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","https-proxy-agent":"^5.0.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.14.0-dev.20210430.968ef75_1619767165761_0.5105946975905964","host":"s3://npm-registry-packages"}},"4.14.0-dev.20210511.07bbd05":{"name":"@microsoft/bf-lu","version":"4.14.0-dev.20210511.07bbd05","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.14.0-dev.20210511.07bbd05","maintainers":[{"name":"peterinnesmsft","email":"peinnes@microsoft.com"},{"name":"cwhitten","email":"christopherwhitten@gmail.com"},{"name":"cmullins","email":"cmullins@gmail.com"},{"name":"sgellock","email":"sgellock@microsoft.com"},{"name":"joshgummersall","email":"npm@josh.standardlabs.dev"},{"name":"botframework","email":"botframework@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"42185e15a27941894df74dae9e7095b510a70229","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.14.0-dev.20210511.07bbd05.tgz","fileCount":184,"integrity":"sha512-vMHiqVVYakiJ40f31rofyxDPbI3oigR+8b9/qIww02fbJ1VRYjZU1N+EJ3UgPmItqsYymguiJLsVVc4jphIH/g==","signatures":[{"sig":"MEQCIFOeW5AHKB6mRjMinuVVyL8dT6T7hRrqM3KVT0bszo1NAiBjPKUA0WvNLprGeXhgz1sS+t7Vp3m2nO2eSZ5JjCfTIQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1573828,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgmjC5CRA9TVsSAnZWagAAznwQAKRi22R51rRez3w3hvUI\nhpzFaZJtPI7Fq5BPE7d4lTJP8L13u4nMkPYcmf4g7eeCzP9IgIp5C14krZHK\nHVzmeb1s8wPzAulW1RgF/PihlQHWi2xyBJzb+QZEP+KPfuPjb/1Oi+OLDWAY\noT6w4NLgBTL/evWxSdTzqP20k2/9giF3HbRO/fnYTDyRUsL/7rxIfX3Gt2Q5\ne0bNCail+LLf+60eFAX5Ceo/fdBhVUYbBFIWaQ9uoBNO4EvdCd8xQN4igZsP\nj7AOSKrGJOoz5+Dv+OxHMtR1Z1+DQNkfiNxadZlMzrXDa2BAR+SXm/YDdsCa\nw0FNakBoi6zzdVmWLYKdr8Hd/zRLKKAt6QvIIyh7GdS0XBRTFDkmILGHpuKG\nCmzjsbAu8okkfurWrtR/1L1xuPQ28Ibp92AjxnjkDcAAjJ1AmV2NC9p72+sZ\n/QdRgqJBqslFrfPl9YBW8d1UVAoDPkz+3f6hPaMM6cgamY/l1vpGvr4qR+vm\njleFCK/JiqPE2kqAVo7zNSpoKaGmB3rpDxiPuaxI07fVyRNIq8DGGiCuhWJ3\n+W5dzxwD8YWH4xqdPF502ccHM3FfMUNuiQD890S7w2kE9pHuYJlGJer9ZgFU\n9gozor4qIaIxexC3J8vP7AfntQqaCVrXUH5nAYKM0EN6hFYbjWGVkwD/V0pR\nrY98\r\n=0zTw\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.14.0-dev.20210511.07bbd05.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","prepack":"npm run clean && npm run build","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.12","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"14.16.1","dependencies":{"axios":"~0.21.1","chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"~4.8.0","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","node-fetch":"~2.6.0","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","https-proxy-agent":"^5.0.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.14.0-dev.20210511.07bbd05_1620717753157_0.7486748073285563","host":"s3://npm-registry-packages"}},"4.14.0-dev.20210517.4cdd4d9":{"name":"@microsoft/bf-lu","version":"4.14.0-dev.20210517.4cdd4d9","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.14.0-dev.20210517.4cdd4d9","maintainers":[{"name":"peterinnesmsft","email":"peinnes@microsoft.com"},{"name":"cwhitten","email":"christopherwhitten@gmail.com"},{"name":"cmullins","email":"cmullins@gmail.com"},{"name":"sgellock","email":"sgellock@microsoft.com"},{"name":"joshgummersall","email":"npm@josh.standardlabs.dev"},{"name":"botframework","email":"botframework@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"ec7b2ba6a7c03f1ef438dff688b6564acd3264ee","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.14.0-dev.20210517.4cdd4d9.tgz","fileCount":184,"integrity":"sha512-n3uUyKBGz2bzOD1fiTpv0yQ99jK4hQwr4dZJUUzajMIcmtV0zeM2FYya9zpmbcd/otZ/S9APjvQqaCj6aL8fmQ==","signatures":[{"sig":"MEUCIQDFIDULZeKejF0UUYcEbDBDdolIuzG+enbaPzBj8sE+7QIgckdrbDM4jLmWf77wLsvNMraF1yO0YJhY+2pSqpARJ5A=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1574377,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgohn0CRA9TVsSAnZWagAANtgQAKCJV+IJiJAIjgJTJZdj\nSigjUclbmXr2+q1s77OGSbFiagIwHlpjPVBB33VFXTa84zfn3YVxkQq9sWpq\n9O1XvEW/kpl1/LKV8SGOXVgpOjcZ/4rUYmhuv4dcTOWbyhRcxlJ/F/zdox9T\nPFn81zy4f3uyxznGEUpSmGXNaMt+bIBmAnj4TSinu09fQQ6MEbaXz+kVOqjw\nIsjLWEeRDoAT/MEtW2l+KRQ0RrgUPIbRoVHnjvf+OT3OVCA4cDbemArE3/e+\nLIEM3A07lMaZys/VFBwkMpxCHBs3y/BoJRKqCoJ9Z+mkaaLVIwQ/0oDT8HSQ\no2evs7u7UhNgyF23veL9ZqHlZTpaHn6KptV7R9I3aSisNeljVrHXyOXDbJiJ\ndKwU1ML8oSem+tXmA4DRADbPpvQXgzknFvHBDhuLwlqOzrmoEREYWxKb3gAq\nf7F++i4Zh42HTkn9CC35Dwu567RNuMaazAVvCcfDzBrrhnK/awblAW376XrP\nDjZeCIfs0FkpFLyRNBPlWMLJiyxfmOEJTlph6TbdaSKDg3xIuBdrWISMJIMb\n6jpE4cUBDEHAb4hGHGIXRqCgqbFgInIBfLgQR/GN0RmOOx1FOxDbklqRu1Dk\nO43x1+qQkGTjf3ywNE5oNBuwX8jKyzI/j4CAoAKtO4dNFm1ukV4femDyg4tc\n7pVb\r\n=tttT\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.14.0-dev.20210517.4cdd4d9.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","prepack":"npm run clean && npm run build","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.12","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"14.16.1","dependencies":{"axios":"~0.21.1","chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"~4.8.0","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","https-proxy-agent":"^5.0.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.14.0-dev.20210517.4cdd4d9_1621236211983_0.010507482247848587","host":"s3://npm-registry-packages"}},"4.14.0-dev.20210519.92dfb46":{"name":"@microsoft/bf-lu","version":"4.14.0-dev.20210519.92dfb46","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.14.0-dev.20210519.92dfb46","maintainers":[{"name":"peterinnesmsft","email":"peinnes@microsoft.com"},{"name":"cwhitten","email":"christopherwhitten@gmail.com"},{"name":"cmullins","email":"cmullins@gmail.com"},{"name":"sgellock","email":"sgellock@microsoft.com"},{"name":"joshgummersall","email":"npm@josh.standardlabs.dev"},{"name":"botframework","email":"botframework@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"a20f9e471cea8b03303a022d05d8ede001d6dbd6","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.14.0-dev.20210519.92dfb46.tgz","fileCount":184,"integrity":"sha512-ogl/Th1ukJwi6C/6k/Ajs/Va/Dn4pPgC68pyCwlm36JHdEmYrP+dwVxdCBKRsL7e7A9QwN3FGLeV6lk5J0Wr4Q==","signatures":[{"sig":"MEYCIQCcdIwdM3bfE67lDvet/6XjHWSmotb/h9F/rxUy529ntAIhAMGHiWoKCcKa7hh7dxdJKNM9qVOXUasB8TVq/0RJbSjm","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1574372,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgpLxhCRA9TVsSAnZWagAAlbIP/1fCzCYJTUFj/KtFoTvz\n9V4e8E2oDUMrVDdxf71YS2dVbpYnEY7SqdWjeJFpUj3uIScIWfQzFQk6HKFg\n6fPyHhSxY9PbheSiqm7eKj8J7pVq8+MLxUtgcbebrN4WQpe3BpoSyb6NdfqO\n5xu3JUX5EuOryjQUOS/mVlLkol3AG4DcU1EB9umEaF+pi/YJ43XYZLvtpTFe\nZwowryEMsw/+qpHwqaFr9CvLggMCkHPLw7b1OCl06ui0EC2Em3Eh17yU8g3L\nWvVtIVA23KszglhX5igh9onQMf06JxUUT33cSgU4aX0vse+isFXVzXZWh/mU\naDmhfll/DA0EsJHFqIp/meTwZUhWwZvRfMxdoi8ivd++Io9oMO2NwtU4RGRc\n0x6kJaFMGYoQrBjfTjEzG3u/l2GEgIoV/jo5hJ/BapxCYpORWjpfhXOie6Bt\ntb4ytdkSuFr/Kso5bmGg3jhjirM1zUt37RA6pezRDKhr4BHI1jQUDio/TQzt\nCe1rJo9yfYAR8DJ3Cq2c3ajQ+3EWDaEfbYnVZYG/3mFwTAJtk0SHtAL+xNWT\nhgYxPZeieQtpyjjFJAtaqRRVaFoocElSZhOgoYg35T/3rRG2i4rAk2UqdQr/\nDyjoIZhWnarVzh/P1b/LPjX6fnxw8G/TsBUvk7V9hr5nVr/lbGhdIsr5PBKy\nuitC\r\n=ay+u\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.14.0-dev.20210519.92dfb46.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","prepack":"npm run clean && npm run build","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.13","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"14.17.0","dependencies":{"axios":"~0.21.1","chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"~4.8.0","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","https-proxy-agent":"^5.0.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.14.0-dev.20210519.92dfb46_1621408865267_0.5201283008146858","host":"s3://npm-registry-packages"}},"4.14.0-dev.20210521.64e1d40":{"name":"@microsoft/bf-lu","version":"4.14.0-dev.20210521.64e1d40","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.14.0-dev.20210521.64e1d40","maintainers":[{"name":"peterinnesmsft","email":"peinnes@microsoft.com"},{"name":"cwhitten","email":"christopherwhitten@gmail.com"},{"name":"cmullins","email":"cmullins@gmail.com"},{"name":"sgellock","email":"sgellock@microsoft.com"},{"name":"joshgummersall","email":"npm@josh.standardlabs.dev"},{"name":"botframework","email":"botframework@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"2e36926ef1cfe2420d6b5494d5c5fd49dc25f305","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.14.0-dev.20210521.64e1d40.tgz","fileCount":184,"integrity":"sha512-XJtzzz2wVQimmyJ/UzLZqzJoK2/v2X4Fm6ND9DbDL4+Iq9baY037V1Rew3zRNoLipXx+7rg8CYiqReegjNgM5g==","signatures":[{"sig":"MEUCIGDtxexAKxZ0FY/x11CF6dGiKM/8jupO3l9rHFzCWLuaAiEAklDw1OLMNuwBJupE4rz24eEXvGPFfCgTLlCxFhGYRMc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1574372,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgp1+9CRA9TVsSAnZWagAADMQP/0v7pCJLQM+wUGLdKJeq\nJrBtYi8F3MzEUWz6909PjSzv598wgioWmENVoVlVdrdHnh+/l/o7hKPj0mw7\nzcsc3U+snwQZd1FcPaRvsjphd7Wa+Eizx6eN/Ieyi0poc9Y5XJuz9S+JQvhb\nQgGbPOvj5U7pQyOb6z1nIQLD5sJi3l3g7AC+W2QL4poohBkCyxplrZqn70Cz\nkfpZGy8gxzWvF/w+TorRxfhPpPwl4YC2oIbK+BtAO/NQ0Zqf3X043w8dYAne\n5AxeOCvrxniJ45+ExKhG5ahqsNIPXDWuulF2KBJ3OXn9uWIRffmxEeL7Lw+k\nx6Jlk+4prdTJUGGT1pc33qXf3UTqPxrfXUOxTFMpvqeBL6wdXMTBdvj1x4dY\nI4Xv2ED3COTuMwnXVY20I6ykKoj0ij++KFnk8SbzBZgo13cK0xtC5M0tKFlk\nQuN7fnmJwT4hhep73hFIQdXpPNub56yXRkygAHSfpiBi/i1dOcycqjaecDHs\nbhT2ixEj0iYQlytpLg5G7tCXwid/Gr/KK2vq4aZmudjdcetd+JLZdqP3g80H\nwdZj5x7kIisqZm3BxR5j6sETFno7h1PfnFK6LdBZVd0X5Df1wfcQLeWSR/ka\ncmXcHGJYYFgcVZ1OW5+5d8cTDjKV7Ia8rUpEeH5rt8a+Ch6TOtjlH14lICn/\nGpIw\r\n=+Fnu\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.14.0-dev.20210521.64e1d40.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","prepack":"npm run clean && npm run build","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.13","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"14.17.0","dependencies":{"axios":"~0.21.1","chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"~4.8.0","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","https-proxy-agent":"^5.0.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.14.0-dev.20210521.64e1d40_1621581757506_0.7631596217369492","host":"s3://npm-registry-packages"}},"4.14.0-dev.20210602.be805a8":{"name":"@microsoft/bf-lu","version":"4.14.0-dev.20210602.be805a8","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.14.0-dev.20210602.be805a8","maintainers":[{"name":"peterinnesmsft","email":"peinnes@microsoft.com"},{"name":"cwhitten","email":"christopherwhitten@gmail.com"},{"name":"cmullins","email":"cmullins@gmail.com"},{"name":"sgellock","email":"sgellock@microsoft.com"},{"name":"joshgummersall","email":"npm@josh.standardlabs.dev"},{"name":"botframework","email":"botframework@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"dc35016c5ea1688fa5adf430a969d5c9ce817cc5","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.14.0-dev.20210602.be805a8.tgz","fileCount":184,"integrity":"sha512-XpBxTciJMuwv2fhFxy6OxyGU4Eu9/FYEZ9ou8WygAydc5S99hs/LVyw0YJsizvaNwzaa8biMkhqZdIwPHDLo6g==","signatures":[{"sig":"MEQCICg1aYlmleMYTxg9OUAiYyvrIjP5m/j91mPDW2TKCxyGAiBGDr8UlogElaK9efcCBdQBjYFMuRFgivpyb/dBk0oBOg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1574372,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgtzJ1CRA9TVsSAnZWagAAWzYQAJI+uf2jUF45FDC4kH9U\nk+NCz8ixkTLfY8cYSSa7jdGKlvPZkJFicRnS96XOOklk0LbOo2rM2q9cKxiG\n6vEFpjaq+x8RtdFNf5PLCRDJkQWFb4X7dAqltGDxgc51dhK48ge5mr53OCn8\nusioLm3Z+Teus+uAswp0IBeg1nROe9t0kWqLZgZBtvdZ2wlKvdo2IZ8C8XAx\nGYygV6vfmHweHtVAQdQplXTjb/6A/fKV9L5NgZzImtOTh3P2CrqiLpDvR+/d\neMavpjVAKLDEt8TwIu/R74qHurBHjUU02kbjPxz3JXA5wo/dqcNMuCV+sRqK\nph7MB0oSiAmm8jh4AO/P0GvIfnyt+Hz0+whzulYZOtd7hiIhGr9t+34XVE7z\nfOlGIhDxwIhY03gKaB+AU5gcmIVtF2LX+H6QA4hT8pSWceDaIIySe9USzByX\n9j2xeYbwadCHKPh6b4tVjgR7rMgB0njsxYU4v7p0EnaMZF2RKlYDSNbeMCZF\nBcps476F2WGCx8zDWslWCP1HiVs+A2wID2Jfs/tnRDKKUUZI1aVB9RVo1hzC\nVgRe/6hTI8YdtboZLzfggZnuDrcIPlJgJv1y9/MTukgB3cgg3vij4lZznDZB\nEnwhh5nfn2/KKx1crxYOcW2N5qe62LhULl8qWGbvXEd7md6RhChxkyxcYKJE\nOFYI\r\n=Ea8I\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.14.0-dev.20210602.be805a8.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","prepack":"npm run clean && npm run build","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.13","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"14.17.0","dependencies":{"axios":"~0.21.1","chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"~4.8.0","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","https-proxy-agent":"^5.0.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.14.0-dev.20210602.be805a8_1622618740528_0.1927650475461058","host":"s3://npm-registry-packages"}},"4.14.0-dev.20210604.3f9ee15":{"name":"@microsoft/bf-lu","version":"4.14.0-dev.20210604.3f9ee15","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.14.0-dev.20210604.3f9ee15","maintainers":[{"name":"peterinnesmsft","email":"peinnes@microsoft.com"},{"name":"cwhitten","email":"christopherwhitten@gmail.com"},{"name":"cmullins","email":"cmullins@gmail.com"},{"name":"sgellock","email":"sgellock@microsoft.com"},{"name":"joshgummersall","email":"npm@josh.standardlabs.dev"},{"name":"botframework","email":"botframework@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"99f78b142bbef1882553cd7ce07a8063ce402bbf","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.14.0-dev.20210604.3f9ee15.tgz","fileCount":184,"integrity":"sha512-ke7wIQOc633ZtO4ZpPmIDb4Mz43xRb4fTnEMbyIHr1GkqdKZnSyjxMq3NaFjyUQbm4GDuqlbbyKr7ibM2j93QA==","signatures":[{"sig":"MEYCIQDF9P5VxhlJFPBm5s9wW8DyQ0uD7FhFTdmM9VNHKzH1tgIhAPqgp4aJVNxI7zqudZ102xJdyrcRU/XThQbpYXCQMIW5","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1577318,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgudT0CRA9TVsSAnZWagAAEjYP/AhtRfrSpAY2YijbO96d\nhILMBOaKi87EXwvLRTkQL8RVASfvFXdqANwec3u4u3mGT1v2OSKVUBWt8mYs\nm0Psfo+t4qBovnQ2X/HB58iNHd1eccjTR10sKCgYhjNF5km2+f4wwgHVZZuq\nel1zfHbOmv8B8Pn9WIBXXuXAJei6Heo6seotcsf+4eyAtrdTxhLRm4bH73fC\n901LwsI0y+2i5Fdmk9G5GORIHr/gUFqNDh5YQZirKHn48G8bPGMkWynhTVF6\nMhduDH6snHq3FsRdPlYKjRQk2qWKiH2lq/M3W1C80lHuJ9vKic19gfmMJiSe\n2ySQ0a6NElB2VZ7RZBa32Pr7tEKJvli8U6epbW6pRZbsp6p41jfcF4+gqmVs\neQ63hR7OK1JkFTYBN2ECKbnygUWiZGO5d62Jve2xHb+xi/8pga5BvXgqJlew\ncPxUUak2ovc9LPQ7Mgc8VN1gKMBIu8C28CRZpJSooyV+Z0PmmocOccDgM0l1\nWUMj9rE8chzdGNo3w5oFuA4Y53SgjhPzzzvtqfdtVY0qBIpKE/DeOfNMnPnq\nUs9/ezKLNGBzngKLUvzDB9le9tTjZdS5EqJ5PKSIJzHEhQML0OIfEy7hjINY\njUM9FZUBdAaMLV6WVJV61G3PZ/iyScsEomDpOUs3+3Blwq2db49fhaMrM4Hk\n1dF6\r\n=Jcdn\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.14.0-dev.20210604.3f9ee15.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","prepack":"npm run clean && npm run build","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.13","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"14.17.0","dependencies":{"axios":"~0.21.1","chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"~4.8.0","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","https-proxy-agent":"^5.0.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.14.0-dev.20210604.3f9ee15_1622791411920_0.3129984301023936","host":"s3://npm-registry-packages"}},"4.14.0-dev.20210623.37f59ec":{"name":"@microsoft/bf-lu","version":"4.14.0-dev.20210623.37f59ec","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.14.0-dev.20210623.37f59ec","maintainers":[{"name":"peterinnesmsft","email":"peinnes@microsoft.com"},{"name":"cwhitten","email":"christopherwhitten@gmail.com"},{"name":"cmullins","email":"cmullins@gmail.com"},{"name":"sgellock","email":"sgellock@microsoft.com"},{"name":"joshgummersall","email":"npm@josh.standardlabs.dev"},{"name":"botframework","email":"botframework@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"a91efda8539830e7417906f08390531fb1c512dd","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.14.0-dev.20210623.37f59ec.tgz","fileCount":184,"integrity":"sha512-HsIgKjGUnfbFVOcz4jbphKw/jMFmqaHHae0KEey02/uUzcRokNWDg+8DQxNeSFG7/sEI1PcUcnXtoziBmttD/g==","signatures":[{"sig":"MEQCIA9O/yCM3cIExnDytPf4NNDIMQZiJozQbM/5pmAun0BUAiBlVww969oUHNrbAmcIJPylpwEh6jpV4wTDolUoR3xjNw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1577318,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg0uM4CRA9TVsSAnZWagAAf5MP/j6CiNZsEooEOdI/AkGc\nwR9pve1UtpqxYq7DpB6jGUyKrPscyF2WMYFRYRowJ0jUULNZ3MlMckQ8VaNj\nrriSXemeKYsfv/6LwN/ZCx9QqqmxbUoqeoq12I4AqAEHkCZUIKLPejMHrDaB\n8yBU6LqyQG7FVUqmNTcK4uGRi8hXHmtsSV2HyR9iVc3HNgbv8Uz2arbqlkem\nlK7u5A6V8XllyO6Di7uxs83cHuZ67OnFVahwaYLUgZIZg6pEzijybnsJZWaG\nj0AW3Enfjs69yA+F87DxqxDclI6eqJwlnSapGcv3hx9QDUEeZoL92RBwBgDz\ngXvy4t8XDQf8lXRZ/w6CdQJdONT4aThdIbNaeqJohxmphIaWeZPhdT354si4\n1SpgdncVZCtU5D/Y6TVoHTp5krYcxFrRtZlAyi6Iwq37ecKQ3HuliY7yWwYo\nTL4BiJ/DBbsHwzhjj0FD9bxf7MYU3pmWMuHx7GjXDDQWL3qy0Qrgn88LTKMl\n/HhjkRTi0c4op1OsoVCIGB2XMQKPUDuYKmJCNoC7t2dZ5IdJgZT6SogOmlDT\nNMlxVmXw9GVEidxk8V3SmRma2qWCJ3wZClgdCAd+Zx6r4Rf3Pp3BhgyEDkvy\ntQAYMwDWehxlmT7gUdDJpxtkXOnyR4cjmXEcgEZ/0brzz4Gs3crZuWuLpIO3\nXeG/\r\n=hw2/\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.14.0-dev.20210623.37f59ec.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","prepack":"npm run clean && npm run build","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.13","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"14.17.0","dependencies":{"axios":"~0.21.1","chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"~4.8.0","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","https-proxy-agent":"^5.0.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.14.0-dev.20210623.37f59ec_1624433464254_0.3346037454102051","host":"s3://npm-registry-packages"}},"4.14.0-dev.20210624.eac7a60":{"name":"@microsoft/bf-lu","version":"4.14.0-dev.20210624.eac7a60","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.14.0-dev.20210624.eac7a60","maintainers":[{"name":"peterinnesmsft","email":"peinnes@microsoft.com"},{"name":"cwhitten","email":"christopherwhitten@gmail.com"},{"name":"cmullins","email":"cmullins@gmail.com"},{"name":"sgellock","email":"sgellock@microsoft.com"},{"name":"joshgummersall","email":"npm@josh.standardlabs.dev"},{"name":"botframework","email":"botframework@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"b4def4916a9fe1b0b182aa2acd1b6213efa4c489","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.14.0-dev.20210624.eac7a60.tgz","fileCount":184,"integrity":"sha512-JHCj+f8TBbeGKDxpbNHbbc5sxS6vxhVfOnicKEsbvKKd+XWk3Vcie+SGX5bO9xqBfiDW1wJxw5NIvX3m6C0qoA==","signatures":[{"sig":"MEUCIFa4I1+CburikpgSQcFJC5NulA/nr+U8isrIDlNOKzvBAiEA7aSb20foES4JwxmdJ3FUHlToIgGqz9CG2xJiqEr7ppc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1577318,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg1DKwCRA9TVsSAnZWagAAc9kP/02UAE6ofJ1irjp3NFyx\nwgD7hpmvzcODcgQ57YZyYEkfVPCLW25T2BuH4wYIzCWtYzEyGGdXNqrUif9D\nXqACPxRMNpd4y9H8JdCIxLbRlNUFW+eP8fKlYWvSIN+Yg+FGG25U3BTifGHq\nZcnuGfw4UdslA5IH9/H71heWu20bHjux1SLZ2Siy7bIdInnQkigFCLPGk6J4\n8cYjkf/KhpbvNIfDxtQgTJSSN19KdiIUAERTGWm0BZEE+SL/SUqpPw0STTXV\neEcpD2AgW3W00sy2T9wRmqI6Qx3HTO8kICP4blcmtsmYgGrDjC+hZLKU5v2e\naEajt63IYB9/K+QU+bmLNDk6+rPwsz2+0jwNVT5sf75wJkxaY8pFHb2eRIlH\n2WMjoT/iwbvXSaAg7z2MoXopjxw5yBVzeF0VWBkFUhkVm1QTkz4isdf1/lXE\n1I0tiVRbDy/w9c7lU1cAkSvvvIGxYcU++XXLVRYuIYeRX3uBaq9Gx+zU9ebA\n5+WisHJpt0tCiBHOo5RKviMY8j+3NKaq0ZvRnwvrwKTUvuG48CItD2jL34wb\nayi+PwEPLQP/Gn1ccFLAFgpflLLshBk45OFYB67u7GVRusAvJA0pptuIJOMC\n/cIpIPf9wniDUXRMLJVsUMqhzyj/P3guTl35TuTIYjKE2cRfi4dXeB3cLPkK\nRvOv\r\n=WDSu\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.14.0-dev.20210624.eac7a60.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","prepack":"npm run clean && npm run build","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.13","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"14.17.0","dependencies":{"axios":"~0.21.1","chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"~4.8.0","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","https-proxy-agent":"^5.0.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.14.0-dev.20210624.eac7a60_1624519344079_0.7940760434454175","host":"s3://npm-registry-packages"}},"4.14.0-dev.20210625.132e0cd":{"name":"@microsoft/bf-lu","version":"4.14.0-dev.20210625.132e0cd","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.14.0-dev.20210625.132e0cd","maintainers":[{"name":"peterinnesmsft","email":"peinnes@microsoft.com"},{"name":"cwhitten","email":"christopherwhitten@gmail.com"},{"name":"cmullins","email":"cmullins@gmail.com"},{"name":"sgellock","email":"sgellock@microsoft.com"},{"name":"joshgummersall","email":"npm@josh.standardlabs.dev"},{"name":"botframework","email":"botframework@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"59ca048d0f62f7448e8a516c0844ca076fd63dd7","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.14.0-dev.20210625.132e0cd.tgz","fileCount":184,"integrity":"sha512-6Euy1c5PFjwrci/+1S6K7H+WxKuHS8iArwRBLaSnDiaOCHl5yPFKiMsyJXbydLDmP4P/VBJSwY6yqFJKIiFUZQ==","signatures":[{"sig":"MEUCIF8+HfIOk5L9EUZk8TqRDtLAASeB2LkpIzHOtS4vZI8vAiEAyMUNGmyHvRV8RdBwaf0HjXtwk8nooN3FzSq+mM9mMBA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1577318,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg1YP4CRA9TVsSAnZWagAAVyIP/RAV2K3uh5Yqu0wZRMZX\nCpUJEtbdO8HOrUTvjBJAJILQWFuWBsvE0HDFMi6qq4YJhTj0QADXc/BSqmMg\nXgQn0UfIPsyV/vH663pfJWbLZW3b5tJlWnlhl+orTT18srrTtgT9gblswHCW\nI0fffojrwL1a54is/Ylh64jTZ0+06bJeoPROhINw2SZjEx2wTUEyHCiLpYwG\nFXkq1oLKeGUTXZb/iCiK2CmO+PNztXq/hjAXUzmVDbUO1BokI15M9VADYgjd\nvW1hZaR+z9GVbJi+F/M7pemmB0G3yop3Qf31mjDIvS06W9MJ1gSGv69kdf/I\nRGg0BFvq51RQJgSdlGGKUBw6QRA+Ykmi911RXtV2XGRlgBgZ9XEUVGbgJnMr\n5nPjF6snulqmI2m7CbRbinKR5OMek0wxxqTDpkf1F0XBJHGPWmc2JrzXUXzH\n3P7erENdG8iwR06rASTsMFLYh06hiiVzQC7JPhyVTMqWTC653RiWU3FakW5p\nbylGOtuKpzAwAuZmwqsqUHrwO13hCg+YLFgVfHd7bilxbZzHIptbszi6sWhH\nR47UIouDaVV6aTQzMCRoUMSKxh8BoKAyhPSsL34Z/9cQgj03MJVe8Z2cd19W\nV5LcnO256cnsVVFv8JUH8EnFn9EQX9QsHI4tsXCZ0+fOqQZAjpVY4dZT1nT/\n3WGP\r\n=3YEp\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.14.0-dev.20210625.132e0cd.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=8.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","prepack":"npm run clean && npm run build","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.13","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"14.17.1","dependencies":{"axios":"~0.21.1","chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"~4.8.0","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","https-proxy-agent":"^5.0.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.14.0-dev.20210625.132e0cd_1624605688205_0.7625624075772295","host":"s3://npm-registry-packages"}},"4.14.0-dev.20210629.e97e6b0":{"name":"@microsoft/bf-lu","version":"4.14.0-dev.20210629.e97e6b0","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.14.0-dev.20210629.e97e6b0","maintainers":[{"name":"peterinnesmsft","email":"peinnes@microsoft.com"},{"name":"cwhitten","email":"christopherwhitten@gmail.com"},{"name":"cmullins","email":"cmullins@gmail.com"},{"name":"sgellock","email":"sgellock@microsoft.com"},{"name":"joshgummersall","email":"npm@josh.standardlabs.dev"},{"name":"botframework","email":"botframework@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"650475e33fbbfc10fc9f8757b994e119acfa433c","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.14.0-dev.20210629.e97e6b0.tgz","fileCount":184,"integrity":"sha512-9KYmZ4cXLJCsd97452V6q83A03E7JlKXJrkdchxG3vtI/J+ptWzCGj4CNPpBqzWUQ5DtkwzJnRawuDtwizKpjQ==","signatures":[{"sig":"MEQCIF0nG2SoFvgYFrIVM1wBj46gHWtxBUbgFjGjILUrU/vqAiAytf1/ioF9oCR9KHkT/pbuRq6pLXmfFbza+U4tmer2Xg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1548314,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg2sobCRA9TVsSAnZWagAAV3YP/2EWrVTN0B2Bv11qzcBM\n/O2N+OboktzDP5tOpxbIplBitSkcbzfi1tskNaVS7qP5BpckWxjeqgWB5eOi\nnk4A+fIavCbTUuNXsKC6bhNkKlW+p3IMPEG8imdIg6uGH9gRTh5G+djL/ovb\nf7M4RQzC1g8EzdWDsfCBCUAeykotCfdtRmgMKMHPQYKscC9FneKvQ9UDosWr\nIk+TwZTqvqTSg5gDLghm18rgzwoPc3m3p8wpXdoDLZk/KbK7flRt7uAKmk98\nacpHtMPBh7l/rbJHoxHwePMIJee3/ERxfkhArKDEtqw3UrXVKtLtsXQIMWAA\nXl2FQtnPcHQi+zDT3QqZKrcvtQjCVuup1cnk0RX9YT4Ydp4qjKIZhzK2Z/kJ\nbugPXPWt2rjxOko2cQD6KhgntsgROt/puXRHTcVWRsifTEhcqhNDaXA6CAQN\nxOKtcSiGmp1FkwN/3twzudNZik0sViLSI6rYzwg/1OXgT8XH81nRKm5I0TpM\nAVQPA0llwG0cvTXLeldVSOwQB16DtDJOnN/RS/ACjQHfjuFbUvxahyHgwLEB\n92uz6H6+L6bWZ8m9r6gMR204mUQUXm4USWJhQKNESlmYNoqa9qM+QF7BKX6U\nOziJPZT6nHh3ll7yJCAEcq8wIS2h4Jy57ViqVW3hLlnonCIUWsCXecngNbps\nLZ61\r\n=Qk/H\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.14.0-dev.20210629.e97e6b0.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=14.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","prepack":"npm run clean && npm run build","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.13","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"14.17.1","dependencies":{"axios":"~0.21.1","chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"4.9.2","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","https-proxy-agent":"^5.0.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.14.0-dev.20210629.e97e6b0_1624951322978_0.6484591172921614","host":"s3://npm-registry-packages"}},"4.14.0-rc0":{"name":"@microsoft/bf-lu","version":"4.14.0-rc0","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.14.0-rc0","maintainers":[{"name":"peterinnesmsft","email":"peinnes@microsoft.com"},{"name":"cwhitten","email":"christopherwhitten@gmail.com"},{"name":"cmullins","email":"cmullins@gmail.com"},{"name":"sgellock","email":"sgellock@microsoft.com"},{"name":"joshgummersall","email":"npm@josh.standardlabs.dev"},{"name":"botframework","email":"botframework@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"2ae2c271383cf01385d18ec12b79999cd8392bb4","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.14.0-rc0.tgz","fileCount":184,"integrity":"sha512-c60oMIl5BiKynl6/p3mrNhQ8hhl+UbO+PmMmeBIrX8ykvJlzilFIvVUfz6/McCw7Gnu5dDtNsUheshanJLYqcQ==","signatures":[{"sig":"MEUCIF6qlFMfD9KwDFaGDvl4LE+ocnR0cTIYytdVPQvaFRSnAiEAotXqjxIA8rB7QuPmpeqFfyOOiQjeiawcXDB9YBiJjUg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1549906,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg22ETCRA9TVsSAnZWagAAoxQQAJ2jLJvJx3aJ3f7IKrV4\niHOMIJuO+Lbu+45DrxYT/ulHLPcI5SE1bPC+MBOVkHHXhL63euBgJpoRMFLt\nueBka8x/EZNOPHaDJycipRlJnIRV3TiTGFvWDMCksd8u8AbH+2WzuWZkGWhp\nD6dtAFNyrWSWXe/6y/6PkbgauTZBHtvM5MtQ+4Qs8fqY6eWc3KOnifYg/+Ab\nRqKda3rNyvkxx7HNSfgPsWFwzecx4xeE3HIe95EGjdI2yvV+/5l0bROKGm5n\n5dq5s0E3az+gPRjEYTzXGZi7WyB3EpNFIVhiLJ3PBIBkryinrwc2J9hByowp\nk+1sByJF13aJ01TStMRZbXm2R+AQhajDdZpfkyQ50C0Cqb8q8oEM0jGblsx5\nBsUaX/rlTlVzGKF65savcVSF0ceqbhona5E0MVQONSbAewD/Lfb2xEKTX3WM\nazOQl4KbG4J0g3/4Txein4Vgil0Dp4pr16M00FnEPBMG85gmaJp34LSdH8Mo\nNO52uOFYXL594aJqteJQmfuSA7jPrk84xp9723SMix71+MHWoSzF+GOR1FHu\n+zYPL4pANBvBD02pnnvJNIZ/adEYvjO7D1mvvGSIhraI8Cd19a9yl0QqQLVz\nCyCb8KGfPLNXLA1SCAP143XBIGf8Sa1EVjFq9W8uLpuGCG0D7VVDW3vMG9JX\nUXyM\r\n=KzXZ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-rc/drop/microsoft-bf-lu-4.14.0-rc0.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=14.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","prepack":"npm run clean && npm run build","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.13","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"14.17.1","dependencies":{"axios":"~0.21.1","chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"4.9.2","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","https-proxy-agent":"^5.0.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.14.0-rc0_1624989970854_0.2667895944904344","host":"s3://npm-registry-packages"}},"4.14.0-dev.20210630.8078cc6":{"name":"@microsoft/bf-lu","version":"4.14.0-dev.20210630.8078cc6","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.14.0-dev.20210630.8078cc6","maintainers":[{"name":"peterinnesmsft","email":"peinnes@microsoft.com"},{"name":"cwhitten","email":"christopherwhitten@gmail.com"},{"name":"cmullins","email":"cmullins@gmail.com"},{"name":"sgellock","email":"sgellock@microsoft.com"},{"name":"joshgummersall","email":"npm@josh.standardlabs.dev"},{"name":"botframework","email":"botframework@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"8147f3b10b7e08bb218144ede4f5053ad9338f14","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.14.0-dev.20210630.8078cc6.tgz","fileCount":184,"integrity":"sha512-/it2HTNKBwjlHn9wG4rbwI43grEiTunKLdkTCoyDIJcMpf2ufPZy0sBbac53GnBEYSH4u9Uou4X/cWOJRhRmNQ==","signatures":[{"sig":"MEUCIQCWTLLdV3CQRAe+dai1RayCr6dRdn3H5c4sQcwKv3wdOAIgFQfaRjLcNOWGqc95H3DULOF95UwtfycG5jDlUt5l/D4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1549923,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg3Bt7CRA9TVsSAnZWagAAHfkQAJ6W3z5j7nR0E55JQ/1X\n/NeKTEuceDRcU845fq21QPO3q9fAz5TkYBNTJmhvZvba0Mvr8FIfWF5cPD7o\nK9WMm1cHtdW0HHIylq2owyT8JyO/v/tkPb1UCIRamxCsvb2CWBIKChDjHyvW\nNorC1MDhJj5vOOwTzqYuIMHGws9neMS1b9tqadrrass7bsSgx0KTMO8+Ohlf\nenqP/WmJv8xNgi4ArSmxHkeWksW7WIDewlpYfYxat3QCuq8A4hsFPYT45IY3\nHB4X+dAxz2Vo1r1UPcBgYPLrwXFeaxk49BgLhq7sWAkVpREbWnuzTSeZCfq5\nwwrvqyoqxmC0ydTqh7ZJiDTSZHiiLx5CmwXv6447i9EeQmZ4WOVLysuXS4rC\nw4fWiXLmoDC5QIySEtvdnRRqoelu7Wl8QaubFQZW44FWLITEG2Iy16NOR1f+\nqsi38/R+rVrJrT5tZXVmzVeoQBgVL+M+mlQZPMvczgA4LzcQr3Y7KJzw12cN\n92+RxYg3QGDf3nZsj9A3jgUClU2/d6aUAWmLiqWyZbLbQXD2/QDG4hMl10Zs\nj1Xr1+wO7v5vVKvnr7TrHZP5xwnX3YbaM+P1tvqk3QYTvoZC/WqIlGWpGu7F\ns7DFMM8q21gEmVPtvxZHtAQ/o+vqeQ5QRJ9xjpuBBI4fp76GKPeTqbs1GAph\ngcMQ\r\n=xZMi\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.14.0-dev.20210630.8078cc6.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=14.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","prepack":"npm run clean && npm run build","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.13","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"14.17.1","dependencies":{"axios":"~0.21.1","chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"4.9.2","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","https-proxy-agent":"^5.0.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.14.0-dev.20210630.8078cc6_1625037691575_0.35870127852403955","host":"s3://npm-registry-packages"}},"4.15.0-dev.20210701.be9cd6c":{"name":"@microsoft/bf-lu","version":"4.15.0-dev.20210701.be9cd6c","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.15.0-dev.20210701.be9cd6c","maintainers":[{"name":"peterinnesmsft","email":"peinnes@microsoft.com"},{"name":"cwhitten","email":"christopherwhitten@gmail.com"},{"name":"cmullins","email":"cmullins@gmail.com"},{"name":"sgellock","email":"sgellock@microsoft.com"},{"name":"joshgummersall","email":"npm@josh.standardlabs.dev"},{"name":"botframework","email":"botframework@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"cdd1720b0a42d69250cc49832ca2eedcfe34f803","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.15.0-dev.20210701.be9cd6c.tgz","fileCount":184,"integrity":"sha512-FVf7RPQBQsMY76qZRc+8ut7F/sU5eglNTHhhcVquv6qQEkwq4GR6gROV6eD2MIWGKgmoMglZG3atmmYV39RlRg==","signatures":[{"sig":"MEUCIEQ7tCxdBAiMzFdTK85USrjU/rztJ+uSs2KwWqbF3mDmAiEAkVxx/OnvslOocoEAQpwE/jU9LhSJo28NqTvlb8c1yQc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1549923,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg3WyPCRA9TVsSAnZWagAApR0P/3NunVbodD3NkS2HSszT\nQj6xq93WZygfHEAr64qJrJXbEmHWVK+bB/9tA+8akgQ8lslwnufPLcFqfn0i\nLen/kaWF39O3CLWr4A2RdysVU/8Z55Yiw36igzNx1E0lOByAIptETkQ6s4yY\nDlY1eaBcEFojb/0ccezqZsr7Q+UfMS7l30djcAwMvwi9+1MjvTdBFRjWrEc3\nGjSTN041D6Qc6HVj1YXXJgRTndX2F9Tc4Q6wP2cN1b13ms1HFI2jEGnMY6uJ\nzCkZ7uPVJhcnIPEi2D3aUD/jy2sl/0/wOjH+AjaFkrv/iuNS/ZtJYkWX5BPd\nf+wr5fNEsAkcVfBGN65oLjPEUo2y1FYCm/Vf497siwDCnuWtvi1u3nL1hCk/\nxHp7jdafritkACPEPYdvpMdRWVYSjbDu4on4M+/Izj32LTb2GlllFUWH62Vd\nS2tcOwitMra0VrC6L/v1QaRZklXAxUkz9k7NcJKSg7Pr3tIpluhiluyZByh0\ncZtQ1KFDmU6OsaKscxH1GIazws8QlnY/FenQGjEZwDNWxt+usb/4YNXwFUCZ\nLUAzG9X7V4KVlgvvCkPZ0wPFy2pIFHmZ2wsM+3aHawbeunzxbLFr0BLNb0TY\nIZTBJQpm/Oq3fvbCHMH653wxW4+acsbz+/SkPYipSx4iQhZCfBR4+0VyUYLI\nUiLr\r\n=uDoA\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.15.0-dev.20210701.be9cd6c.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=14.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","prepack":"npm run clean && npm run build","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.13","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"14.17.1","dependencies":{"axios":"~0.21.1","chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"4.9.2","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","https-proxy-agent":"^5.0.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.15.0-dev.20210701.be9cd6c_1625123982801_0.28213809337702256","host":"s3://npm-registry-packages"}},"4.15.0-dev.20210702.cbf708d":{"name":"@microsoft/bf-lu","version":"4.15.0-dev.20210702.cbf708d","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.15.0-dev.20210702.cbf708d","maintainers":[{"name":"peterinnesmsft","email":"peinnes@microsoft.com"},{"name":"cwhitten","email":"christopherwhitten@gmail.com"},{"name":"cmullins","email":"cmullins@gmail.com"},{"name":"sgellock","email":"sgellock@microsoft.com"},{"name":"joshgummersall","email":"npm@josh.standardlabs.dev"},{"name":"botframework","email":"botframework@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"18ba631cba4f6d15510105d7afb999069aef32b8","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.15.0-dev.20210702.cbf708d.tgz","fileCount":184,"integrity":"sha512-GB28ECMcYx5honk1v1gvJjRPOPfP14E7yGOsYrM5+BVKhfX69KQHVGLmqPjNpjJVxskfm5gpnGAk6d50Iqo8TQ==","signatures":[{"sig":"MEYCIQC6MREPYhmaRTlc4VhxagvwzRwzr5ZlkVB04pu3Fdg1BwIhANc2j/htD2H66TwNWcEg4TLFOfTGUyA9rAYNl5mvn1em","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1550002,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg3r52CRA9TVsSAnZWagAA1PgP/jtOjlXQfH02RqUbYie/\n2JpAzcwZU1gGGcDObTma3rG/q7FMMQMohrJqSIN3cb9jNVKhjKHVrq/T9C0H\nKwEtKaPeJ10IaIBi9lYV1/J8goayn9vbR09kRl6N6zYwaaGsXj0HEyU1W4IO\nCnSA0vgN4QvuHPgZq7PFz26SnuYkrByMBvgQmyFVQiyZy+jWyg2DRrzkn1g2\nbz6CcxD7P3k/d39tHNagYXiYpCPS23veLemmJrZ0NJH135KMnEehQpreIVWH\noX49uo7sQG+mAfcK+IPlGb1BNvAIoWiWbFYzzbV4ClSyYk+/84QMjYZwqef+\nGyjaZwFCALIivo6iP9bG4bH78DIAXT/dcdNJzfUzJV8IhZDiC4NRuL3z8OTU\n+Q1mUI2UBNqZl4omydHDiolwoLOW6ZdGG5qs5R6xgOBDAzRFJl413pMzXrIu\ng31oSOSifsET8DfItgnPlSAloERkssJeMYBhz6eDWrIubzAMSpn8zgguw1OQ\nHsU+Unflkwnvim9i5fED+VEsbQ7JW3B52g0iIw3LKb9UWMWfj6/NJ2LapHa8\n5NcZqAVJl8lnDWf89S8A0FTwh0c23FP1f076n9z1rFYw0vRrX4KtLy7ObXYo\nTDgVetWivbr8645At+WRLnPsAfooLeJ0/QCxsOGXKfMYk5uLGbuO5sA6OnnP\n5qdc\r\n=ZM1v\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.15.0-dev.20210702.cbf708d.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=14.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","prepack":"npm run clean && npm run build","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.13","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"14.17.1","dependencies":{"axios":"~0.21.1","chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"4.9.2","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","https-proxy-agent":"^5.0.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.15.0-dev.20210702.cbf708d_1625210486073_0.8114668879702056","host":"s3://npm-registry-packages"}},"4.15.0-dev.20210707.cf471cf":{"name":"@microsoft/bf-lu","version":"4.15.0-dev.20210707.cf471cf","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.15.0-dev.20210707.cf471cf","maintainers":[{"name":"peterinnesmsft","email":"peinnes@microsoft.com"},{"name":"cwhitten","email":"christopherwhitten@gmail.com"},{"name":"cmullins","email":"cmullins@gmail.com"},{"name":"sgellock","email":"sgellock@microsoft.com"},{"name":"joshgummersall","email":"npm@josh.standardlabs.dev"},{"name":"botframework","email":"botframework@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"3bf9d392b5ba4b153efb6e93914f96770430a44a","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.15.0-dev.20210707.cf471cf.tgz","fileCount":184,"integrity":"sha512-prmgfMyZ+Cy+t8g56YRSgLXX9nKPoxaOYk1nATIsneVYdOxdu5SYi1CXk5QAE6gNCMNCahFmOQdfXlpsmw6GIg==","signatures":[{"sig":"MEYCIQCYGLb1uu3mZwGLN6AGRufRhehSvsV/5dDfaE+d1+t0jgIhANKdMJ9bPSMx+yn0vTWMCYxwY8nIw4rvHJg56Wutx83u","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1550002,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg5VWwCRA9TVsSAnZWagAAqqQP/jMsMMshXOp8RbdWpnbW\nkNlJlfkej64KSPR/ZV3hSB4wAA3706SDQ4xXp/qNPDF8ZOrpIPsIi0v4GF9d\nZ1+S1F25KmnAhnCu7e165LDvNcqAIFA5B5nGmHqdeVqAq9lXR+GuhWvPf7Yg\nV+M4PGBduh2WQpHuUgTuzvo0kcNYi/EmeW1llhFDfpPMBZDYfbBs/Gx1LrNT\nIjASUYzgxmuc5REb55jTbzHmwC2/yiOBAifbKQFTwiD/4n35Kfu4hf6Nrvyd\nQ2edpT1A9B6kGk9XqbXt37Y4SqqcLZsHFtlZEmmuU7d9oAuxMUd44pW0iMSE\n+XC4BE6OUipdBET/7nwFKzbOCQr3w3wCjqBxzb+nZ1mq0fMcqcNB933l8juS\nE9vE4Vfq4UQIIhX+R7hn7+xYmkkRCQI7vBiK2X9rx9pKleptCXgGrNF1DPk7\nsPptOFyvRugriUOXtz9xoLhdiHThVR70s6KyGWhBs9942KZ64NGam7lpFOoH\nLISJN+dMZwJt67DKtqOqxOiTrca7yqFqrx85awiSO7pvJoANBu0kpjWrUr0D\nizzBtxNWAJAtMte287cSnpz4nsVS+2SOaK1SYTTb6SE5tSuFCUUjCwVFbL2A\nNLEN+NecIC5hvNRyJfVOseLWKOniMz2njlRcXbY/EJ4cqlpcyyqWQhnVESaL\n7lmO\r\n=p5A2\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.15.0-dev.20210707.cf471cf.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=14.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","prepack":"npm run clean && npm run build","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.13","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"14.17.1","dependencies":{"axios":"~0.21.1","chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"4.9.2","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","https-proxy-agent":"^5.0.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.15.0-dev.20210707.cf471cf_1625642416126_0.7488170521315489","host":"s3://npm-registry-packages"}},"4.14.0":{"name":"@microsoft/bf-lu","version":"4.14.0","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.14.0","maintainers":[{"name":"peterinnesmsft","email":"peinnes@microsoft.com"},{"name":"cwhitten","email":"christopherwhitten@gmail.com"},{"name":"cmullins","email":"cmullins@gmail.com"},{"name":"sgellock","email":"sgellock@microsoft.com"},{"name":"joshgummersall","email":"npm@josh.standardlabs.dev"},{"name":"botframework","email":"botframework@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"bf8f91fcdd28acdac5171de4e4532cad5b04025d","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.14.0.tgz","fileCount":184,"integrity":"sha512-TLYFgWtEGTcSTS476mkNu/jNRV7wU48V+UzJy8RSk/hDLgmUh1Oc4t5aldxZMZmfjvuLw1UmBFlgcNAhXsg7TA==","signatures":[{"sig":"MEQCIEZ7eKIyNA3aucfml68ykd4wDLdVWzaVSVGkxnYDgojZAiAyonoD2r0uMUKEd24NG7cF7S4HCMgeoU4GtEkY2YYk9g==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1549902,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg5gALCRA9TVsSAnZWagAAZA8P/i1BpOQIsB+J2ddkZa9f\ntnT8YbFwadmXtFP4qawnGJzBio/uJx23man1FoR6bzeYlCgt6SSFCmA5fR3r\nrmBiwgqtLyic9FFBogmaNlRihrr0SYzydSK0svjpG49Vg2LzmCLoM6fqY2Sy\npm3JgvZtZZueAT7SKAqeqiINNeng7zh2FAB3zqdDIO9R2BNpbk+W2eY9cD3a\nU9awbRXvfrI1xqvptPVakzGq++FvYU3vRLRg5bJ2mEs5WaoA4Qd/eXXrrVZG\nsqw5yUuFgKdRJHUl6ry+pRva1bN+fHHPKiQ1dhQStVDppalAm5Vw7KoGvgdp\n1RoBJAp/EilUyzZWEft3BhsCfw93D73hucPzHQmgQb2KOmCJ2p9/P3ndqDbv\nzkcaSTVl9x9kHWJ9cYrxKBUQg+kusnP9RSuGuHtR+GLvRJBJovEWQoXRKNHm\n75x/fTrjCELDvuIee1dAy2+vKONycqiDAK3ICeTKql2bwUkvciEDBY//Z/IO\nxprgu01H+rAVOVVwZHjHn6maH3mKet2YHPVPu3TTsdUO980U/rx7UkOmt/Y9\ncXNcnnEb3GtSgP6pDmUcMKLpAmglRPNf4SkFEI0O7G1cP7z64y+u05zXR2i2\nDI1vtmoU6DkxKgl2xOnduHfqaKAMxE+5PUAKAL7A0aliO0f5G5JgIL+UbTvB\ndTBS\r\n=dzG/\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-rc/drop/microsoft-bf-lu-4.14.0.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=14.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","prepack":"npm run clean && npm run build","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.13","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"14.17.1","dependencies":{"axios":"~0.21.1","chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"4.9.2","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","https-proxy-agent":"^5.0.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.14.0_1625686026574_0.19867503647645757","host":"s3://npm-registry-packages"}},"4.15.0-dev.20210708.f16ca8f":{"name":"@microsoft/bf-lu","version":"4.15.0-dev.20210708.f16ca8f","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.15.0-dev.20210708.f16ca8f","maintainers":[{"name":"peterinnesmsft","email":"peinnes@microsoft.com"},{"name":"cwhitten","email":"christopherwhitten@gmail.com"},{"name":"cmullins","email":"cmullins@gmail.com"},{"name":"sgellock","email":"sgellock@microsoft.com"},{"name":"joshgummersall","email":"npm@josh.standardlabs.dev"},{"name":"botframework","email":"botframework@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"e3aebb7e4babfc360eec13d23b7db7ae0dc9fad5","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.15.0-dev.20210708.f16ca8f.tgz","fileCount":184,"integrity":"sha512-k8qb8af3BfBHyCeOC4fjL2OO70H4vPlHRFQS9BozQaq7yyLKLLSP48/njFVKwYA4KMvy6gSJxSrpP6GqC0yLIw==","signatures":[{"sig":"MEUCIFuJnKW/bvbwVxUID0T90Y1aTFCLCfJUlg2UH06YpybTAiEAlMdej8Ud/FA/1y5uZAqLzBbtvJrlOJn9NO9QsCZhzDU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1550002,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg5qb8CRA9TVsSAnZWagAAvxAP/jijtpcDqfGsrTWRsSs5\n84CRTGFL+iA60e/R9uc68VqBgmX11NvpZX5KCGDOCgFYjRprQJx6m9EBniPS\nTMhBWpT5YH4KWFrv5WopQ6rSkt4a4n0jyhCjhKIrQiFq4y8Er7Rx+gMpudL7\nUSvGXAGM8BHIKB+/aPqzPPNGaUDk8BsPqFusmDeh97nPh6zKYmQkZugJWn7R\nVCyIP7zOL3bKmuNw4uk93TvzlTPZxcGyjYN/pd0lU8QThZWV0wQZKvuzsS7L\nlOwqVd9xVwyRj8pgZa+Qz2GkB8uy0iam7UaCFkwQErVAM0u+Pr1Mvo1VnvgI\nTnqCncDfBkqvnccitdYYhD9n87TeiJmWkNcft9wd/UWe9pWmN8uJmXGydsRZ\nlncl/67/emZK5Gf2osEsfCDIkzpawiFfzkHhG/n8B0c+K8/96PityLx4fM8x\nFcU5ddy3J+AzxFmw5Yu3frW/WG2oTLTT0V3pOL4MmJSJrYO37V/75rScN+cQ\npp8Klmx2atnu36hPctLLQJKDoXtCvJFIFC2U8fv95zJSiewYNu4WkDuvjLgA\nnJjERt7tMtYxyOOxsAGRU2/uzDs//3f9Hjf108kG2vKU6nFt1Fi8EQPwQTKX\n/3elXS1e569U60GzheRShe3aWUiQ8GIAi130hUbCNLI9pB1zgSyO0rw3R5tV\nnqeS\r\n=KXxx\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.15.0-dev.20210708.f16ca8f.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=14.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","prepack":"npm run clean && npm run build","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.13","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"14.17.1","dependencies":{"axios":"~0.21.1","chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"4.9.2","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","https-proxy-agent":"^5.0.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.15.0-dev.20210708.f16ca8f_1625728763758_0.9465858132675609","host":"s3://npm-registry-packages"}},"4.14.1":{"name":"@microsoft/bf-lu","version":"4.14.1","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.14.1","maintainers":[{"name":"peterinnesmsft","email":"peinnes@microsoft.com"},{"name":"cwhitten","email":"christopherwhitten@gmail.com"},{"name":"cmullins","email":"cmullins@gmail.com"},{"name":"sgellock","email":"sgellock@microsoft.com"},{"name":"joshgummersall","email":"npm@josh.standardlabs.dev"},{"name":"botframework","email":"botframework@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"1924cb7c70fcce855d0514a136a8f5f6e6035b68","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.14.1.tgz","fileCount":184,"integrity":"sha512-7NavRwFYic3iZ7BfrJixr+Wzb6gghAqH3s/eceHnfoKvAb1rMA3A7L+7ZMuqLsAv/2Z36LYVWoTtgMkMeM0MpQ==","signatures":[{"sig":"MEYCIQD6oX0FSsNEQNUWZg4jeGLiOo7IfnYqM3N2p+3Js7jMZQIhAN/89OLFh20aAweAcIBfyhFkbh0JGfU3qPrLJEIu7CVg","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1549902,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg50arCRA9TVsSAnZWagAAXWMP/iQOQ3L9/OnKaPvAL71X\nRe3E0xsrtU5oZn5eeARsA2mTErwSgG0Ws8zWTVyK4GisxdNyqBddr2Uvp4Mv\nM7d/GOGiYvXKXzdNrJDGsZODnSWetODaxIUQJZx3AhJYgXnINn+9loMKn1pk\n5g4orNrfOv0N9/NFY/R/Dz3kJhtW7SVglRZIOl8CwMdTjI3uGnwma4K4vjEk\nABYZHxpPS+szEl5X8hNYpjsIQnDFZZXlTdSK9O5VbcMV9lWDykAant/LTXhO\nrCp/Bmht2OhbqYeQNR52LEahZ+8pXdQHTU/MfXUMAsYWCclLT5MGC47iq+Mi\nSTACFoICfnFmUsLUgtAHHtd6X1lcuL05cvVPYpZ9Whri1XjpDNYcVaTQtkqF\nLgc/fsl/qaCBe+muP7SCqXtk0WT40aLvOSFZOyfxmXTqn8calz3xS8obpy8r\nRT5xteO3hraEMuBYHaJosSuRuxXAchHfrKy/LWEXRzykyCIg46PLi/SbCIqM\nzV7musOZxcHxylVAABH1yZlBdkg9EFOsEGLY1roRMqDuP2zkF9A5wQ0NShvX\no/+6P9RL1aPJjzrL5nEUopfqeW9O0JPp9IKvd8bC5zJoF2MRMIliH0n0iRwi\n0R5v0s8b22KkarcbunHAd3F4uck8deXqo3OEx3goE+rHEyHpwrWE388diz4P\niRk6\r\n=w5jP\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-rc/drop/microsoft-bf-lu-4.14.1.tgz","browser":"lib/parser/composerindex.js","engines":{"node":">=14.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","prepack":"npm run clean && npm run build","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.13","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"14.17.1","dependencies":{"axios":"~0.21.1","chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"4.9.2","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","https-proxy-agent":"^5.0.0"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.14.1_1625769642565_0.28164796636255063","host":"s3://npm-registry-packages"}},"4.15.0-dev.20210712.eb38bc0":{"name":"@microsoft/bf-lu","version":"4.15.0-dev.20210712.eb38bc0","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.15.0-dev.20210712.eb38bc0","maintainers":[{"name":"peterinnesmsft","email":"peinnes@microsoft.com"},{"name":"cwhitten","email":"christopherwhitten@gmail.com"},{"name":"cmullins","email":"cmullins@gmail.com"},{"name":"sgellock","email":"sgellock@microsoft.com"},{"name":"joshgummersall","email":"npm@josh.standardlabs.dev"},{"name":"botframework","email":"botframework@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"9d18cee4a92112bb07098c426a0801181f6bb2c2","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.15.0-dev.20210712.eb38bc0.tgz","fileCount":184,"integrity":"sha512-dRpzoCh+cx5ZneDb0YFfdg3/FVKpMsEkWFhjux98/bWox1qLDE2Ab1XF923z7s6YKvdYk4HtFr/fESdsgcySmQ==","signatures":[{"sig":"MEUCIG1KDMTnDzanKT0vINhckbJIlaPal1eDbZ5BU8xMiHYjAiEAndatHDkVIygpNC7IYMQV5KS10BBEY1NOj7Uy6rDU7Yk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1550002,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg6+z9CRA9TVsSAnZWagAAyLcP/13djHZHXVerfu6mxDuw\nmiIM+QKcGHwOfD3hITBHvgTT92YI8IiKJ1+mbQx6O2fhcx9uZUJVe59L+ibK\ntKSNxW7B/XrjpRABx8SxOMepdHNv1kuH1wkVm8VN1GeSe6EJijymdQ4S7KVH\nA2tad05LQSBURkgvAJncnNLkUbAsHSjhaEBjw8Y4eGhxhhn2R0xiDT7IFfci\nXA0E2wRtiRKVFiOhnhbPGatbWOm2UxFZs79jNlN2bmTvXVcLnTQtqa8WrnkJ\nyMkfIZ0BriAd5Kk57/rw+7IiQoP6L8f+CvlGWREj3GiZv0jHxQymcHiaO+4h\nrGGZ0X5QESvg7U8ChIstBVPeEDqMcWJhRDnQsNoo3wCPJO47d/x+poB/b7Kp\nmnlYmi83eB/cpHyW/SaxFf8MX43OA5DhGf7Z0YEeBcLwLpp9ERO7Q8OrDMQn\nlheUTgp26TdAl6IVk0gUaGMrmRwBDqTQcA0J38SqX9SDecdKu5MTsKLjK9hn\njL7CtObG9bky6Jr4pm72pnaDZToeOoaVOfFPk902/M5RRCB5YXYjM92efYyk\nFNrrLma5EA8Gn+qtRjq6bQSOCLgomlU/YgJXsVtiexotrPXUJakz7lHzhPkP\n+vcfLSlbykUyEjidc7a31vmr7rEuEvsgT+vXUddMgMohKWyhVEvHAKBv0mfL\ns/AC\r\n=nrZX\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.15.0-dev.20210712.eb38bc0.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=14.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","prepack":"npm run clean && npm run build","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.13","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"14.17.1","dependencies":{"axios":"~0.21.1","chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"4.9.2","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","https-proxy-agent":"^5.0.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.15.0-dev.20210712.eb38bc0_1626074364790_0.7596981253507373","host":"s3://npm-registry-packages"}},"4.15.0-dev.20210715.ead1751":{"name":"@microsoft/bf-lu","version":"4.15.0-dev.20210715.ead1751","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.15.0-dev.20210715.ead1751","maintainers":[{"name":"peterinnesmsft","email":"peinnes@microsoft.com"},{"name":"cwhitten","email":"christopherwhitten@gmail.com"},{"name":"cmullins","email":"cmullins@gmail.com"},{"name":"sgellock","email":"sgellock@microsoft.com"},{"name":"joshgummersall","email":"npm@josh.standardlabs.dev"},{"name":"botframework","email":"botframework@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"f8c85f74530822edcd6980d5426d10c4f84b0576","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.15.0-dev.20210715.ead1751.tgz","fileCount":184,"integrity":"sha512-VCxOhds79OsTIwHuwt96Ptd0smJbSaiwr+NKzbbTcUoG+GxRJtOsUx2SFytYxWt1e+KvVDNAXrW350zGTVTNCw==","signatures":[{"sig":"MEUCID+63KmJD6Wi0CG9D46y6bCx+NyJu+VSkqJEQ+emfjCDAiEAx2OUv2Bk+qOZfKnEOFUQkeQO1glcsZSpdInX+CY/V0g=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1550002,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg7+GBCRA9TVsSAnZWagAAe/EP/0Cy4wSIErlpT2FYLuDE\nlP3ToFWATcrttQrZcFQURYhXiHxdrmC+IKIESRucMI+tU5tBHbV6jo0zdEPE\nMlxLsYBivnYlsASAianW0aHLzVq5CcZIhJi7AJ0/xWcTLVHeFGKNXxhDkZoc\nlE8cu/D92rDVyE82e6g9EJtBKyo+zPci2AR7ijv7VPHyjNlonAoFaaznqVhh\nqSBoKMMDgaMqbZrnCQd0M4aK6UvkJUomP8D52oRr5wdEUDcVch1aCshzn2es\nP5+P8S9Gc6IbTHshZyiCVJXrzLOyjzcCall1Ac9a3i1glwlAHctkZYNEoWSJ\nh4lAzz86BxXBjhOyCek5csMHJMyetyCQ13AnLiFdO5K9a6LEByLcWVGMd7hK\nItZz3EwyzodIa7IVzgAqHAvsj3EhumD4KmpWYaU8aeoNO10zPAxBZvon15Cw\nEJ/rTcsG77vDZ9sFlKCZR2XUmKANYr3R4ejMAEUjZaF3QMcWApEpa3EwDI1U\nq3zXN+sfrvn8QiMCEZeIrc+pZ89JzP5IuK9pU7dJVGAzQxQjug+VDvqQ/MqD\nc4arZw5inJxlLNkPhahV8LwrNNg4hXEIRhoubBAqNLILvS2AvnL8Ww3mvAmN\nSWofwIktKWXkGnngDQxJYKrmaRxCVl+Y5E+lsa+ddNAiwMwnF9t+w64S6M4y\n0mst\r\n=lrxa\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.15.0-dev.20210715.ead1751.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=14.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","prepack":"npm run clean && npm run build","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.13","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"14.17.1","dependencies":{"axios":"~0.21.1","chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"4.9.2","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","https-proxy-agent":"^5.0.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.15.0-dev.20210715.ead1751_1626333568755_0.7185311574980127","host":"s3://npm-registry-packages"}},"4.15.0-dev.20210723.bf1f054":{"name":"@microsoft/bf-lu","version":"4.15.0-dev.20210723.bf1f054","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.15.0-dev.20210723.bf1f054","maintainers":[{"name":"botframework","email":"botframework@microsoft.com"},{"name":"joshgummersall","email":"npm@josh.standardlabs.dev"},{"name":"sgellock","email":"sgellock@microsoft.com"},{"name":"cmullins","email":"cmullins@gmail.com"},{"name":"cwhitten","email":"christopherwhitten@gmail.com"},{"name":"peterinnesmsft","email":"peinnes@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"a4de717142e0af92a5f873504430474914dc3f47","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.15.0-dev.20210723.bf1f054.tgz","fileCount":184,"integrity":"sha512-yQn+quXRwEA06DFifkBPgMMsQDJ9bMRDeiiZE8mMPON/PxoaNXWGHwDqOhzh5nGrIkWd2+YgBjiqYwPky7BZFw==","signatures":[{"sig":"MEQCIAg05V8NjBu02EzwZsewVFOkpBGH6uxf52QRuQ9uZEZAAiAVeb473RyWd8S37WC2Vn+JjNpfTgC3HKQu/IkbVYY+GQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1550002,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg+m6HCRA9TVsSAnZWagAA6kEP/1CchtSuTgx7JswRtjVX\niL9Z7A0eSH5yQHzR3Q1QcNq64+iHqbE/qT8D/qJqfOS0MCdFQQ8jm7ZVyyaJ\nWHpr6L0xFXFobx+M9lTHC1vlWtGZj5fabZU8ziN4BEUSjQqglV1p1im+Z56p\nIYnF9M2NEfEHMudgiZZ5y0PuVhX3hNZGHESVXWnwnMfc7/mqrP2nmfP+2i2S\nHByWDbfDyKWerEQI5jZrr1w1ljt+MtE05ef8GcXSqsn6iMR+pzgHVdJxyZIl\ndyhmzSUv4yGDry/Bj5gQXtKXVcgbc47PejPmr5O0UiZYAG/u6qBvWvU5RaWL\n99CBZZeD/9Hi9xh+JNCU2q4c8ivu7yt5XsUzuhEwn9M1orVD3e+vGps+NE2Y\nz18l4sM0jEVM1KgitfjWTE935CXUhjGagmkz3hOCsaaxdQ3egSY2esdn0rBw\nXi/aik3n91J1bgPaYMbsC0mC9FH7CdfViaVOwR7ABN44NeZgQUQ9ilrpP+Uu\npyrkouffX8mrWJaypveio6wLYhyO5JWOnPEwxNeH5fIBuv1kPTHfYV8YuH9u\nZ4XQMG+9CwDCy/3Zjte9fjjKCyhA+SKaqGCBmRIT4ulav4C2JwJWb93lf4Wp\nUUciaWg5NK9SzuPH+lKkvJRJpwon202dSN8Cn/8DdixR6cvlGEeJDpROUQ4j\nVvVO\r\n=PoVU\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.15.0-dev.20210723.bf1f054.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=14.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","prepack":"npm run clean && npm run build","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.13","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"14.17.3","dependencies":{"axios":"~0.21.1","chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"4.9.2","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","https-proxy-agent":"^5.0.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.15.0-dev.20210723.bf1f054_1627025031107_0.5313414058906691","host":"s3://npm-registry-packages"}},"4.15.0-dev.20210803.40549ca":{"name":"@microsoft/bf-lu","version":"4.15.0-dev.20210803.40549ca","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.15.0-dev.20210803.40549ca","maintainers":[{"name":"botframework","email":"botframework@microsoft.com"},{"name":"joshgummersall","email":"npm@josh.standardlabs.dev"},{"name":"sgellock","email":"sgellock@microsoft.com"},{"name":"cmullins","email":"cmullins@gmail.com"},{"name":"cwhitten","email":"christopherwhitten@gmail.com"},{"name":"peterinnesmsft","email":"peinnes@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"a4ada6bd5cbb5aba01f1f089e7bda238be3c5cb9","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.15.0-dev.20210803.40549ca.tgz","fileCount":184,"integrity":"sha512-6nEiFcJuJYQw/c9UeskQsEGsTsZXVTPWjlLLSmJvFFVGTWj9LgIgwkCYp55ZKtRqjmE/M02GnDaUdDBeLtIJ3Q==","signatures":[{"sig":"MEUCIQDyA2Ov+9FGeWRpRhAyTqOtsxX34tO8nQqIB5MbVuoNlgIgF2EeX053nZxZPoZrLmeWRTHUb7jDmnNF0PeZLUJksYk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1550002,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhCO6VCRA9TVsSAnZWagAAV3gP/j5Qz5mFSrks16OJjDNx\nzjTr+lTaL3qewskNq9jeoKqzpqyq5k/Kp7IuBFM4jPukUbFQAbc3VPn8K0Hr\nRoIidg5pjyWqiPlgJR9eutA9fZugXyx/M3L0C6PPVvylSbBM7sPn/eJS8fNF\nRDLdYANDLZCf3qV+hCISIrtKRP4s2ftefcXKuplBi+lyGm0qOQ9fG73DO101\nbBla/lJ43/Fnp9+DSWvQtR7T8B20ppNDEEPjtNfrN8D2zL2GSKjZbafBi5PZ\n9jkWiTfHYyDjfqtxSFZzTMzX5U6CFV757+HBEvZia5mRSaUbHxmK4bw6VP1a\nOiKYcBo9whJm1io4Qig/U0txJX+dA3vdbCVXOqPSa6JgjWGvDJNrWzKunCLC\nDQ1B2CgwAT4Pr9Lpfx8gTLT106sYy5AXiVT+DLnesJf3AJJjpx9JXMu2yyBo\nCSUrq01AxBkUChAZ6r6CzHPID1A9klXV9M8pNw5Zna04BCFh4r+EQZ16XNek\nvzcmKGgWrWT9i6i5ZhkhmNcFTXmzRo1cGrKdyhlq01DkcRIxLWvQn7P66WY+\nQIlQcAAKTzjfiBaxdBSCMzA+JFZpMxneeWQJAG3G6UhNjbN0g1mEp6X2rWlN\nicS60/DLT22AyeP66Om3roJ6ed4ki+HogtuuHzd9zDAb4zwOy3zYnJHYmoBq\nnux2\r\n=su8R\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.15.0-dev.20210803.40549ca.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=14.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","prepack":"npm run clean && npm run build","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.13","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"14.17.3","dependencies":{"axios":"~0.21.1","chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"4.9.2","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","https-proxy-agent":"^5.0.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.15.0-dev.20210803.40549ca_1627975317084_0.7286567213746726","host":"s3://npm-registry-packages"}},"4.15.0-dev.20210805.6321dcc":{"name":"@microsoft/bf-lu","version":"4.15.0-dev.20210805.6321dcc","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.15.0-dev.20210805.6321dcc","maintainers":[{"name":"botframework","email":"botframework@microsoft.com"},{"name":"joshgummersall","email":"npm@josh.standardlabs.dev"},{"name":"sgellock","email":"sgellock@microsoft.com"},{"name":"cmullins","email":"cmullins@gmail.com"},{"name":"cwhitten","email":"christopherwhitten@gmail.com"},{"name":"peterinnesmsft","email":"peinnes@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"57920dabc1af3d8da85b55876706eab9cffba241","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.15.0-dev.20210805.6321dcc.tgz","fileCount":184,"integrity":"sha512-p9hYGF/wK4FwMVPmJVY+D9M8h6c7ZaciEEpuyoK8XU3fgb7e2/W+V+KpQvxmrBUg/5vuxA8o0BfTydXavbi0Ug==","signatures":[{"sig":"MEUCIGzWymrFiaEPZPq7jH33bz7vFIIbcHqrGTvOGEQpIMPsAiEA4GGcBabLjX7cHh3cZAi9UO2oI39CBdSbXFzwtgz20V0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1550021,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhC5E4CRA9TVsSAnZWagAA2FQP/ROajeiE0TaKW1nkVG0z\nKFDSN32vehUqk1U2GVUMihjAG+p04oSGi0r2MWft2+RT9ZnOql0R1j5ltHp2\nUtl4sOpWjGavE1oMkdd/UGzty2XB17ha1MCZOnVmgwXDs6jY9xNnn7Tc9Rvn\nLpCuji7pSIqZcCTRxe9pc2R0r3Ed1ZcsDIoqQvcESpKd/yd3sPkeVcbbUqb9\n7/jcL9bqGctf+5QnVyFOnsTax7avCyHzr8LkcDtVF/ogOas/18rXAS1FwV1j\n48HQ4LROa50XB0Hwl+CgFr82v1qDLAe3OdNvH0W0cH/X0eOHFSA1fBF2RUZe\niymBifrCXFL/7v1nM6dQYIloWZs4Cp+srTv39Jzpg2jl62C2wccU2SitIwvQ\npzs1OBpNlx8O93QkBoeE68W4zsgsach9RY34ZEaxhNxmTk1tfQof8Htk5RLz\nUzMOp1vz8uVNueYQMlmWAYYOPsEZj4+Z5F2NzJVRQbfLH0AjF/roMnIozAvN\nHu7M6zobScNqUy3oKv0j32OD2BahvuXqiBCIZkLw4riZJh9Fy063gdDed0yD\ndg2f7TRTUv1zxE+uCfsFPKS8x5ZqML/AQ2FgqgzXCUyiESs+3Cd9aCqr/B43\nhklyb8pJi/ZQADeKjWvrbjg37y8ZP8f1sCDjkhROu0RmAWRVHY6ks4ejf8zq\nB7gZ\r\n=k6P1\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.15.0-dev.20210805.6321dcc.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=14.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","prepack":"npm run clean && npm run build","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.14","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"14.17.4","dependencies":{"axios":"~0.21.1","chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"4.9.2","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","https-proxy-agent":"^5.0.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.15.0-dev.20210805.6321dcc_1628148024569_0.5875649883901586","host":"s3://npm-registry-packages"}},"4.15.0-dev.20210914.7a936c1":{"name":"@microsoft/bf-lu","version":"4.15.0-dev.20210914.7a936c1","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.15.0-dev.20210914.7a936c1","maintainers":[{"name":"botframework","email":"botframework@microsoft.com"},{"name":"joshgummersall","email":"npm@josh.standardlabs.dev"},{"name":"sgellock","email":"sgellock@microsoft.com"},{"name":"cmullins","email":"cmullins@gmail.com"},{"name":"cwhitten","email":"christopherwhitten@gmail.com"},{"name":"peterinnesmsft","email":"peinnes@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"f1543f6ee37ac8975587f8754d8e939e4722645a","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.15.0-dev.20210914.7a936c1.tgz","fileCount":184,"integrity":"sha512-s/gcPlfV4VDCNvygRdaxqLGyLs282mTCP3n9XEqtYUZdXaI7jnWXeP907V407wMfKXD/w6cy4VnwABWAQdkyaA==","signatures":[{"sig":"MEYCIQDTWvvZjogEH1J/qzG0QrRQ81MQ+bjwcPh7Jaj19QLZ3QIhAPYsfd1Tc5iLmDvrP6QauK6PQJH6DAHSe4sgJHpsRgfO","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1550021,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhQE1gCRA9TVsSAnZWagAAZBAP/j9YsClAe6D68gUPkmUS\nanX+kc+DgHql93/ZiURXwZlbxS1BWyQ1K1jTBy5MHdUekHnhR4hZINSw3pei\nN+w/uD5LJbhx7CmqgbVLEbbn4Z124d8ek2tTfCmTQMqKpoY4IJu3Q9elmi7a\n7ScQ5xiCl2fyA6nE2QgqiRTzvBkvhKQ+5ljHZgRJ/Urb5Gro5OdVUsTlzmJK\nLqFKmX8w511J4bAZea0eL++4utLz82RpJdfuVPhnPeqa3isnmLWrzGuvaUnR\neblZQm1AWHRHruPctIvN265jMD38DshYXTCJD4LZPuPOUQM44rCDGePOg4YY\neUtb0T7Gr1Uvg5ODjs8NJ4rm3EyU3jJyqXIp4AbCq8NpYfpqsmi1dsX7P93y\nCAnWk0M3u+JoDqZrDIswAEvEDz0B6cTxDj4+Xib3IZNetEk6QCu7pOmQ9dGU\ncJZQOZYPqLucXB1hvJ4mENb1KvmN8DKHvmJDzpd0RBRkMtKBzcixPpQJhXvf\n3pU/KvVtYAycbXnlnBblLfMki3DqWX7ZJP8sXtlI35rQiW5G94T/Wzx6zXjw\nfKJ7JXxZLItExbzRjFUTqyIzA7MnZ0TEiOvtkAeJIizvpZLjxqS0B5T5khne\nxyB1eI6sYok571MWj0DW8YkyC8PzwBQhcNvXBWbQwhcCcxNS55rR0LJ0qHuQ\nv8Om\r\n=1YPp\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.15.0-dev.20210914.7a936c1.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=14.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","prepack":"npm run clean && npm run build","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.15","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"14.17.6","dependencies":{"axios":"~0.21.1","chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"4.9.2","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","https-proxy-agent":"^5.0.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.15.0-dev.20210914.7a936c1_1631604063745_0.752541833988573","host":"s3://npm-registry-packages"}},"4.15.0-dev.20210917.b688652":{"name":"@microsoft/bf-lu","version":"4.15.0-dev.20210917.b688652","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.15.0-dev.20210917.b688652","maintainers":[{"name":"botframework","email":"botframework@microsoft.com"},{"name":"joshgummersall","email":"npm@josh.standardlabs.dev"},{"name":"sgellock","email":"sgellock@microsoft.com"},{"name":"cmullins","email":"cmullins@gmail.com"},{"name":"cwhitten","email":"christopherwhitten@gmail.com"},{"name":"peterinnesmsft","email":"peinnes@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"469c042ca418ceac7292ac8c9ba81da58bda29b2","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.15.0-dev.20210917.b688652.tgz","fileCount":184,"integrity":"sha512-VLNDSK1bKdjIBKgPU+jaA5wWuy9y2daSwkR7AixlmfTHEX4C2Kg8CChJ9yKfUo3wphHDoJL0EGpa12SDpk1C8w==","signatures":[{"sig":"MEQCIBNXAt2aOrli6NOQRFXzrTA3/K6zZnIsQpJWTAQRtAC0AiBob91f5N1Yb8PEWP5Bu9RXYZb0ePxMaW3Mw+eUNfnoFw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1550021,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhREKGCRA9TVsSAnZWagAA7eQP+wfw0dQ62Bp8ot2qA6Z1\nsC3z42/STM/1h1NMUEkhZ1UEiyX35VygWLKGy57gV34Zm/OrguzXQFWP3ZLh\nBvtJdlc6l1y+9+lc60+yWMURrL/DvE/ZK/QWkEFDgQ8kaxSITJ8rjnA/wMCE\nNriL/dozuh3Qp6pNIzvZl3R6/9AkMQ75yZ6X/wColls4JHBLEbN2mlD11oMu\nXK//YGlq3i2XkTLZ4TZMdf1wR+vh5p20G94NMKYVa8WCQeI8H4edQaLOHBvQ\nU4r0kwHf2pWsKxJqsMaQ8OKUX8OZU/zbOjIW5wI5xWRt/AKQMexhDRGIzOi/\n1q4Wcu3DOw7MPDZlxz38HDqtP/4Y4WHbUULP8Zq5BSqr64zTpm+/hxN3yiFV\nfRqUSInPKJR6TJNlgdPJTJLHufSflWdse2NDvDPgsS3LMRrAHOwV67QRcFcT\n1LIi/D/BeogNEEwqS15iMXqID4zZ3BA1uv6qQvMrZ1VSv3WR7+1jcTPuwvAO\nUjXJSecPCwbrvcATxsuA97NlJ6SNHUaRVvqlCNI9l/1aI+eKsBJmEFLt9vr/\n9P/5/9ft589TBx2uiV1C+vnnMF3bttaw12uqn07FZ2lcVLWkIrqoYrx5vU4a\n6WN88HXOfUhLdygklwcrxtjUkZpRSNc249irZ7s9tJGXeCWMd0XpkG/afYW4\nPMCJ\r\n=m+Bt\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.15.0-dev.20210917.b688652.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=14.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","prepack":"npm run clean && npm run build","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.15","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"14.17.6","dependencies":{"axios":"~0.21.1","chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"4.9.2","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","https-proxy-agent":"^5.0.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.15.0-dev.20210917.b688652_1631863429894_0.5936575996876774","host":"s3://npm-registry-packages"}},"4.15.0-dev.20210920.e4d38fc":{"name":"@microsoft/bf-lu","version":"4.15.0-dev.20210920.e4d38fc","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.15.0-dev.20210920.e4d38fc","maintainers":[{"name":"botframework","email":"botframework@microsoft.com"},{"name":"joshgummersall","email":"npm@josh.standardlabs.dev"},{"name":"sgellock","email":"sgellock@microsoft.com"},{"name":"cmullins","email":"cmullins@gmail.com"},{"name":"cwhitten","email":"christopherwhitten@gmail.com"},{"name":"peterinnesmsft","email":"peinnes@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"ac6e3b4f3f699f455548733f74a24828bee40cd8","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.15.0-dev.20210920.e4d38fc.tgz","fileCount":184,"integrity":"sha512-s95Llt4ILJyJKPlqrc11Dh5YXgPtyQGtfF+euav+gICQmynvZHxYLn93ofYd6Dx5TLlseuh7x46fBAPi8lYwAg==","signatures":[{"sig":"MEYCIQD6vfOE9X4tBlV+MM7S2jldyjSX6noVy8pV4pnigzdg5wIhAI8Z9ykv5Zci7v9CsEvHLJ+2S5oNiydZjj4LMdrvwqHd","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1550101},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.15.0-dev.20210920.e4d38fc.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=14.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","prepack":"npm run clean && npm run build","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.15","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"14.17.6","dependencies":{"axios":"~0.21.1","chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"4.9.2","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","https-proxy-agent":"^5.0.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.15.0-dev.20210920.e4d38fc_1632122646155_0.46010868240161007","host":"s3://npm-registry-packages"}},"4.15.0-dev.20210921.fcb2cdb":{"name":"@microsoft/bf-lu","version":"4.15.0-dev.20210921.fcb2cdb","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.15.0-dev.20210921.fcb2cdb","maintainers":[{"name":"botframework","email":"botframework@microsoft.com"},{"name":"joshgummersall","email":"npm@josh.standardlabs.dev"},{"name":"sgellock","email":"sgellock@microsoft.com"},{"name":"cmullins","email":"cmullins@gmail.com"},{"name":"cwhitten","email":"christopherwhitten@gmail.com"},{"name":"peterinnesmsft","email":"peinnes@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"c1872983b5bca0e420aa1c1e58b8542530503821","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.15.0-dev.20210921.fcb2cdb.tgz","fileCount":184,"integrity":"sha512-UN3/3nWE/PHDf3rnP+5QmluTDHzijBiWoM8IMed3V1SG6UB5Leuf8jP6buxe3amDjioEWBqB9YJa/4wMbWrNYA==","signatures":[{"sig":"MEUCIQDulEKAmizaxieG66WNmgB+ooOH61fTZnPUe27MZ21ztwIgVNVN8QYn8UKNn5pNMrvqYJCQIe8UQpRRVwi6rIRBFUQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1550016},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.15.0-dev.20210921.fcb2cdb.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=14.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","prepack":"npm run clean && npm run build","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.15","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"14.17.6","dependencies":{"axios":"~0.21.1","chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"4.9.2","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","https-proxy-agent":"^5.0.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.15.0-dev.20210921.fcb2cdb_1632208979411_0.7597553162787947","host":"s3://npm-registry-packages"}},"4.15.0-dev.20210922.c1c0528":{"name":"@microsoft/bf-lu","version":"4.15.0-dev.20210922.c1c0528","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.15.0-dev.20210922.c1c0528","maintainers":[{"name":"botframework","email":"botframework@microsoft.com"},{"name":"joshgummersall","email":"npm@josh.standardlabs.dev"},{"name":"sgellock","email":"sgellock@microsoft.com"},{"name":"cmullins","email":"cmullins@gmail.com"},{"name":"cwhitten","email":"christopherwhitten@gmail.com"},{"name":"peterinnesmsft","email":"peinnes@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"e773c7502b45420ece57a8e0fde6d237d32a2121","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.15.0-dev.20210922.c1c0528.tgz","fileCount":184,"integrity":"sha512-AB1pbGoO6dzigwFG8j1GLml9f/Jrt9M+XMSLbJjF3lYvqR+/gn6c4Mki2INIpTJe+dn1uHkgsdpoLf5tRCbIpQ==","signatures":[{"sig":"MEUCIQC5G1FVozvVOmsjAJifTavJaHdXIOIIbAm3drgCC1mbaAIgJAr1n/IDWKddPROp3Yc42w5x80OIBviI5Xoifi9ulsA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1531349},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.15.0-dev.20210922.c1c0528.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=14.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","prepack":"npm run clean && npm run build","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.15","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"14.17.6","dependencies":{"axios":"~0.21.1","chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"4.9.2","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","https-proxy-agent":"^5.0.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.15.0-dev.20210922.c1c0528_1632295331406_0.7151552033242632","host":"s3://npm-registry-packages"}},"4.15.0-dev.20210924.20a3f98":{"name":"@microsoft/bf-lu","version":"4.15.0-dev.20210924.20a3f98","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.15.0-dev.20210924.20a3f98","maintainers":[{"name":"botframework","email":"botframework@microsoft.com"},{"name":"joshgummersall","email":"npm@josh.standardlabs.dev"},{"name":"sgellock","email":"sgellock@microsoft.com"},{"name":"cmullins","email":"cmullins@gmail.com"},{"name":"cwhitten","email":"christopherwhitten@gmail.com"},{"name":"peterinnesmsft","email":"peinnes@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"7caca3fd02568bc0b6ef57d52d3bd3836a641b24","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.15.0-dev.20210924.20a3f98.tgz","fileCount":184,"integrity":"sha512-Z8uTBFNkHmIHoVs4tfoJzSUvh4VG+xi6C6knJUo9NRdT0+eG/EhYA/iVJcf4jHqTolEYOWdSAvTTSiF0lKL+1g==","signatures":[{"sig":"MEUCIBsBntiIJG5sREcNN/0GvndXJ1PEd7OAGpjDVacwtTx6AiEAz40PPb8euw7YfabQjJlYG2RErpX2P8W5Qy1NHISgMcQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1531349},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.15.0-dev.20210924.20a3f98.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=14.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","prepack":"npm run clean && npm run build","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.15","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"14.17.6","dependencies":{"axios":"~0.21.1","chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"4.9.2","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","https-proxy-agent":"^5.0.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.15.0-dev.20210924.20a3f98_1632467958089_0.9096290305020625","host":"s3://npm-registry-packages"}},"4.15.0-dev.20210928.a9a92a5":{"name":"@microsoft/bf-lu","version":"4.15.0-dev.20210928.a9a92a5","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.15.0-dev.20210928.a9a92a5","maintainers":[{"name":"botframework","email":"botframework@microsoft.com"},{"name":"joshgummersall","email":"npm@josh.standardlabs.dev"},{"name":"sgellock","email":"sgellock@microsoft.com"},{"name":"cmullins","email":"cmullins@gmail.com"},{"name":"cwhitten","email":"christopherwhitten@gmail.com"},{"name":"peterinnesmsft","email":"peinnes@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"cdfcfcf37a0b5cd21d4c1e6ba615f6ad819d2178","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.15.0-dev.20210928.a9a92a5.tgz","fileCount":186,"integrity":"sha512-KV9/35XPYyLuRaxMtVi5vkuJUT8IdzDZUp1G021xcMj8+bvp8FdFEjmvDzvwH6lhBYf314/38aS3KGAOGQJUww==","signatures":[{"sig":"MEYCIQCWTbTLXcAv4G8uJpx/OK5YGRVtOPl6wmDBVZPh5usbVQIhAIU6Ykcr7yvxCJIwU/CjyrEHsB5lFxjkrPDN+suWbW15","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1532772},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.15.0-dev.20210928.a9a92a5.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=14.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","prepack":"npm run clean && npm run build","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.15","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"14.17.6","dependencies":{"axios":"~0.21.1","chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"4.9.2","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","https-proxy-agent":"^5.0.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.15.0-dev.20210928.a9a92a5_1632813766376_0.058161451226147465","host":"s3://npm-registry-packages"}},"4.15.0-dev.20211004.edcf63e":{"name":"@microsoft/bf-lu","version":"4.15.0-dev.20211004.edcf63e","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.15.0-dev.20211004.edcf63e","maintainers":[{"name":"botframework","email":"botframework@microsoft.com"},{"name":"joshgummersall","email":"npm@josh.standardlabs.dev"},{"name":"sgellock","email":"sgellock@microsoft.com"},{"name":"cmullins","email":"cmullins@gmail.com"},{"name":"cwhitten","email":"christopherwhitten@gmail.com"},{"name":"peterinnesmsft","email":"peinnes@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"ed8b5c716ddebce8eb5d09618a287149151cba91","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.15.0-dev.20211004.edcf63e.tgz","fileCount":186,"integrity":"sha512-rBksSW+Gqcxb9wqKk+OO/Uvg7WkXGPwuacDN9j+U35N9p+49J+Jshazcmap4ET7gh1lJC4Lnih0zhXk1Ui6heA==","signatures":[{"sig":"MEQCIGffUTA8JN6qQGxuL70AC3HBxBzbs0orBI/4Exwz8JWnAiANSUwIuQDbPv/QrYCNg9M/5L6AEk4LWNwQowsrtt6sfg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1532730},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.15.0-dev.20211004.edcf63e.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=14.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","prepack":"npm run clean && npm run build","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.15","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"14.17.6","dependencies":{"axios":"~0.21.1","chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"4.9.2","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","https-proxy-agent":"^5.0.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.15.0-dev.20211004.edcf63e_1633332312140_0.6259877136203109","host":"s3://npm-registry-packages"}},"4.15.0-rc0":{"name":"@microsoft/bf-lu","version":"4.15.0-rc0","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.15.0-rc0","maintainers":[{"name":"botframework","email":"botframework@microsoft.com"},{"name":"joshgummersall","email":"npm@josh.standardlabs.dev"},{"name":"sgellock","email":"sgellock@microsoft.com"},{"name":"cmullins","email":"cmullins@gmail.com"},{"name":"cwhitten","email":"christopherwhitten@gmail.com"},{"name":"peterinnesmsft","email":"peinnes@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"177428399d915887a234d5082d996b9803dac110","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.15.0-rc0.tgz","fileCount":186,"integrity":"sha512-0OsQuJ/0DO3U8jBa8v/uZvcC98XFXLEexuE814w6uL3/aDeFDrXPfiPcNXO1ZuCebXA5fyL4Z6xZJ/d/4D4eQw==","signatures":[{"sig":"MEQCIFIbLhV+3IFmz3GnTiwjwsjWOgtIsIyPiATxSVpny3mXAiBsXT6iIA8tBTaefD7tzbrsG/8yS3WZ2459Euw3OzomhA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1532713},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-rc/drop/microsoft-bf-lu-4.15.0-rc0.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=14.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","prepack":"npm run clean && npm run build","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.15","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"14.18.0","dependencies":{"axios":"~0.21.1","chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"4.9.2","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","https-proxy-agent":"^5.0.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.15.0-rc0_1634338340034_0.5205608439367895","host":"s3://npm-registry-packages"}},"4.16.0-dev.20211020.406dfef":{"name":"@microsoft/bf-lu","version":"4.16.0-dev.20211020.406dfef","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.16.0-dev.20211020.406dfef","maintainers":[{"name":"botframework","email":"botframework@microsoft.com"},{"name":"joshgummersall","email":"npm@josh.standardlabs.dev"},{"name":"sgellock","email":"sgellock@microsoft.com"},{"name":"cmullins","email":"cmullins@gmail.com"},{"name":"cwhitten","email":"christopherwhitten@gmail.com"},{"name":"peterinnesmsft","email":"peinnes@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"1a12009b473dc76c18ea61340d6268153c987799","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.16.0-dev.20211020.406dfef.tgz","fileCount":186,"integrity":"sha512-9kwO46NT3FZ/SSvKSIv3VKQ5Imzf7u/CAUAef7JH/msN8DvVwQNFU3IOWJesJgvNAKt9JAA6zqcLkuv0dhsw3Q==","signatures":[{"sig":"MEQCIFhx5ssEa/nEdJCQwSKNsJfWGVKdYimgOgElWzvWQz+/AiBBBGvOU+nspocEgAJoVFo8VThstIwFT4VQPxFks99cRw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1532730},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.16.0-dev.20211020.406dfef.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=14.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","prepack":"npm run clean && npm run build","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.15","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"14.18.0","dependencies":{"axios":"~0.21.1","chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"4.9.2","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","https-proxy-agent":"^5.0.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.16.0-dev.20211020.406dfef_1634714627882_0.831108226936943","host":"s3://npm-registry-packages"}},"4.16.0-dev.20211101.bed3c05":{"name":"@microsoft/bf-lu","version":"4.16.0-dev.20211101.bed3c05","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.16.0-dev.20211101.bed3c05","maintainers":[{"name":"botframework","email":"botframework@microsoft.com"},{"name":"joshgummersall","email":"npm@josh.standardlabs.dev"},{"name":"sgellock","email":"sgellock@microsoft.com"},{"name":"cmullins","email":"cmullins@gmail.com"},{"name":"cwhitten","email":"christopherwhitten@gmail.com"},{"name":"peterinnesmsft","email":"peinnes@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"54e18caa99e2e2a66c00f7f97aa8c402f3e12971","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.16.0-dev.20211101.bed3c05.tgz","fileCount":186,"integrity":"sha512-EZzaWf6GuevqQR3czNmbw+dtwp71zR3T7eDn9CY+xOUZf9gTErzeuhYbybUP7djP3hARgXW3lOAgNPDOHblDAw==","signatures":[{"sig":"MEQCIHia3YhBSRj/31z3+LFBU59x0k9TZfWJlwiq8oD17t5jAiAu8ad4N4thHTP2vEg2UWigap8g8MCyy3Y3278+dEi06Q==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1532787},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.16.0-dev.20211101.bed3c05.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=14.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","prepack":"npm run clean && npm run build","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.15","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"14.18.1","dependencies":{"axios":"~0.21.1","chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"4.9.2","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","https-proxy-agent":"^5.0.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.16.0-dev.20211101.bed3c05_1635788134743_0.6666058146160958","host":"s3://npm-registry-packages"}},"4.16.0-dev.20211102.bed3c05":{"name":"@microsoft/bf-lu","version":"4.16.0-dev.20211102.bed3c05","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.16.0-dev.20211102.bed3c05","maintainers":[{"name":"botframework","email":"botframework@microsoft.com"},{"name":"joshgummersall","email":"npm@josh.standardlabs.dev"},{"name":"sgellock","email":"sgellock@microsoft.com"},{"name":"cmullins","email":"cmullins@gmail.com"},{"name":"cwhitten","email":"christopherwhitten@gmail.com"},{"name":"peterinnesmsft","email":"peinnes@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"8047ba7dd83cd7b476aeec738232d8d08ed3d46f","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.16.0-dev.20211102.bed3c05.tgz","fileCount":186,"integrity":"sha512-NelT08++q1TObijswST9RBCgGc4P7Mpn4zOch4A+yZrgJTeGJ3LzMdGLkI5K2oTxE8ySNZk2u7D4pmyMul97ew==","signatures":[{"sig":"MEYCIQCiJ8/tZ4a82Zqh84WjVmH0bKt5jKtQXTgW+Giq3MPIwQIhAMlUucKI3HyRherZwHli1UfPqT2/2TWnhlEkjAUegagX","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1532787},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.16.0-dev.20211102.bed3c05.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=14.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","prepack":"npm run clean && npm run build","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.15","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"14.18.1","dependencies":{"axios":"~0.21.1","chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"4.9.2","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","https-proxy-agent":"^5.0.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.16.0-dev.20211102.bed3c05_1635837882413_0.286504554999909","host":"s3://npm-registry-packages"}},"4.16.0-dev.20211102.3f7a67a":{"name":"@microsoft/bf-lu","version":"4.16.0-dev.20211102.3f7a67a","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.16.0-dev.20211102.3f7a67a","maintainers":[{"name":"botframework","email":"botframework@microsoft.com"},{"name":"joshgummersall","email":"npm@josh.standardlabs.dev"},{"name":"sgellock","email":"sgellock@microsoft.com"},{"name":"cmullins","email":"cmullins@gmail.com"},{"name":"cwhitten","email":"christopherwhitten@gmail.com"},{"name":"peterinnesmsft","email":"peinnes@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"a01bebcff6862cd2078ec2de1f40c79136570c04","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.16.0-dev.20211102.3f7a67a.tgz","fileCount":186,"integrity":"sha512-C6EEk9149rhjkQv1P+wu4dg2e09LlvGtznX498CRgv3TUAuUMa8qnkjoLDSueZRcHZVlR1r8a9II39y50ZZBSQ==","signatures":[{"sig":"MEYCIQDZjFnDWUJjRjWSLJz/g4VcuOMwUmYBFCA7vtC+b36M8QIhAPbM7YwYiuDKyz4Chhj0+XM63oqIfrYwV220SZBlxGWM","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1533859},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.16.0-dev.20211102.3f7a67a.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=14.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","prepack":"npm run clean && npm run build","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.15","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"14.18.1","dependencies":{"axios":"~0.21.1","chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"4.9.2","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","https-proxy-agent":"^5.0.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.16.0-dev.20211102.3f7a67a_1635875295629_0.2940745873795547","host":"s3://npm-registry-packages"}},"4.15.0-rc1":{"name":"@microsoft/bf-lu","version":"4.15.0-rc1","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.15.0-rc1","maintainers":[{"name":"botframework","email":"botframework@microsoft.com"},{"name":"joshgummersall","email":"npm@josh.standardlabs.dev"},{"name":"sgellock","email":"sgellock@microsoft.com"},{"name":"cmullins","email":"cmullins@gmail.com"},{"name":"cwhitten","email":"christopherwhitten@gmail.com"},{"name":"peterinnesmsft","email":"peinnes@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"7b91393b96b839e04dcf3f9416d9740d1aef193e","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.15.0-rc1.tgz","fileCount":186,"integrity":"sha512-rWdQOD74bCsgQOHXmlveSVzHcdfv8tZXAwhJuDMHYUh4vJK78cjgCP+Fn4T8aKFjsOHMa37vgAd1xAFeyqkRiQ==","signatures":[{"sig":"MEYCIQC4pyjiDhXRZG/SOZCwzs7tfwrpPnU4l6yF+DWc8iTyHwIhAIzV5sncTKdADkAhhXm+lAA0YDeJiGjOryyQlYWyIydH","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1533842},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-rc/drop/microsoft-bf-lu-4.15.0-rc1.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=14.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","prepack":"npm run clean && npm run build","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.15","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"14.18.1","dependencies":{"axios":"~0.21.1","chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"4.9.2","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","https-proxy-agent":"^5.0.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.15.0-rc1_1635895046547_0.9363620370945518","host":"s3://npm-registry-packages"}},"4.16.0-dev.20211103.3f7a67a":{"name":"@microsoft/bf-lu","version":"4.16.0-dev.20211103.3f7a67a","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.16.0-dev.20211103.3f7a67a","maintainers":[{"name":"botframework","email":"botframework@microsoft.com"},{"name":"joshgummersall","email":"npm@josh.standardlabs.dev"},{"name":"sgellock","email":"sgellock@microsoft.com"},{"name":"cmullins","email":"cmullins@gmail.com"},{"name":"cwhitten","email":"christopherwhitten@gmail.com"},{"name":"peterinnesmsft","email":"peinnes@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"9c49ff8a670787b1c4a8e866e2f7653a8486ace6","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.16.0-dev.20211103.3f7a67a.tgz","fileCount":186,"integrity":"sha512-kO1yrxUeZ1wArNHPp+Bo4KakLl7Qhk3J3TIyAJOOeMR9XTCbGoBKXVmZyQC+WuZfQnCJmgfKbGthGfm5pbwxfg==","signatures":[{"sig":"MEUCIFE/9dX7qiVr5dqOp/DYETJbXNu/bjPOTsiRJ5vVGff8AiEArb5qj1SX6yAOcsfpakG53YiAz+Xd2B9cHoE8o3jD5Oc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1533859},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.16.0-dev.20211103.3f7a67a.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=14.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","prepack":"npm run clean && npm run build","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.15","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"14.18.1","dependencies":{"axios":"~0.21.1","chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"4.9.2","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","https-proxy-agent":"^5.0.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.16.0-dev.20211103.3f7a67a_1635924018533_0.9987850925736996","host":"s3://npm-registry-packages"}},"4.16.0-dev.20211105.90655c4":{"name":"@microsoft/bf-lu","version":"4.16.0-dev.20211105.90655c4","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.16.0-dev.20211105.90655c4","maintainers":[{"name":"botframework","email":"botframework@microsoft.com"},{"name":"joshgummersall","email":"npm@josh.standardlabs.dev"},{"name":"sgellock","email":"sgellock@microsoft.com"},{"name":"cmullins","email":"cmullins@gmail.com"},{"name":"cwhitten","email":"christopherwhitten@gmail.com"},{"name":"peterinnesmsft","email":"peinnes@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"baebb519574c5ddaad30ae300ee629b0bf39ff95","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.16.0-dev.20211105.90655c4.tgz","fileCount":186,"integrity":"sha512-8xzrF/sSbYpR72eQEa+2f7CZgElgkYzYAgE/rDf5pgySRXRJIznmgrpxgV36IdZoqBfowAG7y5xP+CUXXHYaFg==","signatures":[{"sig":"MEQCIFyjyLnVePe9/okaz2wfuJQwvpCh5qeW1ecoCWtxTVu1AiAcPcm64LsI3J1DO6V+w9Ozoa2GaOGZsXXYEtLept53mg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1533859},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.16.0-dev.20211105.90655c4.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=14.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","prepack":"npm run clean && npm run build","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.15","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"14.18.1","dependencies":{"axios":"~0.21.1","chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"4.9.2","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","https-proxy-agent":"^5.0.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.16.0-dev.20211105.90655c4_1636097092940_0.4068519258818697","host":"s3://npm-registry-packages"}},"4.15.0-rc2":{"name":"@microsoft/bf-lu","version":"4.15.0-rc2","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.15.0-rc2","maintainers":[{"name":"botframework","email":"botframework@microsoft.com"},{"name":"joshgummersall","email":"npm@josh.standardlabs.dev"},{"name":"sgellock","email":"sgellock@microsoft.com"},{"name":"cmullins","email":"cmullins@gmail.com"},{"name":"cwhitten","email":"christopherwhitten@gmail.com"},{"name":"peterinnesmsft","email":"peinnes@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"a9c7b2adeac377f738f79b2e4c281df2b895f833","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.15.0-rc2.tgz","fileCount":186,"integrity":"sha512-M0Yv37uIWX0vQq2SpOFv/VZEu1g7GjXAOAI4ubhLjtTWzlF44eKBo0coOrEZXWdi++1+kctqNakWj+ByEQC+Yw==","signatures":[{"sig":"MEUCIBuB/OsnlaAuvDEVmv7Xx73zZS1ztHKTjjZJFTpcaYOnAiEA1t9ejhmyipc2ArzxTRVX33Tk/o6qY+OgOdQhEKpUnz4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1533842},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-rc/drop/microsoft-bf-lu-4.15.0-rc2.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=14.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","prepack":"npm run clean && npm run build","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.15","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"14.18.1","dependencies":{"axios":"~0.21.1","chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"4.9.2","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","https-proxy-agent":"^5.0.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.15.0-rc2_1636136486993_0.7126548372972283","host":"s3://npm-registry-packages"}},"4.15.0-rc3":{"name":"@microsoft/bf-lu","version":"4.15.0-rc3","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.15.0-rc3","maintainers":[{"name":"botframework","email":"botframework@microsoft.com"},{"name":"joshgummersall","email":"npm@josh.standardlabs.dev"},{"name":"sgellock","email":"sgellock@microsoft.com"},{"name":"cmullins","email":"cmullins@gmail.com"},{"name":"cwhitten","email":"christopherwhitten@gmail.com"},{"name":"peterinnesmsft","email":"peinnes@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"26b602e874d14810dc503c5b2a45700faa43a115","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.15.0-rc3.tgz","fileCount":186,"integrity":"sha512-zyV4VwfCvLbdhIlppwV7gAD+m8xiVRNkqtD3vyA2lshVtQmsAufC1CIXiJmbmqajcca3sRfEX3wEwf9NR6R/FA==","signatures":[{"sig":"MEQCIDCSvAMBe4ztXHcLtyEZ9eGiFE/L7qT22yUUzwg8/c/UAiBsGZiLz4WTpbj418QqG5zE+/XMd3VByKgC2LuVzGriZQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1533842},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-rc/drop/microsoft-bf-lu-4.15.0-rc3.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=14.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","prepack":"npm run clean && npm run build","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.15","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"14.18.1","dependencies":{"axios":"~0.21.1","chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"4.9.2","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","https-proxy-agent":"^5.0.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.15.0-rc3_1636587622428_0.873592618658275","host":"s3://npm-registry-packages"}},"4.16.0-dev.20211111.15b5c37":{"name":"@microsoft/bf-lu","version":"4.16.0-dev.20211111.15b5c37","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.16.0-dev.20211111.15b5c37","maintainers":[{"name":"botframework","email":"botframework@microsoft.com"},{"name":"joshgummersall","email":"npm@josh.standardlabs.dev"},{"name":"sgellock","email":"sgellock@microsoft.com"},{"name":"cmullins","email":"cmullins@gmail.com"},{"name":"cwhitten","email":"christopherwhitten@gmail.com"},{"name":"peterinnesmsft","email":"peinnes@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"96b5767bb51e6d7f4d652751611da36dbdb3c2b9","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.16.0-dev.20211111.15b5c37.tgz","fileCount":186,"integrity":"sha512-9Gj1OSmkWUcEMYbrH7zLoqLRuJEl4stelW3fwGmpnG//z05a+UTN3NuKYHJ4zR36V8269HAq0zBHlP7kaSixlA==","signatures":[{"sig":"MEQCICHmHlPfL2/JRxE0ht+wLBXnFUv7OxCyC3cSSR7XOttqAiB0Ao5KV7VvRjeXasAX6BszlK/SyfBL5fQuhRjZg+zIMQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1533859},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.16.0-dev.20211111.15b5c37.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=14.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","prepack":"npm run clean && npm run build","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.15","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"14.18.1","dependencies":{"axios":"~0.21.1","chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"4.9.2","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","https-proxy-agent":"^5.0.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.16.0-dev.20211111.15b5c37_1636618946159_0.7251791754647183","host":"s3://npm-registry-packages"}},"4.15.0":{"name":"@microsoft/bf-lu","version":"4.15.0","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.15.0","maintainers":[{"name":"botframework","email":"botframework@microsoft.com"},{"name":"joshgummersall","email":"npm@josh.standardlabs.dev"},{"name":"sgellock","email":"sgellock@microsoft.com"},{"name":"cmullins","email":"cmullins@gmail.com"},{"name":"cwhitten","email":"christopherwhitten@gmail.com"},{"name":"peterinnesmsft","email":"peinnes@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"0f3a280dc03fd9efd693510b9b4db3df3789096e","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.15.0.tgz","fileCount":186,"integrity":"sha512-D/0jfpspxIPZa9s0xLVb3g2k3ghlQ6fc23wwITAzZpBqgEyLOEgClx2i2KFkGAnblfD9RhfprNpKwLYxTYgG+Q==","signatures":[{"sig":"MEQCIEQXpp5nzzab68kxFD7lXjG61f3WJYcL44SkOGLTFJcuAiAEgjRo7cDDw/vf9lmww9qLDGoFOYfzq3eWG3CszK4j3g==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1533838,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhk+ZECRA9TVsSAnZWagAAlgUP/jVU+iwoVrsbSOdmpIwL\n+ip3cS2M3PtKMPouFOnW0vFXE2ALs0AP9Z4WHAa5DOimX+4HjLVIhVrS6S9q\nKclOsxCkhUGpdVA/TeLXjG5FjKtW+030bVFwckVFbEJ+Z19IQ8DOZ3+wHd5z\nYJjjjwDzDf5o5ugsd4iDo3CW91O9ViV0DsEyrQF04bFWV2XiWBvy7kKFspYK\n4o5Ptiz6WVCcXNc1ySC8zG1FHwAQxPnLPtdWQwANOszhVEXKVZVBgroQN2qj\nhzeD3KfalDHycsocwqbMUIb7oI0lBcVvCr3pBOZ8rAmWdDG70ziwnSoNPnXG\n66ENt1HzxJSyxHs4+5epXPv3zX8p3Cxy/yapasX5J9JrByO1S0a8tFI2viC3\nWBcwWRzaPlFcnEgWBNF0m0B9Y4xE3WWYFIiaY0Ub9VYJirBaU/UPuxvVFNkG\nX2ou2+HotjAt/xcMMFkQqduX7xWEhtHmLz/zpA44MbSTIGidIYc7lSCFT7wE\nR2WbAfY9frsSDeprPjhFpMNtkPgWEV9TYbhNfhrhutVOcqz5JdC/fG9+UFTZ\nJiJ8e0lbXSSTqscrhrMxmjSo9iKu5N3AO6ixNGQP3Z+VapO/qQQrRwE8wImC\nyvzhsVCKUoj7DUjcAutZulGdDAmVndu27z09l8PKijXuLVaOWYQpZnivQ9oM\nHRLe\r\n=tnhf\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-rc/drop/microsoft-bf-lu-4.15.0.tgz","browser":"lib/parser/composerindex.js","engines":{"node":">=14.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","prepack":"npm run clean && npm run build","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.15","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"14.18.1","dependencies":{"axios":"~0.21.1","chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"4.9.2","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","https-proxy-agent":"^5.0.0"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.15.0_1637082692602_0.36650690206408765","host":"s3://npm-registry-packages"}},"4.16.0-dev.20211117.19ff452":{"name":"@microsoft/bf-lu","version":"4.16.0-dev.20211117.19ff452","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.16.0-dev.20211117.19ff452","maintainers":[{"name":"botframework","email":"botframework@microsoft.com"},{"name":"joshgummersall","email":"npm@josh.standardlabs.dev"},{"name":"sgellock","email":"sgellock@microsoft.com"},{"name":"cmullins","email":"cmullins@gmail.com"},{"name":"cwhitten","email":"christopherwhitten@gmail.com"},{"name":"peterinnesmsft","email":"peinnes@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"4a8f14bfac6f5c396c384f2edb9402fd9844ba4a","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.16.0-dev.20211117.19ff452.tgz","fileCount":186,"integrity":"sha512-kllfYE75P6Xbx5OsGr4JOJI4fgpZB29Od0jd+bq33K7Sp94s5PpL5LjTfq7oh6768PToxhy2nV9IKq3Q5r6R+g==","signatures":[{"sig":"MEYCIQCLb1zT+mf196Df88B4Op5q5utflY5qNOQngxnn+rOCMQIhAL4HaPG7c5DVqKsN34AHwVidFViWxHpa65rARGP4OCYa","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1533859,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhlLwICRA9TVsSAnZWagAAphAQAKHFKB3JsCwNaeQ28ij/\nz+qw/7ycsjDzbhULxHf6yoKrlzvEcCqrMdI4smnxp0qtM3kZj1HVWGiK2F5t\nI18+53wApUT6id/gkgP+ShwKnamCeJPawENTYQC9UMxxyyf+aWolH377i12q\nCnDZaOqSk+L2FgmXEzQasaVaMdQkVfD9Q5QsKRji3qrri1qKNfc6kcrPv+79\n7pHdmraB0MeNhjtuBURQpJHx6rPIQJKjAelTQaveV4/+/5/2CzNjNp2Ifkzo\nir68+5inkb1LMjKWsYZUWULoewydBJCh3MfQecYQmmT8dv97FaJZ2qR+kuZe\nI4MCeoaqSxl86Nn34CGFBMgXJcG1tCQc1tbZsf7a10eS7GyxRQdX7BKhv2QR\ntgHQZtOxGaFo+ZUvyvNYpluJMMLkgQbJEa8wT23IybSobz7vYmTx4UUWpwtH\nsVzRMphBcfHAE7/ggYy2/iJM1xwaRwNO6Xdw8xsk/iEXS8JDv3RJ28cpVQ49\nGWgFOadNLrTcJBIfZto1m09iYwf8Z/DoPy0g0Jv1YLZjhqQC5ty0VMKUkOox\n0E/zG5POCttN3XBsjEEBZVUOPRU5jqJEhuSKoja+Cn+F7ju36hmrf0gGgPOa\njqwCeyYxLDOAqB5VnW3ICPJxOuireuZHv7xbzvsoTFpoGLvwWgXyiysvLro2\na41l\r\n=+uAL\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:/a/r1/a/_botframework-cli-daily/drop/microsoft-bf-lu-4.16.0-dev.20211117.19ff452.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=14.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","prepack":"npm run clean && npm run build","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"_npmVersion":"6.14.15","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"14.18.1","dependencies":{"axios":"~0.21.1","chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"4.9.2","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","https-proxy-agent":"^5.0.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.16.0-dev.20211117.19ff452_1637137416059_0.39426146607250345","host":"s3://npm-registry-packages"}},"4.16.0-dev.20211220.6972973":{"name":"@microsoft/bf-lu","version":"4.16.0-dev.20211220.6972973","author":"Microsoft","license":"MIT","_id":"@microsoft/bf-lu@4.16.0-dev.20211220.6972973","maintainers":[{"name":"botframework","email":"botframework@microsoft.com"},{"name":"joshgummersall","email":"npm@josh.standardlabs.dev"},{"name":"sgellock","email":"sgellock@microsoft.com"},{"name":"cmullins","email":"cmullins@gmail.com"},{"name":"cwhitten","email":"christopherwhitten@gmail.com"},{"name":"peterinnesmsft","email":"peinnes@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":"https://github.com/microsoft/botframework-cli/issues","nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"0fadca0c9bd23d5ba4ff9653706c7f9a79e08b02","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.16.0-dev.20211220.6972973.tgz","fileCount":186,"integrity":"sha512-xrhEA87PrGN8xD7d7k/83uS8Imj7y8xSvfI2H3eGKm7siRmW5Kxr8VMro19KabWNhrFe1dsdAIYI9XMwyBLXqw==","signatures":[{"sig":"MEYCIQDHUclISz6VTlcgecwuUawW29cG0C/Gh9evVi0oDYVbrwIhAPvQ9JoZqoBydJoNk7lqPX0Wmrgf4cB6kPYb+oPCKJI5","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1533859,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhwD2YCRA9TVsSAnZWagAAORYP/36dZRx1UwsXOn9KD76v\ndAbWcnMQ0NIWFU2lkczhdKC5VD5cvzptFA9Wvcje4fq4H/T7lOjv/13/CWFB\nWe3DzXqrEGhYeNv/7mrR2v2eJuHxhU70tDGkKwlala+B61bHDANP/5yaO50D\nKFMXKdTVb1ugySDqOJaQ7Ov8KY0EGYGX07aDnWlmtBiFRu9cwUGpegRMmZCj\n7hGYnLdDGrLafBfMDhsbHh7OxW9tGcFtZWy3oeut5a0Z5XwAVrl2/dcojEqy\nth5p0YWeIRuQ44E/LL8dExCK6P40jOGloEZrh+ypsdBmQMX37Nz8y5iYAlGv\nqFLVaumePs2V4eKDwaRgVAPdqJzg7o/K4nIcHZ7shxjKRu4EKBj1/bMYTjeA\nbUrYy/N3PxWiRU4DIFstbO6loUOOSuKGW79nxX8wotJwATZJFzbRCnl+YmXF\n268KiXi1KXTD3y/r/4laJbIAG/cmbmYTCPdpjWzW4LIZ3RaotMpzqyBGFH21\nhitWfXFDNj066Nxa5idiCqqeAQjND4rRCpZ0Vv3hTOcg4E7DdYA0FA076R7r\nR7Dk+/a43kjo3NmjdnADDoQlDJq5ZgRrlrFi0bpvL5vPfMMLY2SnXejJ2hA/\nPJTPXIvWaj0VJ2dkSEK43+X37LsNVcwYjCQgYrs7xBrJ0Ugibugw5cX4JZgJ\nzKCf\r\n=MqSU\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:\\a\\r1\\a\\_botframework-cli-daily\\drop\\microsoft-bf-lu-4.16.0-dev.20211220.6972973.tgz","browser":"lib/parser/composerindex.js","engines":{"node":">=14.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","prepack":"npm run clean && npm run build","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"D:\\a\\r1\\a\\_botframework-cli-daily\\drop\\microsoft-bf-lu-4.16.0-dev.20211220.6972973.tgz","_integrity":"sha512-xrhEA87PrGN8xD7d7k/83uS8Imj7y8xSvfI2H3eGKm7siRmW5Kxr8VMro19KabWNhrFe1dsdAIYI9XMwyBLXqw==","repository":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","_npmVersion":"8.1.2","directories":{},"_nodeVersion":"16.13.1","dependencies":{"axios":"~0.21.1","chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"4.9.2","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","https-proxy-agent":"^5.0.0"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.16.0-dev.20211220.6972973_1639988632261_0.286186618514491","host":"s3://npm-registry-packages"}},"4.16.0-dev.20220104.33b5e0a":{"name":"@microsoft/bf-lu","version":"4.16.0-dev.20220104.33b5e0a","author":"Microsoft","license":"MIT","_id":"@microsoft/bf-lu@4.16.0-dev.20220104.33b5e0a","maintainers":[{"name":"botframework","email":"botframework@microsoft.com"},{"name":"joshgummersall","email":"npm@josh.standardlabs.dev"},{"name":"sgellock","email":"sgellock@microsoft.com"},{"name":"cmullins","email":"cmullins@gmail.com"},{"name":"cwhitten","email":"christopherwhitten@gmail.com"},{"name":"peterinnesmsft","email":"peinnes@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":"https://github.com/microsoft/botframework-cli/issues","nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"fd83cdea94fac9d68e97c3e1b6e07c3ac3f03132","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.16.0-dev.20220104.33b5e0a.tgz","fileCount":186,"integrity":"sha512-kIG6sBPHANr4pmw9UO7CK7ZQ5/a7n8Wqa2XytI2SN8nBohNOA5DXsxpkGkzICMVaSc66my2j/YfVDp6w3Nt/CA==","signatures":[{"sig":"MEUCIQCJH5YzOSvApKdCBcBDwRQsbwLG9r6YnzaA7Zsx1TfK1AIgZ7Wsilwg+K7Pig0eCfFEiowzI8HGBRuxdYinfu/jWAc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1533859,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh1AQGCRA9TVsSAnZWagAAtuMP/iKMFZFvRNiuXiQiYQm7\nEVziqye1mV0bfJfTqYZINKJkKUMIwlIPDqLW6uFc+3rday5RZ3Ot6hIfqX1A\n4XtUJahx0yQwdbM7zJ3lhcVnd92Fme06TKTHUBxJoXdHx3Twi3WQoiyz2mEP\ndPD9Io8X98kUkHdIqVjNtD6+cztCqVp5nm1MljtLiRF1zY/JKoCE25BdnNZg\nOY4fiCh7E5JiswJzuQj2JvB82+1zCfgo+37Qqowdmbww3vhvVPYXtOXnOIIZ\nilpnUBIqMiTtPOQWoXpRKTYUhsruz0QsFg1bUjDZhSc8hszEbheeQppJg688\ny+FxVQP01jTAGmLqI24zvtYu3P+4cLPScUUqcBs+nmA2U3eI8PuQZ9Ogo6xM\nGRzP+eHkEkS5rOdPrqPKO+lYXbW7zQEzW8q2l/7LkvuwQt7kNSYkd0F2pl2j\nEY7OfuPjJieQk4o2geghkaLuH03fkJamxPdr8/zI9P9TZ/Epfm9aynaarhj1\nzohAqO54hO65H4Sg+mAHE9GpwVLfVRZ1R2GU8gpRzPSibjqV/wfnNdi7rxLm\nxcBN4p7Y+PYcTRXMqX4JJcQKygAe9b2N0pUmahQs0cleMXUtig39eS8L8c+i\nQetW7hOhrN/UD0xiRBGgDr7sm0CUBGudBh8f/4pANRPq30dsUXP7EmpJQJwz\n1BrV\r\n=oSoH\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:\\a\\r1\\a\\_botframework-cli-daily\\drop\\microsoft-bf-lu-4.16.0-dev.20220104.33b5e0a.tgz","browser":"lib/parser/composerindex.js","engines":{"node":">=14.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","prepack":"npm run clean && npm run build","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"D:\\a\\r1\\a\\_botframework-cli-daily\\drop\\microsoft-bf-lu-4.16.0-dev.20220104.33b5e0a.tgz","_integrity":"sha512-kIG6sBPHANr4pmw9UO7CK7ZQ5/a7n8Wqa2XytI2SN8nBohNOA5DXsxpkGkzICMVaSc66my2j/YfVDp6w3Nt/CA==","repository":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","_npmVersion":"8.1.2","directories":{},"_nodeVersion":"16.13.1","dependencies":{"axios":"~0.21.1","chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"4.9.2","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","https-proxy-agent":"^5.0.0"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.16.0-dev.20220104.33b5e0a_1641284614060_0.6498578626113589","host":"s3://npm-registry-packages"}},"4.16.0-dev.20220105.380511c":{"name":"@microsoft/bf-lu","version":"4.16.0-dev.20220105.380511c","author":"Microsoft","license":"MIT","_id":"@microsoft/bf-lu@4.16.0-dev.20220105.380511c","maintainers":[{"name":"botframework","email":"botframework@microsoft.com"},{"name":"joshgummersall","email":"npm@josh.standardlabs.dev"},{"name":"sgellock","email":"sgellock@microsoft.com"},{"name":"cmullins","email":"cmullins@gmail.com"},{"name":"cwhitten","email":"christopherwhitten@gmail.com"},{"name":"peterinnesmsft","email":"peinnes@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":"https://github.com/microsoft/botframework-cli/issues","nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"79f7f1198d782f8c9bf74c267942ded6b29e44d4","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.16.0-dev.20220105.380511c.tgz","fileCount":186,"integrity":"sha512-NDlHxvJHLAllLPkntkJADIyF2kC8gAA8sRU+ODLfOXnD1UqYDnqKmWJ4XiLmYMjfwYbdhotbVy0EGCiAwt2x8g==","signatures":[{"sig":"MEYCIQCFinJdJZmB9fyyDpXcLJCt6g+8wOQUUtR+Sf9p4f4UUgIhANKi6dTHdY2IEtUMjYjFpMo2nhfrygQ6BoRdVOn4Y8TG","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1533859,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh1gkwCRA9TVsSAnZWagAAzTAQAKT3QVB2+AnSD8Fy0UEk\n5NIJA9q4GSgvzQ1UZxF7mYhuD7PVDmHWfAsXcfn9L/EsVjci/pUtDkkFj/b5\nZ23NQu72uM1xO9YpSeepyrBrf4ikXocW/SC5XWFh9HNVTGRGsIP6iHkQwOOS\nFK6EzkjTl3gkPNLHictJM9SpywPebPgwCpRmwDiAZkbmfPyJ/ETeJBcWzF8N\ndhGCLDGU6OAdBIk0vtp1zb1CVeOmb571AXTF2UTLx3vSW5JJQRrIQU+hPHWK\nIQfaYb7GFLgg4lsr26hpW5xcfCrlwajiiu1OUk7i6b2QgOIZ7fQpod9ekDi0\nJvMjj1t/6vZPw7awBJQiWQrIKDV0ZB/98dlwV94C9FwDufS2YNOyqfMPdPEF\n2WzRerPRnGZZgfaSN+0jZon+sBt5vBT0qTXD/BVKjUx5Q38SUKt3VLjLB8OU\n1EoTsQoUAF3yJZ9ZKA07fI7r/WzQi0T7yBre3P0t10agUH4I0efExywglrZ/\nK5JCkZSgqR+4oHDW5Lp2PhNrSPL8Bt0zm6t7U6jj2lkGUz4yr7fclP3mXwGl\nao32rPHbjgiNOm8+WDNHaRu0wKiQ77KYg12jB042rjP5nRZtYtFJNfhSg1jH\nhHvMb/d6O4vLzfunoHvdztMSST+AOGeTUWKlgj0NWsRj1Ntl+IUlPkLR/VEJ\noznX\r\n=kIQ6\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:\\a\\r1\\a\\_botframework-cli-daily\\drop\\microsoft-bf-lu-4.16.0-dev.20220105.380511c.tgz","browser":"lib/parser/composerindex.js","engines":{"node":">=14.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","prepack":"npm run clean && npm run build","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"D:\\a\\r1\\a\\_botframework-cli-daily\\drop\\microsoft-bf-lu-4.16.0-dev.20220105.380511c.tgz","_integrity":"sha512-NDlHxvJHLAllLPkntkJADIyF2kC8gAA8sRU+ODLfOXnD1UqYDnqKmWJ4XiLmYMjfwYbdhotbVy0EGCiAwt2x8g==","repository":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","_npmVersion":"8.1.2","directories":{},"_nodeVersion":"16.13.1","dependencies":{"axios":"~0.21.1","chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"4.9.2","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","https-proxy-agent":"^5.0.0"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.16.0-dev.20220105.380511c_1641417008451_0.6241192128196866","host":"s3://npm-registry-packages"}},"4.16.0-dev.20220105.c44b989":{"name":"@microsoft/bf-lu","version":"4.16.0-dev.20220105.c44b989","author":"Microsoft","license":"MIT","_id":"@microsoft/bf-lu@4.16.0-dev.20220105.c44b989","maintainers":[{"name":"botframework","email":"botframework@microsoft.com"},{"name":"joshgummersall","email":"npm@josh.standardlabs.dev"},{"name":"sgellock","email":"sgellock@microsoft.com"},{"name":"cmullins","email":"cmullins@gmail.com"},{"name":"cwhitten","email":"christopherwhitten@gmail.com"},{"name":"peterinnesmsft","email":"peinnes@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":"https://github.com/microsoft/botframework-cli/issues","nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"d5609eeb8843acdfdc8daa855ef240d07338f437","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.16.0-dev.20220105.c44b989.tgz","fileCount":186,"integrity":"sha512-iR8GhmKQl7j8so9l2or6ycYVSt5Dxonfcr5m7RnXOvJTVxRxtnqls0wxK5XISdZOTt2SqA0vOULYhNLdiz6ebQ==","signatures":[{"sig":"MEUCIQCutX6F3pR4n/GcqVhfuIQRUfBAHRzlku7IJR6J0XSglwIgShC2kyNUXZLN4eWOzHA8Ohlclj1iC7fP6dIFvuLCgtw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1533859,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh1jFuCRA9TVsSAnZWagAAmzIP/1N8SKCE93p9SM91iRJ9\nhr+g92vs3BVj/EFGpYJ9IFD05+ZXjMJsvvlkJf220UhENErZGpv7XtLjnIBr\nS1yexHB5fuVSaHWpGOyGZYakY56QgnLf/scsMhfnma0LDHOM4GebQ9gCKW3x\nno7YrjnfPOMYNvnYWDn5/otIkLC8qWbouv412N1LSFfz/3Ga/ByfLaC1htT6\nLS0DB17ac8Mu2xmAXUAKxUm25+aeUqFLZeFqo/YYb83s+3ynbpM8ndojCEDi\nrzkWldE0yionUeJVKGK4b5P723P2rgSSxniBHmEh4RZKVUh9j6q8eqFWzFU9\nBs08LJMaxV4Qi37ISRskAmy/yrz9xRmQEPskrEeEC1Pi0D5eIbApZct3nBKJ\n2MBcofARwlji7tY3QLexhibLCatAIElg4Mmb6sWyTEKyE+Aa4sDsjdhKtCuX\nUWNQwKkrOJUpWE7/QLs0fPI+vfeToB9uE35cRB4DWf6dQbXFNTQcMqOr9Nv6\nSaBAL8xStKqXu+U93yFakYTZdcnLqXtM01aE2FGOGdzfnf/nw9tn/7zzXqY+\nD9HXYiCqBkqPmpEjYdaTFLjRRJn5g46h+l+guPe3KFnbNVgWLrfrEO9JgNhy\n2vPVaRcyuM+c3UqIkMPHcch5D5FZAFOcdAv0KPLDjH85Ji8rnIG/upPIVoOp\nL6Ai\r\n=MdsA\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:\\a\\r1\\a\\_botframework-cli-daily\\drop\\microsoft-bf-lu-4.16.0-dev.20220105.c44b989.tgz","browser":"lib/parser/composerindex.js","engines":{"node":">=14.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","prepack":"npm run clean && npm run build","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"D:\\a\\r1\\a\\_botframework-cli-daily\\drop\\microsoft-bf-lu-4.16.0-dev.20220105.c44b989.tgz","_integrity":"sha512-iR8GhmKQl7j8so9l2or6ycYVSt5Dxonfcr5m7RnXOvJTVxRxtnqls0wxK5XISdZOTt2SqA0vOULYhNLdiz6ebQ==","repository":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","_npmVersion":"8.1.2","directories":{},"_nodeVersion":"16.13.1","dependencies":{"axios":"~0.21.1","chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"4.9.2","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","https-proxy-agent":"^5.0.0"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.16.0-dev.20220105.c44b989_1641427310229_0.00209084427320394","host":"s3://npm-registry-packages"}},"4.16.0-dev.20220106.c44b989":{"name":"@microsoft/bf-lu","version":"4.16.0-dev.20220106.c44b989","author":"Microsoft","license":"MIT","_id":"@microsoft/bf-lu@4.16.0-dev.20220106.c44b989","maintainers":[{"name":"botframework","email":"botframework@microsoft.com"},{"name":"joshgummersall","email":"npm@josh.standardlabs.dev"},{"name":"sgellock","email":"sgellock@microsoft.com"},{"name":"cmullins","email":"cmullins@gmail.com"},{"name":"cwhitten","email":"christopherwhitten@gmail.com"},{"name":"peterinnesmsft","email":"peinnes@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":"https://github.com/microsoft/botframework-cli/issues","nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"6f43c5f0218579e913b432ba96822a28fc0aefcd","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.16.0-dev.20220106.c44b989.tgz","fileCount":186,"integrity":"sha512-Xzv5OcQhDFBbOcz3yJLGhIISR4MwuXpGc7mZzCcGX+fvLP5Aoqi6gUI/D6TSoCTkGX9TLWGd0BjCQX9oZ4v+8w==","signatures":[{"sig":"MEQCIFt3Xu1PyvZIFjs2nuS9Xc7LsuNia0efCW0X9G6+98bLAiB0BXYFbPS0La50DaOh4wBzYwLsASC2PIPO0iV92ISLOQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1533859,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh1qZwCRA9TVsSAnZWagAA098P/3LXvh38nY68WRT+YEvj\nTsT/Z03lRtzS3wv9AcuThQv3wUVGhgJsIrO2A+VIDHpfQLESwJp1mTforCdp\nU6z4F6lXa3QcduSIMRmBHR9pVnZtnCV28xrrsl0ZecIAcFcWtEZKl3ZXpJ6h\nV6k6kbvBDO3NiKxlKM+gZAb3/zJoeSIqn6sTdd+HfK017Zs4a8362EBB+Z9z\nTERZsNWV0dq/5qksbbTfxc5mbqIsX4oTdGaEQZmWY2C1+aohVVr8/b5iUD+2\nOpn6dmzZJtSNJEn2RyuvyyRQN0NRIz9MtLG/gTLLQhkc8kmsgFlq/W5o0W36\nsSzI//DFz2Iiy61edvSGGkUc7SWT4kpdQnc2vWl/nlU1zCSarmCO4qVfv9zK\nSgb4IQc6Ugw6a8ysaeWgFGEX3YYx23hEjzs2sK3AYJAOkdWd9gf0cZTZGHST\nALeLAvODVFihoboIr/cIAUgLiKvYqc0xayVJSpDsxtfxDYCxMxvA8bDb6pUs\nPbe7bHa693bijQM5H9c9mPTNRtihimkU9dSANvrhpNigQh7f3/pw9fCwuMJF\nqzYV9bzt8rfg5TTA/xP2rUjV7dNaq6L1M+riSDDW2+xfFED107D5E307/ZJ6\ndkAtHAVizqRtar0rEvXAXFogyxQb4J1ooOQ9xzsC4+3JBOK56bRYMbhjw2le\nb/BG\r\n=dAdL\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:\\a\\r1\\a\\_botframework-cli-daily\\drop\\microsoft-bf-lu-4.16.0-dev.20220106.c44b989.tgz","browser":"lib/parser/composerindex.js","engines":{"node":">=14.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","prepack":"npm run clean && npm run build","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"D:\\a\\r1\\a\\_botframework-cli-daily\\drop\\microsoft-bf-lu-4.16.0-dev.20220106.c44b989.tgz","_integrity":"sha512-Xzv5OcQhDFBbOcz3yJLGhIISR4MwuXpGc7mZzCcGX+fvLP5Aoqi6gUI/D6TSoCTkGX9TLWGd0BjCQX9oZ4v+8w==","repository":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","_npmVersion":"8.1.2","directories":{},"_nodeVersion":"16.13.1","dependencies":{"axios":"~0.21.1","chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"4.9.2","globby":"^10.0.1","lodash":"^4.17.19","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","https-proxy-agent":"^5.0.0"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.16.0-dev.20220106.c44b989_1641457264576_0.806639562096013","host":"s3://npm-registry-packages"}},"4.16.0-dev.20220110.b4d497d":{"name":"@microsoft/bf-lu","version":"4.16.0-dev.20220110.b4d497d","author":"Microsoft","license":"MIT","_id":"@microsoft/bf-lu@4.16.0-dev.20220110.b4d497d","maintainers":[{"name":"botframework","email":"botframework@microsoft.com"},{"name":"joshgummersall","email":"npm@josh.standardlabs.dev"},{"name":"sgellock","email":"sgellock@microsoft.com"},{"name":"cmullins","email":"cmullins@gmail.com"},{"name":"cwhitten","email":"christopherwhitten@gmail.com"},{"name":"peterinnesmsft","email":"peinnes@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":"https://github.com/microsoft/botframework-cli/issues","nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"50bb8f556eab53cb478b09198215a9cadf6ee56c","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.16.0-dev.20220110.b4d497d.tgz","fileCount":186,"integrity":"sha512-gkVtulxFI/iDFxkiKjO9pu2hTPsAaCGho20pgPJ8DAlXqiY7N0vFB9u4Otln/IzIrFvBry5OD3tM673vNuwszQ==","signatures":[{"sig":"MEUCIDDy8UdM0UhE44aM6+wuETN4RfMmXDlk3vYcCeL76CruAiEAy1zFSxTwY3fmtGwGg8cyUeYTPka/WlyP5FWiQTzz1Eo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1533859,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh2+y4CRA9TVsSAnZWagAAQ+oQAI8yjuYVyv9Mlrn7sXpj\nBO6GR5qpFFdmyiPsyD/HF+/pfTrPPZp7DRCE+snuHxZ9Uu6lzGDVqWCcHX5a\nsnHiJTyPbmEztXFigo/3Ot7Hgidu8Z57xdyLe/+ttjmVm3+9rlDIPbZWcbOv\n8WoQrqGqfy+NP7o1Dpn9mBzvtZsaYIXKKOmeUuMawaAttsIA5/cXY7qGlAYi\nIeqz9SWRnp/7E/D0QTt8grYCciWdtREhhIQRUgvmvAmkhC+f72crwHYT/gro\nJexn+JSB2zU6GGJR2tWQ2KY8vww9WE0dYPXtNSrD76zeDJDRigoVB3Sx6c4g\n7Wxfg/fuZU84vxxBv0L9QjawaZJbuC9jo9ZdkU8sXmCFM3iY7x9Hibuw7XXI\nqeaGKMygFfET1ex1OPA0XCyWt9oDcL9AgaUHSVMxrd1W/nCBR+QdY08bU3jx\nI03uCPJ60TVB/DYRF7E48FK157zlhARDjD1i30vOxhc1NqBXnpZsNJEReZpB\nrn0tSOVjwEaaZ1OuK1RCkrYd6jggfiCIvEDH6QrESDcYzg73uYkBeGNv01fI\nyIHpl5c/vYkKA4OAKQ/rru/Tk/PNxazg/H6ByGpCjAKhlBxxgwLRn5XbMgZP\n/gct2MCuTs1YaKyXpEjwQxCfIBW7Kc26iw9IzmvnlabUfIqKAapmDBlLQgx3\nfRBL\r\n=RTvL\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:\\a\\r1\\a\\_botframework-cli-daily\\drop\\microsoft-bf-lu-4.16.0-dev.20220110.b4d497d.tgz","browser":"lib/parser/composerindex.js","engines":{"node":">=14.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","prepack":"npm run clean && npm run build","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"D:\\a\\r1\\a\\_botframework-cli-daily\\drop\\microsoft-bf-lu-4.16.0-dev.20220110.b4d497d.tgz","_integrity":"sha512-gkVtulxFI/iDFxkiKjO9pu2hTPsAaCGho20pgPJ8DAlXqiY7N0vFB9u4Otln/IzIrFvBry5OD3tM673vNuwszQ==","repository":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","_npmVersion":"8.1.2","directories":{},"_nodeVersion":"16.13.1","dependencies":{"axios":"~0.24.0","chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"4.9.2","globby":"^10.0.1","lodash":"^4.17.21","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","https-proxy-agent":"^5.0.0"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.16.0-dev.20220110.b4d497d_1641802935738_0.008495644729714202","host":"s3://npm-registry-packages"}},"4.16.0-dev.20220120.e933dfc":{"name":"@microsoft/bf-lu","version":"4.16.0-dev.20220120.e933dfc","author":"Microsoft","license":"MIT","_id":"@microsoft/bf-lu@4.16.0-dev.20220120.e933dfc","maintainers":[{"name":"botframework","email":"botframework@microsoft.com"},{"name":"joshgummersall","email":"npm@josh.standardlabs.dev"},{"name":"sgellock","email":"sgellock@microsoft.com"},{"name":"cwhitten","email":"christopherwhitten@gmail.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"},{"name":"peterinnesmsft","email":"peinnes@microsoft.com"},{"name":"cmullins","email":"cmullins@gmail.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":"https://github.com/microsoft/botframework-cli/issues","nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"d73eb40a8c8a6462ef28d499761bd7609ee6fabe","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.16.0-dev.20220120.e933dfc.tgz","fileCount":186,"integrity":"sha512-ufOsJmedsI3hpAQGCTZMxZD4qo0ne7Fs4vEO7hYg64tAzEvQz0ZeeE8siqUKryUWOvRLp1kSGvolzwypwt0VjA==","signatures":[{"sig":"MEQCIDAkzHWu2HPDNX1Rpl/xuapTJl/rcUJQTS1ybueEDTAYAiBnWpxijwBRzBvkcfMLhvgP15nhL093xbZo57rtsOJqbw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1533859,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh6Rw4CRA9TVsSAnZWagAA+/YP/1K4HmNNS2QIo0VXCr8o\nTMm/o9Hs6MYwKKSMKXCfazV4cXVhbxII+n5bY7q6qe+5gphTJApR0sTZu+ha\nvdaMu6awcFUO9kl6dtMtMP9MPFmaiaur4ln0jFt/sjd1xx5geBrQTRMvsA/D\n/cYdHwNjMT+s3q9MYsHpqqfsv4Gu2riTwnhObJwj1+NbNAVWpcUq6nJZ49Ui\nfL4drABDjhKt9IyfrJWBSoyqxMKVJdAQfRWHK34G3S2/Hk3l4X/C013u3SPz\n1KrkumY065z9cCJ8AOR1nhUwAMKpilpRrDC7Je2mAcBtOMyLkCHBbMatv+T9\nijpkvayOZtkYuROnx1lPqPi7rngrbsg4jkp+0joa4sJ+eZigkPkuv2Xqzi+G\nZREg6Kk1SlG809FgrMKk7oWNulXqwjQfaLZjlolEUQqMuV3ZkOx/dwg5X7iu\nDxkYcF/2ICEBMRgZeehacFgSLqREsU9qK6OjITgbYY51sgfu/WqqkBf/Kjsd\nPJzi/PhmC9tw3X2xfOz+l6vtsWL7Qm15MSuky/RYwrOAvEZnK9J6Sw8t7Z6q\nlxoQWvJI7Ba/BGMRRj52Qhag1Eyu8dE6gZ5OfR+Wqp0G4G8BoCZO3wMp5cbl\nLWFVB+lVqdzrOs1N3XeFrulGAwyYWYa2znn4o+Po477RlHjlHNjGcNE4xtpE\nKFZs\r\n=T5rU\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:\\a\\r1\\a\\_botframework-cli-daily\\drop\\microsoft-bf-lu-4.16.0-dev.20220120.e933dfc.tgz","browser":"lib/parser/composerindex.js","engines":{"node":">=14.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","prepack":"npm run clean && npm run build","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"D:\\a\\r1\\a\\_botframework-cli-daily\\drop\\microsoft-bf-lu-4.16.0-dev.20220120.e933dfc.tgz","_integrity":"sha512-ufOsJmedsI3hpAQGCTZMxZD4qo0ne7Fs4vEO7hYg64tAzEvQz0ZeeE8siqUKryUWOvRLp1kSGvolzwypwt0VjA==","repository":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","_npmVersion":"8.1.2","directories":{},"_nodeVersion":"16.13.2","dependencies":{"axios":"~0.24.0","chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"4.9.2","globby":"^10.0.1","lodash":"^4.17.21","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","https-proxy-agent":"^5.0.0"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.16.0-dev.20220120.e933dfc_1642667064304_0.7163720168102075","host":"s3://npm-registry-packages"}},"4.16.0-dev.20220228.5bb413a":{"name":"@microsoft/bf-lu","version":"4.16.0-dev.20220228.5bb413a","author":"Microsoft","license":"MIT","_id":"@microsoft/bf-lu@4.16.0-dev.20220228.5bb413a","maintainers":[{"name":"botframework","email":"botframework@microsoft.com"},{"name":"joshgummersall","email":"npm@josh.standardlabs.dev"},{"name":"sgellock","email":"sgellock@microsoft.com"},{"name":"cwhitten","email":"christopherwhitten@gmail.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"},{"name":"peterinnesmsft","email":"peinnes@microsoft.com"},{"name":"cmullins","email":"cmullins@gmail.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":"https://github.com/microsoft/botframework-cli/issues","nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"2ab0ca5ede816c32028b9556f58b7d26a4c4e2dd","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.16.0-dev.20220228.5bb413a.tgz","fileCount":186,"integrity":"sha512-deU0RyBup0BIKsHaRluJj0tP3sdVq2x8070UhwqS4SQa52oHJHPyzzuvxZPtP/eJmYkn96OiaOaA42HeUw4U6A==","signatures":[{"sig":"MEUCIQDyKmW2T2bxt9ihMUivjiji+z90ln7P16Hdx6AHI54qaAIgAf5y0pX62t9fDA8eE4N+tJ0pCHgXSfL7J7ihXfuQuR0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1533859,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiHIXiACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo6pg//Wu97fDCR5EBpAZ8nq4nk1mCMBlujyadW+oBKyGzENcaGlByw\r\nK0MkA5H4aEpHCea1mF3ApqYuUj2X2kLiVjb4nR/kK9aPKmhd26VxrBAI5Ynz\r\nd7LpLi3NISjAOVpd7EsTSO2ez+zOlDGfy2jHLoM+cEVKv769asktHaVTGQYu\r\nedacrDMnxgwjOKqgJrMEaKfD2fgMrYnb9VFmyIRN10x/d3e42unMqZNfruCh\r\njoQ2JjGZHix89wVqHYyvVJw08ayJJZtW7Gt2Fx4p+ObG49xtmY9noJWocFbw\r\nfYw0Rlu2HaJVLNNFWsJ3AyOwXhSuJTFVUg2bnNbJdUp6FBVMXzZPhcm5vKFj\r\nIJzroG72dLjJ1vh0NCL8YadULuHvvBT0wOwi3m0xgQ8U98Dah6lgAKV6oYOs\r\nRFlPouFSLiqQH6s8dyVb4AMw5vgNOQ53X9rzIdLQMsiHXomSqakrJ5sPcEE6\r\nE4wN8TyWZgjriOgn98yXjwtvmgKtTBZpy4u2Hw1LxAr1l/WbFrU9ue7ZJ4He\r\nVcT39WdgO87uJbM7oOwtSUHssA/Fs5rmgBxh3Edg/7oas5GLGt8d8b9063LX\r\nyBXGH32xQJ/fFufekSiNMIi0JhJtSBfTLCYBtUima75m19uYc3jSYmnrJXwX\r\nO0u5uJ0C+SAKUURDDT+if7W7KXs43CwPYic=\r\n=2dWR\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:\\a\\r1\\a\\_botframework-cli-daily\\drop\\microsoft-bf-lu-4.16.0-dev.20220228.5bb413a.tgz","browser":"lib/parser/composerindex.js","engines":{"node":">=14.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","prepack":"npm run clean && npm run build","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"D:\\a\\r1\\a\\_botframework-cli-daily\\drop\\microsoft-bf-lu-4.16.0-dev.20220228.5bb413a.tgz","_integrity":"sha512-deU0RyBup0BIKsHaRluJj0tP3sdVq2x8070UhwqS4SQa52oHJHPyzzuvxZPtP/eJmYkn96OiaOaA42HeUw4U6A==","repository":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","_npmVersion":"8.3.1","directories":{},"_nodeVersion":"16.14.0","dependencies":{"axios":"~0.24.0","chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"4.9.2","globby":"^10.0.1","lodash":"^4.17.21","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","https-proxy-agent":"^5.0.0"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.16.0-dev.20220228.5bb413a_1646036449971_0.9326617149533842","host":"s3://npm-registry-packages"}},"4.16.0-dev.20220525.147c370":{"name":"@microsoft/bf-lu","version":"4.16.0-dev.20220525.147c370","author":"Microsoft","license":"MIT","_id":"@microsoft/bf-lu@4.16.0-dev.20220525.147c370","maintainers":[{"name":"botframework","email":"botframework@microsoft.com"},{"name":"joshgummersall","email":"npm@josh.standardlabs.dev"},{"name":"sgellock","email":"sgellock@microsoft.com"},{"name":"cwhitten","email":"christopherwhitten@gmail.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"},{"name":"peterinnesmsft","email":"peinnes@microsoft.com"},{"name":"cmullins","email":"cmullins@gmail.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":"https://github.com/microsoft/botframework-cli/issues","nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"22be65577ef955fc8b6aca4396bde8afd52af764","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.16.0-dev.20220525.147c370.tgz","fileCount":186,"integrity":"sha512-gVyaDYVyBSMmavepBIVfY5YDINb6XEPnnN3tMO86//6uuXOgU9GwSfKvnvWllnrz1M7AUEh3fxJc3BmWuXY5Jw==","signatures":[{"sig":"MEUCIQDINcxEEdr9Ax3NdVGz3jR5ynJRKwHp2cmQjJjD50t7ewIgI5HRnG5UZ6TnGqEBis4nhhBMAtyAN0gq00c51nVjA/I=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1533859,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJijdlAACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqlRBAAjW0q8N2HttGjub4Y6caDloXTiDydR38e4SOm4FPgFtpggSN8\r\nJTa3ZgmBld8jujJ5lmVsB8q220BrwOQ7Mt1HK9b+EfFocI9M6D5XybiLDlV/\r\nW4HcF7oXx6sj7+NHOVCK0vqzdVp6DBzKC93sA9Ge+agt20kq//8O6edDt4rq\r\nWcNYBSSgxWOHIM/+/dPd3jnd9yv5m8/d/Gc7wRZ4HppZNukFyIbq5FXEICyr\r\ngsJIZDgVLk2c415aVwNCzvZcuWC42E3W+vt4AOOt4t6HpigJmOwccKBq73Vd\r\nXZhZjTTy0UdVpLKFA34VYJHFyon42/sy4OvxmNfgsqpyL7bYoNMVOzRr80I3\r\nv6meo5KmObCh2/TUEivYWGLjxkyyoIea0pmJK0IVOhmN20J0TG1qvOO7FAfY\r\nrspSZ48iNQsClgrr6/jy6tyMZNoBjL++vnln6pRIsl9KI+q8sW/LgEua/Fk+\r\nxF5mP0ZEsmd9Ag5pOf+YVEJt4Nl7GdIgskq5YCfGPAVnlZ+/vjh+9V8rzwTg\r\njOrTc6nRiehGlLbdWukOzhlhfiSHn04JF8Q60vMnrbBx8Z7M+fjQMGwS/cb/\r\n+fGuuNaqYJiXfzzxp2yuNOonmLx8jJxVch+e0XykSrH0kaeAOno9/PKO1G2q\r\nRWC7Sl26EmH7Ma8A5+cErl53qo6JVmsMyMc=\r\n=RRHj\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:\\a\\r1\\a\\_botframework-cli-daily\\drop\\microsoft-bf-lu-4.16.0-dev.20220525.147c370.tgz","browser":"lib/parser/composerindex.js","engines":{"node":">=14.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","prepack":"npm run clean && npm run build","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"D:\\a\\r1\\a\\_botframework-cli-daily\\drop\\microsoft-bf-lu-4.16.0-dev.20220525.147c370.tgz","_integrity":"sha512-gVyaDYVyBSMmavepBIVfY5YDINb6XEPnnN3tMO86//6uuXOgU9GwSfKvnvWllnrz1M7AUEh3fxJc3BmWuXY5Jw==","repository":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","_npmVersion":"8.3.1","directories":{},"_nodeVersion":"16.14.0","dependencies":{"axios":"~0.24.0","chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"4.9.2","globby":"^10.0.1","lodash":"^4.17.21","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","https-proxy-agent":"^5.0.0"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.16.0-dev.20220525.147c370_1653463360415_0.6075666193387983","host":"s3://npm-registry-packages"}},"4.16.0-dev.20220526.695cee5":{"name":"@microsoft/bf-lu","version":"4.16.0-dev.20220526.695cee5","author":"Microsoft","license":"MIT","_id":"@microsoft/bf-lu@4.16.0-dev.20220526.695cee5","maintainers":[{"name":"botframework","email":"botframework@microsoft.com"},{"name":"joshgummersall","email":"npm@josh.standardlabs.dev"},{"name":"sgellock","email":"sgellock@microsoft.com"},{"name":"cwhitten","email":"christopherwhitten@gmail.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"},{"name":"peterinnesmsft","email":"peinnes@microsoft.com"},{"name":"cmullins","email":"cmullins@gmail.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":"https://github.com/microsoft/botframework-cli/issues","nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"82cb00710f612b8e455069ad7dc81cdc7bb7c9df","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.16.0-dev.20220526.695cee5.tgz","fileCount":186,"integrity":"sha512-EdPQHR9vxHubL6Grgj/Siy8Pjdw2ba5mm3DKuNSZitHaHduAg1zVoRyYG/S6BdpVY9YDFiNd2no4WifeKS4d2g==","signatures":[{"sig":"MEUCIHQRqiV67VBs4bR5MUurZe9pBzelKT8AxBamNLYErh2/AiEAxnB8H86i1juF4ZmhL7bWcGRcCRR1uUoSdVmD1u2/UHU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1533859,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJijyo+ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq0EQ/8CRdpQlwajwEmDY/BYe32GZHjiSFmkPLsGoPcH7yjNiwEQ3En\r\nE9AL5b7EWlOERz5RtfPrVm5OoHijMz9QuWNAXw/QORQA35E41TwdXvWcs3Mw\r\n/3OyxMfGbt7+/9irsKcQCCfDHF/n50vJETzIQBhduM/XgxLB7BJybZgQKzBC\r\nYOne+uTQMuTsLLb8/fZDSrUf5OJRKMLdrLFIcIhCMRISb69DYO2+qbEe4ZkV\r\nrnPjNAR0kWSb4A+kO5hdmPzXpExEnFgNQGaItsuVmvz74pUYpn48aywuYfuy\r\nOjczh5Kh/UPtpSsJszh+PO1JUBst/eQmkEePB4zOS059/FKBc/eZL/P+CD7r\r\nfDfaoyaYOws6bl/fLmnzeBPlPx7+x3gnkQx5b6CD0X+fYs0cNTT6+LQJ83O0\r\ntiegqA5fk4fo3aKQJOQ5RupC1h6mEJqh8YcBA+HlRZ4S5Gphx80TFqDAF0ia\r\nBL5SApC+3qNL1sBFI7n6oIOvXJtzOd0puUSY4as6dwHhkUORu7BeXmRVZXUI\r\nV3SjAmcItndjBA+1SVL2nehVAfLMPI8JiNHF0CGo/6RBo5KC4+lzgb+7Ikal\r\n22kmELmdngbyefahjmOazI2of7PYunQ+JNgzQwSwksNZKq3PljuuA5xNwdBH\r\nNZsOm1YdkEZruy5EsBAMhj61n4K+mKBOADM=\r\n=Jse7\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:\\a\\r1\\a\\_botframework-cli-daily\\drop\\microsoft-bf-lu-4.16.0-dev.20220526.695cee5.tgz","browser":"lib/parser/composerindex.js","engines":{"node":">=14.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","prepack":"npm run clean && npm run build","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"D:\\a\\r1\\a\\_botframework-cli-daily\\drop\\microsoft-bf-lu-4.16.0-dev.20220526.695cee5.tgz","_integrity":"sha512-EdPQHR9vxHubL6Grgj/Siy8Pjdw2ba5mm3DKuNSZitHaHduAg1zVoRyYG/S6BdpVY9YDFiNd2no4WifeKS4d2g==","repository":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","_npmVersion":"8.3.1","directories":{},"_nodeVersion":"16.14.0","dependencies":{"axios":"~0.24.0","chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"4.9.2","globby":"^10.0.1","lodash":"^4.17.21","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","https-proxy-agent":"^5.0.0"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.16.0-dev.20220526.695cee5_1653549630299_0.005967444118565535","host":"s3://npm-registry-packages"}},"4.16.0-dev.20220725.a0ab7ca":{"name":"@microsoft/bf-lu","version":"4.16.0-dev.20220725.a0ab7ca","author":"Microsoft","license":"MIT","_id":"@microsoft/bf-lu@4.16.0-dev.20220725.a0ab7ca","maintainers":[{"name":"botframework","email":"botframework@microsoft.com"},{"name":"joshgummersall","email":"npm@josh.standardlabs.dev"},{"name":"sgellock","email":"sgellock@microsoft.com"},{"name":"cwhitten","email":"christopherwhitten@gmail.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"},{"name":"peterinnesmsft","email":"peinnes@microsoft.com"},{"name":"cmullins","email":"cmullins@gmail.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":"https://github.com/microsoft/botframework-cli/issues","nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"7fec837b2b873c71eeb042644fa7af7cc513b710","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.16.0-dev.20220725.a0ab7ca.tgz","fileCount":186,"integrity":"sha512-BZG2i2MfaRZZYQy4tD7WVyMmpN+X19bcHgsNE7aAAyhgc+wpmT5wjH5IhI3ps49ZJ+8iA7uHbcChjKJASTqFZQ==","signatures":[{"sig":"MEUCIDwteCsnJOOrVKQ8bV3XjvIAdVhDfCNBKWCRQ27P2gJ2AiEA++dPCcI44Z36f4NnXbU4IZFnSFQmLexp75aBn0BPzZ8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1533859,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi3kSoACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp9ShAAhZnOgK5at0eAgelVaXoUxsHdKN/lUhy5QkO11Yv72Q+v398S\r\nn1JpxPAtDjulspIecV3agQ7mpmaftWyYLvLzcr41BeNejbymJeNF7VrrdKTE\r\n5U7gbKH4b+DBg+NsoP5fpN5gt+FXPfKgj839X7R+86fG7Za2qOoaFnTErVhz\r\nSCshz92UWVvFhCyWUHKhHEgMOMJFnVbbhX+iWWGbENEg+NwgzwB1CjvANt90\r\n91rHwpE+fedpHaNLzbSE3zo4pQW5451bgc67LtlJ/OA+gkO9MzCKTaZI0rCU\r\nZ6OtZM4BR2R0wQ8udSuYoWnYepLiZ1XTipMozR2uLGXFeLAHrcR5RSUiD8Xg\r\nFXZQvLCnhJWhIaF8xBCOKw7g85hBPg/r5SWUy0pOjkjyaK6tygbDo1rNS/jx\r\nGNVz7m/YqybpD4ZoHE4w2j8kxb8UIMAr7+8v25Evh/9mXII2I91aiDRcqgni\r\nYLdcefJtfvGm/GSHt4Hydt4M88q/i4aYUjTLamNQhyiIyB+wnPUV9tNSf7NE\r\nGia9BY5K3R2WqzxYijXQXQ2G3jYJClyZJKRrlUQHAfHZTz1K58wF9gG87Tpy\r\nPPj1zmJJu4DGqOWcRUnTgSl28vuZqAitPbOUbFi3QZEinhi83fRw+dmJLeUs\r\nT5+SBBedV2ujaKFnGPAfc5N7nAE+ykHMcoM=\r\n=hWeW\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:\\a\\r1\\a\\_botframework-cli-daily\\drop\\microsoft-bf-lu-4.16.0-dev.20220725.a0ab7ca.tgz","browser":"lib/parser/composerindex.js","engines":{"node":">=14.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","prepack":"npm run clean && npm run build","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"D:\\a\\r1\\a\\_botframework-cli-daily\\drop\\microsoft-bf-lu-4.16.0-dev.20220725.a0ab7ca.tgz","_integrity":"sha512-BZG2i2MfaRZZYQy4tD7WVyMmpN+X19bcHgsNE7aAAyhgc+wpmT5wjH5IhI3ps49ZJ+8iA7uHbcChjKJASTqFZQ==","repository":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","_npmVersion":"8.3.1","directories":{},"_nodeVersion":"16.14.0","dependencies":{"axios":"~0.24.0","chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"4.9.2","globby":"^10.0.1","lodash":"^4.17.21","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","https-proxy-agent":"^5.0.0"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.16.0-dev.20220725.a0ab7ca_1658733736408_0.23247203526178106","host":"s3://npm-registry-packages"}},"4.16.0-dev.20221107.64f07e4":{"name":"@microsoft/bf-lu","version":"4.16.0-dev.20221107.64f07e4","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.16.0-dev.20221107.64f07e4","maintainers":[{"name":"botframework","email":"botframework@microsoft.com"},{"name":"joshgummersall","email":"npm@josh.standardlabs.dev"},{"name":"sgellock","email":"sgellock@microsoft.com"},{"name":"cwhitten","email":"christopherwhitten@gmail.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"},{"name":"peterinnesmsft","email":"peinnes@microsoft.com"},{"name":"cmullins","email":"cmullins@gmail.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"3944a24489d19c21c8ef65e459f1437f746e7c94","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.16.0-dev.20221107.64f07e4.tgz","fileCount":186,"integrity":"sha512-pj/y6lN5I5z6uK4qcTx2VdC1igAeQaWEmdWlhTAfJRLThW5BXYTQ58BBrVWvGulsaTRMPkGcSEBCkvf+9o78CQ==","signatures":[{"sig":"MEUCIEyw0W7FBo2NKoKS/6YzfrctrmKZBSxP2kdgfQn1+xWIAiEAj5uIwvYqJ6NWBFbcfHR1I/TmGMfrWCEt5R8LK6CMKyk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1533859,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjaMB/ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpvWQ//ckAn9JhGuD9ttUZ1e0YGANW9leKFpWfUsIY7kfCuBsLmIw7F\r\nLJxyadGt9uWLdDNb4uDhj/5JjVvwqqWLjypFd8aZdDOnkX3A9483LfFmhX9o\r\nqokt7U/hnFKAOY7uuxFcB31uR5M1s5qzyAgoMnJIIzVdVYxwt+6t6Svn8vzt\r\nezci/jH0CnMXO2sxae0/rHNMWABc6Lzt1c3UgRr6NBWRDB84WHJPSxyPd62J\r\nLjfi2ppHWY0ECuIG4pWw0/46DeIDzmm7FkkLfMyWe47EAu01cxcVXwR4gFjD\r\nFeSmu3+xgRmORWK4J5x997zEdMVvh3SOj7oZE7iPfADqACM/vP5gRLr0OOhg\r\nNDgYs4XMDEARfYGvjSC8XxUMjz/5Sp2/vRnkUjvVqXVTzF1wrJwnJKHPa9IQ\r\ns2/j2tGbB0bkonsq21M7X9/Rc0wR9Ni/hoRu2bHNZLj2P5IDpu9N0bkuyhiP\r\nUDtkhz2FeznhxHVVwKgn4hggGXodIFczJ7fUxSD+rOObNJ8cXoEZWMr84/Qd\r\nHIkgg7kRrCi4up3nJUKBKU4tFWvzpL2Xei5evYTOXgmnaAlPaUrTMlTUXFBp\r\nlSqJTWUp/ITuf2casX8w3aAFmYOC0bzglMdhm+RrqOTqdmEPqpiwFKBgHJ6d\r\npSLcVC2FukLRWJpmkIDnobcVohih2H2Oc44=\r\n=+5Bi\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:\\a\\r1\\a\\_botframework-cli-daily\\drop\\microsoft-bf-lu-4.16.0-dev.20221107.64f07e4.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=14.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","prepack":"npm run clean && npm run build","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"D:\\a\\r1\\a\\_botframework-cli-daily\\drop\\microsoft-bf-lu-4.16.0-dev.20221107.64f07e4.tgz","_integrity":"sha512-pj/y6lN5I5z6uK4qcTx2VdC1igAeQaWEmdWlhTAfJRLThW5BXYTQ58BBrVWvGulsaTRMPkGcSEBCkvf+9o78CQ==","repository":{"url":"git+https://github.com/microsoft/botframework-cli.git#master","type":"git"},"_npmVersion":"8.19.2","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"16.18.0","dependencies":{"axios":"~0.24.0","chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"4.9.2","globby":"^10.0.1","lodash":"^4.17.21","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","https-proxy-agent":"^5.0.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.16.0-dev.20221107.64f07e4_1667809407647_0.24144517722817804","host":"s3://npm-registry-packages"}},"4.16.0-dev.20221111.64f07e4":{"name":"@microsoft/bf-lu","version":"4.16.0-dev.20221111.64f07e4","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.16.0-dev.20221111.64f07e4","maintainers":[{"name":"botframework","email":"botframework@microsoft.com"},{"name":"joshgummersall","email":"npm@josh.standardlabs.dev"},{"name":"sgellock","email":"sgellock@microsoft.com"},{"name":"cwhitten","email":"christopherwhitten@gmail.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"},{"name":"peterinnesmsft","email":"peinnes@microsoft.com"},{"name":"cmullins","email":"cmullins@gmail.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"d634b5cbefaf828d70d10e5bec9be6f0fc4cfb8b","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.16.0-dev.20221111.64f07e4.tgz","fileCount":186,"integrity":"sha512-zu020CGaYOwelG0Mn4YrJ7tqissGzQtWV7d4USyRUyuQklF3xLXtvpHcrE0WhbFOsb/z6/cyPo+Nri7kGPB7Qg==","signatures":[{"sig":"MEUCIQDQJoQ26mvAXZXJ+euUnqP21NIWtQbViOgMo8LgzMowjAIgG8vqlWEeantdgfOKD0Q/nfclagidPe3THfH4OZ1NmDk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1533859,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjbtbGACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrQIw//eYPgHIglYbxwX0/JlTBiQqpvhi457E6MMt3i1ezXQQt5tMrb\r\n5LVGwqcwp0UET8pXNDKNXzZ87z/JUx7LI6s2FYO+sGeJ8oNOHXeomY8+sgO8\r\nd6WHeZR+WAtHNIg0om3lS96qKIE709u2dTtRoDShav0qnur5PfSW/8xEawiL\r\n6hZBndOB3KoQW5ps6MrufAbRn38iXOzOQZCZWIvERmWkPwM7v8NMfGdsBcgA\r\nPdwaiXMEXaQ6ZxVwkjVdttD9Uth8isAuXFSDos5nWqZhO17OwsfMJ0oqKCrQ\r\nOUTXgRp+m1jC2DTctFhadaaWdky1TA/RiueAPB3yOfDyTn1sS/RQ9FpXfFZn\r\nyqqYDCUNvbCNXyspPX5M8u7G2XL1zNqvyjr3N3Hx/j7jrZV2H3glv/bKDMJ6\r\n5clPn0EhMbY6sOQsp1deaVKp88V37qPKhoRynzG/G17MSk537j/gfoX43nPg\r\n04Cqi11X4UCY2wNfo1ecs3uQPov3DiSuDaSFeWbt5iJAkTCettA+t5b2EYmR\r\nnl+SDRVP81hAnLYKC+h+wMhE0lXxA5l2aUftv4ldG+5zn1GQZiipubfIHVWM\r\nz4BrRwZhJyOmZtq3oQGAQlLjFCOvwHDh1G24/vcMlIoqlTS1WTMSuvw6RJYk\r\nPaLfig+qqXhLJaMkU6SF61yGMfQosMSvayg=\r\n=22Ld\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:\\a\\r1\\a\\_botframework-cli-daily\\drop\\microsoft-bf-lu-4.16.0-dev.20221111.64f07e4.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=14.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","prepack":"npm run clean && npm run build","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"D:\\a\\r1\\a\\_botframework-cli-daily\\drop\\microsoft-bf-lu-4.16.0-dev.20221111.64f07e4.tgz","_integrity":"sha512-zu020CGaYOwelG0Mn4YrJ7tqissGzQtWV7d4USyRUyuQklF3xLXtvpHcrE0WhbFOsb/z6/cyPo+Nri7kGPB7Qg==","repository":{"url":"git+https://github.com/microsoft/botframework-cli.git#master","type":"git"},"_npmVersion":"8.19.2","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"16.18.0","dependencies":{"axios":"~0.24.0","chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"4.9.2","globby":"^10.0.1","lodash":"^4.17.21","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","https-proxy-agent":"^5.0.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.16.0-dev.20221111.64f07e4_1668208326448_0.8918915464428308","host":"s3://npm-registry-packages"}},"4.16.0-dev.20221114.64f07e4":{"name":"@microsoft/bf-lu","version":"4.16.0-dev.20221114.64f07e4","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.16.0-dev.20221114.64f07e4","maintainers":[{"name":"botframework","email":"botframework@microsoft.com"},{"name":"joshgummersall","email":"npm@josh.standardlabs.dev"},{"name":"sgellock","email":"sgellock@microsoft.com"},{"name":"cwhitten","email":"christopherwhitten@gmail.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"},{"name":"peterinnesmsft","email":"peinnes@microsoft.com"},{"name":"cmullins","email":"cmullins@gmail.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"ef9e023ffd0fa8dc5c38935700610ccad1dc911b","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.16.0-dev.20221114.64f07e4.tgz","fileCount":186,"integrity":"sha512-atbOJjPQBPLyFwgq+YNAzWDsj+SxoBO4bNKFjb6pJvGXBfZDnizdNU6Vh62VMvq7hIAJDBbhMaR1nEe6k5aEKA==","signatures":[{"sig":"MEUCIQD1/mNMvytn8UJ71VAICI6vERXgl7luGQ4hTWmXIx77SwIgUZA9MtiVD0YdSRTNbfGyU/bIhUNWe77E6/VsacQyim4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1533859,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjcfsQACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpsAg//X/wsjwwXqZrpEYOgJ3864g5wFueCmGMe5MddLaUng6KMCpko\r\nXAJOex0iUZnUNDZmzJ9Is3eZYcWS1ki1EDT+AUhFQwgfcmpT5N76H3HxRE/6\r\n/4vWISVE6AWHZl652Yst+R9W9f8Xrn091BwpDQRsn8GHwgTlroqCPL2MDLhH\r\np8Sx9M78dNpQ19Gs+g6OtRFzF5eJM3KzgdmdFEoU+e/BQKkLnVUQftgvFWMO\r\nseY+/vEzvdn+gtWDCeIjAFHScz85I7QD7mPat66LSAEG8HZKSGYs8AOEe5EN\r\nxIM+WsIfe4M5HU44klMNmlWDyCnpJFUW+G1eyhYtxBYKUQWkAGmSOLeywrEu\r\npW92Qqbncdi3dXqeTy6Ij1RSuILEjQhikiFJg4l8mUewkIj6UBxWBLrvueu1\r\nm9olJiVjx/y2wbcLA4TSBoup7Iwkcuy0im12qPJlTW3yEjaP5MAfKBOBto8Q\r\nrPZiavLuDaYNHM2kaxiNwuFh7CqVq3sx5gwXjZiviTBrlSSzLms7/Xfhin0s\r\nj2ZKYH9skyra1eaUEbvoI+uO7iVIXcdQuWyctI1F13uwg8lMeg4N3n9js7f4\r\nMBaBRJHTlwBN2UwGPMIN4l3L7ZLaXwaDfhmqHVw5+tR30KLk3am0xzNFZs6G\r\nGEVfGUe1MZgNyBF8JM1ba+oOBSd7y2a1Vt0=\r\n=Uxab\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/parser/index.js","_from":"file:D:\\a\\r1\\a\\_botframework-cli-daily\\drop\\microsoft-bf-lu-4.16.0-dev.20221114.64f07e4.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=14.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","prepack":"npm run clean && npm run build","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"D:\\a\\r1\\a\\_botframework-cli-daily\\drop\\microsoft-bf-lu-4.16.0-dev.20221114.64f07e4.tgz","_integrity":"sha512-atbOJjPQBPLyFwgq+YNAzWDsj+SxoBO4bNKFjb6pJvGXBfZDnizdNU6Vh62VMvq7hIAJDBbhMaR1nEe6k5aEKA==","repository":{"url":"git+https://github.com/microsoft/botframework-cli.git#master","type":"git"},"_npmVersion":"8.19.2","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"16.18.0","dependencies":{"axios":"~0.24.0","chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"4.9.2","globby":"^10.0.1","lodash":"^4.17.21","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","https-proxy-agent":"^5.0.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.16.0-dev.20221114.64f07e4_1668414223887_0.41805142194833067","host":"s3://npm-registry-packages"}},"4.16.0-dev.20231122.4561d55":{"name":"@microsoft/bf-lu","version":"4.16.0-dev.20231122.4561d55","author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/bf-lu@4.16.0-dev.20231122.4561d55","maintainers":[{"name":"botframework","email":"botframework@microsoft.com"},{"name":"sgellock","email":"sgellock@microsoft.com"},{"name":"cwhitten","email":"christopherwhitten@gmail.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"},{"name":"peterinnesmsft","email":"peinnes@microsoft.com"},{"name":"joshgummersall","email":"npm@josh.standardlabs.dev"},{"name":"cmullins","email":"cmullins@gmail.com"}],"homepage":"https://github.com/microsoft/botframework-cli","bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"nyc":{"exclude":["**/lufile/generated/**","test/**"]},"dist":{"shasum":"6c535d80610e7eb92830099129dc823289667030","tarball":"https://registry.npmjs.org/@microsoft/bf-lu/-/bf-lu-4.16.0-dev.20231122.4561d55.tgz","fileCount":186,"integrity":"sha512-G4apfBWv53SjQPF5c+yoHWb2Ztc0dU/x7VznN03id1Kxbz9s582cKJ6mklXoz/UCpqWuqp3tM6KPEOdLEdGADw==","signatures":[{"sig":"MEUCIHHLWhhYUZRNMx7fEebwRWxVrOvzp14sG/c0jajSls3bAiEAq+fSSglJgqWVklbVjFMnKoRaqhT1w+8jBf8Tj/1HkYw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1533859},"main":"lib/parser/index.js","_from":"file:D:\\a\\r1\\a\\_botframework-cli-daily\\drop\\microsoft-bf-lu-4.16.0-dev.20231122.4561d55.tgz","readme":"\r\nThis package is intended for Microsoft use only. It is not designed to be consumed as an independent package.\r\n\r\n# Consuming @microsoft/bf-lu as a library\r\n@microsoft/bf-lu can be used within a Node.js application as an imported library. Install locally:\r\n\r\n```bash\r\nnpm install @microsoft/bf-lu --save\r\n```\r\n\r\n# V2 API\r\n\r\n## Parsing LU Content\r\nTo parse LU files, you can use the LUISBuilder class, which returns a LUIS class\r\n\r\n```js\r\nconst Luis = require('@microsoft/bf-lu').V2.Luis\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n\r\n// Parsed LUIS object\r\nconsole.log(JSON.stringify(luisObject, 2, null));\r\n        \r\n```\r\n\r\n## Validating parsed LU content\r\n\r\nYou can use the available validate() function to verify if the parsed LUIS object is valid. This helps catch name conflicts, invalid labelled utterances etc. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi`;\r\n\r\nconst luisObject = await LUISBuilder.fromLUAsync(luContent)\r\nluisObject.intents[0].name = \"testIntent123456789012345678901234567890123\"\r\nluisObject.validate()\r\n```\r\n\r\n## Generating lu content from LUIS JSON\r\n\r\nYou can generate lu content from LUIS instance using parseToLuContent() method. Here's an example code snippet. \r\n\r\n```js\r\nconst LUISBuilder = require('@microsoft/bf-lu').V2.LuisBuilder\r\nconst exception = require('@microsoft/bf-lu').V2.Exception\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst log = false;\r\nconst locale = 'en-us';\r\nasync function parseContent() {\r\n\r\n    try {   \r\n        const luisObject = await LUISBuilder.fromContentAsync(luContent)\r\n        luisObject.validate()\r\n        const parsedLuisBackToLu = luisObject.parseToLuContent()\r\n    } catch (error) {\r\n        if (error instanceof exception) {\r\n        // do something specific to this exception\r\n        } else {\r\n            console.log(errObj.text);\r\n        }\r\n    }\r\n}\r\n\r\nparseContent();\r\n\r\n```\r\n## Translating lu files\r\n\r\nYou can take advantage of the [Microsoft text translation API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/) to automatically machine translate .lu files to one or more than [60+ languages](https://aka.ms/translate-langs) supported by the Microsoft text translation cognitive service.\r\n\r\nTo translate lu file content, you can simply use the translate() method in the LU class. Here's a code snippet.\r\n\r\n```js\r\nconst LU = require('@microsoft/bf-lu').V2.LU\r\nconst luContent = `# Greeting\r\n- hi\r\n$userName:first=\r\n-vishwac`;\r\nconst targetLanguage = 'de';\r\nconst subscriptionKey = '<YOUR TEXT TRANSLATION KEY>';\r\nconst translateComments = true;\r\nconst translateLinkText = true;\r\n\r\nconst luInstance = new LU(luContent)\r\nawait luInstance.translate(subscriptionKey, targetLanguage, translateComments, translateLinkText)\r\nconst translatedCode = luInstance.content\r\n\r\n```\r\n","browser":"lib/parser/composerindex.js","engines":{"node":">=14.0.0"},"scripts":{"doc":"","test":"mocha","build":"tsc -b","clean":"rimraf ./.nyc_output ./lib ./package-lock.json ./tsconfig.tsbuildinfo","prepack":"npm run clean && npm run build","version":"npm run doc:readme && git add README.md","coverage":"nyc npm run test","posttest":"tslint -p test -t stylish","doc:readme":""},"_npmUser":{"name":"botframework","email":"botframework@microsoft.com"},"_resolved":"D:\\a\\r1\\a\\_botframework-cli-daily\\drop\\microsoft-bf-lu-4.16.0-dev.20231122.4561d55.tgz","_integrity":"sha512-G4apfBWv53SjQPF5c+yoHWb2Ztc0dU/x7VznN03id1Kxbz9s582cKJ6mklXoz/UCpqWuqp3tM6KPEOdLEdGADw==","repository":{"url":"git+https://github.com/microsoft/botframework-cli.git#master","type":"git"},"_npmVersion":"9.8.1","description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","directories":{},"_nodeVersion":"18.18.2","dependencies":{"axios":"~0.24.0","chalk":"2.4.1","delay":"^4.3.0","tslib":"^2.0.3","antlr4":"4.9.2","globby":"^10.0.1","lodash":"^4.17.21","semver":"^5.5.1","fs-extra":"^8.1.0","get-stdin":"^6.0.0","deep-equal":"^1.0.1","console-stream":"^0.1.1","intercept-stdout":"^0.1.2","@types/node-fetch":"~2.5.5","https-proxy-agent":"^5.0.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","nock":"^11.7.0","uuid":"^3.3.3","mocha":"^6.2.2","rimraf":"^2.6.3","tslint":"^5.18.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.0","@types/nock":"^11.1.0","@types/node":"^10.14.15","@types/mocha":"^5.2.7","@types/lodash":"~4.14.159"},"_npmOperationalInternal":{"tmp":"tmp/bf-lu_4.16.0-dev.20231122.4561d55_1700671021091_0.2062933829855178","host":"s3://npm-registry-packages"}}},"time":{"created":"2019-10-17T20:07:13.399Z","modified":"2026-07-16T15:44:18.607Z","0.0.0":"2019-10-17T20:07:13.506Z","4.6.0":"2019-10-30T16:52:07.451Z","4.7.0":"2019-12-18T00:50:57.770Z","4.8.0":"2020-03-17T22:40:46.053Z","4.9.0":"2020-05-12T18:38:51.379Z","4.9.1":"2020-05-28T17:39:57.416Z","4.10.0-dev.20200714.6b8b8a9":"2020-07-14T22:07:53.275Z","4.10.0-dev.20200715.547c305":"2020-07-15T07:19:06.347Z","4.10.0-dev.20200716.d3cbcf0":"2020-07-16T07:19:29.005Z","4.10.0-dev.20200717.fbe453f":"2020-07-17T07:21:22.948Z","4.10.0-dev.20200718.6bd5cf5":"2020-07-18T07:19:26.301Z","4.10.0-dev.20200719.7816875":"2020-07-19T07:19:03.823Z","4.10.0-dev.20200720.88a2a42":"2020-07-20T07:20:52.108Z","4.10.0-dev.20200721.88a2a42":"2020-07-21T09:22:19.133Z","4.10.0-dev.20200723.4c45f4a":"2020-07-23T09:22:20.911Z","4.10.0-dev.20200727.f10d79c":"2020-07-27T09:24:02.363Z","4.10.0-dev.20200728.930f45e":"2020-07-28T09:20:00.229Z","4.10.0-dev.20200729.4ac1279":"2020-07-29T07:21:18.640Z","4.10.0-dev.20200730.3786d10":"2020-07-30T07:20:07.954Z","4.10.0-dev.20200731.4aa848c":"2020-07-31T07:18:58.562Z","4.10.0-dev.20200804.10e144c":"2020-08-04T07:19:22.398Z","4.10.0-dev.20200806.789391b":"2020-08-06T07:25:58.146Z","4.10.0-dev.20200807.8f27460":"2020-08-07T07:19:18.756Z","4.10.0-dev.20200808.5a7c973":"2020-08-08T07:18:56.288Z","4.10.0-rc.20200811.e3d7c37":"2020-08-11T23:11:24.252Z","4.11.0-dev.20200812.fedc732":"2020-08-12T07:17:44.435Z","4.11.0-dev.20200812.46ecaa3":"2020-08-12T22:05:55.776Z","4.11.0-dev.20200813.46ecaa3":"2020-08-13T07:19:20.889Z","4.10.0":"2020-08-14T21:51:05.432Z","4.11.0-dev.20200818.9437cc1":"2020-08-18T07:17:28.036Z","4.11.0-dev.20200818.1c4ddb8":"2020-08-18T20:03:56.759Z","4.11.0-dev.20200819.1c4ddb8":"2020-08-19T07:16:52.964Z","4.10.1":"2020-08-19T18:15:52.294Z","4.11.0-dev.20200821.de66343":"2020-08-21T17:29:33.277Z","4.11.0-dev.20200824.de66343":"2020-08-24T00:17:59.542Z","4.11.0-dev.20200826.65eff66":"2020-08-26T07:19:37.517Z","4.11.0-dev.20200827.d5b17d9":"2020-08-27T07:17:02.462Z","4.11.0-dev.20200831.d7b6149":"2020-08-31T07:17:08.332Z","4.11.0-dev.20200904.ed789e7":"2020-09-04T07:17:01.966Z","4.11.0-dev.20200907.c063415":"2020-09-07T07:17:11.468Z","4.11.0-dev.20200911.7d6ad59":"2020-09-11T07:18:17.193Z","4.11.0-dev.20200911.c8afdcc":"2020-09-11T19:41:29.039Z","4.11.0-dev.20200914.c8afdcc":"2020-09-14T15:54:47.158Z","4.11.0-dev.20200916.4f7c793":"2020-09-16T07:17:47.043Z","4.11.0-dev.20200917.ec30167":"2020-09-17T03:48:50.173Z","4.11.0-dev.20200917.737fe95":"2020-09-17T07:17:14.986Z","4.11.0-dev.20200922.6a0f42c":"2020-09-22T07:17:00.681Z","4.11.0-dev.20200924.df24cb2":"2020-09-24T07:21:51.568Z","4.11.0-dev.20200930.028a4ec":"2020-09-30T07:17:11.809Z","4.11.0-dev.20201002.780bf2c":"2020-10-02T07:17:57.612Z","4.11.0-dev.20201005.7e5e1b8":"2020-10-05T07:18:55.883Z","4.11.0-dev.20201008.18fba61":"2020-10-08T07:16:53.970Z","4.11.0-dev.20201013.7ccb128":"2020-10-13T07:23:27.172Z","4.11.0-dev.20201014.d8a6b54":"2020-10-14T07:18:29.526Z","4.11.0-dev.20201015.a41c691":"2020-10-15T07:24:32.690Z","4.11.0-dev.20201016.24ec3b9":"2020-10-16T07:25:35.566Z","4.11.0-dev.20201019.091464d":"2020-10-19T07:16:48.404Z","4.11.0-dev.20201021.d59abb5":"2020-10-21T07:17:40.472Z","4.11.0-dev.20201022.a4b06fc":"2020-10-22T07:17:18.526Z","4.11.0-dev.20201023.4d90f4e":"2020-10-23T07:17:34.918Z","4.11.0-dev.20201025.69cf2b9":"2020-10-25T17:17:01.368Z","4.11.0-rc.20201026.e06ad47":"2020-10-26T23:00:36.483Z","4.11.0-dev.20201027.e06ad47":"2020-10-27T07:18:19.001Z","4.12.0-dev.20201028.999bc32":"2020-10-28T07:17:52.151Z","4.11.0-rc.20201028.6f4722f":"2020-10-28T20:07:40.771Z","4.12.0-dev.20201029.76cad5c":"2020-10-29T07:17:27.224Z","4.12.0-dev.20201030.307bcd7":"2020-10-30T07:17:25.542Z","4.11.0-rc.20201030.a9f9b96":"2020-10-30T20:33:36.992Z","4.12.0-dev.20201105.f7da1b8":"2020-11-05T08:19:44.973Z","4.12.0-dev.20201106.c64ea80":"2020-11-06T08:15:51.843Z","4.11.0":"2020-11-06T22:48:14.670Z","4.12.0-dev.20201112.f9270c9":"2020-11-12T08:16:03.582Z","4.12.0-dev.20201118.1cb4bee":"2020-11-18T08:16:54.946Z","4.12.0-dev.20201125.454bc64":"2020-11-25T02:09:12.694Z","4.11.1":"2020-11-25T03:46:39.020Z","4.12.0-dev.20201125.77567ef":"2020-11-25T08:17:18.187Z","4.12.0-dev.20201126.853f44c":"2020-11-26T08:17:20.430Z","4.12.0-dev.20201201.1253a5b":"2020-12-01T08:16:25.128Z","4.12.0-dev.20201203.954f006":"2020-12-03T08:16:45.904Z","4.12.0-dev.20201208.3315f42":"2020-12-08T08:16:58.052Z","4.12.0-dev.20201209.a2ab9dd":"2020-12-09T08:16:54.579Z","4.12.0-dev.20201211.e06f70f":"2020-12-11T08:16:33.861Z","4.12.0-dev.20210115.2b00408":"2021-01-15T08:16:37.479Z","4.12.0-dev.20210118.d2c102f":"2021-01-18T08:17:29.489Z","4.12.0-dev.20210121.7decc06":"2021-01-21T08:16:54.212Z","4.12.0-dev.20210126.0184ff0":"2021-01-26T08:15:37.410Z","4.12.0-dev.20210127.fc25e77":"2021-01-27T08:17:14.076Z","4.12.0-dev.20210127.3725565":"2021-01-27T19:48:13.970Z","4.12.0-dev.20210128.3725565":"2021-01-28T08:17:09.412Z","4.12.0-dev.20210129.82760de":"2021-01-29T08:16:35.075Z","4.12.0-dev.20210202.c622c6f":"2021-02-02T08:16:50.864Z","4.12.0-dev.20210205.fe56306":"2021-02-05T08:16:45.653Z","4.12.0-dev.20210208.b300d92":"2021-02-08T08:17:47.088Z","4.12.0-dev.20210209.dbba6c6":"2021-02-09T08:16:57.851Z","4.12.0-dev.20210211.d80ed6a":"2021-02-11T08:16:16.720Z","4.12.0-dev.20210212.50bae19":"2021-02-12T08:16:47.480Z","4.12.0-dev.20210215.64a2839":"2021-02-15T08:17:39.062Z","4.12.0-rc0":"2021-02-18T00:01:35.595Z","4.13.0-dev.20210218.d9e7d3a":"2021-02-18T08:16:01.478Z","4.12.0-rc1":"2021-02-20T01:22:47.161Z","4.13.0-dev.20210222.5f35a0e":"2021-02-22T08:17:38.452Z","4.13.0-dev.20210225.ab2ff4c":"2021-02-25T08:17:30.853Z","4.13.0-dev.20210302.8d7ee7f":"2021-03-02T08:16:36.644Z","4.13.0-dev.20210303.7004e0b":"2021-03-03T08:16:21.748Z","4.12.0":"2021-03-05T00:17:16.250Z","4.13.0-dev.20210309.33c7b6e":"2021-03-09T08:17:09.591Z","4.13.0-dev.20210311.ea3dc6f":"2021-03-11T08:16:50.164Z","4.13.0-dev.20210317.7efaf27":"2021-03-17T07:21:04.247Z","4.13.0-dev.20210318.2aac9b5":"2021-03-18T07:16:35.460Z","4.13.0-dev.20210322.de71c51":"2021-03-22T07:17:40.524Z","4.13.0-dev.20210323.8f22a9d":"2021-03-23T07:17:35.203Z","4.13.0-dev.20210324.2241623":"2021-03-24T07:17:21.613Z","4.13.0-dev.20210329.edada32":"2021-03-29T07:18:49.393Z","4.13.0-dev.20210330.dc0594f":"2021-03-30T07:17:12.097Z","4.13.0-dev.20210401.8dc6ffe":"2021-04-01T07:17:44.278Z","4.13.0-rc0":"2021-04-02T00:50:34.497Z","4.14.0-dev.20210402.7e5fa93":"2021-04-02T07:21:27.093Z","4.14.0-dev.20210406.74baacc":"2021-04-06T07:20:02.386Z","4.14.0-dev.20210407.6745788":"2021-04-07T23:47:13.261Z","4.14.0-dev.20210408.393d33d":"2021-04-08T07:20:10.481Z","4.14.0-dev.20210408.1a5070e":"2021-04-08T17:00:47.626Z","4.14.0-dev.20210409.1a5070e":"2021-04-09T07:20:35.727Z","4.13.0-rc1":"2021-04-09T17:30:31.476Z","4.14.0-dev.20210415.161c029":"2021-04-15T07:20:19.143Z","4.14.0-dev.20210415.7e35288":"2021-04-15T19:15:02.706Z","4.14.0-dev.20210415.ab0fc09":"2021-04-15T20:23:22.255Z","4.13.0-rc2":"2021-04-15T22:50:30.895Z","4.14.0-dev.20210416.ab0fc09":"2021-04-16T07:20:20.266Z","4.14.0-dev.20210419.7257bc2":"2021-04-19T18:34:41.107Z","4.13.0":"2021-04-19T22:18:59.446Z","4.14.0-dev.20210420.fc92e9b":"2021-04-20T07:20:16.082Z","4.14.0-dev.20210422.eccdf02":"2021-04-22T07:21:44.467Z","4.13.1":"2021-04-26T21:40:49.364Z","4.14.0-dev.20210427.c0be653":"2021-04-27T07:21:34.244Z","4.13.2":"2021-04-28T22:42:13.636Z","4.14.0-dev.20210429.968ef75":"2021-04-29T15:55:07.627Z","4.13.3":"2021-04-29T20:53:17.476Z","4.14.0-dev.20210430.968ef75":"2021-04-30T07:19:25.933Z","4.14.0-dev.20210511.07bbd05":"2021-05-11T07:22:33.424Z","4.14.0-dev.20210517.4cdd4d9":"2021-05-17T07:23:32.360Z","4.14.0-dev.20210519.92dfb46":"2021-05-19T07:21:05.490Z","4.14.0-dev.20210521.64e1d40":"2021-05-21T07:22:37.707Z","4.14.0-dev.20210602.be805a8":"2021-06-02T07:25:40.737Z","4.14.0-dev.20210604.3f9ee15":"2021-06-04T07:23:32.114Z","4.14.0-dev.20210623.37f59ec":"2021-06-23T07:31:04.483Z","4.14.0-dev.20210624.eac7a60":"2021-06-24T07:22:24.285Z","4.14.0-dev.20210625.132e0cd":"2021-06-25T07:21:28.426Z","4.14.0-dev.20210629.e97e6b0":"2021-06-29T07:22:03.161Z","4.14.0-rc0":"2021-06-29T18:06:11.051Z","4.14.0-dev.20210630.8078cc6":"2021-06-30T07:21:31.689Z","4.15.0-dev.20210701.be9cd6c":"2021-07-01T07:19:43.026Z","4.15.0-dev.20210702.cbf708d":"2021-07-02T07:21:26.246Z","4.15.0-dev.20210707.cf471cf":"2021-07-07T07:20:16.343Z","4.14.0":"2021-07-07T19:27:06.800Z","4.15.0-dev.20210708.f16ca8f":"2021-07-08T07:19:23.919Z","4.14.1":"2021-07-08T18:40:42.795Z","4.15.0-dev.20210712.eb38bc0":"2021-07-12T07:19:24.973Z","4.15.0-dev.20210715.ead1751":"2021-07-15T07:19:28.932Z","4.15.0-dev.20210723.bf1f054":"2021-07-23T07:23:51.290Z","4.15.0-dev.20210803.40549ca":"2021-08-03T07:21:57.308Z","4.15.0-dev.20210805.6321dcc":"2021-08-05T07:20:24.793Z","4.15.0-dev.20210914.7a936c1":"2021-09-14T07:21:04.026Z","4.15.0-dev.20210917.b688652":"2021-09-17T07:23:50.145Z","4.15.0-dev.20210920.e4d38fc":"2021-09-20T07:24:06.367Z","4.15.0-dev.20210921.fcb2cdb":"2021-09-21T07:22:59.701Z","4.15.0-dev.20210922.c1c0528":"2021-09-22T07:22:11.592Z","4.15.0-dev.20210924.20a3f98":"2021-09-24T07:19:18.283Z","4.15.0-dev.20210928.a9a92a5":"2021-09-28T07:22:46.595Z","4.15.0-dev.20211004.edcf63e":"2021-10-04T07:25:12.370Z","4.15.0-rc0":"2021-10-15T22:52:20.488Z","4.16.0-dev.20211020.406dfef":"2021-10-20T07:23:48.063Z","4.16.0-dev.20211101.bed3c05":"2021-11-01T17:35:34.970Z","4.16.0-dev.20211102.bed3c05":"2021-11-02T07:24:42.626Z","4.16.0-dev.20211102.3f7a67a":"2021-11-02T17:48:15.809Z","4.15.0-rc1":"2021-11-02T23:17:26.775Z","4.16.0-dev.20211103.3f7a67a":"2021-11-03T07:20:18.756Z","4.16.0-dev.20211105.90655c4":"2021-11-05T07:24:53.133Z","4.15.0-rc2":"2021-11-05T18:21:27.262Z","4.15.0-rc3":"2021-11-10T23:40:22.684Z","4.16.0-dev.20211111.15b5c37":"2021-11-11T08:22:26.413Z","4.15.0":"2021-11-16T17:11:32.809Z","4.16.0-dev.20211117.19ff452":"2021-11-17T08:23:36.306Z","4.16.0-dev.20211220.6972973":"2021-12-20T08:23:52.558Z","4.16.0-dev.20220104.33b5e0a":"2022-01-04T08:23:34.330Z","4.16.0-dev.20220105.380511c":"2022-01-05T21:10:08.777Z","4.16.0-dev.20220105.c44b989":"2022-01-06T00:01:50.571Z","4.16.0-dev.20220106.c44b989":"2022-01-06T08:21:04.822Z","4.16.0-dev.20220110.b4d497d":"2022-01-10T08:22:16.049Z","4.16.0-dev.20220120.e933dfc":"2022-01-20T08:24:24.527Z","4.16.0-dev.20220228.5bb413a":"2022-02-28T08:20:50.195Z","4.16.0-dev.20220525.147c370":"2022-05-25T07:22:40.713Z","4.16.0-dev.20220526.695cee5":"2022-05-26T07:20:30.508Z","4.16.0-dev.20220725.a0ab7ca":"2022-07-25T07:22:16.623Z","4.16.0-dev.20221107.64f07e4":"2022-11-07T08:23:27.903Z","4.16.0-dev.20221111.64f07e4":"2022-11-11T23:12:06.691Z","4.16.0-dev.20221114.64f07e4":"2022-11-14T08:23:44.203Z","4.16.0-dev.20231122.4561d55":"2023-11-22T16:37:01.249Z"},"bugs":{"url":"https://github.com/microsoft/botframework-cli/issues"},"author":{"name":"Microsoft"},"license":"MIT","homepage":"https://github.com/microsoft/botframework-cli","repository":{"url":"https://github.com/microsoft/botframework-cli/tree/master/packages/lu","type":"git"},"description":"This package is intended for Microsoft use only. It is not designed to be consumed as an independent package.","maintainers":[{"email":"botframework@microsoft.com","name":"botframework"},{"email":"sgellock@microsoft.com","name":"sgellock"},{"email":"christopherwhitten@gmail.com","name":"cwhitten"},{"email":"npmjs@microsoft.com","name":"microsoft1es"},{"email":"microsoft-oss-publishing@microsoft.com","name":"microsoft-oss-releases"},{"email":"peinnes@microsoft.com","name":"peterinnesmsft"},{"email":"cmullins@gmail.com","name":"cmullins"}],"readme":"","readmeFilename":""}