Stream terminal output to CodeRail backend over WebSocket.
npm install coderail-watchStream terminal output to CodeRail backend over WebSocket.
Usage:
``bash`
npx coderail-watch --session-id
Switch base URL by env:
`bash`
npx coderail-watch --session-id
Watch a log file instead of stdin:
`bash`
npx coderail-watch --session-id
Publish (npm):
`bash`
cd tools/coderail-watch
npm login
npm run publish:public
If you are fixing a published bug, bump the version before publishing:
`bash`
cd tools/coderail-watch
npm version patch
npm run publish:public
If publish fails with "Access token expired or revoked":
`bash`
cd tools/coderail-watch
npm logout
npm login
npm run publish:public
If you use an npm access token (CI or 2FA), set it explicitly:
`bash``
cd tools/coderail-watch
npm config set //registry.npmjs.org/:_authToken
npm run publish:public
2FA note:
- npm no longer allows adding new TOTP 2FA from the CLI. Enable 2FA with a security key at https://npmjs.com/settings/